Badly Drawn Boy's views on Manchester
This post is sponsored by PayPerPost (more…)
November 29th, 2006
Badly Drawn Boy's views on ManchesterThis post is sponsored by PayPerPost (more…)
November 29th, 2006
Spelling mistake by Google!I was just reading the new features listing for Google Docs, and came across this line: "Spreadsheets get smarter with 2 special functions". Perhaps it's more of a grammatical error than a spelling mistake, but I believe they were trying to say 'Spreadsheets gets smarter'. Either that or they're disappointed in it and commanding it to smarten up…
November 28th, 2006
Convert an IP address to IP number with PHP, ASP, C# and VB.NetSo you've retrieved the visitor's IP address. If you're just logging or tracing it, that's all you need to do. However, if you want to match it to an IP location database, you can't search by the IP in the IPV4 format. It needs to be converted to its IP number equivalent (it is just more efficient to store and search between a range of numbers in database). Here are the functions in PHP, ASP, C# and VB.Net to convert and IP address from dot format to IP number format. Each function is based on the fact that IP addresses (IPV4) are divided into 4 sub-blocks. Each sub-block has a different weight number, each powered by 256. Here's the math: IP Number = (16777216*a) + (65536*b) + (256*c) + (d (1)) And here are the functions that implement that math:
November 28th, 2006
This site plans to sell Xbox 360 and Wii for $0.01This post is sponsored by PayPerPost. (more…) |