Whitewashing.de http://www.whitewashing.de Whitewashing is the blog of Benjamin Eberlei and covers topics in computer science, databases and web-development. en-en All contents are copyright 2007-2010 by their respective authors. 2010-03-10 Todays Links - 2009/01/17 Edition Dave78: DOMDocument::LoadXML Extra content at the end of the document in Entity
Everyone likes weird error-messages and this particular DOMDocument message is annoying, and Google only has people complaining not explaining it. Luckily this blog entry knows whats behind it.
Link to extern page: http://www.dave78.com/2008/02/19/domdocumentloadxml-extra-content-at-the-end-of-the-document-in-entity/

]]>
Computer Science Benjamin Eberlei <kontakt at beberlei dot de> 2009-01-17 2009-01-17
Todays Links - 2008/12/17 Edition 5 simple ways to troubleshooting using strace
 
Link to extern page: http://www.hokstad.com/5-simple-ways-to-troubleshoot-using-strace.html

]]>
Linux Benjamin Eberlei <kontakt at beberlei dot de> 2008-12-17 2008-12-17
Todays Links - 2008/12/06 Edition jQuery Autocomplete with JSON backed remote data
Getting the jQuery Autocomplete UI widget to work with json backed remote data is quite a hazzle. This blog post shows you how it somehow goes. More on that from me on a later date.
Link to extern page: http://www.it-eye.nl/weblog/2008/08/23/using-jquery-autocomplete-with-grails-and-json/

Padraic Brady: The-M-in-MVC-Why-Models-are-Misunderstood-and-Unappreciated
This article on the mvc debate criticizes the Zend Framework in particular for allowing controllers to become huge monsters and pseudo models and argues for a fat model, small controller architecture in MVC applications.
Link to extern page: http://blog.astrumfutura.com/archives/373-The-M-in-MVC-Why-Models-are-Misunderstood-and-Unappreciated.html

Defying Classification: Removing The Model-View-Controller Straitjacket
And the MVC debate again, this time bashing django in particular and all other web frameworks implictly. Models in most PHP frameworks don\'t exist, they have to be programmed by you.
Link to extern page: http://www.pointy-stick.com/blog/2008/11/30/removing-model-view-controller-straitjacket/

]]>
Webdesign Computer Science Computer Science Benjamin Eberlei <kontakt at beberlei dot de> 2008-12-06 2008-12-06
Todays Links - 2008/09/18 Edition RheinholdWeber: 40 Tips for optimizing your php code
A bunch of well known and some rather unknown hints on how you can optimize your PHP code if that is desired, but remember to think about premature optimization.
Link to extern page: http://reinholdweber.com/?p=3

Particletree: Object Oriented PHP Memory Concerns
Very good article on how PHP Objects use memory and which behaviour you want to circumvent and why you don\'t want to use objects all the time (keyword: PHP is not Java). The comments gave me a great idea on using Iterators for database resultsets that allow to run over your results but return objects without using more memory than the traditional array solution.
Link to extern page: http://particletree.com/notebook/object-oriented-php-memory-concerns/

]]>
PHP PHP Benjamin Eberlei <kontakt at beberlei dot de> 2008-09-18 2008-09-18
Todays Links - 2008/09/09 Edition Nettuts: 10 Principles of the PHP Masters
Overstated headline, but certainly a nice article to read through.
Link to extern page: http://nettuts.com/articles/10-principles-of-the-php-masters/

Devolio: Filtering with PHP Internal functions
PHP offers a range of very powerful filtering functions. You dont have to use a Frameworks Capacity for this functionality.
Link to extern page: http://devolio.com/blog/archives/413-Data-Filtering-Using-PHPs-Filter-Functions-Part-one.html

]]>
PHP PHP Benjamin Eberlei <kontakt at beberlei dot de> 2008-09-09 2008-09-09
Todays Links - 2008/09/05 Edition svn:keywords Id - Replace during svn upload
I havent put much thought into how inclusion of revision information is injected into files during svn updating. This link to the svn docs describes the procedure.
Link to extern page: http://svnbook.red-bean.com/en/1.0/ch07s02.html

]]>
Programming Benjamin Eberlei <kontakt at beberlei dot de> 2008-09-05 2008-09-05
Todays Links - 2008/08/30 Edition Zend Framework Eclipse PDT Extensions
I found this link in the #zftalk Channel on Freenode. Its a young project but will hopefully end up in PDT as a great extension for Zend Framework development.
Link to extern page: http://code.google.com/p/pdtextensions/

]]>
PHP Benjamin Eberlei <kontakt at beberlei dot de> 2008-08-30 2008-08-30
Todays Links - 2008/08/26 Edition Care2x: PHP PECL Inclued with Ubuntu 8.04
Describes how to get the PECL Inclued library running with your Ubuntu 8.04 system. Missing the hint that you have to install the php5-dev package for phpize to be existent. Otherwise great!
Link to extern page: http://care2x.wordpress.com/category/general/

]]>
PHP Benjamin Eberlei <kontakt at beberlei dot de> 2008-08-26 2008-08-26
Todays Links - 2008/08/25 Edition YSlow - Extension for Firebug
Yet another extension for Firefox, but YSLow rates any websites request/response optimality based on different categories like request number, compression, content-distribution-network usage and many more. Its really nice to get a fast overview on how you could optimize website performance.
Link to extern page: http://developer.yahoo.com/yslow/

Rasmus Lerdorf: Simple is Hard
I attended FROSCON this weekend where Rasmus Lerdorf gave this Keynote talk about how Frameworks make PHP ever more and more complex and how that is not a good development.
Link to extern page: http://talks.php.net/show/froscon08/

Dasprids: Getting a Password Hidden from Stdin with PHP CLI
I always wanted to have the possiblity to prompot a user for a password, inputted silently on the shell in PHP. This is working for Linux and uses shell_exec, but is otherwise great. Thank you very much Dasprid!
Link to extern page: http://www.dasprids.de/blog/2008/08/22/getting-a-password-hidden-from-stdin-with-php-cli

]]>
Webdesign PHP PHP Benjamin Eberlei <kontakt at beberlei dot de> 2008-08-25 2008-08-25
Todays Links - 2008/08/02 Edition SpotSec: Camel Cased Controller Action Naming in ZF
How does Camel-Casing in Actions and Controller Names function in the Zend Framework? A short description.
Link to extern page: http://www.spotsec.com/blog/archive/2007/12/8/camel-cased-controller-action-naming-and-sub-controllers/

SOS Blog: Writing a Django Template Widget With Dojo Data Stores
Quite complex/complete tutorial on the Dojox DTL parser.
Link to extern page: http://shaneosullivan.wordpress.com/2008/03/03/writing-a-django-template-widget-with-dojo-data-stores/#more-91

MysqlPerformanceBlog: Quick Tip - SQL Batches using Maatkit and mk-find
This tip is awesome. I use maatkit for most of my DB administrating works too, but never bothered to look up all the functionality, essentially missing how useful mk-find is.
Link to extern page: http://www.mysqlperformanceblog.com/2008/07/30/quick-tip-how-to-convert-tables-to-innodb/

Dojo Forum Response: Simple Ajax+JSON Example
Why can\'t I find something this simple in the documentation (or why is it hidden so deep in the documentation that I cannot find there by a few clicks?)
Link to extern page: http://dojotoolkit.org/forum/dojo-core-dojo-0-9/dojo-core-support/dojo1-0-ajax-example#comment-8893

]]>
PHP Computer Science Databases Computer Science Benjamin Eberlei <kontakt at beberlei dot de> 2008-08-02 2008-08-02
Todays Links - 2008/07/30 Edition Bash Code Snippet: Recursively Remove all .svn directories
This is probably an all time favorite of me, I tend to forget this one and Eclipse does not seem to do this automatically, when you copy large parts of code that is version controlled between projects.
Link to extern page: http://codesnippets.joyent.com/posts/show/104

IBuildings Blog: Dependency Injection and ZF Controllers
Very good article about composition in object oriented programmming and why dependency injection rather than Singleton or Global retrievial of objects is a good method to unit-test classes that depend on complex sub-objects through composition. I came accross the problems described several times during the little unit-testing experience I gathered, showing its subjective importance.
Link to extern page: http://www.ibuildings.com/blog/archives/1181-Dependency-Injection-and-Zend-Framework-Controllers.html

]]>
Linux PHP Benjamin Eberlei <kontakt at beberlei dot de> 2008-07-30 2008-07-30
Todays Links - 2008/07/23 Edition Quality Assurance in PHP
Sebastian Bergmans OSCON Presentation on PHP Quality Assurance. Very complete half-day tutorial with about 150 slides that has quite a lot of information on Testing in PHP.
Link to extern page: http://www.slideshare.net/sebastian_bergmann/quality-assurance-in-php-projects-522590?src=embed

]]>
PHP Benjamin Eberlei <kontakt at beberlei dot de> 2008-07-23 2008-07-23
Todays Links - 2008/07/22 Edition OSCON: PHP - Architecture, Scalability, and Security
Rasmus Lerdorf\'s OSCON presentation on current Web and PHP issues.
Link to extern page: http://talks.php.net/show/oscon08/

]]>
Computer Science Benjamin Eberlei <kontakt at beberlei dot de> 2008-07-22 2008-07-22
Todays Links - 2008/07/02 Edition Yammy! Migrations for CakePHP
Some months ago I made some reseach into how you would best acompany your SVN code repository with the SQL schema changes that come with the code. Yammy! is a method to put your schema evolvement into yaml files, sadly its only for CakePHP.
Link to extern page: http://www.4webby.com/blog/posts/view/3/yammy_db_to_yaml_shell_migrations_made_easy_in_cakephp

Developing With Style: It cost over 1.4 million to develop CakePHP
Rant on Ohlohs estimation of the CakePHP effort. Read my comment on how Ohloh gets it wrong using Cocomo Model estimations from the late 70s of huge business projects written in Fortran, Assembler, Cobolt and C.
Link to extern page: http://developingwithstyle.com/2008/06/05/it-cost-over-14-million-to-develop-cakephp

]]>
PHP PHP Benjamin Eberlei <kontakt at beberlei dot de> 2008-07-02 2008-07-02
Todays Links - 2008/06/16 Edition codecaine: Analysis of coupling within Zend Framework
Very nice article on the \"loose coupling\" topic of the Zend Framework with a really cute map of all dependancies of the Frameworks components based on include and require inspection.
Link to extern page: http://codecaine.co.za/posts/analysis-of-coupling-within-the-zend-framework

Destiney\'s Reality: Zend Framewok \"Web 2.0 Framework\" my ass
Lots of criticism of the Zend Framework and its loosly based on each other policy regarding classes. Also some very good points on \"too complex\" implementation and of the Zend_Db components in general.
Link to extern page: http://destiney.com/blog/zend-framework-web-2-0-framework-my-ass

Norm 2782: PHP ... what to say?
I did some reading these last days and came across some interesting articles, including this one regarding the current state of the PHP language and where it should be going. Discussion of PHP6 features vs what should be included...
Link to extern page: http://www.norm2782.com/2008/05/27/php-what-to-say/

]]>
PHP PHP PHP Benjamin Eberlei <kontakt at beberlei dot de> 2008-06-16 2008-06-16
Todays Links - 2008/05/17 Edition HTML Retro Coding
Speaking in favor of good old html coding (in german).
Link to extern page: http://www.vorsprungdurchwebstandards.de/theory/retro-coding/

]]>
PHP Benjamin Eberlei <kontakt at beberlei dot de> 2008-05-17 2008-05-17
Todays Links - 2008/05/08 Edition Zend_Layout Introduction Video
Short introduction to Zend_Layout via Flash-Video.
Link to extern page: http://www.idea22.com/video/details/id/2008030910845419130

]]>
PHP Benjamin Eberlei <kontakt at beberlei dot de> 2008-05-08 2008-05-08