Category Archives: Technology

Mocking MongoCollection with Mockery

I have played around with the mongo extension to PHP lately and came across an issue when I was trying to write unit tests with PHPUnit for some methods using MongoCollection::insert(). Consider a class method looking like this: The Image … Continue reading

Posted in PHP, Technology | Tagged , , , , , , | Leave a comment

How to set up your own PEAR channel

If you want to make your projects available to users as PEAR packages you will most likely want a PEAR channel. This way users can install/upgrade/remove your packages by using the pear command. There are a couple of solutions available … Continue reading

Posted in PHP, Technology | Tagged , , | 3 Comments

ZendCon 2010 Day #1

A new approach to object persistence in PHP by Stefan Priebsch I went to this talk hoping to get some more information about MongoDB combined with object persistence. It turned out that the system Stefan was supposed to talk about … Continue reading

Posted in PHP, Technology | Tagged , | Leave a comment

ZendCon 2010 Tutorial day

On the tutorial day I attended Taming the Untestable Beast with Sebastian Bergmann and Stefan Priebsch, and then Caching on the Edge with Fabien Potencier. For me the second talk was the most interesting since I have done a good … Continue reading

Posted in PHP, Technology | Tagged , , , , , | Leave a comment

Attending ZendCon 2010

I’m attending ZendCon 2010 with some other guys from work and I’ll blog about the different talks I will be attending. Looking forward to it!

Posted in PHP, Technology | Tagged , , | Leave a comment

How to start (or stop) all torrents at once in rtorrent

I just upgraded rtorrent on a machine at home. After the upgrade I started it only to find all torrents marked as [CLOSED]. Instead of doing ^s on all of them I did ^x that starts a command prompt and … Continue reading

Posted in Technology | Tagged | 5 Comments

pcre.h: No such file or directory when installing APC (PHP extension)

After a complete reinstall of Ubuntu 10.04 on my laptop I had to recreate my development environment. Part of that included installing some extensions from PECL. When trying to install apc-3.1.2 I got the following error: /usr/include/php5/ext/pcre/php_pcre.h:29:18: error: pcre.h: No … Continue reading

Posted in PHP, Technology | Tagged , , , , , , , | 50 Comments