moefetch 0.2.1!

After few hours messing with Notepad++, Solaris’ Bash and tools, FreeBSD’ sh and tools and of course with help from folks at #bash, moefetch 0.2.1 is released.

Since this is the first (second) release, there’s no changelog.

…I think I forgot updating the help. Whatever. Tell me if you need documentation – usage should be straightforward.

[0:40] ~/moe> moefetch.sh fetch -s konachan.com hatsune_miku
moefetch 0.2.1
Copyright (c) 2009 edogawaconan

Starting...
Tags: hatsune_miku

Fetching xml file
--00:40:36--  http://konachan.com/post/index.xml?tags=hatsune_miku&offset=0&limit=100000
           => `/export/home/edho/moe/temp/konachan.com-hatsune_miku-xml'
Connecting to 127.0.0.1:10000... connected.
Proxy request sent, awaiting response... 200 OK
Length: 635,696 (621K) [application/xml]

    0K ........ .                                           100%  117.50 KB/s

00:40:44 (117.50 KB/s) - `/export/home/edho/moe/temp/konachan.com-hatsune_miku-xml' saved [635696/635696]

Processing XML file... 736 file(s) available on server
Cleaning up repository folder... Moved 1d847e88e5d854746c5d358eb986bd44.jpg to /export/home/edho/moe/trash/konachan.com-hatsune_miku-20090629-17.40
Moved 469d46eceef89bf6efba9638377b400f.jpg to /export/home/edho/moe/trash/konachan.com-hatsune_miku-20090629-17.40
Moved 64ecb121226b0fd275d608efa90905a3.jpg to /export/home/edho/moe/trash/konachan.com-hatsune_miku-20090629-17.40
Moved 704ee8ab1d434e669b7743d7fbebae98.jpg to /export/home/edho/moe/trash/konachan.com-hatsune_miku-20090629-17.40
done
Checking for errors... done
All files OK
731 file(s) available locally
Generating list of new files... done
5 file(s) to be downloaded
Starting wget... Continuing in background, pid 21649.
[0:42] ~/moe>

[ Get here ]

pam_mysql on OpenSolaris

Thanks to boredness, I tried to finish installing pam_mysql which was failed before. Here’s the tricks:

  • Symlink pam_appl.h and pam_modules.h from /usr/include/security to /usr/include
  • Use Sun C Compiler. GCC won’t work – don’t bother trying
  • make will most likely fail because -lCrun doesn’t exist or something. Temporary workaround is by removing -lCrun from the command in Makefile (open Makefile, find and remove -lCrun)

Seems to be working here.

ruby/god vs python/supervisord

There is no comparison to daemontools yet because I’ve never used it. Runit seem to be running at entire different level and monit… also never tried (seems to be too complex and underpowered).

Disclaimer: in this post there’s no religion involved. ‘god’ mentioned here is a ruby gems that is just happen to be named god (seriously, this is not how you should name your program – googling for it results in too much noise)

[ god | supervisord ]

Continue reading

Massive speed improvement on 2.8?

I just noticed that upgrading to 2.8 gives massive speed improvement. On my local server the loading is now instaneous while in 2.7 it has short delay.

I haven’t realized it before because I never test it in local server and I don’t feel any speed improvement on this site because my connection is the bottleneck.

Thanks to WP Dev Team 🙂

2 reasons old (desktop) computers hate linux

  1. Desktop programs that’s remotely useful (ex: OpenOffice) will be most likely running slower than snail
  2. The alternatives usually either as outdated, broken, incomplete or suck as the Windows equivalent

Ubuntu on a Celeron 1 GHz processor and 640 MB of RAM is fun. Fun as in the processor is always working on empty desktop. Yes, empty – a freshly booted one. And suspend doesn’t work either.

Also sir, no sane person without specific need still use 9x line of Windows. My Celeron 300 MHz doesn’t have problem running Windows 2000. And it can run Red Alert 2 and Office 2000.

WRT link above, apparently he loves contradicting himself

“Install. Reboot. Install. Reboot…aack!
……
the odds are that everything will work as expected on a vanilla install. And if DSL doesn’t recognize it, use Puppy. If that doesn’t work, go with SliTaz. Failing that, install ubuntu-minimal and put Openbox on top of it. If all else fails, maybe Ubuntu GTK 1.2 Remix will work”

Apparently trying various Linux distros is faster than driver install + reboot

For example, would you rather use Abiword 2.6.8, or MS Word ‘97?
……
maybe Ubuntu GTK 1.2 Remix will work

Thank you. I prefer Word 97 to GTK 1.2.

Have fun making that without Linux.

Because there is no *BSD

WordPress 2.8: coming soon

Here’s the one-step upgrading I did for upgrading from 2.8-Beta2 to 2.8-RC1.

~$ ./update
U    /u/h67959/home/blog/wp-includes/version.php
U    /u/h67959/home/blog/wp-includes/functions.php
U    /u/h67959/home/blog/wp-includes/link-template.php
U    /u/h67959/home/blog/wp-includes/script-loader.php
D    /u/h67959/home/blog/wp-admin/cache-manifest.php
U    /u/h67959/home/blog/wp-admin/wp-admin.css
U    /u/h67959/home/blog/wp-admin/includes/plugin-install.php
U    /u/h67959/home/blog/wp-admin/includes/post.php
U    /u/h67959/home/blog/wp-admin/includes/template.php
U    /u/h67959/home/blog/wp-admin/js/common.dev.js
U    /u/h67959/home/blog/wp-admin/js/common.js
U    /u/h67959/home/blog/wp-admin/css/press-this.css
U    /u/h67959/home/blog/wp-admin/css/colors-fresh.css
U    /u/h67959/home/blog/wp-admin/css/colors-classic.css
U    /u/h67959/home/blog/wp-admin/themes.php

Fetching external item into '/u/h67959/home/blog/wp-content/plugins/akismet'
Updated external to revision 124424.

Updated to revision 11542.
At revision 948.
~$

Yes, one line. I’ll post another tips on how to upgrade from 2.7.1 to 2.8 with one command (+ one upgrade.php, IIRC) once it’s released (sometime today?). HA HA HA forget that. I just remembered there’s one-click update since 2.7. I still trust svn than some-php-lol-unzip-and-do-ftp-upload which I find unreliable depends on your webhost.

I just realized

The impact to the story would be – had Hughes didn’t get killed in episode 10.

Yes this is spoiler. And no, I don’t care since everyone and their pet should’ve known about this years ago.

</late></spoiler>

[ Funeral Link (wat) ]

Oh and moar spoiler: the things he realized will be dicovered in faaaaaaar away in the manga, about 10 volumes apart (hence my lateness of realizing it – or actually it’s pretty normal for me since I’ve forgotten about this chapter)

Time machine plz? And seasonal etc.

>.<

Gonzo is doing pretty well this season, btw. Or actually, I liked most of series I’m following this season.

  • Asura Cryin’ 1-8
  • Cross Game 1-9
  • Eden of the East 1-8
  • Fullmetal Alchemist Brotherhood 1-8
  • Guin Saga 1
  • Hanasakeru Seishounen 1-2
  • Hatsukoi Limited 1-8
  • K-On! 1-10
  • Natsu no Arashi 1-9
  • Pandora Hearts 1-8
  • Phantom 1-10
  • Saki 1-10
  • Shangri-la 1-9
  • Suzumiya Haruhi no Yuuutsu S2 1
  • Tayutama 1-8
  • Tears to Tiara 1-9
  • Valkyria Chronicles 1-8

With only two stalled series.

Feature lock after one extra feature

After some consideration, I’ll do feature lock on moefetch (aka no more features) after implementing one last feature I want – automatic file sorting by tags.

There won’t be any additional features after that one for a long time.

I’ll make extra script to do batch job. Implementing batch job in current script is not easy. Doable but pointless. It’s better to create another script to call several moefetch command in order.

Also by feature lock I also mean there will be version jump to 1.0.

Killing bugs and cleaning up will of course continue.

Suggestions are welcome.

Up next: danbooru install script for various OSes.

moefetch enters beta

Lots of fix and code cleanups.

  • Directory structure changed
  • Added option -u, command status renamed to check
  • Current working folder is now used for base folder
  • No option should be modified now unless you want to help me debugging or you need/use specific configuration

To do for 0.1:

  • Even more debugging
  • Code cleanups
  • Better way to verify grep/md5/other utils capability
  • I think it’s currently bugged if there’s alien file/folder containing spaces

Happy leeching.