2016. 1. 27. 13:17

ui 파일에서 py 소스 변환


pyuic4 untitled.ui -o untitled.py

Posted by sungwonpekr
2016. 1. 23. 23:16

python -> https://www.python.org/

참고 : https://wikidocs.net/book/1

참고 : http://blog.eairship.kr/category/%ED%94%84%EB%A1%9C%EA%B7%B8%EB%9E%98%EB%B0%8D%20%EA%B4%80%EB%A0%A8/Python



SublimeText  http://www.sublimetext.com/

추가 plugin 설치 -> https://packagecontrol.io/installation#st3


SublimeText에서 python 사용하기 위한 plugin


SublimeREPL

SublimeLinter

SublimeLinter 설치 후 

https://bootstrap.pypa.io/ 에서 get-pip.py를 다운로드 후.. Sublime Text로 불러와 Ctrl+B를 눌러서 실행시킵니다.


%python_home%\Scripts> pip3.4 install flake8


SublimeLinter-flake8 설치



Sublime Text 3 에서 파이썬 빌드 설정



 

// Preferences -> Browser Packages ... 를 선택하면, 윈도우탐색기(혹은 파인더) 로 Packages 디렉토리가 뜹니다.

// Users 디렉토리에 본 파일을 복사해주세요.

// 맥에서는 $HOME/Library/Application Support/Sublime Text 3/Packages/User/Python-UTF8.sublime-build 과 같은 경로가 됩니다.

// 윈도우에서는 $HOME/Application Data\Sublime Text 3\Packages\User\Python-UTF8.sublime-build 과 같은 경로가 됩니다.

// 이제 Tols -> Build System 에서 Python-UTF8 을 선택하고, 실행할 파이썬 스크립트를 연 후, Ctrl+B 를 눌러봅니다.

// 한글이 잘 출력되면 OK !!!


{

   "shell_cmd": "python -u \"$file\"",

   "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",

   "selector": "source.python",

   "env": {"PYTHONIOENCODING": "utf8"}

}


indentxml


"theme": "Soda Dark 3.sublime-theme",


ConvertToUTF8


http://openpyxl.readthedocs.org/en/latest/index.html

참고 : http://www.hanul93.com/openpyxl-basic/


https://bitbucket.org/





// Settings - User

{

"color_scheme": "Packages/User/SublimeLinter/Monokai (SL).tmTheme",

    "theme": "Soda Dark 3.sublime-theme",

"detect_indentation": false,

"font_size": 11,

"ignored_packages":

[

"Vintage"

],

"show_encoding": true,

    "highlight_line": true,

    "tab_completion": false,

    "fade_fold_buttons":true,

    "bold_folder_labels":true,

    "highlight_modified_tabs":true

}



// Key Binding - User

[

{ "keys": ["ctrl+alt+b"], "command": "run_existing_window_command", "args":

{

"id": "repl_python_run",

"file": "config/Python/Main.sublime-menu"

}

]




Posted by sungwonpekr
2013. 8. 19. 15:38

1. SFTP(SSH File Transfer Protocol)

정확히 말하면 SFTP 프로토콜은 FTP를 사용하지 않는다. SFTP는 SSH 기반의 새로운 파일 전송 프로토콜이다. SSH 서버가 구축되어 있어야 한다. Telnet을 대체하는 원격관리 프로토콜인 SSH를 이용하기 때문에 구축 및 유지 비용이 적고 다른 보안 FTP 메커니즘에 비해 일반 사용자들이 사용하기에 편리하여 많이 사용된다.

일반 사용자들은 FileZilla, SSH Secure Shell v3.29 또는 pscp, WinSCP 프로그램을 이용한다. 상용S/W로는 VanDyke Software 社에서 나온 SecureFX가 있다.


2. FTP over SSH(Secure FTP)

SSH 연결 위에 일반 FTP로 터널링 연결을 함으로써 접속 시에 계정 정보가 암호화 되어 악의적인 공격자에게 노출되지 않지만 데이터는 암호화 되지 않는다.

이 방법은 ssh를 이용하여 터널링을 구성한 다음, 일반 ftp로 접속하는 방법이기 때문에 일반 사용자들이 사용하기에는 쉽지 않다.


3. FTPS(FTP over SSL)

FTP Secure 또는 FTP-SSL로 알려진 FTPS는 TLS(Transport Layer Security)와 Secure Sockets Layer (SSL) 암호화 프로토콜이 더해진 FTP의 확장판이다. SSL 레이어 위에서 FTP를 수행하는 것으로서 command 와 data 모두 암호화 된다.



Posted by sungwonpekr
2013. 8. 5. 11:00

인증서를 사용한 암복호화 샘플 


bouncycastle 라이브러리 이용



Posted by sungwonpekr
2013. 8. 5. 10:55
PGP Key를 사용한 암복호화 샘플 

bouncycastle 라이브러리 이용


Posted by sungwonpekr
2013. 8. 5. 10:48
Posted by sungwonpekr
2013. 8. 5. 10:48
Posted by sungwonpekr
2013. 7. 19. 18:02

t-code : sm49



- 실행 하고자 하는 command 입력 & 저장




- 필요한 parameter 입력




- 결과


Posted by sungwonpekr
2013. 7. 12. 19:34

- HTTP


- HTTPS



Posted by sungwonpekr
2013. 7. 12. 15:04

출처 : http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/07/24/java-based-http-adapter--how-to-pass-username-and-password-in-query-string


Java based HTTP adapter - How to pass username and password in query string?


If you have started using Java based HTTP sender adapter, either you might have spent some time in finding out how to pass user name and password in the query string or you might still be wondering how to pass user name and password in query string.

 

If you use sap-user and sap-password, you might have noticed that it is not working anymore and you would get authentication error "HTTP/1.1 401 Unauthorized".

 

Instead of sap-user, j_username can be used to pass username in query string.

 

Instead of sap-password, j_password can be used to pass password in query string.

 

The url should look like

http://<server>:<port>/HttpAdapter/HttpMessageServlet?interfaceNamespace=test.com&interface=Test_Out&senderService=TEST_BS&senderParty=&receiverParty=&receiverService=&qos=BE&j_username=testuser&j_password=testpwd

 

Additional details on Java based HTTP adapter test tool are available at PI 7.30 HTTP Java Adapter Test Tools.

 

Additiona details on configuring the Java HTTP sender adapter and URL details are available at AAE - Configuring the Java HTTP Adapter on the Sender Channel.

 

Caution: You should avoid using this method of authentication in your landscape. This short blog is written just to inform the readers on what parameter names to be used for  user name and password in query string of http client that is sending request to Java HTTP adapter.

Posted by sungwonpekr