syntaxhighlighter_3.0.83.zip
0.17MB

 

[syntaxhighlighter 사용 준비]

1. 첨부되어있는 'syntaxhighlighter_3.0.83.zip' 을 다운받고 압축 풀기

2. 필요한 파일 업로드 : script 폴더와 styles 폴더의 모든 파일
   업로드 경로 : Tistory 관리자 - skin편집 - html 편집 - '파일업로드'
   (* images/ 하위로 script와 styles 폴더의 모든 파일을 업로드)

3. HTML 파일 수정(skin.html)
   3.1 수정1 : </head> 를 찾아서 바로 위에 아래의 코드 입력

   3.2. 수정2 : <body> 찾아서 '>' 앞에 Onload="dp.SyOnload="dp.SyntaxHighlighter.HighlightAll('code'); 추가

 

 

 

[syntaxhighlighter 사용 하기]

글작성 중 source code를 적용하고 싶을 때 HTML편집모드에서 아래 코드를 입력하고 그 안에 소스코드 입력 

 

예를 들어 html의 경우 <SCRIPT class="brush: html" type="syntaxhighlighter">

 

예를 들어 python의 경우 <SCRIPT class="brush: python" type="syntaxhighlighter">

 

*** 기본모드와 HTML모드를 왔다갔다 하다보면 코드가 안나오는 경우가 있는데,
     잘 살펴보면, SCRIPT 안의 class=brush 항목이 자동으로 없어져있다. -- 수동으로 다시 입력!!!

※ 참고: https://github.com/syntaxhighlighter/syntaxhighlighter/wiki/Usage

윤년(閏年)은 역법을 실제 태양년에 맞추기 위해 여분의 하루 또는 월(月)을 끼우는 해이다. 태양년은 정수의 하루로 나누어 떨어지지 않고,  공전주기 지구의 공전 주기는 다르기 때문에 태양력에서는 하루(윤일), 태음태양력 (https://ko.wikipedia.org/wiki/윤년)

 

윤년 - 위키백과, 우리 모두의 백과사전

위키백과, 우리 모두의 백과사전. 윤년(閏年)은 역법을 실제 태양년에 맞추기 위해 여분의 하루 또는 월(月)을 끼우는 해이다. 태양년은 정수의 하루로 나누어떨어지지 않고, 달의 공전주기와 지구의 공전주기는 다르기 때문에 태양력에서는 하루(윤일), 태음태양력에서는 한 달(윤달)을 적절한 시기에 끼워서 이를 보정한다. 태양력에서는 보통 윤일이 들어 있는 해를 말하는데, 이 경우 1년은 366일이 되며 이것이 바로 윤년이다. 지구가 태양을 한 바퀴 도는 데에는

ko.wikipedia.org

태양력의 윤년

현재 전 세계 대부분의 나라에서 쓰는 그레고리력은 4년에 반드시 하루씩 윤날(2월 29일)을 추가하는 율리우스력을 보완한 것으로, 태양년과의 편차를 줄이기 위해 율리우스력의 400년에서 3일(세 번의 윤년)을 뺐다.

그레고리력의 정확한 윤년 규칙은 다음과 같다.

  1. 서력기원연수가 4로 나누어 떨어지는 해는 윤년으로 한다. (1992년, 1996년, 2004년, 2008년, 2012년, 2016년, 2020년, 2024년, 2028년, 2032년, 2036년, 2040년...)
  2. 서력기원연수가 4, 100으로 나누어 떨어지는 해는 평년으로 한다. (1900년, 2100년, 2200년, 2300년, 2500년...)
  3. 서력기원연수가 4, 100, 400으로 나누어 떨어지는 해는 윤년으로 둔다. (2000년, 2400년...)

[ 위키 영문에서 알려주는 윤년 알고리즘 ]
if
 (year is not divisible by 4) then (it is a common year)
else if (year is not divisible by 100) then (it is a leap year)
else if (year is not divisible by 400) then (it is a common year)
else (it is a leap year)

다시 정리해보자면.... 이렇게 되는데
1. 연수가 4로 나누어 떨어지는 해는 윤년
2. 1의 해 중에서 100으로 나누어지는 해는 평년
3. 2의 해 중에서 400으로 나누어 지는 해는 윤년

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
29
30
31
"""
1900년부터 2200년까지의 윤년계산하기
"""
 
# ---------------------------------
# C 처럼 하나씩 풀기
# ---------------------------------
= []
for k in range(1900,2201):
    if(not k%4):
        if(k%100):
            l.append(k)
        elif(not k%400):
            l.append(k)
print(l)
 
# ---------------------------------
# if 구문 중첩 조건으로 풀기
# ---------------------------------
l2 = []
for k in range(1900,2201):
    if(not k%4 and k%100 or not k%400):
        l2.append(k)
print(l2)
 
# ---------------------------------
# 리스트 내장(List Comprehension으로 풀기
# ---------------------------------
l3 = [k for k in range(1900,2201if(not k%4 and k%100 or not k%400)]
print(l3)
 
cs

3가지 모두 결과는 동일하다.

[1904, 1908, 1912, 1916, 1920, 1924, 1928, 1932, 1936, 1940, 1944, 1948, 1952, 1956, 1960, 1964, 1968, 1972, 1976, 1980, 1984, 1988, 1992, 1996, 2000, 2004, 2008, 2012, 2016, 2020, 2024, 2028, 2032, 2036, 2040, 2044, 2048, 2052, 2056, 2060, 2064, 2068, 2072, 2076, 2080, 2084, 2088, 2092, 2096, 2104, 2108, 2112, 2116, 2120, 2124, 2128, 2132, 2136, 2140, 2144, 2148, 2152, 2156, 2160, 2164, 2168, 2172, 2176, 2180, 2184, 2188, 2192, 2196]

 

분석 가이드라인데이터 분석 단계 중 '알고리즘의 선택' 의 한가지 방법

(* 연세대 김현중 교수님의 강의록 참조)

지도학습 비지도학습 범주형 연속형 연관분석 설명력 예측력 회귀분석 의사결정 랜덤포레스트 SVN KNN SVR 군집화


Daum Pot Encoder 2.1.4.53


다음 팟인코더 구버전입니다.

개인적으로 가끔 사용


DaumPotEncoder21453.z01

DaumPotEncoder21453.zip


brontobyte


A brontobyte is a measure of memory or data storage that is equal to 10 to the 27th power of bytes. There are approximately 1,024 yottabytes in a brontobyte. Approximately 1,024 brontobytes make up a geopbyte.


Brontobytes are sometimes represented by the symbol BB, but the prefix bronto- is not currently an official SI prefix that is recognized by the International Bureau of Weights and Measures. In 2010, following a campaign on the campus of the University of California, Davis, an online petition was created to have hella- become the official SI prefix for 1027. The suggested prefix originated from Southern California slang for "hell of a lot." The prefix was incorporated into the Google calculator in May 2010, but the campaign otherwise subsided.

There is nothing in existence currently measurable on the brontobyte scale, but internet of things and sensor data are the most common potential uses for brontobyte-level storage. The advent of technology like self-driving cars, which will generate enormous amounts of sensor data, could bring brontobytes as a unit into the storage media sphere.

 

Storage Media Units

PROCESSOR OR VIRTUAL STORAGE

DISK STORAGE 

 1 bit = binary digit
8 bits = 1 byte
1,024 bytes = 1 kilobyte
1,024 kilobytes = 1 megabyte
1,024 megabytes = 1 gigabyte
1,024 gigabytes = 1 terabyte
1,024 terabytes = 1 petabyte
1,024 petabytes = 1 exabyte
1,024 exabytes = 1 zettabyte
1,024 zettabytes = 1 yottabyte
1,024 yottabytes = 1 brontobyte
1,024 brontobytes = 1 geopbyte

 1 bit = binary digit
8 bits = 1 byte
1,000 bytes = 1 kilobyte
1,000 kilobytes = 1 megabyte
1,000 megabytes = 1 gigabyte
1,000 gigabytes = 1 terabyte
1,000 terabytes = 1 petabyte
1,000 petabytes = 1 exabyte
1,000 exabytes = 1 zettabyte
1,000 zettabytes = 1 yottabyte
1,000 yottabytes = 1 brontobyte
1,000 brontobytes = 1 geopbyte

 

Estimates and projections for future numbers of internet-connected objects differ, but if they keep growing at the current rate, they are sure to generate massive amounts of data in the near future. In 2015, Cisco Systems estimated that there were approximately 14.8 billion devices connected to the internet, and that number would grow to 50 billion in 2020, when brontobytes could potentially come into play.

원본출처 : http://searchstorage.techtarget.com/definition/brontobyte?utm_content=control&utm_medium=EM&asrc=EM_ERU_74353477&utm_campaign=20170320_ERU%20Transmission%20for%2003/20/2017%20(UserUniverse:%202329838)&utm_source=ERU&src=5619767

* 파이썬 코딩스타일  PEP8(Style Guide for Python code, http://legacy.python.org/dev/peps/pep-0008/)

- 들여쓰기는 공백 문자 4개로 하자.

- 한 줄의 최대 글자는 79자로 한다.

- 최상위 함수와 클래스 정의들은 두 줄씩 띄우자.

- 파일은 UTF-8 또는 ASCII로 인코딩하자.

- 한 import 문에선 모듈 하나만 Import한다.  한 줄에 import 문 하나만 쓰자.
   import는 파일의 처음에 두지만 docstring과 같은 주석이 있으면 바로 그 다음에 위치시키자.
   import는 표준 라이브러리, 서드파티, 로컬 라이브러리 순으로 묶자.

- 소괄호나 중괄호, 대괄호 사이에 추가로 공백을 주지 말고, 쉼표 앞에도 공백을 주지 말자.

- 클래스 이름은 CameCasec처럼 하자. 예외명은 Error로 끝내자.
  함수 이름은 separated_by_underscores처럼 소문자와 밑줄 문자(_)를 이용해서 짖자.
  비공개인 속성이나 메서드 이름은 밑줄 문자로 시작하자(_private).

 

* PEP8 스타일에 맞는 코드 리뷰!

https://pypi.python.org/pypi/pep8

 

리눅스 들여쓰기 스타일 지정(Linux vi tab intend)

 

최근에 Python을 vi로 작성해니 들여쓰기의 기본값인 '8'을 '4'로 바꿔야겠다는 생각이 들었다.

그래서 찾아본 vi 환경설정 방법이다.

(*실제 Python.org 에서 권고하는 들여쓰기가 '4'이다.)

 

○ " .vimrc " 파일을 생성하여 다음을 입력한다.
   set tabstop=4
   set shiftwidth=4
   set softtabstop=4
   set expandtab

○ 저장 후 vi/vim을 재시작한다.

간단하다!!!
각 속성이 의미하는 바는 아래와 같다.

----------------------------

http://stackoverflow.com/questions/1878974/redefine-tab-as-4-spaces

To define this on a permanent basis for the current user, create (or edit) the .vimrc file:

$ vim ~/.vimrc

Then, paste the configuration below into the file. Once vim is restarted, the tab settings will apply.

set tabstop=4       " The width of a TAB is set to 4.
                    " Still it is a \t. It is just that
                    " Vim will interpret it to be having
                    " a width of 4.

set shiftwidth=4    " Indents will have a width of 4

set softtabstop=4   " Sets the number of columns for a TAB

set expandtab       " Expand TABs to spaces

To make the above settings permanent add these lines to your vimrc.

In case you need to make adjustments, or would simply like to understand what these options all mean, here's a breakdown of what each option means:

tabstop

The width of a hard tabstop measured in "spaces" -- effectively the (maximum) width of an actual tab character.

shiftwidth

The size of an "indent". It's also measured in spaces, so if your code base indents with tab characters then you want shiftwidth to equal the number of tab characters times tabstop. This is also used by things like the =, > and < commands.

softtabstop

Setting this to a non-zero value other than tabstop will make the tab key (in insert mode) insert a combination of spaces (and possibly tabs) to simulate tab stops at this width.

expandtab

Enabling this will make the tab key (in insert mode) insert spaces instead of tab characters. This also affects the behavior of the retab command.

smarttab

Enabling this will make the tab key (in insert mode) insert spaces or tabs to go to the next indent of the next tabstop when the cursor is at the beginning of a line (i.e. the only preceding characters are whitespace).

 

 



*기록성 포스팅*

Network tracing (packet sniffing) built-in to Windows and Windows Server.

https://blogs.technet.microsoft.com/yongrhee/2012/12/01/network-tracing-packet-sniffing-built-in-to-windows-server-2008-r2-and-windows-server-2012/


*Trace Start

Netsh trace start scenario=InternetClient capture=yes report=yes persistent=no maxsize=1024 correlation=yes traceFile=C:\TEMP\NetworkTrace.etl

*Trace Stop
Netsh trace stop

 

*ETL Data Analyzer ( Microsoft Message Analyzer )

https://blogs.technet.microsoft.com/yongrhee/2015/05/23/tool-installing-the-microsoft-message-analyzer-version-1-3/

Download: https://blogs.technet.microsoft.com/messageanalyzer/2015/05/20/message-analyzer-1-3-has-released-build-7540/

+ Recent posts