Author |
Message |
jpeps
Joined: 31 May 2008 Posts: 3217
|
Posted: 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
Description |
|

Download |
Filename |
pstocks-1.6.pet |
Filesize |
3.26 KB |
Downloaded |
958 Time(s) |
Description |
|
Filesize |
57.13 KB |
Viewed |
1133 Time(s) |

|
Last edited by jpeps on Mon 20 Feb 2012, 13:40; edited 1 time in total
|
Back to top
|
|
 |
jpeps
Joined: 31 May 2008 Posts: 3217
|
Posted: 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
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 4787 Location: Kingwood, TX
|
Posted: 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)
_________________ Check out my github repositories. I may eventually get around to updating my blogspot.
|
Back to top
|
|
 |
jpeps
Joined: 31 May 2008 Posts: 3217
|
Posted: 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
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 4787 Location: Kingwood, TX
|
Posted: 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)
_________________ Check out my github repositories. I may eventually get around to updating my blogspot.
|
Back to top
|
|
 |
jpeps
Joined: 31 May 2008 Posts: 3217
|
Posted: Mon 20 Feb 2012, 13:41 Post subject:
|
|
Version 1.6: Kills orphaned pstock processes on exit.
|
Back to top
|
|
 |
|