An unexpected PHP quirk

The other day when I was doing work for a new client, I ran into a very strange error. I was configuring their Mediawiki site, but whenever I added code to the configuration file, it would cause a fatal error. Unfortunately the site’s error logs were not available to me. Initially I [...]

Posted by on 10 February 2011 | 6:18 pm

Don’t close your PHP tags!

I saw this post over at sitepoint about whether or not you should close your PHP tags. Apparently there is some debate, though to me it seems pretty clear the choice is to leave them out. If you’re unaware, the closing ?> tag in PHP files is completely optional. It is only really required [...]

Posted by on 14 October 2010 | 7:46 pm

WinBinder 2010.10.14 released - WinBinder is a PHP extension for making Windows Applications

I’m now “officially” maintaining WinBinder, so from now on you can get the latest version of WinBinder directly from Winbinder.org’s download page Read my tutorial on getting started with WinBinder. Visit the Winbinder Forums if you need more assistance Changes since 2010.10.01 Added in 2010.10.14 * Fixed bug with return values for wb_sys_dlg_open when using wbc_multiselect * Made 3rd and 4th [...]

Posted by on 14 October 2010 | 6:49 pm

Winter 2.2.1 Released - Winter is an Interpreted language for MediaWiki

Here is an update for Winter, the Wiki Interpreter. Changes include * added ^o and ^c escape characters * added + to allowed characters in function names and functions * added #reset_all_vars function * added ++ and — functions * fixed [...]

Posted by on 3 October 2010 | 8:43 am

New version of Winbinder, the PHP extension for making Windows Apps, released

New version of WinBinder… with some actual NEW FEATURES Download WinBinder 2010.10.01 Downloaded 713 times Tutorial on getting started Winbinder Forum This is a list of all changes since 0.46.190. PHP 5.3 compatible Unicode support added Removed version checking from wb_windows.inc.php Fixed memory leak in winapi library calls Fixed bug where maximize wasn’t triggering WBC_RESIZE Fixed bug where closing [...]

Posted by on 2 October 2010 | 9:01 pm

Stop the #twittervirus

This greasemonkey script will stop mouseovers // ==UserScript== // @name Stop the #twittervirus // @namespace http://swiftlytilting.com/* // @include http://www.twitter.com/* // @include https://www.twitter.com/* // @include http://twitter.com/* // [...]

Posted by on 21 September 2010 | 8:05 am

MediawikiPlayer 0.2.4

This version fixes a bug where some variables were being written as parameters instead. Mediawiki Extension Page: Extension:MediawikiPlayer Original post: Embed JW FLV Media Player with Mediawiki using the MediawikiPlayer Extension If you find MediawikiPlayer useful, please consider making a $5 donation. Download MediawikiPlayer v0.2.4 Downloaded 795 times

Posted by on 3 August 2010 | 4:48 pm

MediawikiPlayer v0.2.3

This version fixes additional security issues for servers with register_globals enabled. Local Wiki page: MediawikiPlayer Mediawiki Extension Page: Extension:MediawikiPlayer Original post: Embed JW FLV Media Player with Mediawiki using the MediawikiPlayer Extension If you find MediawikiPlayer useful, please consider making a $5 donation. Download MediawikiPlayer v0.2.3 Downloaded 815 times

Posted by on 2 July 2010 | 1:21 am

MediawikiPlayer 0.2.2

This version fixes some security issues. All users are encouraged to upgrade Local Wiki page: MediawikiPlayer Mediawiki Extension Page: Extension:MediawikiPlayer Original post: Embed JW FLV Media Player with Mediawiki using the MediawikiPlayer Extension If you find MediawikiPlayer useful, please consider making a $5 donation. Download MediawikiPlayer v0.2.2 Downloaded 725 times

Posted by on 20 June 2010 | 6:29 am

MaintenanceShell 0.3.1

This version fixes a minor bug which caused a warning error to be displayed. This bug was introduced in 0.3.0 MaintenanceShell homepage on MediaWiki.org Download MaintenanceShell v0.3.1 Downloaded 817 times

Posted by on 10 June 2010 | 2:46 pm

MaintenanceShell v0.3.0

This version fixes a major security issue with XSS and CSRF vulnerabilities. All users are encouraged to upgrade immediately. MaintenanceShell homepage on MediaWiki.org Download MaintenanceShell v0.3.0 Downloaded 732 times

Posted by on 23 May 2010 | 1:24 pm

cStruct and WinAPI: Classes for accessing the Windows API with PHP and WinBinder

One of the biggest roadblocks to writing code which accesses the Windows API is the fact that so many functions require you to provide data formatted in specific format. This format is defined on MSDN as a C struct, which has no direct representation in PHP. The best you can hope for is [...]

Posted by on 13 May 2010 | 6:23 pm

MaintenanceShell v0.2.4

This fixes a minor html issue with IE. Also includes the German language localization. MaintenanceShell homepage on MediaWiki.org Download MaintenanceShell v0.2.4 Downloaded 726 times

Posted by on 9 May 2010 | 5:12 pm

Maintenance Shell v0.2.3 for Mediawiki

Fixed some minor bugs and also moved the text strings into the language file for better localization. MaintenanceShell homepage on MediaWiki.org Download MaintenanceShell v0.2.3 Downloaded 666 times

Posted by on 7 May 2010 | 9:04 pm

How to fix Google’s new layout

Google’s new layout reminds me too much of Bing.. I really preferred the old layout. Thanks to Nathan Caroyannis, we can use Greasemonkey to change the layout. Download the userscript here: http://userscripts.org/scripts/show/76060 I added my own changes as well AddStyle("#leftnav {display:none}"); AddStyle("#center_col {margin-left:0}"); AddStyle("#foot div {display:none}") AddStyle("#foot #navcnt, #foot #fll {display:block}") AddStyle(".tsf-p table {border-bottom:0 !important}") AddStyle("#cnt {max-width:1200px !important}") AddStyle(".s { max-width: [...]

Posted by on 6 May 2010 | 3:09 pm