Tag: software

  • How to install mongodb on crostini (or, debian bookwarm)

    If you come across libssl1.1 issue, there’s an option of installing the library via ubuntu repository OR installing the mongodb itself from ubuntu repository. I personally prefer the latter since I don’t like having a single apt setting just for a single lib. Just follow https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-ubuntu/. If you don’t know if you’re on bookwarm, this…

  • 메트릭에 근간한 개발

    구글이 공유한 머신 러닝의 첫번째 규칙은 “Don’t be afraid to launch a product without machine learning.” 이다. 이를통해 가장 먼저 메트릭을 정의하고, 동작하는 파이프라인을 만들고, 실패하고, 펑가하고, 개선할 수 있기 때문이다. Stripe의 머신 러닝 엔지니어인 Emmanuel Ameisen 역시 “ML is an iterative process where the fastest way to make progress is to see how a…

  • .[x]profile, .[x]rc files

    I always forget what those .bash_profile, .bashrc, .zprofile, .zshrc do, so I’m summarizing them here: What does this mean? It’s natural for some code appear in both .profile and .rc, e.g., pyenv recommends it if certain non interactive login shell script relies on the pyenv.

  • Override mathjax in mdbook

    If your mdbook is using mathjax v2.x (which is the case when downloading mac binary), you can override its font and expression to trigger mathjax. In book.toml, add the followings And in mathjax-config.js (which should be at the top of your project directory and not under src): Change ‘scale’ to adjust font size. Also, see…

  • Better prompt formatting for LLM uses

    One of the typical way to format prompt is using { … } like the below: But it fails as soon as JSON is involved in the input or output. Then, what should we do? My proposal is using string.Template. Its primary purpose is i18n, but it also provides a much more safe formatting, e.g.,…

  • 저성과자와 일하는 고민

    성과가 아주 좋은 개발자는 그렇지 못한 개발자에 비해 100배 더 뛰어날까? 나는 그런 개발자가 팀을 이끌고 조직을 이끌면 그럴 수 있다고 본다. 그러나 1대 1로 붙었을 때 평균적인 개발자보다 100배가 뛰어나는 것은 불가능하다고 본다. 예를들어 워드 프레스 테마를 초기화하는 문제에대해 뛰어난 개발자는 누구보다 훨씬 빠르게 코드에서 답을 찾아 낼 수는 있겠지만 어떻게 초기화하는게 정석인지 까지…

  • How to erase customization in a wordpress template

    It was so painful to find out this. Deleting and reinstalling templates don’t reset the templates to the original one. I tried plugins like wp reset to reset theme, and tried database cleaner to find database table containing the customziation. I connected to the database in a command line and checked all the tables, but…

  • How to debug user warning in pydantic

    When pydantic comes across serialization issues, it outputs: But that doesn’t leave much trace to debug. To fix that, change warning filter. Then now you’ll see stack trace was the warning becomes an exception.

  • How to wait for ProcessPoolExecutor and ThreadPoolExecutor

    If your wait() doesn’t work, it’s probably due to exception that wasn’t caught. Catch it.

  • How do I compute sha256 for arbitrary python data

    Computing sha256 for python data is useful as ID or as filename. See this test.