Image 01 Image 02

Archive for June 8th, 2007

BSNL Broadband DNS entries

Friday, June 8th, 2007

The nameservers of BSNL are very poor and sometime fail to resolve google.com and i have been struggling with this for sometime now until i changed to opendns and some more name servers .

The default when you do dhcp entry is

nameserver 192.1681.1

but this one is really bad and you will have to add opendns nameservers to you dns path .Adding them to /etc/resolv.conf doesnt help since once you issue a dhcp then ,it is overwriiten .

The workaround is

bash~/sudo emacs -nw /etc/dhcp3/dhclient.conf

then find the prepend line in the file ( usually in the first 20 lines )

and add the below line

prepend domain-name-servers 208.67.222.222, 208.67.220.220,61.1.96.69,61.1.96.71;

then on its the same old

bash~/sudo /et/init.d/networking restart

and check the http://welcome.opendns.com to see if everything is fine :)

[tags]broadband,opendns,bsnl[/tags]

down with flu :(

Friday, June 8th, 2007

seems like i will be missing podworks.in :( this weekend .

XMPPpy

Friday, June 8th, 2007

xmpppy is a wonderful little package to make Google chat bots or in general any jabber chat bot .Remember the conference bot posted earlier ?

lets see how we can actually login to our GTalk and send messages to our friends through xmpppy

first install xmpppy from its homepage.

python >> from xmpp inport *

>>c=Client('gmail.com')

>>c.connect(server=('talk.google.com',5223))

>>c.auth('yourusernamewithout"@gmail.com"','yourpassword')
>>c.send(Message('theyaga@gmail.com','Test message'))

quite simple isnt it ? .Iam working on making a simple conference bot and its not far from being finished :)

[tags]xmppy,google[/tags]


FireStats icon Powered by FireStats