hakre on wordpress
Hakre's devlog, thoughts and rants on wordpress on wordpress.com. And webdesign related. And web development related. My weapons of choice are Netscape 2.01, HTML, CSS, PHP and the Gif Construction Kit.
You can find out more on my codex page.-
Defective by Design - HTML5 is so awesome you can screw it now. Congratulations. Tell W3C: We don't want the Hollyweb! - Get educated and spread the word! -
Issue 2.1 is out! (; as print version so far, not yet on the website.) Take a look at conferences and events to get as well all back issues of Libre Graphics magazine with a discount or just order online. Wordpress Licensing – hakre on wordpress
- GPL: This Deserves a Special Mention, II
- b2/cafelog is GPL
- WordPress Changes GPL License Text Again
- Akismet Introduces GPL Version to WordPress (Updated 3x)
- Kses, GPL, Copyright, Licensing and Disclaimer
- WordPress, Copyright, Hello Dolly Lyrics, the GNU GPL and I
- WordPress Licensing Issues – Plugins are GPL, Right?
- WordPress Licensing Issues – On Showing License
- Relicensing of IXR – The Incutio XML-RPC Library (Day 15)
- WordPress Licensing Issues – NOOP (Day 8)
Wordpress Questions (and Answers)
- An error has occurred; the feed is probably down. Try again later.
Linked
- SJ Hook Profiler
- RIPS – A static source code analyser for vulnerabilities in PHP scripts
- The JavaScript Trap
- DejaVu fonts
- Using Linux Screen for Session Management
- TkSQLite
- XHProf PHP Profiling Tool
- Image_Graph
- The Law of Leaky Abstractions
- They killed the Failwhale
- Looking back on Selling Gravatar to Automattic
Archives
- April 2022 (1)
- November 2019 (1)
- October 2019 (2)
- April 2019 (3)
- February 2019 (1)
- December 2018 (1)
- October 2017 (1)
- September 2017 (1)
- August 2017 (1)
- March 2017 (1)
- January 2016 (1)
- November 2015 (1)
- March 2015 (2)
- February 2015 (2)
- January 2015 (1)
- June 2014 (2)
- May 2014 (1)
- December 2013 (2)
- November 2013 (1)
- October 2013 (1)
- September 2013 (3)
- August 2013 (3)
- July 2013 (6)
- June 2013 (1)
- May 2013 (1)
- April 2013 (2)
- March 2013 (2)
- February 2013 (12)
- January 2013 (5)
- December 2012 (2)
- November 2012 (1)
- October 2012 (1)
- September 2012 (2)
- August 2012 (7)
- July 2012 (8)
- June 2012 (8)
- May 2012 (10)
- April 2012 (11)
- March 2012 (7)
- February 2012 (3)
- January 2012 (8)
- December 2011 (6)
- November 2011 (1)
- October 2011 (7)
- September 2011 (3)
- August 2011 (4)
- July 2011 (7)
- June 2011 (7)
- May 2011 (6)
- April 2011 (7)
- March 2011 (16)
- February 2011 (29)
- January 2011 (11)
- December 2010 (10)
- November 2010 (11)
- October 2010 (9)
- September 2010 (15)
- August 2010 (23)
- July 2010 (9)
- June 2010 (33)
- May 2010 (26)
- April 2010 (20)
- March 2010 (8)
- February 2010 (11)
- January 2010 (26)
Wordpress
Ex-Blogroll
Categories
- Code Smells (11)
- HTML/CSS Code Smells (3)
- PHP Code Smells (5)
- Developing (21)
- Licensing (3)
- Hacking The Core (70)
- Wordpress Licensing (17)
- Hakre's Tips (94)
- Patched (6)
- Persona (5)
- Plugin Plugout (28)
- Enhancing Feeds (7)
- Theme-A-Licious (2)
- Pressed (351)
- Libre Graphics (1)
- Linked (149)
- Bugs and Features (19)
- Hashcat sightings (1)
- Video (1)
- Number of the Day (3)
- PHP Development (59)
- PHP Library (7)
- Professional Webdevelopers At Work (2)
- Reports (26)
- Save the Date (8)
- Wordpress Releases (6)
- Surviving the Internet (28)
- Tools (86)
- Gates and Fences (3)
- PHP Development (35)
- PHP Frameworks (10)
- PHP Standards (2)
- PHP Template Language (5)
- Scripts (6)
- Webtools (5)
- WordPress Support (9)
- Uncategorized (47)
- Code Smells (11)
Music
Category Archives: The Know Your Language Department
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 lesser known fact with … Continue reading
Posted in Developing, Hakre's Tips, PHP Development, PHP Development, Pressed, The Know Your Language Department, Tools
Tagged Assertion, Legacy Code, Legacy PHP Code, PHP, PHP 7, Phpuni, Testing, Unittests
Leave a comment
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 with the basic nature … Continue reading
Posted in Hakre's Tips, PHP Development, PHP Development, Pressed, The Know Your Language Department, Tools
Tagged Operator, PHP 7
Leave a comment
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 configuration that … Continue reading
Posted in Pressed, The Know Your Language Department
Tagged Date, PHP, PHP 7, Timezone
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 DOMDocument, PHP, SimpleXML, SimpleXMLElement, XML
Leave a comment
PHP turtles – Turtles all the way down
Some nice line-up for the know your language department: PHP turtles – Turtles all the way down.
Posted in Linked, PHP Development, Pressed, The Know Your Language Department
Tagged PHP
Leave a comment
The Greatest PHP Value
Just two days ago I asked a PHP-quiz-question in the chatroom on Stackoverflow, something along the lines: PHP: Which one is greatest? PHP has a comparison operator to compare if one value is greater than the other (>). Which one … Continue reading
Posted in Developing, PHP Development, Pressed, The Know Your Language Department
Tagged Array, Infinity, Object, Operator, PHP, Quiz
Leave a comment
Late Static Bindings in PHP Callbacks
No idea if this is ever useful, but just found this not documented in the PHP manual so far (and the Callbacks entry looks already chaotic so I don’t edit it right now): You can write callbacks of static class … Continue reading
SimpleXML Type Cheatsheet
A SimpleXMLElement can represent many different things, from an element, to a list of attributes or childelements. Sometimes it’s good to know how to find out, especially with the magic the extension comes with. The following is a table with … Continue reading
Posted in Hakre's Tips, PHP Development, Pressed, The Know Your Language Department
Tagged Attribute, Cheatsheet, DOM, DOMDocument, Element, Introspection, PHP, SimpleXML, SimpleXMLElement, XML
1 Comment
PHP Autoload Invalid Classname Injection
There are many ways to attack an application, many are working by injecting some malicious data hoping to trigger a deserved action in the end. Most of these are possible when input data is not properly sanitized. This can have … Continue reading
Posted in Features, Hakre's Tips, PHP Development, Pressed, The Know Your Language Department
Tagged Autoload, Autoloader, Classname, Injection, PHP, Regex
1 Comment
PHP MVC with Tom Butler
In the PHP chat a link got passed around (see “Deploying MVC on the web” below) and I thought it’s worth to link the multiple MVC related articles by Tom Butler. He is one of those persons who actually leave … Continue reading
Posted in Linked, PHP Development, Pressed, The Know Your Language Department
Tagged Design-Pattern, MVC, PHP, Sitepoint, Tom Butler
1 Comment
PHP UTF-8 String Length
If you’ve got an UTF-8 encoded PHP string (e.g. when working with DOMDocument) and you don’t want to rely on the mbstring extension to get it’s length, this can be solved with a simple regular expression (as the string does … Continue reading
Posted in PHP Development, PHP Library, Pressed, The Know Your Language Department
Tagged Charset, Encoding, Nicolas Grekas, PHP, PHP 5.4, String, strlen, Unicode, UTF-8
1 Comment
Improved handling of HTTP requests in PHP
Improved handling of HTTP requests in PHP Merci beaucoup Nicolas Grekas for compiling this in-depth! Read On: getallheaders available for FASTCGI in PHP 5.4 (18 Jul 2011)
Posted in Linked, PHP Development, The Know Your Language Department
Tagged HTTP, Nicolas Grekas, PHP, PHP. HTTP
1 Comment
Don’t tell nobody!: class IntegerstringArray IMPLEMENTS ArrayAccess
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 Configuration, Memory, Memory Limit, memory_limit, PHP, Runtime
Leave a comment
PHP: Empty() is the Opposite of a Boolean Variable
From the know your language department: It’s already written in the PHP manual, if we could only read it 😉 : empty() is the opposite of (boolean) var, except that no warning is generated when the variable is not set. … Continue reading
Posted in PHP Development, Pressed, The Know Your Language Department
Tagged Boolean, Empty, PHP
3 Comments
PHP: is_null() vs. NULL ===
From the know your language department: If you can, go with the identical comparison operator ===. That’s a good approach in PHP for various reasons. Only one example: could be written as: but it is about more than 14 times … Continue reading
Posted in PHP Development, Pressed, The Know Your Language Department
Tagged Benchmark, is_null(), NULL, PHP
7 Comments
PHP: Casting vs. intval()
Doing a cast like (int) $var instead of the intval($var) function is about 300% to 650% faster. I did some tests out of curiousity in #13317 and those are the results:
Posted in Hacking The Core, Pressed, The Know Your Language Department
Tagged #13317, Casting, Intval, Performance, PHP, Settype, Type, Type Juggling, Variable
19 Comments
End.
Finally I come to an end: The good thing about reading source-code written by others is that you can learn something. That can be things to do or to prevent. And sometimes you find something new. I did this week, … Continue reading