Monday, November 30, 2009

VNC vs X11 Forwarding

Image via Wikipedia
Did some research around and compiled following, they are pretty interesting:

  • VNC typically uses fewer round-trips than X, particularly as an application starts up. Your link is quite high bandwidth, but if the latency is high, you may find things appear more quickly if you use VNC than if you use X.
  • X, however, generally requires much less bandwidth once the application is up and running. This is because it makes more use of resources at the terminal (fonts, cursors, etc). With VNC these are all rendered at the server and copied over the network. So X will often be faster, but VNC works across more platforms and is less dependent on the facilities at the terminal.
  • X applications will die when the connection is broken, whereas a VNC viewer can disconnect and reconnect as many times as it likes and the applications keep running. This is particularly useful if you have long-running apps, or if you wish to connect from more than one place.
  • People seem to be forgetting one of the more important factors - normally when you run an X server (such as XWin32 for Windoze) the heavy memory usage is at the user's end. The applications you start on the server and that connect to your X server are relatively light-weight. With VNC you reverse that role again, not only will you most likely run your apps on your server, but also the X server itself will then be on that server. With a few users running (VNC) X servers memory usage could be significant.
  • Previously I used XWin32 at work, but everytime the machine (or just XWin32) crashed I would lose all my sessions. Also, XWin32 can be quite heavy for your PC - depends a bit on how much memory you have and all that. Nowadays (ever since I learned of VNC) I and several colleagues run VNC X servers on our admin server and connect there with the VNC clients. With SSH and port forwarding we're also able to pick up our sessions from home (mostly through dial-up ISDN, usable but not fast) as well.
  • I also use VNC at home to access the VNC server on my Linux box. Speed is good (would be better even with 100Mbit ethernet instead of 10Mbit) and again it doesn't matter whether my W98 box crashes, the server will stay up.
  • I've used VNC a long time ago too when I first tested it over a 2Mbit connection, and I recall that as very usable. X connections over that connection are slow anyway. :) Your mileage may vary - what window manager and the like you use matters a lot too. The simpler the graphics the less data, etc. It can't be put as simple as you think.

Updates: VNC is much much faster than X forwarding, as observed from the testing.

Wednesday, September 16, 2009

Converting FLV to Creative Zen

Only command:
ffmpeg -i 1.mp4 -mbd -f avi -vcodec mpeg4 -maxrate 1000k -b 700k -qmin 3 -qmax 5 -bufsize 4096k -g 300 -acodec libmp3lame -ab 192k -s 320x240 -aspect 4:3 -r 25 -vtag DIVX op1.avi

Tuesday, August 18, 2009

Command to check service running on linux

veeresh@ubuntu:~$ sudo netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0* LISTEN 18108/sshd
tcp 0 0* LISTEN 2738/cupsd
tcp6 0 0 :::22 :::* LISTEN 18108/sshd
tcp6 0 0 ::1:631 :::* LISTEN 2738/cupsd
udp 0 0* 3069/dhclient
udp 0 0* 2710/avahi-daemon:
udp 0 0* 2710/avahi-daemon:

Wednesday, June 17, 2009

Best Setting for Samsung LCD 550

Mode = Movie
Backlight = 4
Contrast = 90
Brightness = 51
Sharpness = 0
Color = 48
Tint = G54/R46

Black Adjust = Off
Dynamic Contrast = Off
Gamma = 0
Color Space = Custom
Red: R41 - G0 - B0
Green: R21 - G52 - B0
Blue: R8 - G0 - B57
Yellow: R52 - G52 - B0
Cyan: R27 - G48 - B48
Magenta: R33 - G0 - B50

Flesh Tone = 0
Edge Enhancement = Off
Xycc = Off

R-Offset = 26
G-Offset = 25
B-Offset = 24
R-Gain = 33
G-Gain = 25
B-Gain = 25

Color Tone = Warm 2
Size = Just Scan
Digital N/R = Off
HDMI Black Level = Set to your device, may be grayed out. Usually "low" unless using PC or expanded levels on PS3/xbox360, in which case set to "Normal".
Film Mode = off (or auto depending on your source)
Blue Mode = Off

Energy Saving = Off
Entertainment modes = Off

Things to consider changing:

  • Backlight - adjust for your environment, higher if you think the picture is too dim, lower if too bright
  • Brightness - depending on your set, you may have to adjust it lower. You should set it with some sort of pattern, if you don't have one, then find a black screen and lower the brightness until you can't see it getting any darker, then go up one.
  • Sharpness - depends on your preference and source. I wouldn't go past about 20 or so on a high-def source though
  • HDMI Black level - it's OK if it's grayed out! If it's not, you need to set it to whatever your device is outputting (in most cases, it's going to be "Low" unless you're using a PC in which case it should be "Normal", or a game console with RGB set to "Full" or "Expanded"

Troubleshooting: "I tried your settings but..."
  • I can't select the warm 2 color tone -- make sure you change the picture mode to "Movie"
  • They're too yellow/reddish/dull -- try setting the color tone to warm 1 or normal
  • Blacks are tinted some color -- adjust R-, G-, and B-offsets in the white balance menu
  • Bright whites have a color tint -- adjust R-, G-, and B-gain
  • Color X looks wrong -- you need to figure out which color it is, then adjust it in the "custom" color space menu. Or just set it to "Auto" and reset color to 50 and tint to G50/R50

Friday, June 5, 2009

Tips for maintaining inverter battery.

  1. Charging cutout should be between 13.9 V to 14.2 V depending on Battery
  2. Specific Gravity between 1190 - 1210
  3. No salt [lead sulphate] deposited on terminals
  4. Battery is kept clean
  5. Jelly be applied on terminals
Also came across this: VX-6, a battery additive to remove sulphate.

Thursday, June 4, 2009

How to chat with Google Custom Domain using Godaddy

Trick is simple, need to create following SRV records in the domain settings:

Service Protocol Name Priority Weight Port Target
_xmpp-server _tcp 5 0 5269
_xmpp-server _tcp 20 0 5269
_xmpp-server _tcp 20 0 5269
_xmpp-server _tcp 20 0 5269
_xmpp-server _tcp 20 0 5269
_jabber _tcp 5 0 5269
_jabber _tcp 20 0 5269
_jabber _tcp 20 0 5269
_jabber _tcp 20 0 5269
_jabber _tcp 20 0 5269
_xmpp-client _tcp 5 0 5222
_xmpp-client _tcp 20 0 5222
_xmpp-client _tcp 20 0 5222
_xmpp-client _tcp 20 0 5222
_xmpp-client _tcp 20 0 5222

Tuesday, May 12, 2009

HTPC Showoff

The right side cabinet is the guy that holds HTPC and does ventilation. I am right now in the process of investigating a good 5.1. I am inclined towards yamaha, once done they will fall in place where the wires are left out. The 2.1 is temporary and will leave the place soon. Only Disht TV STB and the remote receiver of HTPC is exposed.

My belief: Only stuff that matter should be exposed, rest all should be hidden from the user.

Mine WFA: 10/10


HTPC cabinet

Saturday, May 2, 2009

How to measure cycle seat hight.


  1. In-seam measuring: stand erect. insert a book approximately 5 cm width in the groin (in between the thighs) touching the groin. measure the distance from the closed end of the book touching the groin to the floor.
  2. Center to top measurement: Multiply the figure in step1 by .88 (Point 88).

This tells you the exact Seat height.

This method was first adopted by an American cyclist Greg Le Mond.

Wednesday, April 8, 2009

Internet Jargon ;)

# AFAIC As Far As I'm Concerned
# AFAICS As Far As I Can See
# AFAICT As Far As I Can Tell
# AFAIK As Far As I Know
# AFAIR As Far As I Remember
# AFK Away From Keyboard
# AFN that's All For Now
# AISB As I Said before
# AISI As I See it
# AIUI As I Understand it
# AKA Also Known As
# AoE Area Of Effect
# AOTA All Of The Above
# AP Attack Power / All Pick
# APM Actions per minute
# ASAP As Soon as Possible
# ASL Age, Sex, Location?
# ASLP Age, Sex, Location, Picture?
# ATM At The Moment
# ATYS Anything You Say
# AWA As Well As
# AYR As You Requested
# AYOR At Your Own Risk
# B Back
# B& Banned (BAnd)
# B/C Because
# B4 Before
# B4N Bye For Now
# BAC Back At Computer
# BAK Back At Keyboard
# BAT Base Attack Time
# BBIAM Be Back In A Minute
# BBL Be Back Later
# BBS Be Back Soon
# BCNU Be Seeing You
# BD Big Deal / Back door
# BF Boyfriend
# BFF best friends forever
# BFN Bye For Now
# BG Battle-Ground
# BLP Bad Luck Partner
# BM Bottom miss
# BOT Back On Topic / Boots Of Travel
# BR Best Regards
# BRT Be Right There
# BRB Be Right Back
# BRH Be Right Here
# BS Backstab
# BTW By The Way
# CFV Call For Votes
# CG Computer Graphics
# CMIIW Correct Me If I'm wrong
# CnC Comment and Critique
# COZ because
# CU See You
# CUL See You Later.
# CUL8R See You Later
# CUOL See You On Line
# CWOT Complete Waste Of Time
# CWYL Chat With You Later.
# CYA See Ya
# CYL8R see ya later
# CYM Check Your Mail
# CYO See You Online
# CYT See You Tomorrow
# DEGT Don't Even Go There
# DHYB Don't Hold Your Breath
# DIAF Die In a Fire
# DIKU Do I Know You?
# DIS Did I Say
# DIY Do It Yourself
# DL Download
# DND Do Not Disturb
# DOA Dead On Arrival
# DOT Damage over time
# DPM Damage Per Mana
# DPS Damage Per Second
# DR Damage Reduction / Divine Rapier
# EM E-Mail
# EMA E-mail Address
# EOD End Of Discussion
# EOF End Of File
# EOL End Of Lecture
# EOM End Of Message
# EOS End Of Show / Eye Of Skadi
# EOT End Of Thread
# EZ Easy
# F2F Face To Face
# FA First Aid
# FAAK Falling Asleep At Keyboard
# FAQ Frequently Asked Question
# FC Fingers Crossed
# FCOL For Crying Out Loud
# FFS For F**** Sake
# FISH First In Still Here
# FOC Free Of Charge
# FOCL Falling Off Chair Laughing
# FTASB Faster Than A Speeding Bullet
# FTL Faster Than Light / For The Loss
# FTW For the win / F*** the world
# FTS F*** This S***
# FU F*** You
# FUD Fear, Uncertainty, and Doubt
# FWIW For What It's Worth
# FYA For Your Amusement
# FYE For Your Entertainment
# FYI For Your Information
# G2G Gotta go / Got to go
# GA Go Ahead
# GAFIA Get Away From It All
# GAL Get A Life
# GDI God Damn It
# GF Girlfriend
# GFN Gone For Now
# GG Good Game
# GGN Gotta Go Now
# GGOH Gotta Get Outta Here
# GIGO Garbage In, Garbage Out
# GIWIST Gee, I Wish I'd Said That.
# GJ Good Job
# GL Good Luck / God Learner
# GLHF Good luck, have fun
# GLP Good luck partner
# GM Good Move / Game Master
# GMTA Great Minds Think Alike
# GOSU Got Owned and needs to Shut Up / GOD of Starcraft Universe / Expert or PRO
# GR Gotta Run
# GR8 Great
# GTFO Get The F*** Out
# GTG Got To Go
# GTR Got To Run
# GTRM Going To Read Mail
# GW Good work
# H/O Hold On
# HAGD Have A Good Day
# HAGO Have A Good One
# HAND Have A Nice Day
# HB Hurry Back
# HCIT How Cool Is That?
# HF Have Fun
# HH Ha-Ha
# HH Holding Hands
# HHOJ Ha Ha, Only Joking
# HHOK Ha Ha, Only Kidding
# HHVF Ha-ha, Very Funny
# HIWTH Hate It When That Happens
# HoT Heal over time / Heart Of Tarrasque
# HOAS Hold On A Second
# HPM Healing Per Mana
# HPS Healing Per Second
# HTH Hope That Helps
# IAC In Any Case
# IAE In Any Event
# IAS Increase Attack Speed
# IB I'm Back
# IC I See
# ICQ I Seek You.
# IDC I Dont Care
# IDGADv I Don't Give A Damn.
# IDGI I Don't Get It
# IDK I Don't Know
# IDN I Don't kNow
# IDTS I Don't Think So
# IGSR I'm Gonna Solo Roshan
# IGTG I got to go
# IHNC I have no clue
# IIRC Internet Relay Chat
# IIRC If I Remember/Recall Correctly
# IK I Know
# IKWUM I Know What You Mean
# ILU I Love You
# ILY I Love You
# IM Instant Message
# IMAO In My Arrogant Opinion
# IMBA Imbalanced
# IMBO in My Biased Opinion
# IMCO In My Considered Opinion
# IME In My Experience
# IMHO In My Humble/Honest Opinion
# IMNSHO In My Not So Humble Opinion
# IMO In My Opinion
# INPO In No Particular Order
# INRS It's Not Rocket Science
# IOH I'm Outta Here
# IOW In Other Words
# IRDK i really dont know
# IRL In Real Life
# ISTM It Seems To Me
# ISTR I Seem To Recall
# ITA I Totally Agree
# IYO In Your Opinion
# J Joking
# JAM Just A Minute.
# JAS Just A Second
# JIC Just In Case
# JK Just Kidding
# JMO Just My Opinion
# JW Just Wondering
# JWG Just a Wild Guess
# K OK
# KIR Keepin' It Real
# KISS Keep It Simple, Stupid
# KIT Keep In Touch
# KS Kill Steal
# KWIM Know What I Mean?
# L Laugh
# L2P Learn To Play
# LF Looking For
# LFG Looking For Group
# LFM Looking For More
# L8R Later
# LMAO Laughing My @** Off
# LMK Let Me Know
# LOL Laughing Out Loud
# LOLLOL Little Old Lady Laughing Out loud
# LOM Low on mana
# LTNS Long Time No See
# M8 Mate
# ME2 Me Too
# MIA Moron in action! / Missing In Action
# MM Middle miss / Mirror Match
# MMA Meet Me At...
# MMAMP Meet Me At My Place
# MT Main tank
# MYOB Mind Your Own Business
# N/C Not Cool
# NAA not at all
# NBD No Big Deal
# NE1 Anyone
# NFW No F****** Way
# NGH not gonna happen
# NM Nevermind
# NO1 No-one
# NP No Problem
# NRN No Reply Necessary
# NT No Thanks
# NTL Never The Less
# NVM Nevermind / Nothing Very Much
# NW No Way / No worries / Nice work
# OAO Over And Out
# OBTW Oh, By The Way.
# OFC Of Course
# OIC Oh, I See
# OJ Only Joking
# OK Only Kidding
# OKW/E ok what-ever
# OMW On my way
# OP Original Post / Original Poster / Over Powered
# OOTB Out Of The Box
# OOM Out Of Mana
# ORLY O Really
# OT Off Topic
# OTE Over The Edge
# OTOH On The Other Hand
# OTT Over The Top
# OTW On The Way
# Pat Patrol
# PLZ Please
# POV Point Of View
# PP Pull plug
# PPL People
# PRO Professional
# QFE Quoted For Excellence
# QFT Quoted For Truth
# RFC Request For Comment
# RL Real Life
# ROFL Rolling On Floor Laughing
# ROFLMAO Rolling On Floor, Laughing My A** Off
# ROTF Rolling On The Floor
# ROTFL Rolling On The Floor Laughing
# ROSH Roshan
# RPG Role Playing Game
# RSN Real Soon Now
# RTFAQ Read The FAQ
# RU Are You?
# RUOK Are You OK?
# RW Real World
# S/B Should Be
# SFSG So Far So Good
# SH Same Here
# SIF As If / Secret Internet Fatty
# SITD Still In The Dark
# SOS Same Old Stuff
# SPST Same Place, Same Time
# STFU Shut The F*** Up
# STR8 Straight
# STW Search The Web
# SY Sincerely Yours
# SYL See You Later
# SYS See Ya Soon
# TAFN That's All For Now
# TBC To Be Continued
# TBH To Be Honest
# TBFU Too Bad For You
# TC Take Care
# TGIF Thank God It's Friday
# THX Thanks
# TIA Thanks In Advance
# TLDR Too Long, Didn't Read
# TM Text Message / Top Miss
# TMA Take My Advice
# TMI Too Much Information
# TNT Till Next Time
# TNX Thanks
# TPS Totally pointless stuff
# TTFN Ta-Ta For Now
# TVM Thanks Very Much
# TWIMC To Whom It May Concern
# TY Thank You
# TYP Thank you partner
# TYT Take Your Time
# TYVM Thank You Very Much
# U2 You Too
# W/ With
# W/E Whatever
# W/O Without
# W2F Way Too Funny
# W8 Wait
# W8AM Wait A Minute
# WB Welcome Back
# WC WelCome / Wrong Channel
# WD Well done
# WDMB Will Do My Best
# WDP Well Done Partner
# WFM Works For Me / Wait for me
# WOW World Of Warcraft
# WPP Well Played Partner
# wWPO Well Played Opponents
# WTB Want To Buy
# WT? What The ...? or Who the ...?
# WTF What The F***?
# WTG Way To Go
# WTH What The Hell
# WUBU2 What you been up to
# Y Why?
# WW Wind walk
# YR Yea, Right.
# YRG You Are Good!
# YVW You're Very Welcome
# YW You're Welcome
# YWSYLS You Win Some, You Lose Some
# ZZZ Sleepy, bored or tired
# 2L8 Too late
# 2U2 To You Too
# 4EVER forever
# 4GM Forgive me
# 4RL? For Real

Friday, April 3, 2009

Stay away from Skoda! Service Issues...

Warning to fellows:

An article on

Skoda International disowns Skoda India:

We would like to advice the fact that the company SKODA AUTO INDIA Private Limited (SAIPL), Aurangabad is fully independent manufacturer as well as an exclusive importer for sales and services of Skoda vehicles on the territory of India and is entitled to resolve any customer claim within its own competence. We, as the manufacturer in the Czech Republic, are not entitled to influence the process of resolving claims in another way than by providing technical advice if it is requested by the respective importer.

as per:


How to use gear correctly

Came across this very interesting read, must read for cycle enthusiasts:

Wednesday, March 25, 2009

Addons for the navigator!

Sunday, March 22, 2009

Nice slow motion video with good music...

Uploaded by UNKLE_UK

Getting Cube Working in Ubuntu 8.10 Intrepid

If you set virtual destop as following:
columns 2
rows 2

the cube wont work.
However setting the virtual desktop as following:
columns 4
rows 1

Things are back to order :)





Sunday, March 15, 2009

Smooth, eye catching fonts on linux.

Just installed Ubuntu 8.10 on my lappy. Whatever that was default didn't look good. So I just tweaked the settings and am loving with what I have:

cat ~/.fonts.conf

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<match target="font">
<edit name="autohint" mode="assign">

Monday, March 2, 2009

Got the Navigator!

First thing first, the pics!

I had been planning to buy a cycle for a very long long time. Months back, I was cycling with a BSA Mach 18 Speed. I later sold it off, cause it had small frame and was giving me nagging back ache inspite of adjusting all possible aspects of it. Hence not using it for a long time, sold it off one fine day.

After doing some good research on net, (Pranav's review), had zeroed onto the LA Sovereign Navigator. However the day and time when I could go, pay for it and grab it wouldn't ever come.

Today, after having a nice chicken pulao for lunch, I was wondering if it would be possible for me to go get it. That meant some good amount of time and was possible only in the evening. Cycling in the afternoon was out of question, as its getting hot out there, secondly I am not habitual of cycling, hence might end up dehydrating myself. So I pinged my wife about the plans for evening and mentioned my intention of the cycle purchase. We already had discussed about cycle and she had an idea about the cost. Since we had carpenters working on the door, somebody had to stay back, so I got the green signal and decided to buy the cycle in the evening.

I immediately called Surendar Cycles and told them that I am coming at the shop. Post that I started getting ready, my prep list was:

  • Fuel for self: Glucon - D in 1 litre bottle. (Thanks for the advise)
  • Fuel for soul: Creative Zen.
I started to my destination with a ride on my bike, pulsar. I left the bike at office (BMC Software, Senapati Bapat Road) and then took an auto from there to Surendar Cycles. During my ride in auto, I was continuously questioning myself, buying cycle is all fine, but can I make it back home? Cause the distance, as per Google is almost 13 km. I have had no practice for a long time and was wondering if I would be able to do it, I was not sure if my body could take it. I am 6' and weigh 80kg.

At Surendar Cycle, mine cycle was assembled along with a Firefox fusion. Not trying to hurt Firefox fanboys, but that dark blue firefox fusion appeared frugly in front of the majestic black and silver sovereign. The guy who purchased the firefox couldn't help staring back at the navigator.

While mine cycle was being assembled, many interesting things were happening at the store. Kids were trying out there tiny cycles, while elders were looking at mine cycle being assembled. One doc from a reputed hospital arrived in his zen along with his wife and purchased some 4k cycle. Post keeping the cycle in the car (??), the mechanic over there claimed to me: Saab, yeah cycle agar dookan se car mein le jaa rahe hai, to soch lijiye ki kitna chalane waalein hai. I just smiled and winked at him. By now, mine cycle was ready, I took a test ride, got the saddle and brake fixed. The mechanic warned me not to use 1st, 3rd front gears. As per him, I can start using them after the next servicing! Anyways did the payment and left the store.

Ohh joy, finally free! yup thats what I felt, finally!

It was already 8:45pm and soon got face to face with the chaotic traffic of Pune. I started being very careful and had an eye on the back side. Till the Symbiosis, everything seemed in a brownian motion around me.

Now I was face to face with the uphill road in front of Symbiosis college. I started lowering the gears and till midway I was already at the first gear. The uphill was far from completed and I contemplated about doing the front first gear. I thought for 2 seconds...and then went of the saddle! Well what was expected? Its brand new cycle and the mechanic had warned me that if I tried 1st ,3rd front gear, I might break the chain.

Did a bit of walk, covered the uphill and soon was running down hill in front of the audi showroom. By now I was thirsty and bit drained. Hence decided to take a break at office. Break at office felt nice, had plenty of water, refreshed there and started back at the cycle. Before starting, finished half of the glucon d that I had packed for myself. Yup, never felt Glucon D that better, before.

From here on the ride was good, since I had cycled before, I was aware of the safe way back home. I took a last Glucon-D break at Bhel Electronics gate on the Kalewadi road. My bums were shouting as hell! From there home was hardly 2-3 km and made it back home at Kunal Icon by 9:30.

Great I felt great! I had initially thought that I didn't have the energy to make it back home. I had even contemplated that I would give up in between and just take a rick back home. But nope, I did it all the way back home. For celebration sake, I bought 3 bars of Bournville for my wife. Nope, I abhor chocolates.

At home, I just did a self check. I was not panting, thats good. My breaths were fast...expected. All and all good.

So coming back to the question that I had to myself, can I make it? Well I did. Was it good? so far right now, as I am writing this blog, things appear fine, legs are also fine. However I can't give it passed just now, as the actual body pain if any will appear tomorrow.

Concluding, a great experience!

Last but not the least, damages: 9.4k. Not bad. :)

Updates: Morning time: Body is ok, legs are ok, things are fine ;).