Monday, October 22, 2007

A review of Thomas L. Friedman’s book “The World Is Flat”

The world is still rugged

The world was thought of as round ever since Columbus discovered the new continent until the shocking claim made by Thomas Friedman in 2005. And all of a sudden, all the governors and entrepreneurs were reading this New York Times best seller. According to Thomas, we are experiencing a Globalization 3.0, which “shrink the world from a small one to a tiny one and flatten the playground at the same time”. Globalization nowadays, comparing to the previous two “versions”, is driven by a more diverse force and empower individuals from all over the flat world.

This transformation can be better explained by Bill Gates. Thirty years ago, he tells Friedman, “If you had to choose between being born a genius in Mumbai or Shanghai and an average person in Poughkeepsie, you would have chosen Poughkeepsie because your chances of living a prosperous and fulfilled life were much greater there”. ''Now,'' Gates says, ''I would rather be a genius born in China than an average guy born in Poughkeepsie.''

It is really stimulating to see a flat world at first glance: In this world small and less developed countries like China and India can wrestle with western countries like United States; Individuals are essential participants of global cooperation and competence and are able to cast more and more influence on global economy. Thomas concluded the ten major bulldozers of flattening the world: The fall of the Berlin Wall, Netscape's initial public offering, workflow software, Uploading, outsourcing,offshoring, supply chaining, insourcing, In-forming and the steroids. Most of them are products or phenomenon in Internet age. The way he organized the book is like a trademark: We travel with him, meet bunches of people, study various cases. All this make our reading experience pretty interesting.

The occupation of Thomas is a journalist, thanks to which he became a frequent world traveler. Bad news is that the nature of his job is to grab a few points which have the potential of making a headline and ignore the prevailing facts. As a technology determinist, Thomas judges the future of our planet simply from the perspective of science and technology, which is not justifiable though understandable. Arabian world would probably disagree when Thomas claim that the reason why the Arabian world is paranoid and less developed is due to the less popularity of Internet. Beside technology, there are still many barriers lying between the western world and the Arabian world: The fundamental opposition of ideology and religion, the contention on natural resources (esp. oil), the intervention of supremacy and the historical problems of colonialism, to name a few. I really want to agree with Mr. Friedman on his “technology flattening the world” theory since the world is so pure and fair from that point of view. But unfortunately, it’s not.

Thomas also mentioned two new-rich of the poor brotherhood of developing countries: China and India. I happened to live in China for twenty years. And I can barely recognize the China I know from the book. For someone who has never been to China and India, the impression they get from the book will probably be these this two countries will catch up with America in the near future. The fact is, there is a huge economic gap between the coast and the rural area of China or India. Big cities Shanghai, Beijing or New Delhi is on the same altitude of the world while there are still many places in China or India that are below sea level. How can a place being flattened if it cannot provide natural resource, labor or anything else useful for the technology world? Even if China and India do realize the dream of Mr. Friedman, it can’t be from simply adopting new technology. The harder part for populous countries is reforming the system. One example would be the rapid economic growth in China for the last 20 years. China wasn’t part of the globalization until Xiaoping Deng initiated “the policy of reform and opening” in 1980s.

Another novel point of the book is the so-called “The Dell theory of conflict prevention”. Thomas claimed that the strong economic tie between different countries would be a deterrent to war. However, most wars and conflicts in the world are caused by culture (Middle East) and natural resources (Iraq war) or simply politics (overthrown of a government). World supply chain seems to have little to do with all of these factors.

Generally speaking, the world is flattening from the technological point of view. But Thomas Friedman ignores the fact that there are still many other factors which serves as barriers between countries or different areas. The rich experience of the author will surely trigger the thinking of readers anyhow, which is more important than the right or wrong of the content. One thing we are sure is that the wave of globalization is unstoppable and involves us all. So get prepared!

Sunday, October 21, 2007

Ubuntu下的wine优化

ZZ自 廖宇雷的部落格

默认安装的 wine 是不大好用的,所以需要优化一下。

首先安装 0.9.36 或更新版本的 wine(在命令行下面输入 wine –version 查看版本号),这样可以避免和 scim 输入法冲突、以及 GBK 字体导致的运行缓慢问题。如果没有更新版本,那么可以自己编译一个,运行速度比默认编译的还快一点。

接下来用 ies4linux(ies4linux 官方网站) 自动安装 IE6。

之所以要使用 ies4linux 来配置 wine 环境,是因为 ies4linux 会附带安装一些基本组件和字体。这样在使用其他 Windows 程序时可以少不少麻烦。

不过 ies4linux 把 wine 配置文件放到 ~/.ies4linux 了,所以需要按照下列操作修改一下:

cd ~
rm -fr .wine
mv .ies4linux .wine
cd .wine
mv ie6/* .
rmdir ie6

这样修改后,ies4linux 在桌面上创建的 ie6 快捷方式就不能启动 ie 了,还需要修改一下 ~/bin/ie6 这个启动脚本:

cd ~/bin
rm ie6
ln -s ~/.wine/bin/ie6 ie6
gedit ie6
用搜索替换功能,将 .ies4linux/ie6 提换为 .wine,保存退出。

上面的工作做好后,从桌面启动一下 ie6,如果没问题,说明配置成功。
接下来就是设置字体,让 Wine 跑的 Windows 程序看起来好看些(参考:http://forum.openrays.org/simple/index.php?t4309.html)。

步骤:

  1. 初始设置
  2. 运行 winecfg,把模拟的 Windows 系统设置为 Windows XP 或者 Windows 2000。

  3. 准备字体
  4. 为了让 Windows 应用程序看上去更美观,所以需要 Windows 下面的字体。

    由于我已经将 simsun.ttc 复制到 /usr/share/fonts/windows/ 目录中了。所以我只需要在 ~/.wine/drive_c/windows/fonts/ 目录中为 simsun.ttc 创建一个符号连接:

    cd ~/.wine/drive_c/windows/fonts
    ln -s /usr/share/fonts/windows/simsun.ttc simsun.ttc
    ln -s /usr/share/fonts/windows/simsun.ttc simfang.ttc

    创建一个 simfang.ttc 是许多 Windows 应用默认使用 simfang.ttc 字体。

  5. 修改 ~/.wine/system.reg
  6. 装好字体后,还要修改一下 Wine 的注册表设置,指定与字体相关的设置:

    gedit ~/.wine/system.reg

    (一定要使用 gedit 或其他支持 gb2312/utf8 编码的编辑器修改这些文件,否则文件中的中文可能变乱码)

    搜索: LogPixels
    找到的行应该是:[System\\CurrentControlSet\\Hardware Profiles\\Current\\Software\\Fonts]
    将其中的:
    “LogPixels”=dword:00000060

    改为:
    “LogPixels”=dword:00000070

    搜索: FontSubstitutes
    找到的行应该是:[Software\\Microsoft\\Windows NT\\CurrentVersion\\FontSubstitutes]
    将其中的:
    “MS Shell Dlg”=”Tahoma”
    “MS Shell Dlg 2″=”Tahoma”

    改为:
    “MS Shell Dlg”=”SimSun”
    “MS Shell Dlg 2″=”SimSun”

  7. 修改 ~/.wine/drive_c/windows/win.ini
  8. gedit ~/.wine/drive_c/windows/win.ini
    在文件末尾加入:

    [Desktop]
    menufontsize=13
    messagefontsize=13
    statusfontsize=13
    IconTitleSize=13

贴效果图几张,看上去还不错,就是有点慢。特别是用 ie 打开很多 js 的页面时,cpu 占用率一直 100%。

wine-ie6-01.png wine-ie6-02.png
wine-ie6-03.png wine-editplus-01.png
wine-dbdesigner4-01.png wine-mysqlman-01.png

Friday, October 19, 2007

A complete replacement software list of Ubuntu

Previz:
Storyboard Lite http://www.zebradevelopment.com/

2D Animation:
US Animation http://www.toonboom.com/products/USAnimation/
MOHO http://www.lostmarble.com/moho/
Synfig Studio (OSS) http://www.synfig.com/
KToon (OSS) http://ktoon.toonka.com/

3D Animation:
Maya http://www.alias.com/eng/index_flash.shtml
XSI http://www.softimage.com/home/
Houdini http://www.sidefx.com/
Blender (OSS) http://www.blender3d.com/
Cinema4D (Works on Wine) http://www.maxoncomputer.com/
Lightwave (Works on Wine) http://www.newtek.com/

Lip-sync for animation:
Papagayo (OSS) http://www.lostmarble.com/papagayo/index.shtml

Camera Tracking and Match Moving:
Boujou http://www.2d3.com/
3DEqualizer http://www.3dequalizer.com
Mokey/Monet http://www.imagineersystems.com/
Matchmover Pro http://www.realviz.com/
Maya Live (Included with Maya Unlimited - See Maya link above).

Compositors:
Shake http://www.apple.com/shake/
Flint http://usa.autodesk.com/
Nuke http://www.d2software.com/index.html
Halo http://www.sidefx.com/
Digital Fusion (In developement) http://www.eyeonline.com/
After Effects (Works on Wine) http://www.adobe.com/

Render Software:
Mental Ray http://www.mentalimages.com/
Renderman https://renderman.pixar.com/
Pixie (OSS) http://www.cs.berkeley.edu/~okan/Pixie/pixie.htm
3DElight http://3delight.com/index.htm
Open Render (OSS) http://openrender.sourceforge.net/
Aqsis (OSS) http://www.aqsis.com/
Radiance (OSS) http://radsite.lbl.gov/radiance/
Gelato Film Renderer http://film.nvidia.com/page/home.html
PovRay (OSS) http://www.povray.org/
Air http://www.sitexgraphics.com/
Yafray (OSS) http://www.yafray.org/
RenderDocC http://www.dotcsw.com/rdc.html
Discreet Burn http://usa.autodesk.com/
Turtle http://www.illuminatelabs.com/
Qube! http://www.pipelinefx.com/
Muster http://www.vvertex.com/
Rush http://seriss.com/rush/
GRender (OSS) http://grender.sourceforge.net/
DrQueue (OSS) http://drqueue.org/
PovMosix (OSS) http://povmosix.sourceforge.net/

Online Render Services:
Render Rocket http://www.renderrocket.com/
ResPower: http://www.respower.com/
RenderNOW http://www.rendernow.com/
EFX http://www.efxone.com/renderfarm1.htm
Rendercore http://www.rendercore.com/
Render-it http://render-it.co.uk/

NLE Software:
Smoke http://usa.autodesk.com/
Piranha HD http://www.ifx.com/piranha/
Cinelerra (OSS) http://heroinewarrior.com/cinelerra.php3
Jahshaka (OSS - In development) http://www.jahshaka.org/index.php
MainActor http://www.mainconcept.com/
PiTiVi (OSS - In developement) http://www.pitivi.org/
KDEnLive (OSS - In development) http://kdenlive.sourceforge.net/
LiVES (OSS - In development) http://www.xs4all.nl/~salsaman/lives/

Online NLE Services:
Rainmaker http://www.rainmaker.com/
Eyespost http://www.eyespost.com/
Post Producers http://www.ppd.ca/
Imarion http://www.imarion.com/

Audio Editing/Mixing:
Wired (OSS) http://bloodshed.net/wired/
Ardour (OSS) http://ardour.org/
Rosegarden (OSS) http://www.rosegardenmusic.com/
LMMS (OSS) http://lmms.sourceforge.net/

Paint/Image Editing:
GIMP (OSS) http://gimp.org/
Cinepaint (OSS) http://cinepaint.sourceforge.net/
IFX Amazon Paint http://www.ifx.com/amazon/
Adobe Photoshop 7 (Works on Wine)
Photogenics http://www.idruna.com/index.html
Pixologic ZBrush (Works on Wine) http://pixologic.com/index.cgi
BodyPaint 3D (Works on Wine) http://www.maxoncomputer.com/
Pixel http://www.kanzelsberger.com/pixel/
Panorama Tools (OSS) http://panotools.sourceforge.net/

Film Color Correction/Mastering:
Da Vinci http://www.davsys.com/
Speedgrade http://www.speedgrade.com/
Lustre http://www4.discreet.com/lustre/
Film Master http://www.digitalvision.se/
Data Conform http://www.digitalvision.se/

Video/Audio Conversion:
Konverter (OSS) http://www.kraus.tk/projects/konverter/
AudioKonverter (OSS) http://www.kde-apps.org/content/show.php?content=12608
AudioMove (OSS) http://www.lcscanada.com/audiomove/index.html

Video Playback:
Framecycler http://www.iridas.com/framecycler/
MPlayer (OSS) http://www.mplayerhq.hu
Xine (OSS) http://xinehq.de/
Helix (OSS) https://player.helixcommunity.org/
RealPlayer http://www.realnetworks.com/
MoviX (OSS) http://movix.sourceforge.net/

Vector Drawing/Illustration:
Inkscape (OSS) http://www.inkscape.org/
Sodipodi (OSS) http://www.sodipodi.com/
Skencil (OSS) http://www.nongnu.org/skencil/index.html
Adobe Illustrator (Works on Wine)

Web Design:
WireFusion http://www.demicron.com/wirefusion/index.html
Macromedia FlashMX (Works on Wine)
Flash For Linux (OSS) http://f4l.sourceforge.net/
Macromedia DreamweaverMX (Works on Wine)
Macromedia StudioMX (Works on Wine)
NVU (OSS) http://nvu.com/index.html
Quanta (OSS) http://quanta.sourceforge.net/
Bluefish (OSS) http://bluefish.openoffice.nl/

CAD:
VariCAD http://www.varicad.com/
Cycas http://www.cycas.de/
AutoCAD http://www.autodesk.com/
gCAD3D (OSS) http://www.cadcam.co.at/freiter/gCAD3D.htm

Asset Management:
NXN Alienbrain http://www.alienbrain.com/
File Maker Pro http://www.filemaker.com/
Discreet Backdraft http://www4.discreet.com/backdraft/
Gwenview (OSS) http://gwenview.sourceforge.net/
Showimg (OSS) http://www.jalix.org/projects/showimg/
KPhotoBook (OSS) http://kphotobook.sourceforge.net/
Rushplay http://www.heuris.com/hollywood/AboutRushplay.htm
F-Spot (OSS - Like iPhoto) http://www.gnome.org/projects/f-spot/

Cluster Software:
Maui http://supercluster.org/maui/
Open Mosix (OSS) http://openmosix.sourceforge.net/
OpenPBS http://www.openpbs.org/
Platform LSF http://www.platform.com/products/LSF/
OpenSSI (OSS) http://openssi.org/

Archiving/Backup:
Konserve (OSS) http://konserve.sourceforge.net/
KDar (OSS) http://kdar.sourceforge.net/
Dar (OSS) http://dar.linux.free.fr/
Amanda (OSS) http://www.amanda.org/
KArchiver (OSS) http://perso.wanadoo.fr/coquelle/karchiver/
K3B (OSS) http://www.k3b.org/
X-CD-Roast (OSS) http://www.xcdroast.org/
Drive Image http://www.drive-image.com/
Burt (OSS) http://www.cs.wisc.edu/~jmelski/burt/
Storix http://www.storix.com/
GnomeBaker (OSS) http://gnomebaker.sourceforge.net/v2/

Conference/Chat Messengers:
Kopete (OSS - video) http://kopete.kde.org/
GnomeMeeting (OSS - video/voice) http://www.gnomemeeting.org/
aMSN (OSS - video) http://amsn.sourceforge.net/
GAIM (OSS) http://gaim.sourceforge.net/
Skype (OSS - voice) http://www.skype.com/
DigiChat http://digichat.com/
Gizmo http://www.gizmoproject.com/
OpenWengo (OSS - video/voice) http://www.openwengo.com/

Office Productivity:
Evolution (OSS - Mail) http://www.gnome.org/projects/evolution/
KMail (OSS - Mail) http://kmail.kde.org/
Open Office (OSS) http://www.openoffice.org/
Star Office http://wwws.sun.com/
KDE Kontact Groupware Client (OSS) http://kontact.kde.org/
KOffice (OSS) http://koffice.kde.org/
Gnome Office (OSS) http://www.gnome.org/gnome-office/

Wine Links:
Wine (OSS) http://www.winehq.com/
Wine Tools (OSS) http://www.frankscorner.org/winetools/
CrossOver Office http://www.codeweavers.com
AclereX http://www.aclerex.com/
Cedega http://www.transgaming.com/

Help Docs:
Wine How To http://www.frankscorner.org
eLibrary http://elibrary.fultus.com/technical/index.jsp
Linux How To & Manuals http://www.linuxforum.com/
The Linux Documentation Project http://www.tldp.org/index.html
Linux Wacom Project: http://linuxwacom.sourceforge.net/

PDF Virtual Printer

在windows下经常使用pdffactory或者MS Office自带的PDF打印机把一些网页文档等打印成pdf格式。在Linux下很多地方也需要这样一个工具,尤其是linux下的一些文档和 windows下不能兼容时,把资料打印为pdf格式发给windows用户是很不错的选择。下面就是ubuntu中虚拟打印机的安装过程(我也是参考了 Hiweed网站上的一些内容搞定的,感谢开源的好处):
1. 安装cups 和cups-pdf,其中cups-pdf是虚拟打印的主要模块:
sudo apt-get install cups-pdf
2. cups-pdf 的 backend 要求 root 权限,所以设置一下权限:
sudo chmod 4755 /usr/lib/cups/backend/cups-pdf
3.通过 系统-系统管理-正在打印 启动打印机配置向导
4.右键 “新建打印机” 图表-添加 开始添加打印机
5. 使用检测到的打印机 -选择 PDF Printer-前进
6. 制造商 选择 Gneric -PostScript Printer -前进
7. 添入打印机的名称,如:PDFCreater-应用

Use SCIM Chinese input under Ubuntu

首先执行

sudo apt-get install im-switch libapt-ptk-perl
sudo apt-get install scim-pinyin
sudo apt-get install scim-tables-zh
sudo gedit /etc/X11/xinit/xinput.d/default

加入
XIM=SCIM
XIM_PROGRAM=/usr/bin/scim
XIM_ARGS="-d"
GTK_IM_MODULE=scim
QT_IM_MODULE=scim
DEPENDS="scim,scim-gtk2-immodule | scim-qtimm"
重启Gnome

Linux 下压缩命令使用指南

///// 转 superstar_gu 的百度空间
//http://hi.baidu.com/superstar_gu/blog/item/2772124e3e7f150bb3de0535.html

.tar
解包:tar xvf FileName.tar
打包:tar cvf FileName.tar DirName
(注:tar是打包,不是压缩!)
---------------------------------------------
.gz
解压1:gunzip FileName.gz
解压2:gzip -d FileName.gz
压缩:gzip FileName
.tar.gz 和 .tgz
解压:tar zxvf FileName.tar.gz
压缩:tar zcvf FileName.tar.gz DirName
---------------------------------------------
.bz2
解压1:bzip2 -d FileName.bz2
解压2:bunzip2 FileName.bz2
压缩: bzip2 -z FileName
.tar.bz2
解压:tar jxvf FileName.tar.bz2
压缩:tar jcvf FileName.tar.bz2 DirName
---------------------------------------------
.bz
解压1:bzip2 -d FileName.bz
解压2:bunzip2 FileName.bz
压缩:未知
.tar.bz
解压:tar jxvf FileName.tar.bz
压缩:未知
---------------------------------------------
.Z
解压:uncompress FileName.Z
压缩:compress FileName
.tar.Z
解压:tar Zxvf FileName.tar.Z
压缩:tar Zcvf FileName.tar.Z DirName
---------------------------------------------
.zip
解压:unzip FileName.zip
压缩:zip FileName.zip DirName
---------------------------------------------
.rar
解压:rar x FileName.rar
压缩:rar a FileName.rar DirName

rar请到:http://www.rarsoft.com/download.htm 下载!
解压后请将rar_static拷贝到/usr/bin目录(其他由$PATH环境变量指定的目录也可以):
[root@www2 tmp]# cp rar_static /usr/bin/rar

---------------------------------------------
.lha
解压:lha -e FileName.lha
压缩:lha -a FileName.lha FileName

lha请到:http://www.infor.kanazawa-it.ac.jp/~ishii/lhaunix/下载!
>解压后请将lha拷贝到/usr/bin目录(其他由$PATH环境变量指定的目录也可以):
[root@www2 tmp]# cp lha /usr/bin/

---------------------------------------------
.rpm
解包:rpm2cpio FileName.rpm | cpio -div
---------------------------------------------
.deb
解包:ar p FileName.deb data.tar.gz | tar zxf -
---------------------------------------------
.tar .tgz .tar.gz .tar.Z .tar.bz .tar.bz2 .zip .cpio .rpm .deb .slp .arj .rar .ace .lha .lzh .lzx .lzs .arc .sda .sfx .lnx .zoo .cab .kar .cpt .pit .sit .sea
解压:sEx x FileName.*
压缩:sEx a FileName.* FileName

sEx只是调用相关程序,本身并无压缩、解压功能,请注意!
sEx请到: http://sourceforge.net/projects/sex下载!
解压后请将sEx拷贝到/usr/bin目录(其他由$PATH环境变量指定的目录也可以):
[root@www2 tmp]# cp sEx /usr/bin/



参考文献:Linux 文件压缩工具指南