Short IT recipes

i.e. some stuff and junk about Python, Perl, Matlab, Ruby, Mac X, Linux, Solaris, ...

Saturday, January 22, 2011

Pear run-tests: Setting --cgi option to test file uploads using phpt

›
In PHP, file uploads can be tested using phpt files as explained here . However, when I wanted to execute phpt test with --POST_RAW-- or --P...
Sunday, January 02, 2011

Ubuntu 10.10: Change grub menu timeout

›
Default grub menu timeout is 10 seconds. To change it just edit the grub file sudo vim /etc/default/grub and change GRUB_TIMEOUT value from...
Monday, December 13, 2010

Ubuntu 10.10: static and noise sound with HDA Intel SigmaTel STAC9221 A1

›
I have just installed Ubuntu 10.04 and I found that my sound card was not working. There was a lot of breaks, noise and freezes when I was p...
Monday, June 21, 2010

"Remote desktop session has ended" error when connecting to a guest on VirtualBox

›
I had a problem connecting from Windows using build-in Remote Desktop Connection program to a a guest on a headless VirtualBox server. I fou...
Saturday, May 29, 2010

Example of SSH tunneling

›
Example: ssh -N -L 5904:127.0.0.1:5901 username@remoteserver The above command forwards everything on localhost port 5904 to the port 590...
Friday, May 14, 2010

VirtualBox: start and stop a guest in a headless mode

›
Lets assume that we have a guest VirtualBox machine called "xp". To start it in a headless mode we can use VBoxHeadless --startvm ...
Sunday, April 25, 2010

bash: send a command to a screen session

›
" Screen is a full-screen window manager that multiplexes a physical terminal between several processes, typically interactive shells....
Saturday, April 24, 2010

Ubuntu 10.04: How to remove chat and mail icons (indicators) from system tray

›
The 10.04 LTS release of Ubuntu seems to be very, very good. However, for some strange reason, creators of this release made some strange de...
Monday, March 08, 2010

Matlab: Convert numerical array to cell with string representation of numbers

›
Short Matlab script that takes an array (i.e. vector) of numbers and returns cell with fileds that are string representation of the numbers ...
Wednesday, March 03, 2010

imagemagick: crop all images

›
Example: convert rose: -crop 40x30+10+10 +repage repage.gif
‹
›
Home
View web version
Powered by Blogger.