Short IT recipes

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

Monday, August 04, 2014

ImageMagick: resize images to specific width or hight

›
For example to resize tif images to width of 512 pixels: mogrify -resize 512 *.tif Whereas to resize tif images to height of 512 pixels: ...
Tuesday, July 29, 2014

Git: Show updated tree of branches in console

›
To do this, just add the following to ~/.gitconfig [alias]   tree = log --graph --all --decorate --pretty=oneline --abbrev-commit Then git ...
Wednesday, July 23, 2014

Gnome 3.12: Add VirtualBox machine to gnome's activities and dash

›
Specific virtual machines can be launched directly from gnome activities or gnome dash without the need to start standard Virtual Box GUI. F...
Tuesday, July 22, 2014

Gnome 3.12: Auto start applications with a delay

›
In gnome, applications can be start by copying *.desktop files into ~/.config/autostart . The installed desktop files of your application...
Sunday, July 20, 2014

Imagemagick: Flattening tiff images

›
mogrify -alpha off -colorspace gray -depth 8 -flatten *.tiff

Ubuntu: Fix ntfs parition on usb drive

›
If there are problems with mounting usb thumb drive (in my case the usb is /dev/sdc1), one can use this: sudo ntfsfix /dev/sdc1
Saturday, July 12, 2014

Capture desktop using ffmpeg and re-size the resulting video.

›
The following command can be used to record your display and the compress the resulting image ffmpeg -f x11grab -video_size 2560x1440 -i $DI...
Thursday, July 03, 2014

How to install virtual environment of Python 3.4.x from source in Ubuntu 14.04

›
Below is a recipe that I use to used to install and set-up virtual environment of Python 3.4.x in Ubuntu 14.04 x64.
Thursday, June 26, 2014

Reading DICOM files in Python 3

›
In Python 3, dicom files can be read, analysied and processed using Wand which is Python binding for ImageMagic . The example below shows h...

Python 3.4 and Pillow 2.4 with JPEG2000 (openjpeg 2) support in Ubuntu 14.04

›
Pillow support for JPEG2000 comes from openjpeg 2 library. Unfortunatly, Ubuntu's libopenjpeg2 package is not version 2 of the openjpe...
‹
›
Home
View web version
Powered by Blogger.