Chrome Custom Tabs
launching the browser is a heavy context switch that isn’t customizable, while WebViews don’t share state with the browser and add maintenance overhead. 이런 단점들을 해결하기 위해 나온게 Chrome Custom Tab 이다. 웹...
launching the browser is a heavy context switch that isn’t customizable, while WebViews don’t share state with the browser and add maintenance overhead. 이런 단점들을 해결하기 위해 나온게 Chrome Custom Tab 이다. 웹...
기본적인 위젯 제작과 ListView http://blog.naver.com/PostView.nhn?blogId=horajjan&logNo=220578698191 전체적인 설명 RemoteViews ListView, StackView : RemoteViewsService/RemoteViewsFactory https://docs.huih...
Java에서 Vector는 ArrayList다. Vector가 있기는 하지만 사용할 필요가 없다. Vector와 ArrayList의 차이점은 동기화 처리에 있는데, Vector는 무조건 동기화이기 때문에 단일 쓰레드에서 성능이 떨어지며 멀티 스레드 모델에서도 Collection, Map, synchronizedCollection, synchronize...
<script> /\* check-all 기능 \*/ $(".check-all").click(function () { $(this.closest(".form-group")).find("input[type='checkbox']").not(this).prop('checked', this.checked); }); </script> ...
HTML5 data-* attribute <li id="test" data-animal-type="bird">Owl</li> Global attribute다. 페이지 혹은 앱 내에서만 사용할 데이터에 지정한다. 이렇게 지정한 데이터 "bird"는 JS에서 불러와 사용할 수 있다. CSS에서도 불러와 사용할 수 있다는게 큰 ...
gdb처럼 쓰면 된다. (Pdb) n # 함수 진입 안하고 한줄 실행 (Pdb) s # 함수 진입 하면서 한줄 실행 (Pdb) l 10 def mkList2(): 11 result = [value for value in range(1000)] 12 return result 1...
PyCharm같은 IDE에서도 지원하기 때문에, 굳이 직접 돌리지 않아도 된다. 상단에 Run, Debug 아이콘 옆에 보면 프로파일링 다양하게 지원함. python 기본 내장 라이브러리 benchmarking 목적 :timeit profiling 목적 :cProfile 근데, 시스템 함수까지 다 출력되어 보기 불편하고 복잡하다....
2017/08/25 - [Coding Syntax/etc] - Socket programming Tips socket 객체에서 로컬 (주소, 포트) 리모트 (주소, 포트) 가져오기 accept 할 때 addr을 별도로 저장할 필요가 없다. class SocketType 에 정의되어 있다. sock.getsockname() -- return loca...
<converter:variable_name> http://flask.pocoo.org/docs/1.0/quickstart/#variable-rules http://jinja.pocoo.org/docs/2.10/templates/ 컨텍스트 전역 변수 수신한 HTTP request 정보에 접근하기 위해서 컨텍스트 전역 변수 를 사용한다....
도커로 설치하면 (Empire) > 이게 계속 출력되면서 안된다. 그래서 그냥 native 설치해야함. python2가 기본 파이썬인 상태에서 설치해야 함. 사용법은 다음을 참고. Listener는 meterpreter말고 http로 해야 제대로 동작함. meterpreter로 하면 포트 리스닝도 안하고 생성되는 stager 코드도 문법에 안맞...