Few of you may know that I’m interested in astrology. About two months ago I have decided to create an astrologers’ software for the GNOME desktop. Since then, I have contacted Jean-André Santoni, who created a software called Astrognome some years ago. We exchanged some e-mails, and after several …
read more-
-
Installing OTRS in Fedora 18 with SELinux enabled
I’ve read somewhere in an OTRS installation howto that if you want to install OTRS, you will have to disable SELinux. Well, I won’t.
During the last few months, I have been using Fedora 18 with SELinux on all of my desktop machines and on my notebook, and …
read more -
Renaming a Symfony 2 bundle
Today I’ve realised that the name I gave to one of my Symfony 2 bundles should be something else. To rename a bundle, one must do four things (at least).
- Change the namespace from Vendor\OldBundle to Vendor\NewBundle in every PHP class (sounds like pain? It is…)
- Change …
-
Dvorak and me
A few months ago I have decided to switch to the Dvorak layout. After using QWERTY (well, QWERTZ, to be precise) for almost 17 years, it was a hard decision, but now I think it worthed the try. I started with the UK (Dvorak with UK punctuation) layout, and in …
read more -
Haversine in MySQL
Just insert it in your database, feed them two Google coordinates, and you get the distance in kilometres. If you happen to need it in miles, change the constant 12756.200 in the RETURN row to 7922.6 instead.
read moreDELIMITER $$ CREATE FUNCTION `haversine` (lng1 FLOAT, lat1 FLOAT, lng2 FLOAT, lat2 …
-
Fedora can’t change Active Directory password via kpasswd
I wanted to change my AD password today. As the AD is actually a Kerberos server, I was pretty sure that kpasswd will do the trick. However, kpasswd output looked like this:
read more$ kpasswd Password for polonkai.gergely@EXAMPLE.LOCAL: Enter new password: Enter it again: kpasswd: Cannot find KDC for …
-
Why I stopped using annotation based routing in Symfony today
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 …
read more -
mount: device or resource busy after enabling multipath
We have a heartbeat cluster with two nodes. It has been running for several months without problems. The shared storage is on an IBM DS3400, on which we have a large volume formatted with ext4.
Today I decided to reboot the active node for security reasons. So I’ve switched …
read more -
JMS\DiExtraBundle’s GrepPatternFinder – grep exits with status code 2 on Fedora 18
Yesterday I’ve upgraded my development machines from Fedora 17 to Fedora 18. Although it went well, my Symfony projects stopped working with a message like this:
read moreRuntimeException: Command "/usr/bin/grep --fixed-strings --directories=recurse --devices=skip --files-with-matches --with-filename --color=never --include=*.php 'JMS\DiExtraBundle\Annotation' '/var/www/html/gergelypolonkaiweb …
-
git rm —cached madness
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 …
read more