05.28.08

Revenge

Posted in Thoughts at 19:32 by Arkham

Today I was returning home from university and I saw an old lady while she was wiping his little dog ass.

Who is the pet now?

05.15.08

Archlinux Ettercap GTK b0rk3n

Posted in Linux at 11:59 by Arkham


Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/.annapurna/ark/ark.asengard.net/blog/wp-content/plugins/wp-syntax/geshi/geshi.php on line 1827

Warning: Invalid argument supplied for foreach() in /home/.annapurna/ark/ark.asengard.net/blog/wp-content/plugins/wp-syntax/geshi/geshi.php on line 1827

Warning: Invalid argument supplied for foreach() in /home/.annapurna/ark/ark.asengard.net/blog/wp-content/plugins/wp-syntax/geshi/geshi.php on line 2180

Warning: Invalid argument supplied for foreach() in /home/.annapurna/ark/ark.asengard.net/blog/wp-content/plugins/wp-syntax/geshi/geshi.php on line 3025

Warning: implode() [function.implode]: Argument must be an array in /home/.annapurna/ark/ark.asengard.net/blog/wp-content/plugins/wp-syntax/geshi/geshi.php on line 3077

Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/.annapurna/ark/ark.asengard.net/blog/wp-content/plugins/wp-syntax/geshi/geshi.php on line 3108

Warning: Invalid argument supplied for foreach() in /home/.annapurna/ark/ark.asengard.net/blog/wp-content/plugins/wp-syntax/geshi/geshi.php on line 3108

Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/.annapurna/ark/ark.asengard.net/blog/wp-content/plugins/wp-syntax/geshi/geshi.php on line 3151

Warning: Invalid argument supplied for foreach() in /home/.annapurna/ark/ark.asengard.net/blog/wp-content/plugins/wp-syntax/geshi/geshi.php on line 3151

Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/.annapurna/ark/ark.asengard.net/blog/wp-content/plugins/wp-syntax/geshi/geshi.php on line 3292

Warning: Invalid argument supplied for foreach() in /home/.annapurna/ark/ark.asengard.net/blog/wp-content/plugins/wp-syntax/geshi/geshi.php on line 3292

Yes, it’s broken.

arkham ~  $  ettercap-gtk 
ettercap-gtk: error while loading shared libraries: libltdl.so.3: 
cannot open shared object file: No such file or directory

ABS Solution:

mkdir -p ~/builds
cp -r /var/abs/extra/ettercap-gtk ~/builds
cd ~/builds/ettercap-gtk
makepkg -c
pacman -U ettercap-gtk-NG_0.7.3-2-i686.pkg.tar.gz

;)

04.28.08

Raising skinny elephants…

Posted in Linux at 20:50 by Arkham

Today, out of the blue, my system freezed.
So, once for all, I decided to enable Magic SysRq keys.

echo "1" > /proc/sys/kernel/sysrq

If my system would ever freeze again, I will start raising skinny elephants…

R -> put the keyboard in raw mode
S -> sync the disk
E -> terminate all processes gracefully
I -> kill all processes
U -> umount all filesystems and remount them read only
B -> reboot the system

In a sentence:

Raising
Skinny
Elephants
Is
Utterly
Boring

02.28.08

Vim staircase effect

Posted in Linux at 03:05 by Arkham

If you are terminal vim users, I’m sure you have tried to copy/paste text into a file and thought “Wtf, this is pretty damn wrong” seeing something like this:

void
randomize (void)
{
       struct timeval *tv = malloc (sizeof (struct timeval));
            struct timezone *tz =
                  (struct timezone *) malloc (sizeof (struct timezone));
                 gettimeofday (tv, tz);
                      srand (tv->tv_usec);
                           free (tv);
                                free (tz);
                            }

That’s called vi staircase effect.

The solution is to type:

:set paste

before pasting and

:set nopaste

after finishing.

Alternatively, just add to your ~/.vimrc:

nnoremap <silent> <F12> :set paste!<CR>

to press F12 for toggling between paste and nopaste conditions.

02.27.08

Trust WB-1400T webcam on Ubuntu

Posted in Linux at 20:05 by Arkham

Download the source here.

Now open a root terminal and create the folder:

mkdir -p /usr/src/modules

Move the package to the new folder and move into it:

mv <gspcav1_package> /usr/src/modules
cd /usr/src/modules

Extract and move into it:

tar -xzvf <gspcav1_package>
cd <gspcav1_folder>

Compile and install:

make && make install

Remove eventually previous version of the module and load the new one:

modprobe -r gspca && modprobe gspca

Plug-in the webcam, and you should see something in dmesg.
Now you can just test with

mplayer tv:// -tv driver=v4l:width=352:height=288:device=/dev/video0

or using programs like xawtv, camorama, amsn or skype. Have fun ;)

« Previous entries · Next entries »