Hi!

Wel­come. You’re prob­a­bly here to find out more about Event­Press or Bud­dy­Press Cus­tom Posts. If you are, feel free to jump to those links.

If, by a strange quirk of fate, you’re more inter­ested in my ran­dom blog posts, feel free to browse beyond this post.

For a bit more up to date infor­ma­tion about what I’m doing at the moment, you can check out my twit­ter feed @kunalbhalla.

Posted in Uncategorized | Leave a comment

Trekking through TEDxDelhi

This post is aimed at shar­ing my expe­ri­ences at TEDxDelhi — per­haps get­ting other attendee’s reac­tions as com­ments (if any­one actu­ally ever does read this post) — and mak­ing every­one else — who missed a great TEDx — jeal­ous (insert devil smi­ley icon here).

Imag­ine you’re going on a trek with var­i­ous many inter­est­ing peo­ple. You slide off an arti­fi­cial ice­burg, and land in a vil­lage with­out elec­tric­ity. Using a hand cranked torch, you make your way to the Ganga — which you clearly want to avoid, con­sid­er­ing the amount of sewage flow­ing through it. There’s this cur­tain of sarees block­ing your way, and after hav­ing a com­ment about 6 inches etched into your brain you move on to hear beau­ti­ful melodies by Kabir. As you drift off into a bliss­ful, melody induced Nir­vana, you’re reminded about the harsh real­ity of India — poverty — and a remark­ably inno­v­a­tive solu­tion for it. As you pon­der the pos­si­bil­i­ties of gen­er­al­ized micro-level car­bon cred­its, you’re sud­denly exposed to well engi­neered clothes that you can redesign in a minute (tak­ing the hum­ble but­ton where it’s never gone). Shak­ing your head, try­ing to get rid of the feel­ing that you’re wear­ing your trousers as a shirt you wan­der into the crazed, crowded streets and trains of Mum­bai, with Dab­bawal­las rush­ing around you with more pur­pose and effi­ciency than the great­est of multi­na­tion­als ever aspire to. The thought of all those tiffins and lunches inspires you to do exactly that — have a bit of food, after which you’re sud­denly trans­ported to the Kha­ju­rao tem­ples where the sculp­tures remove you from the pleas­ant, rich food induced reverie you were in. You fid­get uncom­fort­ably as you walk through India, real­iz­ing that more than 8 mil­lion chil­dren are dying pre­cisely from lack of what you just over-indulged in — food. Land­ing up in Delhi, some­one throws a few flow­ers at you — a per­haps purpose-less, but well inten­tioned project by a man in a sari. Slightly bemused, you’re then shown the lat­est of tech­nolo­gies merged with one of the most ancient of crafts — to result in one of the great­est recent tem­ples in India. As you admire the beau­ti­ful sculp­tures, you hear melodies crafted just for you. Still not com­pletely sat­is­fied, you dive head­long into an artist’s mind as you see the expe­ri­ences behind the art. Proud to be able to wear the Indian flag on your lapel, you lis­ten to a lazy man singing some of the best songs you ever heard. Inef­fec­tu­ally try­ing to match his voice, you grad­u­ally wake up and real­ize that you’re sit­ting in a huge air con­di­tioned audi­to­rium, and your trek through a com­pletely dif­fer­ent world just ended.

And that, peo­ple, was TEDxDelhi.

Posted in Lifestream, TEDx | 2 Comments

On Green Technology

What is Green Technology?

Green tech­nolo­gies, sim­ply defined are those tech­nolo­gies that are envi­ron­men­tally friendly and are at the same time used for com­mer­cial gain.

This is an essay I wrote for Honda Yes 2009. I didn’t get selected, but I still liked the essay, and decided to share it.

The devel­oped coun­tries – those that make use of the max­i­mum resources 1 – are not will­ing to cut down on their usage and lifestyle, which is under­stand­able. Devel­op­ing coun­tries are not ready to stop growth just for the sake of com­pen­sat­ing for the pol­lu­tion caused by oth­ers – which is even more under­stand­able. The only obvi­ous way out – new tech­nolo­gies which aim at sus­tain­able, envi­ron­men­tally friendly development.

Ideal green tech­nolo­gies are those that at one and the same time are envi­ron­men­tally friendly, finan­cially viable and socially equi­table. Achiev­ing all three at the same time is a daunt­ing task, indeed, most envi­ron­men­tally friendly tech­nol­ogy is found to be finan­cially pro­hib­i­tive, but the only way we can keep devel­op­ing and ful­fill­ing the needs of the 6.787 bil­lion 2 (and count­ing) peo­ple inhab­it­ing this planet.

Ben­e­fits and Problems

For the environment …

The ben­e­fits of using green tech­nol­ogy are many – start­ing with the all impor­tant energy sec­tor (over which wars are insti­gated and car­ried out). The first point we must real­ize is that mov­ing away from Fos­sil Fuels is not nec­es­sary only because of their lim­ited avail­abil­ity but also because of the exces­sive harm that they do to the envi­ron­ment. The US Energy Infor­ma­tion Admin­is­tra­tion has put the peak oil pro­duc­tion in May 2005 and July 20063 – dates we have already passed. The emis­sions of car­bon diox­ide have been grad­u­ally increas­ing through the years.

By switch­ing from fos­sil fuels to less pol­lut­ing sources of energy, we might be able to at the same time avert the impend­ing energy cri­sis and also reduce the effects of global warm­ing. Pos­si­ble alter­na­tives pro­vided by green tech­nol­ogy are solid fuel cells, nuclear power (a bit con­tro­ver­sial as it does gen­er­ate waste prod­ucts), solar energy and wind energy.

The down­side is that the amount of effort and invest­ment required to switch to green energy sources is mas­sive. Hydro­gen based fuel cells are cur­rently not suit­able as han­dling hydro­gen is very dan­ger­ous and a mas­sive net­work will be required for dis­tri­b­u­tion, etc. Nuclear energy pro­duces extremely toxic waste prod­ucts which must be spe­cially stored sep­a­rately. The biggest fac­tor that makes switch­ing to Green, rather, any alter­na­tive tech­nol­ogy so dif­fi­cult is the mas­sive iner­tia caused by the world’s depen­dence on the stan­dard fos­sil fuels.

… and the companies

Switch­ing to green tech­nol­ogy for com­pa­nies also greatly increases their CSR value and even dri­ves busi­ness to the com­pany – green tech­nol­ogy is eco­nom­i­cally viable and the fact that a com­pany is using envi­ron­men­tally friendly tech­niques dri­ves cus­tomers to that company.

As an exam­ple, con­sider GE Eco­mag­i­na­tion:  a pro­gram started by Gen­eral Elec­tric to reduce energy con­sump­tion and increase effi­ciency, while at the same time cut­ting costs – which is highly impor­tant in today’s reces­sion. In the some note, they also aim at increas­ing R&D to $1.5 bil­lion by 2010 4.  As of today, they are work­ing on reduc­ing emis­sions, water con­sump­tion, reduc­ing waste gen­er­ated, work­ing on improved wind-energy gen­er­a­tion, etc.

Con­sid­er­ing the rev­enues of the com­pany in 2008 – the con­sol­i­dated rev­enue reached $183 bil­lion while the green-house gas emis­sions have reduced from 7.50 (2004) to 6.49 (2008) mil­lion met­ric ton CO2 equiv­a­lents, oper­a­tional GHG inten­sity from 60.58 to 35.58 (met­ric tonnes per $ mil­lion rev­enue), oper­a­tional Energy Inten­sity from 496.69 to 312.75 (MMBTu per $ mil­lion rev­enue) and energy use has reduced from 61.50 to 57.0 $ mil­lion MMBTu – an ideal appli­ca­tion of green technology.

On the flip side GE has a his­tory of large-scale air and water pol­lu­tion; based on year 2000 data it has been listed as the fourth largest cor­po­rate pro­ducer of air pol­lu­tion in the United States apart from being impli­cated in the cre­ation of toxic wastes; so, at one level Eco­mag­i­na­tion can be con­sid­ered as prof­itable CSR as well as rid­ing the cur­rent “Go Green” wave all over the world – Green Tech­nol­ogy def­i­nitely makes a lot of busi­ness sense.

But what about the people?

What we can­not for­get, in all the cur­rent enthu­si­asm about green tech­nol­ogy with the buzz­words of “sus­tain­able devel­op­ment”, “business-sense”, etc. that right at this moment a quar­ter of this world’s pop­u­la­tion is below the poverty line, too many peo­ple do not have access to drink­ing water nor food. And I would rather not com­ment on the per­cent­age of peo­ple liv­ing in war-torn areas.

There is always the urgency of div­ing in, using what­ever resources we have at hand to help. To be able to look at our­selves in the mir­ror, we must. One fact that must be clear to the world at large and the elite in spe­cific is that only we, with access to all the resources that we have at our dis­posal can be expected to cut down. You can­not steal from peo­ple who have nothing.

Our enthu­si­asm for ‘sav­ing the world’ can­not reach the extent that we deny devel­op­ment in order to reduce envi­ron­men­tal degra­da­tion. Every­one must be brought to a com­mon, sus­tain­able base­line – what is too often ignored by media and peo­ple in gen­eral is that this involves bring­ing the resource uti­liza­tion by cer­tain sec­tions of the world up rather than down.

Such a strat­egy, I believe, in the long run will pay for itself – when we reach the peak of civ­i­liza­tion with the world at 100% lit­er­acy and aware­ness, and the basic neces­si­ties of life sat­is­fied for all, sus­tain­able devel­op­ment will be a way of life and not a goal.

As a cit­i­zen of the Earth,

I will rec­om­mend that we use Green Tech­nol­ogy as far as pos­si­ble, even if the short term costs are on the high side in terms of research required and money invested – for oth­er­wise, we will never be able to pay the debt incurred by mis­man­ag­ing our nat­ural resources.

All of us must real­ize for a fact that our resources will, at best allow us to main­tain our cur­rent rate of devel­op­ment for a few decades – at worst, for a few years. We have already seen exam­ples of ris­ing polit­i­cal ten­sion over energy sources; what we may not have yet real­ized is that if the sit­u­a­tion wors­ens we may even be fac­ing wars over resources like fresh water.

The threat of global warm­ing has been hang­ing over our heads for years but has not been really been addressed yet; par­tic­u­larly by cer­tain devel­oped nations. The very con­cept behind Car­bon Cred­its is sym­bolic of why we have not been able to con­trol Car­bon Diox­ide emis­sion to any worth­while extent today – very few coun­tries are will­ing to give up their way of life for goals span­ning many life­times, and not sim­ply those of the cur­rent generations.

Instead of expect­ing or brib­ing other coun­tries to reduce emis­sions (and thus reduc­ing their own guilt) every coun­try must work towards the com­mon goal of reduc­ing resource exploita­tion, over­pop­u­la­tion and exces­sive reliance on fos­sil fuels; to look at the really big pic­ture – the one beyond bound­aries, lan­guages and even species.

The onus of improve­ment does not lie solely with the gov­ern­ments and large cor­po­ra­tions of the world; rather every sin­gle per­son must par­tic­i­pate in every way he can. Every small effort, when con­sol­i­dated over 6 bil­lion peo­ple, has a mas­sive effect.

As a sin­gle per­son, I can con­sciously reduce my energy con­sump­tion, per­haps research bet­ter tech­nolo­gies; spread the word to my neigh­bours. As 6 bil­lion peo­ple, I can vote out envi­ron­men­tally indif­fer­ent gov­ern­ments, dis­miss resource hun­gry com­pa­nies, change the course of his­tory by choos­ing the right lead­ers and mak­ing my voice heard.

Of course, that means I must iden­tify myself as more than a Del­hite, an IIT­ian or an Indian. I must real­ize that I’m an earth­ling – and more impor­tantly, so is every­one else.

You must real­ize that at no place have I spec­i­fied that it is the Youth’s pre­rog­a­tive to achieve tar­get X, or that Y must do what they can. I believe this to be one of the great­est draw­backs in today’s approach to devel­op­ment – at no stage should there be any dis­tinc­tion on sav­ing the world. Every­one can be a super­man in his own way, and do his own bit to save the world. (Or super­woman; and her, as appropriate.)

As an Engineer,

I must and will push towards a rad­i­cal change in the cur­rent design beliefs – we must do away with planned obso­les­cence. Every­thing from the ultra-sophisticated cell-phone to the plas­tic water bot­tle must be made to last. We can­not expect to keep har­vest­ing resources indef­i­nitely and expect no reper­cus­sions; con­sider the words (and work) of Mechan­i­cal Engi­neer Saul Grif­fith – “The busi­ness plan for the next cen­tury should be to take every object you sell and fig­ure out how to give the ser­vice of that object to the con­sumer with one-tenth of that power.

Spe­cial­iz­ing in Struc­tural Civil Engi­neer­ing, there is a lot of scope where work can be made more envi­ron­ment friendly. Waste mate­r­ial (plas­tic) is being exten­sively used in mak­ing roads, reduc­ing land­fills, etc. Build­ings should be designed and con­structed on lines sim­i­lar to those spec­i­fied by the U.S. Green Build­ing Coun­cil, Lead­er­ship in Energy and Envi­ron­ment design LEED (an inter­na­tional green build­ing cer­ti­fi­ca­tion sys­tem) 5.

The fun­da­men­tals behind LEED, and rather, any such sys­tem are sus­tain­abil­ity – the design must respect the com­mu­nity and cul­ture behind the build­ing, con­sid­er­ing all socioe­co­nomic lev­els; inclu­sive­ness – involve the com­mu­nity in the design; progress – the impact of the build­ing on the envi­ron­ment, com­mu­nity and econ­omy must be quan­tifi­able; con­nect­ed­ness – rec­og­nize the rela­tion­ship between man and nature and give empha­sis to it.

From var­i­ous stud­ies car­ried out in Amer­ica, where LEED is being grad­u­ally intro­duced into the stan­dard codes, it has been shown that – as with almost all other green tech­nol­ogy – the ini­tial cost might appear pro­hib­i­tive, but in fact, the pay­back in the long run more than cov­ers up for them 6.

Bet­ter, more effi­cient meth­ods devel­oped across the world must be open – while intel­lec­tual prop­erty rights must be main­tained and there must be suf­fi­cient stim­uli, mon­e­tary and oth­er­wise for peo­ple to inno­vate – research and results must be open and shared. A sin­gle com­pany or coun­try dis­cov­er­ing an alter­na­tive source of energy and then hid­ing it/not shar­ing it with the rest of the world is sim­ply a waste.

The urgency and impor­tance of the cur­rent sit­u­a­tion requires open col­lab­o­ra­tion between coun­tries – with the devel­oped help­ing the devel­op­ing in imple­ment­ing these. Mak­ing costs of green tech­nol­ogy more pro­hib­i­tive than they must me is the height of foolishness.

In con­clu­sion,

I end by sim­ply reit­er­at­ing the theme that has been present through­out this essay – we must work together, as peo­ple, as coun­tries, as cor­po­ra­tions to meet the com­ing chal­lenges and short­ages caused by our own exploita­tion of avail­able resources. We can­not face them alone, but we might sur­vive together.

Posted in Uncategorized | Leave a comment

Hostel Collapses! More than 50 laptops feared damaged and destroyed!

30/01/2010 The Windy Hos­tel, Indian Insti­tute of Con­sul­tancy, Delhi: At 11.05 a.m. today morn­ing a hor­ri­fy­ing acci­dent occurred because of gross neg­li­gence by engi­neers at Windy Hos­tel, IICd. The hos­tel had been under­go­ing ren­o­va­tion for over a year and work had recently started on a new block today. Stu­dents were still resid­ing in the 4-story hos­tel on the top 2 floors while the bot­tom floors had been vacated.

In order to com­plete his work on time, the con­trac­tor had allegedly told the work­ers to demol­ish the lower por­tion of the build­ing and start ren­o­va­tion work on it, with­out con­sid­er­ing whether the already con­sid­er­ably weak­ened, 40 year old struc­ture could take the weight. The inevitable occurred, with the top two floors crash­ing down and bury­ing and dam­ag­ing many laptops.

In the words of one of the sur­viv­ing stu­dents (who has requested to remain unnamed) “They were destroy­ing the doors beneath our room and the bal­cony start mov­ing wildly, deflect­ing as much as 1 cm. We ran to stop them, but the [exple­tive deleted] work­ers refused to budge.”

The main­te­nance sec­re­tary of the hos­tel was allegedly gal­li­vant­ing some­where in East Delhi dur­ing the inci­dent, meet­ing some for­eigner. On being con­tacted he replied that he had an urgent meet­ing with some­one he could not name — a fact that has been noted by the inves­ti­gat­ing author­i­ties who have taken him into cus­tody. We man­aged to get a state­ment from the Chief Inves­ti­ga­tor, Mr. M. Adi “We have not ruled out the involve­ment of the main­te­nance sec­re­tary, and are also con­sid­er­ing the for­eign angle”, obliquely refer­ring to the recent state­ment by the Pres­i­dent of United States of Pak­er­ica, Mr. Obama Bin Bush.

Being a hol­i­day, most of the stu­dents were sit­ting in their rooms dur­ing the acci­dent, appar­ently try­ing to block their inter­net access so as to be able to pre­pare for their upcom­ing exam­i­na­tions. A quote by one of the IICians from our archives: “Our pro­fes­sors believe that we can obtain every­thing we need to learn by surf­ing the inter­net — in fact they main­tain a check to see that all stu­dents down­load at least 100MB of data every day to ensure they are spend­ing enough time on the inter­net. We have learnt a lot but it becomes dif­fi­cult to adhere to this rule dur­ing our minor exams so try­ing to out­smart our pro­fes­sors and block­ing our inter­net access is a favourite pass-time for IICians dur­ing the exam season.”

Most of the stu­dents were taken by sur­prise as the build­ing came crash­ing down on them, and more than 50 lap­tops have been reported miss­ing and are assumed to still be buried under the rub­ble, while 10 dam­aged (2 crit­i­cally) lap­tops have been recov­ered. One or 2 lucky lap­tops sur­vived on their bat­tery life and were dis­cov­ered as they were play­ing heavy rock and could be heard through the con­crete. Wor­ried stu­dents at IIC have kept a can­dle light vigil out­side the lap­top repair shop, with the very best tech­ni­cians of the top lap­top man­u­fac­tur­ers includ­ing Nosy Baio, Sell and Com­pact work­ing tire­lessly to save the lap­tops. More tech­ni­cians are expected to arrive from around the world soon. Exca­va­tion work to locate the remain­ing lap­tops is also underway.

Many IICians are still in shock, with many roam­ing around in a daze. A par­tic­u­larly sad case is that of a few stu­dents, who, being deprived of access to their lap­tops and the Face­book live feed appear to have devolved to ani­mals — with one imi­tat­ing a bull, another squeal­ing in French like a pig and the  worst affected keeps try­ing to fly off the top of the hos­tel and is con­stantly restrained by his friends. It is cur­rently not clear whether he has delu­sions about being a bird or being the Man of Steel (both being able to fly).

What has made this acci­dent even more unique is the fact that there have been var­i­ous reports of the acci­dent being a com­plete fab­ri­ca­tion and fal­lacy as peo­ple have allegedly com­mu­ni­cated with the miss­ing res­i­dents of the hos­tel (using their own lap­tops). In the pub­lic inter­est, we reit­er­ate that the acci­dent has hap­pened and any such rumours must be dis­re­garded as utter nonsense.

There have been sus­pi­cions of para­nor­mal activ­ity at the site of the acci­dent because of these appar­ent mes­sages and the top inves­tiga­tive news chan­nel in India — Indi­aTV — has sent its best reporter to find out the truth. The ini­tial find­ings of the reporter will be pre­sented on tomorrow’s prime­time show at 8 p.m. — “IIC ke khooni engi­neer”. Insid­ers (who wish to remain unnamed) have said that such a tragic part­ing of nerds with their com­put­ers can cause their ghosts to linger on till they man­age to com­plete their last wish: to update their sta­tus mes­sages. Only then will they be able to pass on to the after­life. As always, there are many skep­tics who have denounced this the­ory, claim­ing that the ghosts need to play one last LAN game of AoE.

In a sur­prise turn of events, famed teen imper­son­ator and actor Aamir K. and ex-IICian and MBA B. Chetan came together in sup­port of the miss­ing lap­tops. They said that they has put aside all dif­fer­ences to be able to gar­ner even more pub­lic­ity for their film/book as peo­ple had stopped dis­cussing their recent disagreements.

Posted in IIT | Tagged , , , | 11 Comments

Reliance ZTE/ONDA on Linux

I have a HSD Reliance ZTE datacard/modem which I had been unable to run on Linux till tonight. The inter­est­ing bit is, I have had this card for around 7 months now — and it was forc­ing me to use Win­dows Vista (the hor­ror, the agony, the pain!).

As a log (in case my com­puter gets for­mat­ted some­time in the future — a likely, but not hoped for occur­rence — ) as well as a pos­si­ble guide to oth­ers, here are the steps I followed.

Note: I’m using Ubuntu 9.10 with a Reliance Net­Con­nect ZTE AC8710 modem.

  1. Con­nect to the net using some other, tem­po­rary connection
    1. Get usb-modeswitch. Those with access to a repos­i­tory can sim­ply do
      [bash]sudo apt-get install usb-modeswitch
      [/bash]
      Oth­ers can get the lat­est ver­sion from http://www.draisberghof.de/usb_modeswitch/ .
    2. You will also need (do an apt-get as required)
      [bash]lsusb, libusb-dev, wvdial, mod­probe
      [/bash]
  2. Con­nect your modem and run
    [bash]lsusb
    [/bash]
    You should see one of the usb ports hav­ing your modem — it will prob­a­bly be clas­si­fied as ONDA and have a vendor/product id spec­i­fied. Along the lines of
    [bash]192d:fff6
    [/bash]
    The fff6 indi­cates that it has been detected as a flash drive/cd rom and not as a modem.
  3. Also do a
    [bash]dmesg | tail
    [/bash]
    And observe where the modem has gone — usbtty0 / 1 / 2/ 3 etc.
  4. Edit the usb-modeswitch con­fig­u­ra­tion to make your com­puter rec­og­nize it as a modem
    [bash]sudo vim /etc/usb_modeswitch.conf
    [/bash]
    Nav­i­gate till you find the set­tings for your ven­dor id/product id.
    [bash]########################################################
    568 # ZTE AC8710
    569 #
    570 # Two ID vari­ants known; check your default
    571 #
    572 # Con­trib­u­tor: Michael Khurt­siya
    573
    574 ;Default­Ven­dor=  0x19d2
    575 ;Default­Prod­uct= 0xfff5
    576
    577 ;Tar­getVen­dor=   0x19d2
    578 ;Tar­get­Prod­uct=  0xffff
    579
    <strong> 580 # No. 2
    581
    582 ;Default­Ven­dor=  0x19d2
    583 ;Default­Prod­uct= 0xfff6
    584
    585 ;Tar­getVen­dor=   0x19d2
    586 ;Tar­get­Prod­uct=  0xfff1
    587
    588 # only for ref­er­ence
    589 # MessageEndpoint=0x05</strong>
    590 <strong>
    591 ;MessageContent=“5553424312345678c00000008000069f030000000000000000000000000000”</strong>
    [/bash]
    And remove the ‘;’ before the required lines. Save and exit.
    Run it.
    [bash]sudo usb_modeswitch[/bash]
  5. Check whether it’s worked — do another
    [bash]lsusb
    [/bash]
    and see that the prod­uct id has changed to fff1 (or what­ever your tar­get prod­uct was).
  6. Now we need to do a mod­probe
    [bash]modprobe usb­se­r­ial vendor=0x19d2 product=0xfff1
    [/bash]
    Replace ven­dor and prod­cut as you require.
  7. Once that’s done, you need to make your wvdial.conf file. To edit the file:
    [bash]sudo vim /etc/wvdial.conf
    [/bash]
    Copy paste the fol­low­ing in it.
    [bash][Dialer Defaults]
    User­name = &lt;enter your 10 digit modem num­ber here&gt;
    Pass­word = &lt;enter your 10 digit modem num­ber here&gt;
    Init1 = ATZ
    Init2 = ATQ0 V1 E1 S0=0 &amp;C1 &amp;D2 +FCLASS=0
    Modem Type = Ana­log Modem
    Phone = #777
    ISDN = 0
    SetVol­ume = 0
    Flow­Con­trol = Hard­ware (CRTSCTS)
    Modem = /dev/ttyUSB0 &lt;modify based on the results of your dmesg&gt;
    Dial Com­mand = ATDT
    Baud = 460800
    Stu­pid Mode = 1[/bash]
  8. Once that’s done, you should be good to go. Sim­ply run
    [bash]sudo wvdial
    [/bash]

And you should be con­nected. Hope­fully this helps some­one and pre­vents them from wast­ing as much time as I did.

Sources:

Posted in Articles | Tagged , , | 7 Comments

Boredom. My worst nemesis. My best ally.

I get bored very easily.

It may be because I have noth­ing to do; or I’ve lost inter­est in what I was doing for some rea­son — it being too repet­i­tive, etc.; I have too lit­tle to do; what I’m work­ing on doesn’t seem to have any appar­ent pur­pose; or even if only some senses are occu­pied and oth­ers left alone.

I try to get over this foible of mine by lis­ten­ing to music — hence the head­phones hang­ing around my neck or on my ear, 24 by 7 by 4 by 12 by ~20. At least, by keep­ing my ears occu­pied I can relax, and pos­si­bly not get bored. This has also resulted in my hav­ing a 70GB music + video col­lec­tion on my iPod.

But I digress.

I have come to real­ize that if I did not get bored so eas­ily — I would have achieved less than half of what I have today. There would be no rea­son for me to tread on the fine line of just enough work to do; I could have relaxed a bit more — and per­haps enjoyed a bit less.

On the other hand, I have aban­doned cer­tain projects because I found out that they were no-where near as chal­leng­ing as I’d imag­ined and hoped for, and were rather achiev­able — and no longer inter­est­ing; because I no longer believed that the work I was doing served any purpose.

What pushes me — and also stops me from work­ing — is my char­ac­ter­is­tic of get­ting bored so quickly. Para­dox­i­cally, it makes me give up and move ahead at the same time.

And ever since I’ve had more to do — or more that I want to do — I lose my patience with other things even more quickly. I can no longer com­fort­ably watch a film in a cin­ema hall — my hands are unoc­cu­pied, and depend­ing on the film — per­haps even my brain.

Doing only one thing at a time is pos­si­ble only if it is inter­est­ing enough to merit my full con­cen­tra­tion. Hence the rabid multi-tasking — read­ing a book with lunch while lis­ten­ing to music or maybe watch­ing tele­vi­sion. Cod­ing while watch­ing a film or hav­ing a con­ver­sa­tion. Social Net­work­ing while read­ing a comic. etc. etc.

What about you?

3 Comments

How to study like an IITian

Look­ing through the hits on my blog from Search, I noticed a few based on “how to study like an IIT­ian”. Frankly speak­ing — I’m sure there are a lot of mis­con­cep­tions float­ing around out there about how IITians study (fur­ther spread by the infa­mous 5 point­ers) — so in the inter­ests of improv­ing the level of infor­ma­tion on the inter­net and in pub­lic inter­est, allow me to elaborate.

The Golden Rule, The First Com­mand­ment and the Code by which every IIT­ian must live by is never do any­thing before the last minute. If the pre­sen­ta­tion is due at 13.00, com­plet­ing it before 12.30 is blas­phemy and before 12.00 means that the con­cerned IIT­ian has been abducted by aliens and replaced by a dopple­ganger. Lab reports — even those involv­ing 30 pages of writ­ing, 10 pages of cal­cu­la­tions and 20 graphs each with atleast 50 points (all of which must be drawn exclu­sively by hand) must never be started before the night before it is due. You get my drift, I assume.

Those who actu­ally buy books are an endan­gered species — fast dying out. Books are arranged by jugaad, through seniors, not return­ing books to the insti library, from the hos­tel library, pho­to­copies, not buy­ing at all. And so on.

Class Notes are an alien con­cept con­ceived by the same alien dopple­gangers I men­tioned ear­lier. And are pho­to­copied and dis­trib­uted through­out. Repeatedly.

Read­ing room is a euphemism for some­thing else involv­ing social­iz­ing, ornithol­ogy, etc. Ex(hibition) Hall is often men­tioned with an extra s appended on the right word. The only way to actu­ally accom­plish any­thing is  to sit fac­ing the wall, with a pair of head­phones. And maybe blinkers.

Another phe­nom­e­non often observed is that group study is extremely pop­u­lar. I always doubt the effi­cacy of this method, though peo­ple I know are extremely suc­cess­ful in fol­low­ing this method. Includ­ing my room-mate and batch-mates. I have failed mis­er­ably in earn­ing marks through group study.

And of course — time devoted to study. If we did devote as much time to stud­ies as the 5(!?) point­ers did, we would’ve been 9 point­ers. With­out the (exces­sive) bless­ings of the Gods and daily devo­tion peri­ods. Self study is some­thing you fit in between extra-currics, video games, sleep (4 hours or so) and classes. If you do.

Hope that helps. Yours as always.

–Me.

Posted in IIT | Tagged , | 5 Comments

Passage: Carl Sagan, Cosmos

A book is made from a tree. It is an assem­blage of flat, flex­i­ble parts (still called “leaves”) imprinted with dark pig­mented squig­gles. One glance at it and you hear the voice of another per­son — per­haps some­one dead for thou­sands of years. Across the mil­lenia, the author is speak­ing clearly and silently inside your head directly to you. Writ­ing is per­haps the great­est of human inven­tions, bind­ing together peo­ple, cit­i­zens of dis­tant epochs who never knew one another. Books break the shack­les of time, proof that humans can do magic.

Leave a comment

Editors for coding?

So today’s post begins with a ques­tion: what edi­tor is your favourite? Do you have sep­a­rate edi­tors based on dif­fer­ent con­texts (eg. Net­beans for Java, Dreamweaver for sites), or do you tend to stick to a sin­gle Man Fri­day to ful­fill all your needs? Do you pre­fer IDEs or sim­ple text editors?

My answer for the above questions:

I love gVIM (graph­i­cal VIM). I’ve set it up to work over SSH in Win­dows (I work on a dif­fer­ent box and merely use my lap­top as a con­ve­nient inter­face), hid­den all menu bars and installed a colour theme pack of which I’m cur­rently using “Evening”. And I’ve started using VIM for every code related task I do. In defence of my choice, allow me to intro­duce some of the basic func­tion­al­ity included in VIM and some prac­ti­cal use cases: (Not intended as a tuto­r­ial, but a quick glimpse at the great func­tion­al­ity on offer)

  1. Sim­ple Edit­ing
    Typo­graph­i­cal errors are the programmer’s bane. And if they’re not shown as errors (occa­sion­ally the case with var­i­ous Javascript libraries), life becomes hell. Quick cor­rec­tion options in vim:

    • dw, dd, etc. Basi­cally, both for delet­ing and cut­ting text. dw deletes till the end of the line. d2w deletes 2 words. dd deletes the cur­rent line. Enter­ing %d on the com­mand line (i.e. using : ) deletes the full file. D deletes until the end of the cur­rent line. Con­sid­er­ing stan­dard equiv­a­lents, I’m always aston­ished by what I can accom­plish so quickly in VIM.
      I really tend to use d…d to quickly get rid of large chunks of com­mented code. Or sim­ply for mov­ing code around very very quickly.
    • r, rw, etc. d was for delete. r is for replace. Need I elab­o­rate?
      I tend to mis-type cer­tain words a lot. Really easy for me to just go over the offend­ing char­ac­ter and type in rx, where x is the new char­ac­ter I want to replace it by.
    • o, i, a, A, etc. Sin­gle key­presses for: 0: add a new line after cur­rent one and start edit­ing, O: add a new line before the cur­rent line and start edit­ing, a: start append­ing after cur­sor, i: start insert­ing before cur­sor, A: insert stuff at end of the cur­rent line.
      A is the for­get­ful programmer’s boon. Really use­ful for adding ; at the end of lines.
  2. Edit­ing over scp/ftp/etc.
    Vim comes with a spe­cial plu­gin (NetRW) that lets you quickly edit files over your pro­to­col of choice. I reg­u­larly use
    :e scp://<username>@<host>/path/
    to get a direc­tory list­ing of all the files in that path; choose your file and edit away.
  3. Search and replace
    Ever changed a vari­able at the last minute and had to change it? Eas­ily carry out reg­u­lar expres­sions over very sim­ply defined yet com­plex range of lines using /<pattern>/ or :s/<pattern>/<substitute>/flags. You can even carry out com­mands on match­ing por­tions. One of the most use­ful fea­tures I’ve used once I got the hang of it.
  4. Ranges
    Vim’s flex­i­bil­ity in terms of defin­ing ranges for substitution/deletion/anything you’d care to men­tion is amaz­ing. One of the fea­tures I most con­stantly use is ‘marks’ that allow you to mark cer­tain posi­tions to be eas­ily ref­er­enced later.
  5. Too many colour themes
    The amount of pos­si­ble colour themes avail­able is aston­ish­ing. And allows a UI freak like me to be com­pletely sat­is­fied with what I’m cod­ing in. And switch­ing quickly when I want to.
  6. Reg­is­ters
    Reg­is­ters allow you to cut/copy and store stuff in dif­fer­ent named “reg­is­ters and then paste where and when you want. Any­one who’s shuf­fled through var­i­ous files can eas­ily com­pre­hend the huge help this is.
  7. Buffers and Tabs
    Tabs are essen­tial to any decent pro­gram today. Buffers are tabs with­out the graph­i­cal inter­face indi­cat­ing their pres­ence. The best part is while using Vim in linux I tend to use
    gVIM –p *.php
    and other such com­mands to quickly open all files of  a sin­gle type in tabs in a sin­gle win­dow. Really makes find­ing the right file much much easier.
  8. Ses­sions
    Using :mkses­sion and :source allow you to quickly open all the files you had open the last time you sat down to work. And as you get to choose where the file con­tain­ing the ses­sion is saved, han­dling ses­sions becomes really sim­ple and easy.
  9. Abbre­vi­a­tions
    How many times do you find your­self using com­mon stuff like console.log() or error_log() while debug­ging? Just use the com­mand
    :ab cl console.log
    and every time you type cl( (fol­lowed by a space/newline/./(/etc.) it will be auto­mat­i­cally expanded. I imag­ine you can see the pos­si­bil­i­ties. Inter­est­ingly, abbre­vi­a­tions can be saved in ses­sions so if you don’t want to keep an abbr. around for a long time, or have some­thing spe­cific (such as a class name) just use and save it in the session.
  10. Key Map­ping
    Map keys to carry out your most often used commands.
  11. An awe­some com­mu­nity
    There are thou­sands of sites out there with point­ers on using VIM as well as an excel­lent Vim tips twiki. Be sure to check out the VIM tips twiki and this pre­sen­ta­tion on VIM for PHP pro­gram­mers by Andrei Zmievski to get a much bet­ter idea of what VIM is capa­ble of.

Also, for those of you who edit a lot of stuff on the web (using text boxes), install It’s all text to edit any text box’s con­tents using your favourite edi­tor (VIM, any­one?). This post was writ­ten in gVIM, opened via “It’s all text” on the excel­lent blog­ging plat­form pro­vided by Word­Press.

Posted in Uncategorized, Web Design | Leave a comment

Learning Web Designing

First off: there are many excel­lent tuto­ri­als on the net which will ful­fill all you need to learn how to cre­ate Web pages. From my expe­ri­ence (and I have learned HTML, etc. just from the net and the occa­sional book) I must empha­size one point: the most dif­fi­cult task in learn­ing designing/coding is sep­a­rat­ing the grain from the chaff. As many excel­lent tuto­ri­als as there are, there are more com­pletely use­less tuto­ri­als, which promise the moon and end up giv­ing stale cheese.

For those of you just begin­ning, I would seri­ously sug­gest http://www.w3schools.com . Don’t be con­cerned about the staid look of the web­site. The con­tent is solid gold; you get com­plete ref­er­ences, accu­rate infor­ma­tion and short and sweet tuto­ri­als with loads of exam­ples. Again, for the begin­ner: try reading/coding HTMLxHTML -> CSS -> Javascript -> PHP & SQL -> AJAX. This is roughly the order I went in (though I learned Javascript before CSS). Stuff I know that you (& I) should cover, but have no idea about where to fit in: XML and Flash. When (and if) I learn more about these, I’ll edit this post.

A few tips while cod­ing up websites:

  • From the begin­ning, ensure cross browser com­pata­bil­ity. Whether or not you con­sider IE6 wor­thy enough to be included in the list of browsers your site appears per­fectly in, depends on your per­sonal opin­ion. There are those who would argue much more for all round acces­si­bil­ity, and those who con­sider the 8 years old (mal­func­tion­ing) browser obso­lete. Per­son­ally, I agree with the lat­ter. (Very few web­sites I design work com­pletely in IE6).
  • Write code as if some­one else will grade it. Do your best to keep stuff well com­mented, neatly tabbed and avoid unsightly hacks put together at the last moment. Remem­ber, unlike cod­ing a pro­gram, where (in most cases) the code is a secret you can carry to your grave, click­ing “View Source” does allow every­one to see your slop­pi­ness. And it ain’t easy to find bugs in messy code either.
  • Keep every­thing W3 com­pli­ant. Always ensure that your web­sites are xhtml, css valid. Don’t for­get to put in a !DOCTYPE.
  • Try to use the best Search Engine Opti­miza­tion prac­tices from the begin­ning so that you get into a habit of using the proper ele­ments at the right places. I’m afraid I still strug­gle and acci­den­tally use [code]h1[/code] where I should have put an [code]h2[/code]. (If you don’t under­stand what I’m talk­ing about, you will, later.)
  • Use sprites while han­dling images. One of the worst impres­sions I can get of a site is hav­ing non-preloaded roll-over images.
  • Look at the source code of sites that you like. Won­der about how cer­tain effects might be cre­ated and then check from the source code.
  • Use Fire­fox and its excel­lent plu­g­ins: Fire­bug (for look­ing quickly through a page, edit­ing to find those pesky bugs on the fly and mak­ing your life much more com­fort­able) and Web Devel­oper Tool­bar (to do the few things fire­bug doesn’t).
  • At all costs, never use GUI based web­page cre­ators. Hand-code, use libraries, what­ever. Don’t use some­thing which doesn’t even give you a glimpse of the code.

Apart from the above, it’s always good to read stuff all over the web. I’ll keep putting up links here to inter­est­ing web­sites which give use­ful infor­ma­tion, but it’s bet­ter if you search for yourself.

Posted in Web Design | Tagged , , | 2 Comments