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… [Read more…]
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… [Read more…]
On the Flex side, I’ve been using RobotLegs for a while, and really started to appreciate the eventBus oriented architecture. Now, when trying out GWT, I want to do the same here. The search for suitable solution has led me to Mvp4g (http://code.google.com/p/mvp4g/). As always, the very best way of really getting the grips is… [Read more…]
Dealing with json and objects So, now we have some raw json data back from our server script. How to do something meaningful with it? The json data that our php script produced is an array of users. To break this down to objects, we can use two entities: User, with properties name and age… [Read more…]
Now we are up and running with a xampp served frontend. Let’s go for a connection to php backend. Php server script 1. The php server script could be created inside the current GWT project directory, or as a separate project outside. For simplicity, we here create a server folder inside the GwtPhp project, and… [Read more…]
When developing using Eclipse GWT plugin and hosted mode, the html files (and java server resources) are served via the plugin jetty server. This makes it really quick and easy to get going with developing java server solutions, but it doesn’t play with php out of the box. Thw GWT startup pages suggests deploying the… [Read more…]
Java is tricky, verbose and ugly. And an excellent programming language! I’ve always avoided it, with some kind of subconcious thought that I should use it, know it, that real grown-up programmers program in java. I’we been working on a music notation solution for some months. Started in AS3, while one of the goals is… [Read more…]
The Cairo graphics library (http://cairographics.org/) is a widely used solution for rendering graphics to different devices – bitmaps, pdf, svg etc. It’s used by Mozilla, Inkscape, Gimp etc. Some time ago, I realized that Cairo is available as a native php extension: http://php.net/manual/en/book.cairo.php. Great! To get it running on XP, I did the following: Download… [Read more…]
Needed the possibility to handle simple string encryption/decryption the other day — handling the same data in both php and As3. Just a little bit of key salting, and some Base64 encryption. No problem except for the Base64 part. When trying this out, only one of my Base64 libraries gave the same result as the… [Read more…]
Flash/Flex doesn’t support PUT or DELETE requests, because the browsers don’t — due to limitations in the NPAPI. This is a source of frustration. Workarounds using sockets or prioxies are messy, don’t work with binary data or some other problem… But fortunately, there seems to be a good (enough) solution! Keenan, at Automata Studios, blogs… [Read more…]
March 25, 2011
1