fin
Posted by phil on 24 May 2005 at 02:14 pm | Tagged as: Uncategorized
There’s something rather vogue about saying of your current employer ‘currently has no physical address’ and listing a URI instead on an application.
define: Student (stu`dent) n.
- A person who is engaged in or addicted to study. Const. of, in, or with defining word prefixed, indicating the subject studied. Also with adj. of degree, as close, deep, {dag}good, great, hard student.
- A person who is undergoing a course of study and instruction at a university or other place of higher education or technical training. Also const. of, in (a subject); often with defining word prefixed, as art, law, medical student.
- An inexperienced user of illegal drugs; spec. one who takes small or occasional doses. U.S. Drug-users’ slang.
- Not Phil.
It’s the fourth meaning that is especially noteworthy to me at this point.
In closing, here is a Ruby function to calculate Internet Checksum, aka IP Checksum:
def internet_checksum(data)
sum = 0
data.unpack("S*").each do | bits |
sum += bits
if sum & 0xFFFF0000 != 0
sum = sum & 0xFFFF
sum += 1
end
end
# this gets returned
sum = ~(sum & 0xFFFF)
end