Category Archives: Uncategorized

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 »

Pdo get column names

PHP’s Pdo doesnt have a default columnname function. After searching Google I found that many people seem to be looking for this function. You can get the columnnames with an easy query to the schema:

$querystring = "SELECT * FROM INFORMATION_SCHEMA.Columns where TABLE_NAME = $table";

Related Blogs

  • Related Blogs on

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.

Skype: bulk import

Skype
Out of the box, Skype doesn’t have a bulk import feature. I only found one extra and it costs 15$.
Here’s a tip how to do it for free.

  1. Open Skype and go to ‘Contacts’
  2. Go to Advanced
  3. Backup contacts to file
  4. Open the backup with Notepad or another text editor
  5. The file is full of vcards, just copy a vcard, and past it at the bottom. All you have to do is alter the info. (ref is reference to importtime so you don’t have to alter this tag)
  6. if you need to import many contacts, write a script to add extra vcards.
  7. When your file is ready, go back to Skype/Advanced and import restore the backup.

An autoit script to do this might look something like the code below (untested)
Phone.xls has a column with nummers and a column with names

#include
$oExcel = _ExcelBookOpen("phone.xls")
_ExcelSheetActivate($oExcel,"sheetName")
For $i = 1 To 3 ;Loop
$phone = _ExcelReadCell($oExcel, 1, $i);cell with phone
$name = _ExcelReadCell($oExcel, 1, $i);cell with name
$file = FileOpen("backupfile.vcf", 1)

; Check if file opened for writing OK
If $file = -1 Then
MsgBox(0, "Error", "Unable to open file.")
Exit
EndIf

FileWriteLine($file, "BEGIN:VCARD")
FileWriteLine($file, "VERSION:3.0")
FileWriteLine($file, "N:"+$phone)
FileWriteLine($file, "X-SKYPE-PSTNNUMBER:"+ $phone)
FileWriteLine($file, "X-SKYPE-DISPLAYNAME:"+ $name + " " + $phone)
FileWriteLine($file, "REV:01091022T130411Z")
FileWriteLine($file, "END:VCARD")

FileClose($file)
Next
_ExcelBookClose($oExcel)

To much urls

Sometimes you find great sites that you wish you’d bookmarked but didn’t.

Think I first noticed Frank Buchwald on Slashdot. Took me more than a year to find his url back (forgot his name ) http://www.frankbuchwald.de

If you like his work, also visit http://klockwerks.com/ , Art Donovan, Eric Freitas

frank buchwald

frank buchwald