Sunday, 29 July 2007

The Best Geek Quotes, Sayings, and Phrases - 51 to 60


1. In the beginning GOD created the Bit and the Byte. And from
those he created the Word.

2. And there were two Bytes in the Word; and nothing else existed.
And God separated the One from the Zero; and he saw it was
good.

3. And God said - Let the Data be; And so it happened.
And God said - Let the Data go to their proper places.
And he created floppy disks and hard disks and compact disks.

4. And God said - Let the computers be, so there would be a place
to put floppy disks and hard disks and compact disks.
Thus God created computers and called them hardware.

5. And there was no Software yet. But God created programs; small
and big... And told them - Go and multiply yourselves and fill
all the Memory.

6. And God said -I will create the Programmer; And the Programmer
will make new programs and govern over the computers and
programs and Data.

7. And God created the Programmer; and put him at Data Center;
And God showed the Programmer the Catalog Tree and said
You can use all the volumes and subvolumes but DO NOT USE
Windows.

8. And God said - It is not Good for the programmer to be alone.
He took a bone from the Programmer's body and created a
creature that would look up at the Programmer; and admire
the Programmer; and love the things the Programmer does;
And God called the creature: the User.

9. And the Programmer and the User were left under the naked DOS
and it was Good.

10. But Bill was smarter than all the other creatures of God.
And Bill said to the User - Did God really tell you not to
run any programs ?

11. And the User answered - God told us that we can use every
program and every piece of Data but told us not to run Windows
or we will die.

12. And Bill said to the User - How can you talk about something
you did not even try. The moment you run Windows you will
become equal to God. You will be able to create anything you
like by a simple click of your mouse.

13. And the User saw that the fruits of the Windows were nicer and
easier to use. And the User saw that any knowledge was useless
- since Windows could replace it.

14. So the User installed the Windows on his computer; and said to
the Programmers that it was good.

15. And the Programmer immediately started to look for new drivers.
And God asked him - What are you looking for? And the
Programmer answered - I am looking for new drivers because I
can not find them in the DOS. And God said - Who told you need
drivers? Did you run Windows?
And the Programmer said - It was Bill who told us to !

16. And God said to Bill - Because of what you did you will be hated
by all the creatures. And the User will always be unhappy with you.
And you will always sell Windows.

17. And God said to the User - Because of what you did, the Windows
will disappoint you and eat up all your Resources; and you will
have to use lousy programs; and you will always rely on the
Programmers help.

18. And God said to the Programmer - Because you listened to the
User you will never be happy. All your programs will have errors
and you will have to fix them and fix them to the end of time.

19. And God threw them out of the Data Center and locked the door
and secured it with a password.

20. GENERAL PROTECTION FAULT

Thursday, 19 July 2007

A cool captcha!

Are you human?
This is a question we often get asked when registering for things on the net - the sign up page gives a scrambled image containing some text, and we are asked to type out the characters from that.
This is to make sure that we are indeed human, and not some software created to make fake registrations for illicit usage. The idea is that software programs cannot 'see' the text within the image, while we humans can.
Now, this site has a cool new way of doing it: instead of asking to type out letters from an image, it asks us to solve a math problem. It is usually a simple problem which can be solved by anyone with undergrad level math practice. I got 'what is the least zero of the polynomial x^2 + 3x' (the answer is -3).
While not everyone might be able to solve these problems, the site registration too is not for everyone - it's a registration to download a 'quantum random bit generation service' client; someone downloading that can probably solve these problems hands down...

PS: No, I didn't download the client. I registered only because I heard about this cool method of doing a captcha and wanted to give it a try... :)

Google to search man pages

You are in your browser, furiously typing away your latest shell script (to send it to someone else, or to post in forums or at Slashdot). Suddenly, your memory trips you up, and you find yourself wondering "does the 'cut' command use a space or a tab as the default delimiter?". With Google at your service, there is no need to move away from your browser. If you are on firefox, just type 'man cut' in the addressbar; otherwise, google for 'man cut' and use the first result.
Google doubles up as a 'linux command helper' like this whenever we use search queries of the form 'man command'. Add one word to the query anywhere, and we get our good old Google search.
I had been using this method for quite a while. But I was not sure whether it was an intentional feature or it's just that the man pages tend to be the first results. But today, when I tried 'man cut', I landed on the man page. It is hard to imagine that a man page could overshadow common meanings of the words (man and cut). So, it does seem that google treats 'man command' searches specially...
It seems that this is not an officially announced feature - a google search for details about it returned no relevant results. Anyway, it does work. Our beloved man pages are now only a 'new tab' away!

Friday, 6 July 2007

Linux is for everybody - just approach it the right way!

Linux is for everybody.
Yes, I just said that.
A few months ago, I would have vehemently opposed such a statement. That was when I was trying to learn the Linux GUI - because that's what many recommended on forums; a lot of posts said Linux with a GUI is very much like Windows.
It isn't.
Then, I did the Right Thing - I got hold of a Unix book (not a Linux book - because a lot of them try to 'simplify' the task at hand and suggest things that won't work in many situations).
If there's one good thing about the Unix books, it's that they don't try to teach you GUI. We all (well, at least most of us) come from Windows or Mac and are very much used to the GUI. So, when we learn Linux, we try to use the GUI the same way we've used it for so many years.
The problem is, it doesn't work that way. Linux does have a GUI, and it has improved a lot. However, unless you learn the command line, life's going to be pretty difficult for you...

Command line? That strange black entity with no fancy icons or anything?
Yep... But it isn't as unfriendly as you think. In fact, you'll get accustomed to using it in some 15 minutes. And you'll start loving it in a few days.

But... but.. doesn't that mean I have to learn some commands? (Gulp...)
Yes and no. You do have to learn a few basic commands, but they are really quite a few, and aren't all that difficult to learn. The other commands you can always look them up. We'll come to that shortly.

Before that, let's see a few things that are essential in making the command line easy:
* Tab completion: Type half of a filename, type a tab, and Linux completes the name for you. Type a few letters of the latest command you learnt, type a tab, and you get the command completed for you. This might not seem all that important, but this is what transforms a laborious job of typing out everything into a quick and easy way of doing things.
* Command history: Anytime you want to repeat a command, or do a slightly modified version of it, press the up arrow a few times. You can go through a long history of the commands you typed. This is the next important feature in using a CLI (Command Line Interface).
* apropos: This is a nifty little program that searches the help pages for a word you specify. Not sure what program to use to view pdf files? Do an 'apropos pdf', and you get a list of all programs whose descriptions contain the word pdf. This is the 'look it up' utility I talked about earlier...
With these three features at hand, you can master the world of Command Line in a few days. Want to shrink that to a few hours? Just keep watching here - we'll look at a few very important, easy-to-use commands that will make you a confident user of the command line, and will get you some awed looks from among your geek friends... :)

LOTD: What are you investing in? Technology, or yourself?

http://www.codinghorror.com/blog/archives/000900.html

Monday, 2 July 2007

Two laws which will ensure your product's success

1. If Metcalfe's law can apply for your product, make it insanely cheap and easy-to-use.
2. Assume Metcalfe's law will apply.

Note: The accurate versions of these laws tend to become too long and boring (I think Randall Munroe once did a cartoon on this), so please try to think up the accurate versions and then discard them... :).

Anyway, these words of wisdom originated when I was reading an article about Apple's Macintosh. The Mac seems to be a wonderful piece of work... And everyone who own's one seems to be very proud of it. But, to this day, I personally don't know anyone who owns one, or would even consider buying one.

Why is it so?

I think the above 2 laws are the answer.. PCs were cheap from the beginning. Macs were not (or at least they were perceived to be costly). So, the ordinary Joe went for a PC, and only the elite thought of the Mac. This became a sort of a rule, and the owners of the Mac actually seem to be proud of this. However, this is not good news for Apple - they lose potential customers. So, the folks at Apple seem to be trying to catch up, but I don't think they'll be terribly successful because, whatever Apple does to make Mac better,

* when geek George goes out to buy a computer, he knows that he needs a PC because every one of his friends has a PC, and he would anyway be developing applications for a PC only - that's where the market lies.

* when papa Peter goes out to buy a computer, he knows that he needs a PC - he doesn't want to be the 'odd one out', nor is he delighted by the idea of always having to make sure whether a particular software will run on a Mac before downloading it.

* when grandma Ginny goes out to buy a computer, she knows that she needs a PC - because everyone says so.

So, that quite sums it up - it all comes down to Metcalfe's law. More people use it, more people buy it, more people use it, more people buy it, and so on ad infinitum.
And that perhaps explains the ubiquity of products which are cheap, low in quality, and insanely popular. Just look around yourself, and you'll probably find one...

LOTD: Real Success Recipes

http://www.lifehack.org/articles/lifehack/success-recipes-most-people-know-but-too-few-follow.html

A fresh addition...

The net is full of random things. However, everyday, I happen to stumble upon something really worth sharing. And I'm going to share them with you...
So, from now on, I'll post every day a Link Of The Day (LOTD). Under unusual circumstances, I might overdo and post more than one LOTD, but I'll try to avoid that.
That's it for now... Have a wonderful life. Let you conscience lead you on your Tao.

Oops! I forgot to tell you...

...that FDMalso has a nice little feature called the drop box. Whenever FDM is loaded, a small unintrusive box (with a downward arrow on it) floats on the screen. When you see a link you would like to download using FDM, you can just drag the link and drop it in the box (hence the name 'drop box'). FDM takes over the download... This is perhaps the best feature of this download manager. But, spoiled as I have been by other download managers, I forget this box quite often and use the older 'monitoring' methods. Perhaps this post will get me started on using this neat little box.

Sunday, 1 July 2007

Free Download Manager


The title is the actual name of a program. It is, well, a free download manager... (You can get it at http://www.freedownloadmanager.org/download.htm).
I had been using GetRight for a long time as my download manager. Must say it did quite a good job. But I was sticking to it not because I loved it or anything; I had just gotten used to it. Then, as I told you before, I decided not to use any pirated software. So, I downloaded the Free Download Manager. I must admit that I wasn't expecting much. After all, it's totally free, and not that popular anyway...
But FDM (that's what they call it) totally exceeded my expectations.
First thing, it is not at all intrusive. Occupying about 1% of my RAM, it just sits quietly on the system tray waiting for my command.
When I click on the system tray icon, the FDM main window pops up. The user interface of the window is good, simplistic and well thought out. Add a URL to download? Click the + button. Schedule the download? Click the clock. Intuitive? You bet!
FDM also has the clipboard monitoring and browser click monitoring facilities I've become very much used to (Note: I'm not sure if these options are enabled by default, but they are available by just right-clicking on the system tray icon).
Whenever I click a downloadable link on my browser (for eg. a zip or exe file), FDM understands I want to download the file, and pops up. The window contains the link I clicked, the place where FDM will download it, and a button to check whether the link leads to a malicious download, among other things.
However, there is one caveat: files are marked as malicious or not by people like you and me (not by security experts), so they are not always reliable. A few times, I get a false alarm that the download is malicious. So, my suggestion would be to ignore a warning if only a small percentage of users have marked it as malicious, and pay serious attention only if a majority of users warn about the download.
Sometimes, people just place the address to a download on a web page, without actually making it a clickable. FDM is intelligent enough to handle these too. Just select the address, right-click and copy. FDM springs up and asks where to save the file...
And while the file is downloading, you can just move to your browser and continue surfing the net.
On the other hand, if you choose to remain in FDM, there are quite a few things you can do.
The first tab at the bottom of the window, the log, shows textual messages about the progress of the download.
The second tab in it is one of my favourites: it shows the progress of the parts of the file. Click on the screenshot above and take look at it to see what I mean. From a utilitarian point of view, it isn't terribly useful, but it just thrills me to be able to see an exe or zip file being 'filled' by bytes from some server somewhere. :)
And if you happen to be downloading audio or video, you can preview it from within FDM itself - that is the next tab.
The last tab is the 'opinions' tab, where you get to look at the opinions of others who have downloaded this same file. In most cases, this is useful only to get a fuzzy idea of how the downloaded file is going to be; however, in some cases (especially when downloading antivirus or firewall software) these opinions give very useful info about any possible incompatibilities. This way, you know beforehand how to tackle any problems you might face.
And last but not least, FDM manages to do what I mean (DWIM) most of the time. It does not try to be over-intelligent and annoying, and yet manages a very good job of helping me out. In these days of overly bloated programs filled with unnecessarily features, stumbling across this kind of simple, yet powerful programs is becoming quite rare. Kudos to the makers of this wonderful program...