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 Mon 21 Apr 2014, 11:49
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Business
Pstocks
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [6 Posts]  
Author Message
jpeps

Joined: 31 May 2008
Posts: 3219

PostPosted: Tue 24 Jan 2012, 18:06    Post subject:  Pstocks
Subject description: GUI for getting stock quotes
 

Based on a script posted by technosaurus. Initially opens up editor for creating a quote page. List one symbol per line. Includes a doc that lists optional format strings.

Pstocks will use mc calculator if loaded for more accurate rounding of volume

http://murga-linux.com/puppy/viewtopic.php?t=62969&start=7


Also runs from terminal: "pstocks [symbol]" or "pstocks -q" (quotepage).

Version 1.5 Added variable at top of script for setting minimum volume, and set default at 100,000 vs 200,000.

Version 1.6 Kills orphaned pstock processes on exit
pstocks-1.6.pet
Description 
pet

 Download 
Filename  pstocks-1.6.pet 
Filesize  3.26 KB 
Downloaded  715 Time(s) 
pstocks.png
 Description   
 Filesize   57.13 KB
 Viewed   890 Time(s)

pstocks.png


Last edited by jpeps on Mon 20 Feb 2012, 13:40; edited 1 time in total
Back to top
View user's profile Send private message 
jpeps

Joined: 31 May 2008
Posts: 3219

PostPosted: Thu 02 Feb 2012, 17:59    Post subject:  

Version 1.5 Added a variable at top of script for setting minimum volume; also lowered the default to 100,000.
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4134

PostPosted: Sun 05 Feb 2012, 00:03    Post subject:  

I apologize for contributing bad examples but I only recently learned of the speed gains with gtkdialog's -s option (I already posted in the gtkdialog tips thread)

rather than doing
gtkdialog -p MAIN_DIALOG
it is extremely faster (especially for large tables) to
gtkdialog -s <<< "${MAIN_DIALOG}"

it may help when you follow a lot of stocks
(now off to write my pupzip replacement with this new-found knowledge, it already loads up ~10x faster than xarchive)

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
jpeps

Joined: 31 May 2008
Posts: 3219

PostPosted: Sun 05 Feb 2012, 02:11    Post subject:  

technosaurus wrote:

(now off to write my pupzip replacement with this new-found knowledge, it already loads up ~10x faster than xarchive)


Interesting..I couldn't confirm. I ran 10 trials both ways, and actually got a .0124 second advantage with -p (statistically insignificant). --measured through load up.

I ran the measurement differently, ending after <window>' , and got a slightly better time for -s of about .01 second with 20 trials. Maybe not statistically significant, but could be theoretically faster.
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4134

PostPosted: Sun 05 Feb 2012, 03:18    Post subject:  

Thunor has fixed it in recent gtkdialogs and it only makes a difference in really large (typically autogenerated) guis, but I still use older pups to ensure packages I build work on both old and new versions of pup, so I use gtkdialog3 (and now gtkdlg1 - goingnuts' backport to gtk1)
_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
jpeps

Joined: 31 May 2008
Posts: 3219

PostPosted: Mon 20 Feb 2012, 13:41    Post subject:  

Version 1.6: Kills orphaned pstock processes on exit.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [6 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Business
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.0427s ][ Queries: 13 (0.0049s) ][ GZIP on ]