About gaming, a monitoring app, an mpd client and a file manager. (no actual code)
Roguelikes: This is completely off the table, because lately my gaming habits have been decreasing. Lately when I want to play a game I just end up watching a Let’s Play.
I’m going to buy Soul Link when it’s released in a few days, hopefully feel like (or force myself to) marathon a whole bunch of VNs after that. But that has nothing to do with writing roguelikes.
Process Tree: I made that watch script before, and I like it, but it’s not very efficient and it eats like a thousand PIDs per minute. So I had some ideas for a new one, like a non-interactive scrolling tree, things that pop-up from out of the process when it uses much CPU and coloring by RAM/CPU usage, keeping a small log of new/recently-died processes. So I looked around for a library that already had some nice ncurses art, but it’s basically just `dialog` front-ends & implementations. I thought for a second Perl had some cool curses libraries, but it didn’t, but now I learned Perl anyway and it’s pretty awesome, I like it more than Python.
So far I can already get most of the data, it’s just about how to show it. Maybe I should ask for some input on the forums.
MPD client: will make a very minimal one based on pyampc in Perl.
File Manager: I have had this really good idea for a file manager:
You start a process like vim, and it auto-wraps it in dtach. Then the file manager shows tabs with processes launched by it (or in a previous session). And maybe each file manager pane can be a dtach’ing process (not sure how this influences interactivity). I actually started on this, in Python, but I had to edit dtach and `script` source code, because dtach’ing something like ls (try: dtach -A ls.dt ls) produces weird results, and `script` adds weird things to logs. dtach also prints unnecessary things like “Detaching”. I’m not really sure what to do now, I’m not going to write patches or something, which means I will end up with something that no one else can use. Maybe I’m taking the wrong approach to what I want, but I don’t see it yet.
Anyway with a more minimal design than pyfmii I want to put in stuff like pretty curses graphics, more information about files, global copy/move queue, sorting/separating by type/time, `lsof *` warnings.
edict2: May start with this again. I haven’t done much translating so I didn’t improve the tool-chain I posted about before. I think it would also be cool to have a command line app that can emulate Google’s new Japanese IM, but how would one tap into its database?
E-mail: I had a really silly idea for an e-mail host that just outputs mail to world-readable text files (like graffiti). I don’t know a lot about how e-mail works, but my idea was, e.g. you send this e-mail:
Then the host has a simple script listening on the e-mail port (?) and gets the data (?) and simply does:
to=$(echo “$input” | sed -n ‘/TO:/s/@.*//p’)
data=$( the rest, remove newlines and html tags)
echo “$from :: $subject :: $data” >> /home/httpd/$to.txt
(chmod a+r $to.txt)
… then the user:
`curl -s wallmail.org/procyon.txt` | tail -n 1:
email@example.com :: test :: test 1 _n_ 2 _n_ 3 _n_
I wonder if this has any use though. (And no, I’m not going to do anything with this)