01110100110101010101011101100010
Posts tagged manipal
6 months in Citrix / Bangalore
Jul 4th

Lot of time has passed since i last updated my blog, i have finished the 7th Semester of my engineering and just one step from my degree, i have moved from Manipal to Bangalore for my last (8th) semester and I was interning at Citrix Systems, working with NetScaler Tools team. The last few days as a college student have turned out to be awesome, living in Bangalore with friends is fun (except for Bangalore’s night life which sucks big time). During the last 6 months i have learned at lot about life, universe and everything :p .

The experience at Citrix was great mostly because of the kind of work and guidance i was given, we arrived in Bangalore on 3rd Jan, it was weird that no accommodation was provided to us for the initial weeks, but since manipal is one night journey away from bangalore, we came here after our exams and searched for a flat, we finally decided on a flat in Cambridge Layout (near Indiarnagar) since it was pretty close to our work place which was near brigade road !! I was working with the NetScaler Tools team on a internal stress testing tool called BlackWidow, the best thing about my work at citrix was that i had to work with FreeBSD kernel, which meant i had to use *NIX development tools (cscope/vim/kgdb which is what i am pretty comfortable with) and not some bloated IDE (for me Vim + cscope > any IDE) which i had to learn for my last internship at microsoft, this helped me get started pretty quickly which surprised my mentor, although i was not assigned the feature i wanted to implement still my work was pretty interesting.
I found Citrix to be a really awesome company to work at, it has a lot of interesting products, the people are friendly and helpful and the work culture is great, ohh and not to forget the facilities they provide to employees, but one thing that I noticed during my internship is that the work can become monotonous, so you really need to pitch in and get some interesting work or one might end up doing similar work again and again, but then i think thats the case with most of the places.

The main motive behind me coming to bangalore was meeting interesting people, not that people in Manipal were less interesting, i wanted to meet with some ‘similar’ minded people. I had hardly talked to other people from my college who interned with me, but they turned out be interesting, also interns from other colleges like PeeShit (read PESIT) were interesting. I didnt actually went out to meet people, but then i guess i can do that now as i am going to stay in bangalore. A few days back i met folks at Artoo on their Demo Day, they are doing some really interesting work.

My internship is over but I will be staying in Bangalore for my first full time job, i have a few on campus and off campus offers but more on that some time later, Thanks to my flat mates Mikhail Jacob, Sohil Himanish and Tushar Dadlani for making my stay in Bangalore awesome and Thanks to my mentor, manager, all fellow interns and everyone else at citrix for making my work awesome, you people rock !!
Game On / Weekend Project III
Sep 25th
Few weeks ago I posted about playing pong using tilt sensors on the phone, Now me and Abhimanyu have taken that to the next level and have made it a generic game controller for any game running on the computer. We faced some problems when Abhimanyu’s Samsung Wave refused to work, but luckily i bought a Samsung Galaxy 3 (Android 2.1) about a week before that, so we shifted out focus on Android.
For Game On we make use of the phone’s sensors and touch screen to generate different gestures and motion events, we use these events to generate control data and sent the control data over a socket to the computer over a wireless network. On the PC the received data (different for each motion event or gesture) is processed by the computer and a specific task is performed, in this case generating a Key Event.
The Code for Game On can be found on github
Here is a video of the android phone (Samsung I5800 Galaxy 3) being used to control a car racing game.
And now the working
After this we decided to work on something which i wanted to finish a long time ago (remember Weekend Project I) so we finished Weekend Project III which is well Weekend Project I + Weekend Project II
And the working of Weekend Project III
The Data Flow is Phone —-WiFi—-> PC —-USB—-> USB to RS232 Converter —-UART—-> MicroControler —-Relays—-> Toy Car Remote —-RF—-> Toy Car, which is almost same as that of Weekend Project I, except for processing of Sensor Data on Phone.
PS – if you were not able to look at the video’s above they can be found here, here, here and here, also Game On won 2nd prize in Mobi Vision – a mobile application development competition
How Manipal got its first Linux (fedora) server
Jun 25th
It all started with a failing Student’s Teacher Feedback System, designed by few fourth year students of my college, in oct-nov 2008 the system was not able to scale and everything was reverted back to paper, it was then when i was contacted by a teacher from my Department ( Information and Communication Technology ), regarding if i can improve it.
i asked DJ if he wants to join me and after few weeks of coding there it was Manipal university’s first (working) Feedback System, when the point of hosting it came, i was surprised to find Manipal University has no Linux servers, i mean come on no Linux what are you people click sys admins, then we decided to setup our own server in the department, thus giving Manipal university its first Linux ( fedora 10 ) server.
currently it just hosts the Feedback System, but we are planning to use it as local ( internal ) fedora repository mirror, we need permission from the WiFi provider ION because almost all the students use only WiFi and not LAN, last time we tried we were denied by saying ” You are a threat to our network “, lets see how it goes this time. we will also require people to manage it but i think this can be handled very well by LUG Manipal, some pics
PS – i am looking for a way to convince them that setting up a mirror will be helpful for them as well as students can anyone suggest me how to go about it??
JavaFX and Pong
Mar 1st
There was a workshop conducted by engineers form SUN in our college regarding JavaFX, which went quite well. I was planning to start with JavaFX but as there was no Official release of any Linux SDK, it kept me back but this semester i had to install Windows because of my University which wants me to use Visual Studio for my mini project this semester, so as i had Windows (unwillingly) on my system i planned to go and attend this JavaFX workshop.
From what i have learned in these two days, JavaFX looks promising for developing Rich Internet Applications, the language is somewhat a mixture of JavaScript and Java. With Type Inference , Audio/Video support etc making it very easy to use and create applications with.
In the workshop after every thing was over we were asked to make a simple application in JavaFX, so here is my code for a Simple pong game in JavaFX
the resolution is set to 1440×900 you can change it to your resolution in the code
More >
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)
LUG Manipal’s Python Workshop
Jan 26th
LUG Manipal is organising a workshop on Python, which is a dynamic object-oriented programming language that can be used for many kinds of software development. It runs on Windows, Linux/Unix, Mac OS X, OS/2, Amiga, Palm Handhelds, and Nokia mobile phones. It comes with extensive standard libraries, and can be learned in a few days.
The workshop requires no prerequisites, even knowledge of C is not required, it is aimed at people interested in beginning programming with Python.
There is no charge for the workshop and no registration is required, everyone is invited.
People using Windows are requested to Install the Following Software before coming to the workshop
1) Python 2.6.1 from here
2) Notepad++ from here
Note: These will also be distributed on the first day of the workshop, If you are not able to install/download them you can get them there…
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
Using YUM with a proxy Fedora
Sep 27th
Finally i got a chance to use the awesome LAN at the college campus and it was a very good time to update the packages, but there was a problem it had a proxy, so i typed man yum and was pointed at man yum.conf and there it was a simple solution, all the you need to do is just edit the yum.conf file as root
type
su
enter your root password now type
nano /etc/yum.conf
here add a line
proxy = http://address:port
replace the above code with the address you need like 172.16.19.10 and port 80 in my case and all will work just fine
Enjoy!!!
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!!!!!!!
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……














