lamehacks

Stuff is fun

Posts Tagged ‘programming’

perl sudoku revisited

Sunday, May 30th, 2010

My lame sudoku solving script can now be use in a more intuitive way through an html form. I kept it retro-compatible so the old url interface can still be used. I also implemented initial rule checking to prevent invalid puzzles from causing weird results.

Source is hosted at bitbucket.  Social code hosting is cool, from now on all my code bits will be pushed to bitbucket.

Beautify [Format] XML with PHP

Sunday, July 19th, 2009

There is a myriad of XML formating tools out there, some have reached a rather stable development state. Oddly enough, an XML file having elements with both content and child elements is all it takes for most  of them them [every single one i know of] to miserably fail.  Being that a basic XML feature, I decided to give it a go.

(more…)

Solving sudoku puzzles with perl

Saturday, November 8th, 2008

Solving sudoku puzzles manually is quite a boring thing to do IMHO. Now writing a working solution to all 9×9 sudoku puzzles is pure fun! I wrote this script a while ago, it was a fun way to learn perl. Yes it was my very first contact with perl, so do not bash!

(more…)

. .

Entries (RSS) and Comments (RSS).