Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - doug-taylor

Pages: [1] 2
1
Software / The Zaurus, Tae Kwon Do, And Me
« on: November 21, 2007, 01:41:03 pm »
Just wanted to share a little script I wrote for my Zaurus.  I studied Tae Kwon Do (Korean Karate) a while back, and I always thought it provided a good aerobic workout.  So I wrote down in a file every move (kicks, punches, blocks) I had learned, sent that list through an awk script that spat out random moves, and piped *that* list through flite.

The result is a script that runs completely on my SL-5500 and speaks 1000 random Tae Kwon Do moves for me to perform.  Takes 30-40 minutes to run through the whole routine, and I'm sweating pretty hard by the end.  Don't know if anyone else would be interested in this.  I suppose it could be adapted to call out any random series of phrases for someone's amusement.  :-)

Requires flite, awk, and, umm, probably the GNU textutils or bash or something.

Anyway, here's the script, between the rows of equals signs:
====
export MAXCOUNT=10
export COUNT=0
while [ $COUNT -lt $MAXCOUNT ]
do
COUNT=`expr $COUNT + 1`
echo "front kick
jumping front kick
side kick
#jumping side kick
turning side kick
back wheel kick
roundhouse kick
jumping roundhouse kick
half-moon kick
jumping half-moon kick
crescent kick
jumping crescent kick
side attack
fighting stance number one
fighting stance number two
one knife hand attack
reverse punch
middle punch
upper punch
reverse spinning knife hand attack
inside knife hand
outside knife hand
upper block
inside block
double inside block
outside block
lower block
double lower block"|
grep -v ^# | \
awk -v COUNT=$COUNT -v MAXCOUNT=$MAXCOUNT \
'BEGIN {srand();INDEX=0}
       {MOVE[INDEX]=$0;INDEX++}
 END   {
        if (COUNT == 1) {print "begin tie kwon doe exercise.";}
        print "begin part " COUNT ".";
        I=0;
        while (I < 100) {
         print MOVE[int(INDEX*rand())] ".";
         I++;
        }
      print "end part " COUNT "."
      if (COUNT == MAXCOUNT) {print "end tie kwon doe exercise.";}
      }' |\
flite --setf duration_stretch=1.5 --setf int_f0_target_mean=145
done
====

Hope somebody likes it.

2
5x00 General discussions / Flite In Collie?
« on: November 09, 2007, 03:32:17 pm »
Problem solved!

I checked in the OZ 3.5.4 feed (one sub-level higher than my Z is at) and it has flite in it.  I downloaded and installed the flite package and the two libflite packages.  Now it works.  Yay!

3
5x00 General discussions / Flite In Collie?
« on: November 09, 2007, 02:37:38 pm »
You don't have to go to all that trouble.  I'll look around.  Thanks.

4
5x00 General discussions / Flite In Collie?
« on: November 09, 2007, 11:08:48 am »
Hmm.  Interesting.

Well, don't put yourself out too much.  I can do what I want in other ways.  This is just one of those "Gee, it would be even cooler if I could . . ." situations.  Thanks for all your help so far.

5
5x00 General discussions / Flite In Collie?
« on: November 09, 2007, 10:18:30 am »
Hmmm.  I tried sym-linking and got the same result.  Actually, that's kind of what I expected.  If the program were looking for libs that didn't exist, I'd think it would just fail with a "library not found" message.  That's not what I get; the program seems to work fine, but the output is garbled beyond recognition.

My guess is that flite calls ld-linux.so.2 (which is sym-linked to ld-2.3.3.so), libc.so.6 (which is linked to libc.2.3.3.so), and libm.so.6 (which is linked to libm.2.3.3.so).  The thing to try, I suppose, is to temporarily change those links to point to the 2.2.2 versions and see what happens.  Would you be able to get me copies of the 2.2.2 versions of these three libraries?

6
5x00 General discussions / Flite In Collie?
« on: November 08, 2007, 07:32:03 am »
Thanks for checking this.  I have ld-2.3.3.so, not ld-2.2.2.so.  Ditto with libm and libc -- they're both version 2.3.3, not 2.2.2.  Maybe that's the problem.  It's weird, though, that the time program works fine.

I wondered if it just needs to be recompiled for Opie . . .

7
5x00 General discussions / Flite In Collie?
« on: November 07, 2007, 03:50:51 pm »
I was afraid it might be something like that.  I tried using makecompat on it, but it still gives me the same squawk.

8
5x00 General discussions / Flite In Collie?
« on: November 07, 2007, 03:30:51 pm »
Hi.

I've got a 5500 running Opie under OZ 3.5.3.  I'm trying to get flite (Festival-lite, the text-to-speech program) running.  I have downloaded both 1.1 and 1.2, but haven't had any luck getting either one to work properly.  When I run a command like

    echo "hello world"|flite

all I get is a squawk, sort of like the sound I made once when I got hit by a baseball in a very bad place.  :-)  If I try flite on a longish text file, I just get a series of squawks.

Is there something else I need to install, like a library or a voice file?  The docs seem to indicate that all I need is the flite binary.  Has anyone got this working on a 5500?

Incidently, the flite_time program (which speaks the time in a Scottish accent) runs great.

9
Software / Z Crashes When I Hold Down Keys
« on: June 12, 2007, 08:30:19 am »
I'm using Opie/OZ 3.5.3 with my SL-5500, and I've noticed an annoying problem with some games like Doom (using PrBoom) and Pokemon Blue (using Qtopia Gnuboy).

When I'm playing one of these games, if I hold down a key for too long, the Zaurus shuts itself down.  It doesn't freeze, it doesn't exactly crash, it doesn't even suspend.  It just powers itself off as if I had flipped the "replace battery" switch on the back.  Once this has happened, the only way to bring it back, in fact, is to toggle the switch in back.

Needless to say, this is pretty annoying, and makes any arcade games essentially useless.  It feels like it happens when I hold down a key for long enough that (1) a typematic thingie kicks in, or (2) some sort of keyboard buffer fills up.  Not sure which it is.

So, I was wondering whether anyone else had seen such behavior, and how it might be fixed.  Since I noticed it mainly with my game emulators, I wonder if it might be a problem with SDL.  For what it's worth, I see /opt/QtPalmtop/lib/libSDL-1.2.so.0.0.5 as my SDL library.

10
User Request for Applications / Twin For My 5500?
« on: May 23, 2007, 01:40:06 pm »
Got it installed.  Now it fails with the following error message:

root@collie:/media/card/Documents/twin/usr# twin twin: autoprobing `--hw=gfx' display driver.
twin: starting display driver module `HW/hw_gfx'...
twin: ...module `HW/hw_gfx' successfully started.
twin: fatal: failed to load the window manager: /usr/lib/twin/modules/wm.so.0.4.6: undefined symbol: shm_quit

The library it fails on is one that came with it.  Has anyone gotten this to work?

11
User Request for Applications / Twin For My 5500?
« on: May 23, 2007, 01:05:49 pm »
Never mind.  I found it on the 3.5.4 feed.  (I'm still using 3.5.3, since my Z crashes every time I try to upgrade.)

12
User Request for Applications / Twin For My 5500?
« on: May 23, 2007, 12:52:44 pm »
Has anyone compiled Twin for OZ/Opie?  Twin (http://twin.sourceforge.net/) is a curses-based text-mode windowing environment.  I guess it would be fairly useless for a stand-alone Zaurus, but I occasionally use mine as an sshd server, and being able to ssh into my Z and run Twin on it would really be peachy-keen.

I see a package for it at http://www.tyrannozaurus.com/feed/beta3/feed/, but that's pdaXrom, and I can't get it to work on my 5500.

13
User Request for Applications / Qplot
« on: May 15, 2007, 08:23:13 am »
Was this ever fixed?  It segfaults on my 5500 on every version I've tried.  Is there any version of qplot that works on OE?

14
5x00 General discussions / We Need More Ppl To Help Betatest Milkytracker
« on: November 29, 2006, 01:37:01 pm »
Quote
Following on the "music app" topic, does anyone know of a score-editing/playing program for the zaurus?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=123831\"][{POST_SNAPBACK}][/a][/div]

I compiled Mup (http://www.arkkra.com) for my Zaurus.

Mup is a program that takes text "scores" that you create with any old text editor and makes postscript and midi output.  Nice, fast little program, doesn't cost too much, and generates really nice-looking output.

Unfortunately, there's no good way to view postscript on a Z.  :-(  I compiled Ghostscript for the Sharp ROM, but then I moved to 3.5.3 and now Ghostscript won't run.  I can still play the midi output with timidity, though.

--
Doug

15
Linux Issues / Edgy Eft, Upstart, And Usbnet?
« on: October 30, 2006, 09:30:23 am »
Hi.  I have a Zaurus SL-5500 running Opie 3.5.4, and I have been happily using the following script (/etc/hotplug/usb/usbnet) on my Ubuntu desktop to set up USB networking whenever my Z gets plugged in to the USB port:

#! /bin/bash
typeset -i num
num=`ifconfig | grep usb0 | wc -l`
if [ $num -eq 0 ] ; then
        ifconfig usb0 192.168.129.1 netmask 255.255.255.255 up
        route add -host 192.168.129.201 usb0
fi
iptables  -t nat -F
iptables  -t nat -A POSTROUTING -j SNAT -o eth0 --to <IP ADDRESS>
echo 1 > /proc/sys/net/ipv4/ip_forward

I recently upgraded Ubuntu from Dapper Drake to Edgy Eft, and all of a sudden, there's no /etc/hotplug directory.  It looks like that functionality has been taken over by upstart.  So my question is, how can I set up upstart (1) to recognize that the Z has plugged into the USB port and (2) to set up networking for it?

Thanks,

Doug

Pages: [1] 2