Posts Tagged ‘oddities’

20081202 The BBC accidentally reveals some source code

… in this recipe (scroll to the bottom), and here’s the question: Which programming language are they using in that piece of code? My vote goes for Perl, because… It’s a well-known, public fact that they use Perl. In fact I have even heard someone complained the version of Perl they use is so old [...]

20080408 Mental note about #ifndef’s

When using #ifndef for #include guards: #ifndef BLAH_H #define BLAH_H // code #endif make sure that #ifndef and #define are the first lines of the archive! I had placed some comments before them and that made me lose several hours, trying to find out why class forward declarations didn’t work as they should. One could [...]

20080226 Xcode3 oddities

It’s been a couple of interesting days already, got ideas for something fun and I’m using XCode quite furiously. Everything began since I got SDL working with OpenGl (what derived into a Linux version of the famously rotating triangle with pink background), then a couple of weeks later I made some additions which I’m further [...]

20070524 Unexpected T_PAAMAYIM_NEKUDOTAYIM

In almost every programming language, parsing errors tend to be boring, and PHP is not going to be an exception… unless you get one of these: Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM If you aren’t aware, what it means is “Oh, there’s an unexpected double colon where it shouldn’t have appeared”. But even if it’s [...]

20050120 Pucca, Jessica Fletcher y las pajaritas

Andaba yo -es un decir- esta mañana en el metro, de camino a St.Paul’s, meditando e intentando dilucidar si me estaba convirtiendo en una kitsch inglesa, porque empieza a gustarme la ropa de aquí, y preguntándome si algún día llegaría a vestir tan mal como las inglesas, cuando de repente me he dado cuenta de [...]