Sunday, March 30, 2014

Saturday, May 11, 2013

Monitor out of range

I was running a live cd and was getting monitor out of range on my old CPU with Samsung Monitor.
I browsed through the net and found several solution like adding vesa 800X600 or GRUB_GFXMODE=640x480 to the grub.
But none of these worked. Finally I found the solution and it is quite simple. Add "nomodeset" to the grub options.

If the grub boot command looks like this:

linux /vmlinuz-3.6.7-4.fc16.x86_64 root=UUID=0572d37f-cce7-4626-970d-e8d9b0fd5cc4 ro rd.md=0 rd.lvm=0 rd.dm=0 KEYTABLE=us quiet SYSFONT=latarcyrheb-sun16 rhgb rd.luks=0 LANG=en_US.UTF-8

Add nomodeset after vmlinuz

linux /vmlinuz-3.6.7-4.fc16.x86_64 nomodeset root=UUID=0572d37f-cce7-4626-970d-e8d9b0fd5cc4 ro rd.md=0 rd.lvm=0 rd.dm=0 KEYTABLE=us quiet SYSFONT=latarcyrheb-sun16 rhgb rd.luks=0 LANG=en_US.UTF-8

Press enter to boot.

It works for fedora/ubuntu. And should work for other distros as well.

Thursday, January 10, 2013

Audio distorted in VLC on Linux

Update: Follow the steps on this website instead. This fixes issues with skype as well. The below mentioned procedure hinders two different applications to use the audio device at the same time.

If you are facing audio distortion in VLC on Linux. Follow the below mentioned steps.
In some cases the audio is distorted from the start, in other cases, the audio distortion starts when on fast forwards.

1. Press Ctrl + P (or go to Tools and select Preferences)
2. At the bottom of the window, there is option "Show settings", select "All"

3. In Audio
    In Output modules
        Select Audio output module: "ALSA audio output"

4. In Output module
        In ALSA
            Select the "Audio output device"
                 A list of devices is shown, select the default audio device
         

4. Save
5. Close VLC
6. Open VLC again and try again.

Note:  Selecting the default audio device worked for me. If it doesn't work, you can try with others. Just  remember to save, close and open VLC again.

If this doesn't solve your problem, try one of the things suggested here.



Audio distorted in VLC on windows

If you are facing audio distortion in VLC on windows. Follow the below mentioned steps.
In some cases the audio is distorted from the start, in other cases, the audio distortion starts when on fast forwards.

1. Press Ctrl + P (or go to Tools and select Preferences)
2. At the bottom of the window, there is option "Show settings", select "All"

3. In Audio
    In Output modules
        Select Audio output module: "DirectX audio output"
4. Save
5. Close VLC
6. Open VLC again and try again.

Note: In some cases, audio mode "Win32 waveOut" works better

If this doesn't solve your problem:
Read
1. http://wiki.videolan.org/WindowsFAQ-2.0.x#Crackles.2C_pops.2C_hizzes_and_other_audio_anomalies
2. http://forum.videolan.org/viewtopic.php?p=339577#p339577



Friday, August 17, 2012

Some pretty cool things

Read a few things after a long time.

1. Amazing 7 things I never knew I could do with bash. Read it here
2. Make you PC wake up automatically. Read it here
3. Packet Sniffing Basics. Read it here

Wednesday, August 15, 2012

Deleting a fake facebook profile

What you need:
1. A color scanned copy of your passport showing your name, date of birth and photo. You can cover the passport number. Its better if the file is in jpg format. (Mandatory)

2. The link to the fake  profile. (Mandatory)

3. Screenshot of the profile. If you cannot see it, ask someone who can give it to you. (Optional)


Step 1:
Logout of your facebook account, if you have one. (If you are logged in, it asks you to report and block the profile but that doesn't seem to delete the profile.)

Step 2:
Log on to http://www.facebook.com/help/contact/?id=169486816475808

Step 3:
To the question: "Do you have a facebook account?"
Click "No"

Step 4:
To the question: "What issue are you experiencing?"
Select "This person is pretending to be me or my friend"

Step 5:
To the question: "Is this account impersonating you?"
Select "Yes, I am the person being impersonated"

Step 6:
Provide the details like:
- Your Full Name (should be same as on your passport)
- Your contact email address
- Full name on the impostor profile (copy it from the info/about me from the profile)
- Email address listed on the impostor profile (if this is not visible, leave it blank)
- Link (URL) to the impostor profile (paste the link of the impostor account)
- Upload the color scanned copy of your passport.

Step 7:
Click "Send"

You will get a email from facebook. Reply to that email with the details present in the email like

Your name
Your address
Your phone number
Impostor accounts full name

Attach the screenshot of the impostor profile and your id proof.

Note: Its best if the screenshot and your id proof are in jpg format.

The mail reads that the account will be looked at in 72 hours. But I have noticed that the account gets deleted in less than 12 hours.

Once the account is disabled, you will receive a mail from facebook informing you about this.

Monday, August 13, 2012

Anand Movie Dialogues

Some of my favorite dialogues from Anand (1970) movie

Lekin kuch udaas laga
udasi khubsurat naho hoti hai babumosai
haan hoti hai magar tumhe toh hamesa haste dekha hai na, isliye
toh kya har khushi ke piche sirf khushi rehti hai babumosai, kabhi kabhi gum bhi toh

Anand aaj kuch bolte bolte ruk gaya.
Kehte kehte apna gum chupaliya usne.
Woh gum hi sayad uske jinda rehne ki sakti hai.
Warna yeh kaise mumkin hai, ki jiska sarir din badin kamjor ho raha hai, uske man ki sakti is tarah badhti jaa rahi hai.
Lekin uska gum kya hai, chahate huye bhi maine janne ki kosis nahi ki.
Agar wahi sakti hai uski, toh acha hai woh gum wahi uski dil ki gehrahiyon me chupa rahe.

-------------------------------------------------------------------------------------------------

Medical profession me ek woh mukam bhi aata hai jahan tamam ilaj khatm ho jaate hain aur doctor. Ko sirf marij ke khatm hone ka intejar karna padta hai. Is bebasi ko siwae ek doctor ke aur koi nahi jan sakta. Hey bhagwan, kitni bhayanak bebasi

-------------------------------------------------------------------------------------------------

Bas gine ginae kuch panne baaki hain anand ki jindagi ke, uske gine ginae kuch dino ki tarah.
Renu ne thik hi kaha tha ki ache logon ki bhagwan ko bhi utni hi jarurat rehti hai jitni hame.
Uske saamne kisi ki marji nahi chalti, haan kehte hain kabhi kabhi prarthana chalti hogi, aur is waqt main janta hun sab wahi kar rahe honge.
Lekin ant hum sab jante hain, hum sab dare sehme usika intejaar kar rahe hain
Kab. Kab. Kis waqt
.

-------------------------------------------------------------------------------------------------

Maut tu ek kavita hai
mujhase ek kavita ka vaadaa hai milegi mujhako
dubati nabzon mein jab dard ko neend aane lage
zard saa cheharaa liye chaand ufak tak pahunche
din abhi paani mein ho, raat kinaare ke kareeb
na abhi andheraa ho, na ujaalaa ho, na raat, na din
jism jab khatm ho aur ruuh ko saans aae
mujhase ek kavita ka vaadaa hai milegii mujhako

-------------------------------------------------------------------------------------------------

Jindaga aur maut uparwale ke hath hai jahapana, jise na aap badalsakte hai na mein. hum sab to rangmanch ki katputlia hai, jiski door uparwale ke haath bandhi hai kab kaun kaise uthega ye koi nahi janta