01110100110101010101011101100010
Posts tagged ankur
MobiVision, Techtatva 08, LUG Manipal and lots more….
Oct 20th
I am posting to my blog after a long long time and a lot has happened, first Lets start with MobiVision.
MobiVision (Brain child of Subhendra Bhaiya) was a workshop conducted by people from LUG Manipal ( well not officially but everyone involved in it was from LUG Manipal ) as the name suggests it was on developing Application for mobile Plateform, basicly targeting Python for Series 60 and Android, We were expecting turnout of around 100 people and more the double turnout took us by surprise, it saw a partisipation of over 200 which comprised of guys/gals from First to Fourth year which was really amazing we even had people doing PG showing Interest, we had some trouble managing them in 2 rooms which were alloted to us but in the end every thing turned out pretty well. We had 2 Teams ready one for Python S60 and one for Android, Both teams did a great job and made Mobivision the most sucessfull Workshop in Techtatva 08.
Next was Techtatva 08 which is the annual Technical Fest of Manipal Institue of Technology, Manipal, Here again LUG Manipal was in full control ( and again not officially!!! ) we were to conduct events for the Computer / IT Catagory called ” PARAM ” and we planned to change the previously conducted events so as to make them fit in the 4 basic catagories of people –
1) ” MobiVision ” for Inovators here teams where to come up with a inovative Idea for Mobile Application and a prototype
2) ” Jour ” for Developers here teams were to make any one of the three Projects and give a Presentation and Demonstration of their product
3) ” CodeBytes ” for Programers the usual problem solving event with not so usual questions
4) ” Puzzle Mania ” for Every Day internet users comprising of all sorts of Puzzels
all the events saw good participation from all years and were prased for not having a single glitch.
I also made a Deligate and Event Registration system for managing and registering all the people coming for Techtatva 08 and also a CBT ( Computer Based Test ) system for priliminary rounds of some events, it was all basicly made in PHP and used MySQL as primary Database and was hosted on a Fedora 9 ( for those of you who dont know what it is — Its a GNU/Linux Distribution and also my Primary OS ) based server running Apache in Student Councels room because we/I were/was denined permition to host it on the main Manipal University server, they said “You are a Threat for our Network!!!” ??? which left me wonder what kind of stuff they do there and what did i do to them??? ( reason for which i got to know later ) anyways we managed to get a lab computer for using as a server, it had a AMD Athlon x3800 CPU, 80 GB HDD and 1GB RAM, which was all i needed for my work, the PC was formatted and fresh Fedora 9 was installed on it, after this all updates were applied which didn’t took much time as the connection there is not at all like I-ON and is at least 10 times faster ( well it was MAHE LAN and I-ON is WiFi but still!!! ) some changes in http.conf and iptables and it was ready. The System ran without a glitouch except when someone made the LAN cable for the server loose which made all on Registration Desks shouting but luckly everything was back online in 2-3 mins. The CBT’s also ran very good and results were decleared as soon as the alloted time was over and there were no objections.
Well this is enough for a post now 3rd Sessionals are approaching and i need to study as i screwed my 2nd sessionals, so bye
Ankur Shrivastava
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!!!!!!!
Hello Planet Fedora
Jun 6th
Hi everyone!
This is my first post on Planet Fedora so i think i should introduce myself
My name is Ankur Shrivastava, i am doing my BE-IT, I have been running linux since 2004-2005 and Fedora is what i really love, anyway you will be seeing me around……….
First Manipal Facebook application
Apr 15th

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
Apr 12th
[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!!!!!!!
Automatic Login and pop-up block on I-ON
Apr 9th
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………..
Planet is now Online
Apr 4th
Me moving to a proper hosted blog also means that everything is on a proper server, So the good news is that Planet Manipal is now online , that means it will get automatically updated every 4 hours and i wont have to Update it manually which will make it more usefull and i have also noticed that not all Manipal bloggers are on Planet rite now, So if you have a blog and are intrested in getting the blog aggregated in Planet Manipal you are most welcomed just mail me ankur{at]ankurs[dot]com with your feed url, Name and Batch
Keep Blogging
3D effects on fedora 8 on ati 1250
Dec 11th
First enable the Livna repositories type
su
rpm -Uhv http://rpm.livna.org/livna-release-8.rpm
then type
yum install kmod-fglrx xorg-x11-drv-fglrx xorg-x11-drv-fglrx-libs-32bit
yum update kmod-fglrx xorg-x11-drv-fglrx xorg-x11-drv-fglrx-libs-32bit
service fglrx restart
fglrx-config-display enable
now restart your xserver by pressing ctrl + alt + backspace , then after restarting go to terminal type
fglrxinfo
you should see something like this
display: :0.0 screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: ATI Radeon X1200 Series
OpenGL version string: 2.0.6958 Release
and then run
glxinfo
you should see some thing like this
name of display: :0.0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
GLX_ARB_multisample, GLX_EXT_import_context, GLX_EXT_texture_from_pixmap,
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_OML_swap_method,
GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_visual_select_group
client glx vendor string: SGI
client glx version string: 1.4
.......................................................
now you can proceed with update of Compiz, for this add the compiz fusion repo login as root and type
wget http://www.dfm.uninsubria.it/compiz/fusion/compiz-fusion.repo
cp compiz-fusion.repo /etc/yum.repos.d/
before install remove the old packages type
rm -rf /home/*/.config/compiz
rm -rf /home/*/.gconf/apps/compiz
now install compiz
yum install compiz-all fusion-icon-all compiz-fusion-plugins-unsupported compiz-bcop ccsm emerald-themes
after this we have to downgrade xorg-x11-server-Xorg for all i386 (32bit) users type
wget http://koji.fedoraproject.org/packages/xorg-x11-server/1.3.0.0/9.fc7/i386/xorg-x11-server-Xorg-1.3.0.0-9.fc7.i386.rpm
rpm -U --oldpackage xorg-x11-server-Xorg-1.3.0.0-9.fc7.i386.rpm
For x86_64 (64bit) users type
wget http://koji.fedoraproject.org/packages/xorg-x11-server/1.3.0.0/9.fc7/x86_64/xorg-x11-server-Xorg-1.3.0.0-9.fc7.x86_64.rpm
rpm -U --oldpackage xorg-x11-server-Xorg-1.3.0.0-9.fc7.x86_64.rpm
now we have to prevent xorg-x11-server-Xorg from upgrading so we blacklist it
gedit /etc/yum.conf
add
exclude=xorg-x11-server-Xorg
at the end and enjoy your 3D effects ……………
PS:- Dont enable too many plugins it will slow things down and there is some problem that i face with the Expo plugin dont enable that
Twit from command line (Linux)
Dec 4th
Here is a thing that i found during searching for a completely different things, you can update your Twitter status simply by using curl which is most of the time installed by default so here is the command
/usr/bin/curl -u username:password -d status="your tweet" http://twitter.com/statuses/update.xml
it simply updates your twitter status, this is extremely simple and could easily be used to update status, but the problem is that it contains your password and you dont want to display your password so you can make a simple script for it which asks you for the tweet and displays if successful or not
#!/bin/sh
echo Post your tweet.......
read tweet
/usr/bin/curl -u <username>:<password> -d status="$tweet" http://twitter.com/statuses/update.xml
if [[ "$?" == 0 ]];
then
echo Updated successfuly!!!!
exit 0
else
echo Something went wrong try again!!!!
exit 1
fi
to make it just login as root by ‘sudo -i’ or ‘su’ and type gedit /usr/local/bin/twit now paste the script and replace <username> and <password> with username and password of your twitter account and save the file, we will change the permissions for the file and make it executable by typing chmod +x /usr/local/bin/twit all done now when you want to twit just type twit on command line and let the world know what you are doing.
PS:- if you are on twitter feel free to add me http://twitter.com/ankur
Fedora 8 the Werewolf
Nov 11th
So finally Fedora 8 is here and i am still confused about what to use as my base OS Ubuntu / OpenSUSE / Fedora or Debian, anyway more on that Later, so here are the First impressions……..
I booted into the Fedora 8 Live Gnome CD on my HP6515b Lapptop and the cool grub splash i was greated with the X server error and there i was searching for my pen drive for the ATI Drivers, which was no were to be seen which forced me to search for the drivers in my not so arranged data, after struggling for some minutes and mounting 2-3 drives i finally found them, after the drivers were installed everything ran fine and i was presented with a nice Gnome desktop and i really liked the wallpaper, it made every thing look great, then clicking on install to Hard Drive gave me a Ubuntu Like install Wizard. the only problem i faced was with grub boot options it should have looked for the GNU/Linux distro’s already installed (dont care/know about Windows as i dont have it) on my system but scinse in had my boot loader on MBR that was wiped clean, anyway setting up GRUB in not that hard i just reinstalled grub with my SUSE partition as root and added the Fedora entries to the menu.lst and the job was done.
Anyways overall the experience was good without any trouble (except for the drivers about which nothing can be done by them) but one problem that i face is again with my Broadcom WiFi chipset for which i will have to use ndiswrapper which is giving trouble installing, anyways i have only worked on that for 5 min but its not a big problem and will soon be solved.
Update 1 :- i formated my previous installation with 64bit DVD version
Update 2 :- WiFi problem was there because i was using ndiswrapper package build for kernel 2.6.23.1-49 while mine was 2.6.23.1-42 buildig ndiswrapper from the source solved the problem.









