Category Archives: Hacks

Android Camp Bangalore

I got up in the morning only to find there was no electricity. Not sure if this is somewhat related to April Fool prank, but was enough to piss me off.  Checked my watch – 9:30AM and the unconference is supposed to start in half an hour! I needed to get ready and travel more than 18 kms. The next one and an half hour involved running all around the house to get ready, gulping down breakfast, hunting for buses and then finally messing up with an autorickshaw driver when he started using his random number generator for determining the fare.

Finally I managed to reach the place by 11AM. The event AndroidCamp was of an un-conference style. Upon entering the first bad news I got was that I missed a session on Arduino which went excellent.

The rest of the first half session were pretty boring except one from Kashif Razzaqui. His talk was on his experience when developing apps using cross-platforms development tools like Titamium and PhoneGap. He nearly blasted off on the technologies which I think all the geeks love to do. I can see from everyone’s face that they were really enjoying his session. He pointed out how developing anything with Titanium is a total PITA. He did use some funny and amusing quotes like

Those Apple fanboys have to use objective C which cannot be even called a programming language

If Java and XML gives you a hardon, then something is really wrong.

Not sure if both of the quotes is exact as he said, but the audience did chuckle and smile at these jokes. No one at the event did a “Well Actually”

Then Kiran told us that the food van had got lost and the driver is circling the neighborhood searching for the venue. How not, even we all had so much of problems locating the venue. During that time Kashif put up a video of Android during Google IO.

After the lunch when all of us are supposed to sleep, two sessions caught everyone’s excitement. Since I was in the “Geek” room I missed the Firmware and Rooting talk in “Suits” room. Later two sessions happened in Suits room – “Android-scripting” and “Android Rants”.

The session android-scripting was taken by Sajjad ‘geohacker’ Anwar. He is the person who works on OpenStreetMap, writes python code and contributes to Ubuntu Accessibility. He explained how and when scripting can be useful using python than writing Java code. People put up points about speed, performance of this idea, all of which was answered by him. Good job.

Sajjad Anwar presenting android-scripting

The next session was about “Android Rants, The reluctant skeptics” by Supreeth which was basically a session to tell what all issues you have with Android. Some of the topics discussed were

  • Battery
  • Upgrades
  • Fragmentation
  • iOS and Apple as a competitor
  • WP7 as a competitor

I think this was the topic where people took part with utmost interest. Comments came from all the sides of the room. Supreeth had to stop them many times to make sure that the discussion did not turn unruly or offt-topic. I don’t think any aspect of mobile ecosystem was left out during this talk which includes Android, Google, Motorola, iPhone, iPad, Blackberry, Nook, Windows Phone 7, Nokia, Palm, HP and every other entity even remotely associated with mobile phones.

The last session was the Feedback session. This was the session where everyone ended up speaking even though I thought that only a few people might express their opinion. The thing most requested was keeping such events on weekends as getting day-off is really tough for most of the people especially when it is Friday.

All the day I kept a track of the April Fool pranks starting from cyanogen quitting Android to GNOME3 getting delayed to Google Motion. On returning home, I stumbled across one excellent-brilliant-kickass article I am Jef Spaleta by Jono Bacon. This was the day! Lastly if you didn’t notice even WordPress has a small prank (for wordpress.com hosted blogs)

 

Directi Hackfest – 31st January, 2010

Ever since I learnt how to use git, there has been an urge from within to share my code, look at others and collaborate and develop something useful which everyone else can use. For me, usability is as important as functionality. Both are as equal as the other in general cases.

Rewind

Long back I once asked Abhishek Mishra (ideamonk) if we could meet up and organise a small hackfest. The aim was to let know each other’s project, meet new people, learn new things etc etc. One in these *etc* was to complete our unfinished projects due to lack of time, motivation or even know-how of some of the aspect of a technology. Long back Abhishek and Yuvraj Pandian T (YuviPanda) have collaborated on a project named PyMos which was to generate Mosaic for any image. It was written in Python and works like a charm. Give it a try.

Since me and ideamonk live in Bangalore, having a hacking session being physically present would be better than working online. Abhishek liked the idea and tweeted whether anyone is willing to give us space for this event which has wifi. He instantly got a reply from The Chef of CodeChef and there we had a space in the Directi office. Thanks to all the kewl cool people at Directi with “Hacker Mentality” for supporting us.

Agenda

Abhishek invited his friends for this session and two of them turned up – Ishaan Chattopadhyaya and Rohan Prabhu. Naresh from Directi was waiting for us. When we came in, there wasn’t any plan on what needs to be done, as we expected to work out on a common interest field. Ishaan had to speak on Location Based Search and me on CodeIgniter (PHP Framework). Abhishek had some projects like sahanapy and creating a GUI over apt-offline.

Talks

Till this time I had a feeling that we won’t be working much today since I didn’t knew anyone apart from Abhishek. To learn more, we first had small talks so that we can know each other and their interest of fields. Ishaan talked on Location based search which includes geographical searches like Google Maps. It wasn’t a very exhaustive one, but a pretty nice explanation of what all complexity lies beneath the hood.

At this time, we were total 4 people – me, Abhishek. Rohan, Ishaan and Naresh(Directi)

Then I went to speak on CodeIgniter which is a Framework of PHP. As opposed to what I said earlier, it actually doesn’t look like a framework, since it does not have many of functionality which make a F/W. This is what I explained – why it has only the things which we want, awesome documentation and a dead simple setup. It is just a set of classes which relive you from messing with  lower level functionality. Since it is very simple, there is hardly any overhead with speed. You get only the basic boring things and complicated and interesting things are left to you.

Code

Abhishek showed us apt-offline which is an utility for getting updates, upgrades and packages on a Debian based box which does not have internet connection. The system on which these updates,upgrades and  package download is done can also be windows. Typical situation is you have a very slow or no internet at home, but blazing fast net at workplace. You would be tempted to use office net to download the packages and update your local index, install updates and install packages.

This utility was created by Ritesh Raj Sarraf long back and was just a command line based application. Abhishek had tried it and it works flawlessly. All which was missing was a GUI over it. It first looked like an easy task. Use Qt Designer and drag-drop every control and here we go. This way of development had a big flaw. The GUI developed is no better than the CLI since the clueless non-techies wont understand words like “apt-offline set”, “apt-offline get” etc etc. Even it took me a minute or two to actually get what all these mean.

Rohan can be called a Qt geek. The guy knows each and every class and it’s properties and event etc etc. This made us even more interested since he is always at disposal to help us and teach us more. By this it was pretty late and we were wondering if could do something worthy at that time. Then we decided to work only on UI as of now, make small changes in the core class to accommodate the GUI which is otherwise hard-coded. We had to dive in the code to get better knowledge of how apt-offline works as there is hardly any documentation apart from one written by Ritesh himself.

Conclusion

I don’t have much idea of Qt and this was a good learning curve. I agree that this hackfest didn’t pay off well as we expected. Most of the time we spent in discussing data structures, algorithms, Qt, git etc etc. which was again as usual – AWESOME.

My personal expectations from such sessions is to create some useful software and not just YAXX (Yet Another XX). Functionality, Usability, Accessibility and Documentation – all matters equally. I would also like to slowly slowly move on more tougher and promising things like kernel and filesystem level coding.

Winding up, this is just a start and I have great expectations from these sessions. I would like to again thank the Directi guys and the other people who were supposed to come but were not able to turn up due to their personal commitments.