Suramya's Blog : Welcome to my crazy life…

February 14, 2010

What a difference perspective makes

Filed under: Humor — Suramya @ 12:01 AM

Found this comic online and thought it was worth sharing. It clearly shows that everything you see depends on your perspective. You might like something because that I don’t because I am looking at it from another angle. That is why having someone else proofread your articles/drawing is a good thing for writers and artists.

Source: Faceless.co.za

– Suramya

February 13, 2010

Determine If Shell Input is Coming From the Terminal or From a Pipe

Filed under: Knowledgebase,Linux/Unix Related — Suramya @ 2:23 AM

Figuring out if the input to a script is coming from the terminal or from a pipe is not something that I have ever had to use but I found the possibility very interesting so sharing it over here:

#!/bin/bash

stdin="$(ls -l /dev/fd/0)"
stdin="${stdin/*-> /}"
ftype="$(stat --printf=%F $stdin)"

if   [[ "$ftype" == 'character special file' ]]; then 
	echo Terminal
elif [[ "$ftype" == 'regular file' ]]; then 
	echo Pipe: $stdin
else
	echo Unknown: $stdin
fi

– Suramya

Source: Linux Journal

February 12, 2010

Strange Laws in the world

Filed under: Humor — Suramya @ 2:02 AM

As promised in my previous post, I have pulled up the list of silly laws from a backup of my old site. Some of the laws might have been repealed since 2001 but I am not too hopeful as that would indicate that politicians gained some common sense.

Here are the laws sorted by region. The stuff in ()’s is my commentary on the laws

Florida

  • In Florida it is illegal to jog with your eyes closed.
    (One too many must have jogged into an obstacle.)

Maine

  • It is illegal for a Police Officer to tell a person to have a nice day after pulling that person over in a car
    and issuing them a ticket.

  • After January 14th you can be charged a fine for still having your Christmas decorations displayed.

  • You may not step out of a plane in flight.
    (Like someone would like to…)

New Hampshire

  • You may not tap your feet, nod your head, or in any way keep time to the music in a tavern, restaurant, or cafe.

  • You cannot sell the clothes you are wearing to pay off a gambling debt.

  • It is an offense to check into a hotel under an assumed name.

  • On Sundays citizens may not relieve themselves while looking up.

  • If a person is caught raking the beaches, picking up litter, hauling away trash, building a bench for the
    park and many other activities without a permit, he/she may be fined $150 for “maintaining the
    national forest without a permit.”

New Jersey

  • It is against the law to “frown” at a police officer.

  • It is illegal to delay or detain a homing pigeon.

  • You may not slurp your soup.

  • To keep them from forming bad habits, it is illegal to feed whiskey or offer cigarettes to animals at the
    zoo in Manville, New Jersey.

Oregon

  • It is legal to smoke marijuana on your own property! You just can’t sell it or buy it.

  • Patients do not have the right to know the details about any written or oral discussion of their medical
    treatment that is not recorded voluntarily in their chart by the nurse or doctor.

  • One may not bath without wearing “suitable clothing,” i.e., that which covers one’s body from neck to
    knee.

  • It is illegal to use foul or suggestive language during sex.

  • You may not pump your own gas in service stations.

  • Canned corn is not to be used as bait for fishing.

South Carolina

  • It is a capital offense to inadvertently kill someone while attempting suicide.

  • Merchandise may not be sold within a half mile of a church unless fruit is being sold.

  • By law, if a man promises to marry an unmarried woman, the marriage must take place.

  • All schools must prepare a suitable program for Francis Willard Day so that children may be taught
    the evils of intemperance.

Utah

  • A husband is responsible for every criminal act committed by his wife while she is in his presence.
    (A good way to get your husband in trouble)

  • You cannot have sex in the back of an ambulance if it is responding to an emergency call.
    (Was it such big a problem?)

  • It is illegal not to drink milk.
    (Mother’s would love to live over there)

  • Throwing snowballs is a fineable offense in Provo.

  • Women are prohibited from swearing in Logan.

Washington

  • You cannot buy meat of any kind on Sunday.

  • Lollipops are banned. (What!!)

  • It is illegal to pretend that one’s parents are rich. (Not fair!!)

  • It is illegal to carry a concealed weapon that is over six feet in length. Seattle, WA
    (Just how do we conceal a weapon over six feet on ones body??)

  • Dancing may not occur in the same establishment where alcohol is sold and consumed. Lynden, WA.

Assorted Laws:

  • In Phoenix, Arizona the law states that every man who enters the city limits must wear pants.

  • In Hackberry, Arizona there is a law that prohibits women from eating raw onions while drinking buttermilk on
    Sunday.

  • In some parts of the south USA, a widow or divorced woman isn’t allowed to dry her underwear on the front
    porch or on a clothesline before the sun goes down.

  • In some parts of the south, women aren’t allowed to eat pickles with their feet up on porch railings.

  • It is illegal to mispronounce the name of the state of Arkansas while within the state.

  • The state legislature passed a law that the Arkansas River can raise no higher than the Main Street bridge in Little Rock.

  • In Willowdale, Oregon no man may curse while having sex with his wife.

  • It is illegal to eat oranges while bathing in California.

  • In Kentucky, it is illegal to carry an ice cream cone in your back pocket.

  • In Fairbanks, Alaska it is illegal to give beer to a moose.

  • Venice has a “Pee-Pee” Tax On Tourists :
    In a bid to tap deeper into its rich stream of non-resident revenue, the watery city overtaken
    by millions of visitors has introduced a “toilet tax”- a steep surcharge on the price of using public
    lavatories. Introduced in September, this tax charges non-residents 1,000 lira (US 52 cents) per visit.

– Suramya

February 11, 2010

South Carolina now requires ‘subversives’ to register

Filed under: Humor,My Thoughts,News/Articles — Suramya @ 9:55 PM

I always think that politicians don’t think and most are dumb as a doorknob (Just as an FYI my mom is a politician but is an exception to the above rule 😉 ). They just don’t think and make these stupid rules that are supposed to make life better or easier or something.

But once in a while they come up with rules that make so little sense that even a five year old would know better… Which makes me wonder how they survived long enough to become politicians. The latest example of their folly is a new law in South Carolina, US that requires all ’subversives’ to register with the government.

Basically the law states “Every member of a subversive organization, or an organization subject to foreign control, every foreign agent and every person who advocates, teaches, advises or practices the duty, necessity or propriety of controlling, conducting, seizing or overthrowing the government of the United States, of this State or of any political subdivision thereof by force or violence or other unlawful means, who resides, transacts any business or attempts to influence political action in this State, shall register with the Secretary of State on the forms and at the times prescribed by him. “.

Where “subversive organization,” means every corporation, society, association, camp, group, bund, political party, assembly, body or organization, composed of two or more persons, which directly or indirectly advocates, advises, teaches or practices the duty, necessity or propriety of controlling, conducting, seizing or overthrowing the government of the United States, of this State or of any political subdivision thereof by force or violence or other unlawful means; “ To top things off there is even a $5 filing fee for this.

When I first read about this, I thought that it was a joke or a prank. However after a little digging and reading up on it I realized that they are serious and that this is an actual law passed last year. Are the politicians/bureaucrats in SC stupid enough to actually think that any “subversive organization” is going to register with them?

I had a list of other such idiotic laws that I posted on the 1st version of suramya.com back in the early 2000’s. I removed that section when I reorganized the site but this article reminded me of that list. So I will see if I can dig up one of my backups of the site and recover the list of stupid laws that I had. Once I find them I will post them here for your amusement.

Do you know of any other silly laws like this? I wonder if I can find some Indian Laws that are similarly stupid online. (There is no way I am going to try searching for this offline)

– Suramya

Details: Rawstory.com Article
Original Source:

February 8, 2010

Top 50 Funny Computer Quotes

Filed under: Humor — Suramya @ 7:30 PM

Found these quotes online while looking for something else and found them funny so decided to post them here:

50. “Some things Man was never meant to know. For everything else, there’s Google.”
41. “Programmers are tools for converting caffeine into code.”
36. “SUPERCOMPUTER: what it sounded like before you bought it.”
31. “My software never has bugs. It just develops random features.”
30. “The only problem with troubleshooting is that sometimes trouble shoots back.”
24. “If brute force doesn’t solve your problems, then you aren’t using enough.”
22. “Unix is user-friendly. It’s just very selective about who its friends are.”
20. “I’m not anti-social; I’m just not user friendly”
19. The world is coming to an end… SAVE YOUR BUFFERS !”
18. “If you don’t want to be replaced by a computer, don’t act like one.”
17. “Better to be a geek than an idiot.”
14. “The Internet: where men are men, women are men, and children are FBI agents.”
10. “1f u c4n r34d th1s u r34lly n33d t0 g37 l41d”
9. “Helpdesk: There is an icon on your computer labeled “My Computer”. Double click on it.
User: What’s your computer doing on mine?”
8. “I think Microsoft named .Net so it wouldn’t show up in a Unix directory listing.”
7. “If debugging is the process of removing bugs, then programming must be the process of putting them in.”
6. “Computer dating is fine, if you’re a computer.”
5. “Any fool can use a computer. Many do.”
4. “Hardware: The parts of a computer system that can be kicked.”
3. “Those who can’t write programs, write help files.”
2. “You know you’re a geek when… You try to shoo a fly away from the monitor with your cursor. That just happened to me. It was scary.”
1. “Computer language design is just like a stroll in the park. Jurassic Park, that is.”

Source: Top 50 Funny Computer Quotes | TechSource.

– Suramya

February 6, 2010

My Blog and Facebook account are now linked

Filed under: My Life — Suramya @ 11:20 PM

BTW, in case you are wondering why all these posts from me are showing up on Facebook all of a sudden, its because I have linked the two together and any posts I make on the blog automatically get published on my Facebook feed.

Just thought I should let you know.

If you don’t want to see the blog postings then I should be able to block the application (wordbook) and you won’t get any feed updates from it. In any case the blog posting are usually only once a day so I hope that people don’t find it too annoying.

Let me know if you have any comments/questions.

– Suramya

Visited the International Book fair in Delhi

Filed under: My Life — Suramya @ 11:15 PM

The 19th International Book fair has been going on at the Pragati Maidan in Delhi for the past week and will be ending tomorrow and since I love books there was no way I was going to miss it.

So I left for the Fair today at around 12 and got there at 12:30. The fair was in ~10 halls (not sure of the exact no) and I walked through 8 of them completely. It took almost 6 hours to do the entire trek and I ended up buying 9 books. The selections were good but for some reason there were not as many second-hand books as last year. So I only bought 4 books second hand the rest were new but at a discount.

Now all I have to do is figure out which one to read first. All sound very interesting (duh.. that’s why I bought them). In any case if you are in Delhi and are free tomorrow check the fair out. It’s open from 8am to 8pm.

– Suramya

February 5, 2010

Learn to use search effectively in Linux using grep

Filed under: Linux/Unix Related,Tech Related,Tutorials — Suramya @ 11:59 PM

grep is a really powerful tool that allows you to search for specific string/data within a given text. This text can be a list of files or the content of a given file, even a list of programs running. Basically it allows you to filter the required text from background noise.

As you can imagine it is a very powerful tool but most people don’t really learn to use it well. Zahid Irfan wrote a very nice blog post on ‘Why grep almost never yields something productive‘ for new Linux users and has some great examples that explain grep usage quite well for all users both new and experienced

Check it out.

– Suramya

February 4, 2010

Amazon pulls all Macmillan books from its listings

Filed under: Books Related / Reviews,My Thoughts — Suramya @ 11:56 PM

Last weekend Amazon and Macmillan Publishing got into an argument about the correct pricing for ebooks. Amazon wanted to limit the cost to $9.99 while Macmillan was pushing for $15. If I was just looking at this portion of the debate then I am firmly on Amazon’s side because as I have said before pricing ebooks at hardback prices makes no sense.

However Amazon lost all my respect and future business when it decided to throw a tantrum and removed all books from Macmillan and its subsidiaries from its listing (about 1/6th of the books in its listing) without telling anyone about it. Basically one minute the books were there and the next they were gone.

By this move instead of being gaining support for its stand for reducing costs they gained a lot of bad publicity and really pissed off a lot of authors whose books were removed from the listing without any fault of theirs. A lot of these authors posted about this on their blogs/twitter feeds/Facebook pages (I came to know about it from Mercedes Lackey’s posting on FB) and their fans are calling for a boycott of Amazon and are asking people to buy their books from other online stores instead. A lot of them have removed the Amazon affiliate links from their sites because of this.

Amazon then made a statement on Sunday that they are putting the Macmillan books back but at the time of this writing (4th Feb 2010) you still can’t purchase their books from Amazon except for used copies for which the Authors don’t get any royalties but Amazon still makes money on the sales.

When Amazon started off I did buy a couple of books from them but over a period of time I stopped because I was getting better deals at other sites. Then when I moved back to India their shipping costs made it unfeasible for me to buy anything from them.

Since I don’t buy anything from them any more, I can’t really boycott them, but if you do then do consider one of the alternatives listed below (Suggested by Mercedes Lackey):

From my side I suggest the following additional stores:

  • flipkart.com/: A Good store but only delivers within India.
  • Barnes and Nobel: Used to be my Favorite store. Haven’t really tried to get them to ship to India but within US they are awesome.

Here are some posts that explain what is happening in a little more detail:

Support the authors. Don’t let amazon bully its way to the top.

– Suramya

February 2, 2010

Exorcising my Dad’s HP dv5000 Laptop by dismantling it

Filed under: Computer Hardware,My Life,Tech Related — Suramya @ 10:35 PM

A few days ago dad’s HP Pavilion dv5000 started acting funny. He had put the laptop in hibernation but all of a sudden it would start up on its own for a few seconds and then would shut down due to low battery. This woke him up so he brought the laptop to my room so that I could take a look at it. I looked at it but didn’t find anything funny so I shutdown the system and told him that I would take a look at it in the morning.

A few minutes later the laptop started up again even though I had shut it down completely. I then removed the battery and left the AC Adapter plugged in to see if the problem was caused due to a faulty battery. But the laptop still started up again without anyone touching it. So I decided to take the laptop apart to see if there was a loose connection or something that was triggering the boot.

This laptop is designed in a way to make it really hard to open without knowing exactly where all the screws are located. Some of them are hidden behind other items like the Harddrive and the DVD-ROM, some are on the other side so you only see them when you remove the DVD Drive and look under the laptop again. It took me a couple of hours to get it all open.

The photos posted by Chris Davis on his flicker account helped a lot in getting the stupid laptop open. Thanks Chris. I owe you a beer.

Compared to this my Sony Vaio had taken me about 1/2 hour to open. The worst part is even simple stuff like resetting the BIOS by removing the battery require you to dismantle pretty much the entire laptop. I think this is an issue with all HP systems because I remember trying to upgrade the RAM on a HP desktop and that took us most of the day (this was back in 2006 I think)

Anyways once I managed to open the laptop, I cleaned it and put it back together. Since then the laptop hasn’t started up on its own again (so far) so I guess we are good for now. Dad’s happy that the laptop stays shutdown when he turns it off and I don’t have to take it to a hardware repair shop to get it fixed which would have been a pain.

The next item on my repair list is my N95. I think I need to update the firmware on it but before that I will have to backup all the SMS’s, logs, etc etc on it. Plus all the programs I have installed. So that’s a task for another day.

– Suramya

« Newer PostsOlder Posts »

Powered by WordPress