Mar 12, 2014

some great matches in CSGO, cool CSGO avitar names, and try to come up with some of my own, casters i like

Converted document
Some of the greatest matches in professional CSGO (chronologically, in reverse)
Some of the avatar names and casters I like:
Existing_names pusha, olofmeister, byali, apex, faflaren, karrigan, jkaem, hani, simple, cyjanb, nothing , shox, kioshima,
Cranking_my_head mehidae (somehow rhythm with meditate) toothless (from the movie "how to train your dragon") silen (silence) andoni (antoine) pfeifer (vacuum pump company - pfeiffer) timee continuing...
Casters ddk black ddk henryG warowl a few that I still need to find their names......

Mar 9, 2014

Typeset mix Chinese and English TeX documents with Scientific Workplace 5.0 and TEX live 2013

  You can typeset Chinese documents with Scientific Workplace (5.0) if you have just a few Chinese paragraphs. But if you have a long Chinese document or a document with mix Chinese and English characters, the software will suffer. The SWP's compiler for international characters, Omega, is just not good enough for this purpose. You will run into a lot of overfull hbox problems during typesetting. We will need another latex compiler for long documents of mix Chinese and English. But we will want to use the convenient editing features of Scientific Workplace, what should we do?

Here is something you can try. Still prepare your international document with SWP. But typeset it with another latex compiler. Here I use a popular one, XeLATEX in TEX live 2013. But there are a few problems. First, the file prepared by SWP has a character encoding that is not recognized by other latex compiler. So I wrote a small Python program to convert the encoding. Second, the figure insertion syntax generated by SWP is not recognized  by XeLatex. But this can be done by inserting TEX fields containing the correct Xelatex figure insertion commands into the SWP file by using SWP's TEX OBJECTS buttons. You won't be able to preview the figures SWP window but that doesn't really hurt. Here are step-by-step details:

  • How to convert SWP 5.0 special unicode format file to unicode correct characters:
SWP version 5.0 produced Chinese character in its special unicode codepoint format (if you open the tex file with any text editor, you will see every Chinese character has a form like \U{6211} instead of displaying 我 in the tex file.) This is due to the extra parenthesis {} after \U. So I wrote a small python program to automatically remove all {} in the tex file. So that the file can then be prepared by other tex programs (Tex Life 2013 in my case).

The program is very simple:
import re
import codecs
def dashrepl(matchobj):
    return chr(int(matchobj.group(1),16))
f1 = open('rotationV4pngtest.tex', 'r')   # name of your origianl file
f2 = codecs.open('rotationV4pngtest.tex.temp', "w", "utf-8")   #  name of the new file
p= re.compile(r"\\U{([\w]{,4})}")
for line in f1:
    m = re.sub(p,dashrepl,line)
##    print(m)
    f2.write(m)
f1.close()
f2.close()


  • For the SWP tex file to be readable by other compiler, you will also need to change the preamble (the packages and stuff)  in the beginning of the tex document so that other tex program can use it. Here is my case:
Original preamble generated by SWP:
\documentclass[12pt,a4paper]{article}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{sw2unicode}
\usepackage[UT1]{fontenc}
\usepackage{pmingliu}
\usepackage[left=0.95in,right=0.95in,top=2cm,bottom=2.54cm]{geometry}
Change the above to the following so that Xelatex can complie:
\documentclass[12pt,a4paper]{article}
\usepackage{amsmath}
\usepackage{fontspec}
\usepackage{xeCJK}
\setmainfont[Mapping=tex-text]{Times New Roman} % rm
\setsansfont[Mapping=tex-text]{Arial}           % sf
\setmonofont{Courier New}                       % tt
\setCJKmainfont{微軟正黑體}
\usepackage[left=0.95in,right=0.95in,top=2cm,bottom=2.54cm]{geometry}
\usepackage{unicode-math}
\usepackage{graphicx}
\usepackage[hidelinks]{hyperref}


  • The file generated by SWP has symbols that use SWP's "tcilatex" macro, so you need to copy tcilatex.tex file into the same directory as your tex file. The location of tcilatex.tex in SWP's path has the following structure "D:\swp50\TCITeX\TeX\LaTeX\SWmacros\". Locate this file and copy it into your working directory. Then make sure your tex file has the \input{tcilatex.tex} line. You should have this line because you prepared your file with SWP.

  • Change the TEX figure insertion command:

The figure insertion command for Xelatex should look like this:
\begin{figure}[th]
\caption{{}}
\label{firstfig}
\begin{center}
\fbox{\includegraphics[scale=0.7]{cordtrans.JPG}}
\end{center}
\end{figure}

So open the SWP tex file with Notepad and replace all things look like the following with the above

\FRAME{fhF}{5.5097in}{3.7135in}{0pt}{}{}{cordtrans.JPG}{\special{language
"Scientific Word";type "GRAPHIC";maintain-aspect-ratio TRUE;display
"USEDEF";valid_file "F";width 5.5097in;height 3.7135in;depth
0pt;original-width 9.135in;original-height 6.1436in;cropleft "0";croptop
"1";cropright "1";cropbottom "0";filename
'
cordtrans.JPG';file-properties "XNPEU";}}

There could be other commands you need to change before you can run your tex document with TEX life Xelatex. Here I only show three points, which is enough for me to typeset this document. Good luck!

鋼琴伴奏譜+彈唱 [轉錄 from 鸠玖的音乐世界 土豆網]

一個值得推薦的心血結晶 編曲最接近原版的鋼琴伴奏譜+他自己的超棒的彈唱
真是我的偶像阿~~
http://www.tudou.com/plcover/-ysO_c-u4NY/

Mar 1, 2014

使用Scientific Workplace 5.0 + XeLatex軟體做中英文混雜並夾帶數學公式的長篇圖文文章電腦排版

  這邊介紹如何利用Scientific Workplace 5.0的編輯方便性,加上XeLatex (TeX life 2013)對中英文混雜的完美支援,來對中英文混雜並夾帶數學公式的長篇圖文文章做自動排版。

Feb 5, 2014

新酷音輸入法 2013 安裝問題


我嘗試安裝新酷音輸入法2013在我的電腦上,我的系統是x86 windows XP + SP3,這邊寫上我遇到的問題。不知道為什麼下載網站的問題回報連結似乎沒有作用,好像也沒有人在網站上回饋。2014/2/6

我的「啟用進階文字服務」原本就是開啟的,在我安裝新酷音輸入法後我的'進階文字服務列'就消失了,也就是右下角按ctrl+space (或者其他按鍵)會切換輸入語言的小視窗就不見了,這也代表我無法輸入中文,這真的是悲劇阿,我弄了好久花了好多時間才把它救回來。新酷音的網站只說一定要開啟「啟用進階文字服務」,不然會有問題,不過我本來就有開啟,所以我也不知道為什麼,我好像有看到另一個人有同樣問題在網站上留言,不過問題似乎沒有被回答。

這邊寫上我胡搞瞎搞救回那個輸入語言的小視窗的方法,可是我不能保證有效,老實說我也不確定我救回那個小視窗的完整步驟。而且重要的是這裡只提供給大家參考,會有什麼後果不負責任的喔,只是討論一下,看看是否可以討論出個解決方法,要不然我想應該還是會有人會遇到同樣的問題。

在C:\WINDOWS\system32裡面有個檔叫做ctfmon.exe,我查了一下網路發現可能是安裝程式將這個檔案重新命名或者檔案遭到修改而無法正常運作,以下是我修正的方法,下面的步驟我各種順序都嘗試過,哈,這也是我不確定哪一步是正確的原因,也因此以下的步驟我各種順序都嘗試過不下十幾次,如果你想要試試看自己修,也請要有心理準備,多試幾次

  • 開啟->執行-> sfc /scannow 讓windows執行檔案修復,然後看看ctfmon有沒有出現在system32檔案夾中。(這一步我只跑一次,需要不少時間。)
  • 如果沒有,或者檔案其實存在但是不正常運作,去另一台xp電腦(輸入法是正常的電腦)拷貝一份ctfmon.exe放到你的system32檔案夾中。我就是這樣做。
  • 控制台->區域與語言選項->語言->文字服務與輸入語言->細節->移除所有的中文輸入法直到只剩下英文輸入法。
  • 重新啟動電腦,如果還是不正常,再去控制台->區域與語言選項->語言->文字服務與輸入語言->細節->進階->確認[關閉進階文字服務]沒有被勾選。再到system32資料夾中執行ctfmon.exe(滑鼠左鍵雙擊)。或者到工作管理員看看ctfmon.exe有沒有在背景中執行。(這一步我重複做多次)
  • 控制台->區域與語言選項->語言->文字服務與輸入語言,安裝windows本身內建的舊版微軟新注音輸入法,安裝後,我的語言輸入視窗就神奇的出現了。(也是只做一次)

再強調一次,以上順序我不知道怎麼樣走才是正確的,如果你真的想試,還請試著打亂上面的順序然後多試幾次。另外,千萬別動到其他system32裡的檔案阿。補充一下,我是google "advanced text service missing corrupted ctfmon.exe"之類的關鍵字才找到一些資訊的。另外,成功了的話別忘了跟大家分享你的正確方法喔。另外,救回輸入語言的小視窗後,我就不敢再安裝新酷音輸入法了,目前還在找好的輸入法中。









Dec 3, 2013

直立傳統弦敲擊式鋼琴的維修

http://www.danpiano.com/pdfs/Replacement-of-Worn-Asian-Style-Hammer-Butts-and-Flanges.pdf

零件英文名稱可在此網站查到(字有點模糊但還可以分辨)
http://www.dest.com.tw/web001/products-view.asp?product_id=73#

Discussion group
http://my.ptg.org/Communities/ViewDiscussions/ViewThread/?GroupId=43&MID=239315

Broken cord will give a metallic noise and loose touch, see here
http://www.pianoworld.com/forum/ubbthreads.php/ubb/showflat/Forum/3/topic/004648/Number/0/site_id/1#import

Below is quoted from Pianoworld.com: (I believe the original is provided by Wayne Walker)

Cord Replacement Procedure:
1. Place action in cradle; remove hammer rest rail and treble bracket.
2. Reverse action so that hammers and dampers are facing you.
3. Loosen hammer butt plate screws.
4. Remove hammer assemblies from flanges and let hang from bridle wires; keep them in order to avoid tangling.
5. Straighten any bent return springs.
6. Tighten all wippen flange screws.
7. Tilt action toward you 90° so that the hammer flange cord slots face upward.
8. Tighten remaining flange screws.
9. Using specially adapted shimming chisel or other suitable tool, clean slots (no solvent) and vacuum up debris.
10. Wrap 90+ turns on dowel with new cord and cut turns with a razor.
11. Glue one end of each piece to one slot on each flange.
12. Return to first flange and glue the other ends to remaining slots; check with gauge.
13. Lubricate damper spring slots.
14. Replace hammers; tighten butt plate screws; hook springs under flange cords as you go.
15. Replace hammer rest rail bracket and reinstall rest rail.
16. Final check: jack springs engaged with jacks, spring cords in crook of hammer return springs, bridal tapes not twisted.


Tools and Materials:
__flange, thin-bladed, and Phillips screwdrivers
__spray lube and spring hook (for damper springs)
__shimming chisel modified to clean flange slots, or other suitable tool
__glue applicator (syringe) filled with Tightbond & damp rag
__action cradle
__replacement cord, e.g., braided Dacron of suitable diameter (kite string, parachute cord) or silk cord (Pianotek)
__9/16" dowel [turned down from 5/8" dowel] or suitable width piece of cardboard
__blunted scriber (or use small screwdriver, to help place cords in slots)
__gauge (dowel, sized to fit intact flange cord, with end rounded off, to check loop size)
__razor
__forceps

Many different types of cord will work. White braided Dacron looks the best and will last forever. Joe Goss suggests Spider Wire which I've bought but haven't tried yet. It's a similar color to the stuff you're replacing so that tends to go against using it. I used to use squidding line but the kind you'll likely find in fishing supply places is waterproofed and wouldn't take well to Tightbond. Probably the easiest (and possibly cheapest) is to order the silk action cord from Pianotek ($3.95 for a 30-yard roll).

Cleaning out the slots is not critical and you could even give the flanges a quickie scrub and vacuum treatment and commence with step 10.

This method is taken from Tom Driscoll who posted it to the list in May, 2002 (Yamaha Upright Hammer Flanges).

_________________________
Wayne Walker
Walker's Piano Service
http://www.walkerpiano.ca/