Inane Observations $ sudo fix_it
  • Using selenium to scrape/import bank transactions for ledger-cli

    29 April 2020 (updated 18 May 2020) | bookkeeping ledger plain-text accounting programming | Comment

    Ledger is a powerful command-line plain-text double-entry bookkeeping system, with the capacity to import transactions from CSV files. In America, many banks provide APIs to access transaction feeds, which can be then directly imported into Ledger. However, in Australia, this is not the case.

    Some… »

  • ledger-pyreport: Formal accounting reports for ledger-cli

    31 March 2020 (updated 17 April 2020) | bookkeeping ledger plain-text accounting | Comment

    Ledger is a powerful command-line plain-text double-entry bookkeeping system. It is agnostic as to higher-level accounting principles, which makes it a very versatile tool for a wide variety of use cases, but does create challenges when extracting formal accounting reports. For example, Ledger struggles to… »

  • Incorrect accounting of unrealised gains in ledger-cli

    31 March 2020 | bookkeeping ledger plain-text accounting | Comment

    Problem 1

    Consider the following Ledger journal:

    2019-07-01 Opening balances Assets:Current:Cash at Bank $1000.00 Equity:Opening Balances 2019-07-02 Application Assets:Current:International Account 100.00 EUR @ $1.10 Assets:Current:Cash at Bank 2019-08-02 Application Assets:Current:International Account 100.00 EUR @ $1.05 Assets:Current:Cash at Bank 2019-09-02 Redemption Assets:Current:Cash at Bank $57.50 Assets:Current:International
    … »
  • FIFO inventory with ledger-cli

    11 December 2019 | bookkeeping ledger plain-text accounting | Comment

    Ledger is a powerful command-line plain-text accounting system. It has extensive built-in support for tracking complex ‘commodities’, such as currencies and inventory items, but does not support FIFO valuation.

    This is a small Python script that can take input from Ledger, break down the prices… »

  • Home
  • Git (Archives: GitLab, GitHub)
  • Research
  • Music
  • Posts
    • May 2025 (1)
    • December 2024 (2)
    • November 2024 (2)
    • September 2024 (2)
    • August 2024 (1)
    • More…
  • Tags
    • medicine (25)
    • copyright (20)
    • opentally (20)
    • drm (19)
    • encryption (12)
    • monash (12)
    • mathematics (11)
    • statistics (10)
    • proportional representation (8)
    • victoria (8)
    • law (7)
    • meeting procedure (7)
    • ptv (7)
    • public transport (7)
    • rust (7)
    • defective by design (6)
    • digital rights management (6)
    • python (6)
    • creative commons (4)
    • webassembly (4)
    • metro trains (3)
    • paediatrics (3)
    • politics (3)
    • 2fa (2)
    • graphics (2)
    • mfa (2)
    • pdf (2)
    • victorian electoral commission (2)
    • android (5)
    • security (18)
    • cryptography (12)
    • programming (12)
    • voting systems (8)
    • med in review (11)
    • music (10)
    • parliamentary procedure (7)
    • totp (2)
    • reverse engineering (20)
    • obfuscation (12)
    • single transferable vote (19)
    • ebook (16)
    • elections (12)
    • java (6)
    • linux (32)
  • Lee Yingtong Li
  • blog@yingtongli.me
  • My CV · CV of Failures
@RunasSudo

Most material on this website is available under an open licence. See https://yingtongli.me/blog/copyright.html for details.