Experience is the Product

in

Calling global variable "foo" is a shooting offense

in

How many times you come across the code and feel like 'arghh..., the programmer should be beaten to death'. Well, let's try to change the world step by step. Here I present the Linux Coding Style (Original) and Linux Coding Style (New) which mind you are quite opposite to GNU Coding Standards. I prefer former as they are much more obvious and cleaner than the latter. Nevertheless, GNU Standards are good to read and there are many good pointers and caveats for new programmers.

My pet peeve is "long lines.. almost running into screen of the person next door" For god's sake, I hate bugging him now and then just to read that line. Do everybody a favor and keep it to 80 columns please.

LTE vs WiMaX

There is a good article on GigaOm drawing comparisons between this two technologies. My comment :

I think LTE being based on a flat architecture, there are more parallels between WiMaX and LTE than the differences. In long term, the evolution (Pun intended) would be driven by cost factor and timing.

WiMaX at this stage has benefit of timing, whereas LTE trumps from cost factor (upgrade path). If 80% operators move towards LTE in the future, then it remains to be seen how much interoperability would be implemented between this two competing standards and how much the big operators would be willing to make that happen.

Having said that, LTE has interim solutions as mentioned by Clonmore, whereas WiMaX is working on 802.16m to match LTE on performance levels. Looking at whole picture, we see quite similar architectures in 2012, but question is how do you get there ?

Disclaimer: I work for NSN and have worked on both technologies and do not advocate any one in particular.

Basecamp : A tool for project management & collaboration

Recently I started using basecamp and really like their offerings. They have very intuitive interface to work with and any project, no matter how big it is, is easy to setup. It provides setting up milestones, todo lists, track time, message board as well as whiteboard where multiple people can edit the document (much like wiki).

Its good for startups, opensource projects, non-profits or heck personal projects. They have quite different pricing models, starting with free base service. Checkout at :

Basecamp project management and collaboration

How do evaluate your idea ?

Ask the smart people (Ideally, they are your advisors).


If you’re working on something interesting, smart people will offer to help you. The contrapositive is also true: if smart people don’t offer to help you, you’re probably not working on something interesting.

Source: VentureHacks

10/20/30 Rule for Powerpoint : Guy Kawasaki

in

I am sure readers might have come across this earlier, but since I like the idea so much, I might as well repost it for sake of remembrance.


Ten is the optimal number of slides in a PowerPoint presentation because a normal human being cannot comprehend more than ten concepts in a meeting—and venture capitalists are very normal. (The only difference between you and venture capitalist is that he is getting paid to gamble with someone else’s money). If you must use more than ten slides to explain your business, you probably don’t have a business. The ten topics that a venture capitalist cares about are:

Optimizing linux host for vmware

I run Debian as host operating system on my T60p. My work environment requires me to have Windows due to incompatibility with some internal applications and hence, I have chosen to use Vmware to virtualize windows XP on top of debian host.

Vmware gives option to either select physical disk or virtual disks (.vmdk). Since virtual disks provide option to resize/shrink as per need, I chose latter over former. Virtual disks are divided into 2Gb chunks which reside on local filesystem on host. We can be smart and make use of filesystem which is optimized for larger files.

Our Business infrastructure requires us to have encrypted disks so let's first create an encrypted device using cryptsetup.


root@nbox:/# cryptsetup -c aes-lrw-benbi:sha256 -s 256 luksFormat /dev/sda1
root@nbox:/# cryptsetup luksOpen /dev/sda1 win
Enter LUKS passphrase:  xxx

Next task is to create filesystem on top of the encrypted device. Choosing one is a tricky proposition. Refer here for some good filesystem comparisons. Based on these recommendations, I chose XFS. XFS has lot of options which can be tweaked as described in the article : Tuning Journaling filesystems.

root@nbox:/# mkfs.xfs  -l size=32768b /dev/mapper/win
meta-data=/dev/mapper/win        isize=256    agcount=4, agsize=1919702 blks
         =                       sectsz=512   attr=2
data     =                       bsize=4096   blocks=7678805, imaxpct=25
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096 
log      =internal log           bsize=4096   blocks=32768, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0
root@nbox:/# mount -t xfs -o noatime /dev/mapper/win /win


Done. Now store all your  *.vmdk on /win and you have optimized/encrypted filesystem.

PS: I don't have any benchmarks to claim that this is most optimized setup.

Making your adversaries your friends

Imagine how gruesome the situation is, when you keep fighting all your life with the adversary, one which doesn't go away and keeps coming back with the same vengeance and valor and then you reach a state of mind, when you start accepting that adversary as part of your life. Such is the fight against Migraine, a disease which is still not very well understood. Siri in her article Arms at Rest has described her day to day battle with severe migraines, and how she is accepted it as part of her life. She even has referred herself as a 'migraineur'. I second her thoughts as I have battled with migraines all my life, not that severe though. The best way to deal with this adversary is to take him to dark room, shut down your brain (which sometimes is hard, isn't it) and sleep over for couple of hours if you can. Medication MAY or MAY NOT help.

"John", comments: I found your article refreshing. In a world where we all expect (deserve) good health, your comments make a great deal of sense. I too suffer from migraines, but not to the extent of your affliction. My boughts are usually limited to one day. Almost always, exactly six hours. They almost always come at a time when I am letting down from stress and almost always on a Saturday. Like you, I have come to accept them, though not welcoming them. But I feel it is my body or God’s way of forcing me out of the mainstream and putting me in a position where I can do nothing by lie still and wait–to think of nothing specific and to lose the ability to do anything for myself or others–to let go of control and ride with the flow. I would like for them to stop and have revelled in those times that I seemed to get them with less frequency, but like any challenge or adversary, dealing with them might just make me a better person.

I feel very much like John, where attack makes me an alien in my own house. Handicapped to think, walk or talk and nothing more than a body on the bed with all senses active experiencing the helplessness against nature. Nevertheless, I have come to appreciate more about times when I am healthy and when I am more able to use my faculties. Blessings are in abundance that we have, its just that when they are taken away from us, that's when we realize how important they are.

Red Pill for your N800/N810

Nokia has tried to make the new tablets as user friendly as possible which is a good thing. Unfortunately that means some of the advanced features are deactivated by default. Power users would not like this. To make them happy here is an easter egg.
Red pill or Blue pill

Syndicate content