Posts from 2010-11

Use Ghostscript to create PNG Images from a PDF

http://newsgroups.derkeiler.com/Archive/Comp/comp.lang.postscript/2006-06/msg00089.html

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

http://communities.vmware.com/message/1650147

Problem during run of sudo /usr/bin/vmware-config-tools.pl:

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/erdelynet.com file with nameserver 192.168.25.10 in it to redirect DNS requests for this domain to that specific nameserver.

resources

...

Read on

Install JVerein (including Jameica and Hibiscus)

Install the Requirements: Jameica and Hibiscus

Manual Installation

http://wiki.ubuntuusers.de/Hibiscus#Manuell (German)

sudo aptitude install sun-javadb-client
wget http://www.willuhn.de/products/jameica/releases/1.10/jameica/jameica-linux.zip
# or if you are on a 64bit OS:
wget http://www.willuhn.de/products/jameica/releases/1.10/jameica/jameica-linux64.zip
wget http://www.willuhn.de/products/hibiscus/releases/1.12/hibiscus.zip
sudo unzip...

Read on

Working With EXIF Data

Correcting EXIF Date of Images

using shootShifter

http://www.maczentrisch.de/shootShifter/
This is my tool of choice! It does a great job!!!

using exiftool

http://www.sno.phy.queensu.ca/~phil/exiftool/#shift
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:

exiftool...

Read on

Get the latest Skin for Mediawiki: Vector

http://www.mediawiki.org/wiki/Download_from_SVN

This commands gets you the latest skin for Mediawiki:

svn checkout http://svn.wikimedia.org/svnroot/mediawiki/trunk/phase3/skins

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

resources

...

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;
SHOW TABLES;
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: http://johnmacfarlane.net/pandoc/try

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