Pages

October 25, 2012

The iPad mini size isn't a design choice - it's a technical requirement



Yesterday, Apple when up on stage and put the Nexus 7 and the iPad mini side-by-side. They quickly told us how the iPad mini had a larger screen size and therefore could fit more content in it. But let me make something really, really clear - Apple themselves knows that the Nexus 7 and Kindle Fire 7-inch sizes are perfect for their form-factor. The reason they did that comparison was to convince you otherwise because they didn't have a choice but to make their device wider.


Why didn't they have a choice? Well, I've said it once and I'll say it again - iOS apps are ridiculously tailored to their given screen proportions. It's actually disturbing. While Android apps scale properly on multiple screen sizes, form factors, and proportions, iOS apps won't. They're built for the specific screen you develop for. That's why the iPhone 5 goes into letter-box mode until a developer goes back and updates their apps for the new screen size. Yeesh, what a [fragmented] pain!

The iPad mini is completely proportionate to its bigger brother. Therefore, it can run iPad apps. If Apple were to release a 16:9 iPad, developers would all have to go back and reformat their apps for this brand new screen size. Like, once again, we see with the iPhone 5.


So, make no mistake - Apple didn't necessarily want to make the iPad the wide slab it is. It had to because, unlike Android, iOS hasn't been built for scaling.

Oh, and here's a slightly relevant kicker: on iOS if you want an app for both your iPhone and iPad, you need to buy two different versions of it [I was wrong about this. Developers can sell both under one purchase item. It is, however much easier to make a single, scalable app on Android using fragments.]. However, on Android? Doesn't matter if you have a phone or a tablet - you only need to pay once across all your devices. And if the developer does things right - the app will rearrange itself to use up the space on both devices properly. It just works.

Source:  https://plus.google.com/u/0/111531118192938544384/posts/T1XaRDe7sV3

August 25, 2012

How to become open to Life


In many ways, I close myself off to life in all its fullness. I close myself off to others, as a form of self defense.

It happens to all of us. When you left yourself open in the early part of your life, you likely would get hurt from time to time. That pain taught us to close ourselves off in different ways: don’t let others in, use humor to keep some distance, hurt others before they hurt you, back away from anything new, and so on.

I close myself off, and miss the world. I miss out on life when I do that.

And so I’m learning to become more open. It’s a slow process, but in many small ways I’ve learned a lot, and am much more open now than I’ve ever been.

What does it mean to be open? It means that I accept more of life without judgment, and am happier no matter what comes. It means I judge others less, criticize less, accept others more, and learn more about their wonderful particularity.

It means more than ever before I am fully experiencing life.....

...read the rest of this beautiful article here

August 18, 2012

PyCon India 2012 is here


http://in.pycon.org/2012/
PyCon India 2012 is the primary Python conference in India. A purely volunteer effort, it is being hosted for the fourth time in India, and will attract some of the best Python developers in India and abroad.

The conference will consist of tutorials, full length presentations, shorter lightning talks and open sprints and BoFs.


Keynote Speakers:

1. David Mertz is the well-known author of the "Charming Python" series
of articles published in IBM developer works. He is also the author of "Text processing in Python" and is a director of the board of members of the Python Software Foundation. He is also an expert in voting and security aspects related to voting, and open-voting in particular.

2. Jacob Kaplan-Moss is a lead-developer and co-creator of Django.
Jacob currently works for Revolution Systems and in his previous life worked for Lawrence Journal-World, a locally-owned newspaper in Lawrence, Kansas, where he helped develop and eventually open source Django.

With these two luminaries presenting keynotes and sharing their experiences with Python and their projects, and with a good selection of other talks, you don't want to miss PyCon India this year!

With a lot of interesting talks coming up (including 2 talks proposed by a core CPython developer), this is promising to be best PyCon India ever.

The last date for regular registration is August 31. Please register soon. Tickets are available here: http://pyconindia2012.doattend.com/

Important Dates: http://in.pycon.org/2012/blog/pyconindia-important-dates
Official website: http://in.pycon.org/2012/


August 16, 2012

[IMP] Branded Medicines and Generic Medicines in India

This is to inform you that medicines are prescribed (by our great doctors) by brand name & not by the generics (Ingredients). Hence we end up paying more money for the same medicine. This issue was also highlighted in one of the episodes of Amir Khan's 'Satyamev Jayate'

Follow these few steps to know more & start saving on your medical bills.




  • Click on 'Drugs'


  • Click on 'Brand'


  • Type the brand name which you are using (e. g. Metocard XL (50 mg). The site will also help you with drop down menu) & Click on 'Search'


  • Click on 'Active Ingredients(Generics)' in the last column. It will display the ingredients of the tablet.


  • Click on 'matched brands'


  • Don't be surprised to see that same drug is available at very low cost also. And that to by other reputed manufacturer.


Example: Metocard XL 50 is for Rs. 62.00 & same drug by Cipla (Mepol) is
available ONLY @ Rs. 7.00

PS: Please take your doctor's advice before solely relying and using generic drugs.

Bus Routing Project

Bus Route Identification Algorithms and Services

May 7, 2012

Improved Lease Handling in OpenNebula using Haizea

This is a presentation I had created this using impress.js . I am quiet impressed by the ease of use of this JavaScript presentation tool. Click here to watch the presentation. (Hit right arrow key to forward slides)

May 5, 2012

Amir Khan's "Satyamev Jayate" MP3 Song Free Download

Watch Satyamev Jayate on DD National every Sunday 11 AM starting 6th May 2012


You can download the High Quality MP3 song by clicking here (Or right click the link and select save link as) . For more details visit: http://satyamevjayate.in/

April 24, 2012

Steve Jobs - Stanford Commencement Speech[HQ]

A nice and highly inspiring video of Steve Jobs. When i am off track, i watch to this video. You must have visited this video previously, if not here it is in high quality. Stereo audio and cleaned video in webm format. You can download and share freely.



Download video: WebM format

April 15, 2012

Don’t work. Be hated. Love someone.



I could connect to this very well as I am about to graduate from college. Its kinda depressing and at the same time shows a mirror in your face. Someone posted this on Hacker News, I am just re-sharing.
—–
Written by Adrian Tan, author of The Teenage Textbook (1988), was the guest-of-honour at a recent NTU convocation ceremony. This was his speech to the graduating class of 2008.
—–
Don't Work. Be Hated. Love Someone.

The next big milestone in your life is today: your graduation. The end of education. You’re done learning.

You’ve probably been told the big lie that “Learning is a lifelong process”and that therefore you will continue studying and taking masters’ degrees and doctorates and professorships and so on. You know the sort of people who tell you that? Teachers. Don’t you think there is some measure of conflict of interest? They are in the business of learning, after all. Where would they be without you? They need you to be repeat customers.

The good news is that they’re wrong.

The bad news is that you don’t need further education because your entire life is over. It is gone. That may come as a shock to some of you. You’re in your teens or early twenties. People may tell you that you will live to be 70, 80, 90 years old. That is your life expectancy.

I love that term: life expectancy. We all understand the term to mean the average life span of a group of people. But I’m here to talk about a bigger idea, which is what you expect from your life.

Singaporeans have a life expectancy of 81.8 years. Singapore men live to an average of 79.21 years, while Singapore women live more than five years longer, probably to take into account the additional time they need to spend in the bathroom.

So here you are, in your twenties, thinking that you’ll have another 40 years to go. Four decades in which to live long and prosper.

Bad news. Read the papers. There are people dropping dead when they’re 50, 40, 30 years old. Or quite possibly just after finishing their convocation. They would be very disappointed that they didn’t meet their life expectancy.

I’m here to tell you this. Forget about your life expectancy.

After all, it’s calculated based on an average. And you never, ever want to expect being average.

Revisit those expectations. You might be looking forward to working, falling in love, marrying, raising a family. You are told that, as graduates, you should expect to find a job paying so much, where your hours are so much, where your responsibilities are so much.

That is what is expected of you. And if you live up to it, it will be an awful waste.

If you expect that, you will be limiting yourself. You will be living your life according to boundaries set by average people. I have nothing against average people. But no one should aspire to be them. And you don’t need years of education by the best minds in Singapore to prepare you to be average.

Lifesamess

What you should prepare for is mess. Life’s a mess. You are not entitled to expect anything from it. Life is not fair. Everything does not balance out in the end. Life happens, and you have no control over it. Good and bad things happen to you day by day, hour by hour, moment by moment. Your degree is a poor armor against fate.

Don’t expect anything. Erase all life expectancy. Just live. Your life is over as of today. At this point in time, you have grown as tall as you will ever be, you are physically the fittest you will ever be in your entire life and you are probably looking the best that you will ever look. This is as good as it gets. It is all downhill from here. Or up. No one knows.

What does this mean for you? It is good that your life is over.

Since your life is over, you are free. Let me tell you the many wonderful things that you can do when you are free.

Resist

The most important is this: do not work.

Work is anything that you are compelled to do. By its very nature, it is undesirable.

Work kills. The Japanese have a term “Karoshi”, which means death from overwork. That’s the most dramatic form of how work can kill. But it can also kill you in more subtle ways. If you work, then day by day, bit by bit, your soul is chipped away, disintegrating until there’s nothing left. A rock has been ground into sand and dust.

There’s a common misconception that work is necessary. You will meet people working at miserable jobs. They tell you they are “making a living”. No, they’re not. They’re dying, frittering away their fast-extinguishing lives doing things which are, at best, meaningless and, at worst, harmful.

Do not waste the vast majority of your life doing something you hate so that you can spend the small remainder sliver of your life in modest comfort. You may never reach that end anyway.

Resist the temptation to get a job. Instead, play. Find something you enjoy doing. Do it. Over and over again. You will become good at it for two reasons: you like it, and you do it often. Soon, that will have value in itself.

I like arguing, and I love language. So, I became a litigator. I enjoy it and I would do it for free. If I didn't do that, I would’ve been in some other type of work that still involved writing fiction – probably a sports journalist.

So what should you do?
You will find your own niche. I don’t imagine you will need to look very hard. By this time in your life, you will have a very good idea of what you will want to do. In fact, I’ll go further and say the ideal situation would be that you will not be able to stop yourself pursuing your passions. By this time you should know what your obsessions are. If you enjoy showing off your knowledge and feeling superior, you might become a teacher.

Find that pursuit that will energise you, consume you, become an obsession. Each day, you must rise with a restless enthusiasm. If you don’t, you are working.

Most of you will end up in activities which involve communication. To those of you I have a second message: be wary of the truth. I’m not asking you to speak it, or write it, for there are times when it is dangerous or impossible to do those things. The truth has a great capacity to offend and injure, and you will find that the closer you are to someone, the more care you must take to disguise or even conceal the truth. Often, there is great virtue in being evasive, or equivocating. There is also great skill. Any child can blurt out the truth, without thought to the consequences. It takes great maturity to appreciate the value of silence.

In order to be wary of the truth, you must first know it. That requires great frankness to yourself. Never fool the person in the mirror.

Behated

I have told you that your life is over, that you should not work, and that you should avoid telling the truth. I now say this to you: be hated.

It’s not as easy as it sounds. Do you know anyone who hates you? Yet every great figure who has contributed to the human race has been hated, not just by one person, but often by a great many. That hatred is so strong it has caused those great figures to be shunned, abused, murdered and in one famous instance, nailed to a cross.

One does not have to be evil to be hated. In fact, it’s often the case that one is hated precisely because one is trying to do right by one’s own convictions. It is far too easy to be liked, one merely has to be accommodating and hold no strong convictions. Then one will gravitate towards the centre and settle into the average. That cannot be your role. There are a great many bad people in the world, and if you are not offending them, you must be bad yourself. Popularity is a sure sign that you are doing something wrong.

Loveanother

The other side of the coin is this: fall in love.

I didn’t say “be loved”. That requires too much compromise. If one changes one’s looks, personality and values, one can be loved by anyone.

Rather, I exhort you to love another human being. It may seem odd for me to tell you this. You may expect it to happen naturally, without deliberation. That is false. Modern society is anti-love. We’ve taken a microscope to everyone to bring out their flaws and shortcomings. It far easier to find a reason not to love someone, than otherwise. Rejection requires only one reason. Love requires complete acceptance. It is hard work – the only kind of work that I find palatable.

Loving someone has great benefits. There is admiration, learning, attraction and something which, for the want of a better word, we call happiness. In loving someone, we become inspired to better ourselves in every way. We learn the truth worthlessness of material things. We celebrate being human. Loving is good for the soul.

Loving someone is therefore very important, and it is also important to choose the right person. Despite popular culture, love doesn’t happen by chance, at first sight, across a crowded dance floor. It grows slowly, sinking roots first before branching and blossoming. It is not a silly weed, but a mighty tree that weathers every storm.
You will find, that when you have someone to love, that the face is less important than the brain, and the body is less important than the heart.

You will also find that it is no great tragedy if your love is not reciprocated. You are not doing it to be loved back. Its value is to inspire you.

Finally, you will find that there is no half-measure when it comes to loving someone. You either don’t, or you do with every cell in your body, completely and utterly, without reservation or apology. It consumes you, and you are reborn, all the better for it.

Don’t work. Be hated. Love someone.

April 14, 2012

Host a Virtual ARM Environment in Linux using QEMU


I assume that you're on Ubuntu or any other Debian Linux but it should work with any Linux, you then just need to adjust a few commands.

  • Install qemu on your host system: 
$ sudo apt-get install qemu qemu-kvm-extras
  • Download the Debian netinstaller from: 
http://ftp.de.debian.org/debian/dists/squeeze/main/installer-armel/current/images/versatile/netboot/
  • Download initrd and vmlinuz 2.6.32-5 from: 
http://people.debian.org/~aurel32/qemu/armel/
  • Create a qemu harddisk: 
$ qemu-img create -f qcow hda.img 10G
  • Boot qemu with the debian netinstaller: 
$ qemu-system-arm -m 256 -M versatilepb -kernel vmlinuz-2.6.32-5-versatile -initrd initrd.img-2.6.32-5-versatile -hda armdisk.img -append "root=/dev/ram"
  • Follow the Debian installer and install it. Once the installation finishes, run the q emulator with the following command: 
$ qemu-system-arm -m 256 -M versatilepb -kernel vmlinuz-2.6.32-5-versatile -initrd initrd.img-2.6.32-5-versatile -hda armdisk.img -append "root=/dev/sda1"



References: http://www.aurel32.net/info/debian_arm_qemu.php

April 9, 2012

Compile and Install Linux Kernel 3.3.1 [stable] for Ubuntu



I compiled the Linux kernel and installed on my laptop to test. 
Here is the compiled Debian file for download : http://dl.dropbox.com/u/6852549/linux-image-3.3.1_custom.1.0_amd64.deb

It is a 64bit build so install on 64 bit systems only. I have customized this build to support modern multicore cpu's and changed kernel preemption policy to forced, for better performance. Few more changes have been done. Hibernate and suspend works perfectly on my laptop Dell XPS L502x. It feels cooler and is snappier than when it was running the previous kernel 2.6.35.

Instructions for Ubuntu 10.04 and above:
  • Download the file and cd to the download directory in a terminal.
  • Run this command: dpkg -i linux-image-3.3.1_custom.1.0_amd64.deb
  • That's it! 

Your grub will be automatically configured to add the entry for this kernel. 
Just reboot your system and choose your new shiny kernel to boot. Verify using the command uname -a in the terminal.


March 13, 2012

March 9, 2012

Greatest Speech Ever Made

I came across this video on Google Plus and couldn't resist posting it here.
This is one of the most inspirational speeches in recorded history, given by a silent comedian - Charlie Chaplin.



Download video: MP4 format | Ogg format

PS 
1. I made this video HTML5 compatible using ffmpeg utility. thanks to this article
2. Open Source Chromium browser cant play html5 videos, a bug has been filed here

5 Questions To Think About




Here are 5 big questions that I hope will cause you to go deep and become philosophical as to what’s most important in your life. Most people don’t discover how to live until it’s time to die. Ask these questions today, but come from the frame of reference that today is the last day of your life and you are lying on your deathbed:


#1: Did I dream richly?


#2: Did I live fully?


#3: Did I learn to let go?


#4: Did I love well?


#5: Did I tread lightly on the earth and leave it better than I found it?


My hope is that the answers you arrive at help you live with more authenticity, passion and joy. We’re really not here that long, when you think about it. So live your potential now.


Dream. Dare. Shine.

March 7, 2012

To The Point!


I am not available for casual chit chat, I am fine thank you and all is well. Now please come to the point and ask your question so I can think about it and answer. I may not respond immediately as I do many things simultaneously and chat is not in my top priorities. Thanks for the understanding.

February 27, 2012

The 404 Wall!

This is where virtual world meets real world!

February 26, 2012

Life Cycle of 99% Indian Engineering Students


My state has 300+ engineering colleges and my parents decided that i am going to be an engineer. so, i wrote an exam and got into one institute (luckily i can make it into a good institute where there are campus interviews.. the luck being i might have gotten 2 multiple choice questions correct than an unfortunate guy who will be discarded by our society)
Here i am in college. Nothing big here, professors are very friendly and if you are good to them(i always made it a point never to refuse whatever they ask ,,, please do not think i am homo), they will give marks, or you can later request them and because your future is at stake they will give you some marks.
when the admin password for our oracle installation did not worked, my professor in DB class wondered if we could have tried it with some more s (***) instead of 6 *s(as in ***). This is one of the A+ rated institute in the country and the professor is a phD in CS. No, the password is not made of * characters.
In the examination we are supposed to write the code (yes, the code) on paper and submit it. Most of the guys did scored more than 80% by writing an universal program (includes, defines, main (), some function names related to the problem, the usual i j k and l, loops and finally adding fflush () and return at the end ) nobody can dare try to understand what is in between.
We had this big campus placement drive, when we got the usual aptitude (if ram worked for 4 days and shyam for 5 days, in how many days the work is completed) and tricky questions ( can you write a one line c code to find if a number is even) and the most complex of them (string reversal, tree traversal) questions, leaked one day before from the previous college the company went to recruit. we all prepared well and some got lucky. most of the times, even if fail to answer any of the questions, but smile pleasantly, you got in. sometimes, even the smiling part it not necessary, you just have to act how stupid they are to ask such questions to you..
when we joined this big company, we got trained in how to use the PC and every programming language and every operating system and every technology, each one not taking more than a couple of days. We worked hard and successfully completed the training. the test is on a PC, but the question bank is known (airtel friends ad).
Now, we are put into a project, we are given a contact number of the manager and office location and were told to meet him there. we, group of 3 people (we are friends by now) try to locate the manager hard for 2 days and finally get hold of him. we explain him that we are sent by Ms.knowallthingsbutactuallydumb to work in (t)his project.
He jovially introduces us to the technical lead. TL says he will give work after some time, but meanwhile asks us to 1) collect all the birthdays,contact number, mail id, designation details of all the team members, make an excel sheet and mail it to everyone. 2)sit with a senior engineer who is doing testing (pressing keys and entering some form data in a webpage and checking the output) and we enter the data all day and give him the screenshots at the end of day.3)attend team meetings (why we are the only ones to get there first and wait for everyone for 30 mts) make MoM and email it to every one and track the action items (yes, now we know these terms.. you cant put us in noob mode)
Then this goes on for 4 months, still no real IT work. we are wondering why we are not given any work (this is the 8th month we are in the company, drawing salary). we try to get some real IT work from the seniors, but they always seem not to notice us and not taking us serious. But, being new to the environment and in doubt of our capabilities, we let this go. we make merry of the free time, enjoying the cafeterias, making (cute) friends from other teams, roaming around the big campus and then one day, the manager calls us all in. this is not the typical meetings we are experienced with, because the manager talked to us into the meeting and scheduled it as high priority calendar invite, only to us, the freshers.
Wondering if any of us did anything wrong (it is a relief to find ourselves not doing anything at all, still) we walked into the meeting. The manager is very blunt. Higher-ups (client and Delivery manager) is questioning about the productivity and inquiring what the freshers are doing in the project. Manager tells us that we need to show output and contribute to the project work. One member replies him that we never got any work assigned. Manager becomes more serious. he questions our lack of initiative and tells us that we should deliver results. He calls the team leader into the meeting and tells him that we should be working on any pending issues and asks him to track our progress.
We are scared, confused, and do not know what to do. then the TL takes us to his desk and on a white paper strip (of size A8) draws a diagram (Euclid would know better shapes) explaining to us the product, process, standards, and every other thing (you should never touch the code, you should never email anyone without it being shown to me first …) and gives all of us guest permissions to a directory/machine.
We are all happy now, we got into real IT work somehow (may be the manager is angry, but we can impress him with our work later and change it). we also heard, if we perform better we will get sent to the USA and can stay there for 3-6 months. this really motivated us. we immediately logged into the machines, started reading the code.
We could understand nothing. The code is nothing like we wrote or tried to write during our college days, it is not even like whatever is taught in training. everyone of us scared now, we the freshers. now we talked among ourselves, first to know if other guy had any answers and then to know if they dont. to approach the seniors, who always seem to be busy, either at their workstation or at the printers (i do not know why such a rush at the printer area) and to disturb them with our silly questions seemed like bad to us. so we turned to GOOG.
everyday we gone through each source file (php, html, JS, shell) and googled the meaning of everything we do not know and that is everything. the TL never bothered us after the first meeting. we are also making notes of the things and looking back, i think we could have made a wikipedia then. such was our effort, but at the end of a couple of months it did not made any sense to us, except that we now know how to write a hello world alert page in IE (sorry, it is in HTML, JS).
So, we completed 1 year in the company. our reviews are coming up but we have not done anything yet. again we are in a panicky stage. Meetings are going on, but we are just continuing taking the MoM and distributing it. Now and then, we are hearing some terms (forms, tables, elements, script, position, width, validation, anchor, cursor, layout …) we learnt from exploring GOOG. it made us feel good, but we thought we are not IN yet.
Somehow we finished our annual reviews, all of us got mid-rating and manager explained to us later that we do not get much hike as our ratings are average. One of us who stayed late hours in office because he came late everyday(he lived in some faraway place) got 1% more hike than us.
This went on for 3 more months, we using GOOG to learn some terms, and doing some job works to other team mates. like one day, i stayed overtime, took printouts of the client webpages (pages and different instances) and stacked them neatly, so the senior engineer can go through them (i do not know the need for this yet), and like this another day, when i have prepared this big excel sheet and entered Pass/Fail from another automated report and this excel sheet generated some more sheets with nice charts. Another friend of mine tracked the billing hours similarly..
Then, one day the Manager again called us. Asked us what we are doing, and it is good to see that he is very satisfied with our work. The TL also gave a good feedback and told the manager that we worked independently and always helped the team. The manager nodded, and told the TL to send our resumes to client and put us into billing. Again, we are worried. Tension is on our faces, what to put into the resume, how to answer any questions from the client…
TL asked us for our resumes immediately, we prepared them and sent it to him, but prayed to god, there be no client interview. TL called us in and told us that he modified our resumes (what a relief, but wait) and added Web technologies (meanwhile clients also know our names as we are in CC list and in some group mail lists) experience and Enterprise Apps (Oh, its time for GOOG again, for us) so that it will seem relevant to the client. We wondered what will happen, if the client asked us questions on those and we do not get selected. TL told us not to worry, he will take care of it…(this time we are courageous enough to ask the TL, because we do not want to bow our heads before a white guy)
Then, after 5 weeks (client manager is busy or on vacation hence the delay) it is informed to us that we got selected into the team. As we are already there for the last 1.5 years and working in the project and familiar with web and enterprise technologies, the client had no objection for us to be in the project. we felt so happy, manager and TL both congratulated us, and it felt like a new job joining day for us..
Now, everything is set. forget the education, trainings, friends, politics in office,, Now all that is left on the highway is to cruise at whatever speed we allow ourselves. We are all so happy, and one of the friends is already planning to move to a better paying company after 1 more year of working in Web and enterprise technologies. I am already thinking about when to ask for onsite opportunity, whether i should wait for couple of months or make my wish known to the manager right now itself?…
So, the D Day has arrived. it is the day(remember, the speech in Independence day movie).Hence forth, i will no longer be known as just me, but as a techie (forward 1 year i can add Sr. before that).
My assignment and the Project?? Usability Project.. testing the clients web platform for its usability and generating metrics and reports in rich media formats.(now, you know why the rush at the printer)

Beautifully laid out by someone on reddit. I am not the original author. 

January 10, 2012

iWoz: From the computer geek to cult icon



Steve Wozniak tells the tale of Apple's early years with such illuminating details and brio that engineers (and ordinary mortals) will feel they’d actually been on the scene. While lots of books recount this story, Wozniak says many of them “got it wrong.” So he decided to set down his own version, by book and lecture.