Friday, December 26, 2008

diff .c, .h, .cpp files only

diff .c, .h, .cpp files only from current directory to $(TRGT_DIR)

find \( -path ./.pc -prune \) -o \( -name '*.cpp' -o -name '*.[ch]' \) -exec diff -u {} $(TRGT_DIR)/{} \;

Finding library dependencies of ELF binary file:
alias arm-ldd='objdump -x a.out | grep NEEDED'

Wednesday, December 24, 2008

extracting ipkg, .deb files

List the contents of archive
ar -t sdlquake_1.0.9-r0.1_armv7a.ipk

Extract the contents
ar -x sdlquake_1.0.9-r0.1_armv7a.ipk

command to extract the deb packages:
dpkg-deb -x {deb-package name} {target directory}

Thursday, October 23, 2008

C, C++ code browsing tools

cscope, ctags, cflow, codeviz, hypersrc, Kscope(my favorite), doxygen...
await details...

power of profilers

oprofile, opannotate, gprof, gmon.out, gcc compiler option -pg, time.
watch this space for more...

Thursday, August 28, 2008

Tuesday, August 26, 2008

Citrix client in linux

After you have the permission to login using Citrix client follow the below instructions:

1. download tar ball
http://download2.citrix.com/files/de/products/client/ica/current/linuxx86.tar.gz
2. ragha@hoysala:~$ tar xzvf linuxx86.tar.gz
3. execute install script from the extracted directory as 'root' user(sudo in ubuntu)
ragha@hoysala:~$./setupwfc
4. Now create link to plugin in firefox
ragha@hoysala:~$cd /usr/lib/mozilla/plugins/
ragha@hoysala:/usr/lib/mozilla/plugins$ln -s /usr/lib/ICAClient/linuxx86/npica.so npica.so
5. Restart your firefox
6. Verify if the installation is correct by typing this at firefox address bar: about:plugins

Enjoy !