Search the Site

My Social
Meta
Powered by Squarespace

Entries from October 1, 2006 - October 31, 2006

Wednesday
Oct182006

Holiday preparations

Just a couple more hours, and we're off. Off to Africa for a well deserved vacation. This time for something completely different (NOT). We'll be going on safari in Kenya (been there, done that :)), and Tanzania (been there, and done that too :)). After that we'll be resting our asses off in Zanzibar on the beach for a couple of days. When we get back, I'll post the photo's (and a summary of our adventures) here, and on my Flickr page. So stay tuned. Hakuna Matata

Click to read more ...

Sunday
Oct152006

Cirque du Soleil - Alegria

Yesterday we went to Cirque du Soleil in Bruxelles, Belgium. The occasion was a company outing. We had tickets, which included free snacks, and (unlimited) drinks. That helps a lot to get into the mood :D. The show wasn't that great (compared to the acrobatics shows we saw in China last year). I guess we're getting spoiled or something. The acrobatics were good, but the 'intermezzos' with clowns were annoying. I definitelly wouldn't have paid the 60 euros by myself to visit it.

Click to read more ...

Tuesday
Oct102006

Crash Course "StarGate - Atlantis"

After the unfortunate, and premature ending of "Star Trek - Enterprise", I needed a a new series to put my teeth in. A couple of days ago, I discovered "StarGate - Atlantis". A far better series than the older "StarGate - SG1" series (starring "MacGyver") in my opinion. I almost finished season 1. It's as addictive as the "Taken" mini-series from a while back. By the rate I'm watching this series I'll be back on track somewhere next week (somewhere in season 3).

Click to read more ...

Tuesday
Oct102006

Google bought YouTube

Earlier, Google announced that it had bought YouTube (the site where you can upload your personal videos, and stuff). The amount of money paid was around 1.6 BILLION dollars.... (in Google shares). Since YouTube was founded in February 2005, that makes way over 2 million dollars a day... There are days that I don't make that kind of money :( /me calls his manager for a raise.....

Click to read more ...

Friday
Oct062006

iSync / .Mac alternative

Since the combination of iSync (for synching stuff on your Mac) and .Mac is expensive, and the performance is poor (slow network, limited space), I was looking for an alternative. A while ago (during my PowerBook days) I found a webpage describing a modification of the Apache webserver on FreeBSD Linux. This combo made it possible to simulate the .Mac servers. Therefore, making it possible to 'run' .Mac on your own Linux server. The main drawback is that I don't have the knowledge, or resources to run a proper linux server. So that was a 'no-go'. After that disappointment I didn't bother to look any further. I didn't use any syncing stuff and just made regular backups, untill I listened to a PodCast from the MacObserver. They mentioned the problem again, and it made me start looking for an answer again. I ran into a program called SyncUpX, which supports syncing to WebDav (which uses iSync as well), and lots of other media (network, local disks, etc.). The fun part of this was that I ran a bit later into an advert for SyncUpX on MacObserver.com. So it seems that they had the answer right under their noses :)

Click to read more ...

Tuesday
Oct032006

Expanding TinyMCE for WordPress

The default TinyMCE rich editor for WordPress lacks a lot of functionality (IMO). I wanted to use other fonts, and be able to change font sizes in posts. At first I started to look for an alternative rich text editor for WordPress, but I didn't find any usefull alternatives. Most of them are suitable for older WordPress versions, and are not compatible with the latest WordPress releases. While I was developing my former blog in Coldfusion, I used FCKEditor. This editor had the possibility to add extra functionality by editting the source files. So I started digging through the sources of the WordPress files, and found the file where the TinyMCE configuration was stored. Although the changes are not that hard, it would be nice to have a more user friendly interface for changing the capabilities of the rich text editor. The following paragraphs explain the changes I made to add fonts and font sizes to the editor. The file for displaying the editor is called "tiny_mce_gzip.php" (located in wp-includes/js/tinymce/). Open this file in a texteditor (BBEdit/Notepad/UltraEdit), or a HTML editor (I used Macromedia Dreamweaver). Find the string "mce_buttons" (without the quotes). It's located near the end of the file. The line that holds the string also defines the buttons / options for the TinyMCE editor. The default line is:

$mce_buttons = apply_filters('mce_buttons', array('bold', 'italic', 'strikethrough', 'separator', 'bullist', 'numlist', 'outdent', 'indent', 'separator', 'justifyleft', 'justifycenter', 'justifyright' ,'separator', 'link', 'unlink', 'image', 'wordpress', 'separator', 'undo', 'redo', 'code', 'wphelp'));
This line can be editted, to add extra functionality. The problem is that the file doesn't mention all possible options, so I had to do some reseach on the TinyMCE editor itself. On the website are some examples showing the capabilities of the editor. The TinyMCE website has an overview of the available buttons / options which can be used with the editor. Note that not all options may work with WordPress. I added "fontselect", "fontsizeselect", and "forecolor" to the editor;
$mce_buttons = apply_filters('mce_buttons', array('bold', 'italic', 'strikethrough', 'fontselect', 'fontsizeselect', 'forecolor', 'separator', 'bullist', 'numlist', 'outdent', 'indent', 'separator', 'justifyleft', 'justifycenter', 'justifyright' ,'separator', 'link', 'unlink', 'image', 'wordpress', 'separator', 'undo', 'redo', 'code', 'wphelp'));
After editting the file, save it and launch the WordPress admin page and start creating posts with the newly added functionality. UPDATE: it seems that the added functionality removes the TinyMCE functions if you use Safari as a browser :( (this is probably a "feature"). No problemo if you use FireFox UPDATE 2: This won't work with Wordpress 2.1 :(. You have to do the following if you want extra functionality in Wordpress 2.1:
  • Open the tiny_mce_config.php (located in wp-includes/js/tinymce/).
  • Find the line that starts with $mce_buttons_2 = apply_filters (around line 34)
  • Add extra functions on that line Example: $mce_buttons_2 = apply_filters('mce_buttons_2', array('formatselect', 'fontselect', 'fontsizeselect', 'styleselect', 'separator', 'forecolor', 'backcolor'));
This adds the ability to change fonts and use colors in your blogs. There is also a third line you can use to add other stuff, but you got to figure that one out for yourself.

Click to read more ...