Category Archives: Uncategorized

Git Committer Date is Author Date (Amend)

Amend the last commit (HEAD) and set the committer date as the author date – as “–committer-date-is-author-date” may have done (a git-rebase option): GIT_COMMITTER_DATE=”$(git show -s –format=%at HEAD)” git commit \ –amend -C HEAD (Explainshell) Git Author Date is Committer … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

Docker Run without “docker run”

So there was this one question on Stackoverflow in which the OP was linking an .htaccess tester for Mod-Rewrite-Rules. Despite this being all fine I was asking myself what about really(tm) testing this? So I remembered the rewrite-log from the … Continue reading

Posted in Hakre's Tips, Patched, Pressed, Professional Webdevelopers At Work, Scripts, Surviving the Internet, Tools, Uncategorized | Tagged , , , , | Leave a comment

Speedpills 4 Linting PHP Files in Parallel

Quite some time ago I’ve already written about linting PHP files in the shell / build. Even though parallel linting is fine, when the code-base is growing larger and larger, the build becomes slower and slower. A slow build sucks. … Continue reading

Posted in Hakre's Tips, PHP Development, PHP Development, Pressed, Scripts, Tools, Uncategorized | Tagged , , , , , | 1 Comment

Sed Cheatsheet

Just a post about some of the sed lines I find scattered, to be extend in future edits. Merge same Lines Together $ sed ‘/^ \*$/{h;d};{H;s/.*//;x;s/^\n//}’ This sed example merges all “ *” lines that follow each other (e.g. empty … Continue reading

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

Gnome Shell Quickfix Cheatsheet

Disable work-space up/down movers which block key bindings I use in Phpstorm. Important with that is that I don’t use these dynamic work-spaces at all, so making them static and only one: dconf write /org/gnome/desktop/wm/preferences/num-workspaces 1 dconf write /org/gnome/mutter/dynamic-workspaces false … Continue reading

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

Install / Update Dbeaver Community on Ubuntu

Update: Turns out I was too eager to get the command line running. While it’s fine to have it perhaps for some systems, it is actually the case that Dbeaver has both a Debian repository and an Unbuntu PPA as … Continue reading

Posted in Hakre's Tips, Tools, Uncategorized | 2 Comments

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

Learning OOP in PHP

Just linked: Learning OOP in PHP

Posted in Linked, Pressed, Uncategorized | 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

The Open-By-Rule Benchmark

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

The case against Singletons in WordPress

The case against Singletons in WordPress

Posted in Uncategorized | 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 , , , , , , , , | 5 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 (by Jimmy Bogard; 20 Jul 2012)

Posted on by hakre | 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, more on the CSS3 selector syntax (STTS 3 Profile Specification) at W3C.

Posted on by hakre | Leave a comment

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).

Posted on by hakre | Leave a comment

Don’t tell nobody!: class IntegerstringArray IMPLEMENTS ArrayAccess

Posted on by hakre | Leave a comment