Quantcast
Channel: Pressed – hakre on wordpress
Browsing latest articles
Browse All 53 View Live

Image may be NSFW.
Clik here to view.

Devil’s Dictionary of Programming

Devil’s Dictionary of Programming

View Article



Image may be NSFW.
Clik here to view.

Professional Webdevelopers At Work – Yahoo Mail Endless Redirect Demonstration

So familiar with these 1996 Web-Technologies but not having the time to care in these rushing 201x days as this two minute documentary of an endless redirect-chain shows. Thanks to random URL...

View Article

Image may be NSFW.
Clik here to view.

XPath Null Byte Injection in PHP

Back in July this year, in Mitigating XPath Injection Attacks in PHP I was writing about how to properly quote a string in PHP’s Xpath 1.0. The code presented there was based on the assumption that the...

View Article

Image may be NSFW.
Clik here to view.

PHP turtles – Turtles all the way down

Some nice line-up for the know your language department: PHP turtles – Turtles all the way down. Tagged: PHP

View Article

Image may be NSFW.
Clik here to view.

Composer Clear Cache

It’s one of the best kept secrets of popular PHP dependency manager Composer: How to flush composers cache. You normally don’t need it, however if you create some composer.json and you want to put it...

View Article


Image may be NSFW.
Clik here to view.

Commandline Source Fixes Foo

From time to time I need to cleanup source trees. Today I needed to do that again, here are some command liners to get some work done. If you’re on Windows, all you need to do to get these running is...

View Article

Image may be NSFW.
Clik here to view.

Download NextGen Gallery WordPress Gallery with Wget

For a gallery download with Wget made by NextGen Gallery (at least this is what I read from then nggpage=2 query string), I had success with: wget -nc -nd -A '*.jpg' -R 'thumbs_*,index.html*' \ -I...

View Article

Image may be NSFW.
Clik here to view.

Learning OOP in PHP

Just linked: Learning OOP in PHP Tagged: OOP, PHP

View Article


Image may be NSFW.
Clik here to view.

Hide Folders in PhpStorm Project Pane

How can I hide a directory in a PHPStorm project, for example .sass-cache I just asked myself this morning. Searching online didn’t reveal it to me and there are numerious options that were close but...

View Article


Image may be NSFW.
Clik here to view.

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: gvfs-mime --set x-scheme-handler/http chromium-browser.desktop...

View Article

Image may be NSFW.
Clik here to view.

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

View Article

Image may be NSFW.
Clik here to view.

Linting PHP Files in Parallel on Travis

With PHP 7 around the corner here is a small tip how you can at least lint the code in your project to be PHP 7 syntax compatible. That allows you to easier obtain forward-compatible PHP code with...

View Article

Image may be NSFW.
Clik here to view.

History of the PHP date timezone settings warning

Now with the newborn elefant PHP 7 in the herd, there is a lift on the date timezone settings warning: it has just been removed. That means, it’s now that you need to take care in the server’s...

View Article


Image may be NSFW.
Clik here to view.

Make any Composer Command Segfault

This is from the shock your co-worker department: There is an easy one-liner to make any composer based project spit “Segmentation fault (core dumped)” regardless of the Composer command entered:...

View Article

Lazy Loading in PHP Object Composition

When it comes to nicely performing PHP scripts (yes in PHP these are all scripts as PHP code is run-time) there is a nice addition since PHP 7 named the Null coalescing operator which plays very well...

View Article


Image may be NSFW.
Clik here to view.

Using Assertions with (Legacy) PHP Code

While it was not much advised to use assertions (the assert PHP language construct) prior to PHP 7 due to the fact that it actually eval’ed a string’ed code, these days are gone. This is probably a...

View Article

Image may be NSFW.
Clik here to view.

Git – Set the Author Date to The Committer Date of a Recent Commit

Ah gosh that one commit has the author date just too far off, but if it would be the same as the committer date, that would be fine… Locate the commit when rebase interactively and mark for edit. Then...

View Article


Image may be NSFW.
Clik here to view.

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

View Article

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

View Article

Expect more from you Linux Command Line

Just stumbled over two nice written articles about command line usage on Linux by Robert Elder: Don Libes’ Expect: A Surprisingly Underappreciated Unix Automation Tool (Dec 2016; by Robert Elder) An...

View Article
Browsing latest articles
Browse All 53 View Live


Latest Images