Search This Blog

20 June, 2015

installing datastax cassandra cpp-driver package for Ubuntu



1) Install cassandra cpp-driver from
http://downloads.datastax.com/cpp-driver/ubuntu/

select the ubuntu version properly

For Ubuntu 12.04

sudo wget http://downloads.datastax.com/cpp-driver/ubuntu/12.04/cassandra-cpp-driver_2.0.1-1_amd64.deb
sudo wget http://downloads.datastax.com/cpp-driver/ubuntu/12.04/libuv_1.4.2-1_amd64.deb

For Ubuntu 14.04

sudo wget http://downloads.datastax.com/cpp-driver/ubuntu/14.04/cassandra-cpp-driver_2.0.1-1_amd64.deb
sudo wget http://downloads.datastax.com/cpp-driver/ubuntu/14.04/libuv_1.4.2-1_amd64.deb


sudo dpkg -i libuv_1.4.2-1_amd64.deb
sudo dpkg -i cassandra-cpp-driver_2.0.1-1_amd64.deb

done

11 June, 2014

reverting the applied patch

for reverting the patch we applied using the patch command

patch -p1 < diff.patch

use
patch -R -p1 < diff.patch


26 May, 2014

vim showing all opened files using sp/vsp


showing all opened files in vim
in vimrc file paste the below line
map <F4> :ls<CR>:buffer<space>

after opening the files in vim, type F4 and you can see the files and jump by pressing the corresponding the number

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);



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 ...