'Programming'에 해당되는 글 1844건

  1. 2019.04.30 python + openGL
  2. 2019.04.30 python + openCV 공부 시작
  3. 2019.04.26 ECDHE?
  4. 2019.04.26 HTTP 302 redirect
  5. 2019.04.24 closure
  6. 2019.04.23 iife (Immediately Invoked Function Expression)
  7. 2019.04.23 node.js 항목 확인
  8. 2019.04.23 proxy error: Error: write after end
  9. 2019.04.23 node.js 시그널 핸들링과 reload
  10. 2019.04.23 spring war와 war.original

해보려는데 영 안되네.. 설치 안한게 있어서 그런가?

 

C:\Users>pip install pyopengl numpy glfw
Collecting pyopengl
  Downloading https://files.pythonhosted.org/packages/9c/1d/4544708aaa89f26c97cc09450bb333a23724a320923e74d73e028b3560f9/PyOpenGL-3.1.0.tar.gz (1.2MB)
     |████████████████████████████████| 1.2MB 731kB/s
Requirement already satisfied: numpy in c:\users\shin\appdata\local\programs\python\python37-32\lib\site-packages (1.16.3)
Collecting glfw
  Downloading https://files.pythonhosted.org/packages/af/3b/2f8c60fcb0a486eae4dd18c29de22ed667aed5e81f16874102f8580b5900/glfw-1.7.1-py2.py3-none-win32.whl (55kB)
     |████████████████████████████████| 61kB 27kB/s
Installing collected packages: pyopengl, glfw
  Running setup.py install for pyopengl ... done
Successfully installed glfw-1.7.1 pyopengl-3.1.0

 

C:\study\python>python gl.py
Traceback (most recent call last):
  File "gl.py", line 92, in 
    main()
  File "gl.py", line 13, in main
    window = glfw.create_window(800, 600, "My OpenGL window", None, None)
  File "C:\Users\shin\AppData\Local\Programs\Python\Python37-32\lib\site-packages\glfw\__init__.py", line 893, in create_window
    monitor, share)
  File "C:\Users\shin\AppData\Local\Programs\Python\Python37-32\lib\site-packages\glfw\__init__.py", line 516, in errcheck
    _reraise(exc[1], exc[2])
  File "C:\Users\shin\AppData\Local\Programs\Python\Python37-32\lib\site-packages\glfw\__init__.py", line 45, in _reraise
    raise exception.with_traceback(traceback)
  File "C:\Users\shin\AppData\Local\Programs\Python\Python37-32\lib\site-packages\glfw\__init__.py", line 495, in callback_wrapper
    return func(*args, **kwargs)
  File "C:\Users\shin\AppData\Local\Programs\Python\Python37-32\lib\site-packages\glfw\__init__.py", line 669, in _raise_glfw_errors_as_exceptions
    raise GLFWError(message)
glfw.GLFWError: (65542) b'WGL: The driver does not appear to support OpenGL'

[링크 : https://webnautes.tistory.com/1271]

[링크 : https://answers.microsoft.com/.../no-opengl-acceleration-with-hd-3000-on-windows-10/...]

[링크 : https://www.intel.com/content/www/us/en/support/articles/000005526/graphics-drivers.html?language=en_US]

 

+

2019.05.01

 

홈페이지 가보니 PyOpenGL_accelerate 패키지를 안깔아서 그런가?

Downloading and Installation
The easiest way to install PyOpenGL is using pip

$ pip install PyOpenGL PyOpenGL_accelerate

[링크 : http://pyopengl.sourceforge.net/]

'Programming > python(파이썬)' 카테고리의 다른 글

PyOpenGL + ubuntu 18.04  (0) 2019.05.02
python 3.7 + MS build tool 2015 + pyGL 또 실패 ㅠㅠ  (0) 2019.05.01
python + openCV 공부 시작  (0) 2019.04.30
pypy  (0) 2018.04.04
파이썬 print가 희한하네..  (0) 2017.04.02
Posted by 구차니

지하철에서 잉여하지 말고 이거나 해야지

노트북에 웹캠도 있으니 딱이네

 

[링크 : https://diy-project.tistory.com/78]

[링크 : https://pypi.org/project/opencv-contrib-python/]

 

vscode와 연동하기

[링크 : https://realpython.com/python-development-visual-studio-code/]

 

+

C:\Users>pip install OpenCV-Python
Collecting OpenCV-Python
  Downloading https://files.pythonhosted.org/packages/99/ad/864b2f284517249a96190fdf6b21a291d9716115d6886938ccd86afaf821/opencv_python-4.1.0.25-cp37-cp37m-win32.whl (25.7MB)
    100% |████████████████████████████████| 25.7MB 439kB/s
Collecting numpy>=1.14.5 (from OpenCV-Python)
  Downloading https://files.pythonhosted.org/packages/ab/75/9ac63977cbca68e17406a53a8c573a925a16771800be47a73f18c838f3fb/numpy-1.16.3-cp37-cp37m-win32.whl (10.0MB)
    100% |████████████████████████████████| 10.0MB 371kB/s
Installing collected packages: numpy, OpenCV-Python
Successfully installed OpenCV-Python-4.1.0.25 numpy-1.16.3
You are using pip version 19.0.3, however version 19.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

'Programming > python(파이썬)' 카테고리의 다른 글

python 3.7 + MS build tool 2015 + pyGL 또 실패 ㅠㅠ  (0) 2019.05.01
python + openGL  (0) 2019.04.30
pypy  (0) 2018.04.04
파이썬 print가 희한하네..  (0) 2017.04.02
파이썬 리스트(list)와 튜플(tuple)  (0) 2017.04.02
Posted by 구차니
Programming/web 관련2019. 4. 26. 16:41

node.js 에서 내용을 못 까길래 이상하다 싶어서 보는데 나온 용어.

혹시  node.js 에서 TLSv1.3을 지원하지 않기 때문인가.. 정책상 못풀게 되어 있어서 못 건드는걸까?

Perfect Forward Secrecy was optional up to TLSv1.2, but it is not optional for TLSv1.3, because all TLSv1.3 cipher suites use ECDHE.

TLSv1.3 does not support renegotiation.

[링크 : https://nodejs.org/api/tls.html]

[링크 : https://medium.com/sjk5766/ecdhe-왜-패킷을-보여주지-않는거야-6abc43d5ac9e]

[링크 : https://rsec.kr/?p=455]

'Programming > web 관련' 카테고리의 다른 글

resizable table cell  (0) 2019.06.17
web framework  (0) 2019.06.05
css position  (0) 2019.03.28
webpack  (0) 2019.02.20
ajax bearer token header  (0) 2019.02.07
Posted by 구차니

프록시 만들어 보다보니

그냥 사용중에는 티가 안나는데 저장된 파일은 단순하게 http meta equiv도 없이 리다이렉션 되서 찾아봄

 

 

[링크 : https://www.netmanias.com/.../cdn-http-network-protocol/http-redirection-using-302-found]

[링크 : https://developer.mozilla.org/ko/docs/Web/HTTP/Status/302]

'Programming > javascript & HTML' 카테고리의 다른 글

웹에서 f5 갱신 막기  (0) 2019.06.04
cose network graph  (0) 2019.06.03
closure  (0) 2019.04.24
iife (Immediately Invoked Function Expression)  (0) 2019.04.23
javascript 배열 초기화(벤치마크)  (0) 2019.04.12
Posted by 구차니

클로저 듣긴했는데 머더라?

 

 

[링크 : https://hyunseob.github.io/2016/08/30/javascript-closure/]

'Programming > javascript & HTML' 카테고리의 다른 글

cose network graph  (0) 2019.06.03
HTTP 302 redirect  (0) 2019.04.26
iife (Immediately Invoked Function Expression)  (0) 2019.04.23
javascript 배열 초기화(벤치마크)  (0) 2019.04.12
js 난독화  (0) 2019.03.14
Posted by 구차니

요게.. 람다랑 같은건지 다른건지 모르겠네?

 

[링크 : https://velog.io/@doondoony/javascript-iife]

[링크 : http://chanlee.github.io/2014/01/11/understand-javascript-iife/]

[링크 : http://jdub7138.blog.me/221027225353]

'Programming > javascript & HTML' 카테고리의 다른 글

HTTP 302 redirect  (0) 2019.04.26
closure  (0) 2019.04.24
javascript 배열 초기화(벤치마크)  (0) 2019.04.12
js 난독화  (0) 2019.03.14
HTML video 태그 loop 와 webalizer hit  (0) 2019.02.28
Posted by 구차니
Programming/node.js2019. 4. 23. 18:17

와.. 'undefined' 랑 비교 안해도 되는 저런 멋진 문법?

if('content-length' in ctx.proxyToServerRequestOptions.headers)

[링크 : https://github.com/.../examples/removeProxyToServerContentLength.js]

[링크 : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/in]

'Programming > node.js' 카테고리의 다른 글

pdf 내용 추출  (0) 2019.05.27
node.js express 301 redirect  (0) 2019.05.15
proxy error: Error: write after end  (0) 2019.04.23
node.js 시그널 핸들링과 reload  (0) 2019.04.23
nodejs url param delete  (0) 2019.04.17
Posted by 구차니
Programming/node.js2019. 4. 23. 18:07

흐음.. 왜 안써지냐..

기본 예제로는 response.end(data) 식이었고..

얘는 response.write(data, endcoding); response.end(callback); 두개 문장으로 실행되는 유사한 효과를 준다는데

그럼 되는거 아닌가? ㅠㅠ

 

response.end([data][, encoding][, callback])#

History

This method signals to the server that all of the response headers and body have been sent; that server should consider this message complete. The method, response.end(), MUST be called on each response.

If data is specified, it is similar in effect to calling response.write(data, encoding) followed by response.end(callback).

If callback is specified, it will be called when the response stream is finished.

[링크 : https://nodejs.org/api/http.html#http_class_http_serverresponse]

 

 

+

으으 망할.. async 문제인가?

[링크 : https://teamtreehouse.com/community/error-write-after-end-3]

'Programming > node.js' 카테고리의 다른 글

node.js express 301 redirect  (0) 2019.05.15
node.js 항목 확인  (0) 2019.04.23
node.js 시그널 핸들링과 reload  (0) 2019.04.23
nodejs url param delete  (0) 2019.04.17
url 끝의 /  (0) 2019.04.17
Posted by 구차니
Programming/node.js2019. 4. 23. 13:31

process.on 으로 시그널 핸들러를 연결해두는 듯

 

var cluster = require('cluster');

console.log('started master with ' + process.pid);

//fork the first process
cluster.fork();

process.on('SIGHUP', function () {
  console.log('Reloading...');
  var new_worker = cluster.fork();
  new_worker.once('listening', function () {
    //stop all other workers
    for(var id in cluster.workers) {
      if (id === new_worker.id.toString()) continue;
      cluster.workers[id].kill('SIGTERM');
    }
  });
});

[링크 : https://joseoncode.com/2015/01/18/reloading-node-with-no-downtime/]

[링크 : http://zguide.zeromq.org/js:interrupt]

[링크 : https://stackoverflow.com/questions/20165605/detecting-ctrlc-in-node-js]

'Programming > node.js' 카테고리의 다른 글

node.js 항목 확인  (0) 2019.04.23
proxy error: Error: write after end  (0) 2019.04.23
nodejs url param delete  (0) 2019.04.17
url 끝의 /  (0) 2019.04.17
js array key 삭제하기  (0) 2019.04.16
Posted by 구차니
Programming/Java(Spring)2019. 4. 23. 10:19

maven 에서 repackging 이라는걸로 인해서 이렇게 바뀐다는데

file로 보면 war는 data과 war.original은 zip archive data 라고 되어있는데 무슨 차이인지 감이 안오네..

 

The answer is that you are using repackage goal in your spring-boot-maven-plugin. So, What it does?

Maven first builds your project and packages your classes and resources into a WAR (${artifactId}.war) file.

Then, repackaging happens. In this goal, all the dependencies mentioned in the pom.xml are packaged inside a new WAR (${artifactId}.war) and the previously generated war is renamed to ${artifactId}.war.original.

[링크 : https://stackoverflow.com/.../why-spring-boot-generate-jar-or-war-file-with-original-extention/43641913]

[링크 : https://docs.spring.io/spring-boot/docs/current/reference/html/build-tool-plugins-maven-plugin.html]

 

[링크 : http://repackage.org/]

 

Repackages existing JAR and WAR archives so that they can be executed from the command line using java -jar. With layout=NONE can also be used simply to package a JAR with nested dependencies (and no main class, so not executable).

[링크 : https://docs.spring.io/spring-boot/docs/current/maven-plugin/repackage-mojo.html]

 

[링크 : https://preamtree.tistory.com/69]

Posted by 구차니