viasfora url: https://viasfora.com/ 여러 기능이 있지만 가장 큰 기능은 ‘Rainbow Braces’ 이다. 이 기능을 사용하면 괄호를 중첩할 때 색을 다르게 표시하므로 중첩된 괄호를 구분하기 쉽다. 동작을 보고 싶다면 여기를 본다 CodeMaid url: https://marketplace.visualstudio.com/items?itemName=SteveCadwallader.CodeMaid 코드를 정리해 준다. 설명(일어) http://moriblog.kit-eng.com/?p=1199 Code alignment...
더 읽기
(몇년 전의 글을 블로그에 올린 것임) 참고 redis 4.0은 지금까지와는 비교하면 아마 가장 극단적인 버전 업 중 하나이다. 향후 사용자에 의해 발견된 중대한 문제는 수주일에서 수개월로 패치 발표할 테니 신중하게 이용하자. a modules system redis는 이미 해시형과 SET형이나 List형 등...
더 읽기
이 글은 여기 글을 번역,정리 한 것이다. 예제 코드는 여기 C# 네트워크 프로그래밍에서 비동기 IO를 사용할 때는 3가지 방법이 있다. 각 방법 별 성능은 아래와 같다. 구현 방법 행수 난이도 초당 요청 수 async/await 101 쉬움 56,916 비동기 소켓 170...
더 읽기
CMake와 같은 멀티 플랫폼 오픈소스 개발에 유용한 툴. lua를 통해 스크립트를 작성한다. 루아 파일 이름과 같은 이름의 솔루션 파일을 만들어준다. 현재 premake4와 premake5 두 가지 버전이 있다. Visual Studio 2013 이상을 지원하려면 premake5를 사용해야 한다. C, C++, or C# projects...
더 읽기
출처 커맨드 라인 옵션 파서 cli.go A small package for building command line apps in Go https://github.com/codegangsta/cli Cobra A Commander for modern Go CLI interactions https://github.com/spf13/cobra gcli The easy way to build Golang command-line application. https://github.com/tcnksm/gcli Go CLI Library A...
더 읽기
아래 명령어를 실행한다.
sudo apt search dotnet-sdk
dotnet-sdk 명령어
dotnet-sdk.dotnet
만약 「dotnet-sdk」 명령어로 「dotnet-sdk.dotnet」을 실행하고 싶다면 아래 명령어를 실행한다.
sudo snap alias dotnet-sdk.dotnet dotnet
더 읽기
모든 도큐먼트 가져오기 클래스 맵핑 var collection = GetDBCollection<DBBasic>("Basic"); var documents = await collection.Find(_ => true).ToListAsync(); return documents; BsonDocument var collection = GetDBCollection<BsonDocument>("Basic"); var documents = await collection.Find(new BsonDocument()).ToListAsync(); return documents; 검색 시 첫 번째 도큐먼트만 가져온다 클래스 맵핑 사용...
더 읽기
기본 추가 클래스 맵핑으로 새 도큐먼트 추가 var newData = new DBBasic() { _id = "test01", Level = 1, Exp = 0, Money = 1000, Costume = new List<int>(Enumerable.Repeat(0, 12)), }; // Basic 컬렉션에 추가한다 var collection = Common.GetDBCollection<DBBasic>("Basic"); await...
더 읽기
MongoDB 공식 C# Driver 1.x와 2.x 라이브러리가 많이 다름. 2.0 드라이버 소개 레퍼런스 온라인 도움 문서 Indexes.CreateOneAsync sample Find & FindAsync sample 아래 예제 코드에서 사용할 클래스 public class DBBasic { public string _id; // 유저ID public int Level; public...
더 읽기
wiredTiger 사용 conf 파일 예 // mongodb_wt.conf storage: dbPath: "/data/mongod_wt" engine: "wiredTiger" directoryPerDB: true wiredTiger: engineConfig: cacheSizeGB: 1 directoryForIndexes: true statisticsLogDelaySecs: 0 collectionConfig: blockCompressor: "snappy" indexConfig: prefixCompression: true journal: enabled: true systemLog: destination: file path: "/var/log/mongodb/mongodb_wt.log" logAppend: true processManagement: fork:...
더 읽기