2/08/2013

Make Scite settings better

Just coy the following settings to User Option File:

position.width=$(scale 1000)
position.height=$(scale 1000)
position.top=0
position.left=$(scale 800)
autocomplete.python.ignorecase=1
autocomplete.python.start.characters=.
autocomplete.python.fillups=(
autocompleteword.automatic=1
calltip.python.ignorecase=1
calltip.python.word.characters=._$(chars.alpha)$(chars.numeric)
toolbar.visible=0
tabbar.hide.one=1
line.margin.visible=1
edge.column=80
edge.mode=1
title.full.path=1
open.dialog.in.file.directory=1
word.characters.*=#_$(chars.alpha)$(chars.numeric)
tabsize=2
indent.size=2
use.tabs=0
strip.trailing.spaces=1
wrap=1

font.monospace=font:Consolas,size:11
font.base=$(font.monospace)
font.small=$(font.monospace)
font.comment=$(font.monospace)
font.text=$(font.monospace)
font.text.comment=$(font.monospace)
font.embedded.base=$(font.monospace)
font.embedded.comment=$(font.monospace)
font.vbs=$(font.monospace)

caret.period=0
caret.fore=#FF0000
caret.width=3

font.quality=4
code.page=65001


all.files=All Files (*)|*|Hidden Files (.*)|.*|
top.filters=$(all.files)$(source.all.filter)


=======================================
为了显示中文正确:
run SciTE, click Option-> Open User Options File, add two lines: 
code.page = 65001 
output.code.page = 65001 
this is UTF-8 encoding, or If you use GBK, GB2312 (usually under Windows), it is: 
code.page = 936 
output.code.page = 936

=======================================
SciTE Keyboard Shortcuts & Hotkeys

SciTE is a wonderful & powerful editor!  I love using it for AutoHotKey, Python, HTML, SPSS, SQL, XML, and more!  Below are SciTE Keyboard Shortcuts & Hotkeys  to use with SciTE .  I’ve bolded a few of the ones that I use very frequently.  You also may like to check out the documentation.   I have custom SciTE Hotkeys that I’ve added however they require updating files like the user.properties file which review in a this post.

SciTE Keyboard Shortcuts & Hotkeys
Ctrl+Keypad+ Magnify text size.
Ctrl+Keypad- Reduce text size.
Ctrl+Keypad/ Restore text size to normal.
Ctrl+Tab Cycle through recent files.
Tab Indent block.
Shift+Tab Dedent block.
Ctrl+BackSpace Delete to start of word.
Ctrl+Delete Delete to end of word.
Ctrl+Shift+BackSpace Delete to start of line.
Ctrl+Shift+Delete Delete to end of line.
Ctrl+Home Go to start of document.
Ctrl+Shift+Home Extend selection to start of document.
Alt+Home Go to start of display line.
Ctrl+End Go to end of document.
Ctrl+Shift+End Extend selection to end of document.
Alt+End Go to end of display line.
Ctrl+Keypad* Expand or contract a fold point.
Alt+F2 Select to next bookmark.
Alt+Shift+F2 Select to previous bookmark.
Ctrl+F3 Find selection.
Ctrl+Shift+F3 Find selection backwards.
Ctrl+Up Scroll up.
Ctrl+Down Scroll down.
Ctrl+L Line cut.
Ctrl+Shift+T Line copy.
Ctrl+Shift+L Line delete.
Ctrl+T Line transpose with previous.
Ctrl+D Selection duplicate.   (Great to use in SciTE editor)
Ctrl+K Find matching preprocessor conditional, skipping nested ones.
Ctrl+Shift+K Select to matching preprocessor conditional.
Ctrl+J Find matching preprocessor conditional backwards, skipping nested ones.
Ctrl+Q Comment out line  (Great to use in SciTE editor)
Ctrl+Shift+J Select to matching preprocessor conditional backwards.
Ctrl+[ Previous paragraph. Shift extends selection.
Ctrl+] Next paragraph. Shift extends selection.
Ctrl+Left Previous word. Shift extends selection.
Ctrl+Right Next word. Shift extends selection.
Ctrl+/ Previous word part. Shift extends selection
Ctrl+\ Next word part. Shift extends selection.
Alt+Shift+Movement Rectangular block selection.
Alt+Shift+Home Extend rectangular selection to start of line.

Alt+Shift+End Extend rectangular selection to end of line.

1/08/2012

Samsung TV UN55C6400 Yamaha Remote Control Code

After several tries, the code turned out to be 0334 To program the codes into the Yamaha remote you need to press the "code set" button using a ball point pen or similar. Then select the input you want to program the code to, then input the code for the device chosen. The transmit light should blink twice if successful or six times if unsuccessful.

2/03/2011

Get area from WKT by using sql

select area(transform(asset_footprint,999000)) from release_asset where id=124519;

6/22/2010

Kill all process of a binary

for i in `pidof render_eos.par`; do echo $i; done