01110100110101010101011101100010
Archive for May, 2008
Synaptics Touchpad in Fedora 9
May 30th
I have been using Fedora 9 from a long time and it really kick’s ass but i was facing the problem that my Touchpad was not working with it but the i found the solution here
Here is how to do it
The easiest was will be to install the package http://atrpms.net/dist/f9/synaptics/
or you can do it manually here
edited the /etc/X11/xorg.conf
gedit /etc/X11/xorg.conf
Added the following to the ServerLayout Section
InputDevice “TouchPad” “CorePointer”
add a new section:
Section “InputDevice”
Driver “synaptics”
Identifier “TouchPad”
Option “SendCoreEvents”
Option “Protocol” “auto-dev”
Option “SHMConfig” “on”
Option “TapButton1″ “1″
Option “TapButton2″ “2″
EndSection
all done logout and login again and everything should be working fine
Update: found the rpm package here
Indimeme : Techmeme for….. well India
May 20th
There is a bust of so many copy sites lateley, there is a copy of digg, there is a copy of flickr, there is a copy of every god damn site and now there is Indimeme, which appreantly is a copy of Techmeme but i wont actually call it a copy, they say that Indimeme is a meme tracker site, which indexes Indian blogs and gives a sneak peak of the hottest stories from the Indian blogosphere.
This is something that i have been looking for a while now and well we have it here anyway Indimeme still has a lot to do and am looking forward to it
PS – Exams suck!!!!!!!!!!!!!!!!!!
Creating a Simple Chat Application with Python
May 1st
Creating application with Python is very simple, here is a simple chat application made by using the socket module, it has 2 parts First Server and Second client, you run the server first and then connect the client to it, here is the code
Here is the Server Code
#!/usr/bin/env python
from socket import *
from time import time, ctime
IP = ''
PORT = 23456
ADS = (IP, PORT)
tcpsoc = socket(AF_INET, SOCK_STREAM)
tcpsoc.bind(ADS)
tcpsoc.listen(5)
while 1:
print "Waiting for connection"
tcpcli, addr = tcpsoc.accept()
print "connected from:", addr
while 1:
data = tcpcli.recv(1024)
if not data : break
print data
data1 = raw_input(">>")
if data1 == "q;t": break
tcpcli.send(data1)
tcpcli.close()
tcpsoc.close()
Here is the client code
#!/usr/bin/env python
from socket import *
IP = ''
PORT = 23456
ADS = (IP, PORT)
tcpsoc = socket(AF_INET, SOCK_STREAM)
tcpsoc.connect(ADS)
while 1:
data = raw_input("msg>>")
if not data : break
tcpsoc.send(data)
data = tcpsoc.recv(1024)
if not data: break
print data
tcpsoc.close()
the code above might not be properly intended so you can download the code from http://fb.ankurs.com/tcp_server.py and http://fb.ankurs.com/tcp_client.py
enjoy!!!



