The world, how it works, surroundings, myself, etc.
Sunday, March 19, 2006
My fourth job offer
Interview 1 - Interview 8:
Algorithms algorithms algorithms algorithms.
Each interview involved 2-3 questions and would last for about 1 hr.
Interview 9:
It can't really be called an interview. The only question I was asked was the meaning of my name, which, for natural reasons, wasn't very difficult to answer. The rest of the time was spent in me asking questions while my interviewer stood near the board explaining me things. He explained me a lot of things related to Google, the policies, the interviewing process, etc. He explained me Google's 80-20 funda, by which a person is given 20% (i.e. 1 day per week) free time to work on anything. This one day gives a person the chance to develop something very useful and interesting. The end-product can be recommended in the review process (which takes place every 6 months) and might lead to promotion and other incentives. Many of Google's flagships product have emerged from this 20% time. Ex: Orkut, Adsense, Google News.
Some excerpts from Interview 9:
Me: This is my 9th interview. What does this mean?
Ans: Nothing. A person is interviewed till as long as the deciding committee feels that the candidate hasn't been tested in all aspects.
Me: Should I expect more interviews?
Ans: Not very likely. 9 interviews is kind of enough for a fresher. I had 13 interviews.
Me: How many people are there at Google, Hyderabad.
Ans: There are 300 people, but only 20 engineers. The rest are people in advertising, marketing, art, design, etc, etc, etc.
Me: What is SDE, SET, SQA, etc.
Ans: These are names given to positions. SDE -- Software Devel Engineer, SET -- Software Engineer in Test, SQA -- Software Quality Assurance. When a person joins Google, he's just assigned to one of these based on some heuristics during the interviewing process. The real allocation is done 6 months later. Google doesn't do the dirty kind of testing.. the ones like black-box testing, monkey testing -- these are outsourced.
In essence, the motive of the interview was to convince me that Hyderabad does exciting technical work contrary to the popular notion associated with the word test. He was successful.
Monday, March 13, 2006
Getting direct rendering on MSI Xtreme with ATI Radeon Xpress 200
MSI Xtreme motherboard x86_64, 512 MB RAM (with 64 M shared)
ATI RADEON XPRESS 200 Series integrated on-board graphics
Problem: DRI not enabled with ATI drivers on Linux. Actually, after installing the rpm available from ATI's site, glxgears' performance drops. What runs at 400 FPS with vesa drivers, runs at 200 FPS with ATI's drivers (fglrx).
Solution: The kernel module wasn't getting compiled properly. ATI released new drivers on 8th, March. But that wasn't enough. It required some tweaking.
I used to get a missing <asm/ioctl32.h> error. There's no <asm/ioctl32.h> on my Fedora Core 4 (FC4-x86_64)
Replacing all such occurences with <linux/ioctl32.h> works.
Essentially:
- cd /lib/modules/fglrx/build_mod
- Replace all occurrences of <asm/ioctl32.h> with <linux/ioctl32.h>
- sh make.sh (this should succeed. It should at least make fglrx.ko)
- cd ..
- sh make_install.sh
So, finally I have direct rendering (confirmed with: glxinfo | grep direct) on FC4-x86_64. glxgears reports 733 FPS.
Monday, March 06, 2006
R & D Showcase '06: Display Wall
Display WallThe Display Wall was unprecedented this time. The 3x4 matrix utilized 12 systems. The combined setup with a 6.25 megapixel resolution, 8.704 GB RAM, 1 TB storage and 36.2 GHz of processing power was cooled in a separate room (#215). 11 of the 12 systems used had the same config as the ones in lab-5, and the ATI graphics drivers were unusable in Linux (shame shame ATI).
Sincere thanks to Parry and Tarun for installing Fedora on all the systems, SMR for helping throughout thereafter, and Vardhman for the pics.
Some common questions asked about Display Wall:
Q1: What are you doing apart from just cutting an image and displaying on those systems?
Ans: Those are not images. They are rendered from a 3D model. The model has 13 Million triangles, and is a bit too heavy for even the most serious graphics cards.
Q2: Why not use a projector instead?
Ans: A display wall is different from just projecting using a projector. Projecting a display merely increases the scale, not the resolution. And if you sit near to a projected display, you'll start observing blocks. However, in the case of the display wall, the combined resolution is far greater than that of a single system. You can of course replace each monitor with a projector, and the total resolution is herculean.
Q3: What's the front-end and back-end?
Ans: I don't know, and I don't care.
Sunday, February 26, 2006
Google Google everywhere
With so much attention focussed on a single organization, Google has raised the eyebrows of all the evildoers. All their efforts are directed to demolish this leviathon. Will the Google magic stay? Or it's just an ephemeral dream? In which case I'd rather not wake up. Therefore, I hope Google remains unvanquished with their "Do no Evil" ideology. Touchwood.
Friday, February 24, 2006
World vs. Blog World
For instance, in a worldly society, some people talk while others listen. In the cyber society bloggers write while others read -- communication.
In a worldly society, people respond to talks, ask questions, volunteer comments. Likewise, in the cyber society, readers post comments to blogs, ask questions, volunteer suggestions, etc. People respond similarly in both worlds. Worldly society or cyber society, if taunted, one feels bad; if challenged, one feels charged; if accused, one feels hurt; if congratulated, one feels happy.
When the no of guests visiting you become large, one hires assistants (secretaries, PAs). Likewise, when the no of posts and comments becomes unmanageable, you resort to RSS feeds, and blogreaders.
Stepping further, in worldy societies, we have chaos when everyone starts shouting at the same time, mostly when their speech doesn't make sense. In the cyber society, a similar confusion results from a cluster of unconnected, senseless posts -- sum total 'zero'.
Therefore, when someone calls me unworldly, I don't exactly acquiesce. I'm worldly in my cyber-sense. I ain't social. I'm cyber-social. I'm blog-social. So what if I don't visit others' places, can't respond energetically while talking face to face? I visit others' blogs and can comment. That's cyber-expression. I'm cyber-worldly.
Tuesday, February 21, 2006
Sending mails with php
PHP has this mail() function to send mails. However, it's more than
plain vanilla to use it to send mails, esp if you don't have a fully
qualified domain name (FQDN), i.e. all systems on the LAN. Of course you
could use network/socket functions to connnect to the smtp port of your
mail server, but below I describe something simpler.
1. Edit /etc/mail/sendmail.cf to add your relay server:
You should have a line beginning with "DS"
Append to it your mail server.
DSmail.iiit.ac.in
2. Start sendmail
3. Use the mail() function, as is.
Note: Of course, this works only if the mail server allows you as a
relay host. i.e. your system must be trusted. All systems on the LAN,
generally, are.
Saturday, February 18, 2006
Fed up with windows.. for the Nth time
Today, I got fed up with windows, for the N-th time again. I wished to
get the Volume License keys for WinServer 2003 (IIIT has a paid MSDN
subscription). I have the username/passwd and I know it's available on
their site. But all that I get after logging in to the msdn subscription
page are advertisements to their products, features-list, and junk. As
if we paid for the subscriptions just to view their ads. There's a pile
of junk CDs (of softwares, apps, everything from M$... all legal)
available in the server room. They gather dust.
I roamed around on their site, and I landed to all places except where I
could possibly find anything useful. Junk Junk Junk everywhere. And
their ads at other places. Going to a crack-page and getting a key
appears quicker. I fail to realize how people can tolerate such stuff
from M$ after all the money that they pay.
Friday, February 03, 2006
Movie: Home Delivery
The effort, a confused mixture of all possible genres, is comparable to a retard who discovers a box of colors for the first time and overturns each and every color on his first drawing.
(liftoff from my yesterday's diary entry)
Friday, January 27, 2006
When Indian Politicians start blogging
I'm sure AB Vajpayee would leave lots of white space between *sentences* to compensate for the temporal latency in his speech. L K Advani would have tonnes of Hinduism-propaganda speeches on his blog, but he'd be careful enough to slip in praises for Jinnah, in one corner. The entire RSS *workforce* would get angry and bombard his blog with spam-ic comments, but he'll still continue to be at the top (it's adsense, you see). Sonia Gandhi would write in Italian, but we wouldn't have understood any of her anyway had she written in plain English. The rest of the Gandhi dynasty (Rahul, and siblings) will post flattering comments at their dear mummy's words of wisdom. Manmohan Singh would have his *own* blog (at the request of Sonia), but most of his posts would be symlinks to Sonia's. Yes, I know, he's intelligent. That's why I said *most*. The remaining rest would have some intelligible junk on economy, gathering flies, as the CPI would force him to keep them offline (the CPI don't blog -- they can't actually, it's a bit too revolutionary for them to digest). Who else.. ah... how can I forget Lalu! He'd have his blogpage on a Yadav's server, with free internet from a Muslim ISP. The wallpaper would be adorned with cowdung, and his posts would consist primarily of bullsh*t. The domain-name would be registered in the name of Rabri (yeah, for name-sake only). In cooperation with Congress, he'd enforce a 40% reservation for OBCs for posting comments on his blogpage.
There'd be some nice blogs too. Blogs of youngsters like Arun Jaitley, Chidambaram, Mahajan would make sense. Uma Bharti's blog would be in Saffron fonts but she'd be confused with supporting the posts of BJP or her esteemed Guruji. She'd keep switching between the two, until at one time the BJP kick her out permanently from their blog-circle.
In essence, our politicians will be a lot more interesting and little less pathetic, if they take to blogging. And not to mention, WE, the people of India, would have at least some say on their posts (thru comments, that is).
Tuesday, January 10, 2006
My phone too is being tapped
First it was Amar Singh who complained about his phone lines being tapped by Congress. Down south, Jayalalitha joined in support with similar grievances. Chandrababu Naidu too acquisced but insisted that he'd join the fray totally only when he had proof. L K Advani too had a gut-feeling that his phones were being tapped and that he suspected it was Congress. After so much attention-tapping, I thought I can also garner some share of the pie. I too have a gut feeling that my phone is being tapped -- so what if I don't have a phone! It doesn't really matter, does it? It's blame blame game; and I'd too like to blame it on Congress. Come CBI, get to action, start hunting for the culprit. :)
Sunday, January 08, 2006
Bihar beckons
Saturday, December 24, 2005
My third job offer
I received my third job, this time from Nvidia, Pune. The interview, scheduled at 9:00 in the evening didn't start before 10:30, and that left me enough time to grab two episodes of F.R.I.E.N.D.S. on a vacant PC I found near the interview spot. The interview began with one of my projects, video streaming to a (wireless) PDA and the interviewer delved into Multimedia-related questions (what factors affect the bitrate of a video stream, what's q-value, how does it affect the bandwidth requirement....). This was followed by a question that I did not answer in the written test (which I did solve then), and a simple question on probability -- that's it. 1:30 AM -- results out.
Thursday, November 24, 2005
gdb generic error
I had gdb-ing my application to figure out the reason why it had been
misbehaving for long. It had been so long that gdb tried to console me
with: "Cannot find user-level thread for LWP 7912: generic error"
I didn't particularly like the "generic error" phrase. What was it
trying to say? Is it trying to console me by stating that this error is
a generice error -- as in, everyone gets it -- and that I need not get
so annoyed? As if to say, everyone has a bad day -- just that it's yours
too today!
Sunday, November 20, 2005
gcc commentary
Gcc has some humorous commentary built into it. I tried the datatype "long", and then tried "long long" and just for fun tried "long long long" and here's what it says:
error: ‘long long long’ is too long for GCC
Curiously enough, gcc doesn't remark similarly for "short short". I expected it to say: error: 'short short' is too short for GCC!
Interesting.
Tuesday, November 15, 2005
I eat shocks.. everyday
There are some strange observations about this phenomena:
- This phenomenon started only after I returned back from home after my Diwali hols. I was perfectly okay before that. I used to wear the same clothes and eat and sit similarly. Did I burn a bit too many crackers in Diwali? Or do I have an evergreen Diwali with me now?
- I get up 1-2 times before finishing my meal to load some more things from the counter. On these occassions, I don't get any shocks as I pick up my plate. It's only when I'm finished with my meal, my stomach is filled, and I get up finally, that I get these shocks. As a hit-and-try experiment, I once retired my meal without having filled my stomach, and lo..I did NOT get the shock. However natural this electrostatic discharge phenomenon be, how does it predict if my tummy is unfilled?
Saturday, November 05, 2005
Being Bangalored ... interesting
Strange but true. "Bangalored" is a verb which has been recently accrued in the english vocabulary. A person is said to be 'bangalored' if he lost his job because the work got outsourced to bangalore or any other city in India. "He got bangalored last week" is an example of its usage.
I ain't kidding people. Google it up I say. Lot of people in US got bangalored that it became an issue during the US presidential election. Thats exactly when this word was coined.
Dictionary defintion :
Bangalored adj. (said of a corporation, project, or employment) having been relocated to India; having lost business or employment due to such a relocation.
Here are some quick links to 'Bangalored'..hmm it feels really awkward to even pronounce it.
Click: A and B.
And guess what..one such similar verb is "Shanghaied" which means kidnapped. "Shanghaied" - this word even exists in Webster's dictionary. Try and see yourself. Shanghaied has been known since about 1870, at first in the sense of kidnapping a person to make up the crew numbers on a ship, but now more generally to be for ced into doing something against one's will. There is one more... 'Sodom' from the Bible.
Saturday, October 08, 2005
Morality and the Constitution
In other words, the government can do whatever it pleases. The Supreme Court, the highest court of appeal in India, will keep expressing discontent, but they can't do anything either. Their hands are tied. They are just supposed to interpret the constitution -- not act as per righteousness. In such a scenario, I feel that the government is actually very very moral whenever it does anything. What else, if not morality, stops it from modifying the constitution to make amendments that ensure that the same party keeps winning every time? What else, if not morality, stops them from framing laws making their rule permanent? Nothing. Pure morality. All strong words like sovereignty, democracy, liberty, et al, combined don't have enough power to stop this -- and yet, we have the government performing at least some degree (+ve or -ve).
G B Shaw mused:What recently happened in my home-state, Bihar, raised similar demands for moral ownership. A "constitutionally elected" assembly was dissolved because the governor did not deem the majority party deserving enough. That was on 23rd May. Four months later, the Supreme Court wakes up (why??) to announce that the governor was wrong. It was constitutionally wrong, but nothing can be undone. Who owns the constitutional responsibility in this case? Oh, I see -- The can-always-be-blamed Mr Nobody. The opposition, unfailingly, has again renewed its demands for the government to own moral responsibility! And the prime minister, it seems, has agreed that he cannot disown moral responsibility. Oh, how cute. I love you. Please go to hell (on your own money).
Democracy is a device which ensures we shall be governed no better than we deserve.
So hopeless is the nature of the holy constitution of the largest democracy of the world (yeah, it's India) that I wonder -- Isn't this collection of 395 articles no more than a huge and perfect crap-book? What's the use? I tried to reason out some possible uses of the bulky constitution.
-
Use as Toilet paper
-
Use for literature study
"Article 32 confers upon the citizens of India the right to constitutional remedies. ...."Ah, don't worry what this right is -- 'tis too impractical. This is the only place in my 22 years of life that I have seen the "confers upon" phrase being used, and I find it sweetly poetic. Perhaps the makers of the constitution mistook this exercise as an endeavor towards the Nobel Prize for Literature. They didn't get it -- and they died of shock. "We, the people of India, having solemnly ....." is another favorite and by-heart.
-
Use as a flare
-
Making Kites
That's it. No more practical uses of the crap called the Constitution of India. Sorry founding fathers. None that I can think of presently. And no -- it does not deserve the Literature Nobel, either!
Al Qaida's Hiring
I had heard and read that the economy was going strong, that the bears were unable to hold back the bulls who had been raging the stock market with each passing day. But that the upbeat mood has tingled till Al Qaida too still trickles me. So, they've placed proper advertisements asking people to join their force.
Someone please take up the issue with our placement officer. Schedule a Pre Placement Bombing (akin to PPT) soon. :-)
Wednesday, October 05, 2005
Thy OS is thy religion
Imagine the Year 2015 AD: Barely 10 years from now
The world is casted based solely on one demarcation: your religion,
except that it's not actually Hinduism or Christianity, or Islam but
instead your OS. Your OS is your religion; it represents you, teaches
you, guides you and inspires you. There are great heroes to sing of --
they've done groundbreakingly significant work in the upliftment of your
OS (Linus, Jobs, Gates to name a few). The preamble of the crappy
Constitution of India is rewritten to include the term "equality of all
Operating Systems". To the phrase "equality in protection by law
irrespective of caste, creed, color, sex, sect" is appended "or
operating system".
There'll be some secular political parties, some pseudo-secular, and
some infamously communal (with deep religious attachment towards their
OS-es). There'll be communal wars in the name os OS-es.
And then there'll be some Nazis who won't tolerate any disgrace to their
religion -- either use their OS, or die! Takeovers follow when some
profilic superpowers try to spread their religious colonies throughout
the globe (or every other planets perhaps). Divide-and-rule based on
your OS still works. There is widespread anarchy in the name of one's OS.
Then there'll be a Mahatma. He'll be too lazy to attach himself to any
OS -- if you format his system and install your OS, he'll acquiescedly
offer his other PC as well (his forefathers used to offer the other
cheek when slapped on one). He'll be assassinated by a virus of the same OS.
Children's names rhyme with the OS internals -- Kernel Prasad, chmod R
Shastry, Insmod Pandey, Modprobe Chaurasia, Ipod Vidyadhar, Zotob Gates,
Bill Nimda, etc. Marital and funeral rituals are tied closely to the
nature of booting and crashing of your OS, respectively.
Whoosh! I'm waiting for 2015.
Wednesday, September 28, 2005
Halting the gears

It's general knowledge that glxgears can be used to get a quick peek of a graphics card's performance. glxgears is fill-limited, that is, the frames-per-second (FPS) depends on the size of the window. I describe here a small exercise with glxgears: Halting the gears.
Increasing the window size decreases the FPS. However, the perceived sense of rotation (clockwise or anti-clockwise) of the gears appears to switch as you increase the window size. That is, as you drag the corner of the window and make it larger, the gears will appear to be rotating clockwise and then at a point they'll apear to be moving anti-clockwise and then again they'll appear to moving clockwise at a point... and so on. This is akin to the rotation of a fan wherein you can sometimes feel the blades moving in a direction opposite to the blades' actual direction of motion. So, after making x no of rotations, if a point p on the periphery of a gear lands ahead of it's original place, the perceived sense of rotation is the same as its actual rotation direciton. However, if the point p falls short of its original place, the gear will be perceived as rotation in the opposite direction.
The Exercise: Drag the corner of the window to increase the size and bring it to the point such that the perceived sense of rotation of the gears is just about to change. At this juncture, it'll appear that the gears aren't even moving -- as if they're halted. It's a bit difficult to manouvre the size to a perfect standstill, but it's worth the pains!