Main

type

5 (blog/news article)

status

21 (imported old-v2, waiting for another import)

review version

0

cleanup version

0

pending deletion

0 (-)

created at

2025-10-20 04:43:10

updated at

2025-10-20 04:43:10

Address

url

https://www.51degrees.net/2009/03/25/rgb-helper.html

url length

52

url crc

59725

url crc32

954132813

location type

1 (url matches target location, page_location is empty)

canonical status

2 (missing canonical tag in html)

canonical page id

-

Source

domain id

33701426

domain tld

2644

domain parts

0

originating warc id

-

originating url

https://data.commoncrawl.org/crawl-data/CC-MAIN-2025-33/segments/1754151280914.63/warc/CC-MAIN-20250812045045-20250812075045-00999.warc.gz

source type

11 (CommonCrawl)

Server response

server ip

3.171.76.71

Publication date

2025-08-12 05:48:05

Fetch attempts

0

Original html size

7003

Normalized and saved size

5132

Content

title

RGB helper method

excerpt

content

RGB helper method 25 Mar 2009 I use Safari for my day to day development and while the ‘Inspect Element’ command has been much improved since earlier versions – I still can’t find out the foreground or background colours in hexadecimal notation. The following ruby snippet converts from the format that Safari provides into hexadecimal. I find that its really useful to put in .irbrc so that its always available for quick conversions in IRB. def rgb(*colours) colours.inject('#') do |code, colour| code += colour.to_s(16).rjust(2, '0').upcase end endI’m of the school of thought that every bit of code should be tested, mainly to preserve my sanity, so here are the specs for the following method. describe "#rgb" do it "should convert rgb(0, 0, 0) to '#000000'" do rgb(0, 0, 0).should == '#000000' end it "should convert rgb(190, 215, 205) to '#BED7CD'" do rgb(190, 215, 205).should == '#BED7CD' end it "should convert rgb(255, 255, 255) to '#FFFFFF" do rgb(...

author

Oliver Legg

updated

1762265755

Text analysis

block type

0

extracted fields

108

extracted bits

article author
title
full content
content was extracted heuristically

detected location

0

detected language

1 (English)

category id

Pozostałe (16)

index version

2025103102

paywall score

0

spam phrases

0

Text statistics

text nonlatin

0

text cyrillic

0

text characters

744

text words

175

text unique words

95

text lines

1

text sentences

5

text paragraphs

1

text words per sentence

35

text matched phrases

0

text matched dictionaries

0