전체 글

https://github.com/gofiber/fiber/issues/788 🐛 go get isn't working in v2. · Issue #788 · gofiber/fiberFiber version v2 Issue description I tried installing fiber with the g import "github.com/gofiber/fiber/v2" go get command and it is not working, go get -u or the go modules are also of no help. Co...github.com go get github.com/gofiber/fiber/v2명령어가 package github.com/gofiber/fiber/v2 is not a ..
1. http://golang.site/ 예제로 배우는 Go 프로그래밍쉽고 재미있는 Go 프로그래밍 예제로 배우는 Go 프로그래밍 I like a lot of the design decisions they made in the [Go] language. Basically, I like all of them. - Martin Odersky, Creator of Scalagolang.site 2. https://go.dev/doc/tutorial/getting-started Tutorial: Get started with Go - The Go Programming LanguageDocumentation Tutorials Tutorial: Get started with Go Tutorial: Get start..
1. data type 추상화 jsconst user = { name: "Hayes", id: 0,}; tsinterface User { name: string; id: number;}  2. 필요하다면 return type 명시interface User { name: string; id: number;}class UserAccount { name: string; id: number; constructor(name: string, id: number) { this.name = name; this.id = id; }}const user: User = new UserAccount("Murphy", 1);  3. js 원시 타입(primitive type)- boolean, big..
메이플스토리월드 - 메이플스토리 리소스를 기반으로 무료로 월드를 창작하고 플레이할 수 있는 메타버스 기반 플랫폼.   메이커 사용 가이드    Workspace 소개   1. BaseEnvironment : 메이커에서 제공하는 모델과 스크립트 등이 저장된 폴더. 기본 Component, Service, Logic, Event가 저장되어 있습니다. 2. MyDesk : 크리에이터가 만든 리소스를 보관하는 폴더. 크리에이터가 추가한 리소스, BaseEnvironment에서 확장, 복제한 모델, 컴포넌트 등이 추가됩니다. 3. DefaultPlayer : 작업의 편의를 위한 폴더. NativeModel에 있는 Player의 정보를 참조하고 있습니다.     1. BaseEnvironment메이커에서 기본 제공..
· 메모
가장 눈에 띄는 차이점은 session.query()문의 사용이다. 2.0버전 부터는 select문과 함께 session.execute()문을 같이 사용하는 형태로 이를 대체한다. session.query()문은 이제 레거시 API로 다음과 같은 warning이 표시된다. SADeprecationWarning: Object should not be used directly in a SQL statement context, such as passing to methods such as session.execute(). This usage will be disallowed in a future release. Please use Core select() / update() / delete() etc. wit..
· 메모
웹 컴포넌트는 템플릿(Templates), 데코레이터(Decorators), 커스텀 엘리먼트(Custom Element), 섀도 DOM(Shadow DOM)으로 구성되어 있다. https://d2.naver.com/helloworld/188655
· 메모
api로 db에 값을 넣었는데 글자가 깨지는 현상이 발생했다. 이에 대처 방법을 찾아보았다. 1. api와 연결된 db enconding확인하기 본인은 postgresql databse와 sqlalchemy를 사용하므로 이를 참고해 sql의 charset을 utf로 변경했다. engine = create_engine("postgresql+psycopg2://user:pass@host/dbname?client_encoding=utf8") https://docs.sqlalchemy.org/en/20/dialects/postgresql.html#unicode PostgreSQL — SQLAlchemy 2.0 Documentation PostgreSQL’s full text search system is ava..
· 메모
back_populates sqlalchemy 문서에 의하면 back_populates는 realation이 클래스에 동기화될 관련 클래스의 이름을 나타내는데 사용된다. 이로 인해 관련된 양 쪽 relation이 파이썬 내의 상태 변경을 동기화(synchronize)할 수 있도록 도와준다. back_populates보다 간결한 구문인 relation.backref가 있지만 레거시코드이니 back_populates를 쓰도록 하자.
· 메모
application/x-www-form-urlencoded 보통 Axios는 JSON을 사용한다. 그렇기 때문에 application/x-www-form-urlencoded 포맷으로 데이터를 전송하기 위해서는 axios에서 제공하지 않는 다른 방법을 사용해야 한다. 나는 node.js환경에서 작업하고 있기 때문에 querystring 모듈을 사용하였다. data 나는 원래 axios로 post요청 보낼 때는 항상 data를 썼는데, 여기서 data란 axios에서 지원하는 request body이다. 이때에는 Content-Type이 application/json이다. 둘의 차이점은 데이터를 보내는 형식이다. application/json은 {key:value}형식으로 데이터를 보내지만, applica..
· 파이썬
사용할 데이터 https://www.data.go.kr/data/15083256/fileData.do 한국소비자원_생필품 가격 정보_20221223 한국소비자원 참가격정보서비스에서 제공하고 있는 생필품 가격 정보로 상품명, 조사일, 판매가격, 판매업소, 제조사, 세일여부, 원플러스원 컬럼을 포함하고 있습니다. www.data.go.kr 위 링크의 csv를 사용할 것이다. 아무 데이터나 상관없다. 엑셀로 열어보면 이런 형식으로 되어있다. (왜 허니버터아몬드가 생필품인건지...) 코드 나는 많이 비싼건 살 수 없기 때문에, "한국소비자원 생필품 가격 정보" 리스트에서 생필품 가격중 5,000원 이하인 리스트만 뽑아낼 것이다. 단 같은 품목이면 제일 높은 가격을 기준으로 한다. 우선 csv모듈을 import해..
쀼친구
人各有好恶。