Here comes S2ajax v1.0! And it was long overdue. Six months already since I posted S2ajax says “hi()” I can hardly believe it. What I think of as v1.0′s main feature is that it is now possible to simply export classes in PHP and these classes can be instantiated in JavaScript. Whenever these instances are modified through asynchronous method calls, [...]
Last night I was trying to setup a @mail server but the installer kept choking when attempting to connect to my local database. I am posting here my quick workaround in case you too, dear reader, get a dreaded “PDO” error message complaining about your attempt to “connect to unix://“ Here is I how I solved the issue for @mail: [...]
I was reading Paul Gregg’s very clear explanation of “classless” ranges comparison when I realized that his code was not as “bare metal” as could be. So, here is the code I’ve been using in nextBBS. It only accepts ranges in the form “x.x.x.x/b” but it’s short and all I needed, really. ?View Code PHPfunction isSubnet($subnet, $ip) { // Classless [...]
Today’s fun and games: let’s swap a few variables without using more variables than necessary. Let me know if you disagree with any of this… ?View Code PHP$a = 1; $b = 2; list($a, $b) = array($b, $a); print "a=$a, b=$b\n"; ?View Code RUBYa = 1 b = 2 a, b = b, a puts "a=#{a}, b=#{b}\n" ?View Code PERLmy [...]
Sajax is a ‘managed’ AJAX framework that was created by the fine folks at Modern Method a few years ago. What’s so great about it is the seamless communication between your back-end and the web page itself: you write your PHP code, tell Sajax which functions to export and they are now accessible from Javascript. For instance — from the [...]
About 10 months ago, I released this tool, allowing developers to handle ExtJS like “managed” code in PHP: ExtPHP. Shortly thereafter, Jack Slocum changed ExtJS’ licensing model and it all became very muddy but my main question was: “As a commercial user, what would the status of the extensions be?” It seems that it’s OK to create an extension and [...]
Was your break as geeky as mine? Come on, admit it: you’ve done at least one incredibly unsexy thing in the last couple weeks. I know I have. Well, in fact, I had to take a four weeks-long break and it shows in the number of silly things I’ve played with. In no particular order: I improved this blog’s look [...]
For my new projects, I have decided to use PHP5, mostly because at least a couple projects will be worked on by a team and the learning curve is fairly forgiving. I decided, however, to follow the model offered by Rails. I looked into a few PHP frameworks, such as Akelos, but realized that they were too constraining for our [...]
I just posted the text below at http://www.nextbbs.com/do_topic_title_nextBBS-direction–please-give-your-input_id_1288 I know that a lot of open-source projects have gone through the same dilemma: Now that we know what we know, Now that “these” components are available, Now that development on our old framework is slowing down because…it’s old Well, what do we do now? Rip apart our existing software and restart [...]
It is something that I had to think about in my day job, because my team is migrating to PHP for web development and I believe that we simply do not have enough time for them to learn JavaScript’s intricacies, I needed to be the one person who would have to wrestle JavaScript when problems happened. I therefore needed a [...]






