Photograph the Milky Way and Star Trail photos

For my future reference:

The Milky Way photo Tips:

1. Look at sky report, try to avoid moon, eg, Sky Report in Southern Cal: http://www.griffithobs.org/skyreport.html

2. Avoid city, find dark place.

3. Use some apps on the phone/computer to identify stars: Stellarium, Startracker,.etc

4.DSLR,Tripod,Shutter Release. Use wide angle: 24mm, 14mm,.etc

Then ->Compose photo->Mirror Lock up->Shutter Release(Or self-timer)

5. Manual mode, set manual focus (MF) to infinity or far away

set 30 sec exposure time

Use max aperture available: f/2.8 f/1.4 .,etc

ISO:   if F/1.4 -> 1600  if F/2.8 -> 6400

6. Set White balance to Tungsten (try around 4000k) or adjust later in photoshop. Also increasing contrast.

Star Trail tips:

1.Using the above method to get multiple shoots, eg: 100 shoots. (It’s better to point at the North Star) Use some shutter release cable, or use the camera build-in interval shooting function(if have).

2. Using Photoshop: File->Scripts->Load files into stack

3. choose all the layers and set “Layer Blending options” to “lighten”

3. Adjust other parameters as you like.

Done

Continue reading Photograph the Milky Way and Star Trail photos

几篇科幻短篇的读书笔记摘抄

科幻有时候比想象的要深刻

《弗兰肯斯坦》

(英) 玛丽·雪莱

“他叫维克多.弗兰肯斯坦,是伦敦一所大学的生物学教授…他早出了一个人’人’.’他’脸色想枯萎的黄叶,两片嘴唇呈直溜溜的一条黑线,眼睛深陷在眼窝里,身高2.5米,十足一个大怪物。”

“最后,他忍无可忍,对怪物大吼一身:“滚!”怪物又看了他一眼,眼神中似有一丝留念,然后扭头走了。”

“他实在忍不住了,随手就把快要完工的女怪物砸了个稀烂。同时,他听到窗外传来怪物充满绝望和仇恨的吼叫,凄惨极了。”

“可是把我逼成这个样子,难道人们,包括您就没有责任吗?为什么你们不能相信我、宽容我、接受我?一始我也是充满仁慈的啊,您已经离开了人世,我不愿意在受悔恨与痛苦的折磨了。那怪物说满,纵身一跃,跳进冰海里,永远消失了”

《重现》

西帕特

“他闭上眼睛:但愿这最后的几分钟从未发生过。/ 哈罗德惊异的眨着眼睛。他又一次站在厅堂的尽头,而瓷马和玻璃柜却都安然无恙。”

“当别人听不到他们说话声音的时候,菲夫人就咬牙切齿地说,“我为什么要生下你呢!”哈罗德闭上了眼睛,于是……”

(*没有后悔药,后悔的结果就是消失)

《天幕坠落》

大卫·赫尔

“到那时候,姐姐真的恨起爸爸来了。她很少理睬爸爸,而且一开口,就数落他的纹身多么丑,他的玩笑多么无聊,他失业后长得多么肥胖。”

“爸爸没有凑到足够的钱救妈妈的命,不过,他卖皮肤和器官所得的15万美元却足够给我们在地下城买一小套住房,并在我们长大成人前给我们提供生活费。”

《图金的时间》

德·比连金

“究竟是他失去了客观时间、还是记忆失灵,主观时间出了问题,这就说不清了。不过,图金明白了这一点,在他提前进入未来时间的时候,他发现那是的生活与现在和过去毫无二致,已然是那么平淡无奇,按部就班”

“他不但不能确定日子、时间,他甚至不能确定自己,不明白自己为什么生存。”

读村上春树的几个短篇摘录

村上春树
1949, 作品受欧美文化影响. 具有都市感,时代感. 代表作《挪威的森林》

《电视国民》

“星期日的黄昏…通常都是感觉到两遍的太阳穴里面一公分或一公分半的地方,有柔软的白色肉团产生奇妙的痉挛.那种感觉简直就像想从那团肉的中心抽出一条无形的线,有个人在远处拉住线的一端,轻轻的拉紧一般.”

“星期日的下午,一切事物看起来都像用缩尺缩小般地慢慢变小.简直就像”电视国民”一般.”

“”电视国民”从一开始就无视我的存在”

《百分百女孩》

“两人恰在路中间失之交臂.失却的记忆的微光刹那间照亮两颗心.两人胸口陡然悸颤,并且得知:她对我是百分之百的女孩.他对我是百分之百的男孩. 然而两人记忆的烛光委实过于微弱.”

《没落的王国》

(这篇文章其实是写主角的多年前朋友Q的..和没落王国没啥关系,但又有关系)

“一个强大的王国褪色的时候,比二流共和国崩溃的时候,还要感伤”

《困》

“汤匙从我手上滑落,碰到餐具边缘,发出叮当一声巨响”

“汤盘正上方月三十公分的地方,漂浮这一团乱行的白色气体,正对我楠楠说道:”没关系,没关系,你不用忍耐,好好睡吧””

《1963/1982年的依帕内玛姑娘》

“相信总有一天,我会在遥远的世界一个奇妙的场所遇见我自己.而且,希望那最好是一个温暖的场所,如果那里也有几罐冰啤酒的话,那就更没话说了.”

A collection of useful Stargazing resources

Books:

NightWatch: A practical Guide to Viewing the Universe  by Terence Dickinson

  • ISBN-13: 978-1554071470

Computer Desktop Software:

http://www.stellarium.org/  (Support multi-language, multi-platform) The best software to learn the sky, one of the most powerful app.

iPad:

Stellarium: Not as good as Desktop version, but very useful, English only

Star Walk HD: excellent UI, show detail star info, multi-language support

Startracker HD: best UI, easy to use

iPhone:

Startracker: similar to iPad one

SkySafari

Useful knowledge and resources:

Clear Sky Chart:

http://cleardarksky.com/csk/

Light Pollution Atlas 2006 on Google map:

http://djlorenz.github.io/astronomy/lp2006/overlay/dark.html

Observe Solar system stars:

http://www.cfa.harvard.edu/pao/skyreport/solar_system.html

Weekly tips:

http://stardate.org/nightsky/weekly

Continue reading A collection of useful Stargazing resources

List of common decompress & compress tools in unix

For my future reference:  (整理自互联网)

check folder size:

du -sh *

————

1. 7-zip:  (.7z file)

官网下载地址:http://www.7-zip.org/download.html
源文件项目地址:http://sourceforge.net/projects/p7zip/,目前最新版为9.20.1。
执行以下命令下载安装:

wget http://nchc.dl.sourceforge.net/project/p7zip/p7zip/9.20.1/p7zip_9.20.1_src_all.tar.bz2
tar -jxvf p7zip_9.20.1_src_all.tar.bz2
cd p7zip_9.20.1
make
make install

使用7zip的命令是7za。
安装完成后的使用方法:
7za {a|d|l|e|u|x} 压缩包文件名 {文件列表或目录,可选}

a 向压缩包里添加文件或创建压缩包,如向001.7z添加001.jpg,执行:7za a 001.7z 001.jpg;将001目录打包执行:7za a 001.7z 001;
d 从压缩里删除文件,如将001.7z里的001.jpg删除,执行:7za d 001.7z 001.jpg
l 列出压缩包里的文件,如列出001.7z里的文件,执行:7za l 001.7z
e 解压到当前目录,目录结构会被破坏,如001.rar内有如下目录及文件123/456/789.html,
执行:7za e 001.rar,目录123和456及文件789.html都会存放在当前目录下。
x 以完整路径解压。

zip文件解压中文文件乱码问题,由于zip文件中没有声明其编码,所以在Linux上使用unzip解压以默认编码解压,中文文件名会出现乱码。

————–

2. tar:  (decompress)

  1. Type at the command prompt
    tar xvzf file-1.0.tar.gz – to uncompress a gzip tar file (.tgz or .tar.gz)
    tar xvjf file-1.0.tar.bz2 – to uncompress a bzip2 tar file (.tbz or .tar.bz2)
    tar xvf file-1.0.tar – to uncompressed tar file (.tar)
    • x = eXtract, this indicated an extraction c = create to create )
    • v = verbose (optional) the files with relative locations will be displayed.
    • z = gzip-ped; j = bzip2-zipped
    • f = from/to file … (what is next after the f is the archive file)
  2. The files will be extracted in the current folder (most of the times in a folder with the name ‘file-1.0’).

Continue reading List of common decompress & compress tools in unix

Using Stanford Phoenix++ MapReduce to count the most frequent words in Wikipedia Database

Log of a quick and fun afternoon project.

1. Download Wikipedia English-language Database:

http://en.wikipedia.org/wiki/Wikipedia:Database_download

Download pages-articles.xml.bz2

Uncompress it ro pages-articles.xml (around 45GB)

2. Download Phoenix++:

http://mapreduce.stanford.edu/

http://mapreduce.stanford.edu/plus/phoenix++-1.0.tar.gz

make binary file and then find ‘word_count’ in ‘tests’ folder

3. copy wordcount and pages-articles.xml to the same folder

./word_count pages-articles.xml 1000 >wikiwords.txt

Using wordcount program to count top 1000 popular words from wiki database

4. Result: (Using 8 Xeon E5 server, 128 processing cores) Continue reading Using Stanford Phoenix++ MapReduce to count the most frequent words in Wikipedia Database

关于二手车的选购检查

早先看到一段AMMO NYC 和/Drive Network上的一段视频,关于Used Car Pre-Purchase Inspection. 其中包含了一个详细的检查项目check list,现在回想十分有用,找出链接来.

链接中的pdf包含了详尽的检查项目列表,无论是已有车维护,或是挑选Used Car都十分有用

Reference:

PRE-PURCHASE INSPECTION CHECK LIST:

http://www.ammonyc.com/detailing/pre-purchase-inspection/

http://www.ammonyc.com/wp-content/uploads/2013/07/301-03_DC_201_StepbyStep_R1B.pdf

Continue reading 关于二手车的选购检查

Install github atom text editor on Ubuntu 14.04 x64

Official guide:

https://github.com/atom/atom/blob/master/docs/build-instructions/linux.md

Quote here:

  git clone https://github.com/atom/atom
  cd atom
  script/build # Creates application at /tmp/atom-build/Atom
  sudo script/grunt install # Installs command to /usr/local/bin/atom
  script/grunt mkdeb # Generates a .deb package at /tmp/atom-build

My log (for future re-installation): current version 0.95-f86280a

#**********************
#go to http://nodejs.org/download/
#download node.js source code
cd ~/tmp/nodejs
wget  http://nodejs.org/dist/v0.10.28/node-v0.10.28.tar.gz
tar xzvf node-v0.10.28.tar.gz
cd node-v0.10.28
./configure
./make test
#if failure occures at any stage, fix those. In my case, I failed at 'curl'.
sudo apt-get install curl
./make
sudo make install
#***********************
sudo apt-get install npm
sudo apt-get install libgnome-keyring-dev
sudo npm config set python /usr/bin/python2 -g
#*************************
cd ~/tmp/atom
git clone https://github.com/atom/atom
cd atom/script
sudo ./build
#err occurs at build: node-gyp, my solution:
sudo apt-get remove gyp
#This works
sudo ./build  #this will create app at /tmp/atom-build/Atom
#**************************
cd ~/atom/atom
sudo npm install -g grunt-cli
#don't know if above command is necessary or not
npm install
cd build
sudo grunt install #this will install atom to /usr/local/bin/atom
sudo grunt mkdeb #this will make .deb package at /tmp/atom-build
#****************************
#Finished!
#To run
sudo atom
#package management
apm

 

简易六分仪与夜晚纬度估测

一直想实践一下使用六分仪(Sextant), 简单估计一下纬度.

需要以下材料:

1. 30cm直尺一把 (至少16cm)

2. 量角器.  (没有怎么办? 我网上找了一个pdf打印了一个http://www.ossmann.com/protractor/)

3. 细绳子一条 (实践下来细一些,柔软的比较好)

4.重物 (硬币,回形针)

5. 胶带, 白纸

方法:

1.将绳子一端固定在量角器中央(90度与180度延长线交点),确保绳子能以量角器中央自由旋转(这点很重要,必须是绕着这一点旋转,不能高也不能低).

2. 绳子另一端用胶带固定一个重物

3.将量角器180度边与直尺一边对齐,将量角器倒着固定在靠近尺子左端约2-3cm处 (量角器刻度左边是0度,右边是180度). 量角器与直尺中间夹一张白纸

4. 在户外,找到北极星(北斗七星勺子末端延长5倍). 将尺子右端瞄准北极星, 从左端望去,确保直尺左端,右端,北极星成一条直线.

5.这时候绳子自由悬挂的角度,在量角器上读出z. 例如读出55度,那么90度减去这个度数,就是纬度了,这个例子中纬度就是35度

借用一张引用源的图片来说明:

sextant

Continue reading 简易六分仪与夜晚纬度估测

My Ubuntu X Forwarding Settings

Remote: Ubuntu Desktop 14.04 LTS x64

Local: Windows 8.1, Putty, Xming

—————-

Enable Ubuntu X forwarding:

sudo apt-get install openssh-server
#edit /etc/ssh/ssh_config, X11Forward yes
#check if xauth is installed, to view current list
#xauth list

To change the feel and fonts when program is forwarded to Xming:

sudo apt-get install gtk-chtheme
#Call it at the termial opened in Xming
gtk-cheme
#Set a theme you like

I choose the theme ‘Radiance’ with font ‘Ubuntu Light 10’

—————

At windows side:

1. In putty, enable X11 Forwarding in the settings

2.Install Xming, Xming Fonts. If necessary, copy the fonts you like to Xming folder.

To increase the font size of Xming, add a shortcut on Windows Desktop, link to Xming with the following parameter:

(Xming default font is 96 dpi, increase it to the size you like)

"C:Program Files (x86)XmingXming.exe" :0 -clipboard -multiwindow -ac -dpi 108

To check additional usage:

"C:Program Files (x86)XmingXming.exe" -h

Continue reading My Ubuntu X Forwarding Settings