Tag: software

  • shift+space로 한영 전환

    최근 맥 os 업데이트후 shift+space 한영전환이 막혔다. 해결 방법을 찾아 정리해둠. 카라비너를 설치한다. 권한을 주고 실행 후 Settings -> Complex Modification에서 다음 부분을 수정 이후 f18 로 shift+space가 맵핑이 된다. 맥의 settings -> keyboard shortcuts -> input methods에서 next source를 눌러 shift+space를 입력하면 f18이 입력되어 완성! 주의할 점은 karabiner는 어디까지나 키 입력을 받아 키 코드를…

  • Joblib Memory that expires after timelimit

    This doesn’t look well documented, but there’s an issue that trackes the problem a solution. I made it a bit simpler to use this way: And then you can use it like

  • poetry is great

    There are various tools for creating virtual env and I settled down with poetry. What’s great with poetry is that I can manage dependencies of development and serving. Dependencies of ‘dev’ can be specified using -G. For installing packages for serving, exclude a group as: Poetry creates pyproject.toml to list the packages I added. When…

  • How to add unittest to pre-commit

    I was looking for the predefined hooks but then learned that unittest can be easily written myself. What’s in the below runs all tests of the project. If you don’t use poetry, remove ‘poetry run’ from ‘entry’.

  • 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배가 뛰어나는 것은 불가능하다고 본다. 예를들어 워드 프레스 테마를 초기화하는 문제에대해 뛰어난 개발자는 누구보다 훨씬 빠르게 코드에서 답을 찾아 낼 수는 있겠지만 어떻게 초기화하는게 정석인지 까지…