Slopjong
A geek discovering the World, Tech & Science
Latest Posts
Programming
Mac
Linux
WordPress
Hardware
Howtos
Nerd Trash
Blog Archives
0
Internal Server Error caused by a full disk
Posted on March 19, 2013
You might experience internal server errors from time to time. Internal Server Error You have a nil object when you didn't expect it! You might have expected an instance of Array. The [...]
Continue Reading
0
reCAPTCHA and this strange Uncaught TypeError
Posted on March 5, 2013
During some refactoring and code improvements in OpenSpaceLint (a validator for a specific json schema implementation) I replaced a Javascript module by some equivalent PHP code and for whatever reason [...]
Continue Reading
0
PHP: sort an array by key case-insensitive
Posted on February 26, 2013
In some situations one wants to sort an array by key but PHP's
ksort()
function sorts case-sensitive which is not always what you want. The result of ksort is an order like
A < C < b
instead of
A < b < C
. PHP 5.4.0 has introduced the
SORT_FLAG_CASE
flag to sort case-insensitive. This article shows two simple implementations to get the same functionalityIf in PHP 5.2 or 5.3 .
Continue Reading
0
Long URLs should not exceed 808.5 asdf
Posted on February 22, 2013
Recent browsers are able to process very long URLs of up to a few 100k characters, though the URL length is often limited by the web server. This leads to [...]
Continue Reading
0
Quick access to your scheduled posts or pages in WordPress
Posted on February 13, 2013
As a blog author or editor you might have experienced already the situation where you schedule posts to be published in the future. After a post has been scheduled it [...]
Continue Reading
« Previous Page
Next Page »