August 19th 2008

Update: os x and DNS

I found some facts how os x is handling the dns lookups. Because i was wondering why changing the resolv.conf doesnt seem to change Safari’s or Firefox’s lookups. The key to this is lookupd and DNS Service Discovery. Actually i came across this from an iphone related problem, which is quite well documented at saurik webpage.

No Comments yet »

August 12th 2008

New iTunes and iPhoto importer

I updated my iTunes and iPhoto import scripts. Added Growl feedback and some hacks to handle iTunes performance problems, some iTunes really gets slow and i had to add timeut exception handling. So just call this from the terminal:

python addToiTunes.py -d /media/mp3s -r -p

Where all Mp3 Files below the path get imorted to iTunes and playlists get created. The playlist’s name depends on the subfolder structure below the import path. If u have arranged your stuff like /media/mp32/artist/album, u get a proper playlist name “Artist - Album”

The other script is just a bulk importer for iPhoto.

python addToiPhoto.py -d /media/photos -r

Where all pictures below the path are imported and each subfolder yields an new album in iPhoto. Quite simple and less pain if u have to import a huge photo collection. Tried to use Automator for this, but he outcome wasn’t so good.

addToiPhoto.py
addToiTunes.py

No Comments yet »

August 7th 2008

Stupid Fritzbox DNS

Since my DSL provider’s DNS updates are really slow i wanted to switch to opendns, which is a good a idea anyways. But wtf i cant change the default dns in my fritzbox. No way to do it via the web admin. Ok why bother i said to my self and went for the shortcut. To find out that Leopard is buggy and u cant unassign the default dns on the Airport device, its simply greyed out. Bummer!

So do it the old school way and editet the resolv.conf. Where nslookup and dig seem to eat this but Firefox and Safari seem to give a flying fuck about this. Even Network pref.panes doesnt seem so sync againt resolv.conf. Seems to be a know problem to the people at the opendns forums. Ok went back to the fritzbox, and found a way to force the dns via the a config file. Just fillin this:

overwritedns1 = 208.67.222.222; overwritedns2 = 208.67.220.220;

Used a java tool to pull and push the config directly from the box. Take a look here

Ja…funny. How easy u can spend an hour in front of a computer, just to take a shortcut for the slow dns cache update…

No Comments yet »

August 7th 2008

New Webspace

Moved my site to a new hoster geekisp.com. Got some nice webspace with all the stuff u need for painless hosting. So i got ssh access, svn and the all common web languages like php,python and ruby. I could even run a java webcontainer in my account, if really get into in grails. This package gives me the freedom i need without having to admin a whole domU with all the stress u get once in awhile if u have have to admin the whole bunch of applications u need to run a proper webservice. (mta, imap, fw, dns, webserver…). Quite fair prices and real good support. The people answer in like hours and u dont get an pre typed standard response. They actually know what they are talking about.

No Comments yet »

November 22nd 2007

ITunes commandline importer

Since i swichted my fun computing (music, videos + web ) from linux to OS X i needed some tools to make thinks easier with iTunes. I was used to amarok, which make music library handling pretty straight forward. I really hate the way iTunes handles music libs, so i switched the iTunes self organzing features off and wrote a little script using python and appscript to import music via commandline.

Features

  • batch import of folders
  • create playlists on the fly
  • remove duplicates from playlist
  • recursive mode to import trees
  • Import Folder ‘Album’ to Playlist ‘New’ and set Artist to ‘Slayer’ and Album to ‘South of Heaven’

    python addToiTunes.py -d Album -p New -a 'Slayer' -A 'South of Heaven'
    

    Import from Folder ‘music’ recursiv, where Playlist ,Artist and Album get name after the Folders.

    Folder Sample

    music 
          artist
               album 1
               album 2
    

    Will yield playlists name like “artist - album 1″ and “artist album 2″

    python addToiTunes.py -d music -r
    

    download

    No Comments yet »

    August 28th 2007

    Hello iPhone

    Here we go …

    This SimpleViewer gallery requires Macromedia Flash. Please open it in your browser or get Macromedia Flash here.
    This is a WPSimpleViewerGallery

    Our online pharmacy is the perfect resource for people to get their drugs without any hassles or awkwardness. buy cialis We work hard to make sure you save money every time you shop with us. buy levitrabuy soma At our online store, you pay less and get more. buy viagra

    No Comments yet »

    April 12th 2007

    Spoof BTADDR

    Wrote a quick & dirty python wrapper for the bluez-utils bccmd command to set a the btaddr of an bluetooth hci device. The native bccmd syntax is awkward, so that i found it handy to have a script which accepts normal formated btaddr as an argument and does some error checking and status infomation.

    Usage:

    root@linux:~/devel/tech/bluetooth/# ./setbtaddr hci0 01:0E:07:75:B7:12
    Exec './bccmd  -d hci0 psset -r bdaddr 0x75 0x00 0x12 0xB7 0x07 0x00 0x0E 0x01'
    hci0:   Type: USB
            BD Address: 01:0E:07:75:B7:12 ACL MTU: 192:8 SCO MTU: 64:8
            UP RUNNING
            RX bytes:86 acl:0 sco:0 events:9 errors:0
            TX bytes:33 acl:0 sco:0 commands:9 errors:0
    
    

    download

    2 Comments »

    April 4th 2007

    OpenWII Debugged

    Made my very own openwii version including debug routines. So i added a another status led to the chiip design and also added IO lines to the ATmega SIO pins. So now i have a drive chip which prints debug info via a serial line. So everybody who want to understand the dvd drive patching can watch this in serial console. The debug code retrieves the media status flag and prints some other status flags.

    pic1 pic1

    download source

    No Comments yet »

    April 4th 2007

    H00lyshit - DIY Bluetooth Sniffer

    Since the 23c3 every interested researcher knew that is easy to compromise bluetooth sessions using the BTcrack tool.Thierry Zoller showed how it’s possible to retrieve link keys, The only problem was to get hands on a bluetooth sniffer device to get the raw bluetooth packets. Such devices are not available at consumer prices. But somehow Max Moser found a way to tranform a vanilla usb bt dongle into a bluetooth sniffer device. Don’t believe the hype…Now bluetooth security is dead.

    Mini Howto:

    #Backup old firmware
    dfutool -d hci0 archiv backup.dfu
    # Backup config
    bccmd -d hci0 pslist -s 0x000F >> backup_cfg
    # Check Vendor ID ( has to be 0x0a12)
    bccmd -d hci0 psget -s 0x000f 0x02be
    # Write new Product ID
    bccmd -d hci0 psset -s 0x0002 0x02bf 0x0002 
    

    6 Comments »

    April 4th 2007

    Fuckin awesome SID podcast

    Wow cool stuff, a podcast playing only real awesome SID stuff, including some newer SID stuff from the last few years. No lamers talking inbetween just chiptunes. Great ! Check it out 8bit Mayhem

    BTW my favorite tunes:

  • JCH - Chordian
  • Rob Hubbard - Lightforce
  • DRAX - Bombastic
  • Rob Hubbard - Commando
  • Jeroen Tel - Cybernoid II
  • Rob Hubbard - Delta
  • DRAX - Depressed
  • Mitch & Dane - Gloria
  • DRAX - Disco Zax
  • Edwin van Santen - Edwin’s Dream
  • Michael Hendriks - FAME
  • JCH - Hawaii
  • Martin Galway - Miami Vice
  • Edwin van Santen - Phalanx
  • David Whittaker - Red Max
  • Chris Hülsbeck - Ski Dance
  • Juha-Matti Hilpinen - SYS4096
  • Maybe i should code a PSP based SID compilation demo…

    No Comments yet »

    Next »