4/17/2015

Time Lapse

Ref [1] [2]

1. Equipments
   JJC 多功能電子快門線、或可設定間隔拍攝功能之快門線

2. Camera settings
ISO非特別需求時盡量調低
對焦好之後可切換回手動來固定對焦點,減少對焦的失誤
測光模式通常可用全域

定時快門線的設定! 一般來說只有以下四個設定值:
http://blog.dcview.com/image/photo/2013/02/354/1359966874-1-354.jpg
(1)延遲(Delay):建議設定1秒,這樣可以避免第一張拍攝時相機的震動! 
(2)拍攝間隔 (Interval)
(3)曝光時間(Exposure time):只有在相機設定為B快門時,此設定值才有用! 
相機預設用光圈先決(Av)或手動(M)模式,曝光是由相機所設定的快門時間決定!
 如果想讚夜間拍攝迷人的星軌,需要長曝光時間,這時就須把相機設定在B快門模式,然後在定時快門線上設定想要的正確曝光時間!
(4)拍攝張數(Number of shots)

Note:
相機設定為Av時,務必確定整個拍攝過程中相機自動計算的快門時間不會超過定時快門線的拍攝間隔(Interval),不然可能會造成合成的縮時影片有掉格的不連續情形發生。
先在相機上使用Av模式,來完成正確對焦,並獲得正確的曝光時間!
接著轉盤轉到M模式
,然後把光圈與快門設定為剛剛的數值! 
記得要把相機設定為手動對焦,一來這樣對焦點不會因為場景變化而跑掉,二來相機在拍攝過程中也不用一直自動對焦! 
如果擔心拍攝過程很長讓縮時攝影影片有色溫變化那就設定一個固定的白平衡模式!
建議不要使用點測光模式! 使用全域測光或區域測光,這樣會得到比較穩定的曝光時間值。



2/06/2015

Surface Pro 2 tips

Some useful SP tips

1. High-DPI for blurry font adjustment 
    Sublime text looks blurry on surface. Hope this tip works.

2. keyboard short cut
Fn + Caps
Locks the F1-F12 keys as function keys
Fn + Alt + Spacebaronly
Print Screen for the current window
Fn + Alt + Spacebar
Print Screen for the current window only
Fn + Del
Increases screen brightness
Fn + Backspace
Decreases screen brightness
Fn + Left arrow
Home
Fn + Right arrow
 End
Fn + Up arrow
Page Up
Fn + Down arrow
Page Down

3. Free up hard disc space (youtube)

4. Wacom pen calibrations


12/29/2014

Surface pro pen

Pro pen calibrations

Some tips
1. Go into the calibration tool and reset the pen calibration if you have already adjusted it.
2. Start the calibration. The first time you calibrate, there is a more detailed (16-point) "major" calibration. For this part, view the tablet from directly above, and hold the pen straight up-and-down (perpendicular to the screen). Tap all 16 targets. 
3. Test the pen. I use one note with line rulings and try to trace the lines, and write directly on the lines.
4. It probably won't be right yet, now go into the calibration tool again. This time there will be only a minor calibration of 4 points. For this calibration, hold the stylus as you naturally would and tap all 4 targets.
5. If there is still weirdness, you can repeat the minor calibration, and hit the targets intentionally off center to compensate. Doing this last part will require some trial and error to get it perfect.


Trouble shooting with pro pen

Flicks and pen settings

Touch guide

One note usage

[Sublime Text] File manipulations

Ref [1] [2]

1. Open file directory
{ "keys": ["ctrl+alt+o"], "command": "open_dir", "args": {"dir": "$file_path", "file": "$file_name"} },

12/25/2014

Window orientation detection

Ref

I think the following codes would be useful when I want to make iDangerous swiper responsive to toggle mode between vertical and horizontal.

CSS3 :
@media screen and (orientation:landscape)
{
   body
   {
      background: red;
   }
}

12/23/2014

Command line tool to simplify work flow

I think I've been working too hard before I read this presentation.

1. cmder tool
2. Set windows environment variables by cmd line
3. Build phonegap [1] [2] development environments

[Sublime Text] Color Scheme

Create your own template & and download the .py file



Add .py file to your package ( Preferences > Setting - Users )

{
"color_scheme": "Packages/3024 Color Scheme/Dawn_YK.tmTheme",
"font_size": 10.0,
"highlight_line": true,
"ignored_packages":
[
"Vintage"
],
"margin": 2,
"tab_size": 2,
"translate_tabs_to_spaces": true,
"trim_trailing_white_space_on_save": true,
"word_wrap": "false"
}


(Some other useful settings)

12/18/2014

Sorting array of strings & objects

Ref: http://stackoverflow.com/questions/6712034/sort-array-by-firstname-alphabetically-in-javascript

[array].sort(function(a, b){
 var nameA=a.name.toLowerCase(), nameB=b.name.toLowerCase()
 if (nameA < nameB) //sort string ascending
  return -1 
 if (nameA > nameB)
  return 1
 return 0 //default return value (no sorting)
});

12/05/2014

Yahoo Financial API


Usage example:

http://finance.yahoo.com/d/quotes.csv?s=FB+GOOG&f=snd1l1yr

And you'll get a csv file like the following one:

symbol name last trade date las trade price Dividend Yield p/e ratio
FB Facebook, Inc. 12/4/2014 75.24 N/A 69.53
GOOG Google Inc. 12/4/2014 537.31 N/A 27.96


Other usage examples:


http://ichart.finance.yahoo.com/table.csv?s=WU&a=01&b=19&c=2010&d=01&e=19&f=2010&g=d&ignore=.csv



12/04/2014

CDN for Useful JS and CSS library

Some useful JS and CSS libaries I use a lot.


CSS:


  • FontAwesome
    • http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css

Javascript: