ElasticSearch 버젼이 5.x 이상이면 open korean text 를 추천하고 이하이면 은전한닢 또는 arirang 추천. ElasticSearch 5.x 대의 arirang 은 ElasticSearch 재시작 1회 후 형태소 분석이 1자만 되는 이슈 발생함. "홍길동" 검색시 "홍"이라는 단어만 분석되어 "홍길동" 검색시 "홍"이 들어간 모든 문서 검색되어버림. 즉, "얏홍"과 같은 구문까지 검색되는 문제 발생함. Index 설정은: PUT /my_index/_settings { "analysis": { "filter": { "my_stop": { "type": "stop", "stopwords": [ "and", "is", "the" ] } }, "analyzer": { "my_ngram..
Index 설정을 변경하려면 close -> 설정 -> open 하면 됩니다. POST /my_index/_close PUT /my_index/_settings { "analysis": { "filter": { "my_stop": { "type": "stop", "stopwords": [ "and", "is", "the" ] } }, "analyzer": { "my_ngram_analyzer": { "tokenizer": "my_ngram_tokenizer" }, "openkorean_analyzer": { "type": "custom", "tokenizer": "openkoreantext-tokenizer", "filter": [ "openkoreantext-redundant-filter", "open..
인덱스의 Type의 매핑을 변경하려면 새 인덱스를 만들어서 재인덱싱을 해 주는 수 밖에 없으며 방법은 아래와 같습니다. 기존 인덱스명 보존은 별칭(alias)으로 설정하여 해결합니다. 현재 인덱스 news-2018 새 인덱스 news_2018_v2 새 설정/매핑으로 생성 PUT /news_2018_v2 { "settings": { "analysis": { "analyzer": { "my_ngram_analyzer": { "tokenizer": "my_ngram_tokenizer" }, "openkorean_analyzer": { "type": "custom", "tokenizer": "openkoreantext-tokenizer", "filter": [ "openkoreantext-redundant-fi..
사전 요구 사항1. Nginx latest 를 official repository 로부터 설치 nginx.org/en/linux_packages.html#mainline2. 사전요구 패키지 설치 * Ubuntu$ apt-get install -y apt-utils autoconf automaker build-essential git libcurl4-openssl-dev libgeoip-dev liblmdb-dev ibpcre++-dev lib tool libxml2-dev libyans-dev pkgconf wget zlib1g-dev * CentOS$ yum groupinstall -y "Development Tools"$ yum install -y http httpd-devel pure pure-de..
imageproxy 는 웹서버 앞단에서 static file cache 역할과 image resizing 역할을 수행하는 Go 언어로 작성된 프록시 서버 입니다. git 1.8 설치 (아래 go get 명령시 git clone 실행됨)wget http://springdale.math.ias.edu/data/puias/computational/6/x86_64/git-1.8.3.1-1.sdl6.x86_64.rpm && \wget http://springdale.math.ias.edu/data/puias/computational/6/x86_64/perl-Git-1.8.3.1-1.sdl6.noarch.rpm && \yum remove git -y && \yum localinstall git-*.rpm perl-..
유명한 개발자 커뮤니티인 페이스북 생활코딩 페이지에서 가끔 PHP 입문서에 대해서 물어보는 주니어들의 질문이 올라옵니다. “PHP를 배워보려는데 책을 추천해주세요.” 기존의 Legacy 한 개발 방식의 PHP 서적들이야 온/오프라인 서점에 무수히 많지요. 하지만 시대가 달라졌으며 PHP 라는 언어도 개발 언어 트렌드에 발맞춰 많은 업데이트를 이루었습니다. 어떤 책이 그 주니어에 추천할만 한지 레거시 하지 않으며 모던한 PHP 에 대한 책이... 흠... 겨우 떠오른 책이라곤 최근 나온 PHP 7 뿐이었던 가운데 이 책의 발간을 접하게 되었습니다. 어느 깊은 가을밤 잠에서 깨어난 제자가 울고 있었다. 그 모습을 본 스승이 기이하게 여겨 제자에게 물었다. "무서운 꿈을 꾸었느냐?" "아닙니다." "슬픈 꿈을..
터미널을 실행하고,셋팅 (1회만 실행) $ ln /Applications/PhpStorm.app/Contents/MacOS/phpstorm /usr/local/bin/phpstormphpstorm 터미널 명령으로 프로젝트 열기 $ open -a phpstorm /some/path 추가팁: 위 명령 alias 로 줄이기 $ vi ~/.bashrc# Open project path with the phpstorm (Append this and below line) alias phpstormopen="open -a phpstorm"vi 저장하고 종료.이후부터 아래와같이 명령 가능:$ phpstormopen /some/path 참고: https://intellij-support.jetbrains.com/hc/e..
목표 Laravel 기본 DB 연결은 mysql 로, Queue driver 는 Redis 로, Queue 작업 실패시 기록하는 failed table 은 sqlite 로 설정 환경설정 /app/config/database.php'default' => 'mysql’, 'connections' => array( 'sqlite' => array( 'driver' => 'sqlite', 'database' => __DIR__.'/../database/production.sqlite', 'prefix' => '', ), 'mysql' => array( 'driver' => 'mysql’, …… 'redis' => array( 'cluster' => false, 'default' => array( 'host' =..
Select ... Limit 2000, 1000; 과 같은 페이지 나누는 쿼리 튜닝을 조사하다가커버링 인덱스 (http://gywn.net/2012/04/mysql-covering-index/) 에 대해 알게 되었고운영중인 mysql DB 서버에 쿼리를 날려보았다. 일반적 limit 쿼리일 경우 53.8ms ~ 63.1 ms 의 조회 시간이 소요되던것이커버링 인덱스 쿼리일 경우 23.6 ms 로 1/2 속도 향상이 있음을 알 수 있었다. 아래와 같은 커버링 인덱스 쿼리를select a.* from ( select ID from ARTICLE order by UID limit 50000, 10000) b JOIN ARTICLE a ON b.ID = a.ID;Laravel 의 쿼리 빌더로는 어떻게 표현해야..
IDC에 웹 CMS용 서버 1대 운용중이었는데 어느날 D state process 장애로 6시간동안 정상적 서비스를 하지 못하였고 이후를 장애를 대비하기 위해 서버 이중화 구성을 검토하게 됨. 제일 좋은 구성은 앞단에 로드밸런서를 놓고 Global 세션 서버도 추가하고 CMS 서버를 하나 더 추가하는것이겠으나 이렇게 하려면 총 3대의 서버가 필요. 허나, 가용 가능한 서버는 1 대 뿐. 구글링을 통하여 총 2대에서 가능한 failover 스택 찾음.HeartbeatPacemaker + corosync (위 Heartbeat 의 다음세대 스택)KeepalivedHeartbeat 는 legacy 한 스택이라 패스하고 pacemaker 는 복잡복잡열매가 열려서 패스하니 keepalived 만이 남음. Vagr..
- Total
- Today
- Yesterday
- Make Use Of
- How to geek
- 인터넷 통계정보 검색시스템
- 트위터 공유 정보모음
- 웹표준KR
- 치우의 컴맹탈출구
- Dev. Cheat Sheets
- w3schools
- Dev. 조각들
- ASP Ajax Library
- CSS Tricks
- WebResourcesDepot
- jQuery Selectors Tester
- DeveloperSnippets
- Smashing Magazine
- Nettuts+
- devListing
- 웹 리소스 사이트(한)
- Mobile tuts+
- Dream In Code
- Developer Tutorials
- CSS3 Previews
- 자북
- 안드로이드 사이드
- Code Visually
- Code School
- SQLer.com
- 무료 파워포인트 템플릿
- iconPot
- Free PowerPoint Templates
- Design Bombs
- Web Designer Wall
- 1st Webdesigner
- Vandelay Design
- 무료 벡터 이미지 사이트들
- Tripwire Magazine
- Web TrendSet
- WebMonkey
- 윤춘근 프리젠테이션 디자이너 블로그
- cz.cc 무료 DNS
- [웹하드] MediaFire
- [웹하드] DivShare
- 한컴 인터넷 오피스
- Android
- classic asp
- javascript
- 한글
- Mac
- Debug
- nodejs
- Chrome
- Prototype
- JQuery
- laravel
- API
- IE
- centos
- 안드로이드
- git
- Wordpress
- nginx
- 워드프레스
- iis
- ASP
- Linux
- Docker
- CSS
- mssql
- JSON
- IOS
- PHP
- sencha touch
- iphone
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |