Display LaTeX Math on Drupal with MathJax

Posted on: Mon, 07/18/2011 - 21:19 By: Huahai

MathJax seems to be the emerging standard for displaying math on the Web at this moment. It is supported by American Mathematical Society and American Physical Society, and has already been adopted by major math related discussion venues such as Physics Forums and Stack Exchange. MathJax displays math using CSS and Web fonts instead of images, so the quality is very high and is resize-friendly. Below are some examples:

Inline math: the geometric product $\boldsymbol{uv}$ of vectors $\boldsymbol{u}$ and $\boldsymbol{v}$ is $\boldsymbol{u}\cdot\boldsymbol{v} + \boldsymbol{u}\wedge\boldsymbol{v}$, where $\boldsymbol{u}\cdot\boldsymbol{v}$ is the inner product and $\boldsymbol{u}\wedge\boldsymbol{v}$ is the outer product.

Upgrade Drupal with Almost Zero Down Time

Posted on: Sat, 07/16/2011 - 09:17 By: Huahai

This site was setup in 2007 with Drupal 5, and it has not been upgraded until today. I did not feel the need to upgrade since this is just a personal blog. A few days ago I wanted to install a module, but Drupal version 6 is required, so I thought it's finally the time to upgrade Drupal. This Drupal upgrade tutorial suggests to first take down the site to upgrade, but I do not like that. It turns out that more than a few days of work are required to bring back a fully functional upgraded site, so taking the site down to upgrade is not a good idea. Below is what I did to upgrade this site from version 5.3 to 6.22 with almost zero down time (well, maybe a few seconds, I didn't time it).

3 Time-Saving Tools for Busy Professionals

Posted on: Sat, 07/16/2011 - 09:06 By: yunyao

As a busy professional, I am consistently looking for ways to save time. Below are 3 time-saving tools that I have found most useful.

1. Chore Buster

With two busy professionals in the same household, dividing chores around the house can be tricky. Dividing chores in a fixed way is one solution. But one can quickly get bored of doing the same thing everyday.

How to Share Mouse and Keyboard across Machines

Posted on: Mon, 07/11/2011 - 01:45 By: yunyao

If you have multiple machines but only one set of mouse and keyboard, then you must check out this neat little tool called Synergy. It allows you to seamlessly share mouse and keyboard across machines. It even allows you to copy and paste text across machines.

Fix Drupal Search

Posted on: Sun, 07/10/2011 - 20:18 By: Huahai

Today I tried to search "clojure" using the search box at the top right corner, but could not find anything. I know I wrote a few posts on Clojure recently, so there must be something wrong with the search functionality here. This is a Drupal site, and this should be an easy fix. Indeed, I quickly figured out the problem and solved it.Here is what Idid.

Review on Hex Bug as Cat Toy

Posted on: Sun, 07/10/2011 - 07:04 By: yunyao

I am consistantly looking for new ways to entertain the cats, as they get bored with their toys very quickly. One new toy I have recently bought for them is Hex Ant.

Review of The Refined Feline Lotus Cat Tower

Posted on: Mon, 07/04/2011 - 10:06 By: yunyao

The old cat tree of Mayori and Tom were bought nearly 4 years ago and has started to show its age. I have been shopping for a new cat tree for a while now. I need something that is nicer than the typical carpet covered cat tree and goes well with the rest of the house. At the same time, I want to get something that Mayori and Tom can really enjoy. Unfortunately, there is very limited number of such choices on the market. One of them is Refined Feline Lotus Cat Tower

Cat with Evil Eyes

Posted on: Mon, 07/04/2011 - 08:58 By: yunyao

Mayori is mostly a very sweet girl. However, she can have evil eyes as well. Look at the follow photo when she wants to hunt to the toy mouse. She certainly looks more like a leopard than a domestic cat!

cat with evil eyes

Cat Boxing

Posted on: Mon, 07/04/2011 - 08:44 By: yunyao

Mayori and Tom grow up together ever since they were still little kittens in the shelter. However, they still love to fight, especially for the best spot for window-watching the outside.

cat fight

Cat with Impeccable Taste

Posted on: Mon, 07/04/2011 - 08:17 By: yunyao

As a cat, Mayori has impeccable taste, as represented by her favorite furniture in the house --- a Bertoia Diamond Lounge chair.

It is certainly a modern classic and a piece of highly functional cat furniture as well – Mayori can attack Tom easily from all different angels and only need to defend her from one angel. What a smart cat!

cat on a beroia Diamond Chair

Cat Drinking from Wine Glass

Posted on: Mon, 07/04/2011 - 07:44 By: yunyao

Mayori loves drinking fresh-served water, especially from a wine glass. Obviously she believes that is the right way to drink water for a cat princess.

cat drink from wine glass

Cat in a Drawer

Posted on: Mon, 07/04/2011 - 07:36 By: yunyao

Mayori loves to play hide-and-seek with us. The top drawer of our dresser is now her new hiding place.

 

cat in a drawer.

Cat Pizza Delivery

Posted on: Mon, 07/04/2011 - 07:31 By: yunyao

Cat in a pizza box?

Either Mayori believes that she tastes better than the fresh baked version or that she believe that she needs a new bed smelled like fresh baked pizza. Either way she obviously enjoys the pizza box.