Category Archives: Uncategorized

Compile ripgreg (rp) on Ubuntu 16.04 LTS

Just a quick note to myself on how to compile the insanely fast rg utility from git sources w/ AVX and SIMD activated. Clone from sources: git clone git@github.com:BurntSushi/ripgrep.git –depth 1 && cd ripgrep Install rustup to be able to compile … Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment

The SimpleXMLElement Magic Wonder World in PHP

PHP’s Simplexml ships with a lot of magic to simplify access to an XML documents element and attribute node values. Some criticize this and suggest to use the DOM library instead. The DOM library on the other hand, even it … Continue reading

Posted in Developing, Hakre's Tips, PHP Development, Pressed, The Know Your Language Department, Uncategorized | Tagged , , , , | Leave a comment

Kubuntu Default Browser

The system-settings don’t reflect the whole picture in Kubuntu. Settings can be done via the command-line. Here exemplary to chromium: I had an issue with this for quite some time, I finally found the answer via “opening web link from … Continue reading

Posted in Hakre's Tips, Pressed, Uncategorized | Leave a comment

Just linked: Learning OOP in PHP

Link | Posted on by | Tagged , | Leave a comment

Free The Cuban Five! 12. September 2013

Especially for our German speaking visitors: Unterstützen und Verbreiten – spitzenaktion.de. And for our US-visitors: Miami, FL, Sept. 8 | Washington, DC, Sept. 12 (White House) | Washington, DC, Sep 13 (University of the District of Columbia Law School) http://www.freethefive.org/calendar.htm

Posted in Linked, Pressed, Uncategorized | Tagged , | Leave a comment

The Open-By-Rule Benchmark

Link | Posted on by | Tagged , | Leave a comment

The case against Singletons in WordPress

Link | Posted on by | Tagged , , | Leave a comment

Using Catalogs for Validation with PHP’s DOMDocument and Libxml2

DOMDocument schema and DTD validation in PHP can make use of libxml2’s Catalog support feature. A catalog is basically a XML file which contains information where to obtain the DTD and XSD schema from local disk. That is mapping a … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , | 3 Comments

Running PHPUnit under multiple PHP Versions in Git Bash on Windows (+PHPStorm)

Just a quick note as I wiggled through that: To run your unit-tests with different PHP Versions in Git Bash on Windows, there is not much use in changing the PHPBIN windows environment variable to make PHPUnit pick the right … Continue reading

Posted in Uncategorized | Tagged , , , , , , | Leave a comment

Choosing an ORM strategy

Choosing an ORM strategy (by Jimmy Bogard; 20 Jul 2012)

Aside | Posted on by | Tagged , , , | Leave a comment

Ellislab, you’re doing it wrong

The following is part of a mail that’s circulating to authors and copyright holders of contributions to the Codeigniter software: If you are able to certify your prior contributions to CodeIgniter and wish to leave them, no reply is required … Continue reading

Posted in Uncategorized | Tagged , , , , | 8 Comments

CSS Character Escape Sequences

CSS character escape sequences, more on the CSS3 selector syntax (STTS 3 Profile Specification) at W3C.

Aside | Posted on by | Tagged , , , , , | Leave a comment

WordPress 3.3 XSS vulnerability

FYI: The WordPress 3.3 XSS vulnerability has been addressed in a changeset on 30 Dec 2011, wordpress 3.3.1 has just been released. (3.3.1 changes/Announcement).

Aside | Posted on by | Tagged , , , | Leave a comment

class IntegerstringArray IMPLEMENTS ArrayAccess

Don’t tell nobody!: class IntegerstringArray IMPLEMENTS ArrayAccess

Aside | Posted on by | Tagged , , , | Leave a comment

Protocol of some PHP Memory Stretching Fun

The know your language department was having a day out with the gang from the know your runtime department. The topic of today was to play with the PHP memory limit, let’s grab the laptop’s shell: $ php -d memory_limit=1g … Continue reading

Posted in PHP Development, Pressed, Reports, The Know Your Language Department, Uncategorized | Tagged , , , , , | Leave a comment

Mozilla fails where it does best

Something must have passed QC on the mozilla web team that shouldn’t. Ever tried to download Mozilla Firefox from their homepage with a opera browser that has javascript disabled? You don’t get even a statical link offered that could lead … Continue reading

Posted in Pressed, Uncategorized | Tagged , , , , , | 7 Comments

List of PHPMD Rulesets

As I use PHPMD from time to time only (but more and more often) I needed to lookup the default ruleset names from the filesystem. As google is faster than a search on the harddrive, here they are for future … Continue reading

Posted in PHP Code Smells, PHP Development, PHP Development, Pressed, Tools, Uncategorized | Tagged , , | 4 Comments

Mjam! git cherry-pick

Each day you didn’t know about how to use git-cherry-pick is half a developer’s day. Kind of my feeling after this week has passed. It allows to take one commit from another branch and add it to the current branch. … Continue reading

Posted in Hakre's Tips, Linked, Pressed, Tools, Uncategorized | Tagged , | Leave a comment

getID3 Library

The getID3 PHP library can recognise PDFs and a bunch of other file types. In case you don’t have or need more than the PHP build in fileinfo library.

Aside | Posted on by | Tagged , , , , , , , | Leave a comment

Savant PHP Template

Savant is a powerful but lightweight object-oriented template system for PHP.

Aside | Posted on by | Tagged , , | Leave a comment