Categories

 

May 2012
M T W T F S S
« Feb    
 123456
78910111213
14151617181920
21222324252627
28293031  

What I'm Doing...

PlaytimePriya and KunalIMG00015.jpgIMG00017.jpgFallColors.jpgSpring

Convert AVCHD video to MPEG-2

I have a Canon H100 video camera. This records high definition 1080p videos in a digital video format called AVCHD. It has been a pain to watch these videos. First of all, these videos don’t even play properly on my single core PC. My 3-4 year old PC is just not powerful enough. The video [...]

Share

Wake up your PC from your xbox using xbmc

I read an old lifehacker article on wake-on-lan the other day and decided I should try it on my home network. After using the free tool Magic Packet Sender mentioned in the article successfully, I thought how cool would it be to start my media server from my xbox. I use my xbox as my [...]

Share

Same music album showing up multiple times on iPhone

I created an album with different artists to listen on my iPhone. To my horror all the songs showed up as separate albums. Cover flow showed up the same album art for each of the songs. I hated this!! The fix is pretty quick. You have to make sure of the following to make your [...]

Share

A better cygwin terminal - rxvt

rxvt is so much more better than the default cygwin terminal. You will thank me once you switch to using rxvt. To get rxvt working without starting an X Server, just create a shortcut using the following -

C:\cygwin\bin\rxvt.exe -fg green -bg black -fn "Lucida Console-14" -e bash –login -i

This is assuming that cygwin is installed [...]

Share

Grep for multiple stuff in one file

Update: See the comments to see how to do this correctly.

the UNIX grep command is very powerful, but the egrep command is even more powerful. You can grep for multiple strings in a file using the egrep command. All you have to do is use the | (or) symbol and add as many strings you [...]

Share

Find user details on windows user in a domain

Here is a quick tip – If you want to find out details on a user account on windows inside a particular domain use the following command on a DOS prompt

net user username /domain

where the username is the username of the account you want more information on. You can get a lot of information with [...]

Share

Hit by AV.EXE virus - Cannot run any programs

I recently got hit by the AV.EXE virus. This was a really bad virus. I got a pop up which looked as if it was a windows dialogue box telling me to install this anti spyware/virus scanner. I knew I should not even touch the popup box and not even try to close it. The [...]

Share

How to go from Oracle to CSV

Here is a trick to to create a comma delimited file from oracle. You can create a csv file simply using SQL*Plus with any sql statement. Here it is -

set feedback off
set heading off
set underline off
set colsep ‘,’
spool /path/to/file/mysheet.csv
select * from table
spool off

Here are some other ways I found online
http://kpanchan.blogspot.com/2007/05/extract-csv-file-format-in-oracle-sql.html
http://www.oracle-base.com/articles/9i/GeneratingCSVFiles.php
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:68212348056

Share

Sending email with a body and attachment from UNIX

It is easy to send a text file as the body of an email from UNIX. You can do it using the command below

mail -s "Email with file as body" email@domain.com < message.txt

Now if you want to send a file as an attachment, you would need to use uuencode piped to mail. This file can [...]

Share

xampp problem due to missing lang.tmp

I was trying to open the xampp home page today on my dev box and I got the following error -

Warning: file_get_contents(lang.tmp) [function.file-get-contents]: failed to open stream: No such file or directory in C:\xampp\htdocs\xampp\index.php on line 2

I initially thought I had corrupted my install, but just for the heck of it, I thought I would [...]

Share