Monday, October 17, 2011

Daily job.. few commands/things to jot down

1. To logout a user using terminal:
>skill -KILL -u

2. If stuck with the error while logging in.. as " An error occurred while loading or saving configuration information for gnome-session. Some of your configuration settings may not work properly"


do  in home directory :  "rm -rf .gnome .gnome2 .gconf .gconfd .metacity"

Monday, April 11, 2011

And A Link from LifeHacker .. Installing a Hackintosh

http://lifehacker.com/#!5672051/how-to-build-a-hackintosh-mac-and-install-os-x-in-eight-easy-steps
http://tonymacx86.blogspot.com/2010/04/iboot-multibeast-install-mac-os-x-on.html

Hope to come back one day to try this out..

---------

Friday, April 8, 2011

a bit on thread id


how to get a thread's ID in c/c++ gnu, gettid() is not implemented

pid_t gettid(void);

can be replaced by the following system call :

#include < syscall.h >
pid_t tid = (pid_t) syscall (SYS_gettid);

Thread ids obtained from pthread_self() are in a different format..
...