Archive for November, 2008

Generating Sudoku puzzles using JavaScript

Saturday, November 29th, 2008

While I'm not the biggest fan of Sudoku puzzles, I wanted to make a sudoku widget for the Opera x-widgets challenge. This required me to study the algorithms used for generating sudokus, which was actually a quite interesting challenge. While there are some examples of generating sudokus online, such as this ...

CSRF protection revisited

Thursday, November 27th, 2008

Yesterday, I was talking on IRC with Tom Graham. He was looking for a way to protect GET requests against CSRF. I showed him my CSRF protection plugin, as it would be suitable for protecting GETs too with minor modifications. This got me thinking what would be the best way to ...

How to get your saved passwords from almost any browser

Tuesday, November 25th, 2008

Someone on ##opera in freenode was asking how to recover their saved password from Wand, Opera's password manager. While there is apparently no "official" way of getting to them, I thought that maybe you could simply hook into the form, and read the password when it's being submitted by Wand! Easy enough, ...

Programmer’s education

Monday, November 24th, 2008

Daniel Brown at Endlessly Curious wrote an interesting post on the current state of teaching programming. He raises points such as the new generation of programmers getting taught mostly high-level languages such as C# and Java, and that they should be taught more assembly or C instead.

I’m now on Twitter

Saturday, November 22nd, 2008

After pimping from various sources, I have decided to try Twitter. You can find me here. Not sure if I'm going to keep updating it, but I am for now =)

Creating a Dojo dijit.Tree with checkboxes

Friday, November 21st, 2008

Dojo provides a useful component called dijit.Tree, which is basically a quite typical tree component. However, it doesn't do much out of the box, and I needed it to make some tree nodes selectable with checkboxes for the packageizer script. Let's see how the tree was made to play nice with ...

Base classes in OOP programming languages

Wednesday, November 19th, 2008

David Otton posted a short but thought-provoking post about stdClass, which many think is the "base class" all PHP classes automatically inherit from. I have to admit that I had this misconception as well. On the other hand, "true" OOP languages such as C# and Java both have a base class ...

Developing for smaller screens

Monday, November 17th, 2008

As of late, I've been working on developing a widget that runs on both PCs and mobile phones, for Opera's X-Widgets Challenge. The widgets for the challenge must work on a QVGA (320x240) screen, and that presents certain challenges. For example, as the size of the widget is so constrained, you ...

Improved Zend Framework package maker

Friday, November 14th, 2008

Last month, I introduced the packageizer, which allowed you to choose a class from the Zend Framework and get it as a zip with its dependencies. Now, based on some feedback from users, I've improved the user interface of the tool: You can now select multiple items for inclusion in the ...

Dojo Toolkit - difficult to learn, is it worth it?

Wednesday, November 12th, 2008

I've usually dismissed the Dojo Toolkit as a difficult, poorly documented JavaScript library. However, Zend Framework recently decided to choose it as the default JS library to bundle with the framework. It can't be all bad if that happens, right? This sparked my curiosity towards Dojo again - Maybe it was time ...