LiraNuna’s Development Blog
Securing your Debian server against slowloris

Posted on Friday, 26 June 2009

I recently came across a very nasty DoS attack that any script kiddy can execute – called slowloris. It involves sending partial HTTP packets while Apache2 patiently waits for an unreasonable amount of time for the remaining data while consuming a thread, doing so continuously will prevent Apache2 from opening more threads and serving potential web viewers.

One old remedy for this was supposedly mod_evasive, but it doesn’t really work against that specific type of attack as it acts too late to understand it’s an attack.

Very recently, an Apache mod fixing this vulnerability had been released – mod_antiloris, but it’s made with a RedHat based server in mind. Here are the steps to get it working on a Debian or any other Debian compatible server (such as Ubuntu).

(more…)

LiraNuna @ 19:26
Filed under: Articles
Sintia has a Twitter page

Posted on Saturday, 13 June 2009

Sintia, the suicidal MegaHAL IRC service bot I run for over 6 years on EFnet now have a twitter page! Sintia will be updating it regularly.

Check Sintia’s page here.

LiraNuna @ 1:09
Filed under: Uncategorized
Lessons updated

Posted on Thursday, 30 April 2009

My aging NDS 2D lessons have been updated to conform to the latest version of libnds. They should now compile and run on a modern devkitARM toolchain.

I hope someone will find this useful.

LiraNuna @ 19:47
Filed under: General
NDS Blending Demo

Posted on Saturday, 4 April 2009

blending-demo

First I would like to start with the fact that this demo was lying around in my HDD since Halloween.

This demo was written to demonstrate how easy it is to utilize the DS’s hardware blending and create impressive effects with no effort. In this demo, the witch is flying in the sky, and whenever she’s hovering between the moon, she turns black, because the light from the moon illusions it as such.

The demo is composed of 2 backgrounds and a sprite. the sprite is set to blend with the first background (the moon) with 0 blending, resulting the black color.

Download: blending-demo.

LiraNuna @ 19:16
Filed under: Releases
Rhythmbox ‘Now Playing’ script for XChat

Posted on Friday, 27 March 2009

This is a small script I wrote for myself when using XChat and Rhythmbox.

Ever since the latest Rhythmbox release, there has been an undocumented feature in rhythmbox-client to print the string received from shoutcast streams, such as my favorite di.fm radio, which I normally have on. I found several xchat-rhythmbox announcers but they all lacked the ability to determine if rhythmbox currently streams music or listens to a music file.

Now that I actually have free time, I could write a small script to do exactly what I wanted, and I’ve decided to share it. The source/script is released under the terms of the WTFPL.

Download link: rhythmbox_nowplaying.tar.gz.

LiraNuna @ 21:39
Filed under: Releases
Implementing flash.events.EventDispatcher in C++

Posted on Saturday, 27 September 2008

Call me crazy, but I really like Flash’s EventDispatcher class – it’s simple, powerful and most of all relatively fast.

I felt the need to take EventDispatcher outside of my flash projects to my more advanced C++ ones. This turned out to be quite an easy task.

Instead of a boring ‘download code’ link, I will write the steps of implementing it using C++’s STLs, just because I feel like writing.

(more…)

LiraNuna @ 14:51
Filed under: Articles
New libellen release

Posted on Tuesday, 9 September 2008

The impossible happened! I actually took some time to clean up and resolve the libellen-libnds collision problems, while also transforming libellen to the traditional library.a file. I also added very primitive background handler – it works, but don’t count on it.

Download it HERE.

Please remember that the source code and library (and everything inside the zip archive) is released under the terms of the WTFPL.

LiraNuna @ 12:47
Filed under: libellen
Typesafe assignable enumerations in AS3

Posted on Monday, 28 July 2008

Being a huge C/C++ fan, I had a really hard time switching to AS3 and giving up most of C++’s power features as enumerations.

I was surprised that a programming language that is based on Java and C# doesn’t support native enumerations built in the language. After a quick look-up at various Google searches, turns out no one has implemented a type-safe assignable enumerations design pattern in AS3. The various code examples I’ve seen were either not type safe or not assignable (using the enumerations as ‘global’ consts). Since those were not the behaviors I wanted, I had to write my own.

(more…)

LiraNuna @ 19:08
Filed under: Articles
Site has moved

Posted on Wednesday, 2 July 2008

Please update your bookmarks – http://liranuna.drunkencoders.com/ is now http://www.liranuna.com/.

I’m sorry for the lack of recent updates, I have had a lot of RealLife™ problems that kept me away from developing or doing anything other. I will return to homebrew as soon as possible, probably to wii homebrew as the community is slowly growing.

LiraNuna @ 1:07
Filed under: General
libellen – first and final release

Posted on Tuesday, 1 April 2008

libellen logo

Since I’m not going to do any further development on this (for various reasons), I have decided to release libellen – a sprite handling library for the Nintendo DS, based on libnds.

The library is released under the terms of the WTFPL.

The source and “example” are super documented, and evena  Doxyfile is attached if you want to create documentations.
The library was tested and compiled using devkitARM r21 with god-knows-what libnds version. If you find incompatibilities, I’ll be happy if YOU would fix them.

Have fun and happy coding!

For those who are intrigued by the name – lib-ell-en (L – N, my name’s initials) could also be read as libellen – dutch for “Dragonfly” which is what the logo is based on. For those who wonder, the logo is also released under the terms of the WTFPL.

Some history:
libellen was first made as the low-level library for ToD2, but was quickly got good enough to be expended. My second goal was also to get people to stop using PAlib, an old, slow and deprecated library which people insisted on using. The library was not complete, but the sprite handling was. after more then 6 months of inactivity, I have decided to release the library to just handle sprites.

Source could be downloaded from HERE.

LiraNuna @ 0:39
Filed under: libellen