8 karma · joined Sep 25, 2012 (14y ago) · 3 submissions
comment 4y ago · link · parent
2) I think the author is overselling the "you don't need that much information" point - comparison of Scubapro in dive mode vs Apple Watch in safety stop mode is apples to oranges. During a (recreational, no deco) dive you need exactly these 4 pieces of information that are displayed on the Scubapro: time, depth, no-deco time, and tank pressure (and if the last one is missing it's not because it's not important, it's because you don't have remote pressure gauge which is a separate piece of hardware, and instead you need to frequently reach for a separate pressure gauge that's physically attached to the tank). To be fair I'm sure Apple Watch will display the NDL time in a dive mode, as long as you paid your subscription, so this is critique of the article not the watch
3) Heinrichs Weikamp was already identified in comments of the article, one more company that worked on an open-source dive computer was Liquivision (which I worked for for some time in college). It was eventually bought by Huish, just like Oceanic :)
comment 7y ago · link · parent
If you borrow your friend money, the fact that someone owes you that money is an asset. If you split rent with someone, and you don't settle it all immediately, that's also an asset or liability. If you do any independent work, double entry lets you realize that when you do the work, and then it's waiting in your receivables until you get paid. Someone pointed out that you don't usually have multiple accounts, but it doesn't have to be just bank accounts - we're talking broker accounts, retirement accounts, savings, credit cards, etc., transfers to these things should not show as expenses. Additionally, you can get smarter and (just like a business) remove money from your available pool, and budget for future.
To be fair, some single-entry bookkeeping tools probably implement some of these features, but in that case they really are just trying to simulate double entry bookkeeping.
On a higher level, I suspect that double entry for individuals would be more popular among HN crowd that in outside world; software is area that slightly selects for people being a little anal about code quality, getting all cases / code paths covered etc., and that is similar quality to wanting to make sure your accounts are in order.
comment 13y ago · link · parent
1) recognize q1 * q2 = 2^p1 * 2^p2 = 2^(p1 + p2), so instead of iterating over q1 then q2, iterate over p = p1 + p2
2) memorize some of the combinations; e.g. if you iterate over p, r1 & r2, then you know that all you're trying to find is two integers f1 & f2 that are equal to output * r1 * r2 * 2^p / input; so before you start solving the problem, calculate table T:
for (int f1 = 1; f1 <= 256; ++f1)
for (int f2 = 1; f2 <= 256; ++f2)
T[f1 * f2] = f1
now you can check whether integer pair (f1,f2) exists, you can just check whether T[output * r1 * f2 * 2^p / input] is non-zero.
Also, output * r1 * r2 * 2^p has to be divisible by input, so after you iterate over p & r1, you can iterate only over r2's being multiples of input / gcd(input, output * r1 * 2^p)There could be possibly some more tricks found.