Apr 01 2014

Vagrant and VirtualBox 4.3.10 not mounting /vagrant

seems to be a bug in VirtualBox 4.3.10, but there is a quickfix available. Do vagrant ssh and then:

sudo ln -s /opt/VBoxGuestAdditions-4.3.10/lib/VBoxGuestAdditions /usr/lib/VBoxGuestAdditions

Nov 15 2013

Moving from Sublime Text 2 to Sublime Text 3

Screen Shot 2013-11-15 at 16.46.02As Sublime Text 3 is around in public beta for quite some time, i thought i upgrade from my 2.x version to the new and – as it’s written on their homepage – faster version 3.

Ross Lawley has a perfect guide how to upgrade painlessly:
http://rosslawley.co.uk/posts/switching-to-sublimetext-3/

And thanks for the hint to check the compatibility of the plugins first on this great page:
http://www.caniswitchtosublimetext3.com/

 

Steps how i upgraded:

  • download Sublime Text 3
  • install package manager in Sublime Text 3 by showing the console (view -> show console) and entering this text:
import urllib.request,os; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); open(os.path.join(ipp, pf), 'wb').write(urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ','%20')).read())
  • using the package manager install all your (green) plugins you used on Sublime Text 2
  • copy and paste user settings (Preferences -> Settings -> User)
  • go to terminal and copy TM Themes, other settings and relink the commandline “subl” to the new version (i have ~/bin in my path):
$ cp ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/User/*.tmTheme* ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/User/
$ rm ~/bin/subl
$ ln -s /Applications/Sublime\ Text\ 3.app/Contents/SharedSupport/bin/subl ~/bin/subl

Enjoy!

Oct 04 2012

Use multiple email addresses (SSH keys) with GitHub

There is a good tutorial on Gist that shows all the required tasks:

https://gist.github.com/2351996

This post is to remind me how to do it ;-)

Sep 10 2012

Shairtunes (airplay audio client) on Mac OS X 10.7


Based on Thias blog instructions on building shairtunes for Mac OS X.

  • install XCode using AppStore on Mac OS X 10.7 (a AppleID is needed for that)
  • open XCode, in the Preferences “Downloads” click on button to download and install the Command Line Tools
  • Download and install Mac Ports (http://macports.org/)
  • Open Terminal and type:
$ sudo port install git-core libao p5-io-socket-inet6 p5-libwww-perl p5-crypt-openssl-rsa
$ sudo port install pkgconfig

install shairtunes as a damon:

$ sudo mkdir -p /usr/local/bin/
$ sudo cp hairtunes shairport.pl /usr/local/bin/
$ sudo vi /usr/local/bin/shairport.pl # change the path of cli_hairtunes  /usr/local/bin/hairtunes
$ sudo cp org.mafipulation.shairport.plist Library/LaunchAgents/
$ launchctl load org.mafipulation.shairport.plist
$ launchctl unload org.mafipulation.shairport.plist # (to remove)

Attention:

works only while a user is logged in! (on the login screen there is no shairtunes possible) consider using autologin for this mac (but be aware of the possible security risks!)

Apr 12 2012

OpenWRT on TP-Link MR3020 as infopoint with local webserver

Howto install OpenWRT on an TP-Link MR3020 mini router with external filesystem on a USB stick running a local webserver (lighttpd) to serve up webpages to act as an info point e.g. in a exhibition.

Inspired by the Piratebox Project: http://wiki.daviddarts.com/PirateBox_DIY_OpenWrt
Read the rest of this entry »

Mar 16 2012

New Fritzing parts

I recently built two Fritzing parts, as i needed them for documentation and since they are Sparkfun breakout boards, i thought they might be useful to others, so i shared them on the Fritzings Google Code page. Today i found this comment and i’m happy that two parts i made will be integrated in one of the next Fritzing versions :-)

If you can’t wait till the next Fritzing release, here are the parts:

SHT15 humidity sensor breakout board from Sparkfun.com

Humidity Temperature Sensor SHT15.fzpz

ADJD-S311 color sensor breakout board from Sparkfun.com

Color Sensor Breakout ADJD-S311.fzpz

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

Important!

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 Steuerung mit ArduinoDIY DMX Controller using Arduino

Arduino, ein einfacher RS485 Treiber IC und ein Widerstand sind alles was man benötigt um einen billigen DMX Lichtkontroller zu bauen und man bekommt auch noch eine voll funktionsfähige Software gratis dazu.

Als Erstes bauen wir den DMX Kontroller, ich hab mich entschieden dafür ein Arduino ProtoShield zu verwenden. Das Design basiert auf der Arbeit von Tom Kness. Einfach nachbauen und den “Input” mit D0/RX auf dem Arduino verbinden. Ich hab mcih für einen Jumper entschieden, damit ich leicht zwischen D0 (damit wird aus dem Arduino ein OpenDMX Interface) und D3 – ist der Standardport für die DMX Simple Bibliothek – wechseln kann.

Als nächstes benötigen wir eine Lichtsteuer-Software und das bitte gratis. Q Light Commander ist gratis und Open Source und für Mac OS X / Windows und Linux verfügbar.

Das Wichtigste ist allerdings, dass vor dem Start der Software der FTDI USB Treiber (wird vom Arduino IDE mit installiert) beendet wird!

Prüfen ob der Treiber geladen ist:

1
$ sudo kextstat | grep FTDI

Treiber beenden:

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

Treiber wieder laden:

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

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

Older posts «