Sunday, December 28, 2014

how to enable UTF-8 encoding

http://yoo2080.wordpress.com/2013/09/09/how-to-enable-unicode-encoding-lexical-scope-and-cl-functions-in-an-emacs-lisp-file/

1. how to enable UTF-8 encoding

In order to be able to use Unicode characters (in strings or comments) in your init file, visit the init file, then invoke the command add-file-local-variable-prop-line to add the file local variable coding with utf-8 as its value.

M-x add-file-local-variable-prop-line RET coding RET utf-8 RET
 
=> ;;; -*- coding: utf-8; -*-
 

Wednesday, December 03, 2014

Making Gnus behave like other mail readers

- http://www.emacswiki.org/emacs/GnusTutorial

Making Gnus behave like other mail readers

FIXME: This section is very incomplete! I hope that somebody will provide us with settings that might be desirable.

Don't hide messages that have been read

Gnus operates in a newsreaderly fashion and thinks that most of the time you don’t want to read messages twice. So it hides from you the messages that you have read already. It does not, however, delete these messages! They are still on disk.
If you want to see old messages, use C-u <RET> to enter a group, or type C-u M-g from within the group. If you always want to see old messages for a specific group, hit G c (not g c) on it and frob the display parameter. If you want to see old messages for several groups, you can also set the parameter on a topic. If you want to do it by group name, see the variable gnus-parameters (in recent Gnusae only).
But I advise against this, because showing a lot of messages in the summary buffer is quite slow in Gnus, and you can tell Gnus to show you the interesting ones. For example, I use
     (setq gnus-fetch-old-headers t)
and this means that when a new followup arrives in a thread, I see the previous messages from that thread, too. Of course, from time to time, I want to look at old messages and use C-u <RET> or C-u M-g, as described above.

Friday, November 28, 2014

http://stackoverflow.com/questions/378319/windows-explorer-command-prompt-here

You can edit the registry to add the Command Prompt item to the context menu. Here are a couple of .reg files that I use.

Cmdhere.reg - for WinNT/2000/XP/Vista/7:
-- start of here
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\OpenNew]
@="Command Prompt"
[HKEY_CLASSES_ROOT\Directory\shell\OpenNew\Command]
@="cmd.exe /k cd %1"
[HKEY_CLASSES_ROOT\Drive\shell\OpenNew]
@="Command Prompt"
[HKEY_CLASSES_ROOT\Drive\shell\OpenNew\Command]
@="cmd.exe /k cd %1"
-- end of here
 
 
Doshere.reg - for Win9x:
-- start of here 
REGEDIT4
[HKEY_CLASSES_ROOT\Directory\shell\OpenNew]
@="MS-DOS Prompt"
[HKEY_CLASSES_ROOT\Directory\shell\OpenNew\Command]
@="command.com /k cd %1"
[HKEY_CLASSES_ROOT\Drive\shell\OpenNew]
@="MS-DOS Prompt"
[HKEY_CLASSES_ROOT\Drive\shell\OpenNew\Command]
@="command.com /k cd %1"
-- end of here
 
Copy this into an empty text file and change the extension to .reg. Double-clicking on this in Windows Explorer will add these key to the registry.

Sunday, October 12, 2014

Switch between two input method in windows hot key


- 101key default value registery
--
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\i8042prt\Parameters]
"LayerDriver KOR"="KBD101A.DLL"
"OverrideKeyboardIdentifier"="PCAT_101AKEY"
"OverrideKeyboardType"=dword:00000008
"OverrideKeyboardSubtype"=dword:00000003
"LayerDriver JPN"="kbd101.dll"



* change with two input method with toggle key shift+space

-> 103key default value registery
--
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\i8042prt\Parameters]
"LayerDriver KOR"="KBD101C.DLL"
"OverrideKeyboardIdentifier"="PCAT_101CKEY"
"OverrideKeyboardType"=dword:00000008
"OverrideKeyboardSubtype"=dword:00000005
"LayerDriver JPN"="kbd101.dll"

Java Variable in windows

JAVA_HOME=C:\java\jdk1.7.0_65\
PATH=%PATH%;JAVA_HOME\bin\

CLASSPATH=.;%JAVA_HOME%\lib\tools.jar;

Wednesday, April 16, 2014

Heartbleed bug in OpenSSL

From: http://haydenjames.io/patched-servers-remain-vulnerable-heartbleed-openssl/

Check if Heartbleed-Patched OpenSSL is installed


openssl version -a
– OpenSSL 1.0.1 through 1.0.1f are vulnerable
– OpenSSL 1.0.1g is NOT vulnerable
– OpenSSL 1.0.0 branch is NOT vulnerable
– OpenSSL 0.9.8 branch is NOT vulnerable

Patching Heartbleed Vulnerability is not enough!

 ...
if an attacker has already exploited the Heartbleed bug to steal your SSL private keys they can continue to decrypt all past and future traffic even after the vulnerability has been patched – using the existing stolen keys.

Sunday, January 26, 2014

Joining wmv files

ex.1
mplayer\mencoder.exe -oac copy -ovc copy -of lavf -lavfopts format=wmv u:\t\a_1.wmv u:\t\a_2.wmv -o aa.wmv

ex.2
mencoder -oac copy -ovc copy -of lavf -lavfopts format=asf myfile.wmv.001 myfile.wmv.002 -o myfile.wmv

Locate for Windows Win32Locate vs. Locate32

- Win32 Locate and Updatedb Scripts (Commandline for Windows)
  http://sourceforge.net/projects/winlocate/ (winlocate-0.1.6.zip)
  > Win32Locate\Updatedb.bat p: m:

- Locate32 (Gui for Windows)
  http://sourceforge.net/projects/locate32/ (locate32-3.1.11.7100.zip)
  > (Administrate priviledge and Evn. setting)
  > help
  updtdb32 -h

; view
net view

; Create Drive
net use p: \\pi\pi

; updatedb
locate32\Updtdb32.exe -d d:\tmp\Locate32_PI-UP.dbs -cU -Lp:\usbup

; Delete Network Drive
net use /delete p:

Create an offline installer for Visual Studio from a Web Installer

- download patch
from: http://sstjean.blogspot.kr/2013/03/how-to-create-offline-installer-for.html

30 March 2013

Synopsis

"VS2012.4.exe" /layout

- download cd-dvd recorder ; infrarecorder
> http://infrarecorder.org

- check file ; md5sum (MinGW)
> http://sourceforge.net/projects/mingw/
md5sum ---help
md5sum -c binary_package_file

- recording

Friday, January 24, 2014

Sysinternal Process Explorer & Monitor

** Process Monitor v3.05 By Mark Russinovich and Bryce Cogswell
Published: June 4, 2013
http://technet.microsoft.com/en-us/sysinternals/bb896645
http://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-3-Process-Monitor

** Defrag Tools: #2 - Process Explorer
Process Explorer v15.40 By Mark Russinovich
Published: August 1, 2013
http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx

http://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-2-Process-Explorer

[Aug 2012, 29 min] Defrag Tools: #4 - Process Monitor - Examples
http://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-4-Process-Monitor

Tuesday, January 14, 2014

sqlite in sql explorer

http://darkcher.tistory.com/179

1. sql explorer 설치
  eclipse -> help -> install new software -> add -> http://eclipsesql.sourceforge.net/ -> sql explorer 최신버전 설치


2. sqlite jdbc  라이브러리 jar파일 설치
  http://www.xerial.org/maven/repository/artifact/org/xerial/sqlite-jdbc/
  에서 최신 jdbc jar를 다운로드 받아 eclipse의 plugin폴더에 복사 한다(다른 곳에 해도 되지만 햇갈리니)


3.  sql exploroer에 sqlite jdbc driver 추가 하기
   eclipse -> open perspective -> other -> sql explorer

name 을 지정
driver sqlite 선택

url은 full_db_path에 sqlite db 파일을 지정한다.
ex) c:\data\data.db

=> jdbc:sqlite:c:/data/data.db

The Solitary Life of Cranes - Trailer

EIDF 2013 상영작/개막작 및 Eva Weber Collection

100m 위의 고독 The Solitary Life of Crane입니다.
마찬가지로 영국에서 2008년에 27분 길이로 제작된 다큐멘터..

http://eidfblog.tistory.com/169
http://eidfblog.tistory.com/category/EIDF%202013%20%EC%83%81%EC%98%81%EC%9E%91/%EA%B0%9C%EB%A7%89%EC%9E%91%20%EB%B0%8F%20Eva%20Weber%20Collection

http://www.youtube.com/watch?v=dN8KvjNiFTU

Saturday, January 04, 2014

wget vs curl

* wget vs curl

http://curl.haxx.se/latest.cgi?curl=win32-nossl
file: http://mirror.weathercity.com/curl/curl-7.19.5-win32-nossl.zip

- http://curl.haxx.se/latest.cgi?curl=win32-ssl
file: http://mirror.weathercity.com/curl/curl-7.19.5-win32-ssl.zip

** wget
From. http://curl.haxx.se/latest.cgi?curl=win32-nossl
http://www.thegeekstuff.com/2012/07/wget-curl/
http://www.thegeekstuff.com/2009/09/the-ultimate-wget-download-guide-with-15-awesome-examples/
http://www.thegeekstuff.com/2012/04/curl-examples/

Title. wget vs curl: How to Download Files Using wget and curl by Ramesh Natarajan on July 6, 2012

wget http://site/sub/test.bmp

: This is helpful when the remote URL doesn't contain the file name in the url.
wget -O download.zip http://blabla.com/download_script.php?src_id=7701

: Continue the Incomplete Download Using wget -c
$ wget -c http://www.net/s.zip

: FTP download using wget with username and password authentication.
$ wget --ftp-user=USERNAME --ftp-password=PASSWORD DOWNLOAD-URL

** curl
curl http://www.bla.net > test.html

- -o and -O
: -o (lowercase o) result will be saved in the filename provided in the command line
: -O (uppercase O) the filename in the URL will be taken and it will be used as the filename

curle -o test.zip http://test.com/aa.zip

curl -O http://www.aa.net/aa.zip
     -O == --remote-name
curl --remote-name  http://www.aa.net/aa.zip

$ curl -o list.zip http://www.vim.org/scripts/download_script.php?src_id=7701


- downlaod single file with curl
$ curl http://www.centos.org


- Fetch Multiple Files at a time
$ curl -O URL1 -O URL2

- Follow HTTP Location Headers with -L option
$ curl http://www.google.com

: <TITLE>302 Moved</TITLE>
: <H1>302 Moved</H1>
: The document has moved
: <A HREF="http://www.google.co.in/">here</A>

$ curl -L http://www.google.com

- Continue/Resume a Previous Download
  If we say '-C -', then curl will find from where to start resuming
  the download.
$ curl -O http://www.gnu.org/software/gettext/manual/gettext.html

$ curl -C - -O http://www.gnu.org/software/gettext/manual/gettext.html
###############            21.1%


- Pass HTTP Authentication in cURL
$ curl -u username:password URL

- Download Files from FTP server
$ curl -u ftpuser:ftppass -O ftp://ftp_server/public_html/xss.php

$ curl -u ftpuser:ftppass -O ftp://ftp_server/public_html/

$ curl   ftp://ftp.uk.debian.org/debian/pool/main/[a-z]/


- Upload Files to FTP Server
$ curl -u ftpuser:ftppass -T myfile.txt ftp://ftp.testserver.com

- Upload Files - multiple file
$ curl -u ftpuser:ftppass -T "{file1,file2}" ftp://ftp.testserver.com

- More Information using Verbose and Trace Option
curl -v http://google.co.in


- Get Definition of a Word using DICT Protocol
$ curl dict://dict.org/d:bash
$ curl dict://dict.org/show:db
$ curl dict://dict.org/d:bash:foldoc

- Use Proxy to Download a File
$ curl -x proxysever.test.com:3128 http://google.co.in

Pranten

 Pranten