글로 남기는것과, 사진 찍는것, 동물을 좋아해요. Lisp, Emacs, Scala, FP 에 관심이 많습니다.

Machine Learning, Week 1

October 6, 2014 Blog

Machine Learning by Andrew Ng, Coursera What is Machine Learning? Field of study that gies computers the abiliry to learn without being explicitly programmed. (1959, Arthur Samuel) Well-posed...

Content-Type vs Accept, HTTP Header

October 5, 2014 Blog

이 답변 이 젤 심플하다. As you correctly note, the Accept header is used by HTTP clients to tell the server what content types they'll accept. The server...

PUT vs POST, REST API

October 5, 2014 Blog

idempotent PUT 과 POST 를 이해하려면, idempotent 라는 개념의 도입이 필요하다. 한글로 직역하면 멱등의 정도 되시겠다. 수학적으로 이해하는 편이 쉬운데, f(x) = f(f(x)) 라 보면 된다. 다시 말해...

Partial Functions, Scala

October 4, 2014 Blog

Case? case 는 match 가 없어도 쓰일 수 있다. 예를 들어 val m1 = Map(1 -> "one", 2 -> "two") m1 foreach { case(k, v) => println(s"k ->...

new to Play Framework 2

October 2, 2014 Blog

Play Framework 를 배우기로 마음먹었다. 새로운 무언가를 마주쳤을때, 어떻게 해결할까를 위주로 서술했다. Installation 우선 설치를 해야했다. Play 를 배포하는 Typesafe 의 Getting Started 에 들어가서, 확인해보니 activator 라는...

Functional Programming in Scala, Chapter 3

September 30, 2014 Blog

2014-09-29, Functional Programming in Scala, Coursera 3.1 Class Hierarchies Abstract Classes abstract class 는 다른 언어의 그것과 같다. abstract class IntSet { def contains(x: Int): Boolean def incl(x:...

Functional Programming in Scala, Chapter 2

September 30, 2014 Blog

2014-09-27, Functional Programming in Scala, Coursera 2.1 Higher-Order Functions Higher-Order Functions Functional PL 에서는 함수를 first-class 로 다루는데, 이는 함수를 파라미터로 넘기거나 결과로 리턴할 수 있다는 소리다. 이렇게...

Scala for the Impatient, Chapter 1, 2, 3

September 26, 2014 Blog

Chapter 1 (1). 스칼라의 REPL 은 엄밀히 말해서 인터프리터가 아니다. 입력받은 코드를 자바 바이트코드로 컴파일 한 후 자바 가상머신에서 실행시킨뒤 결과를 돌려준다. (2). 스칼라는 문자열을 위한 추가적인 연산들을...

Algorithm I, Chapter 1

September 22, 2014 Blog

Algorithm Part 1, Coursera Union Find Dynamic Connectivity N 개의 오브젝트가 있을때, Union command: connect two objects Find/connected query: is there a path connecting the two objects? 이렇게...

Deadlock

September 22, 2014 Blog

데드락 그 자체보다는, 데드락을 어떻게 해결하는가가 더 중요한 것 같다. Deadlock Necessary Conditions Deadlock 은 Coffman conditions 으로 알려진 아래 4개의 조건들이 모두 동시에 일어날때 발생한다. 만약 조건...

Practical Common Lisp, Chapter 7

September 18, 2014 Blog

MACROS : STANDARD CONTROL CONSTRUCS All programmers should be used to the idea that the definition of a language can include a standard library of functionality that is...

Functional Programming in Scala, Chapter 1

September 16, 2014 Blog

2014-09-16, Functional Programming in Scala, Coursera 1.1 Programming Paradigms Imperative Programming modifying mutable variables using assignment and control str such as if-then-else, loop breakl continue, return 절차적인 프로그래밍은...

MySQL Derived Table, Correlated Query

August 19, 2014 Blog

Correlated vs Non-Correlated 아래는 Non-Correlated 쿼리다. 즉 내부(Inner) 쿼리가 외부(Outer) 쿼리를 참조하지 않는다. SELECT name FROM city WHERE population > (SELECT population FROM city WHERE name = 'new...

Javascript Inheritance

August 10, 2014 Blog

Prototype Inheritance? 자바스크립트는 프로토타입 방식의 상속을 사용한다고들 말합니다. 프로토타입이란 무엇이고, 클래스 기반 상속과는 어떻게 다른지, 그리고 주의해야 할 점은 무엇인지 알아보겠습니다. 이 글에서 다루는 키워드는 아래와 같습니다. .constructor...

Javascript this, call, apply 그리고 bind

June 18, 2014 Blog

Javscript this, call, apply, bind Javascript 에 오신것을 환영합니다. 낯선이여! 이 포스트는 글에 기반하여 작성되었습니다. 1. http://dailyjs.com/2012/06/18/js101-this/ 2. http://dailyjs.com/2012/06/25/this-binding/ 3. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind Method, Function 먼저 메소드와 함수의 차이에 대해서 간단히...

Common Lisp, CLOS 가이드

June 15, 2014 Blog

CLOS CLOS Brief Guide based on http://www.aiai.ed.ac.uk/~jeff/clos-guide.html http://www.cs.northwestern.edu/academics/courses/325/readings/clos.php http://cl-cookbook.sourceforge.net/clos-tutorial/ http://www.gigamonkeys.com/book/object-reorientation-generic-functions.html See http://github.com/1ambda/CLOS 1. class-of Built-in Classes SYMBOL STRING INTEGER CONS VECTOR and so on 2. defstruct defstruct automatically...

RESTful, Stateless, HATEOAS 그리고 Passport

June 10, 2014 Blog

RESTful, Stateless, HATEOAS 환영합니다! Passport 세계에 온 낯선이여. 이제 당신은 곧 무력감 을 느끼게 될 것입니다. 이 시리즈의 목적은 Node.js 에서 RESTful 하게 세션 없이 오오 인증을 하기...

Git commit, add, pull, merge 취소하기

June 6, 2014 Blog

Git commit, add, pull, merge 취소하기 아직도 git 을 타이핑 하시나요? alias g=git 이 정신 건강에 이롭습니다. reset reset 명령은 현재 브랜치의 HEAD가 다른 commit 을 가리키게 만듭니다....

Mongoose Validation

June 4, 2014 Blog

Mongoose Validation 사실 Database Layer 에서 Validation 을 하는건 좋은 방법은 아닌 것 같습니다. Front 단에서도 필요하고, Back 단에서도 필요하지만, Back 단에서는 가능하다면 Server Application 단에서 처리하는게 더...

Java 의 equlas 과 hashCode, 동등성과 동일성

May 30, 2014 Blog

equals() 와 hashcode() equals 는 두 객체의 내용이 같은지, 동등성(equality) 를 비교하는 연산자 hashCode 는 두 객체가 같은 객체인지, 동일성(identity) 를 비교하는 연산자 다음과 같은 클래스가 있을때 equals()...

Ubuntu 14.04 개발환경 세팅

May 25, 2014 Blog

Ubuntu 14.04 Setup 2010년부터 Windows 에서 개발했는데, 이제 도저히 못해먹겠습니다. VMware 에 Ubuntu 설치 후 개발하다가 Ubuntu 14.04 릴리즈 후 본격적으로 갈아 탔습니다. 이 글은 기록 / 공유...

Ubuntu 14.04 개발환경 세팅

May 25, 2014 Blog

Ubuntu 14.04 Setup 2010년부터 Windows 에서 개발했는데, 이제 도저히 못해먹겠습니다. VMware 에 Ubuntu 설치 후 개발하다가 Ubuntu 14.04 릴리즈 후 본격적으로 갈아 탔습니다. 이 글은 기록 / 공유...

본격 초심자 대상, Git 빠른 설명서

April 10, 2014 Blog

Git Branch Git는 하루에도 몇 번씩 쓰는 툴인데, 자세히 잘 모른다는게 오늘 갑자기 문득 생각이 나서 공부하게 됐다. 맨날 쓰는건 add, commit, push 밖에 없으니 그냥 단순 저장...