tag:infinitekind.tenderapp.com,2009-01-14:/discussions/moneydance-development/1340-how-to-submit-a-new-extensionInfinite Kind: Discussion 2016-07-30T03:50:55Ztag:infinitekind.tenderapp.com,2009-01-14:Comment/385588492015-11-26T12:03:48Z2015-11-26T12:03:48ZHow to submit a new extension<div><p>Hi Jim,</p>
<p>Yes to submit an extension please send an email to <a href="mailto:sreilly@infinitekind.com">sreilly@infinitekind.com</a> with
a pointer to the source (preferably in an accessible git or
mercurial repository) and I'll then check it out, build, and sign
the compiled binary. If you are happy to distribute the extension
to the public we can also put it into the extension directory.</p>
<p>Thanks!<br>
Sean</p></div>Sean Reillytag:infinitekind.tenderapp.com,2009-01-14:Comment/385588492015-11-26T12:23:22Z2015-11-26T12:23:22ZHow to submit a new extension<div><p>Thanks. Here's the source: <a href="https://github.com/jameslarus/stockglance.git">https://github.com/jameslarus/stockglance.git</a></p>
<p>It is a plugin for the startpage that tracks stocks and lists in
a table<br>
the 1 day, 1 week, 1 month, and 1 year performance. A more
informative<br>
version of the list of stocks and prices in the existing
plugin.</p>
<p>Best<br>
/Jim</p></div>Jim Larustag:infinitekind.tenderapp.com,2009-01-14:Comment/385588492016-03-21T18:28:51Z2016-03-21T18:28:51ZHow to submit a new extension<div><p>Hi Jim,</p>
<p>Your Stock Glance extension is a GREAT! addition to the
homepage, thanks!</p>
<p>I'm experiencing two minor problems with it:</p>
<p>1) It displays the £ symbol for all my stock, rather than
the € symbol. The PRICE is correct, just the currency symbol
is incorrect. (FYI, My default Moneydance currency is €, the
base currency for my investment account is €, and all the
stock are listed in € on the Amsterdam Stock Exchange whose
currency is €.)</p>
<p>2) The last column, "% 365day", appears to be repeated, but the
second instance is very small and partially obscured by the first
instance. If I click away from the Summary Page and then back, the
repeated column disappears.</p>
<p>I'd like to suggest the addition of one column: current total
value, and of one row in which the total of current values is
displayed.</p>
<p>Moneydance 2015.7 build 1343, Windows 10</p>
<p>Again, thanks for your extension!</p>
<p>Regards,<br>
Scott.</p></div>JFGtag:infinitekind.tenderapp.com,2009-01-14:Comment/385588492016-03-22T12:27:14Z2016-03-22T12:27:14ZHow to submit a new extension<div><p>Hi Jim,<br>
Sorry for the long delay but I should mention that I've signed and
published this extension. I've also submitted a pull request to you
for a couple of minor tweaks to the build process.</p>
<p>Thanks for building such a handy tool!</p>
<p>Sean Reilly<br>
Developer, The Infinite Kind<br>
<a href="http://infinitekind.com">http://infinitekind.com</a></p></div>Sean Reillytag:infinitekind.tenderapp.com,2009-01-14:Comment/385588492016-03-24T14:50:17Z2016-03-24T14:50:17ZHow to submit a new extension<div><p>Thanks Sean and Scott for the pull request and helpful feedback.
I've<br>
accepted the pull request and fixed both of these bugs.</p>
<p>The code is on github.</p>
<p>For the additional suggestion (current total value), is there a
function to<br>
compute that somewhere in MD, or do I need to iterate over all of
the<br>
transactions to get this information?</p>
<p>/Jim</p></div>Jim Larustag:infinitekind.tenderapp.com,2009-01-14:Comment/385588492016-03-24T17:02:53Z2016-03-24T17:02:53ZHow to submit a new extension<div><p>Thanks for the quick response, Jim.</p></div>JFGtag:infinitekind.tenderapp.com,2009-01-14:Comment/385588492016-03-25T12:03:27Z2016-03-25T12:06:58ZHow to submit a new extension<div><p>Hi Jim,<br>
I don't think you'll need to iterate over all transactions, but you
might want to iterate over all accounts and add the value for
accounts with each security as their currency.</p>
<p>I think it'd look something like:</p>
<pre>
<code> public static HashMap<CurrencyType,Long> sumBalancesByCurrency(AccountBook book) {
HashMap<CurrencyType, Long> totals = new HashMap<CurrencyType,Long>();
for(Account acct : AccountUtil.allMatchesForSearch(book.getRootAccount(), AcctFilter.NON_CATEGORY_FILTER)) {
CurrencyType curr = acct.getCurrencyType();
Long total = totals.get(curr);
total = (total==null ? 0l : total.longValue()) + acct.getCurrentBalance();
totals.put(curr, total);
}
return totals;
}</code>
</pre>
<p>Can you let me know if that isn't what you were describing? I
really should add this to the built-in functions.</p>
<p>(edited to fix formatting and also to limit the total value for
currencies to non-categories)</p>
<p>Thanks!<br>
Sean Reilly<br>
Developer, The Infinite Kind<br>
<a href="http://infinitekind.com">http://infinitekind.com</a></p></div>Sean Reillytag:infinitekind.tenderapp.com,2009-01-14:Comment/385588492016-03-26T18:14:07Z2016-03-26T18:14:07ZHow to submit a new extension<div><p>OK, I've added the balance for each security and a total across
all<br>
securities. Good suggestion.</p>
<p>Thanks<br>
/Jim</p></div>Jim Larustag:infinitekind.tenderapp.com,2009-01-14:Comment/385588492016-03-28T09:57:13Z2016-03-28T09:57:13ZHow to submit a new extension<div><p>Excellent, I look forward to its release and will let you know
how it works.<br>
Scott.</p></div>JFGtag:infinitekind.tenderapp.com,2009-01-14:Comment/385588492016-03-28T10:15:38Z2016-03-28T10:15:38ZHow to submit a new extension<div><p>Wait please. There is a bug with leap year I'll fix today.</p>
<p>Jim</p></div>Jim Larustag:infinitekind.tenderapp.com,2009-01-14:Comment/385588492016-03-28T18:10:48Z2016-03-28T18:10:48ZHow to submit a new extension<div><p>OK, fixed that problem.<br>
/Jim</p></div>Jim Larustag:infinitekind.tenderapp.com,2009-01-14:Comment/385588492016-04-27T07:55:48Z2016-04-27T07:55:48ZHow to submit a new extension<div><p>Hi Jim, Thanks for the update to your Stock Glance extension.
Unfortunately it has a couple of problems. The first are the
balances, which are 100 times greater than my actual balances. My
guess is, it's taking the price to be cents rather than euros. So,
for example, instead of a balance/sum of 12,345.67 it displays a
balance/sum of 1,234,567. The second problem is that the bounding
frame is now much bigger than the list of stocks, so it pushes
everything else below it on the homepage off the screen (the
bounding frame used to exactly match the size of the list, now
there's a lot of empty space under the list). One minor cosmetic
issue is that the width of the list is about 1 or 2 pixels smaller
than the width of the bounding frame.<br>
Hope this helps.<br>
Scott.</p></div>JFGtag:infinitekind.tenderapp.com,2009-01-14:Comment/385588492016-04-27T07:58:32Z2016-04-27T07:58:32ZHow to submit a new extension<div><p>Scott,</p>
<p>Which version are you using? The latest is v4<br>
/Jim</p></div>Jim Larustag:infinitekind.tenderapp.com,2009-01-14:Comment/385588492016-04-28T08:02:56Z2016-04-28T08:02:56ZHow to submit a new extension<div><p>v4 is the one I'm using.</p></div>JFGtag:infinitekind.tenderapp.com,2009-01-14:Comment/385588492016-04-28T12:36:25Z2016-04-28T12:36:25ZHow to submit a new extension<div><p>Scott</p>
<p>I just push v5 with some changes to fix the currency symbol
and<br>
representation problems. Can you try it and let me know if it fixes
the<br>
problem.</p>
<p>I can't reproduce the UI problems on either a Mac or Win10
system. Can you<br>
send me a screenshot so I can see what the problem looks like?</p>
<p>Thanks<br>
/Jim</p></div>Jim Larustag:infinitekind.tenderapp.com,2009-01-14:Comment/385588492016-04-28T14:22:44Z2016-04-28T14:25:13ZHow to submit a new extension<div><p>Hi Jim,</p>
<p>Attached is a (partial) screenshot. As you can see, there's a
bounding frame around your Stock Glance extension, and it extends
way down below the actual bottom of the list, leaving a lot of
white space and pushing other extensions down.</p>
<p>Also (as I said, just a minor cosmetic detail), you can see the
right side of the list does not meet/overlap the bounding frame the
way the left side does.</p>
<p>I'm using MD 2015.7 (build 1343) on Windows 10 Pro (fully
updated).</p>
<p>Regards,<br>
Scott.</p></div>JFGtag:infinitekind.tenderapp.com,2009-01-14:Comment/385588492016-04-28T18:09:31Z2016-04-28T18:09:31ZHow to submit a new extension<div><p>Dear Scott</p>
<p>I think I've fixed both of these problems, but as I never saw
the white<br>
space issue on my system, can you try it out and let me know if it
works?</p>
<p>Thanks<br>
/Jim</p></div>Jim Larustag:infinitekind.tenderapp.com,2009-01-14:Comment/385588492016-04-29T07:52:00Z2016-04-29T07:52:00ZHow to submit a new extension<div><p>Hi Jim,<br>
I'll try it just as soon as Moneydance pushes the update. I'll keep
you posted...<br>
Regards,<br>
Scott.</p></div>JFGtag:infinitekind.tenderapp.com,2009-01-14:Comment/385588492016-04-29T08:36:43Z2016-04-29T08:36:43ZHow to submit a new extension<div><p>Hi Jim,<br>
I just discovered another UI issue (still on v4). If I have my
mouse-pointer above any other extension and use the scroll-wheel,
the whole homepage page scrolls. If my mouse-pointer is above the
Stock Glance extension, the page does not scroll (i.e. the Stock
Glance list is receiving the scroll messages).<br>
Regards,<br>
Scott.</p></div>JFGtag:infinitekind.tenderapp.com,2009-01-14:Comment/385588492016-04-29T08:40:39Z2016-04-29T08:40:39ZHow to submit a new extension<div><p>Yeah, I'm still trying to figure out the whole Java Gui mess.
Since I'm<br>
using a table, I put it in a JScrollPane, which is where they
normally go,<br>
and that seems to interact badly with the layout of the home page,
where<br>
everything else is a JPanel. I'll get it eventually, but I really
hate this<br>
type of fiddle GUI stuff.<br>
/jim</p></div>Jim Larustag:infinitekind.tenderapp.com,2009-01-14:Comment/385588492016-04-29T12:23:44Z2016-04-29T12:23:44ZHow to submit a new extension<div><p>Hi Jim,</p>
<p>I think in this case it'd be best to leave off the JScrollPane
since it conflicts with the smooth scrolling of the outer scroll
pane that contains the whole home page.</p>
<p>If it's a matter of simply having too many rows to feasibly
display I'd recommend having a "more..." link below the table if
there are more than a certain number of items.</p>
<p>Thanks!<br>
Sean</p></div>Sean Reillytag:infinitekind.tenderapp.com,2009-01-14:Comment/385588492016-04-29T17:59:36Z2016-04-29T17:59:36ZHow to submit a new extension<div><p>Yes, that makes sense. I've fixed the code and pushed a new
version to the<br>
repo with this change.</p>
<p>Best<br>
/jim</p></div>Jim Larus