Main menu:


Site search

Archives

RSS Arjen's Friendfeed

RSS Richard's del.icio.us links

RSS Maurits' Stumbled Items

Archive for 'Uncategorized'

Curry: partial functions in Actionscript 3

I needed curry() and bind() in Actionscript 3, because I was porting a Javascript application that was built using PrototypeJS 1.6 to Flex and the application heavily used these functions. I came up with the following Actionscript / Flex code:

bindAndCurry.as package { public function bindAndCurry(…a):Function { return function(…b):* { return a.shift().apply(a.shift(), a.concat(b)) } } } BindAndCurryTest.as package { import flash.display.Sprite; public class BindAndCurryTest extends Sprite […]

Teach me SQL injection

Today I’ve given a SQL injection class at the VU University in Amsterdam. I’ve created a website that is vulnerable to SQL injection and I wanted to share this demo/assignment with you. Note that I’ve turned off magic_quotes_gpc to make life a little easier. The assignment is to find out my age. Whenever somebody has deleted […]

PHP hide_email() function

What is it?

A PHP function to protect the E-mail address you publish on your website against bots or spiders that index or harvest E-mail addresses for sending you spam. It uses a substitution cipher with a different key for every page load.

How does it work?

PHP encrypts your E-mail address and generates the javascript that decrypts […]

Well okay.. I’ll fix your computer

But I won’t come over. So, no drinking coffee.. no chatting about the weather.. no home made cookies.. nothing.. I’ll just fix your computer, I’ll do it quick and this is how:

Tell/text them to call you whenever it suits you Tell people to go to http://www.teamviewer.com […]