Ever wondered what's hiding behind those average numbers in Pinba reports?
Well, so have we. I spent some time and came up with this result:
0.00: (612, 0.99%)
0.05: ** (2239, 3.62%)
0.10: **** (3401, 5.51%)
0.15: **************************************** (25431, 41.17%)
0.20: ************ (7806, 12.64%)
0.25: ******** (5823, 9.43%)
0.30: **** (3347, 5.42%)
0.35: ** (1505, 2.44%)
0.40: (1091, 1.77%)
0.45: **** (2951, 4.78%)
0.50: ** (1238, 2.00%)
0.55: (1019, 1.65%)
0.60: (746, 1.21%)
0.65: * (662,...
Wow, 2010 was quite a hectic year in the Midgard world. Here is a quick summary:
We held three Midgard Gatherings: one in Lodz, Poland in April, one in Tampere, Finland in July and one in Gothenburg, Sweden in November. In April we announced the new directions of the project.
The project completed a migration to Git (and GitHub) for Midgard2 and Midgard MVC, together with a change in the development process to facilitate a more decentralized way of working
The Long-Term Supported Midgard1 series 8.09...
Version control for source code is used by most development teams today. It gives you a history of all the changes you made, you can use it to share your code with others and you can work on an experimental feature without polluting the stable product. These are just some of the reasons why version control software is considered indispensable today. But where does our database fit in all this? How can we share the changes we want to make to the database with our colleagues, and eventually with our...
aols -R | grep ao:$a | sed -e as/:$//' -e as/[^-][^\/]*\//-/g' -e as/^/ /' -e as/-/|/'a - ls + grep + sed =Atree
Stick it in tree.sh, then alias tree='sh tree.sh', and ta-da! You can now see your directories as a graphical tree on any system!
The object-relational impedance mismatch makes persisting PHP objects in a relational database a daunting task. How about these new schemaless NoSQL databases? We will have a look at the problems involved with persisting PHP objects, and introduce design patterns that help solving these problems. Putting the patterns to good use, we will build a working PHP object persistence solution for MongoDB.
While it's not PHP specific, this recent article from Nat Pryce talks about dependency injection and how the pattern could be considered harmful in the wrong (framework's) hands.There are two aspects to Dependency Injection. Firstly, an object's interface should define the services that the object requires as well as those it provides. Secondly, the code that satisfies the requirements of an object by giving it a reference to the services of is collaborators is external to both the object and its...
Gonzalo Ayuso has a new post to his blog today looking at how he uses PHP classes to store configuration information for easier retrieval.In my last projects I'm using something I think is useful and it's not a common practice in our PHP projects. That's is the usage of a plain PHP's class for the application's configuration. Let me explain it. Normally we use ini file for configuration. [...] There are many standard options. Why I prefer a different one then? I like plain PHP classes because the IDE...
On the Zend Developer Zone there's a reminder about PHPBelenux - the conference is coming soon, so be sure to get your tickets now!The second annual PHPBenelux Conference is taking place on January 28 and 29 at the same location as last year: Hotel Ter Elst in Edegem (Antwerp, Belgium). We were able to secure an awesome schedule with three tracks, 1.5 days of conference and a tutorial morning. The schedule has been announced for most part of it and also the ticket sales are well underway.They've included...
On his ClickMagnate site Christopher Bledsoe has an interesting post looking at dependency injection (or, as he calls it "inversion of control") in PHP applications..NET and Java have some great IoC (Inversion of Control) containers but PHP hasn't gotten the same kind of dependency love (I know there are a few people who have tried to tackle this problem but I wanted something that worked with Zend Framework - my framework of choice). I also wanted the dependencies to be defined via the application.ini...
On the ServerGrove blog today there's a new tutorial posted showing you, step by step, how to install the bbPress software (from the folks that brought you WordPress.bbPress is a forum software developed by the same folks who created WordPress. It's a lightweight bulletin board system that seems to be gaining traction lately. bbPress runs really well on our shared hosting plans so we decided to put together a quick tutorial on how to install bbpress on our systems.Despite the description, the guide can...
Latest PEAR Releases:
Back when I was developing MDB2, I loved my unit tests to help me ensure that changes actually worked across different RDBMS (versions). It was also a great way to identify issues by having users run the test suite. Actually I guess I wasn't really "unit testing" since I was actually always running against a real database. Fast forward until today. In my current project we are aiming for 100% code coverage. Well we are not afraid of using @codeCoverageIgnore for super trivial stuff and yes I know that...
Job postings for the past week:Job Posting: Company52 Seeks Web Developer (Telecommute)
Job Posting: Moontoast Seeks PHP/Symfony Engineer, Contract (Nashville, TN)
Job Posting: Moontoast Seeks Senior PHP Engineer (Nashville, TN)
Last month, during PHP Advent,
gwoo wrote an interesting post on
Aspect-Oriented Design, or Aspect Oriented Programming (AOP) as it is more
commonly known. The article got me to thinking, and revisiting what I know about
AOP, Intercepting Filters, and Signal Slots -- in particular, what use cases I
see for them, what the state of current PHP offerings are, and where the future
But first, some background is probably in order, as this is a jargon-heavy post.
Continue reading "Aspects,...
On the Ibuildings techPortal today there's a video interview with a keynote speaker from last year's Dutch PHP Conference - Kevlin Henney.To kick off 2011 here's an interview with our inspirational keynote speaker Kevlin Henney - talking about development and how we can keep bettering ourselves!If the in-page player doesn't work, you can go directly over to the Vimeo site and watch it there. You can see other video interviews and podcasts from the Dutch PHP Conference 2010 in the dcpradio tag on the...
On the Java DZone.com section today there's a "which is faster" post comparing PHP, Java and Python. No, it's not quite what you're expecting - I'd suggest reading on.Sigh. What a difficult question. There are numerous incarnations on StackOverflow. All nearly unanswerable. The worst part is questions where they add the "in general" qualifier. Which is "faster in general" is essentially impossible to answer. And yet, the question persists. There are three rules for figuring out which is faster. And there...
In this new post to his blog Kevin Schroeder suggests that there's something even better than doing the typical caching inline (request, write to cache) - pre-caching.I just had an epiphany. I've talked about pre-caching content before and the benefits thereof before. But this is the first time I realized not only that there are benefits, but that doing it is BETTER than caching inline. Let me sum up... no, there is to much. Let me explain.He gives an example of how a typical application might cache -...
The SitePoint PHP blog has part three of their "create your own Twitter widget" series posted today. This is the last post of the series and involves a little cleanup on the data pulled from the Twitter API.In part 1 of this series, we examined the Twitter API, created a PHP TwitterStatus class, and imported the latest tweets in JSON format. In Part 2, we parsed the Twitter data, replaced links, and generated the complete HTML for our widget. In this last post, we'll cache our widget and translate tweet...
The second annual PHPB enelux Conference is taking place on January 28 and 29 at the same location as last year: Hotel Ter Elst in Edegem (Antwerp, Belgium). We were able to secure an awesome schedule with three tracks, 1.5 days of conference and a tutorial morning. We hope to see you again in Antwerp!
Matthew Weier O'Phinney has a new post to his blog today about making your Zend Server instance a bit more secure by taking the admin GUI and forcing it to be HTTPS-only (instead of the default HTTP & HTTPS).In light of the recent remote PHP exploit, I decided to update a couple servers I manage to ensure they weren't vulnerable. In each case, I had been using hand-compiled PHP builds, but decided that I'm simply too busy lately to be trying to maintain updates -- so I decided to install Zend Server....
Latest PHP Tweets