Weather from the Norwegians, sunset and sunrise
Friday, December 21st 2012, 11:12 GMT
I have recently acquired a Raspberry PI and as a hacking project I am using it as status screen in the living room. As part of this, it has a weather widget.
I use the weather data from http://yr.no ("the Norwegians") as they provide free weather data for the whole world. For each location, there is a nice XML file with the weather forecast.
The XML file has a forecast for several periods. See for example...
At work I needed to integrate some TYPO3 extension in our
Continous Integration setup that runs unit tests, builds API docs,
checks coding standards etc.
The extension was written by someone else, so it did not use our self-made
TYPO3 loading scripts for PHPUnit but the
You can't simply run
$ cd tests
$ phpunit .
but have to use the TYPO3 CLI script it provides:
$ cd /path/to/typo3
$ ./typo3/cli_dispatch.phpsh phpunit -c...
I'm busy. I'm an American living in the twenty-first century in the Northeast. You can go read the statistics, but I'm part of a group of hustlers. We get stuff done. I'm usually busy freaking out about things on my todo list. They usually break down into three categories: things to do at work, things to do for myself, and ways to improve my skills. The ordering is important here, because the same order in which things are ensured to get done, is the reverse in which things will be neglected. We all know...
(This is a response to Matthew Weier O'Phinney. Full disclosure: MWOP is both my friend and respected peer. Also, like MWOP, I am a voting member of PHP-FIG, and was directly involved in the recent LoggerInterface discussion among that group.) a Continue reading a'
The PHP development team announces the immediate availability of PHP 5.5.0alpha2. This release adds new features and fix some bugs from alpha1. All users of PHP are encouraged to test this version carefully, and report any bugs in the bug tracking system. THIS IS A DEVELOPMENT PREVIEW - DO NOT USE IT IN PRODUCTION! PHP 5.5.0 Alpha 2 comes with new features and improvements such as (incomplete list) : Support for using empty() on the result of function calls and other expressions, Systemtap support by...
aoThere are no solutions a only trade-offs.a - Thomas Sowell tl;dr: aoAs a library author it's tempting to bring in dependencies for various reasons, but as a library user it's frequently convenient to not have cascading dependency sets. a If a Continue reading a'
This is a post I've been meaning to write for a long time, and
one requested of me personally by Evert Pot during the
Dutch PHP Conference in June 2012. It details some observations I
have of php-fig, and hopefully will serve as a record of why I'm
not directly participating any longer.
I was a founding member of the Framework Interoperability Group, now
called "php-fig". I was one of around a dozen folks who sat around
a table in 2009 in Chicago during php|tek and started discussions
about what we could...
After a very successful 2012 edition, we are proud to announce PHPBenelux
Conference 2013. This event will take place on Friday January 25th and
Saturday January 26th 2013 in Antwerp, Belgium. We organize a community
oriented conference that is built around an excellent lineup and awesome
socials. Our schedule has been announced and tickets are available. Go to
http://conference.phpbenelux.eu/2013/ for more information.
Derick Rethans has a new post to his site detailing some of the "read" preferences that you can customize in the latest versions of the MongoClient functionality in the MongoDB PHP extension for replica sets and sharing setups.Read Preferences are a new Replica Set and Sharding feature implemented by most MongoDB drivers that are supported by 10gen. This functionality requires MongoDB 2.2. In short, Read Preferences allow you to configure from which nodes you prefer the driver reads data from. In a...
Anthony Ferrara has posted about his latest video tutorial in his "Programming with Anthony" series, looking this time at the topic of "Logic":This week's Programming With Anthony video is up! In it, we discuss the foundations of Boolean Logic and introduce some very interesting tools for analyzing logical constructs (including Truth Tables and De Morgan's Laws).You can view this latest video over on YouTube or get caught up on the entire series with the full playlist of this and past episodes.
I called the vote on the Logger Interface proposal last week. When the vote ends next week it will become PSR-3 (since it already collected a majority). The fourth recommendation from the PHP-FIG group, and the first one actually including interfaces/code, which is a great milestone.
You can read the proposal if you have not done so yet, but I wanted to discuss the goal and long term hopes I have in more details here.Where we come fromMost PHP frameworks and larger applications have in the past...
PHPMaster.com has published the second article in their working with Fuel CMS series (part one here). This time he focuses on working with modules and creating self-contained blocks of reusable functionality.In the previous article you learned about the basics of Fuel CMS: how to create views and simple pages. Most websites these days are not that simple though, they have a blog, a gallery, etc. In this part, I'll explain how Fuel CMS modules work and create a basic guestbook module to demonstrate.He...
Brandon Savage has officially released his book, "Do This, Not That" - a book targeted at beginners to the PHP language, trying to teach them best practices for some of the most common situations they might come across.Too many books on best practices read like a manual. They are dry, boring and cover topics that you don't care about. "Do This, Not That" is different. A collection of essays, it highlights those areas for which best practices are either not well known or not well defined. It offers clear...
The Atlanta PHP User Group has announced their January 2013 meeting, a loo at the "Current Trends of the PHP and Open Source Job Market" (from Ari Waller):The presentation will be an overview of the current employment market and outlook specifically for PHP developers (as well as other Open Source related Open Source trends), based on the current supply and demands in the market place, as well as career oriented topics via Q&A (Resumes, Interviews, and overall job hunting tips and strategies). Ari will...
Recent releases from the Packagist:jeremykendall/phpctagger (0.0.3, 0.0.2)
silverstripe/newsletter (0.3.0, 0.5.1, 0.4.1)
pu/underscore (0.0.8, 0.0.7, 0.0.6, 0.0.5, 0.0.4, 0.0.2, 0.0.1)
gregwar/slidey-standard (0.7, v0.7.1)
Here's what was popular in the PHP community one year ago today:Reddit.com: What everyone should know about strip_tags()
Nelm.io Blog: Composer: Part 2 - Impact
DZone.com: Social Comparison of PHP Frameworks
Leasewebs Labs: Painless (well, less painful) migration to Symfony2
Joshua Thijssen's Blog: php 5.4 + htrouter: Your personal Apache 2.2 compatible server
Zend PHP Certification Blog: PHP Sorting Functions
Andrew Perkin's Site: Cakephp Video Tutorials (Authentication)
Smashing Magazine: Create A...
The PHP development team announces the immediate availability of PHP 5.4.10 and PHP 5.3.20. These releases fix about 15 bugs. Please note that the PHP 5.3 series will enter an end of life cycle and receive only critical fixes as of March 2013. All users of PHP are encouraged to upgrade to PHP 5.4.
For source downloads of PHP 5.4.10 and PHP 5.3.20 please visit our downloads page, Windows binaries can be found on windows.php.net/download/.
The list of changes are recorded in the ChangeLog.
Every API has an visible, an invisibile and a hidden part. The visible part is obvious: public methods and properties but also constants and parameter values. That's the most visible part to any client (read: user) of your API. The invisible part is everything private, you can't really see it and - more important - you can't use it (except if you resort to reflection). The hidden part consists of all the protected symbols, as you can't really see them until you extend a class. The other hidden part are...
The Three Ugly Sisters are three classes of attacks which I've tried to highlight in 2012. You might also know them as Cross-Site Scripting, XML Injection, and Insufficient Server-Side Transport Layer Security (or Peerjacking). These three attacks are particularly ugly for PHP programmers, because each, in its own way, has a common advantage for attackersa-aPHP does not defend against them automatically, and they are poorly documented and poorly understood by programmers. This potent mix of default...
The PHP development team announces the immediate availability of PHP 5.4.10 and PHP 5.3.20. These releases fix about 15 bugs. Please note that the PHP 5.3 series will enter an end of life cycle and receive only critical fixes as of March 2013. All users of PHP are encouraged to upgrade to PHP 5.4.For source downloads of PHP 5.4.10 and PHP 5.3.20 please visit our downloads page, Windows binaries can be found on windows.php.net/download/.The list of changes are recorded in the ChangeLog.
Latest PHP Tweets