Colin's profileSound of SilencePhotosBlogLists Tools Help
    May 02

    RealPlayer is now universal

    RealPlayer 10.1 is released as universal binary.
    May 01

    Where are smart folders stored?

    /Users//Library/Saved Searches
    April 27

    Introducing my favorite apps

    My Favorite Design Apps:
    There is no doubt TeX/LaTeX (universal) falls into this category. I use it to compose most of my documents.
    Adobe Indesign CS2 (PPC) is also used a lot in layout design, with the facilitation of Adobe Photoshop (PPC).

    My Favorite Office Apps:
    Microsoft Word 2004 (PPC), although released from M$, is amazing good. I mainly use Microsoft Word 2004's notebook layout to record lectures and take lecture notes (this is like the Microsoft Onenote on Windows). I also like the tracking function in Word.
    Most of the time, I rely on Apple's own Pages (universal) for writing papers and Keynote (universal) for creating amazingly beautiful presentation. I also use LaTeXit (universal) to create math equations to be incorporated into my slide shows.

    My Favorite PDF Apps:
    I use Mac OS X's own printing function to produce PDF files and Preview (universal) to read PDF files.
    Occasionally, I would use Adobe Acrobat 7.0 (PPC) to do markup on PDF files.

    My Favorite Web browser:
    Safari (universal) is extremely fast and powerful. I use it 95% of the time. Sometimes I use Firefox (universal) and Opera (universal) to view websites like PConline, which is not well supported by Safari.

    My Favorite Email App:
    Thunderbird (PPC) is actually my favorite—it supports Duke's webmail system seemlessly, but it's not yet universal.
    Currently, I use OS X's own Mail (universal). Although it doesn't support Duke's web mail that well, but there's hardly any problem; even if there is one, i can get around it. The advantage of Mail is smart folder and other handy nice functions.

    My Favoite Chat Apps:
    iChat (universal) is great! It's small, cute, and beautiful. It works with AIM and GoogleTalk seemlessly.
    I also use Microsoft's dumn Messenger (PPC). Probably will get rid of it when I persuade all my friends to convert to AIM.

    My Favorite Math Apps:
    I use Mathematica (universal) to check my Calculus homework; it is now universal and runs fast.
    My Favorite Digital-Life Apps:
    iPhoto (universal) organizes my photo, and is used for creating albums and photo calenders.
    iMovie (universal) leaves Windows Movie Maker in a dust. . . .
    iTune (universal) leaves Windows Media Player in a dust. . . .
    Photo Booth (universal) is used to take my pictures whenever I want to.
    VLC (universal) is like Media Player Classic on Windows. Nice, nice, nice!!!

    My Other Favorite Apps:
    iGetter (PPC) is like FlashGet on Windows and works fairly well.
    BitTorrent (PPC) is great for downloading special kinds of movies.
    Automator (universal) is great for automating some of my work.
    Address Book (universal) keeps records of my friends.
    Comic Life (universal) is of great fun for creating comic books.
    OnyX (universal) maintains Mac OS X in its nice shape.
    Transmit (universal) is my favorite FTP app.
    Disk Inventory X (PPC) displays your folder size in an intruging and beautiful layout.
    Dictionary (universal) ensures that I'm never lost again in words. . . .
    iAlertU (universal) protects my Mac from being stolen.
    iCal (universal) makes sure I'm always on time.
    DVD player (universal) plays DVD, high quality!!!
    World of Warcraft (universal) is the best game on Mac.
    Sherlock (universal) gives me access to AppleCare database.

    Other apps I use:
    iQQ (PPC), Font Book (universal), GarageBand (universal), iSerial Reader (PPC), iWeb (universal), LimeWire (PPC), Mactracker (PPC), Pacifist (universal), Quicktime (universal), RealPlayer (PPC), Skype (PPC), Stickies (universal), TextEdit (universal), TinkerTool (PPC), Toast Titanium (PPC), Windows Media Player (PPC).
    April 22

    解决spotlight搜索速度变慢的问题/Troubleshooting Slow Spotlight Search

    本文适用范围:Intel-based Macs
    Scope: Intel-based Macs

    症状:在Intel-Based Macs上安装Windows XP以后Spotlight搜索的速度慢了很多。
    Symptom: Spotlight is noticably slower after installing Windows XP on Intel-based Macs.

    病因:这是因为Mac OS X无法正确的处理windows分区上的index信息,所以搜索时,在飞快的处理完mac os x分区上的信息后,会花上相当长的时间对windows xp的分区作处理。
    Cause: Mac OS X is not able to process the index information on the Windows partition properly. When a search is executed, Mac OS X processes the info on the Mac OS X volume lightening fast, but then spends a HUGE amount of time processing the Windows XP partition.

    解决方案:
    Solution:
    1、你可以试着把windows分区里的文件夹全部脱到Spotlight的preferences的privacy下面。如果是FAT32分区,应该是可以的(我没有试过),但如果是NTFS分区,可能就脱不进去了。
    1. You may try dragging all the folders on the Windows partition to the privacy section of the Spotlight preference. This should work if your Windows partition is FAT32, but doesn't seem to work for an NTFS volume.
    2、如果脱不进去,那么一个办法就是把windows分区unmount掉,你可以在disk utility里面把这个分区unmount。但是如果可以每次开机的时候都自动把windows的分区unmount就好了。这其实很容易做到:
    2. If Step 1 fails, you can unmount the Windows partition. You can do so in Disk Utility. But it'll be great if this can be done every time you start up the system. This is actually pretty easy to realize:

    1)打开application--applescript--script editor。
    1) Launch "script editor" in "application -- applescript."
    2)在里面写这么一行:do shell script "/usr/sbin/diskutil unmount /Volumes/分区名称";
    注意:“分区名称”就是你的windows分区的名字,如果有空格的话就不好办了。。
    2) Write in the file: do shell script "/usr/sbin/diskutil unmount /Volumes/volname";
    Note: "volname" is the name of the windows partition. Won't work if it contains spaces. 3)保存的时候要选application bundle,存成比如叫“Unmount Windows Partition”。
    3) Save as an application bundle. Name it something like "Unmount Windows Partition."
    4)在你的account的login item里面把这个小程序添加进去,下次登陆的时候就会自动执行了。
    4) Add this app in the login item tab of the account preference, and it'll be executed the next time you log in.

    当然如果你突然想要用这个分区,到disk utility里面去mount一下就可以了。
    In case you actually want to use this volume, mount it in disk utility.
    April 08

    MacBook Pro Review

    先说说原来那台 Powerbook G4 的命运。我是 2005 年 12 月份买的 PB 15。开始几天特别激动,偶然的,一次在 photoshop 里做了一张图,内容是间距为一象素的一些水平的 scan lines。我把图片的窗口向上拉了一点,突然发现我做的那些横条全部消失了。我又重复做了几次,发现随着我窗口上下移动,那些横线会交替出现。这说明一件事情——屏幕上每隔一个象素就有一条水平的暗线。于是我第一次上了apple的discussion,发现原来几乎所有的1440*960的机器都存在这样的问题。我开始和苹果交涉,三次维修,他们没有能够解决这个问题,第一次说什么问题也没有发现;第二次说发现了,但是认为不算问题;第三次又说没有备件可供更换。最后一次打电话给apple care,工程师承认了问题的存在,给了我全额退款,让我返回经销商更换别的机型,于是我选择了MacBook pro。(PS:我相信苹果现在已经解决了横线的问题,因为上个月开始已经有用户送修的机器得到了很好的处理。如果你想测试自己的机器是不是有问题,可以用 http://forums.macrumors.com/attachment.php?attachmentid=39014&d=1137557842 这个图形。具体方法是:1、使用safari直接打开,如果用preview一定要选择actual size。2、如果左右颜色深浅不一,那么你的显示器有问题;2、进一步的,把窗口上下移动,如果颜色块发生变化,就肯定有问题。)

    下面谈MBP,我采用FAQ的形式。

    1、大家最关心的,有什么缺陷?对于以有的缺陷应该怎么解决?

    如果关注近期的apple discussion,你应该已经知道MBP最大的问题在于莫名的高频噪音。这一问题在我的机器上同样存在,说实话,让人非常不舒服。具体来讲,这样的高频噪音是双核有一核空闲时才出现。比较讽刺的是我以前的IBM T43p就是因为这一原因被IBM回收回去的。其实这样的高频噪音在很多笔记本电脑上都有,像dell的很多机器在电池模式下都会这样,但是MBP的可以算是比较“突出”的了。
    现在流行的解决方法是打开photo booth,噪音立刻就消失了……也可以下载一个叫mirror的widget,让它在后台运行,不让CPU空闲,噪音也就没有了。
    不过至少我们知道苹果的工程师are working on it(已经有好几台MBP被capture回去作分析了),他们似乎认为是logic board的问题,Discussion上也有人反馈说苹果已经确认可以解决这个问题。还有人认为通过升级firmware就可以解决这一问题。我们恃目以待。

    还有,一个历史遗留问题,那就是USB供电不足。即便是2.5英寸的external drive,也必须用两个usb接口才能启动。这个问题从PB就开始了,到现在为止也没有解决(iBook倒是没有问题)。不过我的没有外接电源的扫描仪倒是可以用。。。奇怪。

    网上别的朋友反应有坏点,这显然通过换机就可以解决;而sleep以后醒不过来,apple也可以帮你修复;这些都不算问题,在我的机器上也没有出现。

    本来我的机器还有一个问题,就是右音箱音质极差,今天收到了返修过的机器,更换了主板,speaker音质糟糕的问题已经完全解决,正如别的网友所说,音质非常好。但是高频噪音的问题仍然存在,但是更换主板后出现噪音的频率很低。事实上,我进系统半个多小时了,只在头1分钟听到。即使有噪音,声音也不是很大,完全是可以接受的了。

    2、好多人说MBP非常热,真的吗?

    MBP是热的(但是哪台笔记本不是),不过绝对没有传说中的那么可怕(完全没有达到MacCook的程度)。机器的左音响可以说是非常非常热,有点tang手的感觉(wally老大说了硬盘在此,不热不行)。但是其他部分和powerbook差不多,最多热那么一点点吧。如果你觉得你可以忍受PB的热度,那么MBP肯定没有问题。

    好多人反应说更新到10.4.6以后热量减少了。。well,可能吧,我没感觉到。不过我一直都没觉得比pb热很多。

    3、总体性能怎么样? 先比较一下两台机器的配置: PB: G4 1.67Ghz / 512MBx2 / ATI 9700 128MB / 80G 5400rpm
    MB: Intel Core Duo 2.0GHz / 512MBx2 / ATI x1600 256MB / 100G 5400rpm


    我们先看XBench得分。(图在最后)

    PB: 46.77
    MB: 106.70

    相比之下,PB的得分多少显得有些可怜。

    大凡是universal的软件,都可以明显感觉到速度的提升。我举一些例子:
    1)特别明显的,Spotlight[Spotlight的更多高级技巧]。在pb的时候,搜索东西还是会有些延迟,比如搜索果上千的,一般五六秒至少。但是mbp上面,真的是不超过1.5秒(搜索结果达14XX),非常快。
    2)MacWorld的时候,jobs很自豪的演示了safari,怎么说呢,他绝对没有吹牛。可能我在国外的原因,以前用PB打开pconline有的时候半分钟都不行,但是MBP上时间缩短了至少一半。
    3)我平时用得最多的一个排版系统,TeX,现在也已经universal了。平时用ConTeXt编译一个很简单的文件,有时候都要10秒左右。昨天用MBP编译一个以前感觉要半天的文件,两三秒的事情。
    4)以前在PB上用pages,感觉打字都一卡一卡的,但是MBP上非常非常流畅。
    5)system preferences,点上去就出来了。
    6)开机速度,不用说了,想必大家也看了很多视频了。我一开始的时候觉得挺慢的,后来发现是Microsoft Messenger的开机时自动启动的原因,取消以后就没问题了。

    3、Rosetta呢?是不是很慢?

    Microsoft Messenger、Microsoft Office速度很快,和PB完全有得一拼,感觉不到延迟。事实上,photoshop的速度也不错,有时候有些延迟。但是大家知道,rosetta会自动cache,已经翻译好的代码再用的时候就不用再翻译了,所以photoshop大有越用越快的感觉。可惜这些cache机器重启的时候就清空了。这几个是大家平时用得比较多的软件,所以不必担心。

    我平时还经常用到Indesign,就有点慢了,感觉上和G4 1Ghz - 1.25Ghz差不多吧。acrobat也非常辛苦,不过好在mac os x内建的pdf功能已经很不错了。

    可怜的倒是iQQ,显然没有编译好,在universal下不能登陆,必须用rosetta运行,速度还可以(原来我说很慢,现在收回)。

    有一点值得注意,Rosetta非常非常吃[内存],同样的软件在rosetta下面运行,可能要用2-3倍的[内存]。列举一些数据:Messenger 43.23/511; Word 74.83/789.32。

    4、电池时间?

    我昨天做了电池的校正,3小时左右吧。但是注意,我没有降低显示屏的亮度,所以3小时可以说是很不错的结果,考虑到MBP的显示屏比PB的亮很多。
    值得注意的是MBP的电池容量是5600以上,比起PB的4400左右就大多了,当然,充足电也需要花更长的时间了。

    5、有人说做工很糟糕,是吗?

    如果我那个音响问题算是做工问题,那么说做工很糟糕也不过分。但是除了音响方面,其他我不觉得做工比PB差。摸上去手感也相当好。显示屏幕下面的[MacBook pro]这次也有强烈的光泽了。另外,如果你还不知道的话,MBP上面的trackpad和原来的PB 17寸的一样大,用起来非常舒服。

    6、听说少了好多端口,真的?

    是的。FireWire 800没了,S-video出口也没了。前者可以通过expresscard实现,后者可以单独买到。所以不算大问题。还有PC卡插槽被expresscard插槽取代了,对某些用户来说短期之内多有不便。
    以上是端口,另外还少了modem……不过这都什么时代了。当然,如果你要用modem,苹果也可以提供usb的~看上去挺可爱的。

    7、电源接口怎么样?

    Cool!会不会短路我是不知道,不过我觉得设计得还是不错的。在网上看照片的时候觉得挺大的,实际上非常小巧,1.5 cm x 1 cm。

    8、PB 15的分辨率是1440*960的,MBP的只有1440*900,怎么回事?

    有人说少掉的那60个象素是让位给isight camera了,不过我认为是一件大好事:1440*900才是标准的宽屏分辨率。看dvd更舒服了。

    另外值得注意的是,MBP的屏幕非常非常亮(苹果说和apple cinema display一样亮)。

    8、其他还有什么评论?

    一些乱七八糟的东西:
    1、我的那台dell的打印机居然也能直接插上去就认出来。
    2、摄像头和isight一样,会自动变焦,画质也是很不错了,特别是和那些pc上的比。
    3、因为高度的关系(MBP只有1 inch厚,据jobs说,比17寸的PB比还one hair thinner),superdrive只有4X,不过虽然速度慢了,但是声音也小多了。
    4、虽然薄了,不过机器也宽了,但是我原来的苹果专用的15寸内袋用来放MBP完全没有问题。
    5、按键弹性好象比以前的机型要好一点。
    6、apple remote还可以控制keynote里面的幻灯片,很有意思~

    9、有那么多缺陷,我应不应该买呢?

    首先必须说,我对这台机器的满意度远远超过对PB 15的满意度。
    我还要持和以前一样的观点,如果你现在不需要更新,那么等等好了。但是如果你正准备换机器,不用再考虑PB了,和MBP没法比。
    对于缺陷,我的感觉是苹果对于所有的缺陷都非常重视,就好象我以前的PB的屏幕横线问题,虽然时间长了点,但是现在苹果已经有解决方案了。所以我认为所有的缺陷过段日子都会有解决方案出来的,更何况我们已经知道苹果的工程师已经召回了好几台有强烈的高频的噪音的机器(叫capture)作技术分析了。
    很多人认为下一代就没问题了。怎么讲呢,下一代肯定会有更多的功能,更好的处理器等等。但是我还是打那个比方(也不算比方),我的那台PB 15,都已经是“最后一代”了,不是照样有设计缺陷……

    10、价格[查产品价格到苹果超市]呢?

    国内就不说了,贵得要死。

    在美国,如果你不是学生,建议通过Amazon买,有150美元的返款。(其实如果你所在的州要交税的,即便你是学生,用amazon买也要便宜一些,因为amazon是无税的)

    当然,如果你是学生,还有一种方案。你可以先花99美金买到苹果的Student ADC Select。然后你用1599就可以买到1.83Ghz的,1999就可以买到2.0Ghz的机器。这是现在最便宜的购买方案。

    11、Boot Camp怎么样?

    不错的东西。很方便,鼠标点点就把windows搞定了。大部分硬件都运行得非常好,当然正如苹果所说的,apple remote、isight不能工作(我个人认为isight不能工作是个大阴谋,苹果可能是不想让别人在pc上用isight吧,不过为什么呢?)但是显卡、网卡、无线网卡等都很好。运行速度也相当快,网上有人说测下来比同配置的PC要好,不知道真假。

    Finally got my computer back

    I opened a dispatch with Apple on March 24th because of the high pitch whining noise and the distortion in the right speaker. The repair took quite a long time -- obviously they have to order the logic board from China -- but finally it's done today. As was expected, the main logic board is replaced. Gone is the distortion in the speaker. However, the whining remains, but has definitely improved -- I don't hear it that often, and even when it does whine, it's quite tolerable.

    Apple released Boot Camp, a beta app helping users install M$ Windows XP on Intel-based Macs, the day before yesterday. Some people, especially those stuck with a PowerPC-based Macs, say Apple has changed. Well, yes, they have -- but in a good way for me. I can now do even more things on my Mac -- yes, i've successfully set up Windows XP on my Mac, and it flies.

    I'm moving away from Safari, apple's built-in web browser, and switching to FireFox. When I first started using Mac OS, the major reason for dumping FireFox is that it is too slow. But now, a recompiled version for Intel-based Mac is released by an individual, and it runs so smoothly. The webpages load almost instantly. Compared with Safari, its interface is a bit unglier, but the functionality is more flexible (if not better).
    March 16

    Windows XP now booting on Intel-Mac

    The contest to dual-boot Windows XP and Mac OS X on the latest Intel-based Macs have finished. The winner won a total amount of 13,854 dollars.
    February 01

    被人逼了~

     游戏规则:1.由某个blog发起,出一个题目。 2.在自己的blog中完成题目,然后点名另外7个blog完成同样的题目。 3.另外的7个blog完成题目以后再分别点名,依次类推。 4.被点名的blog在完成题目时要注明被哪个blog点名。 5.点名者要去被点名者的blog里留言,告知他(她)已被点名 6.不可回传,加一条自己出的题。
     
    1.最近在看的电视 -- 春晚;Duke Basketball
    2.最近在做的事情 -- 吃饭,睡觉,学习,睡觉,睡觉,睡觉
    3.最近在听的音乐 -- Louis Armstrong的Jazz
    4.最近在吃的东西 -- 可以吃的东西
    5.最近在看的报刊 -- The Chronicle
    6.最近关心的话题 -- 睡觉
    7.最近常去的地方 -- 教室们
    8.最近常想的异性 -- 妈
    9.最近最想做的事 -- 睡觉,学ConTeXt
    10.最近身体情况 -- 胖了0.X kg
    11.最近理财状况 -- 每周进帐60美金,出帐无数
    12.对朋友最想说的话 -- 没有你们我怎么活啊?
    13.对自己最想说的话 -- 变胖,变胖,快变胖……
    14.想一个减肥的良方 -- 内建的机制最重要
    15.记忆中做过最疯狂的事情之一 -- 学TeX
    16.喜欢K歌的程度1~10依次递增-- X
    17.最喜欢吃的食物 -- 鸡
    18.最喜欢的水果 -- 菠萝
    19.最怕什么?-- 同Lee(会扭来扭去的东西)
    20.现在最想做的事情 -- 还是睡觉
    21.你最遗憾的一件事情 -- 第一学期修了历史课
    22.短期的目标 -- AAAA
    23.现在最想买的东西 -- 继然MacBook Pro要来了,就买AppleCare喽
    24.有没有劈过腿?-- 做恶梦的时候?
    25.你最不能忍受另一半的性格特征是?-- 疯狂
    26.你最好朋友的名字 -- Lee
    27.你最想将来定居哪里? -- 深山
    28.接吻和做爱你更在乎哪个?-- 无所谓
    29.你平均一天上大号几次 ?-- 与身体状态相关
    31.觉得自己最最最最……大的优点是什么??-- 不会拒绝(甚于Lee)
    32.近一年,最丢人的事情是什么? -- 有吗?想想……zzz
    33.感觉最好的接吻是和谁?-- XXX
    34.带我去放焰火好不?-- 不好,远离火种
    35.你有没有红颜知己 -- 没
    36.你现在最想的他/她是谁 -- 某个在中国过美国时间的猪头
    37.去年最快乐的是哪天?为什么?-- Duke把钱划我帐上的那天……
    38.今年最大的愿望是什么? -- 把牙看看好
    39.迄今为止最难忘的一件事?-- 04年6月26日
    40.你在森林养了好几种动物,马.牛.羊.老虎和孔雀.如果有天你必须离开森林,而且只能带一种动物离开,你会带哪种动物? -- 羊
    41.找结婚对象的条件是什么?-- 乖
    42.现在谈恋爱,你会告诉父母多少具体情况?-- lim(告诉的内容)=0
    43.你觉得今年世界杯谁冠军阿?-- 非我喽
    44你最喜欢的季节是哪个?为什么?-- 春天,天好
    45.如果上天给你一个重来一次的机会,你最想改变哪件事情?-- 实际点!!
    46.请为幸福下一个定义? -- 和朋友坐在一起聊聊天,喝喝coffee,看看电视,走走路等……
    47.什么情况下分手了还能做朋友? -- 一方还在付出
    48.现阶段生活的支点是什么 -- 睡眠质量
    49.“付出是为了获得“是否是一切交流的原则 -- 否,无私……
    50.当一个人问“你想不想我的时候“,是“想起”还是“想念“?要怎么回答阿?-- 想起/想念,trust you sense……
    51.一个男人会做饭(能张罗一桌像样的菜接待客人的)到底是好事情还是傻事情?-- 好事,我可以吃到好饭~
     
    点名:
    待续……
    January 01

    When to do when columns are narrow and there are overfull lines?

    1. Rewrite the text until the overfull lines disappear.
    2. Increase the tolerance. (reduce overfull boxes, but the lines will look awful)
    3. Increase the value of \emergencystretch. (reduce badness of lines and, consequently, no. of overfull boxes. better than 2)
    4. Increase the value of \hbadness and/or \hfuzz. (declare fewer lines as overfull/underfull. rarely used)
    5. Execute \overfullrule=0pt.
    6. Use \raggedright. (best way!!)
    7. Fiddle with \looseness.
    8. Change the space factor codes of the punctuation marks to get more stretch (or more shrink) than normal in the interword glue following them.
    9. If all else fails, try to increase \hsize to widen the paragraph.
    December 29

    \hangindent

    \setbox0=\vbox{\hsize=2in\tolerance=9000\hbadness=10000\parskip=0pt
    \parfillskip=0pt\parindent=0pt\baselineskip=9pt \font\big=cmr10 at 50pt
    \font\small=cmr7 \small \hangindent=24pt \hangafter=-2
    \leavevmode\smash{\lower28pt\llap{\big``\small\quad}}%
    Here is a short passage set in small type to demo hanging indentation on both ends of a paragraph. This is done by splitting a paragraph in two, indenting the first part at the\par
    \hangindent=-24pt \hangafter=3
    top and the second part at the bottom, then adding the big quotes by means of llap and rlap. The rest is just details of moving boxes and getting the spacing just right.\smash{\lower24pt\rlap{\small\quad\big''}}}
    \wd0=0pt\ht0=0pt\dp0=0pt\box0
    \nointerlineskip \hangindent=2.2in\hangafter=-8
    {\hsize=4.2in\noindent The effect shown here is used a lot in books where high-quality typesetting is important. It has been achieved by setting certain paragraph parameters to special values, and by using boxes. the spaces for two big quotes are reserved by means of hanging indentation. Th text in small type is actually made of two paragraphs, one}

    An interesting example of \expandafter

    \expandafter\expandafter\expandafter\a\expandafter\b\c Let's write it as \ex1\ex2\ex3\a\ex4\b\c.

    The steps are
    1. When \ex1 is executed, it saves \ex2 and expands \ex3.
    2. When \ex3 is expanded, ti saves \a and expands \ex4. The list of saved items now consits of \ex2, \a.
    3. When \ex4 is expanded, it saves \b and expands \c. Thus \c is the first of \a, \b, and \c to be expanded.
    4. The list of saved items (\ex2\a\b) is placed in front of the expansion of \c, and TeX continues normal processing. However, the first otken that it sees is \ex2. It therefore saves \a, expands \b, and finally expands \a.
    This example reverses the normal expansion of tokens \a, \b, and \c.

    An application: \expandafter\expandafter\expandafter\lowercase\expandafter{\jobname}.
    December 19

    Unix Notes I -- Chapter 1

    1. Processor status
    e.g., $ ps -ax
    PID (process identification number)
    TT (?? means the process is running outside of a Terminal window)
    STAT (status)
    TIME
    COMMAND

    e.g., $ ps -ax | grep Word
            $ kill + <PID>

    2. ls -a

    3. To see all of the binary executables -- Unix programs -- on your syste, open the Terminal, hold down Shift, and press Esc-. (control + C to cancel)

    4. Without any argument, "cd" moves to the Home directory.
    "pwd" (present working directory) shows the path for the directory currently in.
    "ls" list the files in a directory.

    5. Top Ten:
    ls
    cp original_file copied_file
    mv original_file new_file
    rm filename (remove)
    pwd
    cd directory_name
    man command_name (documentation)
    more filename
    grep pattern (search)
    top

    TeX Roadmap

    Due to its intrinsic inflexibilities, I'm thinking about either abandoning LaTeX entirely or at least designing new class files to suit my taste. I'm planning three months' time to learn about basic Java programming so as to be able to program with greater ease in TeX.
    The short-time goal will be to switch TeX (the plain format) or to design new class files.

    Meanwhile, I'll be trying out ConTeXt. If it proves as flexible as is described, I'll be switching to ConTeXt.

    The whole pace should be faster (actually much faster) then described above.
    December 05

    CCT and CTeX

    Both packages are quite easy to install. Just drag the source files to \texmf\tex\latex and everything's set.
    December 03

    Installing TeX on Mac OS X Tiger

    1. Install TeX using I-installer.
      1) Download ll2.dmg at http://ii2.sourceforge.net.
      2) Drag i-installer to /Applicaton/utilities.
      3) Launch i-installer, choose i-package --> Known Package i-Directory.
      4) Install the following (order!)
          * FreeType 2
          * libwmf
          * Ghostscript 8
          * ImageMagick
          * FrontForge
          * TeX
    2. Install TeXshop
      1) Download TeXshop at http://www.uoregon.edu/~koch/texshop/obtaining.html
      2) Drag it into the Application folder.
      3) In Preferences --> encoding, choose "mac Chinese Simplified."
    3. Set up Chinese
      1) The first solution is to use XeTeX.
          * Launch I-installer again.
          * Choose jonathan Kew's i-Directory @ SIL in i-directories.
          * Install "TeX support: XeTeX."
          * Test file:
            \documentclas{article}
            \usepackage{fontspec}
            \setromanfont{Apple LiSung Light}
            \begin{document}
            你好
            \end{document}
           * Compile it with XeLaTeX.
      2) The better solution is to use the CJK package.
      Download the CJK package from http://cjk.ffii.org/. Uncompress it and put the output at /usr/local/teTeX/share/texmf.local/tex/latex/CJK.
      Then you have to set up the fonts, which is quite troublesome. The easiest way is to copy the localtexmf folder of CTeX to /usr/local/teTeX/share/texmf.local. Then go to texmf.local/pdftex/config, make a copy of psfonts.map and rename it to pdftex.map. In terminal, execute the command "sudo mktexlsr" and it should work.

    Other resources:
    http://www.oikos.com.tw/modules/newbb/viewtopic.php?topic_id=15850&forum=2
    http://tfcis.blogspot.com/2005/05/mac-os-x-tex.html
    http://latex.yauh.de/faq/index.php?aktion=artikel&rubrik=005003&id=30%E2%8C%A9=en
    November 30

    再谈省略号用法

    Neals问了我一个很有趣的问题:1, 2, 3, . . . 这样的无穷序列如果出现在句末省略号到底怎么点法?
    我的本能反应是用:1, 2, 3,~\dots.
    但是想想不对,根据我现在使用的规则,四点的省略号第一点才是句号(除非使用rigirous method,那就是另外一番对话了),所以这样的点法显然是有问题的。但是,1, 2, 3. . . .是不可接受的,有一条明确规定,序列中的逗号不可以随便省略。
     
    我现在的想法是,把1, 2, 3当成是语法不完整的句子,那么三个点就OK了。也就是1, 2, 3,~$\ldots$
     
    不过还有一个问题,如果按照经典的空格规则,句末的空格应该大一点,这样似乎$\ldots$后面的空格应该大一些,所以如果用经典空格的,那么可能输入成$\ldots\,$更合理一点,但是这样做的问题也是显而易见的。
    不过如果用了\frenchspacing,那么也就没有问题了……
    November 18

    Switching to Mac

    Happy to announce that I'll be switching to Mac.
    I've been preparing for the transition. Adobe CS2 and Microsoft Office Suite are ready. Even the driver for my Dell 1700 printer could be found on the Internet.
    There are, however, a few software issues that need to be solved. Because MSN Messenger for Mac has no built-in support for webcams, I'm thinking about using either Mercury or switching to AIM. Also, I'm experiencing technical problem when switching from MikTeX to TeTeX -- mainly with the configuration for Chinese. Hope things work out.

    Converse

    --- You're my SF even if you hate me.
    --- You're my SF even on the last day of the world.
    November 03

    September 28, 2005 DOS cable on students and immigrant intent

    September 28, 2005 DOS cable on students and immigrant intent


    UNCLASSIFIED STATE 00180015
     
    VZCZCXRO2533
    RR RUEHKW RUEHNAG
    DE RUEHC #0015/01 2711843
    ZNR UUUUU ZZH
    R 281839Z SEP 05
    FM SECSTATE WASHDC
    TO ALL DIPLOMATIC AND CONSULAR POSTS COLLECTIVE
    RUEHDBU/AMEMBASSY DUSHANBE 1947
    RUEHGE/AMEMBASSY GEORGETOWN 1794
    RUEHTRO/USLO TRIPOLI 4333
    BT
    UNCLAS SECTION 01 OF 03 STATE 180015
     
    VISAS
     
    E.O. 12958: N/A
    TAGS: CVIS
    SUBJECT: Students and Immigrant Intent
     
    REF: (A)  Section 101(A)(15)(F) and 9 FAM 41.61  (B)  04
    STATE 274068  STATE 00180015  001.2 OF 003
     
    1.  Summary:  This cable provides some guidance for
    consular officers in how to interpret the immigrant intent
    provisions when adjudicating student visa applications.
    Consular officers adjudicating student visa applications
    should evaluate the applicant's requirement to maintain a
    residence abroad in the context of the student's present
    circumstances; they should focus on the student
    applicant's immediate and near-term intent.  Revised FAM
    notes follow.  End summary.
     
    2.    Residence abroad requirement in general terms:  As
    explained in ref (B), the immigrant intent requirement
    applies in only certain nonimmigrant visa classifications.
    Most of these visa classifications require the visa
    applicant to satisfactorily demonstrate that s/he
    possesses a residence abroad that s/he has no intention of
    abandoning.  This residence abroad requirement is found in
    the B, F, J, M, O-2, P, and Q visa classifications.
     
    3.  The purpose of travel is always the controlling
    criterion for determining a proper visa classification.
    Each classification differs fundamentally in terms of
    activities permitted and time period contemplated in the
    United States.  Student visa adjudication is made more
    complex by the fact that students typically stay in the
    U.S. longer than do many other non-immigrant visitors.  In
    these circumstances, it is important to keep in mind that
    the applicant's intent is to be adjudicated based on
    present intent - not on contingencies of what might happen
    in the future, during a lengthy period of study in the
    United States.
     
    4.  Context of residence abroad for students:  While the
    concept of "ties" is very useful in evaluating many non-
    immigrant visa applicants, it is relatively less useful in
    assessing the present intent of a student.    The typical
    student is young, without employment, without family
    dependents, and without substantial personal assets.
    Students may have only general rather than specific plans
    for the future.  These personal circumstances differ
    greatly from those of persons usually qualifying for B-1's
    or P visas for example.  The residence abroad requirement
    for a student should therefore be considered in a broader
    light, focusing on the student applicants' immediate
    intent.  While students may not be able to demonstrate
    strong "ties", their typical youth often conveys a
    countervailing major advantage in establishing their bona
    fides:  they don't necessarily have a long-range plan, and
    hence are relatively less likely to have formed an intent
    to abandon their homes.
     
    5.  Intended course of study:  The fact that the alien
    plans on studying a subject for which there is no or
    little employment opportunity in his country of residence
    is not a basis for denying the visa; because circumstances
    may change, this fact should not be deemed a negative
    factor in adjudicating the case.  Nor, on the other hand,
    is the fact that the country of residence can provide the
    equivalent quality courses in the same subject matter.
    The student has the right to choose where s/he will obtain
    an education if accepted by the school.
     
    6.  Visa renewal during course of study: Some students
    have to apply for new visas if they go home or travel
    during their period of study.  Returning student
    applications should generally be reissued in the normal
    course of business, unless circumstances have changed
    significantly from the time of previous issuance.
    Students should be encouraged to travel home during their
    studies in order to maintain ties to their country of
    origin..  If students feel that they will encounter
    difficulties in seeking a new student visa or that a visa
    will not be issued to them so they can continue their
    studies, they may be less inclined to leave the United
    States during their studies and hence may distance
    themselves culturally from their homeland.  Posts should
    facilitate the reissuance of student visas so that these
    students can travel freely back and forth between the
    homeland and the United States.
     
    7.  Student Visa Reminders:
     
    A.  Educational qualifications:  The I-20 is evidence that
    the school has accepted the applicant as a student.  The
    choice of the subject matter is not determinative of the
    applicant's scholastic aptitude.  Consular officers should
    not go behind the I-20 to adjudicate the alien's
    qualifications as a student for that institution.  If the
    consular officer has reason to believe that the applicant
    engaged in fraud or mispresentation to garner acceptance
    into the school as laid out in 9 FAM 41.61 Note 8, then
    that information is an important factor to consider in
    determining if the applicant has a bona fide intent to
    engage in study in the United States.  Verification of
    admission with the school would usually be required if you
    are considering applying INA 212(a)(6)(C).
     
    B.  Community colleges or lesser-known schools:  All
    legitimate schools must be accorded the same weight under
    the law.  The INA does not distinguish among schools
    qualifying for I-20 authorization based on size or
    recognition.  There is no legal difference between
    community colleges, English language schools and four-year
    institutions.  Applicants should be adjudicated on their
    bona fides as students regardless of institution of
    program of study.  If you have reason to question the
    authenticity of the school contact either DHS or
    CA/VO/F/P.
     
    8.  Text of FAM Notes:
     
    9 FAM 41.61 N5.1 Residence Abroad Required
    (ct:visa-706;   02-17-2005)
    The INA requires that the applicant possess a residence in
    a foreign country he or she has no intention of
    abandoning.  The regulations require that the consular
    officer be satisfied that the alien intends to depart upon
    termination of student status.  Consequently, the consular
    officer must be satisfied that the applicant, at the time
    of visa application:
     
    (1)     Has a residence abroad;
    (2)     Has no immediate intention of abandoning that
       residence; and
    (3)     Intends to depart from the United States upon
       completion of the course of study.
     
    9 FAM 41.61 N5.2  Context of Residence Abroad for Student
    Visas
    (ct:visa-706;   02-17-2005)
    The context of the residence abroad requirement for
    student visas inherently differs from the context for b
    visitor visas or other short-term visas.  The statute
    clearly pre-supposes that the natural circumstances and
    conditions of being a student do not disqualify that
    applicant from obtaining a student visa.  It is natural
    that the student does not possess ties of property,
    employment, family obligation, and continuity of life
    typical of b visa applicants.  These ties are typically
    weakly held by student applicants, as the student is often
    single, unemployed, without property, and is at the stage
    in life of deciding and developing his or her future
    plans.  This general condition is further accentuated in
    light of the student's proposed extended absence from his
    or her homeland.  (see 9 FAM 41.11 n2.)
    Nonetheless, the consular officer must be satisfied at the
    time of application for a visa that an alien possesses the
    present intent to depart the U.S. at the conclusion of his
    or her studies.  That this intention is subject to change
    or even likely to change is not a sufficient reason to
    deny a visa.
     
    9 FAM 41.61 N5.3 Relationship of Education or Training
    Sought to Existence of Ties Abroad
    (ct:visa-706;   02-17-2005)
    The fact that a student's proposed education or training
    would not appear to be useful in the homeland is not, in
    itself, a basis for refusing an f-1 or m-1 visa.  This
    remains true if the applicant 's proposed course of study
    seems to be impractical.  For example, if a person from a
    developing country may wish to study nuclear engineering
    simply because he enjoys it, he may no more be denied a
    visa because there is no market for a nuclear engineer's
    skills in his homeland than he may be denied a visa for
    the study of philosophy or greek simply because they do
    not lead to a specific vocation.
     
    9 FAM 41.61 N5.4  Availability of Collateral Academic
    Education in the Applicant's Homeland
    (ct:visa-706;   02-17-2005)
    The fact that education or training similar to that which
    the applicant plans to undertake is apparently available
    in the home country is not in itself a basis for refusing
    a student visa.  An applicant may legitimately seek to
    study in the United States for various reasons, including
    a higher standard of education or training.  Furthermore,
    the desired education or training in the applicant's
    homeland may be only theoretically available; openings in
    local schools and institutions may be already filled or
    reserved for others.
     
    9.  Conclusion:  Student visa applications must be
    adjudicated in the proper context, a long view.  You, as
    Consular officers, must assess the residence abroad
    requirement focusing on whether the applicant intends at
    the time of applying for the visa to abandon his or her
    residence abroad.  In evaluating this intent, relatively
    little weight can be given to the traditional "ties" that
    are more useful in adjudicating applications  for B visas.
    Please seek advisory assistance with the advisory opinions
    division if any questions arise.
     
    10.  Minimize considered.
     
    RICE
    BT
    #0015
     
     
     
     
     
     
     
    NNNN

    UNCLASSIFIED   STATE   00180015