Search This Blog

21 May, 2014

Android Hidden phone informations

1) *#*#4636#*#*
give you details about phone details like below
  • Phone Information
  • Battery INformation
  • Usage Statistics
  • Wi-Fi Information

2) To get IMEI : *#06#  works with types of mobiles

11 May, 2014

printing hex values in linux kernel module

for printing the hex values in the kernel modules/kernel space we can use the print_hex_dump function

the format is as follows

print_hex_dump("KERN_ERROR", "Message: ", DUMP_PREFIX_OFFSET,
                            16, 2, data_buffer, length_of_buffer, 1);



24 April, 2014

vim converting tabs to spaces

For converting tabs to spaces while editing the source codes

1) To insert space characters whenever the tab key is pressed.
 :set expandtab

2) To control the number of space characters that will be inserted when the tab key is pressed, set the 'tabstop' option.
To insert 4 spaces for a tab, you have to type the below command
:set tabstop=4

05 April, 2014

ctags useful tips

first run in the base directory ctags -R

In VI/VIM below commands can be used
Ctrl-] - go to function definition
Ctrl-T - Jump back from the definition.
Ctrl-W C-] - Open the definition in a horizontal split

10 October, 2013

useful git diff commands for developers


1) git diff with only file name and its status

git diff --name-status<commit_id> 

2) Showing differences introduced by a commit

git show <commit_id> 

3) Showing differences introduced by a commit with file name only, status of each file with commit message
git show --name-status <commit_id> 

4) Showing differences introduced by a commit with file name only, status of each file
git diff-tree  --name-status -r  <commit_id> 


03 September, 2013

command line configuration and statistics for Wi-Fi in windows OS

Netsh (Network shell)is a command-line scripting utility that allows you to, either locally or remotely, display or modify the network configuration of a computer that is currently running. 



1) To check the interface statistics


netsh wlan show interface



Output will be like below

Name : Wireless Network Connection

Description : Intel Centrino Advanced-N 6200 AGN

GUID : xxdcxxxx-xxxx-xxxx-axx5-xxxxxxxxxxxx

Physical address : xx:xx:xx:xx:xx:xx

State : connected

SSID : Belkin-test

BSSID : 0x:8x:3x:xx:xx:xx

Network type : Infrastructure

Radio type : 802.11g

Authentication : WPA-Personal

Cipher : TKIP

Connection mode : Profile

Channel : 3

Receive rate (Mbps) : 54

Transmit rate (Mbps) : 54

Signal : 90%

Profile : Belkin-test

31 July, 2013

showing list of updates available in ubuntu using apt

To see the list of updates available in Ubuntu using apt , use the below command in console

apt-get --just-print upgrade

tmux enabling mouse interaction

Add the below line to the ~/.tmux.conf setw -g mouse on save the file and exit from the tmux shell, you should be able to use your mouse to ...