전체 글 354

mysql 기본 encoding 변경 (latin1 to utf8)

[mysql 에 저장된 한글이 깨질 경우에 대한 결론] -. 아래 3가지 항목을 확인하자 1. mysql의 기본 character set을 utf8로 변경한다. 2. table의 기본 character set을 utf8로 변경한다. 3. column의 character set을 utf8로 변경한다. 이렇게 3가지를 다하니 한글이 잘 보인다...... [mysql의 기본 character set 을 utf8로 변경] mysql 초기값을 보면 latin1 으로 character set이 설정되어 있다. 이로 인해 한글이 제대로 표시가 되지 않는데 django에서 보면 표시가 되지 않거나 깨져서 보인다. 검색을 좀 해보니 mysql의 기본 encoding을 utf8로 변경해야 한다고 한다. [/etc/mysq..

Database 2015.10.23

Slickgrid 와 django의 연동

현재 사용하고 있는 Django에 Slickgrid를 연동하였다. 기본적으로 slickgrid는 django의 static에 위치시키고 templete에서 호출하여 사용한다. (일반 이미지를 읽어 오듯이) 여기까지는 별다른 문제가 없는데 views.py 에서 templete로 넘기는 data 형식이 아직 감이 잡히지 않는다. 결국에는 json 형식으로 data를 생성하여 slickgrid 생성시에 argument로 넘겨줘야 하는데, django에서 json 형식으로 만들어서 templete로 넘겨 주는냐 아니면 dict 상태에서 templete로 넘겨 javascript에서 json 형태로 만들어서 사용하느냐의 차이일것 같다. grid = new Slick.Grid("#myGrid", data, colu..

Language/Javascript 2015.10.16

meta tag

HTML 문서를 보다 보면 다음과 같은 tag가 존재한다 ... DOCTYPE 은 문서 HTML 버전을 나타내는 태그은 html 문서의 시작을 알리는 태그는 문서의 일반적인 정보를 포함하고 있는 태그로 아래와 같은 태그를 포함할 수 있다. , , , , , , ... 그렇다면 위 head에 포함될 수 있는 태그 중 meta tag는 무엇을 하는 태그일까.. w3mschools 에서는 다음과 같이 정의하고 있다. Metadata is data (information) about data.The tag provides metadata about the HTML document. Metadata will not be displayed on the page, but will be machine parsable...

Language/HTML 2015.10.15

Ipython .. python 과 무엇이 다른가.

Ipython 이라는 것을 처음 접했을 때 Python 과 어떤 관계가 있는지 개념이 서지 않았다. OverviewOne of Python’s most useful features is its interactive interpreter. It allows for very fast testing of ideas without the overhead of creating test files as is typical in most programming languages. However, the interpreter supplied with the standard Python distribution is somewhat limited for extended interactive use.[http://ipytho..

Language/Python 2015.09.14

Python Chart, Graph library

Python 으로 chart나 graph를 그리는 방법 Matplotlib (http://matplotlib.org/) 가장 기본적인 char library로 다른 library 들 조차도 이 library와의 비교를 통해 자신들의 library를 소개하고 있다. Plotly (https://plot.ly/python/) Sample들만 보았을 때 다른 라이브러리는 사용해 보고 싶지 않을 정도로 내가 원하는 chart를 그려주고 있다. 페이지를 보다보니 online 기반. sample char - https://plot.ly/pandas/ PyChart (http://home.gna.org/pychart/) 소개 내용만으로 보았을 때 chart 결과물을 png로 남겨주고 있어 zoom in/out 등 원..

Language/Python 2015.09.11

python excel xls xlsx

Python 으로 xls, xlsx file을 수정하는 방법으로 아래의 library 를 사용하는 방법이 있다. 하지만 각각의 장단점 및 제약 사항이 있기 때문에 혼용해서 사용하는 것이 가장 좋은 방법으로 생각된다. pandas를 사용하면 조합하여 사용가능하다 Reading Excel FilesThe read_excel() method can read Excel 2003 (.xls) and Excel 2007 (.xlsx) files using the xlrd Python module. Writing Excel FilesFiles with a .xls extension will be written using xlwt andthose with a .xlsx extension will be written u..

Language/Python 2015.08.09

IPv6

IPv6 이 소개되게 된 이유 https://www.google.com/intl/en/ipv6/ The new, larger version of the Internet: IPv6 0:00 Imagine having a mobile that doesn't have the ability to talk to computers on the Internet. 인터넷을 사용할 수 없는 휴대폰을 가지고 있다고 상상해보자. 0:06 You couldn't do a Google search, you couldn't send and receive mail. As time has gone on, 구글 검색을 할 수도 없고, 이메일을 보내거나 받을수도 없다. 시간이 가면서 0:11 more and more devices ha..

Network 2015.08.04