Archive for Random

Mounting external harddisks on Ubuntu intrepid

I’ve updated our development/backupserver to ubuntu intrepid, but unfortunately, mounting of external harddrives became a pain. Off the shelves, gnome in intrepid only allows root to (auto)mount external drives (way to go guys! make linux even more user unfriendly!).

To solve this issue:

1. Open polkit-gnome-authorization
2. Go to Storage => Mount file systems from removable drivers
3. Press the “Edit…” button
4. Choose “Active Console: Authentication” and chose the appropiate setting (I just gave every known user full RW-mount permission)
5. Press the “Modify…” button

rant:

Really, linux and especially ubuntu had been working for years to make Linux acceptable for the broad audience. With the netbooks revolution, a lot of people became familiar with Linux. So how can you do such a change that pisses the common people off? This much trouble to get some external drives working? Really?

Comments

Rasterfarian 2.5.2 patch

I’ve patched rasterfarian to 2.5.2

Changes:

  • Option to select shades of grays (if you use the old eink-screen, chose 4, if you’re using the vizplex screen use 8.
  • Batch functionality works. (earlier versions will corrupt the TOC)

Notes:

If you’re using manga2ebook’s unsharp and contrast normalize settings, you might want to consider using 4 shades of gray. Otherwise the contrast could be too high and you get jagged text, if the fonts are really small.

The batch functionality only works if the PDF-files are in different directories. To use the batch, just start another instance of rasterfarian while one instance is running.

Install rasterfarian 2.5.1 and overwrite the directory with the patch. A new installation version will be released by the end of next week.

The patch

Comments (3)

New manga2ebook version

Due to a computer mishap, I lost the most recent version of manga2ebook, I’ve reprogrammed it from an older version and added a few enhancements too.

Now available here:

Manga2Ebook2

changelog:

  • added batch-feature
  • contrast/normalize image setting (higher contrast)
  • custom filefilters
  • settings are saved upon exit
  • resize option “no aspect ratio” added (it will resize the image based on width AND height: maximum usage of the screen)

Comments (13)

Lighttpd image hotlinking prevention

I’ve migrated our image server from apache to lighttpd, it certainly feels a bit faster, but preventing hotlinking is not as easy as with apache.

The standard documentation only tells you how to deny access to images when hotlinked, but I want people to know that they’re hotlinking images. So I needed any hotlinked image to be responded with a “don’t hotlink”-image.

It was a bit of struggle trying to find the right syntax, but I finally succeeded. This is doing it’s work great


$HTTP["referer"] !~ “^($|http://(.*)?kmfstudio|afspot\.com)” {
$HTTP["referer"] !~ “^($|http://(.*)?asianfanatics|afspot|hkadb|afmag\.net)” {
url.redirect = (
“(/.*\.(JPG|jpe?g|png|gif))$” => “http://kmfstudio.com/hotlinking/hotlinking.jpg”
)
}
}

Comments (1)

Disable WP-cache

I found that the wp-cache is actually not working very well. So i gotta disable it. Here’s how
Open up wp-config.php. And add the following lines:

// Cache disabled. Comment out to enable.
define('DISABLE_CACHE', true);

Now it won’t try to create a cache.

Comments

Wordpress plugins I’m gonna check out

Just a not for myself, a couple of plugins of wordpress that I would like to check out when I have the time

Recent posts plugin

Related entries

Ultimate tag warrior

in-series. to create series of articles 

Comments (1)