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 Tue 25 Nov 2014, 19:10
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 Posts_count  
Author Message
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: Tue 24 Jan 2012, 18:06    Post_subject:  Pstocks
Sub_title: 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  775 Time(s) 
pstocks.png
 Description   
 Filesize   57.13 KB
 Viewed   995 Time(s)

pstocks.png


Edited_time_total
Back to top
View user's profile Send_private_message 
jpeps

Joined: 31 May 2008
Posts: 3220

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: 4379

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: 3220

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: 4379

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: 3220

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:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Business
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


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