Random photo

Thanks to the lack of posting idea today, here are some photo I took (and forgotten) since few months ago.

Sky, taken from my campus at October last year

I sometimes randomly take photo. With crappy (phone) camera.

Thanks to my connection, I can’t upload another images. I’ll upload them at Thursday if I still have interest to do it.

On danbooru

Turns out I didn’t do anything this past week. Hopefully I can finish the installation-in-subdirectory on Saturday.

It should be straightforward but the main problem is I have to make sure I didn’t miss anything. There are a lot of places in main version which still use absolute path for its link generation. Even worse – most of the links are manually generated using literal <a ...> tag instead of Rails’ link_to. The other problem would be the JavaScript – the prototype JS used also contains lots of absolute path for operation with JSON. For such area I’m planning to use relative path combined with base tag in head.

Also documentation is still coming along… somewhere in my head.

danbooru for windows


This morning I randomly decided to try installing danbooru on Windows (7-x64). And indeed it works. Mostly.

Using mongrel and nginx since unicorn is not available on Windows.

Few things to note:

* system_timer is missing since I can’t seem to install it. Probably need to try ruby19 or ruby18-1.8.6-p27 (currently using ruby18-1.8.6-p383)
* manual initial database initialization since the script I made is specifically for *nix systems
* compiling danbooru_image_resizer is… *fun*
* for whatever reason I can’t install mongrel_service
* apparently there’s something missing. Or broken. Or both – there’s message “The system cannot find the path specified.” every time I start mongrel and do migrate

…anyone interested trying this on production server? 😛

_Last update 2011-07-18 21:01: formatting, also added rewrite rule for nginx to cope with uploaded media path change_

Day 1-2: Installation

Instead of fixing what I wanted (subdirectory handling), I worked with installation instead.

There are quite a few tickets opened but this is the one which wasted most of my time. The result is pretty good though: now it’s possible to install Danbooru without giving superuser privilege to the database account used. Installation still requires one though.

Danbooru 2010 personal plan

Note this is personal plan and I’m not an official Danbooru submitter. Here’s what I’m planning for this year:

  • Finish the remove-all-those-absolute-uris project from last year
  • Validation
  • Integrate JS with Rails (PrototypeHelper etc)
  • Localization
  • Documentation
  • ?