a programmer's best friend :: the blog of pat, the dog |
Wednesday, February 25. 2009patTemplate bits and pieces
Well, the code base of patTemplate is pretty majure and new releases quite seldom. Still patTemplate is alive and in heavy use. Working with patTemplate in larger projects always includes writing custom extensions like variable modifier and template functions for it. Every now and then, modules for general use appear and I usually add them to patTemplate's code base. This way patTemplate grows little by little, even if it's core stays the same.
Here are some variable modifiers that were recently added: Calc (like a pocket calculator), Dateformat, Numberformat, Sizeformat (displays human readable file sizes) and Truncate (makes verbose text brief). This week Torben Egmose provided a template caching driver based on famous Memcache. Now there are five cache backend modules available: File, eAccelerator, Memcache, MMCache and XCache. As mentioned above, there are no major changes, but as usual, it those little bits and pieces that make life enjoyable. Tuesday, January 20. 2009mistralys.eu Job offer
Under normal circumstances I would not post this here, but I am getting desperate - and I thought a job offer is infinitely more useful if not as entertaining than the recent "seven things" chain postings
My company, Mistralys, is based on the southern mediterranean french coast and offers services to german companies as well as local and nationwide subcontractors and companies. Due to the amount of project requests piling up, it is time to grow. I need someone who can work autonomously, and who has a foot both in PHP development and design. To keep things simple, these are the main job requirements: - Good knowledge of german (at least read & write it) - Very good knowledge of Photoshop and Web-based design - Good all-round PHP knowledge, including object-oriented development - Be available full-time (or part-time in the beginning) I am aware that moving to france is not going to be an option for many (although that would be ideal). Working remotely from your home is a possibility, as long as you are available during CET working hours (roughly 9am to 17pm). NOTE: freelancing does not mix well with the projects I work on, as I often get requests that have to be finished on very short notice (sometimes within a few hours). This is why I avoid working with freelancers, and discourage freelancers applying for the offer. I have a full job description on the website, feel free to read up on all the details. If you want to apply or know more, please contact me at s.mordziol at gmail.com with your portfolio and salary expectations. Comments welcome, as always. Regards, Sebastian Mordziol. Saturday, July 19. 2008patError 1.2.0 released
After a year of inactivity in our blog, there are finally some news worth mentioning. Some minutes ago, I release version 1.2.0 of patError. Although this release contains no new features, it might be interesting for any of you using patError, as I adjusted the code to PHP 5. When using this new version, you will get not E_NOTICE or E_STRICT warnings any more as it has been the case with previous releases. There will also be no E_DEPRECATED errors, when you make the switch to PHP 5.3.0. As usual, you can get the release from our PEAR channel.
I decided to port patError to PHP 5 while writing the second edition of my PHP Design Patterns book, which covers patError as a depency of patTemplate. Saturday, July 14. 2007Conference-ish Autumn
Today Timo told me that his session proposal got approved! Yippie! We both applied for the AJAX in Action in Frankfurt November this year.
I submitted a session about some essential JavaScript tricks for modular sites that make extensive use of Web 2.0 technologies. I planed to focus on real live examples - stuff that we implemented at My Nero, in other words sneak into a big AJAX site's internals . Unfortunately it got rejected However I'm looking forward to see Timo's session about a flexible and easy to use AutoSave Framework. Adapting his thoughts, you can add the AutoSave feature to any form on a web-site easily. As I know some internals about his implementation, I can tell you that he solved some big issues. Though he focused on reusability and came out with a bunch of really nice lines of code. It's going to become a very interesting conference this autumn. Wednesday, June 20. 2007Testing FIT
I just uploaded the package Testing_FIT to PEAR. Testing_FIT is the PHP and pearish version of Ward Cunningham's FIT http://fit.c2.com/. As such it provides an easy to use framework for acceptance software tests.
pear install Testing_FIT-beta Simply install the PEAR package Testing_FIT browse the examples and write your own test classes. Of course, the PHP version of FIT provides the four basic fixtures: Action-, Column-, Row- and Primitve-Fixture. Also there is a Summary-Fixture that shows some statistics. You'll see, writing tests with this PEAR package is a piece of cake. Besides, the basic idea of FIT - using HTML documents providing test data will convince you. Monday, June 18. 2007I18n and such
In lack of a better idea, I founded a new PAT Package: patI18n. So far this package is just a draft and only exists in the SVN repository. As you might guess, patI18n is an abstraction layer for translating issues. Therefore it provides nearly the same interface as the famous GNU Gettext. Still, the actual translation is done by a chain of modules - this way everything is possible and the design stays open to new ideas.
Of course, I didn't start patI18n out of the blue. Last year, I branched patForms to use Gettext for translation instead of the proprietary internal solution. Since then, we have to maintain two branches of patForms. Yesterday I mended the implementation of patForms' gettext branch to use patI18n. This way patForms got rid of all I18n functions (like setLocle) and stuff. My first tests show that everything works fine - still this code is experimental. However you are invited to check out the new versions and give it a go. Download the sources from our subversion server: patI18n: svn co http://www.php-tools.net/svn/patI18n/trunk/ patI18n patForms: svn co http://www.php-tools.net/svn/patForms/branches/gettext/ patForms View the source code of patI18n at gERD's playground. Saturday, June 2. 2007patTemplate 3.1.0 stable released
After two years of development we finally released patTemplate 3.1.0 as a stable version. The changes since the last beta release are minimal. You can read about all changes since the last stable release in the changelog. patTemplate can be downloaded from our PEAR channel server or easily installed via the PEAR installer:
$ pear channel-discover pear.php-tools.netMore information can be found the the patTemplate development site. Friday, February 16. 2007Stubbles Blog is live! Yesterday, the Stubbles project got its own blog at www.stubbles.org.Stubbles is a new framework for PHP 5.2 which focuses on clean OO design, the use of patterns and ports some features from the langauges commonly referred to "enterprise languages" to PHP. If you are looking for new ways to develop your PHP applications, you should definitely take a look at the stubReflection package, which brings Java Annotations to PHP. The next issue of the German PHP Magazin will feature an article, that shows how to use this package. The blog will feature tutorials, thoughts on Stubbles and surely rants on PHP itself. So it will be definitely worth the read. Stubbles currently is developed by Frank Kleine, Nico Steiner and Stephan Schmidt. The design of the Stubbles logo and the Stubblog design have been created by Sebastian Mordziol of Mistralys, who is also responsible for the PAT design and several PAT packages. Sunday, February 11. 2007PHP Programming with PEAR reviewedThe review is very positive and what's especially nice about it, is, that he liked Chapter 4 (Web services) the most and this is one of the chapters that I wrote. If you are interested in buying a copy of the book, you can find more information at the book website, which has been set up by Aaron. And of course you can directly order it at Amazon.com. Thursday, February 1. 2007patTemplate Documentation in Bahasa Indonesia
We are vary proud to hear that there are patTemplate enthusiasts around the world. Actually, we just learned thet there is a patTemplate Documentation in Bahasa Indonesia available. Thanks a lot for translation!
patTemplate Documentation in Bahasa Indonesia
We are vary proud to hear that there are patTemplate enthusiasts around the world. Actually, we just learned thet there is a patTemplate Documentation in Bahasa Indonesia available. Thanks a lot for translation!
Tuesday, December 12. 2006Nightly builds for XJConf availableWhile the project started as a 1:1 port of the Java version, we are constantly adding new features as well as unit tests. If you need a flexible solution to parse XML documents and create PHP data structures, you might give XJConfForPHP a try. Tuesday, October 17. 2006FIT for PHPFIT stands for Framework for Integrated Test (See: FIT Wiki) realices acceptance tests with heavy use of HTML documents. Those documents do not just contain the usual blah-blah but hard facts. The factsare actually stored in (HTML) tables. This is where FIT - respectively PHPFIT - comes in. The FIT knows which testing class must be executed for a particular table and which function to call to calculate the results of a specific cell and the framework makes it very easy for you to implement concrete test-classes. Also FIT simply handles HTML documents. As such they can be viewed a common browsers and even created with Word-a-like editors. Hence FIT goes far beyond what traditional unit testing offers (FIT is not meant to replace unit-tests) and may enrich your next project. Hopefully PHPFIT will be available as official PEAR package. Unfortunately I lost my password. So I was not capable to push the proposal any further Thursday, October 12. 2006PHP programming with PEAR publishedThe book is available for order from Amazon.com or if you are living in Europe you might as well order it from Amazon.de Monday, October 9. 2006PHP Design Patterns publishedPHP Design Patterns is published by O'Reilly and introduces the reader to the world of patterns by providing practical examples. The patterns used in the book include simple patterns like the Singleton, Subject/Observer or Composite, but also more complex patterns like the Intercepting Filter or Event-Dispatcher patterns. If you never used PHP5 for object-oriented development, you might also finde the short introduction to PHP5's new features, including interceptors, SPL and exceptions, worth reading. All patterns covered in the book can be applied to web applications, and to stay on the practical side of development, PEAR, Propel and patTemplate are used in some examples. So if you are capable of understanding German and interested in learning more about patterns and software design in general, feel free to buy it at Amazon.de. More information and code examples can be found at the book website or at O'Reilly's online catalog. If you're still not convinced to buy the book, it might help, that the book has been published as a hardcover so it will last longer than most other books |
php_network_getaddresses: getaddrinfo failed: Name or service not knownphp_network_getaddresses: getaddrinfo failed: Name or service not known |