From george at galis.org Wed Mar 7 20:59:12 2007 From: george at galis.org (George Georgalis) Date: Wed Mar 7 21:01:56 2007 Subject: [macosx-unix] voice synth Message-ID: <20070308015912.GE399@run.galis.org> There is a lecture in html I'd like to have read to me with the voice synthesizer in the mac. How can I get it to do that? BTW, here is how I get the words to move when I'm too lazy to use the scroll keys (program expects text on stdin, prints a byte count at each paragraph and offers a crude way to start from the middle, you'll have to fix the ^M ctrl characters...) count=$1 dd bs=1 count=$count 2>/dev/null while :; do count=$((count + 1 )) c=$(dd bs=1 count=1 2>/dev/null | tr '\n' '^M' ) case $c in ' ') sleep 0.09 ;; '^M') sleep 0.7 ; echo ; [ "$c" = "$c2" ] && echo "(($count))" && echo && c='' ;; *) sleep 0.05 ;; esac printf "$c" c2=$c done adjust delay to suit. // George -- George Georgalis, systems architect, administrator < From bob at redivi.com Wed Mar 7 21:09:09 2007 From: bob at redivi.com (Bob Ippolito) Date: Wed Mar 7 21:10:11 2007 Subject: [macosx-unix] voice synth In-Reply-To: <20070308015912.GE399@run.galis.org> References: <20070308015912.GE399@run.galis.org> Message-ID: <6a36e7290703071809m74fcd604s1817b505fd86065d@mail.gmail.com> On 3/7/07, George Georgalis wrote: > There is a lecture in html I'd like to have read to me with the > voice synthesizer in the mac. How can I get it to do that? > > BTW, here is how I get the words to move when I'm too lazy to use > the scroll keys (program expects text on stdin, prints a byte > count at each paragraph and offers a crude way to start from the > middle, you'll have to fix the ^M ctrl characters...) > > count=$1 > dd bs=1 count=$count 2>/dev/null > > while :; do > count=$((count + 1 )) > c=$(dd bs=1 count=1 2>/dev/null | tr '\n' '^M' ) > case $c in > ' ') sleep 0.09 ;; > '^M') sleep 0.7 ; echo ; [ "$c" = "$c2" ] && echo "(($count))" && echo && c='' ;; > *) sleep 0.05 ;; > esac > printf "$c" > c2=$c > done > > > adjust delay to suit. man 1 say -bob From pete at nomadlogic.org Wed Mar 14 17:45:39 2007 From: pete at nomadlogic.org (Peter Wright) Date: Wed Mar 14 17:46:11 2007 Subject: [macosx-unix] Xmodmap for aqua apps? Message-ID: <8053.160.33.20.11.1173908739.squirrel@webmail.nomadlogic.org> hi all, so i've finally had some time and fixed the annoying issue on my OSX box where i could not get "alt+b" "alt+f" keybindings to work in X11 shells. i've created a ~/.Xmodmap file that swaps the alt and esc key functionality in my X11 environment. here's the changes i've done: %cat ~/.Xmodmap clear Mod1 clear Mod2 keycode 63 = Mode_switch keycode 66 = Meta_L add Mod1 = Meta_L add Mod2 = Mode_switch so, the question is - how do i get these new bindings to be recognized by aqua. heck - even better would be a good place to start reading how OSX and aqua handles keybindings and such...seems i'm still stuck in the X11 world when thinking about this stuff. thanks! -pete -- ~~oO00Oo~~ Peter Wright pete@nomadlogic.org www.nomadlogic.org/~pete 310.869.9459 From jaapna at xs4all.nl Thu Mar 15 11:25:56 2007 From: jaapna at xs4all.nl (Jaap Akkerhuis) Date: Thu Mar 15 11:26:06 2007 Subject: [macosx-unix] Xmodmap for aqua apps? In-Reply-To: <8053.160.33.20.11.1173908739.squirrel@webmail.nomadlogic.org> References: <8053.160.33.20.11.1173908739.squirrel@webmail.nomadlogic.org> Message-ID: > so, the question is - how do i get these new bindings to be > recognized by > aqua. heck - even better would be a good place to start reading > how OSX > and aqua handles keybindings and such...seems i'm still stuck in > the X11 > world when thinking about this stuff. Maybe this is a start: http://www.lsmason.com/articles/ macosxkeybindings.html At the bottom it contains more links. jaap From george at galis.org Tue Mar 27 23:03:35 2007 From: george at galis.org (George Georgalis) Date: Tue Mar 27 23:03:41 2007 Subject: [macosx-unix] getting system utilization.. Message-ID: <20070328030335.GO3815@run.galis.org> I'm looking for some metric OS X system utilization... on NetBSD, I use "sysctl kern.cp_time" and get the cpu clock cycles of various states. geo@run:/home/geo/ sysctl kern.cp_time kern.cp_time: user = 516224, nice = 0, sys = 235061, intr = 14374, idle = 24752345 geo@run:/home/geo/ sysctl kern.cp_time kern.cp_time: user = 516224, nice = 0, sys = 235061, intr = 14374, idle = 24752415 geo@run:/home/geo/ sysctl kern.cp_time kern.cp_time: user = 516225, nice = 0, sys = 235061, intr = 14374, idle = 24752763 as you can see, using the command 3 times, the idle command was mostly incremented but also the user clock. How can I get similar info from OS X? I don't see anything resembling _that_ in the mac "sysctl -a" listing. // George -- George Georgalis, systems architect, administrator <