Author Archives: westworld

presentations on CSS files in large sites

Lesco.be on Netlog

Nicole Sullivan on CSS for big sites

snippets for Aptana

http://www.highresolution.info/download/cssdoc_snippets_v0.1.zip

Related Blogs

  • Related Blogs on

Perfect World: Genie

This article contains info on genies in Perfect world.

Read more »

Info on OOP

Over the past few days I’ve gathered some info on OOP and testing. Below are some video’s and slides about best practice in JAVA and PHP Read more »

PHP-GTK: making an “About” dialog

Below is an example of how you can code an About dialog in PHP-GTK.
The mail_hook and url_hook are callback functions to open your default email client and webbrowser.
These functions have been tested under Windows XP. I don’t know if they work on Mac or Linux.

PHP GTK: liststore error (undefined class constant)

Been experimenting with php-gtk over the last few days. When I was trying to use a liststore, php threw a fatal error. “Undefined class constant ‘TYPE_STRING’”. Read more »

Cleaning up after an emailing

As a web master, I often send out mass mailings. After the mailing is done, the bounced emails are returned to my Outlook. I go through them manually. The real bouncers are put in a “Bounced” folder and,  Out of office messages in the “Trash”. The rest of the emails are addresses I need to update in my database or people that wish to unsubscribe. Since sorting through 2000 bouncers can take up a lot of time, I did some research on how to automate this.

PHP offers a set of functions to connect to a mail server (IMAP/POP3).  The plan was to let my web server connect to the mail server and sort out the bouncers for me. Below is a little script to give you some ideas of what I came up with.

Some great tools

Over the past few months I’ve been using a couple of new tools. Since they are free and might be helpfull to website designers and managers I decided to share my find:

Read more »

Canvas: flip image

Below is a sollution for flipping an image on the <canvas> tag without having to read it pixel by pixel:

var mycanvas = document.getElementById('canvas');
ctx = mycanvas.getContext(’2d’),
img = new Image();
img.onload = function(){
mycanvas.width = img.width;
mycanvas.height = img.height;
ctx.drawImage(img, 0, 0, img.width, img.height);
}
img.src = ‘http://farm3.static.flickr.com/2043/2653938087_bed6c6307d_m.jpg’;
mycanvas.onclick = function() {
ctx.scale(-1,1); // to flip vertically, ctx.scale(1,-1);
ctx.drawImage(can, -img.width, 0, img.width, img.height);
}

Windows 7: no mailclient

I just noticed that Windows 7 does not ship with Windows Mail or Outlook Express.  Users of Windows 7 can download a mail client on the Windows live site. This seems to be the only mailclient for users on the 64bit version.  Mozilla Thunderbird 3 64 bit is still in beta at the moment.