Fronteers 2010 notes

I was at the Fronteers conference the past two days, which was really good. Check out the website in a week or two for videos and slides of all speakers.

During the lectures i took notes using Markdown, which happens to format to very nice HTML when pushed to Github. So if you want, you can read the notes for the conference from both day one and day two.

I’ll do a blog post with some highlights somewhere in the next couple of days.

Eventbug

Eventbug is a very handy plugin for Firebug that lets you see all event handlers attached to an element. Simply ‘inspect element’ on an element, and you can see all events in the right tab panel. In beta right now, but proving to be very handy already.

Three new repositories on Github for JSON projects

Added three new repositories on Github for JSON-related scripts i’ve been working on, with pretty self-explanatory titles :)

  • csv2json : PHP script to convert CSV to JSON
  • json2sql : PHP script to convert JSON to SQL statements
  • xml2json : Python script to convert XML to JSON or the other way around

Roocepten

Weet je nog niet wat je gaat eten vanavond? Gebruik de superhandige Roocepten zoeker!

En je kan ‘m ook embedden op je eigen site!

ProCSSor

Handig tooltje om je CSS mooi te maken.

Wat ik heb geleerd van de eindexamenexpo van de HKU

Ik was vrijdag op de eindexamenexpositie (dit jaar onder de naam EJECT) van de HKU in Hilversum. Studenten van de KMT (Kunst, Media en Technologie) faculteit presenteren daar hun eindwerk.

Twee dingen die me opvielen:

  1. Als je robots ontwikkelt kom je snel de uncanny valley tegen: als je je robot te echt maakt wordt het eng. In plaats van een mens visueel na te bootsen kun je echter ook gedrag nabootsen. Een robot die een bepaalde afstand bewaart terwijl hij met je ‘communiceert’ zorgt voor evenveel ‘sympathie’ bij de gebruiker als een robot die heel erg op een mens lijkt.
  2. Vergeleken met vijf jaar geleden (toen ik zelf afstudeerde) is de technologie nóg toegankelijker geworden. Je kunt in je eentje, met behulp van een goede game engine, een complete professionele game ontwikkelen in een paar maanden.

Escaping dollar signs in PHP regular expressions

I had some problems matching dollar signs in PHP regexp’s:

$str = 'Bacon $ham eggs and $spam';
preg_match_all("|\$|", $str, $matches);
print_r($matches);

Gives

Array
(
    [0] => Array
        (
            [0] =>
        )
)

It does work when double escaping the $

preg_match_all("|\\$|", $str, $matches);

Gives

Array
(
    [0] => Array
        (
            [0] => $
            [1] => $
        )

)

This problem occurs because PHP substitutes $variables in strings enclosed in “double quotes”. So, actually the problem can very easily be solved by just replacing double with single quotes:

preg_match_all('|\$\' $str, $matches);

» An overview of all articles can be found in the archive.

Hi! I'm Hay. I make art, do projects and blog here. Read more »

Projects

More Hay at...

Archives by month