Posted by jay
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 is especially well-suited for
writing compilers and other language processors.
This package includes the interactive compiler (sml), the compilation
manager (CM), and some essential libraries. It is a “working”
version, but believed to be stable.
Install this package if you want to program in SML.
Type in command line:
sudo apt-get install smlnj
The sml will be installed under /usr/bin/sml
Posted by jay
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 the virtual host name.
Posted by jay
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 Linux and Mac OS, without the need to run Windows as well.
Of course, open source is free for any users. So they can be build and compiled on your operating system. I used previous Wine beta build on a Linux(Ubuntu 6.*), I had a few troubles:
- Fonts was an issue, MS holds the license for all the Windows fonts. If we want to display the same font as windows shows, we have to copy them from a windows pc to the font folder in Wine file structure.
- Performance. If you run a basic application should encounter no problem, the one trouble is playing games that requires better graphics. You would expect the performance of the graphic card was reduced. (I played Need for Speed, it was pretty slow while on Windows I can set to higher resolution).
- Security. Wine seems to use some crucial .dll(s) in its file structure, you might get some virus that lives on windows, but this should not affect your linux or mac operating system.
My experience was that commercial version(Crossover, developed by CodeWeavers) was decent, however it still had font issue. I was able to run lower versions MS Offic* (i.e. 97, 2000). I encountered a few software crash problem, but the office recover feature worked. (Be careful when you use wine for important tasks, the suggestion is to save your work frequently.) They offered easy setup, however, it lacks of flexibilities comparing to wine.
Well, don’t like Wine? but still want to run windows apps on linux or mac? You may try virtual machines. the most well knwon distributor is Vmware as they ship several versions of Vmwares on varies type of operating system. If you are linux users, they ship the Vmware for free( suppose what we call it open source culture). Vmware Fusion provides free 30 trials. It’s better than Parallel Desktop, a virtual machine solution for Mac, because the new version offers DirectX 9.0(or higher) support.
If you have time and tried things out, I would like to hear about your experience..
Posted by jay
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 sun-java5-jdk
Accept the licence agreement that appears.
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.
Posted by jay
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 -> /opt -> /