In my hostel, we use asianet dataline internet connection. The connection is established through a webpage authentication and it needs to keep that webpage always open in the browser to get the stable connection. Once we login and releave that page, after five minutes it will require a re-login. Its a real hurdle to keep a page open in the browser for internet authentication.

I just analyzed the http requests from that page and automated using the curl utility.

Here is the script it feel, it would be useful for many.

#!/bin/bash

customer=CNXXXX
password=XXXXXX

if [ -n "`ifconfig | grep -A 1  wlan0 | grep "inet addr"`" ];
then

curl https://mwcp-ekm-04.adlkerala.com:8001 --data "auth_user=$customer&auth_pass=$password&accept=Login" &> /dev/null

echo "Connected :)"

while true
do
	sleep 300
	curl https://mwcp-ekm-04.adlkerala.com:8001 --data "alive=y&un=$customer" &> /dev/null ;

done

else

echo "Wifi not connected";

fi

Copy down the above script in a text file and rename to internet.sh

slynux@slynux-laptop:~$ chmod a+x  internet.sh
slynux@slynux-laptop:~$ ./internet.sh
Connected :) 

This script has an initial check for ethernet interface. Here it is given Wifi interface, wlan0. If you use a LAN for connection change wlan0 to eth0 and the message as well :)

Happy New year to all :)

The 2009 has end. When I look back to the year 2009, lots of events and moments scroll around my mind. It was a very unique year in my life till now. Till 2009, I was very rigid with my thinking and activities around. I was categorized to be a geek and I lived around that circle. But there happened lots of changes and the environment was totally different in the year 2009. I watched more around the world rather than sitting in front of an electronic box most of the time. i started to become more social. I received more new friends, lots of fun, lots of serious stuff and lot more.
Only one word suits better for that year with respect to my life, its very “Dynamic”. The year brought to me a lot of changes, lots of life learnings, lots of visions. It was really awesome to keep in memory.

2010 started off with nice traits. We had a lot of fun with friends around. I am doing absolutely nothing these days. But I love the very calm and peaceful environment around.

But more techie savvy stuffs are in my workshop TODO, it includes Android, Linux kernel and more fun.

Once again, wishing you all a very Happy new year 2010.

Foundation for Youth Social Entrepreneurship(FYSE) has launched their Paragon100 website and has published the list of Asia’s most inspiring and social change makers. Check out http://www.paragon100.asia

It is interesting to see that around 50 out of 100 entreprenuers are from India.

It is glad that Ram Kumar is chosen to be one of the future 100 entrepreneurs in Asia. Dreamajax has been growing fast in the recent couple of months. They have recently launched WSNIndia, A platform for Wireless Sensor research based on Zigbee protocol. During the time I first visited Dreamajax during last july, it was a small company with 25 people around. Now the employee number has grown around 100 and they are expanding in more cities.


See the bleeding edge research of 2009 :)




http://www.ted.com/talks/pattie_maes_demos_the_sixth_sense.html

http://www.pranavmistry.com/projects/sixthsense

Once after I have completed watching this video, a relevent question came to my mind. Why does these kind of innovative research never happens in Indian universities ?

« Previous PageNext Page »