Monday, June 03, 2024
reading two books:
there's also a podcast about the first book: SE Radio 497: Richard L. Sites on Understanding Software Dynamics
Implementing GUIs using Clojure and LWJGL Nuklear bindings
What do I think about Lua after shipping a project with 60,000 lines of code?
Wednesday, June 05, 2024
learned pocketbase: Open Source realtime backend in 1 file from this episode: The Modern Dev CMS - Pocketbase - Syntax #777
I tried and it's pretty useful, and it's just a single binary and sqlite db files, I think I'll add it to my toolbox
more tools around sqlite
this one is interesting: andyk/ht: headless terminal - wrap any binary with a terminal interface for easy programmatic access.
as it said it's like a headless browser but for terminals, means I can send command to a terminal app
Thursday, June 13, 2024
reading couple books:
turns out ht is not useful for my project, the issue is when main program got terminated, it can only kill the ht process, not able to kill child processes spawned by ht
and I don't have the need to maintain a tui view, it's overkill to use it for my case
Wednesday, June 19, 2024
reading Hypermodern Python Tooling, it introduces modern tools like rye, hatch, pipx and uv
I tried some hatch
$ hatch python install 3.12
$ hatch python remove 3.12
create virtual env
$ hatch env create
$ hatch shell
then use exit
to quit and hatch env show
to check
removal is just hatch env remove
for simplicity reason, hatch
only uses python
in the PATH
, to use specific python version can use something like
export PATH=$(hatch python find 3.11):$PATH
environment in hatch is a bit different than the virtual environment I used to use, they're global that allows applicaion to use one environment for running and another environment for testing
also dependencies are added to project config manually, unless using plugin like hatch-requirements-txt
it's interesting and useful under project setup, but I feel more comfortable with requirements.txt
:
alias py="\"$(hatch python find pypy3.10)\""
py -m venv venv
source venv/bin/activate
python -m ensurepip
pip install <pacakge>
pip freeze > requirements.txt
Monday, June 24, 2024
Microfeatures I Love in Blogs and Personal Websites, even more in the hn comments
I only like plain html, with one exception: I love to have a preview on hover for footnotes
Start all of your commands with a comma is such a good idea for personal commands/scripts, I may start to adapt it
Ruby: a great language for shell scripts!
again, there are more gems in the hn comments
nowadays I use babashka for heavy scripting, but I've missed how easy it is to get results by wrapping backticks around shell commands
Wednesday, June 26, 2024
I borrowed Simon Willison's OCR and integrated into my notebook
tesseract.js can also be run in the command line, so I have a quick setup for screen capturing and watch a folder to run the OCR, data is saved to a sqlite db for searching (yes, sounds just like Microsoft Recall)
Friday, June 28, 2024
I quite like this one: Making the Kinopio Source Code Public
adding it to my notebook toolbox
kinopio is a local-first app, the difference between local-first and local apps:
If it doesn’t go to the internet at all, it’s just local software.
more local-first resources:
Blog Archive
- Newer Entries
- 2024 August
- 2024 September
- 2024 October
- 2024 November
- Older Entries
- 2024 May
- 2024 April
- 2024 March
- 2024 February
- 2024 January
- 2023 December
- 2023 November
- 2023 October
- 2023 September
- 2023 August
- 2023 July
- 2023 April
- 2023 March
- 2023 February
- 2023 January
- 2022 December
- 2022 November
- 2022 October
- 2022 September
- 2022 August
- 2022 July
- 2022 June
- 2022 May
- 2022 April
- 2022 March
- 2021 December
- 2021 September
- 2021 August
- 2021 June
- 2021 May
- 2021 April
- 2021 March
- 2021 February
- 2021 January
- 2020 December
- 2020 November
- 2020 October
- 2020 September
- 2020 August
- 2019 December
- 2019 November
- 2019 October
- 2019 July
- 2019 May
- 2019 April
- 2019 March
- 2019 February
- 2019 January
- 2018 December
- 2018 November
- 2018 October
- 2018 September
- 2018 August
- 2018 July
- 2018 June
- 2018 May
- 2018 April
- 2018 March
- 2018 February
- 2018 January
- 2017 December
- 2017 November
- 2017 October
- 2017 September
- 2017 August
- 2017 July
- 2017 June
- 2017 May
- 2017 April
- 2017 March
- 2017 February
- 2017 January
- 2016 December
- 2016 November
- 2016 October
- 2016 September
- 2016 August
- 2016 July
- 2016 June
- 2016 May
- 2016 April
- 2016 March
- 2016 February
- 2016 January
- 2015 December
- 2015 November
- 2015 October
- 2015 September
- 2015 August
- 2015 July
- 2015 June
- 2015 May
- 2015 April
- 2015 March
- 2015 February
- 2015 January
- 2014 December
- 2014 November
- 2014 October
- 2014 September
- 2014 August
- 2014 March
- 2014 February
- 2014 January
- 2013 December
- 2013 October
- 2013 July
- 2013 June
- 2013 May
- 2013 March
- 2013 February
- 2013 January
- 2012 December
- 2012 November
- 2012 October
- 2012 September
- 2012 August