Programming karma
Posted: Sat 14 Aug 2010, 08:05
been using dir2pet in Lucid 5.1 (from console)
Managed to create this which puts the files just above root
http://tmxxine.com/chant/cyberchant.pet
- a menu entry is added but not yet usable
. . . near enough
run xpupsay-1.2-i486.pet which should be in the above root dir/folder
restart x and the ganesh.sh should run (right click and change permissions if not working)
Now the puzzle . . .
Why does Ganesh only appear sometimes?
(I appreciate that he is a representation of the Universal Brahman
- but even so)
Maybe he does not appear at all for you and I am blessed?
Anyway need more Ganesh
Second problem is how to hit enter
in this bit of code
from the ganesh.sh
after adding a mantra number
(at the moment you click on OK once number added)
Can the code be improved?
- I just 'nabbed from net' and added/hacked . . .
Managed to create this which puts the files just above root
http://tmxxine.com/chant/cyberchant.pet
- a menu entry is added but not yet usable
. . . near enough
run xpupsay-1.2-i486.pet which should be in the above root dir/folder
restart x and the ganesh.sh should run (right click and change permissions if not working)
Now the puzzle . . .
Why does Ganesh only appear sometimes?
(I appreciate that he is a representation of the Universal Brahman
- but even so)
Maybe he does not appear at all for you and I am blessed?
Anyway need more Ganesh
Second problem is how to hit enter
in this bit of code
from the ganesh.sh
after adding a mantra number
(at the moment you click on OK once number added)
Code: Select all
# # # # # # # # # # # # # # #
function input_message()
# # # # # # # # # # # # # # #
{
Xdialog --title "INPUT BOX" --inputbox \
"How many mantras to recite?" 0 0 2> /tmp/inputbox.tmp.$$
retval=$?
input=`cat /tmp/inputbox.tmp.$$`
rm -f /tmp/inputbox.tmp.$$
case $retval in
0)
echo "Input string is '$input'";;
1)
echo "Cancel pressed.";;
255)
echo "Box closed.";;
esac
repetitions=$input
}
- I just 'nabbed from net' and added/hacked . . .