skoop.dev

  • About
  • @skoop@phpc.social
  • The first BugHuntDay is coming!

    October 15, 2008
    bughuntday, php, phpbelgium, phpgg, zend framework

    Where the PHP TestFest focussed on writing tests (in that case for PHP itself), the BugHuntDay will focus on one specific project. More specifically, it is focussing on open bugs for the project, and fixing those bugs. By fixing those bugs, the project will be more stable and that will in turn help both the community and the users.

    The first project that will enter the BugHuntDay fray is Zend Framework. This popular PHP5 framework is one that everybody will know. Going through the JIRA installation of Zend Framework you’ll notice that there’s quite a few bugs in there. We plan to reduce the amount in there!

    So, if you’re in The Netherlands or Belgium, then come on over to Roosendaal to help us with the bughunting on november 8th!

    Oh, and for those who fear I may have turned in to the darkside… the next project that will be part of the BugHuntDay is symfony 😉

  • Distributing your project with Symfony embedded

    October 9, 2008
    freeze, php, portability, subversion, symfony

    I was a bit surprised earlier that freezing your project was not really advised anymore, it was the way I was used to working with my symfony 1.0 projects. However, with symfony 1.1 and some pointers I have found the new way of doing things to be very pleasant. So let me share it with you.

    There are several reasons for embedding symfony inside your project. On your development environment, a reason can be to easily enable symfony 1.0 and 1.1 projects to be developed side by side. On your production server, it can be because you have no control over centrally installed libraries. But moreover because the right setup can ensure you always have the latest version. Let me elaborate on how I do this.

    First of all, my central installation of symfony. It is a complete checkout of the symfony svn repository, which means I have the symfony 1.0, 1.1 and even 1.2 branch locally checked out for usage. However, I hardly use these. I only use them to create a new project. After that, it’s all up to Subversion.

    Creating a new project

    When I create a new project, I use the centrally installed symfony checkout:

    /path/to/symfony/repo/branches/1.1/bin/symfony generate:project newproject

    This will create my new project in the current directory. This is just the project skeleton, and it is still using the symfony that can be found in /path/to/symfony/repo/branches/1.1. 

    But first… Subversion

    My initial new project needs to be put into Subversion first though. I import my new project and create a fresh checkout to work with. This means I can start using some nice advanced features of Subversion for embedding symfony into my project.

    The vendor directory

    The location for our symfony installation will eventually be lib/vendor/symfony in our project. For this to happen, the vendor/ directory needs to be created and added to Subversion. So I do:

    mkdir lib/vendor
    svn add lib/vendor
    svn commit lib/vendor -m “added vendor directory”

    Now, my vendor directory is ready for adding symfony.

    svn:externals

    It is of course possible now to put a copy of symfony in the lib/vendor/symfony directory. And this works fine if you want it. The downside of this approach is that any symfony upgrade needs to be done manually, which can be a pain. 

    There are also strategies which keep a copy of the libraries inside the repository by using “vendor branches”. This is an option as well, yet it still keeps the library code locally where there should be no need for such a thing.

    Instead, in my setup, I use an svn:externals property to link the lib/vendor/symfony directory directly to the symfony repository. The advantage with this is that every time I do an svn up, I also get updates from the symfony repository, which may contain fixes for bugs that I could encounter. So, let’s set up this external link in our project repository. 

    svn propedit svn:externals lib/vendor

    This opens a new editor window of my favorite editor for such tasks (in my case vim, could be different for you). In this editor, I add a line:

    symfony http://svn.symfony-project.com/branches/1.1

    What this line says is that a directory named symfony [inside the lib/vendor directory, as specified in the svn propedit command above] needs to contain the contents of the 1.1 branch out of the symfony svn repository. In my case, I am using the branch, but if you want more stability, you could link to a release tag, for instance the current 1.1.4 release tag.This will give you the stability of a release, but not the fixes of recent commits. However, when a new release comes out, you can always simply use the propedit command again to switch to the next tag.

    Once I’ve created the svn:externals link to the external repository, I can simply do:

    svn up lib/vendor

    To get the latest version of symfony in my project. Do not forget to commit lib/vendor to get your svn:externals change propagated in your subversion repository.

    Switch to your new checkout

    This is all nice, but symfony is at this point still using the symfony installation I used to create the project. I need to point my project to it’s internal symfony checkout. Luckily, with symfony 1.1, this is very easy as it requires only a single change. This change needs to be made in our project configuration, which can be found in config/ProjectConfiguration.class.php. In this file, there is a require line that currently contains the hardcoded path to the location of the symfony installation that you used to create this project. We will need to change this to a relative location inside our project:

    require_once dirname(FILE) . ‘/../lib/vendor/symfony/lib/autoload/sfCoreAutoload.class.php’;

    I am using a relative path to the ProjectConfiguration.class.php file here. I could hardcode this path to our project installation of symfony, however, there is a good chance that the server path to your project will not be the same on your test, staging or production machines. Therefore, making the path relative will ensure that your project runs on any of these machines without altering the configuration file.

    The default styles and javascripts

    Now there is one more thing left. Your default assets. So far I have not created my virtualhost configuration yet, but I need to ensure that this works. I could create a symlink in the web/ directory to lib/vendor/symfony/data/web/sf but those don’t work well with Subversion (or other platforms). Best is to use the Alias option in your virtualhost configuration. Instead of having this point to my centralized symfony installation (as I used to do), I can now simply point it to the symfony in my project:

    Alias /sf /var/www/mynewproject/lib/vendor/symfony/data/web/sf

    And we’re done. The only thing you need to do when you deploy this to another server (and this should only happen once per server) is that the last step, the virtualhost configuration, is done for that specific server setup. Once that is done, you’re set.

    As with many of symfony’s features, this process is aimed at not duplicating the tasks you need to execute in your project. You only set this up once (in your development environment), and once that is done, you can deploy to as many systems as you want without having to do the same steps all over again. 

  • Speaking at PHPNW 2008

    September 25, 2008
    conferences, events, php, phpnw, refactoring

    Last tuesday at the dutch PHP Usergroup meeting I did this talk the first time, and even though I’m not completely happy with it, most of it went well. I will also do the same presentation at International PHP Conference in Mainz at the end of october, but for those that can not make it there, you have another chance now.

    PHPNW is looking to become an excellent conference. It is only one day, so no chance of becoming too tired thanks to late night hacking sessions and such. Also, it is organized not by a commercial party, but by a usergroup. I have nothing against commercial conferences, but for some reason usergroup-driven events usually are a bit more personal and fun. I am very much looking forward to it!

  • A good day

    September 25, 2008
    conferences, ibuildings, php, phpnw, symfony

    Symfony

    Today and yesterday as well I have been in Paris. I have been attending a symfony training there. As I am already experienced in the framework, I was able to help a bit with helping the other attendees. It was a nice experience, and I hope in The Netherlands we can also do symfony workshops. I really enjoyed myself.

    PHPNW

    As I announced earlier today (and I rarely post twice on the same day, so enjoy it 😉 ) one of my proposals for the PHPNW conference in Manchester has been approved. This means that on November 22nd, I will be doing my “The Power of Refactoring” talk there. Excellent news if you ask me.

    But to top it all…

    The best news (well, it was old news to me and my fellow Ibuildings colleagues, we heard it through an internal announcement a few days ago. However now we can finally talk about it!) by far was the fact that Cal Evans, one of the people I have the most respect for in the PHP community, will (very) soon be joining Ibuildings. He will be operating from the Utrecht office, a new office that I should also become part of sooner or later (since I live quite close to Utrecht, as opposed to the Vlissingen office which is a two hour one-way drive for me). Ain’t that cool or what?! I think having Cal lead the new Center of Expertise at Ibuildings will already be more than half the effort needed to make it a big success. And with the talented people we already have on board, that makes it a certain success. I am very much looking forward to be able to work with Cal. The only “downside” to this is that we now have two American employees at Ibuildings, and, it’s too crazy for words, they are *both* named Cal! I’d like to be there when they get introduced to eachother 😉

  • Relaunching the Dutch PHP usergroup activity

    September 18, 2008
    event, netherlands, php, usergroup

    We’re getting more active again by organizing bi-monthly meetings. The first one will take place next tuesday, september 23rd, in Amsterdam. We have a room at the Vrije Universiteit where, starting at 7:45PM, dutch (potential) professional PHP developers will be able to meet eachother, attend two presentations, enjoy some drinks, and win cool prizes!

    It feels great to get the usergroup back on the road again, and our momentum is building quickly! This is in a big part to the credit of the energy and inspiration we are getting from Felix and Mike, thanks guys! During the first meeting we will have a presentation by Bert Boerland (Drupal association) on the 42 advantages of Drupal, a presentation which I’m very curious about. Also, I will myself do a presentation on the Power of Refactoring, a presentation I am less curious about obviously but will be interesting nonetheless as it will be very similar (if not the same) as the presentation I’m doing at the International PHP Conference in october.

    Our next meeting will be in November, exact date to be announced during our meeting next tuesday. If you’re in the Netherlands, entrance to the meeting is free to both members of the usergroup and non-members! Just register by either put yourself in the upcoming.org event or sending a short e-mail to us through our website. I can’t wait!

  • Debugging with Symfony

    September 16, 2008
    conferences, php, presentation, slides, symfony, symfonycamp

    Debugging With Symfony

    View SlideShare presentation or Upload your own. (tags: phpsymfonycamp2008)

    My presentation went OK, even though I had the idea I perhaps spoke a bit too fast. This idea was confirmed by the fact that I finished too early. Not that that was such a big problem, because we were running a bit late with all sessions 😉

    SymfonyCamp itself was a great event again this year, kudos to DOP and especially Lambert and Peter for organizing it. Thanks to everyone who attended, presented and simply was there, I had a great time!

  • Center of Expertise

    September 11, 2008
    expertise, ibuildings, opensource, php

    Purpose of the Center of Expertise will be, and I will quote the announcement, amongst others:

    • Contributing to/supporting open source projects
    • Supporting user groups/communities
    • Organizing conferences/seminars
    • Developing training material
    • Forming and maintaining partnerships
    • Developing professional services

    This is a step not a lot of commercial organizations dare to make, and I am very proud to be working for one of the companies that has the balls to do it. Sure, there’s commercial stuff in there, but there’s also big investments in the open source community in there.

    Once again I am proud to work for Ibuildings, and am very happy that I made the choice to go for Ibuildings last year.

    Now, last but not least, if you want to work for such a cool company as well, there are still openings for (senior) developers at Ibuildings. Please feel free to contact me for more info or to pass on your information to HR. You’ll have to put up with working for the same company as me 😉 but you will also be working with lots of other cool people, like Ivo, Lorna, Mikko, Helgi, and lots of others. You’ll be working in a company that is a Zend and PHP|architect partner, that delivers high-quality software and services, and is already a big player on the PHP market with the potential to become much, much bigger. So contact me if you’re interested!

  • Beatstad festival, or: How I got to meet Live

    August 31, 2008
    beatstad, ed, live, music

    1994. A band called Live releases an album named Throwing Copper. I start hearing I Alone and Selling The Drama on the radio, and am instantly in love. My parents buy me the album for my birthday, and I’m sold. I find out another track I heard on the radio, Lightning Crashes, was actually also from this band even though I didn’t know it. Lightning Crashes ends up being one of my favorite songs ever.

    Ed and meIn 1997, I first saw them Live. Their concert in Paradiso was sold out big time, but the friend of a colleague of mine at that time breaks his collarbone in a bike accident and can’t go. I get a call with the question if I want to go. Hell yeah! What an awesome concert that was. 

    Over the years I’ve seen them play in a lot of places. Ahoy (many many times), Heineken Music Hall, we even went to Belgium once to see them play. But Paradiso was always and will always be their best place. Their “home venue”. In the past years, they’ve returned to Paradiso a few times as they also felt that to be one of the best places to play. Hell, in May, they played their twice, recording their first DVD.

    Last month, I joined the dutch fanclub magazine team of editors, so I could give something back for the years that I’ve been a member of the fanclub. And though I have yet to write the first piece for the magazine, I could already join the rest in a Meet & Greet that was arranged for us, after their concert at the Beatstad festival in The Hague. My wife was then lucky enough to win entry to the same Meet & Greet through the fanclub, so we could experience this together. And what an experience it was!

    I got to meet all of the members, shake hands with them, talk to them a bit. It is weird, and a bit funny, to meet the people you’ve been following for such a long time. All of them are quite nice, very friendly and laidback after such an energetic show. I was quite overwhelmed by it all, causing me to forget to get pictures with all of them. Except for Ed (see picture). At least I have some photographic evidence of my meeting them. But the memory is enough and will last. This was great!

  • Speaking at the International PHP Conference

    August 28, 2008
    conferences, germany, international php conference, php, refactoring

    I am quite excited about speaking at the International PHP Conference. It’s one of the biggest events on PHP right now, and the line up of speakers is impressive to say the least. I am very much looking forward to meeting everyone there.

    The session I will be doing at IPC is called ‘The Power of Refactoring’, and during this session I will support the idea of refactoring for speeding up your PHP development. It is still common that people think refactoring is doing the same thing twice, and that this means it takes more time to refactor than to write everything only once. I want to convince all visitors to my session that refactoring is actually a good idea, and might end up saving you time as well as improving the quality of your work.

    I am currently scheduled for the thursday afternoon. I hope to see you there!

  • Speaking at SymfonyCamp 2008

    August 24, 2008
    conferences, debugging, php, presentations, symfony, symfonycamp

    Having initiated the event last year, and it going on to become the success it was last year, I am very happy that my former employer Dutch Open Projects decided to organize SymfonyCamp again this year. The line-up for this year is quite impressive, with not only symfony founder Fabien Potencier there, but also Dustin Whittle (Yahoo!), Jonathan Wage (Doctrine), Ian Christian and Fabian Lange there. A lot of symfony community big shots, as I’d like to call them.

    I am very happy that my name was added to that list. My talk, titled Debugging with symfony – The Power Of The Web Debug Toolbar, will be zooming in on the web debug toolbar, one of the most underestimated features of the framework. I will be speaking on saturday 13th, but I’ll also be present on friday the 12th of course! I don’t want to miss this.

Previous Page
1 … 28 29 30 31 32 … 61
Next Page

skoop.dev

  • Bandcamp
  • Mastodon
  • Bandcamp