2012年6月11日星期一

OS X快捷键小技巧

OS X快捷键小技巧,至少应该了解一半

http://www.macx.cn/thread-2050934-1-1.html

3、在任何位置直接开启图片全屏幻灯片模式
在Finder的任何位置,选中这里所有的图片,然后按++Y,就可以直接开启图片全屏幻灯片模式,在为别人展示图片的时候这么做很专业有木有!



6、直接锁定屏幕
使用Control+Shift+Eject退盘键(键盘右上角)可以直接锁定屏幕并出现屏幕保护模式(需要提前设置)。如果你需要的话,还可以另外开启密码锁定,那么使用这个快捷键直接就锁定屏幕且需要密码才可以登陆了,快速实用。




7、屏幕截图并保存在剪切板
+Control+Shift+3(或者4),可以将截图保存在剪切板,这个和Windows下的PrintScreen很像,之后在Word或者文本编辑等软件中可以直接粘贴该图片。



12、强制退出当前程序
++Shift+esc 按住2-3秒钟不放,会自动退出当前程序,而且没有任何提示。

16、三个实用Finder快捷键
第一个:
+Z  撤销之前的操作,例如你删除了一个文件想找回来,这时候不必去废纸篓翻,只要按这个快捷键就好了,可以连续使用,对于移动文件什么的都有效。
取消撤销:+[shift]+Z
第二个:+向上箭头  前往上层文件夹,在Finder目录中更有时候很方便使用
第三个:Finder菜单栏上选择“前往”,这个时候按一下,你会发现原本隐藏的“资源库”现身了


2012年4月10日星期二

useful tricks of xmgrace

https://www.physik.tu-cottbus.de/~racec/graph.html

Graphic programs

Plots (2D, 3D), graphics

  • XmGrace 2D-plots
    • it works on every workstation
    • is started by the xmgrace command
    • can produce EPS and PDF files which can be includes in LaTeX files
    • can produce graphic in graphic
    • advanced topics
      • GraceTMPL (for automation of XMGrace)
      • the plots contain a white background, which makes that the eps file covers some text in LaTeX. You can change this in two ways:
        • Main Menu --> Plot --> Plot appearance --> Page background -->deactivate Fill
        • or in LaTeX use \includegraphics* (please, remark the * symbol)
      • write text on the graph:
        Main Menu --> Window --> Drawing Object --> (pop-up a menu) Text --> click with the mouse on a location on the graph --> (pop-up a new menu) type the text on the String box
        • A\sm\N\Sn\N (writes A with subscript m and superscript n)
        • \x a \f{} (writes the greek letter alpha)
        • \#{b7} (creates a dot for multiplication)
      • some advanced symbol-text , and the the xmgrace source of it
      • operations with data sets
        • Call up the command interpreter from Main:Window/Commands ...
        • We need to create a set to hold the result, S2.
          We can type a command: s2 length s0.length
        • We have to break up the computation into an x part and a y part.
          s2.x = s0.x
          Now we can perform the math: s2.y = cos(s0.y) + sin(s1.y)
          Unhide the set by typing: S2 on.
      • ftp://gd.tuwien.ac.at/visual/grace/ (agrmerge.pl,...)
    • one can use the Help item on main menu. Also a tutorial is provided.
    • see local documentation
  • xmgr (old version of XmGrace)
    • it works on every workstation
    • is started by the xmgr command
    • advanced topics
      • xmgr -maxgraph 50 (allows 50 graphs)
      • xmgr -maxsets 50 (allows 50 sets)
    • Xmgr User Guide

2012年4月3日星期二

FCC broulin zone


Brillouin zone

Fm-3m-Oh5 (225) to Fd-3c- Oh8(228)

Reciprocal space group (Im-3m)*, No.229


Brillouin zone


k-vector descriptionWyckoff PositionITA description
CDML*Conventional-ITAITACoordinates
LabelCoordinates
GM0,0,00,0,0a2m-3m0,0,0
X1/2,0,1/20,1,0b64/mm.m0,1/2,0
L1/2,1/2,1/21/2,1/2,1/2c8.-3m1/4,1/4,1/4
W1/2,1/4,3/41/2,1,0d12-4m.21/4,1/2,0
DTu,0,u0,2u,0e124m.m0,y,0 : 0 < y < 1/2
LDu,u,uu,u,uf16.3mx,x,x : 0 < x < 1/4
V1/2,u,1/2+u2u,1,0g24mm2..x,1/2,0 : 0 < x < 1/4
SMu,u,2u ex2u,2u,0h24m.m2x,x,0 : 0 < x <= 3/8
S1/2+u,2u,1/2+u ex2u,1,2uh24m.m2x,1/2,x : 0 < x < 1/8
S~SM1=[K M]h24m.m2x,x,0 : 3/8 < x < 1/2
SM SM1=[GM M]h24m.m2x,x,0 : 0 < x < 1/2
Q1/2,1/4+u,3/4-u1/2,1-2u,2ui48..21/4,1/2-y,y : 0 < y < 1/4
Au,-u+v,v ex-2u+2v,2u,0j48m..x,y,0 : 0 < x < y <= 3/8 U
U x,y,0 : 0 < x < 3/4-y < y < 1/2
B1/2+u,u+v,1/2+v ex2v,1,2uj48m..x,1/2,z : 0 < z < x <= 1/4-z
B~B1=[K M W]j48m..x,y,0 : 3/4-y <= x < y < 1/2
A B1=[GM M X]j48m..x,y,0 : 0 < x < y < 1/2
Cu,u,v exv,v,-v+2uk48..mx,x,z : 0 < z < x <= 3/8-z/2
Ju,v,u[GMXUL] exv,-v+2u,vk48..mx,y,x : 0 < x < y <= 1/2-x U
U x,y,x : 1/4 < y < 1/2, 1/2-y < x < 3/8-y/2
J~J1=[GM L X3] + [L K M]k48..mx,x,z : 0 < x < z <= 1/2-x U
U x,x,z : 0 < z < 1/4, 3/8-z/2 < x < 1/2-z
C + J1=[GM M X3] \ [GM L]k48..mx,x,z : 0 < z < 1/2 -x < 1/2, x!= z
GPu,v,w-u+w+v,u+w-v,u-w+vl961x,y,z : 0 < z < x < y < 1/2-x U
U x,y,z : 0 < z < 1/2-y < x < y < 1/2 U
U x,y,1/2-y : 1/4 < y < 1/2; 1/2-y < x < 1/4.

vasp KPOINTS 
-------------------------------------

0 0 0 Gamma
0.5 0 0.5 X


0.5 0 0.5 X
0.5 0.25 0.75 W


0.5 0.25 0.75 W
0.375 0.375 0.75 K


0.375 0.375 0.75 K
0 0 0


0 0 0
0.5 0.5 0.5 L


0.5 0.5 0.5 L
0.5 0.25 0.75 W


0.5 0.25 0.75 W
0.625 0.25 0.625 U


0.625 0.25  0.625 U
0.5   0     0.5  X
-----------------------------------------



2012年3月13日星期二

Compare PDF files in Mac or Windows


http://www.techf5.com/1471/compare-multiple-pdf-files/

DiffPDF

DiffPDF is used to compare two PDF files—textually or visually.

2012年3月6日星期二

Chinese input: ibus in Opensuse 12.1


IBus 輸入法 1.2.0 for openSUSE 11.2



1, go to 

2, click here

[TXT] ibus.ymp                          16-Feb-2012 19:45   13K   Details



照這下面的圖,一步一步完成
寄件者 openSUSE 11.2
按"下一步"
寄件者 openSUSE 11.2
預設會安裝 ibus, ibus-gtk, ibus-qt 套件,因為不知道您想使用哪一種輸入法
所以要請您按"自訂"
寄件者 openSUSE 11.2
按"下一步"
寄件者 openSUSE 11.2
在此選擇您要使用的輸入法模組
目前支援(2009/12/07)
jyutping 粵語拼音
wubi 五筆
anthy (要安裝 anthy,請看注意事項3)
array30 行列30
quick 速成
xinhua 新華
chewing 新酷音(要安裝新酷音,請看注意事項2)
cangjie 倉頡
rustrad
hangul
cantonese 廣東拼音
stroke5 筆順五碼
yong 永碼
m17n
cantonhk 香港廣東拼音
thai
zhuyin 注音
pinyin 拼音
cns11643 交換碼
translit
ziranma 自然碼
easy 輕鬆
viqr
erbi 二筆
wu 吳語
您可以依照您的需求安裝
寄件者 openSUSE 11.2
安裝摘要確認,請按"下一步"
寄件者 openSUSE 11.2
最後確認,請按"是"
寄件者 openSUSE 11.2
請輸入 root 的密碼
寄件者 openSUSE 11.2
開始執行安裝
寄件者 openSUSE 11.2
第一次使用此套件庫,會要求您匯入金鑰
寄件者 openSUSE 11.2
開始進行安裝
寄件者 openSUSE 11.2
完成了!(才怪!)
注意事項1:
因為使用 1-Click Install (或用 zypper 直接安裝)並不會更新 gtk-immodule
所以您必須手動完成最後一個步驟
$ sudo /sbin/SuSEconfig
注意事項4:
現在會針對 en zh_TW zh_HK zh_CN zh_SG ko_KR ja_JP 這幾個語系設定自動啟動 ibus
只要重新登入,即可使用

Useful cmds in HLRN


showq -v -i -p berlinshow the next jobs scheduled in Berlin
pbmapdisplays the machine status
showstart jobidshows estimated start time for the Job

OpenSuse software install

http://en.opensuse.org/Package_repositories

1, open terminal, type "yast"
2. Software           │ │Software Management
3. search & install by choosing "Accept"
4, tips: using Tab to switch opotions, or use Alt + "shortcut"