Synaptics Touchpad in Fedora 9

Posted on May 30th, 2008

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

Posted on May 20th, 2008

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

Posted on May 1st, 2008

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!!!

Installing Ndiswrapper on Ubuntu 8.04

Posted on April 27th, 2008

I installed Ubuntu 8.04 today and faced this problem of WiFi again but ths time even installing ndiswrapper diddnt worked so had to find a way to make WiFi work on boot and here it is

For this First You need to install ndiswrapper, no need for net coz the packages are included in the CD / DVD of Ubuntu just go to System>>Administration>>software sources then uncheck all downloadable from internet, Third party and Update repo’s only select Installable from CD-ROM/DVD. Now open a Add/Remove from Applications>>Add/Remove.. there select all avaliable appliactions in show, now seach for ndis you will see Windows Wireless Drivers select it and click Apply changes it will ask you for the CD insert the CD and it will get installed, now you just have to install the drivers of your card for this open System>>Administration>>Windows Wireless Drivers and install the windows wireless drivers ( bcmwl5.inf for hp6515b bcm4312) now follow these steps, type
sudo -i now you must be as root then type
nano /etc/rc.local the file should read
rmmod ndiswrapper
rmmod ssb
modprobe ndiswrapper
exit 0

all done now just reboot and enjoy your Linux……..

Manipal Bloggers Meet

Posted on April 18th, 2008

So am at the Manipal Bloggers meet with 4 of my friends and well the updates are coming up on twitter so check my twitter feeds http://ankurs.com/twitter And also check out Manipal Blog feed agregator http://planet.ankurs.com

First Manipal Facebook application

Posted on April 15th, 2008

I have made a facebook application on the lines of all those What ______ are you??? and its What MIT Character are You??? its written in PHP and is well the First Manipal Facebook application as fas as i know….. and well i am seriously waiting for more questions for the app so plz tell me if you have any

PS - Questions on the application were given by Ravi and Ankit, and the final character by Dinkar and Me……

Shell History Memo

Posted on April 12th, 2008

[ankur@x121 ankur]# history|awk ‘{a[$2]++ } END{for(i in a){print a[i] ” ” i}}’|sort -rn|head
360 sh
144 yum
67 poweroff
62 nautilus
41 nano
26 mysql
23 python
18 ssh
18 exit
12 kill

PS :- I have a lot of shell scripts made for my daily tasks!!!!!!!

Ice Age 3 : Dawn Of Dinosaurs

Posted on April 10th, 2008

Ice Age was the movie which was/is love a large number of people and well yes there is going to be a 3rd part to it Dawn
Of Dinosaurs which from the teaser looks gr8 but it will be July 2009 and that is a hell lot of time that i will wait……….. any way check out the teaser here

Automatic Login and pop-up block on I-ON

Posted on April 9th, 2008

Are you sick of the same I-ON login page that asks you to enable pop-ups every time you open your browser and try to access the Internet, are you sick of entering your username and password again and again. I think i have a very very simple solution for all your problems. Just copy the below code and save it as any name say ankur.html and just make it homepage of your browser and dont forget to replace “your username” and “your password” to the actual one you are using, now whenever you open your browser TaDa you are all set to go and one more thing if you dont want the pop-up you can just disable them no need to enable them
Copy from here

<script type="text/javascript">
function login()
{
document.loginframe.submit();
}
</script>
<body onload="login()" >
<form name="loginframe" method="post" action="http://192.168.150.2:8080/clntAuth/clntAuth_main.jsp">
<input type="submit" value="Sign In" >
<input type="hidden" name="loginID" value="your username">
<input type="hidden" name="loginpassword" value="your password">
<input type="hidden" name="flag" value="0">
<input type="hidden" name="popcheck" value="0">
</form>
</body>

Till here

This is a very simple method you can understand it just by reading the above code, i knew this method from a long time but have posted it now because of a recent event anyway dont forget to replace “your username” and “your password” to the actual one you are using
Happy Surfing!!!!!

PS - I will really be happy to hear if it helps you or not………..

Google announces AppEngine

Posted on April 8th, 2008

GoogleCode at their second CampFireOne announced App Engine a developer tool that enables anyone to run their web applications on Google’s infrastructure , which will be a closed beta with with only 10000 developers having access on first come first serve basis. its similar to AWS (Amazon Web Services) but takes every thing further. Google App Engine applications are implemented using the Python programming language. The runtime environment includes the full Python language and most of the Python standard library. App Engine also includes a scalable datastore, Django templating system and an open-source Python logging system. Its also provides authentication, analytics and access to Google service APIs. There is also a SDK available for local development. It also has the ability to move apps to the web in just a single command.
Google will also provide 500 MBs of storage and enough bandwidth and processing power to serve 5 Million pages per month along with a free subdomain on appspot.com or you can also use google apps to server the app on your domain

If you’d like to try it out, sign up for access to the preview release (well 10,000 limit has been reached sry hard luck) but you can download the SDK and try building the apps locally till you get an invite. You can also check out their blog http://googleappengine.blogspot.com/ for more updates and info