Desktop applications with Haxe and Waxe – Part 5: Menus

May 22, 2012


Every classic desktop application has a top menu bar that at least lets us quit the program. So let’s create one! We start with an empty directory, and add the following MenuTest.hx… …and the following MenuTest.nmml: Go ahead and compile with > haxelib run nme test MenuTest.nmml neko (For compiling to c++/windows target, check Part […]

Posted in: Haxe, Waxe

Desktop applications with Haxe and Waxe – Part 4: Sizers

May 21, 2012


One of the fundamental concepts of wxWidgets is “sizers” – utility classes that are very useful for building a working user interface. The following article is heavily based on this one: What do these sizer things do? that can be found via the wxWidgets tutorials page. All credits to Brian Victor, the original orirginator! So, […]

Posted in: Haxe, Waxe

Desktop applications with Haxe and Waxe – Part 3: Adding a missing event handler

May 19, 2012


In part 2, we created a simple HelloWaxe application with a static text field and a quit button. Now, let’s handle some text dynamically. We start by adding a text control (wx.TextCtrl) to our HelloWaxe.hx. Now it should look something like this: Compiling and running should give the following app: What about some interaction with […]

Posted in: Haxe, Waxe

Desktop applications with Haxe and Waxe – part 2: Hello Waxe!

May 19, 2012


Ok, now that we we have a working Haxe/NME/Waxe installation that lets us compile the  waxe samples, we can start building a Hello Waxe application from scratch! Somewhere on your hard drive, create a directory and name it – say – “hellowaxe”. In that directory, create a new haxe class file with the name HelloWaxe.hx […]

Posted in: Haxe, Waxe

Desktop applications with Haxe and Waxe – part 1: Compiling the samples

May 19, 2012


Haxe (, created by Nicolas Canasse,  is amazing. I’ve never before had this feeling of “linearity” between the original programming ideas and the running results. Being able to use the same codebase both on server applications (targeting neko or php) and on the browser client (js or flash) is a huge timesaver. Compiling the same […]

Posted in: Haxe, Waxe

Algorithm for string similarity – better than php Levenshtein and similar_text

March 25, 2011


In a current pedagogical project, the students are supposed to answer questions/solving tasks using a drag-and-drop interface. This interface has to be general and loadable with different kind of pedagogical stuff. Examples could sorting things in order depending on let’s say weight, or sorting months in the right order onto a circular board with 12 […]

Posted in: PHP

Php: interacting with Google spreadsheet using Zend Gdata

February 5, 2011


Here’s a quick post describing how to interact with a Google spreadsheet using Zend Gdata libraries. Download the libraries from here, grab the Zend directory from the library folder and put it in the root of the script described below. Create a new Google spreadsheet, and grab the “key” part from the browser address bar […]

Posted in: PHP, RESTful, Zend Framework