Crazy Days

[ATOM Feed]

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?

Wednesday, April 19, 2006

 
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...:)





<< Home

Archives

April 2006   May 2006   June 2006   July 2006   August 2006   September 2006   October 2006   January 2007   February 2007   May 2007   October 2007   August 2008   September 2008   October 2008   November 2008   December 2008   June 2009  

This page is powered by Blogger. Isn't yours?