Archive for the ‘PHP’ Category

Rhythmbox XML Parsing to Copy Playlists to Phone or USB Stick

Thursday, May 30th, 2019

I was recently faced with the issue of physically moving all the songs I’d given five stars in Rhythmbox to a phone.... Read More

Proxying with PHP in Ubuntu 14.04 (Apache 2.4, PHP 5.4+)

Saturday, January 16th, 2016

I’ve just had to evade a Russian block of one of my employer’s sites, let’s call it CasinoX. Presumably they had blocked both and’s IP address (which is a Cloud Flare IP btw).... Read More

Hacking WordPress The Ugly And Quick Way

Tuesday, August 4th, 2015

Recently I’ve started a little project to see how I can do with IDN affiliate sites where there is a lot less competition than in English.... Read More

Functional HTML Rendering with PHP

Tuesday, August 4th, 2015

When you’re working with a programming language that doesn’t have templating per default and you’re not in the mood – or don’t see the need – for templating your first course of actions is to write something to obviate having to print and concatenate everything.... Read More

Emacs as a Multi Mode Web Dev IDE is Now Possible

Friday, October 18th, 2013

Through web-mode the possibility of using Emacs as a web dev IDE with full multi mode capabilities a la Aptana Studio or PHPStorm is finally here. But it will take some tweaking to get things perfect so read on…... Read More

Aptana Studio 3 Snippets For The Singleton Pattern

Tuesday, November 6th, 2012

So it seems my old eclipse templates won’t work anymore in Aptana Studio 3.... Read More

Xmodmap for quick PHP programming in Linux

Tuesday, September 25th, 2012

When I program Clojure and PicoLisp I use Emacs and it’s the way things are done in Emacs which inspired me to looking into making myself more productive doing PHP in Eclipse.... Read More

Mercurial revision history search with PHP

Wednesday, August 8th, 2012

Hgview is a fantastic tool but for some reason the search field refused to come up in my version no matter how much CTRL+F I tried.... Read More

Dynamic Eclipse PDT (PHP) templates for the singleton pattern

Sunday, September 25th, 2011

I’m currently working with a legacy PHP CMS and do-it-all system which is heavily reliant on singletons. Instead of relying on static methods and direct invocation we store object instances in a global array, these instances are then retrieved through the use of a call looking like this: singleton(‘ClassName’).... Read More

How to parse and tokenize a complete PHP project

Sunday, September 25th, 2011

Yesterday I had to loop through every directory in a whole PHP project and go through all the PHP files in order to get at their contents, the goal was to get information from each file in order to create an array looking like this for each class method:... Read More