Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 18 Apr 2014, 17:15
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
pTiming 1.0.3 - Event timer system
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post new topic   Reply to topic View previous topic :: View next topic
Page 3 of 4 [52 Posts]   Goto page: Previous 1, 2, 3, 4 Next
Author Message
disciple

Joined: 20 May 2006
Posts: 6378
Location: Auckland, New Zealand

PostPosted: 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.
_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
seaside

Joined: 11 Apr 2007
Posts: 878

PostPosted: 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
View user's profile Send private message 
zigbert


Joined: 29 Mar 2006
Posts: 5562
Location: Valåmoen, Norway

PostPosted: 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
View user's profile Send private message Visit poster's website 
zigbert


Joined: 29 Mar 2006
Posts: 5562
Location: Valåmoen, Norway

PostPosted: 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
View user's profile Send private message Visit poster's website 
john biles


Joined: 17 Sep 2006
Posts: 1379
Location: Australia

PostPosted: 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
tac.tar.gz
Description 
gz

 Download 
Filename  tac.tar.gz 
Filesize  39.99 KB 
Downloaded  687 Time(s) 

_________________
Legacy OS 2.1 LTS Released! Install me on a new! EXT2 Partition with 500Mb of swap and I'll be happy. Razz
Legacy OS 4 Released! Install to newer legacy hardware / early EeePC's Very Happy
Back to top
View user's profile Send private message Visit poster's website 
zigbert


Joined: 29 Mar 2006
Posts: 5562
Location: Valåmoen, Norway

PostPosted: 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
View user's profile Send private message Visit poster's website 
seaside

Joined: 11 Apr 2007
Posts: 878

PostPosted: 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
tac.tar.gz
Description  tac file from pup431
gz

 Download 
Filename  tac.tar.gz 
Filesize  8.39 KB 
Downloaded  685 Time(s) 
Back to top
View user's profile Send private message 
zigbert


Joined: 29 Mar 2006
Posts: 5562
Location: Valåmoen, Norway

PostPosted: 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
View user's profile Send private message Visit poster's website 
zigbert


Joined: 29 Mar 2006
Posts: 5562
Location: Valåmoen, Norway

PostPosted: 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
View user's profile Send private message Visit poster's website 
zigbert


Joined: 29 Mar 2006
Posts: 5562
Location: Valåmoen, Norway

PostPosted: 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
View user's profile Send private message Visit poster's website 
zigbert


Joined: 29 Mar 2006
Posts: 5562
Location: Valåmoen, Norway

PostPosted: 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
View user's profile Send private message Visit poster's website 
broomdodger


Joined: 09 May 2008
Posts: 269
Location: Santa Cruz, CA

PostPosted: 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
View user's profile Send private message 
zigbert


Joined: 29 Mar 2006
Posts: 5562
Location: Valåmoen, Norway

PostPosted: 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
View user's profile Send private message Visit poster's website 
broomdodger


Joined: 09 May 2008
Posts: 269
Location: Santa Cruz, CA

PostPosted: 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
View user's profile Send private message 
zigbert


Joined: 29 Mar 2006
Posts: 5562
Location: Valåmoen, Norway

PostPosted: 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
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 3 of 4 [52 Posts]   Goto page: Previous 1, 2, 3, 4 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0701s ][ Queries: 13 (0.0088s) ][ GZIP on ]