본문 바로가기

분류 전체보기

SimpleTrading Design -----------------------------------------------------------------------------------------------------------------------------------------------****** 프로그램 아키텍처 1. 추천종목, 매수, 매도에 대한 공통 메소드를 만들고 끼워넣었을 때 바로 적용되게 만들기 (클래스명만 넣어주면 나머지는 자동으로 작동되게)----------------------------------------------------------------------------------------------------------------------------------------------- ---------------.. 더보기
Linux filesystem mechnism (cp, mv) http://unix.stackexchange.com/questions/49299/what-is-linux-doing-differently-that-allows-me-to-remove-replace-files-where-win 참조 http://unix.stackexchange.com/questions/50466/how-does-cp-handle-open-files 참조 https://lists.mindrot.org/pipermail/openssh-unix-dev/2011-April/029487.html (cp 는 lock 이 안걸린다.) 요약하면 Linux 에서 파일을 지우거나 복사할 때 Lock 이 안걸린다. 그 이유는 delete 하는 과정은 Link counter를 지우고 file record에서.. 더보기
GET / POST 개념 http://www.letmecompile.com/get-post-%EB%B0%A9%EC%8B%9D-%EC%B0%A8%EC%9D%B4%EC%A0%90/ 참조 1. GET / POST GET, POST의 근본적인 특성 차이는 GET은 idempotent, POST는 non-idempotent 하다는 점이다.멱등(idempotent)이라는 말이 좀 어려운데, 아래와 같이 풀어서 설명하면 좀 이해가 쉬울것이다. 멱등 연산(idempotent operation)은 수학 용어로 해당 연산을 해도 결과에 변화가 없다는 특성을 표현하는 말이다. (예: 100 x 1 = 100 이므로, 곱셈에대해 1을 멱등원 이라고 부르며 이러한 1을곱하는 연산이 멱등 연산이다.)이러한 뜻을 HTTP요청 메서드를 해석하는데 적용해보면.. 더보기
Spring root context vs servlet context 참조 http://blog.naver.com/PostView.nhn?blogId=cjakma&logNo=150145506262&redirect=Dlog&widgetTypeCall=true 결론 : 둘 다 context인데 root 는 최상위 , servlet은 해당 서블릿만 적용 더보기
Spring Filter 설명 (Encoding) web.xml -name>encoding org.springframework.web.filter.CharacterEncodingFilter encoding UTF-8 encoding /* 모든 URL 패턴은 위에 CharacterEncodingFilter를 적용한다. CharacterEncdoingFilter 내부 소스를 보면 Reuqest, Response Encoding 설정이 들어오면 세팅해주게 되있네. * 인터셉터와 필터의 차이점 - 인터셉터가 필터에 비해 자유롭게 호출 가능 - 필터는 Request , DispatchServlet 사이에서 선처리 기능을 한다. (다소 유연성 떨어짐) 더보기
Logistic regression 개념 : 2개의 Input에 대한 분류를 담당하는 모델이 Logistic regression model 이라 한다. # 여기서 왜 w = [-4, 2] 만 적용하는거지? 왜 w를 업데이트 안하는거야? 샘플을 한 번 적용하고 w계수를 업데이트해야할 것 같은데# 이 과정은 본래 Training_set으로 훈련시킨 뒤 그 훈련시킨 w 계수를 가지고 testing_set을 집어 넣어 구한 뒤 accuracy를 구해서# 오차를 구하는 과정 source 는 svn ### 중요 ### 로지스틱 회귀도 결국 x1, x2에 대해 w1,w2가 더해져 y를 예측하고 분류하는 알고리즘이다. 이는 결국 Neural Network의 알고리즘과 일치하고 P(t = 1 | x, w) -> y = a (x * wT) a = logis.. 더보기
Linear Regression With Python http://peterroelants.github.io/posts/neural_network_implementation_part01/ 내용 정리 Source는 SVN에 있음. ipynb Linear regression - 개념 설명Define the target function - t = f(x) + noise Define the cost function - cost func 그리기 Gradient descent - w(k+1)=w(k)−Δw(k) - weight의 다음 값은 w의 현재 값에서 w를 미분한 값을 빼준다. (중요) Δw=μ∂ξ∂wΔw=μ∂ξ∂wWith μμ the learning rate, which is how big of a step you take along the gradient, .. 더보기
Python에서 효율적인 String Concatenation 방법 http://blog.leekchan.com/post/19062594439/python%EC%97%90%EC%84%9C-%ED%9A%A8%EC%9C%A8%EC%A0%81%EC%9D%B8-string-concatenation-%EB%B0%A9%EB%B2%95 참조 더보기
Python Naming rule https://www.python.org/dev/peps/pep-0008/#constants 참조 더보기
Mysql 한글 깨지는거 해결 참조 : 0. http://serpiko.tistory.com/442 - ALTER DATABASE 데이타베이스_이름 CHARACTER SET utf8 COLLATE utf8_general_ci; //DB - 이거만 했는데도 잘되네 1. http://mamp.tistory.com/entry/MySQL%EC%97%90%EC%84%9C-%ED%95%9C%EA%B8%80%EC%9D%B4-%EB%A1%9C-INSERT-%EB%90%98%EB%8A%94-%EA%B2%BD%EC%9A%B0-%ED%95%9C%EA%B8%80-%EC%9E%85%EB%A0%A5-%EC%98%A4%EB%A5%98 2. http://memo.polypia.net/archives/803 (python 에서 가져올 때 charset, use_u.. 더보기