Pstocks

Business software, financial software, etc.
Post Reply
Message
Author
jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

Pstocks

#1 Post by jpeps »

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. ... 69&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
Attachments
pstocks.png
(57.13 KiB) Downloaded 1216 times
pstocks-1.6.pet
(3.26 KiB) Downloaded 1132 times
Last edited by jpeps on Mon 20 Feb 2012, 17:40, edited 1 time in total.

jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

#2 Post by jpeps »

Version 1.5 Added a variable at top of script for setting minimum volume; also lowered the default to 100,000.

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#3 Post by technosaurus »

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 [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

#4 Post by jpeps »

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.

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#5 Post by technosaurus »

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 [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

#6 Post by jpeps »

Version 1.6: Kills orphaned pstock processes on exit.

Post Reply