Jan252012

Firefox: This address is restricted

This address uses a network port which is normally used for purposes other than Web browsing. Firefox has canceled the request for your protection.

This message appears if you want to access a website on a non-standard port, e.g. http://example.com:42 .

Being a developer you might run in your non-productive environment a web server listening on such a port. As a workaround you can tweak your firefox by adding the configuration network.security.ports.banned.override to your preferences.

To do so go to about:config, klick on the “I’ll be careful, I promise!” button and right-click any preference. In the appearing context menu click New > String and add the new preference

network.security.ports.banned.override

with a value “1-65000″ or whatever ports you want to access. They don’t describe blocked ports but ports that are considered to be not banned.

I recommend to create a new firefox profile for development and testing purpose and that you only open ports that you really need.

DeliciousDiggTechnorati FavoritesRedditLinkedInFacebookSpurlTwitterWebnewsYiGGMySpaceYahoo BookmarksFriendFeedGoogle BookmarksLiveJournalShare
Jan172012

Arch Linux: Pacman 4.0 upgrade breaks the system

Since yesterday, January 16th, pacman 4 is in the core repository and upgrading to it breaks the system.

If you can wait with any updates, wait. If you must update some packages, only update those which you need to update right now and which don’t affect the system.

To exclude the packages which surely breaks your system, edit your /etc/pacman.conf and add to IgnorePkg all packages related to any package manager stuff and all packages you know that they break something.

IgnorePkg   = pacman package-query yaourt libarchive

If you encounter trouble with other packages, let me know.

If you updated libarchive for whatever reason pacman stops to work while it outputs this error message:

pacman: error while loading shared libraries: libarchive.so.2: cannot open shared object file: No such file or directory

To fix this you have to create a symlink pointing from libarchive.so.2 to libarchive.so.12.0.3. Adapt the version number of according to your installed archive lib. Check this with

ls -l /usr/lib | grep libarchive.so

Now pacman should work again.

Update (Jan 21st):
On my arm-based Archlinux everything went fine when upgrading and generating the keyring. On my desktop I’ve got to fiddle with some configurations but it seems that nothing bigger goes wrong today. Maybe I was completely wrong with my statement “pacman 4 breaks the system” but libarchive really made trouble days ago so it wasn’t a bad choice to wait a little bit.

DeliciousDiggTechnorati FavoritesRedditLinkedInFacebookSpurlTwitterWebnewsYiGGMySpaceYahoo BookmarksFriendFeedGoogle BookmarksLiveJournalShare
Jan122012

Qt: Q_OBJECT macro

I always thought that every class subclassing QObject must contain this macro but this is not completely right. More precisely it is only required if meta-object code has to be produced by the moc tool in order to use the signals and slots mechanism, the run-time type information, the dynamic property system and translating features for internationalization.

Beside that the methods metaObject() and inherits() from QObject as well as className() and newInstance() from QMetaObject also require it.

However the Qt developers strongly recommend that Q_Object is used by every subclass of QObject no matter what of the above features they actually use, also if none is used.

DeliciousDiggTechnorati FavoritesRedditLinkedInFacebookSpurlTwitterWebnewsYiGGMySpaceYahoo BookmarksFriendFeedGoogle BookmarksLiveJournalShare
Jan082012

Linux: My friend X11 …

I’ve been really very happy with my linux …


… until I had to fiddle with X11 again. I really dislike to configure X11, this brings me down to zero every time.

DeliciousDiggTechnorati FavoritesRedditLinkedInFacebookSpurlTwitterWebnewsYiGGMySpaceYahoo BookmarksFriendFeedGoogle BookmarksLiveJournalShare
Jan072012

Arch Linux: install Redmine 1.3 with SQLite

Redmine is an open-source web-based project management and bug-tracking tool.

This article explains how to install it on Arch Linux. At the time this article was written the official documentation page lacked of clear installation instructions.

Redmine is written in the ruby programming language and uses Rails as a web application framework which can be compared to the Zend framework for the php language. To get Redmine run on a webserver, Rack is required which provides a minimal interface between a webserver and the ruby web app.

Redmine is shipped with a script which launches a webserver called Webrick. More precisely Webrick is a Ruby standard library providing simple HTTP web server services.

With this background one understands what the Redmine’s requirements are for. According to Redmine’s website these are

Redmine 1.3.x    Ruby 1.8.6 or 1.8.7    Rails 2.3.14    Rack 1.1.x    Rake 0.8.7    i18n 0.4.2

Rake is required to generate a session store and to create/initialize the database. It’s a build tool similar to make but for ruby. i18n is for localization.

In the following it’s shown how to install Redmine automatically or how to do things manually.

Continue reading »

DeliciousDiggTechnorati FavoritesRedditLinkedInFacebookSpurlTwitterWebnewsYiGGMySpaceYahoo BookmarksFriendFeedGoogle BookmarksLiveJournalShare