Sunday, 8 September 2013

Unable to detect Bluetooth for HP Pavilion g6-2010ax in Windows7


Problem: I am unable to bind any of the Bluetooth devices to my laptop though it says blue tooth is on.

Reason: By default Microsoft Bluetooth drivers are getting installed and they doesn’t work well with the hardware.

Solution:
1.       Install “Atheros Wireless LAN Driver” from http://ftp.hp.com/pub/softpaq/sp56501-57000/sp56572.exe
2.       Install  “Atheros Bluetooth 4.0 + HS Driver” from http://ftp.hp.com/pub/softpaq/sp56501-57000/sp56573.exe
3.       Restart the machine.

Hopefully the above steps should solve the problem.

Tuesday, 18 June 2013

Kill all java process in linux

Problem: To kill all the running java process in linux
Solution : killall java

Wednesday, 15 May 2013

Gunzip a file on linux

Problem: To zip a file on linux we can use utility like gzip

Solution: gzip -c trace.txt > trace.gz
The above command will compress the file trace.txt

Taking TCP Dump on Linux

Problem: Some times we need to monitor data that is flowing between systems. We can use tcpdump utility to take dump of the data and analyze the data (trace) with tools like wireshark.

Solution: 
tcpdump -i <interface> -s 65535 -w <some-file> 

Example:  tcpdump -i eth0 -s 65535 -w trace.txt

Tuesday, 7 May 2013

Running jetty server as background process in linux

Problem: Some times we need to run jetty server as background process in linux so that when we close the terminal the server will not stop.

Solution: nohup utility can be used to run jetty server (java process) in background. Following command can be used.

#nohup java   -jar start.jar jetty.port=18080  &

In the above command we are running jetty server on port 18080 as back ground process.

Monday, 29 April 2013

Finding files with time stamp linux

Problem:  Find files should list time stamp along with file name.

Solution: 
find -name demo.jar -printf '%Tc %p\n'

The above command will search for "demo.jar" file in current working directory and list results along with time stamp

Monday, 22 April 2013

HTML Encoding of data in EXT Template

Problem: HTML Encoding of data in  EXT Template.
Solution:
Ext provided an attribute "htmlEncode" to support encoding.

Example:

var tpl = new Ext.XTemplate('<p>Name: {name:htmlEncode}</p>');