Thursday, August 30, 2012

Linux get Processor Info


Found some useful commands to get the cpu info.

sudo lshw -C cpu
cat /proc/cpuinfo
sudo dmidecode  --type processor

Also do
ls /sys/devices/system/cpu/

To get an idea about processors, cores, multithreading check

http://superuser.com/questions/329904/what-are-threads-and-what-do-they-do-in-the-processor


About Intel Hyperthreading read here:
http://software.intel.com/en-us/articles/performance-insights-to-intel-hyper-threading-technology/

Friday, August 3, 2012

Olympic 2012

I have been passionately following the Olympic 2012 especially the swimming events. I was amazed to see the 16 year old girl Ye Shiwen from China winning the gold Medal in 400m Medley. I became stunned while I found out the reaction of some of the people. They suspect her performance enhanced by dope! That's strange, when Stephanie Rice improved her personal timing 5 seconds that was a great performance or when the 15-year-old Katie Ledecky from USA wins the 800m making almost a world record , nobody questions her performance. After a lot of hard works and perseverence does the athlete really deserve this?

Friday, July 20, 2012

Python Basics

The single most important thing to know about python is that everything is object in python.

use dir() or the inspect module to inspect any object. The help() function is very useful. It's a wrapper around pydoc module.I use it frequently to know the statements like print, raise etc.

dir.__doc__ will give you the details.

inspect.getmembers() ouputs a list of all members of the passing object.

To know about any function at first try the __doc__ first

Sunday, June 3, 2012

Openssh as proxy server connection

Today I discovered the ssh -D feature which can be used as a secure proxy server connection.

For example I am using ssh -D 4589 username@hostname     to make a secure connection to the hostname. 4589 is the local port to be used . After connecting to the  remote hostname If you configure the proxy settings in the browser( In the socks field put 127.0.0.1 and as port put 4589 or whatever port you define in the command ) you'll be using your own proxy server! no need to use the insecure public proxys.

Check the manual of SSH for more info

Friday, January 20, 2012

Ubuntu 11.10 Recording Sound from the Sound Card

From the top right corner select sound preference. In the Hardware tab Select the profile 'Analog Stereo Output'.

Install audacity if you don't have. Open audacity, got to Edit>Preference from the devices list select pulse0 as the recording interface. 

Now record any sound as usual from the audacity

About Me

Web Developer From Dhaka, Bangladesh.