Archive for the 'Computer' Category

Filter “fake bounce” emails with SpamAssassin

Monday, September 10th, 2007

Having a catch-all email address can be a mixed blessing, especially if the someone uses spoofed “sent from” email addresses. Invalid recipients will result in bounced back emails your catch-all.

I created the following SpamAssassin rule to filter out those “fake bounce” emails.

(more…)

Switch to WordPress 2.0

Sunday, June 11th, 2006

I finally decided to give WordPress 2.0 a chance. So while I’m switching and testing, some things might be a little "out-of-order". Just check back a little later. Cheers.

Update: Everything seems to be working now.

Enhancing Apple’s iWeb without using .Mac

Monday, May 29th, 2006

I started fooling around with Apple iWeb, which is a nice WYSIWYG web page creator tool. Unfortunately, some features are NOT available unless you get Apple’s paid service .Mac. But there is help. Slideshow

Apple’s own AJAX / Javascript slideshow is replaced by a boring HTML-only slideshow when exporting to folder and uploading to your own webpage via FTP or WebDAV. Much ebetter: replace Apples HTML slideshow with a javascript slideshow from www.couloir.org. MacOSXHints.com has links on how to implement it.

Automatic export to FTP / WebDAV

I tried WebDAV, which is supported by Apple since the 1.1 release. But it seems to be unstable. I had to manually delete the whole content of my WebDAV folder before I could upload changes. Did not like it. The other option is export to folder, and then upload manually via a FTP program to your website of choice. Too much manual work, did not like it either.

My solution: using rsync command in the terminal to upload only the changed files (determined by checksum), and leave the new javascript slideshow data untouched. This is what needs to be done

  • In iWeb go to menu "File - Publish to a Folder…", select a folder, like in your home directory ("~/"), ~/Sites/iWeb/Data/
  • The run the following command in the terminal (type all in one line!):

rsync -rca --delete -c --progress --stats --exclude "Name_of_Site/SlideShow_assets/" ~/Sites/iWeb/Data/ user@yourdomain.com:/iweb

("Name_of_Site" is the name that you give your site in iWeb. It’s the name next to the big red dot. You also need the FTP login information for your website.) Now, to make things even easier, I defined a terminal-shell alias in the terminal so I only have to type "iweb", and the terminal does the rest.

Type "pico .tcshrc"

Type "alias iweb ‘rsync -rca –delete -c –progress –stats –exclude "Name_of_Site/SlideShow_assets/" ~/Sites/iWeb/Data/ user@yourdomain.com:/iweb’" (all in one line)

Type "control-x" (to exit pico text editor) Type "y" (to save changes)

If you are NOT using the TSCH shell, you’d need to enter the alias in your shell’s alias file. So, in the future, all you have to do is

  • iWeb: Export to folder
  • Terminal: type iweb (enter) and then enter your FTP password

Wetfloor plugin for picture reflections

Monday, May 29th, 2006

I learned about a plugin that creates a nice eye-candy effects for pictures. It’s called Wetfloor. Here some examples of what it does:

Lilo

Lake Moomaw

Seattle

The effect is based on the javascript reflections.js. :-)

Rotating header picture

Tuesday, December 27th, 2005

Seen my rotating header picture ? A nifty little PHP script does it all for me and you. Randomizer

Why presentations matter

Friday, November 11th, 2005

Came across a couple of blogs discussing one of Bill Gates’ recent presentations regarding M$ Live Software strategy. Gosh, this really hurts.

#1

#2

#3

What was Bill thinking ?

Here are two great links analysing the presentation style:

Bill Gates and visual complexity

Presentation Skills 101