Friday, April 4, 2014

oracle snippet for sorting by ip address


select n from t1 order by regexp_replace(regexp_replace(n, '(\d+)', '00\1'), '0*(\d{3})', '\1');

Tuesday, April 1, 2014

Simple C Web Server

Here's a nice example of practical network programming in C, about 200 loc.

http://www.ibm.com/developerworks/systems/library/es-nweb/index.html