Category Archives: Uncategorized
presentations on CSS files in large sites
snippets for Aptana
Perfect World: Genie
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
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-logo[1] Skype](http://www.westworld.be/wp-content/uploads/2009/10/skype-logo1-150x150.jpg)
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.
- Open Skype and go to ‘Contacts’
- Go to Advanced
- Backup contacts to file
- Open the backup with Notepad or another text editor
- 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)
- if you need to import many contacts, write a script to add extra vcards.
- 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
![ml_6_a[1] frank buchwald](http://www.westworld.be/wp-content/uploads/2009/04/ml_6_a1.jpg)
frank buchwald