pStopWatch 0.6

Stuff that has yet to be sorted into a category.
Message
Author
User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#21 Post by zigbert »

Version 0.5

Thanks for all input
Please report both success and failures

Sigmund

User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

A few suggestions

#22 Post by vovchik »

Dear Sigmund,

I looked at 0.5 and have the following comments:

1. Your last rev does not preserve the user's GTK style - my last rev does that (see screenshot). You need to include $HOME/.gtkrc-2.0 include, otherwise the app will look foreign on any system where the GTK theme is not identical to yours.

2. My last rev also included a change of geometry when tenths are disposed of. The window should shrink accordingly (i,e, automatically). Also, you should echo - in the case of the -s parameter - only the minutes and seconds to the logfile. This can be done by introducing a check of the value of the $TENTH variable in an "if" construction so as not to disrupt the smaller window x dimension by string overflow.

3. Apart from that, it works fine, but I am still testing and trying out a few tweaks.

With kind regards,
vovchik
Attachments
pstop2.jpg
(12.55 KiB) Downloaded 1093 times
pstop1.jpg
(14.76 KiB) Downloaded 914 times

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#23 Post by zigbert »

I don't know how you get your choosen gtk-theme to appear. Here is a picture of Ptimer with my default stardust gtk-theme. Then it shows your Pstopwatch which shows the standard gtk-theme. My Pstopwatch above with a stripped gtk-theme.

Image


:? :? :? :? :?
Sigmund

User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

GTK theme

#24 Post by vovchik »

Dear Sigmund,

Here is my .gtkrc-2.0 file:

Code: Select all

# -- THEME AUTO-WRITTEN DO NOT EDIT
include "/usr/share/themes/MacOS-X/gtk-2.0/gtkrc"

style "user-font" {
	font_name = "DejaVu Sans 12"
}

widget_class "*" style "user-font"

gtk-font-name="DejaVu Sans 12"

include "/root/.gtkrc.mine"

# -- THEME AUTO-WRITTEN DO NOT EDIT
The first include in $HOME/.gtkrc-2.0 gives the location of the theme in use for a particular user, and that should be the case for all standard gtk2 installations. The second include points to .gtkrc.mine, which is usually empty (in my case, at least). The gtk theme setup in puppy 3.01 is non-standard in some way, unfortunately, and really tries to force stardust on the user (using the settings in /etc), which is not a particularly good approach (it was different in the 2.x series). I struggled for a bit until I found out what was going on and found a means by which I could circumvent this 3.x automatism. I imagine others, such as trapster, have done the same.

With kind regards,
vovchik

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#25 Post by zigbert »

the problem is that there is no /root/.gtkrc on my system.

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#26 Post by Lobster »

Glad to hear Barry is adding it to Dingo :)
Would it be possible to add a tally counter?
(laps, repetitions etc)

Code: Select all

#!/bin/bash 
# tally counter v 0.1
# Lobster March 2008

NUMBER=0
PRESS_RETURN=1
   
    echo Press enter after each repetition        
    echo ctrl + c to end        

 while PRESS_RETURN=1 
 do
 read -e PRESS_RETURN
  if PRESS_RETURN=" " ; then 
         NUMBER=$[NUMBER+1]
    echo Your count for this practice is $NUMBER repetitions      
  fi
 done
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#27 Post by zigbert »

Code: Select all

Would it be possible to add a tally counter?
I thought everything was possible :?

Added to the todo-list. I'm not sure how it should be solved, but let's see...

User avatar
trapster
Posts: 2117
Joined: Mon 28 Nov 2005, 23:14
Location: Maine, USA
Contact:

#28 Post by trapster »

Here is a command line bash script for laps and split times.
Attachments
stopwatch2.tar.gz
Command line stopwatch with lap timer
(1.7 KiB) Downloaded 410 times
trapster
Maine, USA

Asus eeepc 1005HA PU1X-BK
Frugal install: Slacko
Currently using full install: DebianDog

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#29 Post by zigbert »

Interesting!

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#30 Post by zigbert »

Version 0.6 is uploaded. See main post.

This is a bugfix-release.

Changelog
- Less flicker on clock.
- Less flicker on stopwatch when tenth is not used.
- Integration with Ptimer.
- Removed menu entry in *.pet
- Bugfix: Kill external program which plays alarm.
- Bugfix: Window height in Puppy4
- Bugfix: Better parameter control

User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

version 0.6 missing?

#31 Post by vovchik »

Dear Sigmund,

I looked for version 0.6 in the first post and saw only version 0.5. Am I blind?

With kind regards,
vovchik

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#32 Post by zigbert »

vovchik
It seems that you're the one who are awake here. :)
Link fixed

Sigmund

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#33 Post by disciple »

Laps and split times would be nice :)
A pause button would be good too. And an option to start straight away, without the count down. But I think you have more important projects at the moment...
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#34 Post by zigbert »

But I think you have more important projects at the moment...
Yes, you're right. Let's take this one in next round.

User avatar
trapster
Posts: 2117
Joined: Mon 28 Nov 2005, 23:14
Location: Maine, USA
Contact:

#35 Post by trapster »

And an option to start straight away, without the count down
.

If you don't want the countdown coment out the following lines from /usr/local/pstopwatch/pstopwatch_counter.

Code: Select all

#countdown to sync stopwatch to a whole second
#SEC_START=`date +%s`
#COUNTDOWN=3
#COUNT=1
#while [ $COUNT -lt 5 ]; do
#	SEC_NOW=`date +%s`
#	SECONDS=`expr $SEC_NOW - $SEC_START`
#	if [ $SECONDS = $COUNT ] && [ $SECONDS -gt 0 ]; then
#		echo "00:0$COUNTDOWN:00" >> /tmp/pstopwatch-clock
#		if [ $COUNT -lt 4 ]; then
#			aplay /usr/share/audio/bark.au > /dev/null 2>&1
#		fi
#		COUNTDOWN=`expr $COUNTDOWN - 1`
#		COUNT=`expr $COUNT + 1`
#	fi
#done
trapster
Maine, USA

Asus eeepc 1005HA PU1X-BK
Frugal install: Slacko
Currently using full install: DebianDog

showdownmetal
Posts: 19
Joined: Wed 06 Aug 2008, 14:59

#36 Post by showdownmetal »

is there a way to make it play an mp3 of choice? or is there another alarmclock that does that? i wanna be able to wake up to my laptop playing music at the same time everyday. thanks!

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#37 Post by zigbert »

showdownmetal
You can use Pschedule for that. Add timestamp and command
pmusic "/directory/song.mp3"


Sigmund

panzerpuppy
Posts: 632
Joined: Tue 02 Oct 2007, 07:39

#38 Post by panzerpuppy »

@Zigbert: Are you ever going to fix the serious bugs in pStopWatch / pTimer?

These 2 bugs render the program useless:

1. Constant 100% CPU munch while pTimer is running :(

2. If you drag the pStopWatch window and keep the mouse button held, the timer freezes. Hold it like that for 20 seconds,release the mouse button and see what happens.

User avatar
gposil
Posts: 1300
Joined: Mon 06 Apr 2009, 10:00
Location: Stanthorpe (The Granite Belt), QLD, Australia
Contact:

#39 Post by gposil »

If you leave pStopWatch / pTimer running for any great length of time, the system will freeze.........not what we want. But I am very surprised that no one has noticed this up to now....or I could be wrong, That happens a lot... :lol:
[img]http://gposil.netne.net/images/tlp80.gif[/img] [url=http://www.dpup.org][b]Dpup Home[/b][/url]

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#40 Post by zigbert »

pStopWatch is lacking support.
I simply haven't given it enough priority. Sadly, It won't happen in any near future.


Sigmund

Post Reply