Sync Gmail contacts with Addressbook
19th August 2008 - 10:40 - pixieI found two guides that enabled me to use the built-in feature of MacOS 10.5.3+ to sync my addressbook with Gmail contacts. It only works if you have an iPod.
I found two guides that enabled me to use the built-in feature of MacOS 10.5.3+ to sync my addressbook with Gmail contacts. It only works if you have an iPod.
Ik ben momenteel bezig aan m’n thema voor de website. Mogelijk zie je dus een resultaat dat allesbehalve mooi presenteert… Kom even later nog eens langs voor een (hopelijk) verbeterde versie. :)
[Update 21:20] Hier en daar moet de fijne afwerking nog volgen, maar grosso modo staat het thema op poten.
Met de virtualhosts van Apache is het niet al te moeilijk om enkele subdomeinnamen te laten doorverwijzen naar specifieke pagina’s. De webinterface van de bouncer is nu te bereiken vanaf irc.iwonder.be en iwonder.be/irc.
Lighttpd leek veelbelovend, maar permalink met Wordpress bleken allesbehalve voor de hand liggend. Daarnaast had elke oplossing wel haar eigen voor en nadelen, zodat ik maar besloot om terug te keren naar Apache2. Deze laatste vreet met momenten geheugen, waardoor de server soms begint te swappen, maar met 128MB kan je niet veel verwachten… Het geheugengebruik van MySQL heb ik ook omlaag gehaald. De uiteindelijke configuratie nu is verre van perfect, maar een goede verhouding tussen performantie, geheugen en prijs. Alles bij elkaar mag ik dus best tevreden zijn…
Daarnaast is de bouncer voor de vrienden ook naar iwonder.be verhuisd. Deze overgang ging zoals verwacht zonder probleem.
Rest er mij nog m’n nieuw thema uit te tekenen en te implementeren…
De oplossing bleek uiteindelijk niet zo moeilijk. Na enkele oplossing te vergeefs geprobeerd te hebben, bleek er toch eentje tussen te zitten die werkt. Ook al is Apache de meest gebruikte webserver, toch vind ik het jammer dat men niet programmeert om ook de anderen te ondersteunen.
Zoals dat steeds gaat met m’n website, is er weer wat verandering tijdens momenten dat ik tijd over heb. De vakantie loopt weliswaar bijna ten einde, over een tweetal weken begin ik te werken, maar ondertussen is het in spanning afwachten. Om de tijd dan een beetje te doden, heb ik een VPS gehuurd bij XLShosting.com. Over dit laatste bedrijf ben ik zeer tevreden: een zeer snelle support als er iets misloopt of als je iets wil veranderen.
Wat ik met die VPS gedaan heb? Wel, ten eerste draait er een HTTP-server op: Lighttpd. Alhoewel iets minder robuust dan Apache2, maakt het minimale geheugenverbruik dit gemis meer dan goed. Helemaal op punt staat hij nog niet, de permalinks van Wordpress komen nog niet door, maar Google helpt me daar wel bij. Vervolgens draait er naast php5 ook een MySQL server op.
Last but not least draait ook vanaf heden hier m’n IRC-bouncer, ZNC. Deze gebruik ik voor mezelf om permanent online te zijn op enkele IRC-kanalen en verzorg voor enkele andere vrienden dezelfde dienst.
Wat er nog op het programma staat:
Omdat ik graag download van Usenet gebruik ik daarvoor SABnzbd+. Het hele download proces wordt door dat programma gecontroleerd, dus hoef je je geen zorgen te maken over ontbrekende stukken, beschadigde bestanden en dies meer. Helaas weigert het voor het overige prima programma om in daemon-mode op te starten onder Mac OS 10.5.3. Hoogstwaarschijnlijk ligt de schuld hiervoor bij Apple. :)
Omdat ik niet steeds een terminal open wil hebben, bedacht ik een oplossing die terug te vinden is in deze how-to.
Vermits ik naar alle waarschijnlijkheid volgend jaar geen student meer zal zijn, kan ik overeenkomstig de gebruiksvoorwaarden aldaar m’n shell account niet meer verlengen. Anticiperend zocht ik naar een alternatief dat mij zou toestaan de IRC bouncer/proxy ZNC te draaien en me eventueel wat webruimte toestond. Na enig speurwerk kwam ik bij de server st0rage.org. Sinds enkele dagen heb ik dus alles naar daar gemigreerd.
Wordpress is op zich geen slecht systeem, maar bleek uiteindelijk voor mij niet echt nuttig: er zijn altijd wel mogelijkheden die ontbreken of moeilijk te realiseren zijn. Dus heb ik teruggegrepen naar mijn zelf gemaakte site. Enig aanpaswerk was wel nodig om alles weer operationeel te krijgen en de inhoud van m’n wordpress pagina moet nog overgezet worden. Maar dat is iets voor de komende dagen.
Since I use Sabnzb+ to download from Usenet, I like to be able to run it in daemon mode. The command line option “-d” from Sabnzb+ would be ideal. However under Leopard, this option fails because Python seems to have a problem to fork the process to the background. A workaround will be presented here.
Because we will be compiling things later, it is necessary to install the GCC. You can do this by installing Xcode from your Mac OS X install disc or by getting it from Apple Developer Connection.
Sabnzb+ needs a few packages to be able to run. Just grab the latest version of each on the following websites:
Extract the above four archives and open terminal.app. Change directory to the CherryPy folder that you have extracted. If the folder is on your desktop then type:
Repeat this procedure for the other three packages.
SABnzbd+ needs these two utilities to repair and unpack downloaded archives. Since there is no recent build downloadable for PAR2, we will extract them from the GUI build of SABnzbd, which can be found here or here. Grab the unrar and par2 files from SABnzbd.app (right click - show package contents) then use these commands to place them in the right place:
Finally, download the latest version of SABnzbd+ and unpack into a folder (e.g. ~/SABnzbd). Do not compile or run anything, but it may be necessary to make the Python script executable:
Since the “-d” option of SABnzbd+ is not working under Leopard, we need to create a daemon environment. This can easily be done by running the command in screen. Moreover, I like to run it at a low priority so that it will not affect my system performance. The final command looks like this (provided that SABnzbd+ is still on your desktop):
Explanation:
I use the following script in conjunction with crontab that runs it every minute to run SABnzb+ at boottime and make sure it keeps running.
Before you go on adventuring with Linux, I suggest you back up any important data you have on your hard drive because we will be wiping everything from it!
Boot form your Mac OS X (10.3 is the best) install cd and partition your hard drive. At the beginning create a 5GB partition that you mark as “Free Space”. At the end create a partition of 5 GB and format it as HFS+ (NOT journaled). This partition will be used to install Mac OS X, so you should name it “MacOSX”. The rest of the space should be formatted as HFS+ (again NOT journaled).
Now, continue with the installation of Mac OS X (be sure to install it on the “MacOSX” partition :) ).
A problem has been reported that when you upgrade Mac OS X, yaboot gets disabled. The solution seems to be to press the option “alt” key during startup and then select Linux again. However, I have never encountered this problem.
I also suggest to install Mac OS 10.3 because it is more compatible with Mac-on-Linux. The brave can always go ahead and install Mac OS 10.4 but there will be more problems further down the road. It’s up to you…
Why install the desktop version and not the alternate? Well, in my experience, sound did not work with the alternate version and it seemed to me that the dekstop version installed a little bit faster.
This wikipage describes very well how to enable the extra sources.
or if “XkbOptions” already exists:
Now you can access these symbols with: “@”=cmd-é, “#”=cmd-”,…
Easyubuntu is the way to get support for playing MP3,DivX/XviD,DVD,… Just follow the instructions at their website.
My external hard drive is rather noisy, so I searched and found a solution to automatically let it spin down at a given period of inactivity.
Firstly install sdparm:
Secondly download these two scripts (they are now maintained by Linard Verstraete). Copy them to /etc/init.d, make them executable and change the timeout (in minutes) and disk in “spindown_automatic.sh”:
Finally, place a reference to “spindown_automatic.sh” in /etc/rc.local and to “spindown_at_shutdown.sh” in /etc/rc0.d/
First stage: 1s
Second stage: 1s
After editing:
Get partition-numbers through fdisk (replace hd? with you HDD: e.g hda)
Edit fstab
Add both partitions
Quit vim by pressing the following keys:
Mount the partitions:
To unmount the partitions to access them in MOL:
Follow the instructions form the wikipage.
For more information see the wikipage
You can install everything by running the following commands: