• Why I stopped using annotation based routing in Symfony today

    Gergely Polonkai
    Feb 28, 2013 :: 00:10

    I have read several opinions about routing configuration in Symfony. I stayed with annotation based routing as it was convinient for me to see the URL right above the controller action. This was because by just checking the URL, I remembered the controlling code, as they always were fresh ones. Well, until today.

  • git rm --cached madness

    Gergely Polonkai
    Jan 14, 2013 :: 22:38

    I have recently learned about git rm --cached. It’s a very good tool, as it removes a file from tracking, without removing your local copy of it. However, be warned that if you use git pull in another working copy, the file will be removed from there! If you accidentally put the configuration of a production project, and remove it on your dev machine, it can cause a lot of trouble ;)

  • Registering an enum type in GLib’s type system

    Gergely Polonkai
    Jan 6, 2013 :: 03:34

    I faced a problem in my GLib self-teaching project, wMUD today. I wanted to register a signal for a GObject, whose handler should accept two enum parameters for which I had to register a new GEnum type in the GObject type system. However, the documentation on this feature (thanks for pointing out goes to hashem on #gnome-hackers) is not… uhm… obvious. Making the long story short, I have checked with the GIO sources for an example, and using that, I have created this small, working chunk:

  • Changing the session cookie’s name in Symfony 2

    Gergely Polonkai
    Oct 13, 2012 :: 14:49

    I have a development server, on which I have several Symfony 2.x projects under the same hostname in different directories. Now I’m facing a funny problem which is caused by that the cookies Symfony places for each of my projects have the same name.