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
  • ?

What I’ve been watching lately

Bones’ titles. Darker than Black (Yin o/)and its second season (Suou o/) and then currently watching Eureka Seven (on hold at episode 29 right now – getting sleepy).

About 66 episodes. The highest I’ve achieved in this few years. I just never able to watch anything in peace since few years ago because of… stuffs. Various reasons caused me to not able to watch as many episodes as I can compared to 2005 and before. I rarely marathon a 4-cours title. Only once actually as far as I remember: Gundam SEED (which costs me few hours of classes and CD-Rs – lots of em).

Looks like this year I’ll be able to finish much more titles than I did before 😀

On another note, I watched every single new series this winter. And noticed only one (from about eight) titles which is not a moeblob/fanservice title. There are still some more winter titles yet to air so this number will be changed but the ratio will still be unbalanced.

Study List 2010 and up

Too many to learn, too short time.

High priority. Things I want and/or need to study in this 1-6 months:

  • SQL and PL/SQL: Job requirement.
  • Java: Job requirement.
  • Ruby and Ruby on Rails: Personal choice. Mainly because danbooru is using it and it’s got the easiest module management (compared to Perl, Python and PHP)
  • Javascript/AJAX/AJAJ: Who develop web in 2010 without this? Me. I need to know at least the scripts used in danbooru.

Normal priority. Not really needed but I want to learn in-between learning items listed above:

  • Bourne Shell and awk: Need to learn better writing style and I’ve never actually learned awk. I sed/cut/grep all the way until today (and maybe for next few weeks until I learned awk)
  • Perl: If only because it’s got the highest amount of modules.
  • C: To fix/improve/hack many things. Mainly nginx and pure-ftpd.
  • English (conversation): My conversation skill sucks. Not saying my writing/listening/reading is good, but at least better than conversation.
  • Japanese: …

Low priority. Not needed for this few months but I must remember to learn it one day or learn whenever I feel like:

  • Algebraic Structure: Required for cryptography. It’s like building things with lego and trying understand them. IYKWIM. Interested in does not mean capable of.
  • Cryptography: Mainly because I want to completely understand this.
  • Graph: Hurrr.
  • Theories in logic: Nothing is more fun than attacking arguments at structure level :>

Better Autoindex with nginx/php

Using capability of nginx.

Basically, add this block

        location @lister
        {
                fastcgi_pass unix:/tmp/php-fcgi.sock;
                fastcgi_param PREFIX $_list_prefix;
                fastcgi_param FILE_ROOT $_list_root;
                fastcgi_param SCRIPT_FILENAME /srv/http/lister.php;
                include fastcgi_params;
        }

(adjust the path to lister.php and php-fcgi)

And then whenever you want to autoindex a folder just add

        location /anime/win/ {
                set $_list_prefix /anime/win;
                set $_list_root /srv/ftp;
                alias $_list_root/;
                try_files $uri @lister;
        }

And you’re done.

The code still needs some cleanups though.

[ lister.php ]

Winter 2009/2010

Here be obligatory post. No pics etc because I’m lazy as ever.

  • Harukanaru something 3: I think I’ve ever downloaded first two season for certain local anime server but never actually watched them. Whatever.
  • Chu-Bra: don’t forget to disable brain before watching.
  • Sora no Woto: what’s ‘woto’? :S Apparently some people made big fuss about its K-On! like design but Seiken no Blacksmith also has more or less same design but nothing happened. Either everyone was distracted by the flexible armor or perhaps I’m just blind.
  • Seikon no Qwaser: too bad there’s male cast in there 🙁
  • Ladies vs Butlers: omg maid/butler school. O hai Xebec.
  • Omamori Himari: just forget whatever you know from manga when watching this. Looking forward to possible rage from bloggers etc.
  • Bakatest: apparently this series is good (the source, at least). We’ll see.
  • Dance in Vamp. Bund: shaft, slow-aging vampire, etc. Apparently the male cast is a werewolf.
  • Duradura: idk. Nfi.
  • Hidamari Sketch nth season: let me watch the first season first :[
  • Ookamikakushi: 07th + Peach Pit. What.
  • Nodame Cantabile Finale: o yay.
  • Katanagatari: nisioisin 😮
  • Hanamaru Kindergarten: …what. It’s Gainax ffs.

Looks like another random season. Well, there’s nothing I’m actually waiting for this season (or maybe there’s one) so I’ll just use usual wait-and-see approach.

Obligatory link aggregates for winter previews:

On Language

For most of electronic appliances and software, I just can use properly it if it’s not in English. Especially Indonesian interfaces (and  manuals) – I usually change the language to (or use) English or translate the terms to English to be able to properly understand what it mean. Mind you – Indonesian is my native language.

It’s mostly thanks to the fact that ever since the first time I ever use an electronic appliances, they’re all in English. It’s just recently (by recently I actually mean 10 years or something) that Indonesian started to be available in them. And as the effect, I understand the English terms better than the Indonesian counterpart.

How about you? Do you prefer to use English instead of your native language for anything?

Fall 2009 comments,etc

Sorted by name.

  • Asura Cryin’ S2: Srsbsns. Much more interesting than previous season
  • Kampfer: Wrong done correctly (?). Oh, and how convenient.
  • Kiddy Girl-and: No trace of seriousness left from its prequel. Or maybe it’s just the beginning… Lol @ powerup-by-kissing.
  • Kobato: So pure and bright – my eyes hurts +_+ (not really)
  • Nogizaka Haruka no Himitsu Season 2: Less Haruka and more harem. It’s a good thing for me though since I don’t really like Haruka :p
  • Nyan Koi: Harem done right? D: Yay @ twins. o/
  • Sasameki Koto: HAHAHA. Win imouto, fail trap, stupid yuri couple(s), hilarious main character(s), etc. Especially the expressions.
  • Seitokai no Ichizon: Probably has best male lead after He is My Master.
  • Shin Koihime Musou: As stupid as previous season. Not necessarily a bad thing though.
  • Sora no Otoshimono: Actually better than expected. Nymph-chan o/
  • Tatakau Shisho: Hated the second arc. Aside from that it’s pretty interesting. Especially the idea of how human become book after they die 😮
  • The Sacred Blacksmith: 8 episodes and I still have nfi where the story will go.
  • Toaru Kagaku no Railgun: Good stuff. Nice op/ed. And serious stuff is just started.
  • White Albums S2: HAHAHAHAHAHA. Too bad I actually like the opening song.

Few things I always do after installing Windows 7 (pt. 1?)

Pt. 1: disabling things.

  • Disable compressed folder (here’s how – the first answer)
  • Disable Aero Peek (in System Properties – Advanced system settings – Performance/Settings – uncheck Enable Aero Peek)
  • Disable Aero Shake (here’s how)
  • Disable Explorer’s attempt to be smart (here’s how – no. 2 – still valid for Windows 7)
  • Disable autorun (search AutoPlay in start menu and untick “Use AutoPlay for all media and devices”)
  • Disable cd burn feature (here’s how – I suggest using option two – through local policy editor)

Disabling them is important to keep myself sane :S

VNC sucks

This is stupid. I can’t access my vnc server directly. But if I connect to it in a remote desktop session which the pc is located in same network with the vnc server, it works. And the speed is not too bad. In lossless.

In short: vnc sucks.

Patterned post?

See the calendar in the left? I’m currently thinking of creating some kind of pattern on it 😛

Probably will start next month though unless I can find interesting pattern from the already formed pattern.

And for whatever reason spellchecker in Chrome beta version is broken.

What am I watching this season?

Useless information is useless.

  • 11eyes
  • Asura Cryin’
  • Kampfer
  • Kiddy Girl-and
  • Kobato
  • Nogizaka Haruka no Himitsu – Purezza (or whatever it’s called)
  • Nyan Koi
  • Sasameki Koto
  • Seitokai no Ichizon
  • Shin Koihime Musou
  • Sora no Otoshimono
  • Tatakau Shisho
  • The Sacred Blacksmith
  • Toaru Kagaku no Railgun
  • White Album

15 series ~(O_o)/~

Commentary, etc tomorrow.

ed2k for some OSes

ed2k – A program computing eDonkey link (ed2k://), or only the Hash/Id (à la md5).

I first time installed it on FreeBSD (which exists in ports). Later I tried compiling it on OpenSolaris – and it doesn’t work. Lots of errors. The same source code also doesn’t compile in Ubuntu 9.10.

Then I decided to fix it. Changes are:

  • Defined/replaced u_int32_t as uint32_t. The former exists in *BSD and Linux but not SunOS (OpenSolaris). I decided to redefine it to minimize the amount of lines added since, well, they both are basically same thing and the latter works on more platforms.
  • Defined/replaced rindex as strrchr. Same functions but the former is deprecated (according to OpenBSD’s man page).
  • Included stdint.h. Required make the code gcc-4.4 compatible (at least in Ubuntu 9.10).
  • Integrated fixes from FreeBSD’s ports. To remove warnings from all C compilers I tried (suncc, gcc various versions).

Note that it still doesn’t work in Windows (can be compiled with one additional line but ed2k -l produces garbage which I haven’t bothered to find out why). Now it works in Windows.

Here be the fixed version. Still in public domain or whatever. Tried in OpenBSD 4.6 (standard gcc), FreeBSD 7.2-STABLE (standard gcc), OpenSolaris 2009.06 (Sun Studio 12u1, gcc 3.4 (from OpenSolaris’ IPS), Blastwave’s gcc 4.3.4), Ubuntu (Server) 9.10 (standard gcc) and Windows 7 (gcc 3.4.5 and gcc 4.4.0)

[ ed2k.c | patch for original source ]