You are browsing through cs

Chinese language tips for web design

Friday, May 14th, 2010

Recently I needed to work with some Chinese and we had tons of trouble trying to figure out which fonts to use and how to specify them in CSS. After a lot of detective work and comparing long font lists we found some basic font choices that should work on both PC and Macs that have Chinese language packs active. I want to archive them here just in case I need to reference this ever again since it was PAINFUL…
Some Chinese Website tips:

  1. Specify English fonts first and then the Chinese fonts in your font list. This makes it so English fonts render with your desired fonts then the Chinese fonts pick up the other characters. font-family: futura, arial, Hei, “Microsoft YaHei”, “MS Yahei”, “宋体”, sans-serif;
  2. Standard chinese sans-serifs are: Hei, HeiTi or “Microsoft YaHei”
  3. Standard chinese serifs are: “Fang Song”, or “宋体”
  4. Set a meta tag to display chinese charset: utf-8. <META HTTP-EQUIV=”content-type” CONTENT=”text/html; charset=”utf-8″>

References:

Unix command to find kernel

Saturday, November 17th, 2007

To find the kernel version type into the command prompt:
uname -r

If having problems compiling previously working code, maybe the computer I’m working on is an x86 computer. (like pc 31) Best to switch computers to a regular format. (like pc 1, 10)

learned about rwho, who, write

Friday, November 16th, 2007

After SSH-ing into the campus computers, can look at other users on the system
ssh username@pc10.cs.ucdavis.edu
rwho
// lists all users on the csif machines

who pc 9
// lists all users on pc 9

who
// lists all users on current pc

write person
// must ssh to same computer as person, then writes stuff to their cmd prompt.

Dynamic Painting, Folding

Wednesday, February 28th, 2007


I found this group of artists, Random International that created a paint roller so you can literally print on the wall. Check out the video:
Pixelroller

They also sell instant labeling tape that you just blacken out parts you don’t need to write messages. Not as cool as the pixel roller but it’s still afun idea.

Unrelated, but interesting on a technical level, this program folds a letter on screen depending on the position of your mouse.