분류 전체보기(864)
-
Windows의 WSL2 사용 레퍼런스
https://learn.microsoft.com/en-gb/windows/wsl/compare-versions Comparing WSL Versions WSL 2 provides the benefits of WSL 1, but uses an actual Linux kernel, rather than a translation layer like WSL 1, resulting in faster performance. learn.microsoft.com https://docs.docker.com/desktop/windows/wsl/ Docker Desktop WSL 2 backend on Windows docs.docker.com https://hoodiejun.tistory.com/11 윈도우에서 리눅스를..
2023.06.13 -
Python Mock Cookbook
클래스 메소드의 Mock을 처리하는 방법을 찾다가 괜찮은 레퍼런스를 발견했다. https://chase-seibert.github.io/blog/2015/06/25/python-mocking-cookbook.html Python Mock Cookbook The python mock library is one of the awesome things about working in Python. No matter what code you’re unit testing, it’s possible to mock out various pieces with very little test code. That being said, it’s sometimes difficult to figure out the ex chase..
2023.05.17 -
Sublime Text + Pylint
https://www.sublimelinter.com/en/stable/index.html Welcome to SublimeLinter — SublimeLinter 4.0.0 documentation © Copyright 2018, The SublimeLinter Community Revision 72c03227. www.sublimelinter.com https://packagecontrol.io/packages/SublimeLinter-pylint SublimeLinter-pylint - Packages - Package Control Browse SublimeLinter-pylint SublimeLinter plugin for python, using pylint. Details Installs ..
2023.05.09 -
Python용 TensorFlow 코드를 Swift용으로 컨버팅
Swift용 TensorFlow 라이브러리에서는 tf.gather나 tf.broadcast_to 등과 같은 간단한 함수들조차 제공하지 않아서, Python에서는 쉽게 구현한 코드를 Swift용으로 컨버팅을 하려면 같은 결과를 만드는 사용자 정의 함수를 만들어서 사용해야 한다. Swift에서 이미 배열 연산을 제공하기 때문에 크게 어렵지 않게 직접 구현 가능하다. https://www.tensorflow.org/api_docs/python/tf/gather tf.gather | TensorFlow v2.12.0 Gather slices from params axis axis according to indices. (deprecated arguments) www.tensorflow.org https://ww..
2023.04.21 -
Xcode 14.3에서 Cocoa Pods 관련 빌드 문제 생기는 문제
Xcode 14.3의 최소 iOS 버전이 11 이상으로 변경됨으로써 발생하는 문제인듯 하다. Cocoa Pods로 추가된 모듈 중에 8.0 과 같이 더이상 지원하지 않는 버전을 타게팅할 경우 libarclite_iphoneos.a 파일이 없다는 정체모를 문제가 생긴다. 8.0을 11.0 으로 변경해주고 다시 빌드하면 해결됨 https://stackoverflow.com/questions/75574268/missing-file-libarclite-iphoneos-a-xcode-14-3 Missing file libarclite_iphoneos.a (Xcode 14.3) After installing Xcode 14.3 in order to run my app on my ios 16.3 iPhone XS. ..
2023.04.19 -
Next.js로 React 앱 만들기
최근에 React 웹앱 프로젝트를 하나 시작하면서, 동료들이 더이상 create-react-app은 권장하지 않고 Next.js와 같은 대안을 이용해야 한다고 했다. 그래서 create-next-app을 이용해서 새로운 프로젝트를 생성했는데, 문제는 Next.js가 백엔드까지 붙어있는 프레임워크라서, 클라이언트 사이드 랜더링만 쓰려면 꼼수가 필요한 문제가 있었다. https://blog.logrocket.com/create-react-app-vs-next-js-performance-differences/ Comparing Create React App vs. Next.js performance differences - LogRocket Blog In this comparison of Next.js vs...
2023.04.19