Install SML Compiler on Ubuntu

Posted on March 04, 2010

Here is a short tip if someone would like to install SML Compiler on Ubuntu. Standard ML of New Jersey interactive compiler SML/NJ is an implementation of the Standard ML programming language. Standard ML has many features, including type safety, polymorphism, algebraic data types with pattern matching, higher-order functions, and a sophisticated module system. It [...]

VirtualHost browser cache

Posted on August 10, 2008

Setting up a virtual host on PC, Mac or Linux isn’t difficult, but the browser cache problem drives me crazy. Apart from editing the /etc/hosts mappings and httpd.conf, you need to restart both Apache and browser. Refreshing the browser(Firefox) doesn’t clean the cache, so the result will be always add /xampp/index.php at the end of [...]

15 Years Later, It’s Time for Wine?

Posted on June 19, 2008

After 15 years’ development of Wine, we’ve been through many test and beta versions. Finally, a stable Wine is available to all the users. Wine is an open source implementation of the Windows application programming interface (API) on top of X, OpenGL and Unix that allows Windows applications to run on other operating systems, including [...]

Install JDK5 on Ubuntu/Kubuntu 6.06

Posted on September 17, 2006

Ubuntu 6.06 Sun Java5: Install it from the Applications -> Add/Remove… menu, or install the sun-java5-jdk package. Blackdown Java2 1.4 packages: Install the j2re1.4 package, available in the multiverse repositories. Install it from the Applications -> Add/Remove… menu, or install the j2re1.4 package. Kubuntu 6.06 Sun Java5: Load up Konsole, and type: sudo apt-get install [...]

关于Linux分区

Posted on August 08, 2006

安装ubuntu / Kubuntu的时候可以选择有程序自己分区或者自定义分区。一般来说Linux的分区可以有以下几个: /boot 操作系统启动文件分区,一般分配大小在250MB-500MB左右 /usr 操作系存放软件的地方 /bin 存放标准系统实用程序 /home 是用户的home目录所在地,多用户需要分配这个分区。比如用户andrew的目录会 被分配在 /home/andrew下面,而jay的目录会被分在/home/jay /tmp 用来存放一些临时文件的分区。 /var/log 系统日志记录分区,建立这个分区,即使日志文件出现了问题,也不会影响到操 作系统的主分区 /srv 服务器启动的数据存放在这里 /opt 大程序,可选择安装的程序存放在这里 / 根目录 /opt分区易于管理程序(备份LumaQQ为例): 重装linux的时候,选择自定义分区时不用格式化/opt分区,先备份好XXX/lumaqq文件夹,重装系统后,把lumaqq文件夹放回到XXX目录,配好java环境输入命令: $ sudo ln -s /opt/LumaQQ /usr/bin/lumaqq * ln – make new links to existing files 分区的顺序: 没有必要完全按照这个顺序,按照分区用途和硬盘结构来说,越靠近外边的效率越高,比如说/boot和swap是系统读取数据最平凡的分区,建议的顺序是: /boot -> SWAP -> /home -> /var/log -> /tmp -> /srv -> [...]