01110100110101010101011101100010
Special
Removing windows viruses from pen drives/HDD
Jun 15th
last week i gave my 250GB HDD to one of my friend and when i got it back it was filled with viruses, it was that virus which creates
Download here
PS – please be careful if you have windows programs they can also get deleted
Get updates of completed torrents via SMS
Apr 6th
This Sunday when i was giving DBUS a look and thinking about all the cool things possible with it, one of my friend came asking how can he control his torrents from anywhere and i thought controlling is ok, do you want SMS updates??, i fired up qdbusviewer and there it was a simple way to get sms notifications of finished torrents using well twitter and ktorrent, so here are the steps
1) setup your cell phone to recieve SMS updates in twitter,
2) get one more twitter account lets say ktorrent, follow ktorrent and turn device updates on,
3) now save the script below say as torrenttwit.py
4) now enter this ktorrent account username and password in the script below,
5) start ktorrent if not already started, now run the script by typing “python torrenttwit.py”
import dbus,base64,urllib2,urllib
from dbus.mainloop.glib import DBusGMainLoop
DBusGMainLoop(set_as_default=True)
username="username"
password="password"
def tweet(msg):
request = urllib2.Request('http://twitter.com/statuses/update.json')
request.add_header('Authorization', 'Basic %s' % base64.encodestring('%s:%s' % (username,password))[:-1])
request.add_data(urllib.urlencode({'status': msg.encode('utf-8')}))
opener = urllib2.build_opener()
req= opener.open(request)
s = dbus.SessionBus()
kt = s.get_object("org.ktorrent.ktorrent","/core")
def update(k):
torrent = s.get_object("org.ktorrent.ktorrent","/torrent/"+k)
name = torrent.get_dbus_method("name","org.ktorrent.torrent")
tweet("ktorrent: finished " +name())
kt.connect_to_signal("finished",update)
import gobject
loop = gobject.MainLoop()
loop.run()
you are done, now whenever a torrent finishes the script will twit and you will receive an SMS update
enjoy
ION proxy login problem
Feb 16th
a few days ago ION (WiFi provider in Manipal University) started an ISA based proxy using NTLM authentication, which according to them was a client install!!! some people were facing problem with it, like their browsers were asking for authentication (login) again and again, and repositories were not working on Linux.
So here is a simple screencast with solution for this problem it works great in Linux (esp. Fedora) i have also included configuring yum here, if someone wants to use apt-get (debian/ubuntu) they can do
export http_proxy=http://127.0.0.1:5865
Ok coming to the main point, go and download http://sourceforge.net/projects/ntlmaps/ and then watch the video here
People on windows can install python from here and then follow the steps
ION proxy problem solved
Note:- If You face any problem please post back here….
PS:- every thing in Text form coming soon… (i am lazy)
My Conky config
Nov 26th
Conky as its description says ” It is a free, light-weight system monitor for X, that displays any information on your desktop. ” which well describes all that is there, and there are many different ways to configure it, well to be presise there are 250+ objects so the configuration options are limitless
above is the image of my Desktop running conky and i have 2 file one ” .conkyrc ” and other ” .conky/ammarok ” in my home folder (i.e /home/ankur/) the files are
” .conkyrc rename the file to .conkyrc ”
and ” .conky/amarok” which is a amaroK info display script by eirc
you need to place amarok in ~/.conky/amarok make a folder .conky if it does not exist, also make ~/.conky/amarok executable, simply type ” chmod +x ~/.conky/amarok ” enjoy!!!
PS – If you dont have conky simply do yum install conky or sudo apt-get install conky
Ion Auto Login for Windows XP/ Vista
Sep 19th
Ion Auto Login ( IAL ) script written in python has been updated to a exe, that means it will run directly from your windows just by clicking ialv1.exe. To change the username and password delete the ial.info file, if you face any problem please comment on this post
download here size 2.3MB
Linux and Mac users can download this and execute it by typing python ialv1.py
Enjoy!!!!
PS – 1 known problem if no connection it there it goes into an infinite loop to come out press Ctrl + Pause or Ctrl + Break
UPDATE — the link now points to updates made by GenobZ ( Prakhar ) which makes it more efficient……… the old link is here
ION Auto Login Script in Python Version 1
Sep 17th
After yesterdays efforts i have now made a complete working Python IAL (ION Auto Login) script which can store your password and checks for login in every 1 Min and continues till you stop it, here is the Code
iimport urllib, urllib2, time, cPickle
class ialv1:
interval = 0
username = ""
password = ""
def __init__(self):
try:
f = file('ial.info')
list = cPickle.load(f)
self.username, self.password = list
f.close()
except:
print "Welcome to I-ON Auto login Script\nMade by Ankur Shrivastava\n"
self.username = raw_input("Enter Your Username: ")
self.password = raw_input("Enter Your Password: ")
list = [self.username,self.password]
f = file('ial.info','w')
cPickle.dump(list,f)
f.close()
def check(self):
data = {"loginID":self.username,"loginpassword":self.password,"flag":"0","popcheck":"0","submit":"Sign In"}
value = urllib.urlencode(data)
request = urllib2.Request("http://192.168.150.2:8080/clntAuth/clntAuth_main.jsp",value)
bol =1
while (bol ==1):
try:
open = urllib2.urlopen(request)
print "Logged In"
bol = 2
except:
print "Server Gone Crazy\ntrying again...."
if __name__ == "__main__":
i = ialv1()
while (1):
i.check()
time.sleep(60)
You can Download it here
I Love Python!!!!!!!
Ion Auto Login script in Python
Sep 16th
i was just thinking about making the very famous IAL script of DJ in python and here is it and its damn simple
import urllib, urllib2, time
username = "Your username"
password = "Your Password"
interval = 10
data = {"loginID":username,"loginpassword":password,"flag":"0","popcheck":"0","submit":"Sign In"}
value = urllib.urlencode(data)
request = urllib2.Request("http://192.168.150.2:8080/clntAuth/clntAuth_main.jsp",value)
print "Logging In\nMade by Ankur - http://ankurs.com"
while (1):
open = urllib2.urlopen(request)
responce = open.read()
for i in range (1,interval):
print (interval-i),"min Till Next Login"
time.sleep(60)
print "Logging In\nMade by Ankur - http://ankurs.com"
or downlaod
run it by typing python ial.py
it uses urllib, urllib2 and time which are the default module, you have to change the username and password to your username and password, changing the interval changes the time interval in which auto login takes place. enjoy!!
PS – current it does no check if your connection is active or not, will add that soon
iPhone on Vodafone in India
Aug 20th
The price of 31k for iPhone in India has been confirmed i recieved the following mail
Hello Ankur, Thank you for registering for your Apple iPhone 3GTM with us. We are delighted to announce that the iPhone 3G will be available in India from August 22, 2008
It will be available in 8GB & 16GB models, priced at Rs 31,000 and Rs 36,100 respectively.Be the first to get the iPhone We have received a large number of registrations. As there are limited stocks, make sure that you get yours first, by paying an advance of Rs 10,000 to confirm your booking. Where can you make this advance payment? The iPhone 3G will be available at select Vodafone Stores. All you need to do is drop in at any select Vodafone Store between August 20 and 21 and make the advance payment by cash or credit card. Don´t forget to show the iPhone booking SMS, which you would have received from us, when you visit the Vodafone Store to pay the advance. To find a Vodafone Store near you, click here Get an appointment now. No queues for you. Once you pay the advance, we will immediately give you an appointment date and time, starting
August 22 when you can come and experience a full demonstration and collect your iPhone, all ready to use with your contacts and settings, by paying the balance amount.Hurry! Limited stocks. Remember, the sooner you confirm your booking, the earlier you´ll get your iPhone. We have limited stocks and it will be on first come, first serve basis. Buy a Vodafone connection now! As you are not a Vodafone customer, you will need a Vodafone connection for your iPhone 3G.
We recommend that when you come to confirm your booking, please do get yourself a Vodafone connection too. Remember to carry a passport sized picture, photo ID proof and address proof as these are required for activating your Vodafone SIM card.Happy to help If you have any queries, log on to www.vodafone.in/iphone or call us on 9886098860 and we´ll be happy to help. Hurry and be one of the first to make the iPhone 3G your own. Regards C P Joshi AVP – Customer Service
At a Price of 31k and 36k i dont think there will be a large number of users going for i, here Vodafone seems to India what Rogers was to Canada, anyway one more reason for not going the i way!!!!!
Accessing Internet Without use of mac address anywhere
Jul 30th
I have been noticing one thing from a long time that many internet providers ( like ION in manipal ) use mac addresses to limit other people from accessing their network but they dont actually have a proper knowledge of it, so here is the way to make any computer whose mac address in not there with the service provider to use the internet and you dont have to change any mac addresses or anything, well the steps are right below
1) Find any one using Internet on the particular ISP
2) See his connection details like his IP, Subnet, gateway ( or default route ), primary DNS, Secondery DNS
3) Now in your OS set a custom IP say you saw the persons IP as 10.49.3.23 so set your IP as say 10.49.4.203 and enter other details that you found like subnet as 255.255.0.0, gateway or default route as 10.49.0.1, primary DNS as 61.1.128.65 and secondary DNS as 218.248.47.30
4) now connect to the network and enjoy ( you might have to login and there are multiple logins allowed so you can use any of your friends username and password to login )
5) And you might want to check out this if you are on ION
Now to know how it works, if you want to know how it works then continue reading else there is no need to read further
By taking mac addresses they assign you IPs using DHCP based on the mac that they have so if you assign it yourself you have no need to use DHCP and everything works just fine
Enjoy!!!!
Note:- If you get IP conflict change your IP and try again
Dell XPS 1530
Jul 12th
Finally after waiting for a long time my Dell XPS 1530 arrived yesterday and it really rockss, i was supposed to get it on 3rd July but continuous delay were caused by curfew in Indore and some other factors.
The Config is
Processor : Intel C2D T8100 - 2.1GHz
RAM : 3GB 667MHz Dual Channel
Graphics Card : GeForce 8600GT 256 MB
Screen : 15.4" WXGA+ ( 1440x900 )
WiFI card : Intel 4965 802.11n
OS : Windows Vista Home Preminum ( removed after an hour )
It looks gr8 far better then what i previously owned, HP 6515b which was given by my college MIT, Manipal.
As soon as i received my Dell first think i did was to run Windows Performance Index and the score came out to be 5.0 with 5.0 being the lowest score because of my 3GB RAM!!!

I tried some Windows Media Centre and then it was time to say vista good bye and say hello to Fedora 9, the install went without a hitch but when i booted i that my mouse was not working, a quick search on forums and i had the solution add i8042.nomux=1 as a kernel parameter and every thing was working, WiFi, LAN all worked out of the box, some yum install and my new notebook was ready to rock and roll

so here they are x144 and x121
PS – i will be heading back to manipal on 16th, waiting for a really rocking sem……….





