Coder Social home page Coder Social logo

blog-comments's Introduction

Hi There๐Ÿ‘‹ I'm Nesoy

๐Ÿ’ป Backend Engineer โค Open source

Nesoy github stats

blog-comments's People

Watchers

 avatar  avatar  avatar

blog-comments's Issues

articles/2019-03/ElasticSearch-Analysis

ElasticSearch - ๋ถ„์„

ElasticSearch์˜ ๋ถ„์„(Analysis)์ด๋ž€? ๊ฒ€์ƒ‰์–ด๋ฅผ ์ถ”์ถœํ•˜๊ธฐ ์œ„ํ•œ ํ”„๋กœ์„ธ์Šค ๋ถ„์„์€ ์–ด๋–ป๊ฒŒ ๋™์ž‘ํ• ๊นŒ? Analyzer Pipeline ํ•˜๋‚˜์˜ Analyzer๋Š” Char Filter, Tokenizer, Token Filter๋ฅผ ์ €์žฅํ•˜๊ณ  ์žˆ๋Š” ํ•˜๋‚˜์˜ ๋ฐฐ์น˜ ํ”„๋กœ๊ทธ๋žจ. Custom Analyzer๋ฅผ ์ƒ์„ฑ ์ถ”๊ฐ€ ์‚ญ์ œ๊ฐ€ ๊ฐ€๋Šฅํ•˜๋‹ค. ๋ถ„์„์— ํ•„์š”ํ•œ ๊ตฌ์„ฑ์š”์†Œ Char Filters ์ž…๋ ฅ๋œ ์›๋ณธ์˜ ํ…์ŠคํŠธ๋ฅผ ๋ถ„์„์— ํ•„์š”ํ•œ ํ˜•ํƒœ๋กœ ๋ณ€ํ™˜ํ•˜๋Š” ์—ญํ•  Tokenizer ์ž…๋ ฅ ๋ฐ์ดํ„ฐ๋ฅผ ์„ค์ •๋œ ๊ธฐ์ค€์— ๋”ฐ๋ผ ๊ฒ€์ƒ‰์–ด ํ† ํฐ์œผ๋กœ ๋ถ„๋ฆฌํ•˜๋Š” ์—ญํ•  standard -, []์™€ ๊ฐ™์€ ๊ธฐํ˜ธ๋Š” ๊ตฌ๋ถ„์ž๋กœ ์ธ์‹ํ•˜๊ณ  ๋ถ„๋ฆฌํ•œ๋‹ค. whitespace ๋„์–ด์“ฐ๊ธฐ, ํƒญ, ์ค„๋ฐ”๊ฟˆ๊ณผ ๊ฐ™์€ ๊ณต๋ฐฑ ๊ธฐ์ค€์œผ๋กœ ํ† ํฐ ๋ถ„๋ฆฌ nGram ์ตœ์†Œ-์ตœ๋Œ€ ๊ธธ์ด์— ํ•ด๋‹นํ•˜๋Š” ๋ฌธ์ž๋“ค์„ ํ† ํฐ์œผ๋กœ ๋ถ„ํ• ํ•œ๋‹ค. ์ค‘์š”ํ•œ ํ•„๋“œ๋ฅผ ๋‘์„ธ ๊ฐœ์˜ ๋ฌธ์ž๋งŒ ๊ฐ€์ง€๊ณ ๋„ ๊ฒ€์ƒ‰ ๊ฐ€๋Šฅํ•˜์ง€๋งŒ ๊ฒ€์ƒ‰์–ด ํ† ํฐ์ด ๋งŽ์•„์ง€๊ธฐ ๋•Œ๋ฌธ์— ๋ฉ”๋ชจ๋ฆฌ ์‚ฌ์šฉ๋Ÿ‰๊ณผ ์‹œ์Šคํ…œ ๋ถ€ํ•˜ ์—ญ์‹œ ์ฆ๊ฐ€ํ•œ๋‹ค. edgeNGram nGram์˜ ๋ฌธ์ œ์ ์„ ํ•ด๊ฒฐํ•˜๊ธฐ ์œ„ํ•ด ๋“ฑ์žฅํ•œ edgeNGram ๊ฒ€์ƒ‰์–ด์˜ ๋ชจ๋“  ๊ฐ’์„ ๋ถ„ํ• ํ•˜๋Š” ๊ฒƒ์ด ์•„๋‹ˆ๋ผ ๋ฌธ์žฅ์˜ ์‹œ์ž‘ ๋ถ€๋ถ„๋งŒ ๋ถ„ํ• ํ•œ๋‹ค. keyword ์ž…๋ ฅ๋œ ๋ฌธ์žฅ ์ „์ฒด๋ฅผ ํ•˜๋‚˜์˜ ์‹ฑ๊ธ€ ํ† ํฐ์œผ๋กœ ์ €์žฅ letter ์•ŒํŒŒ๋ฒณ์ด ์•„๋‹Œ ๊ณต๋ฐฑ/ํŠน์ˆ˜๋ฌธ์ž ๊ธฐ์ค€์œผ๋กœ ๊ฒ€์ƒ‰์–ด ํ† ํฐ ๋ถ„๋ฆฌ ์•„์‹œ์•„ ์“ฐ๋Š” ์–ธ์–ด์—์„œ๋Š” ์˜ค๋™์ž‘ ์ฃผ์˜ํ•ด์•ผ ํ•œ๋‹ค. lowercase letter -> lowercase filter ์ ์šฉํ•œ ๊ฒƒ๊ณผ ๋™์ผ Token Filter ๋ถ„๋ฆฌ๋œ ํ† ํฐ๋“ค์— ๋‹ค์‹œ ํ•„ํ„ฐ๋ฅผ ์ ์šฉํ•ด์„œ ์‹ค์ œ๋กœ ๊ฒ€์ƒ‰์— ์“ฐ์ด๋Š” ๊ฒ€์ƒ‰์–ด๋“ค๋กœ ์ตœ์ข… ๋ณ€ํ™˜ํ•˜๋Š” ์—ญํ•  ๋ถ„์„๋‹จ๊ณ„์—์„œ ๊ฐ€์žฅ ์ค‘์š”ํ•œ ๊ณผ์ • porter_stem Porter Stemming ์•Œ๊ณ ๋ฆฌ์ฆ˜์„ ์ ์šฉํ•œ ํ˜•ํƒœ์†Œ ๋ถ„์„์„ ํ•˜๋Š” ํ† ํฐํ•„ํ„ฐ lowercase ํ† ํฌ๋‚˜์ด์ €๋ฅผ ๋ฏธ๋ฆฌ ์ ์šฉํ•ด์•ผ ํ•œ๋‹ค. shingle ๋ฌธ์ž์—ด์„ ํ† ํฐ-Ngram ๋ฐฉ์‹์œผ๋กœ ๋ถ„์„ํ•˜๋Š” ๊ธฐ๋Šฅ word_delimiter ์ž…๋ ฅ๋œ ๋ฌธ์žฅ์˜ ๋‹จ์–ด๋ฅผ ๋” ์„ธ๋ถ€์ ์œผ๋กœ ๋ถ„ํ• ํ•˜๊ฑฐ๋‚˜ ๋ณ‘ํ•ฉํ•˜๋Š” ๋‹ค์–‘ํ•œ ์˜ต์…˜๋“ค์„ ์ œ๊ณต snowball ์›ํ˜•์œผ๋กœ ๋ณ€ํ™˜ํ•˜๋Š” ํ† ํฐ Filter days -> day ํ•œ๊ตญ์–ด ํ˜•ํƒœ์†Œ ๋ถ„์„๊ธฐ ์•„๋ฆฌ๋ž‘ ํ˜•ํƒœ์†Œ๋ถ„์„๊ธฐ ์€์ „ํ•œ๋‹ข Elasitc ๋…ธ๋ฆฌ Reference https://www.aladin.co.kr/shop/wproduct.aspx?ItemId=52801459 https://www.elastic.co/blog/found-text-analysis-part-1 https://www.elastic.co/blog/found-text-analysis-part-2 https://www.elastic.co/guide/en/elasticsearch/client/net-api/current/writing-analyzers.html Elasticsearch์—์„œ ์•„๋ฆฌ๋ž‘ ํ•œ๊ธ€ ๋ถ„์„๊ธฐ ์‚ฌ์šฉํ•˜๊ธฐ - ์ •ํ˜ธ์šฑ๋‹˜ Elastic - ์–ด๋–ค ํ•œ๊ตญ์–ด ๋ถ„์„๊ธฐ๋ฅผ ์‚ฌ์šฉํ• ๊นŒ?

https://nesoy.github.io/

articles/2019-07/Alfred-iterm

Alfred์—์„œ iTerm ๋ช…๋ น์–ด ๋ฐ”๋กœ ์‹คํ–‰ํ•˜๊ธฐ

Alfred์—์„œ iTerm ๋ช…๋ น์–ด ๋ฐ”๋กœ ์‹คํ–‰ํ•˜๊ธฐ Alfred์—์„œ ๋งค๋ฒˆ iTerm ์‹คํ–‰ ํ›„ ๋ช…๋ น์–ด๋ฅผ ์น˜๋Š” ๊ฒƒ์ด ๊ท€์ฐฎ์•„ ์ฐพ์•„๋ณด๋‹ˆ ์ข‹์€ Script๊ฐ€ ์žˆ์–ด ๊ณต์œ ํ•ฉ๋‹ˆ๋‹ค. iTerm ์‹คํ–‰ Script๋ฅผ ๋ณต์‚ฌํ•˜์—ฌ ๋ถ™์—ฌ๋„ฃ์–ด๋ณด์ž -- This is v0.6 of the custom script for AlfredApp for iTerm 2.9+ -- Please see https://github.com/stuartcryan/custom-iterm-applescripts-for-alfred/ -- for the latest changes. -- Please note, if you store the iTerm binary in any other location than the Applications Folder -- please ensure you update the two locations below (in the format of : rather than / for folder dividers) -- this gets around issues with AppleScript not handling things well if you have two iTerm binaries on your system... which can happen :D on alfred_script(q) if application "iTerm2" is running or application "iTerm" is running then run script " on run {q} tell application ":Applications:iTerm.app" activate try select first window set onlywindow to false on error create window with default profile select first window set onlywindow to true end try tell the first window if onlywindow is false then create tab with default profile end if tell current session to write text q end tell end tell end run " with parameters {q} else run script " on run {q} tell application ":Applications:iTerm.app" activate try select first window on error create window with default profile select first window end try tell the first window tell current session to write text q end tell end tell end run " with parameters {q} end if end alfred_script ์‹คํ–‰ํ•˜๊ธฐ Prefix์™€ ํ•จ๊ป˜ ์›ํ•˜๋Š” ๋ช…๋ น์–ด๋ฅผ ์ž‘์„ฑํ•˜๊ณ  ์—”ํ„ฐ๋ฅผ ์น˜๋ฉด ํ„ฐ๋ฏธ๋„์ด ํ™œ์„ฑํ™”๋˜๋Š” ๊ฒƒ์„ ํ™•์ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ํ„ฐ๋ฏธ๋„ ์‹คํ–‰ ํ›„ ํ™”๋ฉด Reference https://github.com/stuartcryan/custom-iterm-applescripts-for-alfred/

https://nesoy.github.io/

articles/2020-05/Base64-Encode

Base64 Encoding์ด๋ž€?

Encoding์ด๋ž€? ์ •๋ณด์˜ ํ˜•ํƒœ๋‚˜ ํ˜•์‹์„ ํ‘œ์ค€ํ™”, ๋ณด์•ˆ, ์ฒ˜๋ฆฌ ์†๋„ ํ–ฅ์ƒ, ์ €์žฅ ๊ณต๊ฐ„ ์ ˆ์•ฝ ๋“ฑ์„ ์œ„ํ•ด์„œ ๋‹ค๋ฅธ ํ˜•ํƒœ๋‚˜ ํ˜•์‹์œผ๋กœ ๋ณ€ํ™˜ํ•˜๋Š” ๋ฐฉ์‹์„ ๋งํ•œ๋‹ค. Base64 Encoding์ด๋ž€? Binary Data๋ฅผ Text ํ˜•ํƒœ๋กœ ๋ณ€ํ™˜ํ•˜๋Š” ๋ฐฉ์‹์„ ๋งํ•œ๋‹ค. Character set์— ์˜ํ–ฅ์„ ๋ฐ›์ง€ ์•Š๋Š” ๊ณตํ†ต ASCII ์˜์—ญ์˜ ๋ฌธ์ž๋กœ๋งŒ ์ด๋ฃจ์–ด์ง„ ๋ฌธ์ž์—ด๋กœ ๋ฐ”๊พธ๋Š” Encoding์ด๋‹ค. ์™œ Base64๋ฅผ ์‚ฌ์šฉํ•˜๋Š”๊ฐ€? ASCII๋Š” 7 bits Encoding์ธ๋ฐ ๋‚˜๋จธ์ง€ 1bit๋ฅผ ์ฒ˜๋ฆฌํ•˜๋Š” ๋ฐฉ์‹์ด ์‹œ์Šคํ…œ ๋ณ„๋กœ ๋‹ค๋ฅด๊ฒŒ

https://nesoy.github.io/

articles/2019-11/Github-suggestion

Github - Suggestion ๊ธฐ๋Šฅ ํ™œ์šฉํ•˜๊ธฐ

๋“ค์–ด๊ฐ€๋ฉฐ ์˜จ๋ผ์ธ ์ฝ”๋“œ ๋ฆฌ๋ทฐ๋ฅผ ํ•˜๋ฉด์„œ ์ž‘์€ ๋ณ€๊ฒฝ ์‚ฌํ•ญ์„ ๊ณ ์น˜๊ธฐ ์œ„ํ•ด Local์—์„œ ๋ณ€๊ฒฝ -> Commit -> Pushํ•˜๋Š” ํ”„๋กœ์„ธ์Šค๋ฅผ ๋ณด๋‹ค ๊ฐ„ํŽธํ•˜๊ฒŒ ํ•  ์ˆ˜ ์žˆ๋Š” ๊ธฐ๋Šฅ์ด ์žˆ์–ด ๊ณต์œ ํ•ฉ๋‹ˆ๋‹ค. Example ์˜ˆ๋ฅผ ๋“ค์–ด final ๋Œ€์‹  static final์ด ๋” ์ข‹์•„๋ณด์—ฌ ๋ฆฌ๋ทฐ๋ฅผ ๋‚จ๊ธฐ๊ณ  ์‹ถ๋‹ค๊ณ  ๊ฐ€์ •ํ•ด ๋ด…์‹œ๋‹ค. ๋ณดํ†ต์˜ ๊ฒฝ์šฐ ์•„๋ž˜์™€ ๊ฐ™์ด ๋ฆฌ๋ทฐ๋ฅผ ๋‚จ๊ธฐ๊ฒŒ ๋ฉ๋‹ˆ๋‹ค. Github Suggestion ๊ธฐ๋Šฅ ์•„๋ž˜์™€ ๊ฐ™์ด Suggestion๊ธฐ๋Šฅ์„ ์‚ฌ์šฉํ•˜๋ฉด ์‰ฝ๊ฒŒ ๊ธฐ๋Šฅ ์ œ์•ˆ๊ณผ ๋ฐ˜์˜์ด ๊ฐ€๋Šฅํ•ด์ง‘๋‹ˆ๋‹ค. ๊ฐœ์„ ๋˜์–ด์•ผ ํ•  ํฌ์ธํŠธ๋ฅผ ์ง์ ‘ ๋ฆฌ๋ทฐ์–ด๊ฐ€ ๋ณ€๊ฒฝํ•˜๊ณ  ์ œ์•ˆํ•ฉ๋‹ˆ๋‹ค. ๋ฏธ๋ฆฌ๋ณด๋Š” ํ˜•ํƒœ๋Š” ์•„๋ž˜์™€ ๊ฐ™์Šต๋‹ˆ๋‹ค. ๋ฆฌ๋ทฐ๋ฅผ ๋ฐ›๋Š” ์‚ฌ๋žŒ์€ ์‰ฝ๊ฒŒ ๊ฐœ์„ ๋œ ์ฝ”๋“œ๋ฅผ ์˜จ๋ผ์ธ์—์„œ ์ ์šฉ์ด ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค. Commit Message๋ฅผ ์ถ”๊ฐ€ํ•˜๊ณ  Commit Change๋ฅผ ๋ˆ„๋ฅด๋ฉด ์˜จ๋ผ์ธ์œผ๋กœ ๋ฐ˜์˜์ด ๋ฉ๋‹ˆ๋‹ค. Reference https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/incorporating-feedback-in-your-pull-request

https://nesoy.github.io/

articles/2020-05/RestTemplate

RestTemplate์— ๋Œ€ํ•ด

RestTemplate Spring์—์„œ ์ œ๊ณตํ•˜๋Š” Rest Client ํ˜„์žฌ๋Š” Deprecated๋˜์–ด WebClient๋กœ ๊ฐ€์ด๋“œ๋ฅผ ํ•˜๊ณ  ์žˆ๋‹ค. NOTE: As of 5.0 this class is in maintenance mode, with only minor requests for changes and bugs to be accepted going forward. Please, consider using the org.springframework.web.reactive.client.WebClient which has a more modern API and supports sync, async, and streaming scenarios. ์ฃผ์˜ํ•  ์ ์€ ์—†์„๊นŒ? ๋งŽ์€ ์š”์ฒญ๋“ค์„ ๋‹ค๋ฃจ๊ธฐ ์–ด๋ ต๋‹ค. RestTemplate๋Š” ๊ธฐ๋ณธ์ ์œผ๋กœ Connection pool์„ ์‚ฌ์šฉํ•˜์ง€ ์•Š๋Š”๋‹ค. Default๋กœ java.net.HttpURLConnection ์‚ฌ์šฉํ•œ๋‹ค. SimpleClientHttpRequestFactory ๊ทธ๋ž˜์„œ ๋งŽ์€ ์š”

https://nesoy.github.io/

articles/2020-01/GSLB

GSLB๋ž€?

GSLB๋ž€? DNS ๊ธฐ๋ฐ˜์˜ ๋กœ๋“œ๋ฐธ๋Ÿฐ์‹ฑ ์„œ๋น„์Šค ํ—ฌ์Šค ์ฒดํฌ ๋ชจ๋‹ˆํ„ฐ๋ง, ๋ ˆ์ดํ„ด์‹œ ๊ธฐ๋ฐ˜ ๋“ฑ๋“ฑ ๋งŽ์€ ๊ธฐ๋Šฅ์ด ํฌํ•จ๋œ DNS How to work GSLB? ๊ฐ ์„œ๋ฒ„๋งˆ๋‹ค Health Check๋ฅผ ํ•˜๊ณ  ์šด์šฉ๊ฐ€๋Šฅํ•œ ์„œ๋ฒ„์˜ IP๋ฅผ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค. RoundRobin Health Check๋œ ์„œ๋ฒ„๋ฅผ ๊ธฐ๋ณธ์ ์œผ๋กœ RoundRobin์œผ๋กœ ๋ถ„์‚ฐ์‹œํ‚ฌ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. Weighted ์„œ๋ฒ„๋งˆ๋‹ค ๊ฐ€์ค‘์น˜๋ฅผ ๋ถ€์—ฌํ•˜์—ฌ ๋น„์œจ์„ ์กฐ์ ˆํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. GeoLocation ๊ตญ๊ฐ€/IP๋Œ€์—ญ ๊ธฐ์ค€์œผ๋กœ ์„ค์ •๋œ Rule์— ๋”ฐ๋ผ ์„œ๋ฒ„๋ฅผ ๋ถ„์‚ฐ์‹œํ‚ฌ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๋ณดํ†ต ์–ด๋Š ์ƒํ™ฉ์—์„œ ์“ฐ์ผ๊นŒ? ๊ธ€๋กœ๋ฒŒ ์„œ๋น„์Šค์—์„œ Multi CDN๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๊ฒฝ์šฐ ์‚ฌ์šฉ์ž์—๊ฒŒ ๊ฐ€์žฅ ๊ฐ€๊นŒ์šด Region์— ์žˆ๋Š” ์ฃผ์†Œ๋ฅผ ๋ฐ˜ํ™˜ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. Production AWS - Route53 Google Cloud - Cloud Load Balancing Azure - Traffic Manager Naver - Global Route Manager Reference https://www.joinc.co.kr/w/man/12/GSLB https://www.zevenet.com/knowledge-base/howtos/how-global-service-load-balancing-gslb-works/ https://d2.naver.com/helloworld/6070967 https://www.zevenet.com/knowledge-base/enterprise-edition/enterprise-edition-v5-1-administration-guide/v5-1-gslb-farms/

https://nesoy.github.io/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.