Author Archives: procyon

edict2 multi radical search

How to search the edict2 file for entire compounds matching radicals instead of just kanji.

Posted in edict2, Programming | 3 Comments

word-diff pstree

One thing I mentioned before was the worded diff pstree. Here is what I use: touch /tmp/pstree.old First we want to remove some common daemons from the output that we aren’t interested in. Threads are also not very interesting, so … Continue reading

Posted in Programming | Comments Off

Color watch

Continuing with http://archlinux.me/procyon/?p=44 I thought adding colors would mess up pr, but if you add the colors after pr, and preserve whatever stood there it will work, because the same amount of characters remain. That means using characters like {} … Continue reading

Posted in Programming | 3 Comments

Finding the right CPU stats

In the sysmon I tried (echo $’MEM\tCMD\tCPU’ ps -Ao rss,comm,pcpu | sort -rn | head -n 10 | sed ‘s/\([a-z]\) \([a-z]\)/\1_\2/g’ ) | awk ‘{printf “%-9.9s%-15.15s%6.6s\n”,$1,$2,$3}’ beyond head it’s just for formatting. (and I get processes with spaces in the … Continue reading

Posted in Programming | 1 Comment

Bash system monitor

So far as a system monitor I used a heavily edited pyampc. I thought it would be cool to have a system monitor in bash, and separate the mpd stuff. That way I can redo the mpd client in a … Continue reading

Posted in music, Programming | 1 Comment

Bash loop for monitoring applications

I am trying out exec $0 as an alternative to the while true loop. I am not sure if it’s really a good idea, but the advantage of being able to edit the script while it’s running and see the … Continue reading

Posted in Programming | 1 Comment

rtorrent display 1 line per torrent

I like to have rtorrent display everything on 1 line instead of 3. Here are some tips how to get this done. I found these to work the same way in both 0.8.2 and 0.8.5 Continue reading

Posted in Programming | 2 Comments

edict2 Quiz II

I found an interesting site: Kanji Damage I want to try to make a quiz for the juukugo and verbs on this site. I have not inspected it carefully, but from the slightly chaotic nature it looks like it won’t … Continue reading

Posted in edict2, Programming | 3 Comments

Roguelikes II

For the gameplay of the roguelike I am thinking of x-com 3. What I like about x-com 3 is that the maps are really good. I played it recently and found it really boring though, actually I don’t think I … Continue reading

Posted in Programming, Roguelike | Comments Off

Music Player I

I wrote an mpd client once. It’s called pyampc and it’s in C.C. I still use it but I edited it a lot since the last update to suite my needs. So it’s become too idiosyncratic to post updates on. … Continue reading

Posted in music, Programming | Comments Off