Page 2 of 3

Posted: Fri 16 Oct 2009, 20:57
by 01micko
Version -0.1.2

See main post

Posted: Fri 16 Oct 2009, 22:58
by vovchik
Dear 01micko,

I made a few mods that shorten the script a bit (generated the item lists in loops). Please have a look. Also I replaced "file icon" with "file stock", since, in this way, gtkdialog respects the button icon size stipulated in the user's gtk theme.

With kind regards,
vovchik

Thanks

Posted: Sat 17 Oct 2009, 01:27
by tlchost
01micko wrote:Version -0.1.2
Works fine ... but the dog snarled the fisrt time she read the screen.

Thanks!

Thom

Posted: Sat 17 Oct 2009, 01:59
by Jim1911
Thank you for this nice little useful application. Works great. :)
Jim

Posted: Sat 17 Oct 2009, 05:06
by 01micko
Hi Jim1911 and tlchost.

Jim, remember when you reported the bug? I bet it was around 8 or 9 in the morning right? tlchost, same. The problem is the code solution I chose, which Patriot kindly pointed out to me. It wont handle 08 or 09 because bash (in this instance) reads the 0 as a switch to change to base 8. Consequently the code fails because we are working in base 10.

Now I know what the problem is I can fix it, but the fixed version will be slightly slower I fear (no prob for you Jim 8) ) but I can test and refine on my old k6 400 w/ 128Mib ram.

vovchik, thanks for your interest, I will look at your code and try to understand it, all good learning experience for me :)

Cheers and thanks for reports.

Posted: Sat 17 Oct 2009, 05:22
by 01micko
vovchick

Thankyou for your addition, I love it! It will be in the next version, provided it works nice on my old machine, I can't see a problem. That code should trim a little fat too :) . I like it.

Cheers

Mick

Posted: Sat 17 Oct 2009, 07:56
by 01micko
updated to version -0.1.5

See main post

_____________________________________

vovchik,

I tried your function code and it didn't work. The gui rendered fine but it somehow would not allow the functions script to run correctly. :? The code (my code) is very , how shall we say, raw. There are still refinements to be made. I did implement the 'icon' to 'stock' change, thanks.

Cheers

Posted: Sat 17 Oct 2009, 08:42
by vovchik
Dear01micko,

I am scratching my head. I don't see how my functions can affect the stuff in the functions file, particularly since the gui renders in your case, too. All my functions do, as you know, is to generate the item lists - rather than having them hardcoded. It all works on my puppies (3.01 and 4.10).

With kind regards,
vovchik

Posted: Sat 17 Oct 2009, 09:33
by 01micko
vovchik

I have it working now with my updated code :) . I was trying to implement too many changes at once... a bad idea :oops: . So I went back a step and implemented changes slowly.

Your function code will be in the next release. Just testing on old machine.

Cheers

Mick

_______________________________________

It all works on old box

Now up to v-0.1.6

See main post

Posted: Sat 17 Oct 2009, 10:47
by vovchik
Dear mick,

I ahve another little suggestion. Try using the following in the "Duration of Splash" hbox:

Code: Select all

		
<frame Duration of Splash>
	<hbox homogeneous=\"true\">
		<radiobutton>
			<variable>DUR1</variable>
			<label>Short</label>
			<default>$DUR1</default>
		</radiobutton>
		<radiobutton>
			<variable>DUR2</variable>
			<label>Sound time</label>
			<default>$DUR2</default>
		</radiobutton>
		<radiobutton>
			<variable>DUR3</variable>
			<label>Infinity</label>
			<default>$DUR3</default>
		</radiobutton>
	</hbox>
</frame>
The homogeneous="true" bit in the hbox obviates the need for manually spacing the strings used in the labels. They will centre just fine without whitespace padding.

With kind regards,
vovchik

Posted: Sat 17 Oct 2009, 17:34
by vovchik
Dear mick,

Here is an icon I found (PD) that might be suitable for PCountdown.

With kind regards,
vovchik

Posted: Sat 17 Oct 2009, 21:59
by 01micko
Hello vovchik

Thanks for all your help, I fixed the <vbox> tag with your suggestion, and also reduced the icon to 16x16 and added to the package and also added the full size icon to the main post with instructions on how to use it on the desktop.

Cheers

Mick

___________________________________

V -1.7 is out..

See main post

Posted: Sun 18 Oct 2009, 15:01
by davesurrey
01micko:
Been busy on other things so just seen your latest version. Really excellent work. Many thanks. Couldn't be better.
Dave

Posted: Mon 19 Oct 2009, 09:14
by vovchik
Dear Mick,

Have a look at this timer prog. It uses Xdialog for the GUI. I changed it a bit in order to accommodate command line arguments. You can put it wherever you want and type, for example,

Code: Select all

./pcntdwn "0/0/5" "xterm -e ls" 
to run xterm with parameters in 5 seconds' time. The countdown bit is pretty nice, since it uses a GTK widget, but your prog offers a better GUI and more control. In any case, here is some more food for thought. If you simply click on pcntdwn in Rox without arguments, you will launch the GUI. I think we might need to do some error checks on the command line input and clean up the logic relating to that aspect. My mods were just a quick hack to get it running. Launching in a terminal with -help or --help displays usage.

With kind regards,
vovchik

Posted: Mon 19 Oct 2009, 11:31
by 01micko
Hello vovchik

That is a cool little countdown timer, up to 100 hrs too I see. It would be great for offpeak downloading... let's say

Code: Select all

./pcntdwn "5/0/0" wget -[options] http://www.someaddress/somefile
Easy. You could set it before you go to bed. I could add a box to run a command to mine too, but I think Pschedule takes care of it anyway.

BTW, I just did 2 tests on my old box (over 2 days). If you set for 24 hours it works but restarts the timer immediately, if you set for 23h 59m 59s it works as expected.. I will remove 24 from the dropdown in the next release.

Dave, you are now even more spoilt for choice!

Cheers

Mick

Posted: Mon 19 Oct 2009, 15:41
by davesurrey
01micko wrote:
Dave, you are now even more spoilt for choice!
Yes the latest one from vovchik is small and elegant.

So in the space of a week I now have countdown timers courtesy of jemimah, Lobster, vovchik and yourself...plus a few count-up timer suggestions. :-)

Many thanks to all.
Dave
Thinks: now if I could get the attention of a GUI expert to fix the double menus problem in Gxine in 214X http://murga-linux.com/puppy/viewtopic.php?t=47779 my life would be complete....or close to it. :-)

Posted: Tue 20 Oct 2009, 04:53
by 01micko
minor bugfix update... but I'll let it go as V -0.2.0...

See main post

Posted: Sun 21 Feb 2010, 01:11
by 01micko
Now at version 1.0

Has fancy yaf-splash fonts now, CatDude is responsible for making me do this, blame him.. :lol:

Also, the gui is killed now while counting down

see main post

Posted: Sun 21 Feb 2010, 02:36
by technosaurus
Kinda reminds me of Xpad - but with the features it was missing

Posted: Sun 21 Feb 2010, 06:39
by ttuuxxx
here's a icon I made for it. feel free to use it or not, lol the gnome one above that vovchik posted, is cool. Just figured I would make one you could call your own, or not, lol
ttuuxxx