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.
hakre on wordpress » WordPress Licensing- GPL: This Deserves a Special Mention, II 17 Feb 2011
- b2/cafelog is GPL 3 Feb 2011
- WordPress Changes GPL License Text Again 15 Jan 2011
- Akismet Introduces GPL Version to WordPress (Updated 3x) 1 Jan 2011
- Kses, GPL, Copyright, Licensing and Disclaimer 30 Dec 2010
- WordPress, Copyright, Hello Dolly Lyrics, the GNU GPL and I 22 Dec 2010
- WordPress Licensing Issues – Plugins are GPL, Right? 15 Dec 2010
- WordPress Licensing Issues – On Showing License 6 Oct 2010
- Relicensing of IXR – The Incutio XML-RPC Library (Day 15) 8 Sep 2010
- WordPress Licensing Issues – NOOP (Day 8) 2 Sep 2010
- WordPress Licensing Issues – Summary (Week 1) 1 Sep 2010
- WordPress Licensing Issues – Submitting Code (Day 6) (Update 1x) 30 Aug 2010
- WordPress Licensing Issues – Progress (Day 5) 30 Aug 2010
- WordPress Licensing Issues – Why I care (Day 4) 28 Aug 2010
- WordPress Licensing Issues – the third day 28 Aug 2010
Wordpress Questions (and Answers)- How do I include custom fields in search? 22 May 2012
- How to correctly limit the content and strip HTML? 19 May 2012
- Can I have mutiple custom html editors for each page? 22 May 2012
- Space in between query values 22 May 2012
- WP text styles not coming through to actual post 22 May 2012
Linked
- Image_Graph
- WTFPL
- They killed the Failwhale
- Using Linux Screen for Session Management
- TkSQLite
- Looking back on Selling Gravatar to Automattic
- The JavaScript Trap
- SJ Hook Profiler
- DejaVu fonts
- The Law of Leaky Abstractions
- XHProf PHP Profiling Tool
- RIPS – A static source code analyser for vulnerabilities in PHP scripts
Archives
- May 2012 (7)
- 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 (9)
- HTML/CSS Code Smells (3)
- PHP Code Smells (3)
- Developing (6)
- Licensing (2)
- Hacking The Core (69)
- Wordpress Licensing (17)
- Hakre's Tips (63)
- Patched (5)
- Persona (5)
- Plugin Plugout (28)
- Enhancing Feeds (7)
- Theme-A-Licious (2)
- Pressed (269)
- Linked (101)
- Bugs and Features (11)
- Hashcat sightings (1)
- Number of the Day (3)
- PHP Development (34)
- PHP Library (7)
- Reports (23)
- Save the Date (7)
- Wordpress Releases (6)
- Linked (101)
- Surviving the Internet (21)
- Tools (68)
- Gates and Fences (3)
- PHP Development (23)
- PHP Frameworks (9)
- PHP Standards (2)
- PHP Template Language (5)
- Scripts (4)
- Webtools (5)
- WordPress Support (9)
- Uncategorized (30)
- Code Smells (9)
Music
Category Archives: The Know Your Language Department
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 Pressed, PHP Development, The Know Your Language Department, PHP Library
Tagged PHP, Encoding, Charset, UTF-8, Unicode, String, PHP 5.4, strlen, Nicolas Grekas
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. So … 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
2 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
16 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