Tag: software

  • Tuple is immutable in python

    I find this very interesting. These examples are from fluent python. Likewise… The reason of these behaviors are easier to understand if we take a look at the methods of tuple. Whenever += is called for tuple, say, a += b, what’s actually happening is a + b and then a = a + b.…

  • Forcing accessibility font size and dark theme on mobile chrome

    Chrome on Android has accessibility settings to override font size. But there are websites that the change doesn’t apply. Also, chrome doesn’t use dark theme even when system theme is using it. Enable these two flags at chrome://flags to fix them. Restarting Chrome, you’ll see new accessibility settings for fonts and new menu item on…

  • Use left option key as ALT for VIM on mac

    Use iterm2 and change the left option to ESC+ Once that done, left option will work as alt in the vim. But it will break your cursor movement in the shell, i.e., opt+left and opt+right won’t move cursor over words. To fix that, type in ‘cat’, type the key you want to bind, i.e., opt+left…

  • Use nerd font on chromebook terminal and changing the font size

    Press ctrl+shift+j in the terminal, then paste the below. See https://gist.github.com/izzqz/af36c5bbde67ffff0f7614cf738d75a5 for details. Plus, you can change font size. This is from https://chromium.googlesource.com/apps/libapps/+/HEAD/nassh/docs/FAQ.md#How-do-I-use-web-fonts p.s. It still doesn’t render all the icons, e.g,. vim-tree in nvim. I don’t know answer for that.

  • 의존성을 제거하여 생각하기

    초보 개발자 시절엔 모든 코드를 자기가 생각하는 주요 비즈니스로직에 따라 작성한다. 사용자가 입력을 주면 파일에 쓰고, 검색어를 입력하면 검색을 수행한다. 여기서 조금 발전하면 코너 케이스를 보게 된다. 사용자의 입력이 버퍼 오버플로우를 일으킬 수 있다. 사용자의 입력이 엉뚱한 곳에 저장되어 시스템에 부정적인 영향을 줄 수 있다. 이런 점들을 깨달은 엔지니어는 이제 모든일에서 빼먹기 쉬운 유의사항을 쉽게…

  • 개인용 pc 를 서버로 사용한 안전한 원격 작업 실행

    클라우드를 사용할 때 한가지 장점은 보안이다. 인프라 보안을 책임져주는 부분도 있겠지만 개인 pc 를 사용할 때 대비 털려도 개인 파일이 탈취당하지 않는다는 장점이 있다. 코드와 데이터는 털리더락도 개인용 pc의 은행 인증서까지 해킹당하는 시나리오 보단 낫다. 그렇다면 개인용 pc 를 보다 안전하게 원격으로 사용하여 프로그램을 실행하는 방법은 무엇일까. 여기서 고려하는 시나리오는 저성능 랩탑 클라이언트로 코딩하고 원격지에…

  • Welcome to sktime — sktime documentation

    https://www.sktime.net/en/latest/ 타임 시리즈 머신 러닝 라이브러리

  • Reinforcement Learning library

    RL에는 쉽게 갖다 쓸 수 있는게 없나 궁금했었는데 stable baseline3 이라는게 있군요.

  • 개인 프로젝트에 머신러닝에 클라우드를 쓸때의 장단점

    지금은 조금 익숙해 졌지만, 예전에는 몰랐던 머신러닝을 위해 클라우드를 사용할 때 장단점에 대해 써보려고 합니다. 클라우드의 큰 장점은 머신을 구입할 초기 비용을 들일 필요 없이 고사양 서버를 가질 수 있다는 것입니다. 또한 서버를 둘 공간도 필요가 없이 서버를 24시간 언제든지 가동할 수 있습니다. 더욱이 그 서버는 언제든지 원하는 사양으로 업그레이드 가능한데 64기가 메모리에서 128기가 메모리로…

  • A way to optimize Modin DataFrame

    If Modin is slower than expected, first thing to check is NPartitions. Simply put, it’s the number of partitions along columns and the rows. Since most of data frame one would be handling will be large (otherwise, why would use ray?), it will result in many more partitions than the number of multiprocessing.cpu_count(). One way…