Author |
Message |
disciple
Joined: 20 May 2006 Posts: 6991 Location: Auckland, New Zealand
|
Posted: Thu 20 Jan 2011, 11:35 Post subject:
|
|
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
|
Back to top
|
|
 |
seaside
Joined: 11 Apr 2007 Posts: 935
|
Posted: Thu 20 Jan 2011, 12:12 Post subject:
|
|
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: | tac() {
sed '1!G;h;$!d' $1
}
export -f tac |
should work.
Regards,
s
|
Back to top
|
|
 |
zigbert

Joined: 29 Mar 2006 Posts: 6608 Location: Valåmoen, Norway
|
Posted: Thu 20 Jan 2011, 15:30 Post subject:
|
|
Great stuff guys
- I will use sed instead of tac. Less dependencies is always good.
- I will fix the global ffontsize issue
Sigmund
_________________ Stardust resources
|
Back to top
|
|
 |
zigbert

Joined: 29 Mar 2006 Posts: 6608 Location: Valåmoen, Norway
|
Posted: Thu 20 Jan 2011, 20:17 Post subject:
|
|
tac stays...... (else new arguments)
sed works, but troubles inside gtkdialog code.
It is replaceable, but much cleaner code with tac.
Sigmund
_________________ Stardust resources
|
Back to top
|
|
 |
john biles

Joined: 17 Sep 2006 Posts: 1470 Location: Australia
|
Posted: Fri 21 Jan 2011, 03:52 Post subject:
|
|
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
Description |
|

Download |
Filename |
tac.tar.gz |
Filesize |
39.99 KB |
Downloaded |
1060 Time(s) |
_________________ Legacy OS 2017 has been released.
|
Back to top
|
|
 |
zigbert

Joined: 29 Mar 2006 Posts: 6608 Location: Valåmoen, Norway
|
Posted: Fri 21 Jan 2011, 09:21 Post subject:
|
|
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.
_________________ Stardust resources
|
Back to top
|
|
 |
seaside
Joined: 11 Apr 2007 Posts: 935
|
Posted: Fri 21 Jan 2011, 11:05 Post subject:
|
|
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
Description |
tac file from pup431
|

Download |
Filename |
tac.tar.gz |
Filesize |
8.39 KB |
Downloaded |
1051 Time(s) |
|
Back to top
|
|
 |
zigbert

Joined: 29 Mar 2006 Posts: 6608 Location: Valåmoen, Norway
|
Posted: Mon 24 Jan 2011, 07:57 Post subject:
|
|
Version 0.6
See main post
- Language support.
- Cancel button in preferences window.
_________________ Stardust resources
|
Back to top
|
|
 |
zigbert

Joined: 29 Mar 2006 Posts: 6608 Location: Valåmoen, Norway
|
Posted: Fri 28 Jan 2011, 20:38 Post subject:
|
|
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
_________________ Stardust resources
|
Back to top
|
|
 |
zigbert

Joined: 29 Mar 2006 Posts: 6608 Location: Valåmoen, Norway
|
Posted: Thu 27 Oct 2011, 14:03 Post subject:
|
|
esmourguit has improved the code to use the NLS-variables completely. I have uploaded 0.7-1.
Sigmund
_________________ Stardust resources
|
Back to top
|
|
 |
zigbert

Joined: 29 Mar 2006 Posts: 6608 Location: Valåmoen, Norway
|
Posted: Wed 22 Feb 2012, 10:34 Post subject:
|
|
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.
_________________ Stardust resources
|
Back to top
|
|
 |
broomdodger

Joined: 09 May 2008 Posts: 279 Location: Santa Cruz, CA
|
Posted: Tue 27 Mar 2012, 02:19 Post subject:
|
|
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
|
Back to top
|
|
 |
zigbert

Joined: 29 Mar 2006 Posts: 6608 Location: Valåmoen, Norway
|
Posted: Tue 27 Mar 2012, 12:28 Post subject:
|
|
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
_________________ Stardust resources
|
Back to top
|
|
 |
broomdodger

Joined: 09 May 2008 Posts: 279 Location: Santa Cruz, CA
|
Posted: Wed 28 Mar 2012, 00:02 Post subject:
|
|
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: | 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.
|
Back to top
|
|
 |
zigbert

Joined: 29 Mar 2006 Posts: 6608 Location: Valåmoen, Norway
|
Posted: Sat 31 Mar 2012, 13:43 Post subject:
|
|
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
_________________ Stardust resources
|
Back to top
|
|
 |
|