Monday, November 15, 2010

Trying out Blogilo

Trying out this Blogilo thing

Here is some code:

<?php

echo "Hello World";

?>

Monday, May 31, 2010

Trying Flock

My first post using the flock.com webbrowser.

It looks pretty cool to me.
Blogged with the Flock Browser

Saturday, February 20, 2010

Drag & Drop From Firefox to Flash

It's one of those questions you get a lot, can't I just drop my file from the desktop into
the website ? Offcourse you can't, duh, weird clients..

But actually, now you can! :-)

http://www.quasimondo.com/examples/draganddrop/dragAndDropFFF.php

Source code is available here:

http://code.google.com/p/quasimondolibs/source/browse/#svn/trunk/examples/FFDragAndDrop

Made @ http://www.quasimondo.com/

Wednesday, November 25, 2009

Excluding files with tar.

Here is a simple way to exlude some files with tar:

tar cvf virtual.tar virtual/ --exclude={"*backup*","*.gz","*.bz2"}

Wednesday, October 21, 2009

Got access to ssh but not to any other ports on the remote machine ?

Try something like this:

ssh root@my.remote-host.com -L 2000:my.remote-host.com:80 -N

This will make the remote http (port 80) available on your local machine at (in this case) port 2000.

Just point your browser at http://localhost:2000 and you are happily browsing the remote machine.

if you use the -f option like this:
ssh -f root@my.remote-host.com -L 2000:my.remote-host.com:80 -N

The process will fork in the background.

Tuesday, September 29, 2009

Regular Expression, validate domain

Simple regular expression to validate a domain loosly:

^([A-z0-9][A-z0-9_-]*\.)+([A-z0-9][A-z0-9_-])+$

Monday, September 14, 2009

After you've editted a /etc/hosts file on the mac, you should flush the cache of the lookupd to
be able to activate your changes directly:

lookupd -flushcache

So now you know...