HNHacker News
TopNewBestAskShowJobs

abfar

8 karma · joined November 25, 2018

submissionscomments
abfar··on Show HN: Reduce: A Daily Puzzle
Nice puzzle. Hope you keep it up for a while.

Can you please explain the "how everyone did" table? For example, after I finished the puzzle I got this table:

  2  0  0  0  17
  7  6  5  4  3
abfar··on Show HN: I rewrote my notepad calculator as a local-first app with CRDT syncing
Nice tool, but the calculator executes division before exponentiation. E.g. 2^4/2 is evaluated to 4, not 8. However, it executes exponentiation first before multiplication (e.g. 2^2*3 is evaluated to 12). Is this intentional?
abfar··on Setelinleikkaus: When Finns snipped their cash in half to curb inflation
Indonesia's government also implemented this exact policy in 1950. The policy was called "Gunting Sjafruddin" or "Sjafruddin Cut" after the minister Sjafruddin Prawiranegara. Not sure about the impact though.

This article wrote about it: https://yohanesnuwara.medium.com/most-thought-provoking-mone...

abfar··on Ledger
Oops I messed the formatting for the example. Here we go:

    24feb
    12.5 cash food eating out at xx
    6.5 bank1 phonebill
    25feb
    ...
abfar··on Ledger
I've been using hledger for two years now, and I don't use any exported data from my banks. Here's my workflow:

Everytime I make a transaction, I put a note on my phone. The note is a simplified version of hledger file format. Example:

24feb 12.5 cash food eating out at xx 6.5 bank1 phonebill 25feb ...

and so on. As you can see, each block is started with the date, and each line corresponds to a journal entry. In each entry, the first item is the dollar amount, the 2nd item is the credited account, the 3rd item is the debited account, and the rest will be taken as the entry description.

Every week end, I will parse this note with a Python script that I wrote, and put the output in the actual journal file. The shorthand account names in the note will be converted into actual account name (e.g. 'bank1' to 'assets:bank:bank1'), based on a dictionary file.

I'd then proceed to manually check that all ending balances in hledger match with the actual amount in the real world. (It's pretty satisfying to see the numbers match.)

After I've finished processing the note from my phone, that note will be archvied and I will start with a new note.

abfar··on Typora: A truly minimal markdown editor
I also just use Vim to write markdowns, but without any markdown plugins (beside the built-in markdown syntax highlighting in Vim) and I compile the document to pdf manually using Pandoc. I rarely need to write markdowns though, and my usage is not advanced at all (like to write simple writeups that sometimes require maths and code blocks, which I only use for myself). So Vim + Pandoc is enough for me.
abfar··on The On-Line Encyclopedia of Integer Sequences
I haven't checked the podcast, but the YouTube channel has uploaded some videos featuring him pretty recently, which I found to be very amusing.
abfar··on Economists are now admitting that they were wrong about globalization
Also IIRC much of the "trade" created by free trade agreements are not trade at all, but movements of goods internal to a company (e.g. US companies produce goods in a factory in Mexico and later move those goods back to US to be sold).
abfar··on TikTok explains its ban on political advertising
What if we require that every $1 spent by someone on a political ad must also be balanced by a $1 subsidy for the opponents' ads? Seems fair to me and would reduce the impact of money. (I'm sorry but I forgot who proposed this idea.)
abfar··on How the Stock Market Works
In addition, the market makers gain profit from this activity by buying at a slightly lower price than the selling price.
abfar··on Sea People: The Puzzle of Polynesia
The first settlers of Madagascar are also Austronesians, came from Borneo between 350 BC and 550 AD [1]. If you look at a world map you can see just how far those two islands are.

[1] https://en.m.wikipedia.org/wiki/Madagascar