News for hackers. Stuff that matters.

smichael

Re:Go’s Version Control History on Monday February 14, 2022 @09:45PM (#30342029)
These two are quite interesting:

- https://github.com/martinvonz/jj

- https://pijul.org

Re:Ask HN: Software you hate but can't replace? on Monday February 07, 2022 @12:19PM (#30247878)
Try other browsers; grid view still works in some of them (Chrome IIRC).
Re:Pijul 1.0 Beta on Friday January 21, 2022 @05:53PM (#30031002)
Off topic: why does this happen ? I thought the point of Cloudflare is to prevent it.
Re:Power, frequency, management: how M1 E cores win on Monday January 03, 2022 @04:48PM (#29787430)
You can do it with Canonical's multipass, for one.
Re:Why Co–Star Uses Haskell on Saturday November 06, 2021 @10:01PM (#29135833)
I moved from Python to Haskell, when I had had enough of debugging runtime failures. Excellent choice, go for it.
Re:Show HN: QuickServ – User-friendly web server on Wednesday October 27, 2021 @12:47PM (#29015777)
Thanks for explaining. My thinking was: by (optionally?) allowing the usual extra characters (#!python3 -> #!/usr/bin/env python3) it remains standard, avoiding an unnecessary roadblock for existing scripts and programmer workflows.

PS: I also like your shorter syntax and would be happy if it became a cross platform standard - Shebang 2.0..

Re:Show HN: QuickServ – User-friendly web server on Wednesday October 27, 2021 @02:40AM (#29010217)
I like it, thanks for sharing.

Why not a standard unix shebang line at top of index.py ?

Re:A Tour of the Oil Language on Thursday September 16, 2021 @12:57AM (#28548193)
The linked Tour is part of the documentation, which at a glance looks extremely extensive. You mention some issues; are you saying these docs are too hard to discover and lacking a good-enough TOC or index ?
Re:Plain Text Accounting, a guide to Ledger and friends on Monday September 06, 2021 @12:57PM (#28435650)
Thanks for these comments, good to know!
Re:Plain Text Accounting, a guide to Ledger and friends on Sunday September 05, 2021 @05:27PM (#28427976)
By all means - see you in one of the chats! https://plaintextaccounting.org/#mail-listsirc
Re:Plain Text Accounting, a guide to Ledger and friends on Sunday September 05, 2021 @04:35PM (#28427521)
> I mean I want to log income, spendings, exchanges in multiple currencies (or commodities), and then be able to see reports in a single currency -

All the major PTA tools support this - perhaps the chat could help ?

> my net worth, my income over period of time, capital gains / losses.

The first two are easy, the third is more complicated but also possible - unrealized gains at least, I forget how easy realized gains are in the various tools, it might not be fully automatic.

Re:Plain Text Accounting, a guide to Ledger and friends on Sunday September 05, 2021 @04:25PM (#28427448)
http://xbrl.squarespace.com aims at this problem, I think ?
Re:Plain Text Accounting, a guide to Ledger and friends on Sunday September 05, 2021 @12:44PM (#28425632)
> and input validation

Emacs users should look into Flycheck integration, eg https://hledger.org/editors.html#flycheck-hledger . Real time indication of parse and balance errors as you edit is nice!

Re:Plain Text Accounting, a guide to Ledger and friends on Sunday September 05, 2021 @11:41AM (#28425141)
Another advantage over spreadsheets I forgot: more guide rails and more common ground (shared practices, howtos, support) with other users. Spreadsheets are a tabular report construction kit, PTA is an accounting system construction kit.
Re:Plain Text Accounting, a guide to Ledger and friends on Sunday September 05, 2021 @11:36AM (#28425103)
https://hledger.org/mobile-apps.html

PS a little daily-ish data-entry-and-reconciling ritual, with a pleasant tool setup, can be quite satisfying! I actually look forward to it. (That right there is part of my PTA success story. I used to suffer a lot of stress around all things finance.)

Re:Plain Text Accounting, a guide to Ledger and friends on Sunday September 05, 2021 @11:23AM (#28424999)
True! I will look into it, thanks for the report.
Re:Plain Text Accounting, a guide to Ledger and friends on Sunday September 05, 2021 @11:11AM (#28424913)
ledger-mode in Emacs has some excellent account and description auto-completion (warning, may require a bit of configuration to suit your taste).

hledger add, hledger-iadd and hledger-web are some of the data entry uis with auto completion.

Alternatives: other ways of generating entries means less manual data entry, such as copy/paste in your editor, predefined templates (org-capture, yasnippet or equivalents), or conversion from bank csv data.

[PS I realize now you were asking for more than account name auto-completion, ie: filling in defaults for all postings (legs) when you reuse a transaction description. I don't know of many PTA tools doing this yet; hledger add is one.]

Re:Plain Text Accounting, a guide to Ledger and friends on Sunday September 05, 2021 @11:05AM (#28424867)
Do you mean, in the sense of https://hledger.org/investments.html#a-more-correct-entry ?

balancednoautoconversion validation may be relevant, if so (https://hledger.org/hledger.html#strict-checks)

Re:Plain Text Accounting, a guide to Ledger and friends on Sunday September 05, 2021 @03:41AM (#28422298)
It is a good question to ask. You say the FAQ has addressed it... I guess it was not convincing ? (If you remember where, please point me to it..)

PTA tools, some of them at least, can scale well from beginner-level single entry accounting, or even zero entry "accounting" (just a list of dated event descriptions), to fully general double entry accounting that can model any financial event. I always encourage people to start out simple. What usually happens is they learn and become more interested and more sophisticated as time goes on.

So I would say one group of people this appeals to is people who want to get their hands dirty with Double Entry Bookkeeping, with the support of a lively and enthusiastic community, in order to understand it better.

Another is people who are expert with text editors, scripting and programming and want an accounting system where they can bring these skills and insights to bear.

Another is people who want total control and privacy of their financial records.

Another is people who want their financial data to be accessible and usable for a very long time (even without software, if it came to that).

Re:Plain Text Accounting, a guide to Ledger and friends on Sunday September 05, 2021 @03:30AM (#28422256)
Some possibilities:

* Use a version control system - keep journal files in eg a github repo; control access, manage pull requests, audit changes in the usual way.

* Use multiple files - the journal can be composed from multiple files, each with different filesystem permissions/accessibility.

* Maintain files on a server, and run a web UI like hledger-web or fava, perhaps behind a login form, to give read-only or add-only access to remote users.

Re:Plain Text Accounting, a guide to Ledger and friends on Sunday September 05, 2021 @03:24AM (#28422236)
I have not used the SQL output, but I hope it's like all other hledger output: the number formatting is configurable (following your data format by default, but overrideable).
Re:Plain Text Accounting, a guide to Ledger and friends on Sunday September 05, 2021 @03:19AM (#28422211)
Another data point: 95% of my data entry (all but cash) is automatic CSV download (using plaid2qif) and mostly-automatic deduplicating import (I tweak the import rules when needed). So, a daily `make import`. I have also run this from a nightly cron job. For most of us, that's a little too automatic; usually we want a bit more oversight and awareness.
Re:Plain Text Accounting, a guide to Ledger and friends on Sunday September 05, 2021 @03:05AM (#28422156)
Spreadsheets have lots of strengths. I believe one of the difficulties is (a) managing an increasingly large number of transactions over time, with (b) an uncertain number of postings to (c) arbitrary accounts in a hierarchy. Though I haven't tried myself, I suspect modelling a full double-entry-bookkeeping General Journal in a spreadsheet just gets cumbersome. Secondly, while certain kinds of calculations and queries are easier in a spreadsheet, other kinds of queries and ad hoc reports are easier with PTA tools. Thirdly (big one), the plain text format lends itself to version control (good for data integrity and auditing), scripting and integration, and future-proofness.

An example of Ledger/hledger's main file format:

    2021-01-01 opening balances on january 1st
        assets:checking         $1000  ; a posting, increasing assets:checking's balance by $1000
        assets:cash              $100
        liabilities                $0
        equity                 $-1100  ; each transaction must sum to zero
    
    2021-03-05 client payment
        assets:checking         $2000
        revenues:consulting    $-2000  ; revenues/liabilities/equity normally appear negative
    
    2021-03-20 Sprouts
        expenses:food:groceries  $100
        assets:cash               $40
        assets:checking                ; a missing amount will be inferred ($-140 here)
Re:Plain Text Accounting, a guide to Ledger and friends on Saturday September 04, 2021 @11:34PM (#28421440)
Currently yes. hledger has rudimentary SQL export (https://hledger.org/hledger.html#output-format).
My favourite of all the posts here. I would love to read a how-to for ignorant techies, describing all the details and how it takes hardly any time.
You'd be a bit late..
Re:Show HN: Live Feed of the HN Top 30 as an IRC Channel on Sunday April 04, 2021 @04:14PM (#26692487)
/join #freenode_##hntop:matrix.org

Or Explore, Freenode, hntop.

Older »