ra`s fnord » Coding http://ra.fnord.at blog Thu, 20 Sep 2012 12:06:12 +0000 http://wordpress.org/?v=abc en hourly 1 Instant messaging file transfers just do not work http://ra.fnord.at/2009/05/instant-messaging-file-transfers-just-do-not-work/ http://ra.fnord.at/2009/05/instant-messaging-file-transfers-just-do-not-work/#comments Sat, 30 May 2009 12:34:49 +0000 ra http://ra.fnord.at/?p=181 A few days ago I wanted to quickly send a file through my instant messaging client which neither worked through xmpp nor icq. It came to my mind that I keep having this problem for years now and having to send files through email sucks.

So I decided to write a small script which is executed from the context menu of konqueror or dolphin (kde file browsers). It compresses a file or directory, sets a password and uploads it to filefactory.com .

project site on kde-apps.org

]]>
http://ra.fnord.at/2009/05/instant-messaging-file-transfers-just-do-not-work/feed/ 2
Kmail auto add address to addressbook http://ra.fnord.at/2008/11/kmail-auto-add-address-to-addressbook/ http://ra.fnord.at/2008/11/kmail-auto-add-address-to-addressbook/#comments Fri, 21 Nov 2008 13:45:22 +0000 ra http://ra.fnord.at/?p=124 I just figured out how to automatically add addresses I wrote an email to to my addressbook in kmail. Christian Schaarschmidt wrote a small patch which adds a filter you can define for your outgoing mails. Unfortunately it’s not available in vanilla kmail (yet?). I added an updated ebuild+patch to my gentoo repository so one can easily use it.

I think got used to that feature with the previous mail client I used: thunderbird and I am wondering if the mail client I used before thunderbird (mutt) has a similar feature.

]]>
http://ra.fnord.at/2008/11/kmail-auto-add-address-to-addressbook/feed/ 0
Mindmachine http://ra.fnord.at/2008/11/mindmachine/ http://ra.fnord.at/2008/11/mindmachine/#comments Sat, 01 Nov 2008 16:39:45 +0000 ra http://ra.fnord.at/?p=120 I just created a new tumblelog/soup in which I will document the progress of creating a Sound&Light-Machine with EEG feedback loop (aka Mindmachine). The soup is currently empty but I will feed it within the next weeks with the current status of the project.

]]>
http://ra.fnord.at/2008/11/mindmachine/feed/ 0
Gentoo overlay http://ra.fnord.at/2008/10/gentoo-overlay/ http://ra.fnord.at/2008/10/gentoo-overlay/#comments Sun, 05 Oct 2008 19:55:31 +0000 ra http://ra.fnord.at/?p=110 I finally put my local ebuilds online. Browse my Gentoo overlay.

Update:
New URL: git://github.com/ra–/ra-gentoo-overlay.git
Browse online: http://github.com/ra–/ra-gentoo-overlay/tree/master

]]>
http://ra.fnord.at/2008/10/gentoo-overlay/feed/ 0
Automatic renewing at libraries using the aleph software (tested with Vienna University of Technology and University of Vienna) http://ra.fnord.at/2008/09/automatic-renewing-at-libraries-using-the-aleph-software-tested-with-vienna-university-of-technology-and-university-of-vienna/ http://ra.fnord.at/2008/09/automatic-renewing-at-libraries-using-the-aleph-software-tested-with-vienna-university-of-technology-and-university-of-vienna/#comments Sat, 06 Sep 2008 10:12:33 +0000 ra http://ra.fnord.at/?p=108 Since I use the libraries of universities quite heavily I wrote a small perl script “alephrenew.pl” about two years ago which does the renewing of books for me.

The reason for writing it was that I gain an advantage (to other people using the library) when I renew every day (if there are reservations on the book one with the oldest renewing date has to bring it back – at least as far as I understand the behaviour of the Aleph software).

The help should be self explaining:

Usage: ./alephrenew.pl [-h] [-q] -b <baseurl> -u <username> -p <password> [-r <seconds>]

-h    : this help message
-q    : quiet (suppress success message)
-b    : baseurl without trailing slash (eg. http://aleph.ub.tuwien.ac.at)
-u    : username (eg. $E123456) – you will probably need to escape the “$”
-p    : password – your date of birth in the form of YYYYMMDD (eg. 19730425)
if you did not change it
-r    : wait random time between 1 and “seconds” seconds (before starting and
1 to 30 seconds between the requests – so it does not look like a script)

Examples:
./alephrenew.pl -q -b http://aleph.ub.tuwien.ac.at -u \$E123456 -p 19730425 -r 3600
./alephrenew.pl -b http://aleph.univie.ac.at -u \$E098765 -p 19851224

A crontab entry may look like this:
0 0 * * 2-6 /path/to/alephrenew.pl -q -b http://aleph.ub.tuwien.ac.at -u \$E3862419 -p 0wN4g3 -r 7200

It’s tested with the libraries of the Vienna University of Technology and the University of Vienna but should work with any other library using the Aleph software.

It is released under the terms of the GPLv2.

I do appreciate your feedback!

]]>
http://ra.fnord.at/2008/09/automatic-renewing-at-libraries-using-the-aleph-software-tested-with-vienna-university-of-technology-and-university-of-vienna/feed/ 2
suspend/hibernate buttons in kde shutdown dialog http://ra.fnord.at/2007/10/suspendhibernate-buttons-in-kde-shutdown-dialog/ http://ra.fnord.at/2007/10/suspendhibernate-buttons-in-kde-shutdown-dialog/#comments Sat, 06 Oct 2007 15:05:59 +0000 ra http://ra.fnord.at/2007/10/suspendhibernate-buttons-in-kde-shutdown-dialog/ I took a patch which implements the suspend/hibernate buttons within the shutdown dialog in kde from the kubuntu guys and made it work on gentoo.

If you have no clue what this is all about here are two screenshots [1] [2] (actually these do not represent the patch exactly, but you should get the idea).

The kde split ebuild for ksmserver: ebuild (I will do the update to the kde-all-in-one ebuild on request).

To make use of the feature emerge with USE=”dbus hal”. If you don’t see any icons next to the suspend/hibernate buttons, make sure you use an icon set that provides the files “suspend.png” and “hibernate.png”.

]]>
http://ra.fnord.at/2007/10/suspendhibernate-buttons-in-kde-shutdown-dialog/feed/ 0
Kernel patches http://ra.fnord.at/2007/09/kernel-patches/ http://ra.fnord.at/2007/09/kernel-patches/#comments Sat, 29 Sep 2007 15:07:36 +0000 ra http://ra.fnord.at/2007/09/kernel-patches/ I updated some kernel patches:

]]>
http://ra.fnord.at/2007/09/kernel-patches/feed/ 0
Kernel “Trusted Path Execution” patch (tpe) http://ra.fnord.at/2007/09/kernel-trusted-path-execution-patch-tpe/ http://ra.fnord.at/2007/09/kernel-trusted-path-execution-patch-tpe/#comments Mon, 10 Sep 2007 17:33:29 +0000 ra https://sunkist.annessi.at/wordpress/2007/09/10/kernel-trusted-path-execution-patch-tpe/ I just finished a patch to the Linux kernel which implements “trusted path execution”.

You can specifiy a trusted directory and a group as “trusted” or “untrusted”.
If the group is untrusted all users belonging to this group will only be able to execute files from the trusted directory. If the group is trusted all users will only be able to execute files from the trusted directory but users belonging to the group (and root of course).

Get it here: linux-2.6.18-tpe_restriction (patch, 5 KB)

The patch is based on grsecurity – so credits go to Brad Spengler.

]]>
http://ra.fnord.at/2007/09/kernel-trusted-path-execution-patch-tpe/feed/ 0
Kernel Patches (proc & dmesg restriction) http://ra.fnord.at/2007/07/kernel-patches-proc-dmesg-restriction/ http://ra.fnord.at/2007/07/kernel-patches-proc-dmesg-restriction/#comments Tue, 31 Jul 2007 16:38:11 +0000 ra https://sunkist.annessi.at/wordpress/2007/07/31/kernel-patches-proc-dmesg-restriction/ I updated two kernel patches to the Linux kernel.

  • linux-2.6.18-proc_restrictions.patch (patch, 12 KB) which basically restricts non-root users from viewing all processes (plus an option for some additional /proc restrictions). It is possible to define a GID which is not affected by the restrictions.
  • linux-2.6.18-dmesg_restriction.patch (patch, 1 KB) which restricts non-root users from viewing kernel log buffer messages.

Both patches are based on grsecurity – so credits go to Brad Spengler.

]]>
http://ra.fnord.at/2007/07/kernel-patches-proc-dmesg-restriction/feed/ 0
Java is free and open source now! http://ra.fnord.at/2006/11/java-is-free-and-open-source-now/ http://ra.fnord.at/2006/11/java-is-free-and-open-source-now/#comments Mon, 13 Nov 2006 17:51:31 +0000 ra https://sunkist.annessi.at/wordpress/2006/11/13/java-is-free-and-open-source-now/ Finally.. it´s released under the GPLv2.

Source: http://www.sun.com/software/opensource/java/

]]>
http://ra.fnord.at/2006/11/java-is-free-and-open-source-now/feed/ 0
Google code search http://ra.fnord.at/2006/10/google-code-search/ http://ra.fnord.at/2006/10/google-code-search/#comments Thu, 05 Oct 2006 10:59:00 +0000 ra https://sunkist.annessi.at/wordpress/1970/01/01/google-code-search/ Now google offers the possibility to search in public source code with regular expressions and limit the results depending on the license used.

http://www.google.com/codesearch

]]>
http://ra.fnord.at/2006/10/google-code-search/feed/ 0
Linux kernel patches http://ra.fnord.at/2006/09/linux-kernel-patches/ http://ra.fnord.at/2006/09/linux-kernel-patches/#comments Mon, 25 Sep 2006 20:14:02 +0000 ra https://sunkist.annessi.at/wordpress/2006/09/25/linux-kernel-patches/ I put two patches online i put together some weeks ago:
A patch to build the driver for the rt2500 wireless chipset within the linux kernel (statically or as a module): linux-2.6.17-rt2500-1.diff (diff, 1,155 KB)
A patch to build the kqemu module within the linux kernel (statically or as a module): kqemu-2.6.17.diff (diff, 19 KB)

As you can see, I do prefer a kernel without modules. (:

]]>
http://ra.fnord.at/2006/09/linux-kernel-patches/feed/ 0