Oct
20
2011

iChat 6 (Lion) as a Adium replacement?

For years i used Adium, but sometimes i miss the video and audio features iChat provides.

As i updated to Mac OS X 10.7 aka Lion i thought i should give iChat a try. Suprisingly iChat 6 has some features which come close to Adium’s user experience:

  • now supports Yahoo! Messenger, even with audio and video – that’s good!
  • has an open plugin interface for thirdparty protocols
  • Facebook (using Jabber): works
  • Jabber server from work works out of the box
  • GMail / GoogleTalk works (audio / video not tested)
  • AIM out of the box
  • ICQ works (you have to use an AIM account and change the server to login.icq.com and disable SSL)
  • Bonjour works out of the box

Protocols i used in Adium and missing in iChat out of the box:

  • Twitter (workaround: twitter.im – seems to work)
  • MSN (“Cocoon” plugin is in early development, but seems promising)
  • IRC (iChat 6 plugin is also in early development, but promising, was able to connect to a room, but many features missing)
  • Myspace (but who is still using it anyhow ;-) )

right now iChat seems to provide almost all important protocols i used to use on Adium plus the video and audio chatting.

Aug
04
2011

Tethering from iPhone 3G to iPad 2 – works

If you own a iPhone 4 and have iOS 4.3 or up installed your lucky because Apple gave you a personal WLAN hotspot for sharing your 3G internet connection to your WLAN enabled devices nearby.

But i still have my old iPhone 3G but wish to share its internet with my brand new iPad 2, so what to do? – it’s easier than i thought:

  1. Enable bluetooth on both your iPhone and iPad
  2. Select the iPhone on your iPad in the bluetooth settings and pair with it (not other way round!)
  3. I had bluetooth tethering already enabled on the iPhone, otherwise you should enable it now
  4. enjoy your internet on your iPad, that’s it!

Jun
19
2011

gEDA open source electronic design automation

gEDA is installed using macports, but when installing i found a little problem when xgsch2pcb complained about a missing update-desktop-database

fix: install desktop-file-utils first

complete install commands:

1
2
3
4
5
$ sudo port install desktop-file-utils
$ sudo port install geda-gaf
$ sudo port install pcb
$ sudo port install xgsch2pcb
$ sudo port install gerbv

useful addition: Mac OS X launchers for the commandline tools make it easy to start the apps and to double click documents, launches X11 and the responsible program:
http://www.msarnoff.org/geda-mac/

Mar
07
2011

DIY DMX Controller using Arduino

Arduino, a simple RS485 driver, one resistor is all you need to get build your own cheap DMX light controller and get a full featured controlling software for free.

First you have to build your DMX controller, i’ve chosen to build it on a ArduinoProto Shield. It’s based on the design by Tom Kness. Just connect the “input” to D0/RX on your Arduino Board. I used a jumper to switch between D0/RX (for Arduino as a OpenDMX Interface) and D3 which is the default Output for the DMX Simple library

The next thing we need is a free Software to control the lights. I use Q Light Commander which is available for Mac OS X / Linux and Windows.

The most important thing is to unload the FTDI USB drivers (which you probably use for Arduino development because they get preinstalled with the Arduino IDE)!

check if the drivers are loaded:

1
$ sudo kextstat | grep FTDI

unload them

1
sudo kextunload /System/Library/Extensions/FTDIUSBSerialDriver.kext

load them again

1
sudo kextload /System/Library/Extensions/FTDIUSBSerialDriver.kext

Feb
10
2011

16:9 DVD menu creation

The creation of layered menus in Photoshop is a common task an no big deal but here are some tricks you should know if you need to create 16:9 menus for DVD Studio Pro.

  • Image size: use 1050 x 576 pixels with square pixels!
  • design your menu
  • save it
  • resize it to 720 x 576 (PAL), the image gets distorted, thats ok
  • save a copy of it, don’t overwrite the original menu!
  • open it in DVD Studio Pro, choose 16:9 Letterbox for the menu in the inspector
  • you get better results this way than opening the 1024 x 576 image directly in DVD Studio Pro!

A Trick to achieve the highest possible quality for fonts or if you have to simulate transparency:

  • same procedure as before, but
  • duplicate the background and position it just below a font layer
  • cut the duplicated background layer that it’s slightly bigger than the typo
  • merge the font layer and the duplicated background layer
  • rename the resulting layer that makes sense

maybe that’s overkill, but this way the transparancies of the antialiased fonts are preserved in the DVD, because DVD’s can’t handle transparancy and therefore fonts look ugly.

Feb
10
2011

Convert Quicktimes filmed on JVC HM100 / HM700 into a format readable by Premiere

The problem with the JVC HM100 / HM700 camcorder is that Quicktime movies only work on Apple computers without problems. It’s always a good idea to use the MP4 format for filming in the menu of the camera! But what happens when i have quicktime movies i need to transfer to a PC for editing in Adobe Premiere? There are two solutions: first, buy an expensive XDCAM EX codec for Quicktime on Windows (about 200$) or you’re lucky and you can use an Apple Mac with Final Cut Pro Studio 3 installed:

  • download XDCAM Transfer 2.12.0 from Sony and install it https://www.servicesplus.sel.sony.com/sony-software.aspx?model=pdzkp1
  • in Final Cut Pro select File -> Export -> Sony XDCAM… in the menu
  • maybe you have to change the sequence settings on the audio tab to “dual mono” first
  • choose options as you like
  • select “MP4 (XDCAM EX)” for the export format
  • done!

What you get is a .mp4 file that works native in Adobe Premiere CS4 and up.

Dec
17
2010

Converting a .mkv with DTS audio to a .mkv with only AC3 audio on OS X

based on L. Preston Sego III’s work, check it out here.

first we need to install some tools:

1
2
3
4
5
6
7
8
$ mkdir ConverterTemp
$ cd ConverterTem
$ curl -O http://www.cmake.org/files/v2.8/cmake-2.8.3.tar.gz
$ tar xvfz cmake-2.8.3.tar.gz
$ cd cmake-2.8.3
$ ./bootstrap
$ make
$ sudo make install
1
2
3
4
5
6
7
$ svn co http://aften.svn.sourceforge.net/svnroot/aften Aften
$ cd Aften
$ mkdir default
$ cd default
$ cmake /../../Aften/
$ make
$ sudo make install
1
2
3
4
5
6
$ svn co svn://svn.videolan.org/libdca/trunk libdca
$ cd libdca
$ ./bootstrap
$ ./configure
$ make
$ sudo make install

download MKVtoolNIX from http://jonthn.free.fr/MKVtoolnix/

1
$ sudo ln -s /Applications/Mkvtoolnix.app/Contents/MacOS/mkv* /usr/local/bin/

install mkvdts2ac3:

1
2
3
$ curl -O https://github.com/JakeWharton/mkvdts2ac3/raw/master/mkvdts2ac3.sh
$ chmod 755 mkvdts2ac3.sh
$ sudo cp mkvdts2ac3.sh /usr/local/bin/mkvdts2ac3

Usage:

1
$ mkvdts3ac3 --new -n -f -wd /Volumes/myDisk/Rips mymovie.mkv

Dec
15
2010

Nagios 3.0.x on Ubuntu Server 10.04 LTS

install nagios3 packages:

1
2
3
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install nagios3 nagios3-doc

config files are located in /etc/nagios3 and /etc/nagios3/conf.d configure your contacts and hosts accordingly.

what got me crazy was enabling external commands (needed to perform actions in the webinterface like sending alerts or enabling/disabling things).

edit /etc/nagios3/nagios.cfg:

1
2
3
4
5
6
7
8
9
10
11
# EXTERNAL COMMAND OPTION
# Values: 0 = disable commands, 1 = enable commands
 
check_external_commands=1
 
# EXTERNAL COMMAND CHECK INTERVAL
# NOTE: Setting this value to -1 causes Nagios to check the external
# command file as often as possible.
 
command_check_interval=15s
#command_check_interval=-1

to get rid of Error: Could not stat() command file ‘/var/lib/nagios3/rw/nagios.cmd’, i had to do this:

1
2
3
4
$ sudo /etc/init.d/nagios3 stop
$ sudo dpkg-statoverride --update --add nagios www-data 2710 /var/lib/nagios3/rw
$ sudo dpkg-statoverride --update --add nagios nagios 751 /var/lib/nagios3
$ sudo /etc/init.d/nagios3 start

to send notification mails using the corporate smtp host i had to do this:

http://exchange.nagios.org/directory/Addons/Notifications/Notifications-using-ISP-SMTP-server-with-Authentication/details

1
$ sudo apt-get install sendemail

Edit /etc/nagios3/resource.cfg:

1
2
3
$USER5$=your_isp_email_username
$USER6$=your_isp_email_password
$USER7$=your_isp_outgoing_mail_server

Edit /etc/nagios3/commands.cfg

Change command_line for command_name notify-host-by-email:

1
command_line /usr/bin/sendemail -o tls=yes -s $USER7$ -xu $USER5$ -xp $USER6$ -t $CONTACTEMAIL$ -f $CONTACTEMAIL$ -l /var/log/sendEmail -u "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" -m "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n"

and the notify-service-by-email command line to

1
command_line /usr/bin/sendemail -o tls=yes -s $USER7$ -xu $USER5$ -xp $USER6$ -t $CONTACTEMAIL$ -f $CONTACTEMAIL$ -l /var/log/sendEmail -u "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" -m "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$"
1
2
3
$ sudo touch /var/log/sendEmail
$ sudo chown nagios:nagios /var/log/sendEmail
$ sudo /etc/init.d/nagios3 restart

Dec
09
2010

Using WordPress with SSL

Enable SSL for logins and admin pages in wordpress:

http://codex.wordpress.org/Administration_Over_SSL

enable SSL on your Apache server:

http://osinside.blogspot.com/2007/08/how-to-centos-apache-server-with-ssl.html
http://www.debian-administration.org/articles/349

install WordPress HTTPS http://mvied.com/projects/wordpress-https/

  • check Internal HTTPS Elements
  • check Disable Automatic HTTPS

further steps (not tested by me): Enable complete support for SSL on WordPress

Nov
24
2010

Switching to Vim from TextMate

Based on Daniel Fischer’s article i document how i switched to Vim from TextMate after using TextMate for several years.

Install MacVim

  • download from https://github.com/b4winckler/macvim/ (use latest snapshot)
  • copy MacVim.app to your /Applications directory
  • copy mvim into your path, change into the unzipped downloaded MacVim-snapshot-xx folder in your Terminal and enter:
1
$ sudo mv mvim /usr/local/bin/

Install git

Install Carlhuda’s vim Distribution

1
2
3
4
$ for i in ~/.vim ~/.vimrc ~/.gvimrc; do [ -e $i ] && mv $i $i.old; done
$ git clone git://github.com/carlhuda/janus.git ~/.vim
$ cd ~/.vim
$ rake

Pimp macVim

syntax highlight file for actionscript

1
2
" overwrite actionscript .as file detection
au BufRead,BufNewFile *.as set ft=actionscript

choose a default color theme

search for a line containing color molokai and replace it with

1
color candycode

Taglists (displays variables, functions, …)

Unfortunately the ctags needed for the TagList vim plugin which comes preinstalled with Mac OS X doesn’t work because it’s too old. Therefore we need to build it ourselves:

1
2
3
4
5
6
$ curl -O http://prdownloads.sourceforge.net/ctags/ctags-5.8.tar.gz
$ tar xzvf ctags-5.8.tar.gz
$ cd ctags-5.8
$ ./configure
$ make
$ make install

Now download and install the Tag List vim plugin from here: http://www.vim.org/scripts/script.php?script_id=273

Edit your .vimrc file:

1
2
3
4
5
6
" Select the exuberant ctags (had to be downloaded and installed!)
let Tlist_Ctags_Cmd = '/usr/local/bin/ctags'
" configure Tag List
let Tlist_Show_One_File = 1
let Tlist_Use_Right_Window = 1
let Tlist_WinWidth = 40

use the tag list plugin by typing :TlistToggle in your VIM

Links

Older posts «