pTiming 1.0.3-1 - Event timer system

Stuff that has yet to be sorted into a category.
Message
Author
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 1110 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 1100 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

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

#41 Post by zigbert »

Version 0.8
See main post

- Message in preferences: Restart pTiming to activate changes. (thanks to esmourguit)
- Uses gtkdialog4.
- Bugfix: Sort order in exported results.
- Bugfix: Timer moved some pixels because not 100% mono.
- Bugfix: Detect macrolanguage (fr, en..) when lang contains utf or similar post info.
- Bugfix: Do not allow more than one detected langauge. (thanks to shinobar)
- Bugfix: NLS variables in Competitors window for default Name, Organization and class. (thanks to esmourguit)
- Bugfix: NLS variables in Competitors window for ID in list heading. (thanks to esmourguit)
- Bugfix: Some missing icons in competitor window.

User avatar
broomdodger
Posts: 279
Joined: Sat 10 May 2008, 02:38
Location: Santa Cruz, CA

#42 Post by broomdodger »

racy5290

pTiming 0.8 works very well.

But when pTiming is quit it sometimes leaves the following running:

sh -c while [ ! -f /root/.ptiming/tmp/end_while ]; do func_time; sleep 0.05; done

It can be seen in top.

Bill

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

#43 Post by zigbert »

broomdodger
I tested here and pTiming closes the end_while-loop when exiting.

How did you operate pTiming to get the end_while-loop to stay alive after closing the program? I need to reproduce the bug before I can fix it.


Thank you
Sigmund

User avatar
broomdodger
Posts: 279
Joined: Sat 10 May 2008, 02:38
Location: Santa Cruz, CA

#44 Post by broomdodger »

zigbert wrote:broomdodger
I tested here and pTiming closes the end_while-loop when exiting.

How did you operate pTiming to get the end_while-loop to stay alive after closing the program? I need to reproduce the bug before I can fix it.
Just now opened Menu > Personal > pTiming event timer system
Then let it run about 5 seconds
Then File > Quit

Code: Select all

32212 32185 root     R     2640   1%   0   0% top -d3
32185  3886 root     S     5204   1%   0   1% urxvt -g 127x27-0-28 +sb -bg black -fg green -e top -d3
30353     2 root     SW       0   0%   0   0% [flush-8:0]
28686     1 root     S     3248   1%   0   3% sh -c while [ ! -f /root/.ptiming/tmp/end_while ]; do func_time; sleep 0.05; done
26173 19531 root     S     122m  25%   0   0% /usr/lib/seamonkey-2.6.1/plugin-container /usr/lib/mozilla/plugins/libflashplayer
19531  3886 root     S     394m  80%   0   1% /usr/lib/seamonkey-2.6.1/seamonkey-bin
17412     1 root     S     3248   1%   0   2% sh -c while [ ! -f /root/.ptiming/tmp/end_while ]; do func_time; sleep 0.05; done
I did it again, now there are two remaining running,
even after quitting several minutes ago.

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

#45 Post by zigbert »

I see
Exit from menu doesn't kill the loop, while using the windowmanager close-button works as expected.

I will fix. Thank you.
Sigmund

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

#46 Post by zigbert »

Version 0.8.1
See main post

Changelog
Bugfix: Kill background loop when exiting from menu (thanks to broomdodger)

User avatar
broomdodger
Posts: 279
Joined: Sat 10 May 2008, 02:38
Location: Santa Cruz, CA

#47 Post by broomdodger »

zigbert wrote:Version 0.8.1
See main post

Changelog
Bugfix: Kill background loop when exiting from menu (thanks to broomdodger)
Thank you.
That fixed it.

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

#48 Post by zigbert »

Version 1.0.0
See main post

Changelog
- Gettext for locals.
- Sort by click on tree-header. Removed sort menu.
- pTiming icon.
- Switch from gtkdialog4 to gtkdialog as executable.
- Smoother color scheme.
- Bugfix: Edit timestamps using recent gtkdialog.
- Bugfix: Export result to spredsheet doesn't rank competitors.

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

#49 Post by zigbert »

Version 1.0.1
See main post

Changelog
- Bugfix: Kill background loop when exit gui (thanks to SFR)

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

#50 Post by zigbert »

Version 1.0.2
See main post

Changelog
- Adjust fontsize to fit 96dpi


Sigmund

Post Reply