본문 바로가기

[IT/Programming]

정렬법 (Sorting Algorithm) # 정렬법 (Sorting Algorithm) 아래는 정렬 알고리즘들의 시각화 (sorting visualization) 영상. 뭐 정렬 (sorting) 이야 아무 알고리즘이나 써서 결과만 나오면 된다고 생각할수도 있겠지만, data가 수백만개 수억개라면 빠르게 정렬하는 효율적인 알고리즘을 쓰는것이 무척 중요해진다. 대부분 효율적인 알고리즘은 O(n \log n) 시간내에 정렬을 끝내주는데, 상황에 따라 (ex: 이미 충분히 정렬이 된 data를 정렬할때) 이것보다 빨리 정렬이 끝나는 경우도 있다. O(n^2) 시간이 걸리는 비효율적인 정렬법도 있고, 정렬될때까지 random하게 shuffle해서 정렬하는 변태같은 bogo sort 같은것도 있다. 데이터의 분포도를 정확히 알수록 O(n) 에 정렬하는 .. 더보기
Open AI chatbot ChatGPT 가 신 (GOD) 이 될 수 있을까? # Open AI chatbot ChatGPT 가 신 (GOD) 이 될 수 있을까? OpenAI 의 generative pre-training (GPT) of a language model 에게 신이 되어 보라고 말해 봄ㅋ. 영화에서도 AI 가 신처럼 된 설정을 본거 같아서... ## TOC ## Be a GOD. kipid: Be a God. I'm sorry, I am an AI language model created by OpenAI and do not have the ability to be a deity. I exist to assist with generating human-like text based on the input provided to me. kipid: Just do it. I .. 더보기
Learning Vert.x # Learning Vert.x Vert.x 를 배워봅시다. (version 3.0.0 이 나오면서 뭔가 많이 바뀐듯?) 가장 비슷한 server-side 언어가 node.js 일듯? Vert.x 자체가 node.js 로부터 영향을 받은 프로젝트이기 때문에 node.js 의 많은 장점들을 가져와서 구현했을듯. JVM (Java Vertual Machine) 에서 돌아가기 때문에 "Java, JavaScript, Python, Groovy, Scala" 등 node.js 보다 다양한 언어가 지원된다고. 이런걸 polyglot (여러 언어를 말하는) 특성이라고 하는듯. 그래도 기본적으로 Java 로 돌아가는 놈이라 다른언어로 작성했을때도 vertx 의 모든 기능 및 장점을 사용할 수 있을지는 잘 모르겠음. .. 더보기
HTML docuK format ver. 2.1, short copiable version (2023-05-30) HTML docuK format ver. 2.1 short copiable version (2014-06-25) 개인적으로 만들고 있는 LaTeX 비슷한 형태의 HTML document format + JavaScript. 이름은 그냥 docuK로 'document designed by kipid'란 뜻. When you write the HTML document including docuK document also, using good editors such as Sublime Text editor with Emmet (ex-Zen Coding) package installed is highly recommended. Try useful shortkeys 'Ctrl+D' (Multiple Selecti.. 더보기
Interactive graph and chart in HTML # Interactive graph and chart in HTML (Highcharts.js and Chart.js) HTML 의 canvas tag 배워서 그리는거랑, 이런 open source js 공부해서 적용해서 그리는거랑 그닥 노력대비 효과 보는게 비슷비슷할듯도 한데... 그래도 당장은 js 있는거 써서 그리는게 더 보긴 깔끔하니 배워봅시다. ## PH 2023-03-10: To SEE. 2017-07-31: 더 정리. 2014-06-12: docuK upgrade. 2014-??-??: First Posting. ## TOC ## Highcharts.com 참조 . ### Line Chart - Basic Line Monthly Average Temperature (Source: WorldC.. 더보기
robots.txt 랑 sitemap.xml 설정하기 # robots.txt 랑 sitemap.xml 설정하기 검색 엔진에게 사이트 어떻게 검색에 잡히게 하고 싶은지 통보해주는 robotx.txt 랑 sitemap.xml 설정하기. ## PH 2023-03-09 : First posting. ## TOC ## robots.txt ``` User-agent: * Allow: / ```/ ## sitemap.xml ```[.linenums.lang-html] This XML file does not appear to have any style information associated with it. The document tree is shown below. https://kipid.tistory.com 2023-03-09T09:01:46+09:00 1.0 h.. 더보기
LaTeX/Special Characters # LaTeX/Special Characters ## TOC ## Special characters \check{I} : \check{I} $\acute{J}$ : \acute{J} $\grave{K}$ : \grave{K} $\vec{u}, \vec{AB}$ : \vec{u}, \vec{AB} $\overrightarrow{u}, \overrightarrow{AB}$ : \overrightarrow{u}, \overrightarrow{AB} $\bar{z}$ : \bar{z} $\hat{x}$ : \hat{x} $\tilde{x}$ : \tilde{x} $\dot{x}, \ddot{x}, \dddot{x}$ : \dot{x}, \ddot{x}, \dddot{x} $\mathring{A}$ : \math.. 더보기
Change browser URL (window.location) without reloading or redirecting a page # Change browser URL or URI (window.location, Unique Resource Identifier) without reloading or redirecting a page 페이지를 일부만 바꾸고 싶을때, 혹은 JavaScript 변수들/데이터들을 유지하고 싶을때, 주로 AJAX request 를 이용한다. 그런데 사용자에게 일부가 바뀐 이 페이지의 주소는 이것이다라고 알려주고 다른 사람들과 공유하기 편하게 하려면, 바뀐 페이지에 바로 접속할 수 있는 주소로 URL (window.location) 이 바뀌어주는 것이 좋아보인다. 물론 이 주소로 접속을 하면 서버에서는 그 바뀐 페이지를 다시 보여주도록 디자인되어야 할테고. 인스타그램, 페이스북, GitHub 등의 사이트들에서.. 더보기