I'm just another ordinary guy with crazy dreams and a wiered life...who wouldn't know what's wrong with this world and life...let's try to find what?
Freedom as in NO EXAMS...I always thought life is a funny joke someone playing on us (god?....nahhhh). After attending clases for three months (very painful process...believe me) MBA administration decided they should not let me sit for the exams of this semester, why I had only 75% attendence where 80% is required. Hmmm what a blow. In a way it is good. It seems my exams for this semester are always over, unless they accept my second apeal and let me do next sunday paper (which I don't mind stting for)....I'm so happy.
With the limited time available, I get to work on my next obsession...which I call 'netprof', network profiler a problem I face with my laptop. Most of the cmpanies bit reluntant to use DHCP for there networks. If you publish IP addresses in a DHCP it will be a threat to the company network. So whereever I go I need to change my IP settings mannually, so why not have a profiler. So we can keep all the network settings profile wise. I guess this will be useful to crazy people like me.
One problem is solved....how to check whether entered IP Addresses are in the correct format, I thought bash script with 'egrep' can do it, but to amaze me it would be very difficult to do it in regex. I tried using '^[[:digit:]]\.[[:digit:]]\.[[:digit:]]\.[[:digit:]]$' which amazingly passes the proper IP addresses including 256.256.2256.256 which is one problem and 1.11.1.1 will not get pass for some reason I couldn't justify. Still I'm looking for the pocket reference for regex (which I saw
Anuradha carrying), which is not in the market.
As a solution I came up with AWK, wierd UNIX program, still I couldn't figure out why they designed such a thing. I've used awk before but only for simple things like printing the 8th word in a sentence and things like that, but programming with awk is pretty comprehensive, I'm officially impressed. Parsing a IP address using awk is a piece-of-cake, but to parse a subnet mask (without binary support...1/0) is a difficult task (at least my stupid brain is still trying to figure out a escape plan). The escape route I think of might get me killed, but stll intend to give a try. If I post again....that means I'm through...:)