Entries Tagged 'Mac' ↓

This app is cool

Lightroom from Adobe. Only Mac version is available now.

UPDATE: A developer’s account of this app.

Buddies, forget the software names, install them all

SoftwareFor.org now offer download for “Software for Starving Students (SSS)” which offer bundels of open source softwares on both Windows and Mac OS X platforms. Great.

Daily MYSQL database backup script for Mac OS X

!/bin/sh

date=date "+%m%d%y" /usr/local/mysql/bin/mysqldump --all-databases | gzip > /PATH2Folder/backup-$date.sql.gz

Graphing Taichi using equation

taichi

taiqi_equation

终于有人解决Firefox在Mac中文不掉字

Mac不掉字版Firefox中文化簡單教學!

让Mac OS X 中的 mlterm和其他 xterm 正确显示 unicode 编码的中文

X Window 下最烦人的就是字体配置了,我自己装了个中文unifont解决问题。

  1. 安装中文字体

下载炎黄-Unifont点阵字体,然后安装:

cd ~/
mkdir .fonts
cp /path/to/yhunifont.bdf ~/.fonts
mkfontdir

add this line to your .xinitrc, make sure it is before xterm command lines

xset +fp ~/.fonts

  1. mlterm 配置
  • ~/.mlterm/main

    bg_color=black
    fg_color=white
    geometry=80x24
    receive_string_via_ucs = true
    logsize = 1024
    scrollbar_mode = right
    scrollbar_view_name = sample
    mod_meta_mode = esc
    fontsize = 13
    encoding = UTF-8
    use_multi_column_char = true
    col_size_of_width_a=1
    use_variable_column_width = false

  • ~/.mlterm/font

    ISO8859-1 = -wqy-yhunifont-medium-r-normal--16-160-75-75-c-80-iso10646-1;
    ISO10646_UCS4_1 = -wqy-yhunifont-medium-r-normal--16-160-75-75-c-80-iso10646-1;
    ISO10646_UCS4_1_BIWIDTH = -wqy-yhunifont-medium-r-normal--16-160-75-75-c-80-iso10646-1;   

最后的效果截图:

mlterm 炎黄-Unifont点阵字体

Use "Open" command in Dired Mode

Mac OS X offers “open” command using which you can open every file by default associated application. That is typing in “open foo.pdf” in terminals will make Preview.app open foo.pdf. Add following lines to your .emacs or ~/Library/Preferences/Aquamacs Emacs/Preferences.el will let you bind “open” command to “o”, the key.

(define-key dired-mode-map “o” ‘dired-open-mac) (defun dired-open-mac () (interactive) (let ((file-name (dired-get-file-for-visit))) (if (file-exists-p file-name) (shell-command (concat”open ” file-name nil )))))

Modified Chunyu’s and Yenlung’s codes (both links in Chinese).

I added this to Emacs Wiki: Customize Aquamacs.

Mac OS X 中 Emacs Dired 模式下快速打开文档

Mac OS X 中有个很棒的命令 “open”,在命令行中绝对是个利器。我把别人的代码做了些很粗劣的更改使得在Emacs 的 Dired 模式下按 “o” 键就可以用 ”open” 命令打开文件。

(define-key dired-mode-map "o" 'wenzhang-dired-open-mac)
(defun wenzhang-dired-open-mac ()
    (interactive)
    (let ((file-name (dired-get-file-for-visit)))
      (if (file-exists-p file-name)
          (shell-command (concat"open " file-name nil )))))

参考了ChunyuEmacs 快速参考 Dired 模式YenlunMac專屬的emacs秘技

XeTeX 与 Emacs Notes Mode

Emacs rules.

我用 Emacs 写 Wiki做计划,也用它作笔记。当然了,偶尔也用它玩俄罗斯方块。最近用 Notes Mode 作笔记时有个麻烦,就是 notes mode 不支持生成中文的PDF文件。可 Mac 上却有个如此方便XeTeX 来用,不能看中文实在不爽。我就把生成PDF的脚本文件-parsenotes 作了些简单修改来满足中文需求。下面就是我修改后的 parsenotes(你也可以点击这里下载)。

Continue reading →

Fortune-zh on Mac OS X available on Apple's Mac OS X downloads

Here is the link.