January 2009
You know you are addicted…
- When you check your blackberry every minute, even when there is no e-mail waiting for you..
- When you are in a social gathering and keep checking your blackberry rather than mingle with people..
- When you are in a drive-thru lane at a fast food place and have to think “I will not check my blackberry until, I get to the window and get my food” (that takes an average of 30 seconds!!)..
I think I need to get some help here :-).. And looks like this is not a new phenomenon.. Here are some stories about the addiction
http://www.informationweek.com/blog/main/archives/2007/03/just_how_far_do.html
http://www.dailymail.co.uk/news/article-401646/Blackberry-addiction-similar-drugs.html
Any ideas? 🙂
HOW TO : View HTML pages in Linux (command line)
If you are stuck in a terminal on a Linux workstation and need to view a html file.. you can use the following command
links NAME_OF_HTML_FILE
Links displays the HTML code in the page by default..If you want to just view the rendered HTML, press “\” and you can toggle between HTML and Text views.
P.S : You need to have links installed to use it :).. But most of the new distributions have it installed by default.
Lessons of the trade : Data purge in databases..
Quick note to myself.. If you have a high volume transactional database and are looking to purge data from a table(s).. make sure you purge the data in small chunks. If you purge the data in larger chunks (rows), other processes trying to access the data on those tables have to go to the redo logs to access the data, since the purge job will put a lock on the table. This obviously adds latency to the queries.. So purge the data in smaller chunks (rows), forcing the database to flush the redo logs.
Why I added 5lbs of weight in 3 weeks…
Five Guys, a burger chain from the east coast opened their first franchise in Chicago… If you want some fresh juicy burgers and peanuts to eat while the burger is being made, this is the place to go to. I first tasted the Five Guys burger when I was in Washington DC, a couple of years ago, on work.. I thought how cool, it would be to open one in Chicago. Looks like some enterprising entrepreneur actually took my idle thought and opened one :-).. It is located at 2140 N. Clybourn Ave.
Coming to the title of this post.. Why did I add 5 lbs of weight? These three pictures should tell you why..
YUM
YUMMM
YUMMMMMY
OK.. That is my friend Rich.. but you get the idea :-)..
SourceForge : Project of the Month
SourceForge.net is an online community supporting open source projects by providing hosting, distribution and subversion services. They choose a project every month from the hundreds of thousands of projects that are hosted on SourceForge based on popularity and activity. Most of the projects are the who is who of the Open source community. This is a good link to bookmark.. http://sourceforge.net/community/index.php/potm/
OverHeard : Comment about conflicts
Comment by George Mitchell, new US envoy for Middle East appointed by President Obama and Secretary of State Clinton, about conflicts
Conflicts are created, conducted and sustained by human beings; they can be ended by human beings..
Have idle time??
Then check out Futility Closet (http://www.futilitycloset.com/), a blog by Greg Ross with misc. tidbits about math, language, puzzles etc. Did you know that Karoshi means “death from overwork”.. And this is a statistic that the Japanese Government tracks annually.. See, now you are smarter than before reading this post :-)..
Be careful what you put up on Facebook..
Ran across this story on BBC (http://news.bbc.co.uk/2/hi/uk_news/england/staffordshire/7845946.stm) about a women being stabbed to death by her husband because she changed her status to “single” from “married” on Facebook.. WTF????? What is wrong with people!!
Morale of the story : Be careful.. what you put up on the Internet.. :-).
P.S : As you can see.. that rule doesn’t apply to me :-).
HOW TO : Delete duplicate lines in Linux/Unix
If you have a large text file and want to quickly delete any duplicate lines, you can use the following option of sort in *nix..
sort -u filename > newfilename
If you want to get even funkier :), like only checking duplicates on a particular column, feel free to check out this link http://www.gnu.org/software/coreutils/manual/html_node/sort-invocation.html#sort-invocation.