I was a Vi/ViM user for years. For several reasons I had to change to Emacs now and then. And then, I found this. I surrender. Emacs is just better. (And this addon is working even in plain text mode without graphics)
read more-
-
Registering an enum type in GLib, glib-mkenums magic
In this post I said I will get through the GLib Makefiles to add an enum type to GLib in a more sophisticated way.
In my other project, SWE-GLib I already used this method. The following two rules in Makefile.am create gswe-enumtypes.h and gswe-enumtypes.c.
read moregswe_enum_headers = headers-that-contain-enums …
-
List Git branches and their remote tracking branches side by side
I had a hard time following my own branches in a project. They got pretty numerous, and I wasn’t sure if I pushed them to origin at all. git branch -a can list all the branches, including remote ones, but, as my list grew too big, it was impossible …
read more -
First impressions of Windows 8
Many of you may know my commitment to Linux and Open Source Software. But this doesn’t mean I hate proprietary software like many others do. I think everything has its own place in the world, and this goes for software as well.
A few days ago I got my …
read more -
From Symfony to Django in two days
I was a Python hater for a long time, although I can’t really tell why. It didn’t fit in my mind, maybe. I was programming in BASIC, Pascal (none of these would come to my mind now, though), C, PHP, Perl, JavaScript, and different shell “languages” like awk …
read more -
SWE-GLib final release
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 …