2014년 11월 23일 일요일

Mysql create user

1. Create User
CREATE USER 'user_name'@'localhost' IDENTIFIED BY 'password';
2. Grant Privileges
GRANT ALL PRIVILEGES ON database_name.* TO 'newuser'@'localhost';
3. Flush
FLUSH PRIVILEGES;

2014년 11월 2일 일요일

영어사전 API

Google Translate API
- https://cloud.google.com/translate/docs
- 1M character = $20 (0.5M = $10)
- 홈페이지용 Google Translate Gadget은 무료

WordNet(Princeton University)
- http://wordnet.princeton.edu/wordnet/
- free
- DB다운로드 가능

abbreviations
- http://www.abbreviations.com/definitions_api.php
- free 1000 query/day

collins
- http://www.collinsdictionary.com/api/
- free for 5000 calls/month

Merriam-Webster
- http://dictionaryapi.com/
- free 1000 queries/day
- charge for commercial use

그 외
- 링크 모음 : http://www.programmableweb.com/search/dictionary

2014년 10월 21일 화요일

parameter vs argument

매개변수(parameter) : 메소드의 시그니쳐 변수.

인자(argument) : 메소드를 호출할 때 넘겨주는 값.

void Foo(int i, float f)
{
    // Do things
}

void Bar()
{
    int anInt = 1;
    Foo(anInt, 2.0);
}

i, f 는 매개변수.
anInt, 2.0은 인자.

출처 : http://stackoverflow.com/questions/1788923/parameter-vs-argument

몰라도 이때까지 개발 하는데 지장은 없었지만, 언젠가는 한번 써먹을 듯 하다.