浏览模式: 标准 | 列表
全部文章
Records:11112345678910»

Getting away from Globat. Not trustable!

OK, for some reasons, I write this article in English. I bet you Chinese can understand it.

The problem was simple. Globat's servers got down on Feb. 21, because of switch problem. Well, that was not the critical impact.

On Feb 23 afternoon, I found my database got problem, probably database crashed. I talked to their technical support. They told me they were working on it, and needed sometime. I thought it was acceptable. But then, things got much worse.

On Feb 23 evening, the database was still down. Technical support suggested me to issue a ticket. I did. Then, I still hoped it would be better.

On Feb 23 night, I got the first (and the only) response to that ticket. It was said they were taking care my issue.

On Feb 24, they told me they had fixed the problem. But again, my database was still reporting errors. Then, they changed to another word, saying they were trying to fix the problem.

On Feb 25, the problem was still hanging my websites. They were still saying to fix it.

On Feb 26, they told me, hopefully, they would fix the problem by both recovering from previous backup and fixing existing database. I got confused and totally lost my patience.

On Feb 27, I tried use phpMyAdmin to repair tables, and got all tables recovered except one of them. Finally, I got a happy ending by myself. Definitely, they were still "fixing the problem".

As of that time, all my websites have been down for almost a week. Those websites include, snailium.net, blue-dv.net and sdfzlt.cn.

I tried to search "Globat problems" in Google. It seems Globat has problem to deal with customers frequently. I have no more passion on a troublesome web server. Therefore, I temporarily moved to Lunarpages, under xiaoqiangnet.com.

大小: 120.11 K 尺寸: 400 x 240 浏览: 4 次点击打开新窗口浏览全图

Further, I will shut down all my websites on Globat and move them all to a new server, although they are still fixing the problem.

Tags: globat, problem, database, crash | 分类:[自己]无病呻吟 | 评论:0 | Trackbacks:0 | 阅读:242

WD MBWE Hack: nethostfs

Here is HOWTO add nethostfs on Western Digital My Book World Edition. For Chinese version, visit here(中文版).

Prerequisite: Enable SSH on My Book.

Step 1. Download nethostfs v1.5 source code, unpack and compile.

bash
  1. wget http://www.snailium.net/mbwe/nethostfs15src.tar.gz
  2. tar -xzvf nethostfs15src.tar.gz
  3. cd nethostfs15src
  4. make
  5. cp nethostfs /usr/sbin
  6. chmod 755 /usr/sbin/nethostfs
  7. chown root:root /usr/sbin/nethostfs

Step 2. Create shared folder /PSP/ through My Book Storage Manager.

Step 3. Create service script nethostfs under /etc/init.d/.

/etc/init.d/nethostfs
  1. #!/bin/sh
  2. #
  3. # Starts or stops the nethostfs for remote PSP access.
  4.  
  5. PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
  6. NAME="nethostfs"
  7. DESC="Remote PSP access"
  8.  
  9. case "$1" in
  10.   start)
  11.         echo -n "Starting $DESC: $NAME"
  12.         nice -n 10 nethostfs /shares/internal/PSP &
  13.         echo "..."
  14.         ;;
  15.    stop)
  16.         echo -n "Stopping $DESC: $NAME"
  17.         killall nethostfs
  18.         echo "."
  19.         ;;
  20.    *)
  21.         N=/etc/init.d/$NAME
  22.         echo "Usage: $N {start|stop}" >&2
  23.         exit 2
  24. esac
  25.  
  26. exit 0
  27.  

Step 4. Make start/stop link under /etc/init.d/.

bash
  1. cd /etc/init.d/
  2. ln -s /etc/init.d/nethostfs S91nethostfs
  3. ln -s /etc/init.d/nethostfs K09nethostfs

Step 5. Reboot My Book World Edition


Note 1 - nice -n 10 is used in service script to adjust process priorities, in order to avoid nethostfs consumes too much CPU resource.
Note 2 - This works perfect for iRshell, as well as PPA (which uses iRshell's WiFi code)

Tags: mybook, nethostfs, service | 分类:[原创]其他技术 | 评论:0 | Trackbacks:0 | 阅读:464

WD MBWE 改造 — nethostfs

Western Digital My Book 所使用的 BusyBox 可塑性还是很高的。

想到正好在用 PPA 在 PSP 上通过 WiFi 看电影,干脆把 nethostfs 服务也集成到 My Book 里面好了。(English Version

前期准备:在 My Book 上加装 SSH 服务

第一步:按照下面的方法下载 nethostfs v1.5 源代码,解包,编译。

bash
  1. wget http://www.snailium.net/mbwe/nethostfs15src.tar.gz
  2. tar -xzvf nethostfs15src.tar.gz
  3. cd nethostfs15src
  4. make
  5. cp nethostfs /usr/sbin
  6. chmod 755 /usr/sbin/nethostfs
  7. chown root:root /usr/sbin/nethostfs

第二步:通过 My Book 共享储存管理器建立 PSP 共享文件夹。

第三步:在 /etc/init.d/ 下建立 nethostfs 服务脚本。

/etc/init.d/nethostfs
  1. #!/bin/sh
  2. #
  3. # Starts or stops the nethostfs for remote PSP access.
  4.  
  5. PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
  6. NAME="nethostfs"
  7. DESC="Remote PSP access"
  8.  
  9. case "$1" in
  10.   start)
  11.         echo -n "Starting $DESC: $NAME"
  12.         nice -n 10 nethostfs /shares/internal/PSP &
  13.         echo "..."
  14.         ;;
  15.    stop)
  16.         echo -n "Stopping $DESC: $NAME"
  17.         killall nethostfs
  18.         echo "."
  19.         ;;
  20.    *)
  21.         N=/etc/init.d/$NAME
  22.         echo "Usage: $N {start|stop}" >&2
  23.         exit 2
  24. esac
  25.  
  26. exit 0
  27.  

第四步:在 /etc/init.d/ 下建立相关启动/关闭服务链接。

bash
  1. cd /etc/init.d/
  2. ln -s /etc/init.d/nethostfs S91nethostfs
  3. ln -s /etc/init.d/nethostfs K09nethostfs

第五步:重启 My Book。


注意 1:在服务脚本中,使用了 nice -n 10 调整进程的优先级,防止 nethostfs 占用过多资源。
注意 2:此方法也适用于 iRshell。(PPA 的 WiFi 部分使用的是 iRshell 的源代码)

Tags: mybook, nethostfs, service | 分类:[原创]其他技术 | 评论:0 | Trackbacks:0 | 阅读:430

PS2游戏改造 Iteration 1

闲来无事,改个PS2游戏玩玩。最近正在玩《无双·远吕智》,就拿它开刀。最终目标是替换全媒体文件。第一回只完成了替换片头。

阅读全文...

Tags: ps2, 游戏, 改造 | 分类:[原创]其他技术 | 评论:0 | Trackbacks:0 | 阅读:462

Facebook,强大的背后是无耻

今天喝酒的时候朋友提到了Facebook的强大,很多朋友都可以在Facebook上找到。后来自己申请了一个帐号研究了一下,发现Facebook不过是美国版的某“白领网”罢了。本文大略分析了一下Facebook是怎样工作的。

阅读全文...

Tags: facebook, 社交, 分析 | 分类:[原创]其他技术 | 评论:0 | Trackbacks:0 | 阅读:450

名字的语言

名字,只是一个代号而已,为什么要有语言的区分?就好比我大名叫王冠男,英文名自然而然就是Guannan Wang。横竖这两个名字都是我的代号,不管中国人叫起来还是老外叫起来我都知道他们在叫我。

但是,最近发现了一个奇怪的现象。

公司里的邮件满天飞,其中不免会有中国部门的邮件和到中国开会的邮件,总而言之,多多少少都会有些邮件带有中国人的名字。在这些人里面,有些人用汉语拼音名字,有些人却用英文名字(Sam、Jerry之类的)。而且很有意思的是,在北美的中国人都用拼音,而在中国大陆的中国人都用英文名。

回想以前在国内的时候,我也用过英文名字,叫做Bart,是一个老美按照Simpsons动画片人物给我取的。我也曾经得意洋洋地炫耀过我的英文名字,甚至刚出国的时候所有表格一律都写的是英文名。但是随后麻烦也来了,因为使用的名字和正式登记的名字(护照上的名字)不一致,差点让我废了一门课。而且曾经有人开玩笑说我的名字很像Fart。总之,经历了一切的一切,最后还是在作业的封面上写下Guannan Wang。

仔细想想,名字都是爸妈给取的。中国的文化中,名字已经不只是个代号,更多地,名字中包含了爸妈的鼓励与期望。这也是老外不能理解的。很多老外听说我的名字还有Top-1 Man的意思之后,很不理解为什么中国人给孩子取这么个名字。我告诉他们这是encourage from parents。于是他们很尊重我的名字,很尊重我爸妈给我的期许。从那之后,我再也没用过任何英文名字,就连刚到公司之后都要把中文名字写到自己的白板上。

总之,中文名字对于中国人的价值,并不仅仅是代号那么简单,它包含了更多的东西,也就是文化的内涵。抛掉了中文名字,基本上也就抛掉了自己的文化,也抛掉了别人对自己的尊重。至少,在北美,老外都会羡慕和尊重别人有而自己没有的东西。

我并不是酸葡萄,只是看不惯而已……

Tags: 心情 | 分类:[自己]无病呻吟 | 评论:0 | Trackbacks:0 | 阅读:532

第一个参与的项目流片啦

Tundra Semiconductor今早发布了Tsi620,一个RapidIO和PCI的透明桥接芯片。

这是我在Tundra实习参与的第一个项目。事实上,我参与的只是其中SREP部分的硬件设计验证(hardware verification)。但是,再怎么说,一辈子当中第一次经历项目完成和产品发布,也还是挺有成就感的。

昨天的庆祝会,大多数项目组成员都参加了,借此也见到了许多认识的和不认识的同事。这才体会到,原来做一个芯片项目要这么多的人啊,而且其中真正做设计的,也不过三五个。我突然想到了汉芯,呵呵,忘了它吧,不说这些让人心里添堵的。

我的同事都说我运气好。因为前一个实习生做了好几个学期,工作一点都没少干,但是却没赶上这次的庆祝会。而这次的庆祝会正好赶在我这个实习学期刚开始没多久。呵呵,我一直运气好,我一直都这么想。

宴会之后,每位成员都拿到了一份“便宜”的纪念品——芯片版图。说它便宜,因为它只不过是一张纸;但是这一张纸上画的东西却让一个大团队忙活了差不多两年。

看得出来,大家都累了。打完保龄回家,拍张照片,睡了,明天还要继续上班。

期待下一个项目。

 大小: 611.92 K 尺寸: 300 x 400 浏览: 4 次点击打开新窗口浏览全图

P.S.由于昨天晚上产品还未发布,处于内部保密状态,这片贴子也就只有晚一天写了。无论如何,留下这个第一次。

Tags: tundra, 流片, 工作 | 分类:[自己]无病呻吟 | 评论:0 | Trackbacks:0 | 阅读:496

《Transformers》IMAX,More Experience,More ...

大小: 153.26 K 尺寸: 400 x 334 浏览: 1 次点击打开新窗口浏览全图

IMAX版的《变形金刚》比正常版多了不少情节,尤其是在Final battle的时候,很多后加入的情节让故事更加完整。

另外,IMAX的效果也很爽,可以很清晰地看到和听到变形的瞬间。

一个字:酷!

Tags: 电影, 影评 | 分类:[电影]观赏记录 | 评论:1 | Trackbacks:0 | 阅读:582

翻译的艺术

这几天由于工作原因,有幸拜读《Practice Guide of SystemVerilog Assertion》。不得不说的是,这本书的原版写得很好,深入浅出地介绍了SVA的方方面面。但是中文翻译就不敢恭维了。举个例子,SVA里面的Assertion被翻译成“断言”,暂且不论此翻译是否得当,这里先要说书中另外一处翻译。(我估计的)原文说,如果收到req信号,arbiter就会“assert” gnt信号。这里的“assert”明明当作“引发,将……信号置为高电平”,但是书中却翻译成arbiter会引发一个gnt“断言”。

其实类似的让人摸不清头脑的翻译在科技书籍中屡见不鲜。比如说操作系统类的书中,Semaphore总被翻译成“信标量”或者“信号量”。但事实上Semaphore是一个资源锁(resource lock)。不论是“信标量”还是“信号量”都跟“资源锁”风马牛不相及。另外一个名词“Monitor”也是一样,被翻译成了“管程”,依旧是让人看不明白。

另外,很多技术性词汇都被人为地“缩略”了。比如说,如果我跟一个没读过大学教材但懂得编程的人说“形参”,他们也许听不懂我在说什么。但是我要是说“形式参数”,豁然开朗。

书,是用来传授知识的,不是用来猜谜的。如果一本书让一个读书人看不懂的话,那么这本书也就没有存在的必要了。值得一提的是,SVA那本书的译者还是某个八六三计划项目的领导,某某教授。对于这么一个连自己专业学术知识都表达不出来的教授,可想而知这个项目会怎么样。

我看,以后我还是读原文书籍吧。虽然,对于我来说,英语让我在认知上慢很多,但至少在理解上比这些不知所云的中文来的快多了。

Tags: 翻译, 技术, 词汇 | 分类:[自己]无病呻吟 | 评论:0 | Trackbacks:0 | 阅读:695

安装国产操作系统“银河麒麟2.1”初体验,失败

本着支持国货的心理,下载了一个银河麒麟2.1,看看最近国产操作系统发展得怎么样。

阅读全文...

Tags: 麒麟, 安装, os, kylin, installation | 分类:[原创]其他技术 | 评论:0 | Trackbacks:0 | 阅读:1121
Records:11112345678910»