JavaScript Pop-under
Monday, January 23rd, 2012I recently had to do a pop under with JS and found the below snippet (can’t remember where anymore), I might need it again so I post it here for reference.... Read More
I recently had to do a pop under with JS and found the below snippet (can’t remember where anymore), I might need it again so I post it here for reference.... Read More
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
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
I just realized I needed to replicate some data from one database to another, but only certain tables.... Read More
Create a file called “2 clés.html”, zip it up and, name the file html.zip then unzip it with the following command: unzip html.zip -d /tmp, check the /tmp folder, what do you see?... Read More
If you’ve read the article about my email server setup you quickly realize that adding a new email account is quite onerous, a combination of adding records to tables in a MySQL database and creating folders on the harddrive. This can easily be automated with for instance PHP and I’ll show you how below.... Read More
In general I consider Flot to be the more capable solution. But in the case of ChartBasket I wanted to setup something quickly and I didn’t need the more advanced stuff Flot makes available, for instance zooming.... Read More
Update I’ve had to revise this one, the original post might work (or not) if you have an older install of Ubuntu, atm (2013-02) I use Lucid, and now the following process works:... Read More
I’ve just run into the need to be able to get the http cookies of a response to a request sent from PHP and accepted in PHP. Normally cookies can be accessed through the $_COOKIE super global but since no client/browser is involved that won’t be possible in this case. The below is an example of machine to machine communication.... Read More
I’m currently working on a project where I use MongoDB and Clojure to create an API only type of service. Other sites of ours are connecting to this service, these sites are all made with PHP at the moment.... Read More