Amber Jain's weblog (OLD)

Visit my new weblog at http://amber-jain.blogspot.in/

j.o.k.e. that I enjoy always :-D

with 2 comments

Yes, you get get it right. This joke is the one that I enjoy most and this one made me laugh about hundred times. So here’s a blog post dedicated to this joke:

A grade school teacher was asking his pupils what their parents did for a living. “Tim, you be first. What does your mother do all day?”
Tim stood up and proudly said, “She’s a doctor.”
“That’s wonderful. How about you, Amy?”
Amy shyly stood up, scuffed her feet and said, “My father is a mailman.”
“Thank you, Amy” said the teacher. “What does your parent do, Billy?”
Billy proudly stood up and announced, “My daddy plays piano in a whorehouse.”

The teacher was aghast and went to Billy’s house and rang the bell. Billy’s father answered the door. The teacher explained what his son had said and demanded an explanation. Billy’s dad said, “I’m actually a system programmer specializing in TCP/IP communication protocol on UNIX systems. How can I explain a thing like that to a seven-year-old?”

PS- I’m supposed to ‘start’ studying now. End semester exams starting from December 18 2009. Let’s see if I can resist the temptation to blog till end of my exams (December 31 2009).

πŸ™‚

Written by Amber Jain

December 14, 2009 at 3:39 PM

Posted in Fun Stuff, Random rants

Tagged with , , , ,

Tell others that Google search exist!

leave a comment »

Hullo πŸ™‚

Sometimes you need to tell others to search google. Here are some ways to do so:

1. Simplest one is GIYF. GIYF = Google Is Your Friend. Jargon file entry. Another link.

2. lmgtfy. Let me google that for you.
htsti. How to search the internets?.

3. justfuckinggoogleit

4. gog.is. Gog.is – the simple url slapper and forwarder

If I find more similar variants, I will link them here.

πŸ™‚

Written by Amber Jain

December 9, 2009 at 9:06 AM

NoPasteBinDotCom

leave a comment »

Reason:
http://jcatki.no-ip.org:8080/fncpp/NoPasteBinDotCom

I’m starting to love http://codepad.org/ now
Here’s another one: http://ideone.com/. This one has support for many more languages.

Update: March 27, 2010: Other similar services:
http://dpaste.com/
http://www.pastie.org/
http://paste.pocoo.org/

Update: September 13, 2010
Found this on #math on irc.freenode.net: http://mathbin.net/ Use mathbin.net with this LaTex symbol classifier service: http://detexify.kirelabs.org/classify.html

All services worked for me without any hassle.
Choose the one that you like.
πŸ™‚

Written by Amber Jain

December 3, 2009 at 5:46 PM

OpenBSD Docs

with 2 comments

Written by Amber Jain

November 30, 2009 at 4:09 PM

Posted in Openbsd

Tagged with , ,

Kubuntu 9.10 and hp-910 printer

leave a comment »

Hello,

I recently installed Kubuntu 9.10 and found out that my printer was not recognised. My printer model is hp-910. Previously, I had spent a day configuring this printer on OpenBSD (with success). I ran ‘hp-check’ on Kubuntu 9.10 and it said that I need to run following commands:

sudo aptitude install --assume-yes cupsddk cupsddk-drivers
sudo aptitude install --assume-yes libcupsys2-dev cupsys-bsd
sudo aptitude install --assume-yes libcupsimage2-dev
sudo aptitude install --assume-yes libdbus-1-dev
sudo aptitude install --assume-yes build-essential
sudo aptitude install --assume-yes openssl
sudo aptitude install --assume-yes libjpeg62-dev
sudo aptitude install --assume-yes libsnmp-dev
sudo aptitude install --assume-yes libtool
sudo aptitude install --assume-yes libusb-dev
sudo aptitude install --assume-yes policykit policykit-gnome
sudo aptitude install --assume-yes python-dev
sudo aptitude install --assume-yes python-notify
sudo aptitude install --assume-yes libsane-dev
sudo aptitude install --assume-yes xsaneamber

After this, I ran ‘hp-check’ again and it said: “Unsupported model: 910”. I then shot an arrow in the air [without caring about where it lands πŸ˜‰ ] i.e.:
sudo apt-get install cups

This installed CUPS and started cupsd (and all other stuff/settings were done automatically) and in KDE system tray it said:
“Printer hp910 is now ready to print your documents” (or something similar to this).

Then I printed a ODT document and printer was making that familiar noise πŸ˜‰

πŸ™‚

Written by Amber Jain

November 16, 2009 at 4:56 PM

Posted in Linux

Tagged with , , , , , , , ,

Adobe Flash on OpenBSD

leave a comment »

Hello,

I personally prefer to download youtube etc. videos first and then watch them using Mplayer etc. but here are some useful links if you really want to use Adobe Flash on OpenBSD:

Link 1
Link 2
Link 3

Update 1: swfdec (http://swfdec.freedesktop.org/wiki/) is also an option other than gnash on OpenBSD (or atleast it seems so) although I have not personally tried swfdec).

Update 2: http://www.bluelife.at/blog/articles/20100724-geckomediaplayer_as_Flash_Alternative_for_YouTube/
http://sourceforge.net/projects/lightspark/
Planning to rearrange stuff. Soon.
πŸ™‚

Written by Amber Jain

November 12, 2009 at 5:20 AM

Posted in Openbsd

Tagged with , , ,

Recursively search sub-directories in a directory to delete a file with a specific name

leave a comment »

Hello,

@Windows OS users: Sometimes when a malware simply installs itself recursively in all the sub-directories (starting from root i.e. C:) with the same name, you need to delete each file. Manual deletion is not usually possible when there are thousands of malware files. This could prove useful to you.
And yes, use some ‘better’ OS if you can.

On ##unix at irc.freenode.net, someone (justinko) asked a question that goes like:
Que: How to recursively search all sub-directories in a directory to delete a file with a specific name?

Answer: Rather than providing only the answer, I prefer putting the complete IRC log here (mind you, ‘justinko’ and ‘Riviera’ are the nicks of persons involved in this conversation):
justinko how do I delete a file in every sub directory?
justinko im in a directory that has directores, and inside those directories there is one file that needs to be deleted
Riviera with a particular name?
justinko yes
justinko I know the exact file name
Riviera okay
Riviera find directory/ -type f -name 'exact_filename' -exec rm -f -- {} +
justinko is find a command?
Riviera yes
justinko the sub-directories are all named differently
Riviera some finds (actually I only know about GNU find) even have the primary -delete
Riviera yes
Riviera i figured
Riviera The find command I gave you recusively checks all files in the "directory/" hierarchy for files with the name "exact_filename",
Riviera executing the command "rm -f --" with the found pathnames as parameters.
Riviera recursively*
Riviera If you want to learn more about find, read this: http://mywiki.wooledge.org/UsingFind
Riviera note that some of the examples given there are related to the bash-shell.
justinko damn that worked
Riviera I'm glad :)
justinko what is - type f ?
justinko I know rm -f is "force remove"
Riviera restricts the filetype to "ordinary files"
justinko k
justinko what does {} mean?
Riviera so that even if you'd have directories with the same name as the files you wish to remove, would be left alone
Riviera when find starts the command given after the -exec primary
Riviera (which, in this case, was "rm")
Riviera it replaces the {} with the pathnames it found.
Riviera the + says to put many of them
justinko amazing
Riviera with a \; instead of a +, one rm would be started per file
justinko are you a system admin by job?
Riviera but since rm can remove more than one file at a time ... using "+" is more efficient
Riviera no, i'm not :)
Riviera i study humanities ,)
Riviera am sorry, need to leave now, quite late here :)
Riviera nite :)
justinko thank you for the help!
Riviera :)

πŸ™‚

Written by Amber Jain

November 12, 2009 at 5:13 AM