23 Apr 2016
I have been selected for the Google Summer of Code!
For the better part of the summer vacation, I will now be committing myself to write code for KDE to implement my project idea of implementing a virtual folder in Dolphin to make it easier to select files.
As a primer, the Google Summer of Code (GSoC) is an annual event organized by Google for drawing students to work on open source projects with a nice stipend, goodies, and fame. The GSoC is a term one would hear pretty frequently when talking about the technical prowess and coding culture of a college.
This year, BITS Pilani - Hyderabad Campus had a record number of a total of 7 selections! This is more than double of our previous record. This in some ways, might be the start of the technical culture wave this campus was looking for so long.
The File Tray idea for the GSoC came at a difficult time, hardly a month after the entrance exams in 2015. It was at a time I was frustrated with everything I had done and I didn’t have any energy to pursue anything at all having been completely drained out by the entrance exams prior to it. From there, the project sat on the list of “Things I Might Do In The Distant Future”. The project idea was known only to a few close friends and my tiny programming diary.
It was only till November 2015 when I stumbled across the GSoC. I began looking at open source file managers for which I could implement my project idea. I had been using Linux with various desktop environments for about 4 years at that point, so I had a pretty decent idea of what to look for. Writing this feature for GNOME’s Nautilus was the first thing I looked into as I had been using Nautilus for a while and I was a big fan of Nautilus’s simple to use interface. But, the problem was that Nautilus was a C/GTK+ project and I had no desire to move on to using C after having C++ in my comfort zone for a very long time. Fortunately, Dolphin, one of the best file managers I had used since my days of using KDE, used C++/Qt, a toolset I am much better with. I felt my project idea was a natural fit for Dolphin’s Split view mode. KDE also had an excellent record in the GSoC with a very good number of slots and a high percentage of successful projects. This began my tryst with Open Source development.
From there on, I taught myself Qt and during a Diwali vacation on campus, I managed to make a very rough prototype application of my project after coding for 6 hours straight from 11pm to 5am the next day. Following this, I subscribed to KDE’s mailing lists and after lurking around for a while, I started asking for feedback on my GSoC idea. With surprisingly positive feedback from numerous KDE developers, I realized that there might just be a non-zero chance of getting selected.
Things quickly began falling into place and I then moved on to the next step of hunting around for bugs I could fix and new features I could implement for Dolphin. The bug-fixing was as enjoyable as it was occasionally frustrating. Reading over 20000 lines of code certainly took its toll when I had no idea when how different parts of the application meshed together. In the end, thanks to the guidance of Dolphin maintainer, Emmanuel Pescosta, I managed to fix a couple of things for Dolphin and moved on to the next step of making a proposal for my GSoC application.
Starting off with making a competent proposal was like launching off ground zero as there were very few people who had successfully completed the GSoC from our campus and most of these people had graduated well before this time. I started digging around for proposals accepted by KDE in previous GSoC’s. What I couldn’t get from all the proposals was some sound advice from seniors. In particular, Naveen Jafer bhaiya (who also went on to achieve a GSoC project of his own!) helped me with making my proposal as good as possible. In the end, after painstakingly checking every word in my proposal for what felt like the fiftieth time I submitted it on 25 March, only to spend an anxious month waiting for the results which came out at 1230am IST on April 23. While it still hasn’t sunk in yet (!), I am sure that this will make for an awesome summer vacation!
13 Apr 2016
I spend a lot of time thinking since I’ve joined college.
I had postponed a lot of introspection during the two years I spent slogging away for the JEE. But now, with ample free time and practically no requirement to go to classes, I’ve finally got some time to look back and see how things have turned out. College started off on the back foot, and while 1-1 had its charms, I wasn’t exactly happy about how things had turned out at the time due to a bad time with the entrance exams for all the wrongreasons.
But I digress, as time has passed, I have learned to live with my failure a little better every day, though it still sticks out like a sore thumb on an otherwise decent academic profile. Despite this, it has been an interesting exercise is to compare what I expected from college a year ago and reality.
To be fair, BITS Pilani (this applies to all campuses, but in this case, Hyderabad Campus) has some of best internal systems among all Indian colleges. Optional attendance, good grading system, decent infrastructure, and a lot of freedom is more than what can be asked for in a lot of other colleges. Despite some glaring flaws such as the lack of a solid technical culture, this college has punched above its weight for a new institution.
But as an engineering utopia? I feel like we are way short of the mark AaronSwartz mentioned in his blog:
“Perhaps it’s natural, when doing something so greedy and practical as a startup, to pine for the idealized world of academia. Its image as a place in an idyllic location filled with smart people has always been attractive; even more so with the sense that by being there one can get smarter simply through osmosis. People describe a place of continual geekiness, of throwing chemicals into the river and building robots in free time. A magical place for hackers to just enjoy themselves.”
This aside, I am of the opinion that the version of me a year ago would have been sorely disappointed by the version of me today. I feel that I was much more hardworking and efficient back at that time. The two years in JEE preparation were undoubtedly the worst years of my school life but now looking back, those dark days brought out the best in me in the briefest of moments. Had I not prepared for JEE at all, I would have had no idea just how driven and hard-working I could be for a goal that would always be just a touch out of view.
Despite my frustrations with life during JEE preparation, the epiphanies I used to have on weekly basis with studying physics kept me going. It was a positive feedback loop with no goading required. On the other hand I can’t remember the last time I actually enjoyed learning something in class in this college. I hope it isn’t a sign of things to come when I start “engineering” coursework in my second year but as of now, I have pretty much lost all motivation to study. The unbridled enthusiasm I used to have when studying for the entrance exams and the giddy thoughts of making batshit crazy projects in college has dwindled. In my first semester, it was a convenient excuse to blame this on burnout after pushing my limits for two years but I’ve come to realize that the reason is probably shallower than that. It’s not just with academics though - wasting time still feels painful but I have nothing I want to do to fill in the gaps. Is there a cause for this? Probably. Have I figured it out? Absolutely not.
It feels like an artificial conflict of time between these misguided academic pursuits and to actually work on something worthwhile. I could put up with it in school with the thought that there would be enough free time to pursue this in college - and while there is - it begs the question why such artificial restraints on time in the form of exams are always looming in the first place.
At this point of time, I don’t know what to do. With compre in half a month but a GSoC project and a couple other projects I’ve planned in the pipeline, it’s a pretty easy decision to make the choice of which one of these two things I would want to work on. For a CGPA for which I cannot care for anymore, it might be one of the worst decisions I can make.
31 Jan 2016
Ever since I got my new Canon 700D, I’ve been looking more into photography as an art than ever before. Thanks to internet photography guides, less light pollution in uni campus than urban Bangalore, and some more proficiency with editing software, I’ve been able to produce more interesting photos than before. Another thing which I’ve changed is my stance on editing. Until recently, I was of the opinion that my photos should be as virgin as possible, with editing restricted to nothing more than cropping or watermarking. Now, I subscribe to the more accepting (but still conservative) school of thought: that editing should be used to bring out the best of an image while keeping its basic elements intact.
However, contradictory to the above, one photography art form I’ve really enjoyed doing is photography using composite pictures. In composite photography, the photographer takes several frames of a scene and then combines all the frames together using special software. I guess my favorite part about it is the surprise element of the final image - I have no idea what the output is going to be till I’ve post-processed the images on my laptop computer. It’s been very early days for me when it comes to composite photography, but here are a few photos I’ve felt are worth sharing:
Star trails! I’ve always wanted to try my hand at astrophotography, but never could due to Bangalore light pollution and due to not having a camera with good noise reduction.
These two images take advantage of the comparatively lower light pollution in the campus. These photos are a stacked result of multiple exposures - the first one combines fifty frames and the second one combines nearly a hundred. Each frame uses identical settings for the best stacking results.
We shot these from midnight till 2am using laptops for camera tethering and intervalometer settings. I can’t stress on how important having a tripod is for this - the slightest shift between frames would’ve given us terrible discontinuity in the final image. The final images were composited using StarStaX.
360 degree panorama image of BITS Pilani, Hyderabad Campus! Taken from the middle of the football field, it is a panorama of 33 images stitched using hugin for Linux. I set up the camera in a portrait orientation with the tripod and tried to make a composite by overlapping 30-40% of each image. Post processing felt like it took forever due to the gigantic images and the final image was a whopping 70.2MP (30000x2404) and is 130 MB large. Although a couple of frames were shot using the wrong exposure settings, hugin managed to do a really good job in keeping the differences minimal though there still are a couple of splotches due to my ineptitude. The uncompressed, full size version is here: https://goo.gl/iY5v14
This little planet picture uses the same panorama as the previous image. It’s a much simpler to post process this with a panorama than it appears. It was created by resizing the image to a square following a polar coordinate filter transformation in GIMP to roll the image and to line up the ends. If I had to do this image again, I would redo it at night with long exposures to give it a more spacey flavor.
As closing remarks, I’m overall pretty satisfied with how easy it is to make simple composite pictures using software. I will probably get back into making more of this again, but probably after I work on another project ;)
17 Jun 2015
As the title indicates, it’s been a while since I’ve written anything here. I don’t know if anyone still reads this blog, but I sure appreciate if you do!
So, I guess some explanation is due here - it’s been a combination of my lack of cohesive thought and lack of motivation to publish anything. Part of the reason is also that I’ve given a shot at the IIT-JEE which is something that I’ve wanted to write about for a while.
For the uninitiated, the IIT-JEE is an entrance exam for the IITs which are regarded by some as the best engineering colleges in India. The exam is held at the end of 12th grade annually. Hundreds of thousands attempt the exam. Tens of thousands slog away countless hours of their last few years in high school preparing for it. Only a few hundred actually succeed.
Like many with some strong aspirations of becoming an engineer, I stumbled upon this path a couple of years ago. I loved making/breaking things and had (what I felt) a keen interest in science, so it was a natural option for me to take some engineering related field over other options. I loved airplanes too and I would spend many happy hours on Wikipedia reading up about the Concorde (gorgeous plane), the XB-70, their engines, their airframe designs, and the engineers behind it all. I was fiercely determined to enter the aviation industry as an aerospace engineer to create a revolutionary aircraft on the lines of the Concorde.
It’s an unspoken reality that one’s chances at IIT-JEE significantly decrease without the assistance of extra classes outside school, also known as coaching classes. I joined one at the start of the summer vacation prior to 11th called FIITJEE after getting a decent fee waiver via their admission test. I was no stranger to horror stories of 11th and 12th grade for school students, but I felt things would change for the better after the brain-numbing syllabus of 10th grade.
And it did. To an extent. Things passed very quickly through the first few months of FIITJEE where I was tirelessly trying to understand every fragment of information that would probably help in making it through with a good rank in IIT Advance. My math wasn’t strongest to begin with and I trudged along with chem with ambivalence to the subject material. Studying physics, both in class and at home was amazing. Thanks to our FIITJEE physics teacher, one of the best teachers I’ve ever had, physics by acompared long shot became my favorite subject for the next two years. It always just clicked and moreover studying physics and learning something new to solve an interesting problem was just fun. I remember physics and chemistry (primarily physics) passing along with relative smoothness but it felt like I was banging my head on a brick wall with math. This led to the vicious cycle of frustration, studying to remedy my weaknesses followed by more frustration when things didn’t seem to be getting better. Despite all the apathy towards math I still managed to get through reasonably well with a consistent 2nd place in the phase tests and three digit ranks in the FIITJEE AIiTS. Unfortunately my reckless, unplanned approach towards studying in the first few months cost me greatly in other spheres of life and I was not a happy person to be around.
It was around this point in time when I felt things slipping - yes, decent ranks in the phase tests were welcome but did it actually mean anything in such a sample set? There was also a storm brewing on the horizon - in the form of organic chemistry. Hard as I tried, I could never commit the material to memory. My woes with organic chem were exemplified with a jaw-dropping 11/25 in a school UT…which meant I had spent about 2 hours studying for every mark earned in that test :P
Fortunately things slowly shaped up to look better right after 11th grade. Thanks to some quality teaching at FIITJEE and a lot time with chem textbooks organic chem started to become clearer for me. Shortly thereafter I managed to top Bangalore in FIITJEE’s classroom program in the organic chem phase test. Of all the times I’ve had to bounce back from a tight situation in those 2 years, this was probably my highest point. Suddenly, exactly a year before IIT Advance 2015, the metaphorical glass was half full and no longer half empty. There was a calm feeling of conviction of a good possibility of me making it all the way for a 3 digit rank in IIT. Yes, my math was still well behind physics and chem but I had a year to work on it, right?
Well not exactly. It just so happened that 12th grade started in full flow at this point and the constant neglect I had given to the school syllabus in 11th grade was no longer feasible. I couldn’t continue just scraping by the school exams with minimal preparation as I had done in 11th. It dawned on me that I would have to manage both school and FIITJEE a lot more efficiently if I had to have a chance with making it to a good college. While physics was chugging along well, math severely needed a shot in the arm and chem got a whole lot uglier with 4 (or was it 5?) full organic chapters hastily finished off in FIITJEE just days before phase test 4. The neglect with the other two subjects was all too visible with me scoring 20 marks more in physics than chem and math combined (no I’m not a savant in physics, just an idiot with math :P). In the middle of all this, a few competitive programming experiences realigned my goals with respect to computer science and I started liking it almost as much as I used to obsess with aerospace engineering in the past.
For me, this turned into the beginning of a massive decline. For whatever reason, I succeeded in trashing both the KVPY and the NSEP - my biggest targets for 12th grade. School marks were about okay, but still less than ideal. Not in a great shape right now, huh? It proceeded to get worse when on one day in December 2014 I heard the news that because of my US citizenship, I was essentially out of the race for NITs, IIITs (note I was still in the running for IITs though) and a bunch of local colleges in Karnataka as well.
My passion for physics notwithstanding I might as well not have studied at all for IIT till then. It was a pretty big blow. Fortunately, what the government taketh, they giveth. I could make it to NITs through their international program (DASA) solely through subject SAT scores which shouldn’t be to big of a deal given all the study towards JEE. If you’ve been reading this closely, you would have probably guessed that even that wasn’t exactly straightforward since the only available day to attempt the subject SAT before the deadline was December 6, exactly a week after I heard about this scheme. The subject SATs themselves were uneventful - 2400. Incidentally, at this time math finally seemed to be shaping up for the first time since I chanced upon this business with FIITJEE. I could reasonably solve problems when in the mood which was a big change from how I used to dawdle with the subject earlier.
Little did I know that is was the beginning of the biggest low I experienced - school pre-boards in January 2015 was an unmitigated disaster. 55% in math and about the same in chem with similarly bad marks across the board in CSc, physics, and English made for some very unpleasant conversations with my parents. Forget about JEE, at that point, even making the 80% in boards for qualifying cutoff was looking distant. Intertwined in this was the new BITS Hyderabad international admissions program which also made use of the good subject SAT score! But the twist was that they needed SAT reasoning scores too - which left me (yet again) with no option to attempt it within a week’s time after the pre-boards to make the deadline. Gave it my all - 2220 overall or 1580/1600 CR+Math. With some assurance of BITS Hyderabad, college entrance exams totally took a backseat from the beginning of this year, the primary focus from then on being the board exams.
It took a lot of effort to get started - those pre-board marks were not going to fix themselves and I had to make up almost the full year’s syllabus in a bit more than a month to stand a chance. Eventually, the rote-learning mode grew on me and the board exams came and went in March without too much drama. Just the day before my last board exam, BITS Hyderabad sent an offer letter for taking up CSc at an 80% scholarship! For a few sweet minutes the pressure of the last two years was off.
If you haven’t slept off yet reading through all that, here’s where it started to get interesting. Board exams done and dusted left me free to attempt the set of entrance exams at will - the main ones being JEE Mains/Advance and the BITSAT. With BITS Hyderabad CSc, I was of the opinion things could only get better as I could attempt all the exams with a free mind. This went on to be reasonably true - starting off with JEE Mains on the second Friday of April 2015 - I picked up 206/360 in JEE Mains with a solid 88/120 in physics, 83/120 in chem, and 35/120 (:P) in math. Though I would’ve hoped for it bit more, it turned out to be a better score than I thought it would be as the cutoffs had dropped by 10 marks from the previous year and that very few in my batch had scored higher. Much later on, it transpired that this JEE Mains score with my 95+% in CBSE would give me a decent shot at getting CSc at NIT, Surathkal campus, Aerospace Engineering at IISt, and hell, even decent choices (more so with the NTSE) at IIIT-H had it not been for my US citizenship.
With this Mains result in hand, it led me to a crucial decision - study for the BITSAT and go for it all to get CSc at Pilani campus? Study for JEE Advance instead to salvage a decent rank especially since BITS unifies their curriculum across campuses? I decided to go for the BITSAT - after all my math was in no condition for the brunt of JEE Advance but I had a good shot of making up to a respectable level for the BITSAT, which is an objectively much easier exam.
This quickly turned into an obsession - with a BITSAT textbook by my side I started optimising and gaming the whole test to the minute with well divided time sections for all the subjects and strategies for almost all the possible outcomes at each stage. Math felt like it was finally on par with the other two subjects. With strong 350-370 scores after attempting all the questions in all the mock tests without the bonus 12 questions, it looked like that the dream of two years was finally within my grasp.
But, for some inexplicable reason, I felt tremendous pressure just hours before the exam when I should have been getting a sound sleep. It was awful and I only managed to catch a few hours of sleep after finally going to sleep at 2am on the day of the exam scheduled at 830am.
The sleep deprivation didn’t augur well but that only partially sealed my fate. The invigilator gave me more rough paper than I was supposed to be given before the exam (the two rough booklets were somehow glued back to back), only to realize his mistake when I started the math section.
This can’t be happening, I thought. This isn’t how it’s supposed to all end.
My extra rough sheets were confiscated by the proctor and then it hit me that this really was the final nail in the coffin. At that very moment the blood drained from my face realising that my chances were slipping by the second. With 90 minutes left to go but with no rough paper I was very much on the verge of giving up knowing that it really couldn’t be worse. Math was never my strongest subject but attempting it without any rough paper was completely out of the question. Despite all this, I realized that I couldn’t just let a dream of 2 years fall apart for such a pathetic issue and still went on with the test - guessing everything I could on the math section.
I went for the extra 12 questions which were fine but I knew that the damage done from fluking most of math was irreparable. With the most anxiety I’ve ever experienced, I clicked the “Submit Test” button to see how I had done.
Your score: 307*
*It was later revised to 311; 118/43
Surely it was just my sleep deprived brain that was seeing things, right? I rubbed my eyes, half expecting the last two digits of the score to reverse.
I opened my eyes again. No change. Then I glanced towards the bottom of the screen and then I knew I had truly screwed the pooch.
(Correctly marked answers are worth 3 marks and incorrectly marked answers lose 1 mark from the total)
I stumbled out of the exam room/computer lab feeling absolutely numb. Speech was difficult without a torrent of tears.
BITS Pilani CSc, heck, CSc at any BITS campus through BITSAT was an impossibility. It felt crushing and terrible to work so hard and to get so close only to ruin everything on the day of the exam for some issue that I had no control over. That day was not the first time I cried myself to sleep in those two years, but at least in those times there was a silver lining in getting another chance to do well in some other exam. There was no other exam left to do well in this time.
Strangely the only solace at the time was that I had to give JEE Advance (is it spelled Advanced? My bad if it’s wrong) with absolutely no preparation due to preparing for the BITSAT instead. So, I ended up with only three days to prepare for JEE Advance and did nothing more than three previous year’s papers to make sure I wasn’t wasting time on any particular section and to ensure I hadn’t lost too much touch.
24 May 2015 was the day. I knew I was going to be in serious trouble before even opening the question paper - the cover page of the question paper itself indicated that the next three hours were going to be pure torture with a ridiculous +4/-2 marking scheme on multiple correct option questions (this means more than one of the given MCQ options could be correct and failing to mark all the correct options would make one lose 2 marks), +4/0 integer type (think: a free response question with values from 0-9), and +2/-1 match the following (which is a whole lot more sinister than it sounds when you realise that MORE than one option in a column can be mapped to the other and all the correct options are required to be marked). It was a blur - all I remember was being completely deflated and slightly relieved that my ordeal only had another three hours with Paper 2 which followed a very similarly brutal marking scheme. I felt like I was in with a chance after doing the 2014 and 2012 question papers but there was no way I could squeeze out a good score with this. It was a bittersweet feeling after the those long 6 hours - sweet to think that the sweat and toil of the last two years was finally over and bitter to see how everything concerning my given entrance exams had fallen apart in the last week. The first thing I did on getting home from the exam was to sit down in the garden, on the grass and slowly piece together what exactly had happened. There were no tears as there had been for making a mess of the BITSAT - just a quiet resignation and mild shock that dreams had been shattered for good.
Currently, I’m stuck at the difficult decision with taking BITS Hyderabad CSc BE or trying for a dual degree program at BITS Goa, taking physics and eventually CSc.
Wow, that’s easily been the longest single piece of writing I’ve ever done. I typed most of it on my phone on the plane, so apologies if it doesn’t make too much sense. If you’ve made it all the way here, thanks for reading!