2008年7月的存档

  • 30
  • 7月

今年5月我博客空间提供者的网站被黑过两次,导致seebit.cn的域名一度乱指。因此seebit.cn下的所有索引全部被Google删除。而且一直到7月初在Google上搜索”site:seebit.cn”都是没有结果。

终于在最近一周,Google逐步恢复了对本博客的索引。先是只有首页和最新的两个页面,然后逐步增多。到今天终于恢复了绝大部分页面的索引。Google Webmaster Tools中也只剩下个位数的感叹号了。

这一次删除索引对本Blog的访问影响实在是非常之大,本来访问量就很少,这几个月更是门可罗雀了。没办法,对于我这样喜欢写技术问题的小博客,还是Google带来的流量最多。这也从一个方面证明了awflasher说的“Google更注重原创、时效性好的文章”。

看着Analytics中Blog那点可怜兮兮的访问量,内心不禁颇为失落。不过回想当初写Blog的原因──记录自己的学习轨迹,总结、分享其中的经验 教训。既然本来就不是为了流量这种虚无缥缈的东西,只要被Google收录了,当别人遇到问题时能从我这里得到帮助,这一切就足够了:-)

  • 30
  • 7月

又是一乱码问题,googleearth图层中显示的中文全部为乱码。解决方法也非常简单:

Tools->Options->3DView->Choose 3D Font换一个中文字体就OK。我选的是Dejavu Sans,出来的是楷体的效果。用文泉驿正黑效果不是很好。

遇到乱码先看字体!

  • 29
  • 7月

With less and less days left before the Olympic Games, we competition information department’s fellows were working a much longer time than the initial days.

Teams that will take competition here arrived in Qinhuangdao one after another. And we must passed the team’s training plan to relevant departments in the first time. However, some teams didn’t arrive so early that when they settled down and began to plan their training, it was quite late. Thus we waited for a training plan till 10 at night the day before yesterday. Starting from 8:30 at morning, I spent the entire day for about 14 hours in Olympic Center. It would be the longest working time record of my life till now.

Although it was true that I would sometimes feel boring during the long time of duty, I was fortunatelly able to see how the entire work was held. By watching how groups cooperated with each other and problems the met, I deeply understood the importance of effective communication that even though every each group was formed by elites and could perfectly accomplish the own job, there could still be lots of problems coming about when they worked together.

Hoping that there would be no team arrived at night next time I am on duty, and less problem arised in the cooperation of different departments.

  • 21
  • 7月

昨天在秦皇岛奥体中心,中国女足与新西兰女足举行了一场公开测试赛。关于这场比赛各媒体都有相关报道,我也确实为曲飞飞感到惋惜。但作为一名志愿者,我感受最深的是另一面──比赛准备工作。而在这一面上,秦皇岛这座奥运协办城市确实不能算作是准备好了。甚至这场奥运会之前最后一次测试赛都没能称之为成功举办!

在我看来,一场体育比赛要想算作成功,至少得满足两个条件:1.运动员比出水平。2.观众看得高兴。一场比赛的举办也无非是在努力实现这两个目标。

但在我们这里的准备工作中,我发现注意力似乎过于集中在运动员身上了。运动员各式各样的需求我们都有专门的人员进行负责。而且不管什么样的需求都会尽力去满足。甚至于他们没想到的地方我们也有做过准备。运动员渴了,休息室有各种各样的饮料,饿了,有一大把吃的。运动员带来两个泡脚的木桶,我们给派车从回驻地。曲飞飞受伤了,一辆“大奔”救护车立马给送到医院。

而观众那边呢?据做SPS的同学告诉我,直到比赛上半场结束,都有持票观众没能入场。原因居然是安检效率不行,大量观众被卡在安检口那里。另外一个问题是大部分时间观众服务志愿者只有不到一半在岗,另一半做什么去了呢?排队吃饭中,一顿饭吃掉了两个小时!后勤的饭果然赛时也跟不上。少了一半的SPS志愿者,观众服务能跟得上吗?

另外各部门的协调工作也有不少问题。比赛总协调的车没等来开道的警车,给工作人员送饭的车被安检挡在外面进不来,观众服务与安保的种种冲突……

按理说最后一次公开测试赛要做的应该是检查工作有没疏漏,绝大部分准备工作应该万无一失才对。但现在给人的感觉却是大部分工作都有问题,很多工作则是很有问题。离奥运会只有半个月的时间了,中间也没有这种大规模的公开测试赛了。现在的状况让人确实为秦皇岛能否成功举办奥足赛捏一把汗。

  • 20
  • 7月

刚吃完饭回来,感觉极其不爽。

上午干了一上午活,11点一刻去吃饭,居然到12点半多才吃回来。 其中绝大部分时间我们是在烈日下排队!

且不说作为一名奥运会志愿者我们应该享受的待遇,现在这种后勤都已经影响到我们的正常工作了。中午一顿饭吃一个小时也许只能算是浪费时间的问题,晚上比赛前那一顿以这种效率,这比赛就没法正常举行了。

上一次测试赛我们运动员服务的志愿者就因此没有吃饭。

现在我们面临的现状是:去早点排一长队,去晚点则不是没饭就是没菜。上千志愿者(比赛当天会有近两千)只能在一个小餐厅吃饭。而且只有两个打饭口。去得晚的得等到前面的吃完才能进去。饭菜的质量也就是比食堂能稍微好一点点。

还记得02年暑假我到北京参加夏令营,同样是一千多人。 但在吃饭问题上组织地十分有续。大家分不同的时段就餐,秩序维护地非常良好,半个小时内绝对搞定。而那仅仅是北大经管院组织的一个夏令营。

秦皇岛作为奥运会唯一的一个地级协办城市,在很多方面确实还是有不小的差距的。

PS:我们的志愿者服装也没能发到官网上发布的全套。

补充:晚饭靠我们伟大的戴老师集体打的盒饭回办公室,总算没耽误事。不过男生基本都没吃饱。

  • 19
  • 7月

Though it seemed that there were quite a few days before the Olympic Games, we Competition Administration Office had already become very busy. In all the last three days, we could not even sit in the chairs for continuous five minutes.

Sally, our department superviser, our office manager and I got off work at 9pm the night before yesterday. And it was just for a piece of notice which we didn’t  make well enough to satisfy the high quality demand of our director. Each time we sent the impoved version of it to the director, she would found out some new flaws. Each one of we four got criticized at least three times that night. That really taught us a big lession of making good work.

The following two days after that night, we processed all kinds of information all day long. I really felt tired physically after getting back, but I could also feel that we were working more and more adroitly these days.

It will be another busy day tomorrow, for we are having a public practice game. Hoping that everything will go better.

  • 16
  • 7月

We held a close door test game this day. All the volunteers and guards came to work. But unfortunately it wasn’t a pleasant day for many of us. There were lots of things to do before we can really welcome the OG.

The first and the most important problem is training of the volunteers. There were many volunteers especially those of the SPS group did know enough of their work.  For several times, I was blocked off by them to the area where I had right to get in.

Then even eating became a problem. There were hundreds of volunteers that would eat here. But we just had two dining room and neither of them were very big. When the dining time came, a long queue appeared. We had to wait quite a long time before we could even get in

And many more problems were exposed this day. I saw some but there must be more I hadn’t seen.

There wasn’t much time before the Olympic Games, We had much to do to hold a successful Olympic Game.

PS: I am a volunteer in Qinhuangdao, not Beijing. I just said what happened here.

  • 15
  • 7月

今天升级了下wordpress,发现多了一样功能“加速器”,试着启用了一下,先转到Google的网站,给FireFox中安装了一个Google Gears插件,然后让它从我blog上下载了211个文件下来。换来的结果是后台管理界面的打开速度明显提升。

研究了一下这个东西的原理,其实非常简单,不过是把网站上用到的静态文件(html、css、js及图片)全部下载到本地机器。到用的时候直接从本地读取。对于我这种使用国外主机的用户,加速效果那可是非常明显。

这一下子让我想起了两个软件开发中及其常用的名词:B/S模式和C/S模式。在这次升级之前,wordpress是一个“标准”的B/S(浏览器/服务器)应用程序。所有的操作都必需使用浏览器从服务器下载相应的页面,并在服务器提供的网页中完成工作。而相对的,像QQ这类传统的C/S(客户端/服务器)模式应用程序,需事先在客户端的电脑上安装对应的软件,操作界面基本是由存储在本地的软件生成,与服务器交换的仅仅是内容数据。但现在“加速”后的wordpress以上两条都沾了边,又都不完全是──页面是事先下载到客户端的,但使用的依然是浏览器进行操作。那些动态页面还是得从服务器获取。

事实上,这不过又是一个解决网络软件布署/更新的及时性与易用性这一矛盾的方案。

最传统的C/S应用优点在于程序在客户端安装执行,功能强大,反应迅速,只要使用者的电脑不至于过于古董,使用时只有与服务器交换数据的那一丁点时间会让人等一下,而且这点等待时间还可以通过使用多线程,后台预读取等技术被完全消除掉。但其缺点也产生于它的客户端,每当系统有任何升级,必需下载安装新版的客户端软件。布署时很不方便,而且难以保证客户端完全、及时地更新。

而B/S模式则完全抛弃了客户端,一切都是浏览器从服务器上现下载。只要服务器更新了,使用者用到的一定是最新版本。但限于浏览器的功能,B/S软件使用起来往往不那么方便,而且一旦与服务器之间的连接不那么高效,B/S模式的反应速度就会极其让人不爽。近年来兴起的Ajax技术虽然通过javascript后台异步传输及对浏览器功能的挖掘,使得B/S软件用户友好度有了极大的改善,但动则几十上百K的javascript框架文件和一大把的图片还是让人每次进入时等上老半天。

对于这一对矛盾,其实很多公司都推出过自己的解决方案。最早的可能是Java的applet,用它可以在浏览器中执行Java程序。然后有微软.net中的ClickOnce部署,实现了客户端软件的自动更新,而且程序员不需要为其多写半行代码。另外Sun还发布过一个Java Web Start。但由于这些方案都需要在客户端事先安装一个体积庞大的运行库,它们都没能在互联网上流行起来。

这两年随着Web2.0的兴起,又有一些崭新的解决方案出现在了我们面前:Flex、JavaFX、Silverlight、Adobe Air、Google Gears…不管它们的宣传是如何地花哨,把自己的功能吹得有多神奇,其根本目的都还是一致的──为用户提供更好的易用性,同时保证程序能被及时更新。

所以,作为一名软件开发人员,在为这些新技术兴奋的同时,不要忘记我们的根本使命:为客户提供高质量的问题解决方案。只有新技术能比原有技术更有效地解决问题时,才应该使用它。而更有效的评价标准包括效率、稳定性和安全性等很多方面。我们不能因为新技术更炫、更酷就去追求它。软件技术的创新一浪接着一浪,你不可能永远处于浪尖之上。

一句老话:不管黑猫白猫,抓得到老鼠的就是好猫。

此文与不断学习技术的同学共勉。

PS:刚升级完就发现了wordpress2.6的一个Bug──新增的字数统计功能不会算汉字。我写了这么半天才显示有17个words…

  • 15
  • 7月

Got very tired this day. It’s not because our department’s shared work but much surface work that made all us so busy. We welcomed our mayor this morning and made a big arrangement of our office. And then we were told some superior of the nation will come tomorrow. Everything in the Olympic Center must be cleared up then rearranged.

For this reason, we started our work at 1:30 pm which was an hour earlier than our regular schedule. unfortunately, almost everything in our office was not neat and tidy enough to be checked. Our desktops were all at sixes and sevens. Those wires of our computers went everywhere. The copying machine was place in the way people passing. Some more flowcharts should be hang on the wall. Oh, were there anything we done right in the past month?

As a chinese, I was really not like the superiors especially those from the governments. Each time when a superior would come, we common people had to do much extra work to “welcome” them. From my elementary school time till now, such things had never changed even when we had been doing quite well in the daily work. I really hoped that there was one day in which we could just stand up and say hello to the superior without any extra preparing work when the “important man” came.

  • 10
  • 7月

As arranged yesterday, Sally and I were on duty this day. We were late and scolded harshly by Mr. Bai who was our superviser. But we had really not been noticed that we should be there before 8:30. This was truly not a good experience with the new superviser. I didn’t think a manager should scold his underlings especially with other people seeing around. We were all adults now. Everyone had self-respect and we wanted to do thing well. If we did something wrong, you could just tell me and I was sure to do it right next time. A leader as the title’s word means should “lead” his subordinates, tell them what they were supposed to do and inspirit them to achieve the team’s vision.

After some time he explained to us why he became so angry and appeased us. We were off of power all this district most of the day, even the Olympic Center. The electricty was on the time he arrived and there was a fax to be sent by us. Before we arrieved all the building went dark. So the fax could never got its destination on time.

What’s more, Mr. Bai is a football teacher in a football school. Perhaps years of treating naughty boys made his used to scolding students. We ought to get well with each other in the following days.

所有标签:.net Ajax Java javascript Linux map MySQL RSS TD-SCDMA Ubuntu vim web Win7 乱码 基础知识 备份 奥运会 希望泉 性能 缓存 编程