pTiming 1.0.3-1 - Event timer system

Stuff that has yet to be sorted into a category.
Message
Author
User avatar
davids45
Posts: 1326
Joined: Sun 26 Nov 2006, 23:33
Location: Chatswood, NSW

#21 Post by davids45 »

G'day zigbert,
Just trying v0.4. A short first report.

Strangely, I hear some hard-drive noise (a seeking rattle?) in between each second when pTiming is running. This starts immediately pTiming opens. I hadn't noticed this noise before and will check if I hear this on v0.3. I'll see if there's a difference between a Full & Frugal Puppy as well for v0.4 - I am hearing this drive noise with my first v0.4 try on a Full Pup (Kinda Lucid 006).
Edit: Other Pups did not have the hard-drive noise so it was just a anomaly in my klp006 install.

When I display both the Full Screen and Main box display together (big time on top half, details box on lower half), there is a slight lag in the big display. The beeps coincide with the details box time nicely.

The export data list for the '0' (unspecified) finishes looks OK for my wish to have a simple finish timer clock set-up of pTiming. As long as I know who finished in number order, names etc can be added to the exported times listing afterwards.

Thanks,
David S.
Last edited by davids45 on Wed 19 Jan 2011, 23:36, edited 1 time in total.
User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

full screen

#22 Post by don570 »

Zigbert wrote: In line 135 of /usr/local/ptiming you'll find
Code:
Mono bold '$((HEIGHT/3))'"
Dividing by 5 worked nicely with my 1440 x 900 screen

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

Re: full screen

#23 Post by zigbert »

don570 wrote:
Zigbert wrote: In line 135 of /usr/local/ptiming you'll find
Code:
Mono bold '$((HEIGHT/3))'"
Dividing by 5 worked nicely with my 1440 x 900 screen
Please test the latest version. I think this should handle both 4:3 and 16:9 screens. - I haveonly tested on widescreen.


Sigmund
User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

version.4

#24 Post by don570 »

Version .4 of ptiming centers the full screen mode perfectly.
User avatar
john biles
Posts: 1458
Joined: Sun 17 Sep 2006, 14:05
Location: Australia
Contact:

#25 Post by john biles »

Hello zigbert,
I'm testing your wonderful app in Legacy for inclusion in version 2 coming soon. It installs fine but when I add competitors they don't appear in the list and when i try to add them again ptiming claims they've already been entered? If I export to gnumeric they appear in the spreadsheet. I'm assuming its most likely got something to do with Legacy's version of gtkdialog?

attached image after I've added 2 competitors? I tried shuffling the list but made no difference.
Attachments
ptiming.png
(20.76 KiB) Downloaded 1136 times
Legacy OS 2017 has been released.
User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#26 Post by zigbert »

hello John
If pTiming is working perfect else of this specific bug, I need some terminal output, but the reason could be that you miss 'tac' in Legacy OS. I thought it was standard in Puppy....... it might have arrived later than your fork.

It is a tool to output content of file in reverse order. Could it be done another easy way?


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

#27 Post by disciple »

Hi Sigmund,
It needs some more calculations ;)

If I boot Puppy with pfix=ram and install Ptiming it works fine.
If I then go to 'Menu-Desktop-Set Global Font Size', change the setting and restart X, when I run Ptiming the timer display is the wrong size. See the attached screenshots.
(N.B. pStopwatch had the same problem... IIRC this was one of the problems that I reported but I couldn't figure out what the cause was)

You can get the dpi setting with

Code: Select all

cat /root/.Xresources | grep "^Xft\\.dpi:" | tr '\t' ' ' | tr -s ' ' | cut -f 2 -d ' '
Mine is 87. The default is 78, so it seems to work in the normal window if I multipy the numbers in this code by 78÷87

Code: Select all

style "monoBig" { font_name="Mono bold 52" base[NORMAL]="'$COLOR1'" text[NORMAL]="'$COLOR2'" }
widget "*timer" style "monoBig"
style "dejaColor" { font_name="Dejavu 16" base[NORMAL]="'$COLOR1'" text[NORMAL]="'$COLOR3'" }
widget "*edit" style "dejaColor"
style "dejaBig" { font_name="Dejavu 40" base[NORMAL]="'$COLOR1'" text[NORMAL]="'$COLOR3'"}
widget "*nr" style "dejaBig"
It is still wrong when I switch to fullscreen, but I haven't looked at the code for fullscreen enough to figure out how it works.
Attachments
screenie1.png
(41.17 KiB) Downloaded 1180 times
screenie.png
(8.06 KiB) Downloaded 1196 times
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

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

#28 Post by disciple »

disciple wrote:You can get the dpi setting with

Code: Select all

cat /root/.Xresources | grep "^Xft\\.dpi:" | tr '\t' ' ' | tr -s ' ' | cut -f 2 -d ' '
Actually, this is probably a more robust way to get it:

Code: Select all

xrdb -query | grep dpi
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER
User avatar
john biles
Posts: 1458
Joined: Sun 17 Sep 2006, 14:05
Location: Australia
Contact:

#29 Post by john biles »

Hello zigbert,
Missing "tac" looked thought ibiblio.org and couldn't find it. Did some more searching and discovered it's a terminal command. Your right! enter ./tac -h and command not recognized! Looks like this app won't be in Legacy OS 2 shame that!
Legacy OS 2017 has been released.
disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#30 Post by disciple »

Tac is tiny. Pinch it from somewhere if you can't be bothered tracking down the source. I'm pretty sure I did that on my machines :)
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

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

#31 Post by disciple »

I guess I shouldn't suggest that as it goes against the GPL. But even if the main site is hard to find, it shouldn't take long to get the source from somewhere like the Debian packages site.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER
seaside
Posts: 934
Joined: Thu 12 Apr 2007, 00:19

#32 Post by seaside »

You could get tac from most pups and it's only around the same size as pTiming.

Another alternative is to emulate "tac" with "sed" and create a function in pTiming.

Code: Select all

tac() {
	sed '1!G;h;$!d' $1
}
export -f tac
should work.

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

#33 Post by zigbert »

Great stuff guys
- I will use sed instead of tac. Less dependencies is always good.
- I will fix the global ffontsize issue


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

#34 Post by zigbert »

tac stays...... (else new arguments)
sed works, but troubles inside gtkdialog code.
It is replaceable, but much cleaner code with tac.


Sigmund
User avatar
john biles
Posts: 1458
Joined: Sun 17 Sep 2006, 14:05
Location: Australia
Contact:

#35 Post by john biles »

Hello zigbert,
So "tac" is part of the coreutils package. Got "tac" out of a Mandriva 2007 rpm and now your app works as expected. Those using Legacy OS and want to use pTiming just copy the attached file to /usr/bin
Attachments
tac.tar.gz
(39.99 KiB) Downloaded 1123 times
Legacy OS 2017 has been released.
User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#36 Post by zigbert »

Version 0.5
See main post

Changelog
- Bugfix: Fontsize fits your global font-setting at first run. Else, set in preferences. (thanks to disciple)
- Bugfix: Export results after edited timestamp when competitor is not defined.
seaside
Posts: 934
Joined: Thu 12 Apr 2007, 00:19

#37 Post by seaside »

john biles wrote:Hello zigbert,
So "tac" is part of the coreutils package. Got "tac" out of a Mandriva 2007 rpm and now your app works as expected. Those using Legacy OS and want to use pTiming just copy the attached file to /usr/bin
Here's the "tac" file from pup431 which is only 16k.

Regards,
s
Attachments
tac.tar.gz
tac file from pup431
(8.39 KiB) Downloaded 1114 times
User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#38 Post by zigbert »

Version 0.6
See main post

- Language support.
- Cancel button in preferences window.
User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#39 Post by zigbert »

Version 0.7 is uploaded
See main post

The introduction of Language support gave some bugs. Sorry about that.

Changelog
- Bugfix: syntax in tree header 'Laptime'
- Bugfix: edit in shuffle window
User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#40 Post by zigbert »

esmourguit has improved the code to use the NLS-variables completely. I have uploaded 0.7-1.


Sigmund
Post Reply