Posts from 2010-11

Use Ghostscript to create PNG Images from a PDF

ghostscript -dNOPAUSE -dBATCH -r300 -sDEVICE=pnggray -sOutputFile="test.png" "TestFile.PDF"

Read on

Enable Syntax Highlighting etc. with the shipped version of vi (vim)

How to make vim more comfortable (the version shipped with Mac OS X 10.6):

cd /usr/share/vim
sudo vim vimrc

add set:

set ai                  " auto indenting
set history=100     ...

Read on

fix bad resolutions with Ubuntu as guest in VMware Fusion 3.1.2

Problem during run of sudo /usr/bin/

Skipping X configuration because X drivers are not included.

This fixed it:

sudo apt-get remove xserver-xorg-video-vmware
sudo apt-get install xserver-xorg-video-vmware

Read on

reset Fonts to defaults

Sometimes your fonts can get messed up when you use Ubuntu for more than one release cycle. So to reset the proper fonts used with todays distributions of Ubuntu without creating a new user account go to Preferences → Appearance Preferences.
For all Fonts choose size 10. Chose Sans for all but...

Read on

Custom DNS entries per domain (nice feature for VPN setups)

OS X has a good feature built in: the dns resolver. It allows you to specify different DNS servers for different domains. After creating the /etc/resolver directory, you can create a /etc/resolver/ file with nameserver in it to redirect DNS requests for this domain to that specific nameserver.



Read on

Install JVerein (including Jameica and Hibiscus)

Install the Requirements: Jameica and Hibiscus

Manual Installation (German)

sudo aptitude install sun-javadb-client
# or if you are on a 64bit OS:
sudo unzip...

Read on

Working With EXIF Data

Correcting EXIF Date of Images

using shootShifter
This is my tool of choice! It does a great job!!!

using exiftool
If your timestamps are wrong by 5 years, 10 months, 2 days, 10 hours and 48 minutes, put all of the images in the same directory ("DIR") and run exiftool:


Read on

Get the latest Skin for Mediawiki: Vector

This commands gets you the latest skin for Mediawiki:

svn checkout

But be reminded that you will only be able to use the plugin with Mediawiki 1.16 and above so just upgrading to the latest Mediawiki release is usually enough to get the skin. I could not...

Read on

Get BT747 to work via Bluetooth with QStarz BT-Q1000P

Pair the device with Mac OS X and open BT747 then connect to the manually entered: /dev/tty.iBT-GPS-SPPSlave



Read on

change a value in a MySQL database BY HAND on the terminal

mysql -u dbusername -p

now you are on the MySQL prompt. So to change all option_value in the table firestats_firestats_options to en_US where the option_key equals current_language do:

USE dbname;
SELECT * from firestats_firestats_options;
UPDATE firestats_firestats_options SET option_value="en_US" where option_key="current_language";

Read on

Use pandoc To Convert LaTeX to Markdown

Pandoc is a tool to convert documents from one format to another and it supports quite some formats! You can test it and convert small docs online:

Supported input formats include

  • markdown,
  • html,
  • latex, and rst.

Note that the rst reader only parses a subset of reStructuredText syntax. (The latex and html input readers...

Read on