_array
_array is a (yet another) attempt to create object oriented API for php arrays.
_array is a (yet another) attempt to create object oriented API for php arrays.
First "release" of makrell
05 April 2008 // javascript. things.
Meritxell asked me how to use TableSort to sort a column based on a DOM attribute (checkbox "checked" value in that case). Well, in the original version it wasn't possible, but it was very easy to add.
Unit testing and TDD are great and so is SimpleTest, however there's a problem: you have to write code for tests, and sometimes quite a lot. And this code is often not really readable and self-documented. testik is an attempt to make testing as simple as it could be.
11 March 2008 // javascript. stuff.
two-liner that adds perl/php style string interpolation to javascript
It's often desired to transform some text ignoring specific parts of it. The "classical" example is to replace something in html, not touching the tags.
12 December 2007 // javascript.
Gcui is a browser-based tool for creating google chart API urls.
Current version is 0.1 β
The author is not affiliated with google. ;)
10 September 2007 // php. stuff.
This is just a follow-up to the previous post, describes how to enumerate combinations using php iterators.
Generating permutations (all possible combinations) of characters or array elements is asked often in php groups. Although simple, the answer is relatively verbose, so I thought I post it here for later reference.
makrell is a simple but powerful macroprocessor for php language. It is aimed to simplify creating complex documents by using macros. A macro is a (typically short) chunk of text that replaces another (typically much longer) chunk. Macros act like functions in programming: once defined, they can be used over and over again.
The applications of makrell are templating, domain specific languages and php preprocessing.
16 January 2007 // php. stuff.
php function that creates a plain text table from array of arrays
18 December 2006 // php. stuff.
Php is definitely not a suitable language for functional programming. Php functions live in a parallel reality - when your program starts, the construction of functions is complete, nothing can be changed anymore. However, Php is an open language (as it has eval ), so it should be possible to do some experiments.
08 December 2006 // php. stuff.
Every programmer knows that iterators are generally better than loops. Although php has a variety of iterator functions, their use is seriously limited, because there is no way to pass user code to the iterator.
30 November 2006 // php. stuff.
A couple of code snippets that show how to do some intriguing stuff in oop php using serialization
This windows program I wrote recently prints Zend engine "assembler" generated from php code. Quite useful for understanding on what's going on there... and sometimes quite funny.
03 November 2006 // javascript. things.
Ajaxik is a tiny javascript library for basic ajax interaction, can also be used for "lazy" ajax (without javascript programming).
29 October 2006 // php. stuff.
Simple functions to create php tree structures (nested arrays) from "flat" storage formats.
23 October 2006 // javascript. things.
No, your eyes don't deceive you, this is Yet Another Javascript Table Sort script, designed to be unobtrusive, simple and flexible... (skipped 1000 lines of happy talk ;)
03 October 2006 // javascript. things.
Debug Console is a small utility for printing debug messages on the "console". Console is simply a textarea hanging in the corner of the page. No popups, no fancy formatting, but simple, clean and cross-browser.
Console also provides utility functions for printing stack trace and for measuring execution speed.