ld-preload-reverse

December 22nd, 2009 § 0

I though I would post this piece of code since it has been laying around for quite a while.

ld-preload-reverse is a LD_PRELOAD library that overrides the most common
functions for writing text to a terminal, and reverses their output:

Looks like this:

tobbez@sagiri ~/dev/ld-preload-reverse $ LD_PRELOAD=./ld-preload-reverse.so bash
 $ esrever-daolerp-dl/ved/~ irigas@zebbotls
GNIYPOC  elifekaM  EMDAER  c.esrever-daolerp-dl  os.esrever-daolerp-dl
 $ esrever-daolerp-dl/ved/~ irigas@zebbotcat Ma elifek
os.esrever-daolerp-dl :lla

c.esrever-daolerp-dl :os.esrever-daolerp-dl
c.esrever-daolerp-dl os.esrever-daolerp-dl o- derahs- CIPf- ldl- llaW- ccg

:naelc YNOHP.
os.esrever-daolerp-dl f- mr
 $ esrever-daolerp-dl/ved/~ irigas@zebbottixe

It’s licensed under the Eiffel Forum License 2, and you can find the code here.

lighttpd rewrite rules for Symphony CMS

December 5th, 2009 § 0

For Symphony 2.0.6.

url.rewrite-once += ( "^/symphony/favicon.ico$" => "$0",
                      "^/symphony/symphony/(assets|content|lib|template)/.*$" => "$0",
                      "^/symphony/workspace/[^/]+/.*$" => "$0",
                      "^/symphony/image/(.+\.(jpg|gif|jpeg|png|bmp))$" => "/symphony/extensions/jit_image_manipulation/lib/image.php?param=$1",
                      "^/symphony/symphony/?(\?(.*))?$" => "/symphony/index.php?mode=administration&$2",
                      "^/symphony/symphony(/(.*/?))?(\?(.*))?$" => "/symphony/index.php?symphony-page=$1&mode=administration&$4",
                      "^/symphony/([^?]*/?)(\?(.*))?$" => "/symphony/index.php?symphony-page=$1&$3" )

Replace the first occurrence of ’symphony’ on every line with the location of your Symphony installation.

Google wave nominations

November 25th, 2009 § 12

wave-invites

Seeing as I now have 19 nominations left from the second and third batch I received, I’ll offer the same thing as Ax0n over at H-I-R did: be among the first 19 to post your email address as base64 in the comments, and I’ll send you one.

Ink

November 23rd, 2009 § 0

Ink
It is pretty much awesome. You should watch it if you haven’t already.

Amsterdam & beginnings of Hacking at Random

August 11th, 2009 § 2

Just posting these few photos before I go to sleep today. Since I didn’t get my real camera with me all of them are taken with my mobile phone camera, so quality isn’t really that great (slight understatement). Anyway, most of them are from the way to, and in, Amsterdam, except the last one which is the not completely completed lounge @ HAR.

If you want to see more photos from HAR, do check flickr.

Ebuild for libsummer

March 28th, 2009 § 0

I wrote an ebuild for the broadcatching library libsummer, that recently released version 0.1.0:

# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="A broadcatching library"
SRC_URI="http://flukkost.nu/libsummer/${P}.tar.bz2"
HOMEPAGE="http://wrya.net/services/trac/summer/"
KEYWORDS="~x86 ~amd64"
SLOT="0"
LICENSE="LGPL-2"
IUSE="bittorrent doc python"

DEPEND=">=dev-libs/glib-2.18.4
        >=net-libs/libsoup-2.24.3
        dev-libs/libxml2
        python? ( >=dev-python/pygobject-2.15.4 )
        bittorrent? ( >=net-libs/rb_libtorrent-0.14.1 )
        doc? ( dev-util/gtk-doc )"

RDEPEND="${DEPEND}"

RESTRICT="mirror"

src_compile() {
        econf $(use_enable bittorrent) $(use_enable python) $(use_enable doc gtk-doc) || die "econf failed"
        emake || die "emake failed"
}

src_install() {
        emake install DESTDIR="${D}" || die "Install failed"
        dodoc ChangeLog NEWS README AUTHORS
}


Download available here. To use unpack directly to your portage overlay.

Note: If you want the bittorrent functionaliy you will have to unmask net-libs/rb_libtorrent-0.14.1. It’s hard masked because it breaks a lot of packages relying on 0.13. Libsummer, however, was built on 0.14.

Bits and pieces

February 7th, 2008 § 0

These are some interesting links I’ve picked up during the past months. Some of them are quite old, so don’t be surprised if you’ve already seen some of them.

Let’s begin with how robots could be looking at humans.

And then a pair of personality related articles: a few things you should know about introverts (that’s me). And also a comparison, if you will, of the Wide/Deep personality types.

I found 10 Attributes of Really Lazy People quite entertaining.

And some reasons as to why I will never get an facebook account. Another, less serious, but still valid view on the same topic.

If you feel like you have too much time on your hans you could always do what this guy did: write a ray-tracing renderer from scratch.

Here’s some interesting views on today’s CS education, though I’ve not personally seen all those changes where I’m studying. It also presents a few things that are important for CS students to learn (more specifically in the programming area).

And at last, a nice explanation as to why writing general applications isn’t always the right choice.

Blog challenge: Hovie clip

February 3rd, 2008 § 0

So, I’ve been challenged by Linnea with finding a clip from a movie whose name starts with the letter ‘H’, so here you go.

Now I challenge ozamosi, and YOU to find a clip from a movie that starts with the next letter in the alphabet, namely ‘I’. The ones you challenge will have to find clips from movies that start with the letter after that (‘J’), and so on.

ryara.net v3

December 2nd, 2007 § 0

I’ve yet again remade my website (second time this year), and I think it looks better than the older two.
New for this version is a new PHP backend for the portfolio part, which I’m quite happy with. Eventually I’ll probably release the source for it, too.

I’d also like to thank Andreas Viklund for the template I used, and friends of mine for help with a few design decisions.

Boredom yields creativity

October 15th, 2007 § 1

Well, sometimes at least. A couple of days ago when I was bored I entertained myself with “enhancing” a crossword from a newspaper, and here’s the result:
“Enhanced” crossword
I think it looks quite interesting, but I think I’ll try to use a bigger crossword next time (if it comes).

Where Am I?

You are currently browsing the Random stuff category at blog.ryara.net.