This blog has moved

Thanks for visiting this blog. rohitsm.com has moved to Github Pages. All the content hosted here will continue to remain accessible at the URL oldblog.rohitsm.com.

Saturday, February 19, 2011

30 Day Challenge for January

Happy New Year everyone! My 30 Day challenge for January 'To take a picture everyday' was not much of a success. mainly for two reasons. Firstly, I was a little busy with an important school project which kept me occupied for most of the month and secondly I didn't really travel that much and my daily routine and travels were almost redundant. There was nothing really interesting to photograph. However, I did remember to take photographs during the few times that I traveled.

I will be travelling in March and I intend to redo this challenge, this time with better focus. As for the photos that I took this past month, here they are*.

I managed to take only 17 from my target of 30. Some of the pictures taken at night are grainy too. Apologies. I shall remember to carry, with me, a better camera next time.

Till next time...

*Update: When Blogger was updated to the newer version, my embedded slideshow broke as a result. So I had to add a link to the G+ album instead. 

Friday, December 31, 2010

30 Day Challenge for December

My 30 day challenge for December - 'No using Microsoft products' finally ended. Here's how I found alternates to get my work done.

OS - Ubuntu Linux 10.10 (Maverick Meerkat)
Browser - Google Chrome 8.0 for Linux
Office Suite - Google Docs (Online), Open Office 3.2(Offline)
Messenger - Empathy (Contains all contacts from Gmail, Windows Live and Facebook Chat)
Email - Gmail (My school email which is hosted by Hotmail is routed to Gmail, so I did not have to log in to hotmail to check my school email). Although I don't use any clients, I have Thunderbird installed as a backup.
Games - I don't play many games. I stick to the Zynga ones more these days.
Music - Rythmbox Media player and an iPod. I used SharePod to update the iPod instead of iTunes because there is no iTunes for Linux 'yet'.
School Work - Eagle for Linux from CadSoft for designing PCB boards and yes I stayed away from MPLab IDE for a month.

I could not avoid using Windows XP in the labs at school as the authorities did not permit me to install Linux on any of the school machines in spite of me insisting that its absolutely free. But to minimize damage I used XP to the minimal amount. I worked on hardware that did not require me to use the computer too much all through the month. There is no MPLab IDE for Linux yet, so I did not have  a choice in that matter, but I stayed away from code too. Occasionally I joined my colleague to help him get past bottlenecks in programming.

Here is the funny part. Only when I passed day 22, did I realize that I use a Windows Mobile cellphone. But then again, Windows Mobile 6.5 was such a disaster of an OS that I did not use it for anything except calling, messaging and alarms. I preferred using the wifi on the iPod touch while I was on the go. So technically, the cellphone would not have made much of a difference.

I am a big fan of Open Source products. Hence the funny challenge for the last month of the decade. Inspiration from Matt Cutts.

Sunday, December 12, 2010

Funny Transitions - I taught myself to use Open Source Software

Years ago, with limited pocket money I found it hard to buy proprietary software. So I had to share computers with various family members in order to get my work done. Then came the switch to Open Source. I enjoyed a lot of the products that were available free of cost. Over time, I enjoyed using them so much that one day I eventually would give up my Windows OS and install Ubuntu. Now though, it seems like slower computers with bulky applications are not fun anymore. Now I find that I am gradually giving up Open Source software as well and switching to doing my work online. Numerous web apps make it a whole lot simpler to work.

Recently, I taught myself to use Picnik because while working on an important project Gimp gave way and crashed. When I restarted it, all my work was lost because I had forgotten to save it periodically. So is the case with office applications. I cannot afford the Office Suite from Microsoft. Even the student version seems to be quite costly when compared to the price of the alternate products - free. For many years, I used Open Office. These days, I am slowly shifting my work to Google Docs. Firstly, because they I love Google and their products and secondly because its free and easy to use. It also helps me to do away with my pen drive as the only thing I need to access my files now is my email address and password. It seems to be ironic that as the cloud gets stronger and stronger, local disks drives and computers are getting a lot weaker and prone to crashes thus making people trust them even lesser than they used to
It was a lot of fun using Picnik and it was a great learning experience for me as an amateur in photo editing. So is the case with Google Docs. I hope to eventually shift to the new Chrome OS once it is released sometime next year.

Thursday, December 9, 2010

Programming on the PIC18F4520 microcontroller

Yes! I am finally doing this. The code below was used by me for programming on the PIC18f4520 microcontroller for our Embedded Controls and Applications (ECAPP) project. This took a while to come up here as a post because I could not locate the actual file that I had saved. As a matter of fact, I am still searching for it.

The code below is the second to the latest version that I had used for the project with my group. It has not been complete as per out project requirements and therefore may contain bugs and errors, particularly in the comments section. Some of the comments that denotes values used in the main() and the ADC portion may not match the actual values that the functions are designed to do. The names of variables and functions may look a little vague, this is because they are closely related to the topic given and were meant to simulate various conditions in the project. If you know what you are looking for, you will understand what you are looking at with minimal effort.

The code below consists of topics that cover areas such as interrupts, timers (all three), ADC, PWM, CCP/CCPCON, Serial ports and the related code to configure the COM ports. Note that the code used to configure the LCD is configured as a separate lcdheader.h file. All of the programming is written in C and compiled and run using MPLab from Microchip Technology Inc.

Note: All the code below is publicly made available with my group mates' consent. 



LCDHEADER.h

Wednesday, November 17, 2010

21

I turned 21 today. This post honoring the passage of time in my life would be regarded incomplete without...

...You are young and life is long and there is time to kill today
And then one day you find ten years have got behind you
No one told you when to run, you missed the starting gun

And you run and you run to catch up with the sun, but it's sinking
Racing around to come up behind you again
The sun is the same in a relative way, but you're older
Shorter of breath and one day closer to death...

                                                    -- from 'Time' by Pink Floyd

Till next time... <3

Saturday, August 21, 2010

A student friendly Mocha Latte recipe

The mornings these days in Singapore are rainy and chilly.  A few days ago, it rained so heavily that I was awoken at 4 am with the sound of the rain pelting on my bedroom window. This carried on all through the morning and eventually forced me out of bed. Although it ruined my sleep, it was so nice that I sat beside the window watching the rain bounce of the concrete floor 6 storeys below. I grabbed my phone and tweeted sleepily about craving for a hot cup of coffee.

Later that day one of my colleagues at work helped me make a hot cup of mocha latte. It was so nice that I thought I should share the recipe. I call this a student friendly version of the mocha latte recipe as I found it quite easy to make and it required minimal resources. So here goes...

What you'll need:
My first ever mocha latte
Coffee Powder - 2.5 tablespoons
Sweetened chocolate powder - 1.5 tablespoons
Milk - 1 cup (roughly 250 ml)
Chocolate Syrup - 2 teaspoons
Sugar - Optional
Marshmallows - Optional

Method:

Add the coffee powder to about 70 ml of water and boil it to make a really concentrated coffee solution (This is something alternative to an espresso if you don't have an espresso machine at home). Naturally, strain (filter) the coffee residue from it so that you are left with only the solution. Add the chocolate powder to this mixture and stir briskly till the solution is slightly viscous and brownish black in colour. 


Heat the milk to about 140 deg F and add it slowly to the above mixture, stirring constantly as the milk is being poured. Add sugar as per your requirement. Add some foam to the top of the drink and put 2 -3 pieces of marshmallow. Decorate the top with the chocolate syrup.

Now you would be in a better state to appreciate the beauty of a rainy morning. =)

Tuesday, August 17, 2010

In conversation with Mdm. Oei. Tsu Min, Charmaine.

An edited version of this article was featured in the July 2010 issue of ENGINEERRUS (The official magazine of Temasek Engineering School) under the title of "Please Hit Me!". Below is the original transcript of the article that I had written before it was sent for editing and publishing.

How would you like to have whipped cream splashed onto your face repeatedly for 4 hours? An engineering school lecturer did just that in the name of charity. Urging students and colleagues to have a go at her, Ms. Charmaine Oei, a Communications Skills lecturer urged: “Please think of all the bad things I’ve done to you, and now you can take revenge”.

Amidst her hectic schedule, she spared time to tell me about her rather remarkable experience. It all began when she and her care group were brainstorming ideas for the CCN Day. Their stall, being located at the concourse level near the Short-Circuit canteen, was right in the middle of the excitement and prospects for a good earning looked promising. They settled on a game stall that they said was going to be ‘different’. Two of the ideas that arose from the discussion were dunking a person head-first into a tub of water and throwing pies at someone’s face. While the former was deemed a little too violent, the latter was still worth exploring. Flinging pies at a person’s face may have looked really exciting; however, no one volunteered to be at the receiving end. After further discussions, they settled on plateful of whipped cream instead of the pie. This attracted just one volunteer. So Ms. Oei surprised everyone by agreeing to be the other. “I thought it would be fun” she said, adding that she didn’t think of it as a big deal.

While the stall did attract a huge crowd of surprised visitors, however, not many people stepped up for the challenge. Both students and staff were equally hesitant inspite of Ms. Oei literally “begging” them to take a shot at her, at least for charity. While those who did step up for the challenge ensured that they missed their target, other simply paid the money but refused to take the shot. “It was a unique learning experience” admits Ms. Oei. Her perception of students changed forever after that. “I realized that they are not vicious but very respectful”. The greatest thing she said she learnt was that people are naturally very considerate and supportive about CCN day. “I didn’t feel embarrassed at all, instead people appreciated the hard work that we put in” adds a modest Ms. Oei.

Along with another game of guessing the number of chocolates in a jar, her class was able to raise a total of $89. When asked if she would do it again next CCN day, she happily agrees but expects to see more volunteers. We may see her again next time, with more innovative ideas. Perhaps it might be something about dunking a person head-first into a tub of water.