Thursday, July 21, 2011

How to setup Synergy

Steps:

1) Install synergy on both machines. e.g. I have two machines one windows and other Ubuntu box. For Windows download synergy from http://synergy-foss.org/download/ and for Ubuntu "apt-get install synergy".

2) My Windows machine is on left side and Ubuntu is on right. I want to share keyboard and mouse of ubuntu machine with windows machine.

3) On Windows run installed synergy and select "Use another computer's shared keyboard and mouse(client)" radio button and enter host name of ubuntu machine. It will look like this:

Click Advance button and choose screen name for Windows machine. I chose "windowspc"

4) On your Ubuntu machine create a file synergy.conf and enter following text:


    section: screens
    taimoor-ubuntu:
    windowspc:
    end


    section: aliases
    windowspc:
    137.202.157.185
    end


    section: links
    taimoor-ubuntu:
    left = windowspc
    windowspc:
    right = taimoor-ubuntu
    end


    section: options
    screenSaverSync = false
    # hotkey to lock the cursor to the screen to something else
    keystroke(f12) = lockCursorToScreen(toggle)
    end


5) Copy this file to /etc/ directory using command "sudo cp ~/synergy.conf /etc/"

6) Run synergy server on your ubuntu with command: "synergys --config /etc/synergy.conf" and on windows click Start button

7) Enjoy. You can also make syngery auto start on both Windows and ubuntu. For this on Windows, synergy dialog has autostart option. Click it and select whether to start synergy on computer start or on Login. On Ubuntu, go to System->Preferences->Startup Applications and add new application. Name it synergys and in command box give command "synergys --config /etc/synergy.conf"

Saturday, May 7, 2011

Fan Hunt

Places to visit:

If you don't want to avoid all the hassle then go and purchase G.F.C fan from Metro. You'll only have to pay around 3 to 4 hundred extra. Otherwise go to

1) Beadon Road
2) Abid Market

Beadon road prices are a bit less than Abid Market but it has problem of parking. I found a difference of around 200 Rs. in price of pedestal fan.

Brands to look for:

1. Pak Fan: Almost all my contacts recommended it and gave me positive feedback about it. Price is a bit more than 2 and 3 but I rate it higher than them.

2. G.F.C Fan: Good quality fan in its price. Price is a bit less than pak fan but I found it very good.

3. Royal Fan: They claim to give life time warranty but I was surprised to read their card. On their card they have written that company will only provide free service and parts for first 3 years. After that they'll charge.
But overall I got good feedback of it.

4. Lahore Fan: Many people recommended it by saying that its speed is much more than other brands.

Other than these their is a Wahid fan and almost all shop keepers say that Wahid fan is also from Pak fan manufacturers (Wahid industries) buttttttttt.....this is not the case. Their owners are relative but they have different industries and there is a difference in quality of both fans.


Friday, May 6, 2011

Going Back to IRC

Basic IRC Commands:


  • /join #channel_name
    • To join channel 'channel_name'.
    • Forexample /join #water_cooler
  • /me [action message]
    • Action message. 
    • e.g. /me is writing new blog post. it will be displayed as taimoor is writing new blog post
  • /nick [new nick]
    • To change IRC nick.
    • e.g. /nick tmirza_ubuntu will change nick to tmirza_ubuntu
  • /quit
    • Quit IRC
  • /whois [nick name]
    • provides 

IRC Shorthand messages:


Jargon
Meaning
AFAIK
As Far As I Know
AFK
Away From keyboard
BRB
Be Right Back
B/C
Because
D/L
Download
EOF
End Of File
EOD
End Of Discussion
FYI
For Your Information
GTG
Got To Go
IAC
In Any Case
IMHO
In My Humble Opinion
IMO
In My Opinion
IIRC
If I Recall/Remember Correctly
LOL
Laughing Out Loud
NP
No Problem
OMG
Oh My God
OTOH
On The Other Hand
RTDM
Read The Damn Manual
RTFM
Read The F**** Manual
TXS
Thanks
TYVM
Thank You Very Much
TGIF
Thanks God Its Friday
WB
Welcome Back
Z
Zzzzzz. Sleeping

NJY,
Taimoor

Monday, May 2, 2011

How to purchase second hand car

Increase in prices of first hand cars has increased demand of second hand cars. First hand cars have really got out of budget range of many ppl. Even low quality cars like Mehran are above 500k......ahhhh (where on earth should I go)....
But purchasing a second hand car is never easy especially in Pakistan where you can not trust anyone. Below is a list of things that I learned from my experience:

Not recommended things:

  • Do not purchase car from dealers unless dealer is some very good friend or relative of yours. I am not saying all dealers are fraud......but its not recommended.
  • Do not purchase car with duplicate registration book. It could be a security risk plus its very hard to sell such cars. Even if you purchase one, you'll not be able to resale it whenever you want.
  • Do not purchase cars registered outside your province. If you live in Lahore then better purchase car Lahore number car. Cars registered in other provinces will be stopped at every check post and are very hard to sell.
CheckList:
Check all these things before purchasing car:
  • Condition of Car's body: Check its side panels and floor by removing floor mats. Its better to take car to some mechanic or any other place where it can be elevated so that you can check it from downside. 
  • Conditon of car's engine: This is a bit tricky. But few important things to check are:
    • No black smoke from exhaust: Start car and accelerate it a bit then check the color of smoke from its exhaust pump. Put some white color tissue paper on its exhaust pump to see whether some carbon elements are there or not. You can also rub the tissue against inside walls of exhaust and see the black particles on inside walls of exhaust.
    • Check the engine oil level. If car is consuming more engine oil, it means engine is wearing down. 
    • Drive the car and check its pick in different gears.
  • Major accidented or not: Best is to show it to some denter. I normally check doors by opening and closing them few times. If they are settling smoothly, it means okay. But I wouldn't recommend paying to some unknown denter/mechanic to go with you to visit some car. In this case they will not give you right opinion as they are only concerned with money. They'll recommend you very first car you'll visit with them, take money from you and go away.......
  • Verify car's data: Easiest way is to go to mtmis website i.e. http://mtmis.punjab.gov.pk/, give car's registration number and get its details. Otherwise go to excise and taxation office.
  • Book is original or not
  • City of registration, you'll see a significant difference in karachi and Lahore/ISB registered cars.
  • Tokens are complete or not
  • Owner number (first/second/third ... hand)
  • Car Mileage: Its always better to purchase less driven car.
  • Original paint or not

Cheers,

Dealing with the DEALER

.....Coming soon..... Learned many things while making first deal of my life........will share it in few days.

Friday, April 29, 2011

How to get a house on rent


I have learned all this with my experience of shifting and some bad experiences of dealing with owners :(.....

1) If you have a small family and you do not expect many guests, do not go for big house then. 5 to 7M single story house with two bed + drawing is enough.

2) Better get a house where owners live in other portion. In this case you can tell them about problems any time and they will take care of things as they themselves will be living there

3) If its a portion then meet second family and get their feedback. Also meet neighbors and ask them about any security or other problems in that area. 

4) If its a portion then better go for one where other portion family is not big too or does not have many children. Otherwise you'll keep on getting noise.

5) Most important thing is write every contract on paper never ever leave any verbal commitment.

6) Electricity meter should be separate.
7) It will be good if motor pump and water tank is separate too otherwise.......you will often be shouting on the other family to switch on the Motor.

8) Check all water taps, electricity buttons, kitchen cupboards, bathroom flush tank. If anything is not working.......tell them.....otherwise you'll have to do this your self.

9) Entrance of your portion should be separate otherwise it will disturb your privacy a lot as you often have to go out late or come home late.

10) If you are planning to install UPS.......tell them in advance.

11) Females are more concerned about kitchen so check kitchen carefully.

12) Gas Geaser should be installed and working. Check it by igniting it. 

13) Ask owner one thing clearly......if something common gets out of order.......who will be responsible for its maintenance and how much you'll have to pay in percentage?

Enjoy......








Friday, April 22, 2011

Vim + ctags

I am on my Ubuntu Linux box. I have started using vim and ctags to traverse my source code.

Installation:


  • Installed vim and ctags. "sudo apt-get install vim" and "sudo apt-get install ctags".

Source Tagging:

  • In source directory "ctags -R *" and edit source file with "vim sourcefile.c"
  • If it throws error messages like "ctags: skipping asm: it is not a regular file." , it means  you're not running Exuberant Ctags, you're running GNU Emacs etags, which also provides a ctags executable. Run ctags --version and you'll see something like this:   
    • ctags (GNU Emacs 23.1)
      Copyright (C) 2009 Free Software Foundation, Inc.
      This program is distributed under the terms in ETAGS.README
      
      
       In this case, install ctags with this command "sudo apt-get install ctags" command
    Important Commands:

    1. Find some symbol: use "/symbolname" e.g. I wanted to search disassembly I gave command "/disassembly".
    2. Go to definition:  Ctrl + ]
    3. Go Forward: Ctrl + i
    4. Go Backward: ctrl + o