본문 바로가기

분류 전체보기77

AWS SES: 이메일 발신자 이름 UTF8 인코딩 Introduction AWS SES를 사용해서 메일을 발송 할 때 Message 부분에는 Charset을 설정하는 부분이 있는데 Source부분에는 따로 그런 설정 없이 스트링만 보낼 수 있어서 한글 이름을 사용하려면 따로 인코딩을 했습니다. 구글링 해보니 아래 같은 답변이 있네요. You would need to use MIME encoded-word syntax to use non-ASCII characters in the Source text. There's some additional discussion in the SES API reference: In all cases, the email address must be 7-bit ASCII. If the text must contain any .. 2019. 4. 30.
파이썬 데코레이터(Decorator) Introduction 파이썬에서 @, decorator를 알아봤습니다. 데코레이터라는 말 자체는 특정 함수나 클래스를 꾸며준다는 뜻이지만 실제로 동작하는 모습을 보면 @로 시작하는 특정 annotation 이름의 함수나 클래스에 인자로 해당 annotation이 달린 함수를 집어 넣는 느낌입니다. 아래 코드를 보면 좀 더 이해가 잘되실거라고 생각합니다! Contents References 파이썬 데코레이터 (decorator): 기초편 파이썬 코드를 보다보면 가끔 함수 이름 위에 @로 시작하는 구문이 붙어 있는 것을 가끔 볼 수 있다. @verbose def my_function(): print "hello, world." 만약 자바를 주로 사용하는 프로그래머라면 어노테이션(a.. trowind.tis.. 2019. 4. 9.
Big O: Growth rates of common functions measured in nanoseconds 2019. 4. 5.
DB Query Sample Introduction 간단한 데이터베이스 데이터 샘플 쿼리입니다. Contents 위와 같은 스키마와 데이터 내용을 갖고 있습니다. MYSQL Workbench 같은 툴을 이용해서 쿼리를 입력하시면 간단하게 샘플 데이터를 생성할 수 있습니다. https://github.com/ShashankBodkhe/DB-Queries/blob/master/InsertQuery.sql ShashankBodkhe/DB-Queries DB Scripts. Contribute to ShashankBodkhe/DB-Queries development by creating an account on GitHub. github.com Reference https://dzone.com/articles/conditional-pagi.. 2019. 4. 3.