The Maven compilation files for OneCMDB

Here comes the Maven compilation files for OneCMDB.

OneCMDB is an Open Source CMDB, Configuration Management Database published under GPL Version 2.

It was developed by Lokomo Systems AB and its homepage is http://www.onecmdb.org/ .

OneCMDB is excellent so deserve studying. (Thank you for opening the source codes, Lokomo!)

A runnable and debuggable project will be of great help when reading the source codes.

Unfortunately, although Lokomo provides the source codes in the installation package, it lacks the compilation files.

I want to understand the source codes of OneCMDB well so I tried to compile OneCMDB with Maven.

And I succeeded in compiling it and running it in Eclipse Indigo after many attempts.

Compilation Instructions

OK. Here is the instructions for setup the Eclipse project:

(Notes: I compiled OneCMDB on Windows, please adapt the commands to Linux style if you try to compile it on Linux. And I am not sure it could work on Linux or not.)

  1. Install JDK6, Eclipse (or STS; with Maven plug-in integrated), Tomcat 6 and Maven 3.
  2. Install OneCMDB 2.1.0. Download page.
  3. Download the compilation package with Maven files and extract it to your local disk. Download “MavenOneCMDB.zip” from my SkyDrive account:
  4. Modify the file “repository.cfg” to let “onecmdb-desktop” module know the position of the repository of the installed official OneCMDB. See details.
  5. Install many jar files from installed OneCMDB. See details.
  6. Launch the HSQLDB. See details.
  7. Import (“Existing Maven Projects”) the all projects in the compilation package into your Eclipse workspace.
  8. Configure “Tomcat 6″ server in the workspace.
  9. Add these 4 projects to “Tomcat 6″ server : onecmdb-desktop, onecmdb-itil, onecmdb-modeller, ROOT.
  10. Launch “Tomcat 6″ server (debug mode is better) in Eclipse.
  11. Finally, you could enjoy the debuggable OneCMDB by open this link in a web browser: http://localhost:8080/onecmdb-desktop/


Lets “onecmdb-desktop” get the repository


Open the “org.onecmdb.ui.gwt.desktop\src\main\resources\repository.cfg” file, and put the full path of the repository of installed OneCMDB in it. The following is a sample on Windows:

 XML |  copy code |? 
1
# The Root path of the repository.
2
repositoryRoot=d:/Program Files (x86)/OneCMDB/2.1.0/repository


Installs Many JAR files


For unknown reasons, many jar files couldn’t be download from Maven Central Repository, so you have to install them to local Maven repository from installed OneCMDB by the commands as following.

Please execute them at the folder of Tomcat 5.5.17 contained in the install OneCMDB.

And please change “\” to “/” if you do it on Linux.

 DOS |  copy code |? 
01
mvn install:install−file −Dfile=webapps\onecmdb−desktop\WEB−INF\lib\gxt−1.2.4.jar −DgroupId=com.extjs −DartifactId=gxt −Dversion=1.2.4 −Dpackaging=jar
02
mvn install:install−file −Dfile=webapps\itil\WEB−INF\lib\gwtiger.jar −DgroupId=com.googlecode −DartifactId=gwtiger −Dversion=0.1 −Dpackaging=jar
03
mvn install:install−file −Dfile=webapps\ROOT\WEB−INF\lib\toplink−api−1.0.0.jar −DgroupId=com.oracle.toplink −DartifactId=toplink−api −Dversion=1.0.0 −Dpackaging=jar
04
mvn install:install−file −Dfile=webapps\ROOT\WEB−INF\lib\jmxri−1.2.1.jar −DgroupId=javax.management −DartifactId=jmxri −Dversion=1.2.1 −Dpackaging=jar
05
mvn install:install−file −Dfile=webapps\ROOT\WEB−INF\lib\jta−1.0.1B.jar −DgroupId=javax.transaction −DartifactId=jta −Dversion=1.0.1B −Dpackaging=jar
06
mvn install:install−file −Dfile=webapps\ROOT\WEB−INF\lib\jmxremote−1.0.1_04.jar −DgroupId=javax.management −DartifactId=jmxremote −Dversion=1.0.1_04 −Dpackaging=jar
07
mvn install:install−file −Dfile=webapps\ROOT\WEB−INF\lib\jmxremote_optional−1.0.1_04.jar −DgroupId=javax.management −DartifactId=jmxremote_optional −Dversion=1.0.1_04 −Dpackaging=jar
08
mvn install:install−file −Dfile=webapps\ROOT\WEB−INF\lib\connector−1.0.jar −DgroupId=javax.resource −DartifactId=connector −Dversion=1.0 −Dpackaging=jar
09
mvn install:install−file −Dfile=webapps\ROOT\WEB−INF\lib\jaas−1.0.01.jar −DgroupId=javax.security −DartifactId=jaas −Dversion=1.0.01 −Dpackaging=jar
10
mvn install:install−file −Dfile=webapps\ROOT\WEB−INF\lib\jacc−1.0.jar −DgroupId=javax.security −DartifactId=jacc −Dversion=1.0 −Dpackaging=jar
11
mvn install:install−file −Dfile=webapps\ROOT\WEB−INF\lib\jdbc−stdext−2.0.jar −DgroupId=javax.sql −DartifactId=jdbc−stdext −Dversion=2.0 −Dpackaging=jar


Launching HSQLDB


Launching HSQLDB is pretty simple. And it will store the data in the “current working directory”.

The following is a launching script on Windows:

 DOS |  copy code |? 
1
@echo off
2
cd data\
3
title HSQLDB is running...
4
java -classpath "../lib/hsqldb.jar" org.hsqldb.Server

 

Exception

OneCMDB uses Java applets (with Prefuse lib) to show pretty and animated graphs of the CI(Configuration Item) and the relationship between them.

And this page doesn’t describe how to debug the Java applets.

Experience

  1. You could upload a JAR file to Maven Central Repository (Advanced Search -> CHOOSE FILE) to let it to match precisely the coordinate or this JAR file.
  2. When a JAR file could not be match precisely, try to figure out it’s a modified version or not and what bug of it have been fixed.
    • The hibernate 3.2.0.ga in OneCMDB is a fixed version with the modification to SubqueryExpression.java. Without this fix, the “Import model” function will not work. And it took me more than 10 hours to debug. And finally, I found the fix to SubqueryExpression.java by invoking jd-gui to reverse the two hibernate JAR files to JAVA files. And then I tried hibernate 3.2.7.ga and it works.

Reference


斯坦福大学漫游

我今天(美国加州时间2011年11月27日)到斯坦福大学闲逛了一下,这是我第一次到斯坦福大学,因为准备不足,只逛了以Memorial Court和Main Quad为中心的一小圈——斯坦福实在是大。

漫游在斯坦福校园中,思绪交杂,有向往、追悔、自勉……一时难以言表。

10:00来到Memorial Court,18:00离开,回到宿舍已经很晚,无暇整理照片,下面简单分享几张:

临走时在Bookstore买了4张明信片和邮票,其中3张贴了0.29美元的邮票准备寄到旁边的Santa Clara(圣·克拉拉)郡(county),还有一张贴了0.98美元的邮票准备寄到国内(但愿后者能收到吧),然后到Bookstore旁边的Post Office投寄。


瑞典印象2-自动化

今年2月份消息传出,中国2010年的GDP超过日本,从而取代日本成为世界第二大经济体。(另外还有西方专家预测,中国GDP到2027年(一说2020年)会超过美国,到2050年将会是美国的2倍)
消息虽然振奋人心,不过媒体还算冷静,随即有文章如《GDP居世界第二被指意义不大 多领域落后》 “人均GDP不到日本1/10”等。

瑞典的经济情况又如何呢?
2010年瑞典的GDP虽然不到中国的13分之一,但瑞典只有区区的926万人(2009年),一平均下来,2010年瑞典的人均GDP是中国的11倍有余!

相关数据如下:

2010年其中4个国家的GDP(数据来源:维基百科)

 排名 国家  GDP(单位:亿美元)
 1  美国  145265.50
 2  中国  58782.57
 3  日本  54587.97
 22 瑞典  4587.25

2010年其中4个国家的人均GDP(数据来源:维基百科)

排名 国家 GDP(单位:美元)
8 瑞典 49183
10 美国 46860
17 日本 42783
91 中国 4382

为什么呢?当然是生产力水平不一样咯。
那不一样在哪呢?因数很多,表现也很多,其中之一就是机械化程度。本文正是给你分享一下瑞典的一些机械化的照片。

照片

以下照片均拍摄于瑞典首都斯德哥尔摩。

(1) 剪草是用机器的

 
一个人搞定一大块地方

(2) 维修窗户有专车

 
留意到房子旁边的小树没有?很难想象用梯子的话会是怎么样的场景。


还有更小一点的专用车。


这是上面那小车竖起机械臂时的样子,估计有10米高。


那小车的近照(不是同一辆,而是另外一辆类似的)。


还有另外一个型号的,估计是应付更高层的窗户的。

(3) 修天花板的专车


这拍摄于Kista商场。人站在这车上,除了能控制升降外,还可以控制移动车子。

(4) 小工程车


给几百平米的地铺水泥,就两丁人干活。


上面两幅是工地附近停靠着的。从其轮子使用的是轮胎而不是铁履带来看,这不是做大型土方工程的,而是应付小型工程的。

(5) 清洁地板专车


这拍摄于地铁站内,第一次看见工人坐在上面操控时,第一感觉就是:这人在玩成人版的汽车玩具。 :)

 

后记

在人力成本低的国家和地区,老板们是没有动力去耗资引入机器来提高效率的,因为引入机器的成本比请工人要高,哪怕是算上从节约了的时间上所获得的收益。
只有人力成本高的国家和地区,老板们才会考虑甚至想方设法进行机械化、自动化,以提高人均生产率。

别的不用细说,就拿最低工资比一下就可见一斑:
深圳的最低工资在2011年是每月1320元人民币。
(2007年是每月850元人民币(特区内),2008年涨到1000,2010年涨到1100,2011年才涨到1320;
据闻富士康从深圳搬到河南就是因为深圳的最低工资调整导致其成本升高,河南省在2010年的最低工资按行政区域分别是800、700和600)
瑞典的最低工资在2010年是每月13000元人民币左右(我一时没有找到官方数据)。


Stay Hungry, Stay Foolish—-记乔布斯逝世

今天(北京时间2011106日)是麦金塔(Macintosh)电脑、iPodiTunes StoreiPhoneiPad等知名数字产品的缔造者乔布斯逝世的日子。(乔布斯是于美国时间105日逝世的)

打开苹果公司的主页,可以看到其已该改为乔布斯的黑白照片,人像旁边写着其生卒年份“1955-2011”。

 

点击照片就会进入悼念乔布斯的页面,英中文版本分别如下:

http://www.apple.com/stevejobs/

Steve Jobs

1955-2011

Apple has lost a visionary and creative genius, and the world has lost an amazing human being.

Those of us who have been fortunate enough to know and work with Steve have lost a dear friend and an inspiring mentor.

Steve leaves behind a company that only he could have built, and his spirit will forever be the foundation of Apple.

If you would like to share your thoughts, memories, and condolences, please email rememberingsteve@apple.com

 

http://www.apple.com.cn/stevejobs/

Steve Jobs

1955-2011

一位富有远见、充满创意的天才离开了Apple

一位杰出的、了不起的人物告别了世界。

曾有幸与他结识并共事的我们,从此失去了一位挚友,一位精神导师。

Steve留下了一家唯有他才能创建的企业,他的精神将成为Apple永续前进的基石。

如果你想分享感念、追思和哀悼之情,请发送电子邮件至 rememberingsteve@apple.com

 

乔布斯何许人也?你要是不知道的话千万别跟别人说你是在IT界混的。  :)

这里摘录维基百科对乔布斯的介绍(摘于2011106):

史蒂芬·保罗·乔布斯(英语:Steven Paul Jobs1955224日-2011105日),简称为史蒂夫·乔布斯(英语:Steve Jobs),苹果公司的创办人之一,并曾任苹果公司的董事会主席、首席运行官,同时也是前皮克斯动画工作室的董事长及首席执行官(皮克斯动画工作室已于2006年被迪士尼收购)。乔布斯还曾是迪士尼公司的董事会成员和最大个人股东。乔布斯被认为是电脑业界与娱乐业界的标志性人物,同时人们也把他视作麦金塔电脑、iPodiTunes StoreiPhoneiPad等知名数字产品的缔造者。2007年,史蒂夫·乔布斯被《财富》杂志评为了年度最强有力商人。

乔布斯的生涯极大地影响了硅谷风险创业的传奇,他将美学至上的设计理念在全世界推广开来。他对简约及便利设计的推崇为他赢得了许多忠实追随者。乔布斯与沃兹尼亚克共同使个人电脑在70年代末至80年代初流行开来,他也是第一个看到鼠标的商业潜力的人。乔布斯在1985年苹果高层权力斗争中离开苹果并成立了NeXT公司,瞄准专业市场。1997年,苹果收购NeXT,乔布斯回到苹果接任首席执行官。2011824日,乔布斯宣布辞去苹果首席执行官职务,105日因身患胰腺癌去世,享年56岁。

 

下来该来点我自己写的内容了。 :)

我在用iPhone 4和苹果的键盘,但算不上“果粉”,也不是乔布斯的忠实追随者,但乔布斯的经历和成就确实令我为之惊叹不已。其中让我最为深刻的,同时可作为他的“简史”的,是他于2005年在斯坦福大学的毕业典礼上的演讲,题为《Stay Hungry, Stay Foolish(求知若飢,虚心若愚),他在其中讲述了他的3个故事。演讲中夹杂着一些令人深思的句子,抄录如下:

  • 故事1Connecting the dots – 串连(人生中的)点点滴滴

你不能预先把点点滴滴串在一起;唯有未来回顾时,你才会明白那些点点滴滴是如何串在一起的。所以你得相信,你现在所体会的东西,将来多少会连接在一块。你得信任某个东西,直觉也好,命运也好,生命也好,或者因果报应。

  • 故事2About love and loss – 关于爱和失去

有时候,人生会用砖头打你的头,不要丧失信心。
你的工作将填满你的一大块人生,唯一获得真正满足的方法就是做你相信是伟大的工作,而唯一做伟大工作的方法是爱你所做的事。

  • 故事3About death – 关于死亡

我每天早上都会照镜子,自问:「如果今天是此生最后一日,愿意去做我将要(不得不)做的事情吗?」每当我连续太多天都得到一个「不」的答案时,我就知道我必须有所改变了。
你们的时间有限,所以不要浪费时间活在别人的生活里。

不要被信条所惑-盲从信条就是活在别人思考结果里。
不要让别人的意见淹没了你内在的心声。
最重要的,拥有跟随内心与直觉的勇气,你的内心与直觉多少已经知道你真正想要成为什么样的人,任何其他事物都是次要的。

 

我是去年在寻找学习英语的材料时找到这篇文章的,当时连续花了8个小时将这16分钟的演讲的稿文中我不认识或觉得生疏的单词和短语画出来,足足有153个之多。

下面是带我的标注的英文演讲稿,中文翻译请参考《求知若渴,虚心若愚》 (这译文中有一些翻译的不太好,我后续有时间再优化一下)

 Stay Hungry, Stay Foolish

(Given by Steve Jobs, 2005)

Thank you. I am honored to be with you today at your commencement from one of the finest universities in the world. Truth be told, I never graduated from college. And this is the closest I’ve ever gotten to a college graduation. Today I want to tell you three stories from my life. That’s it. No big deal. Just three stories.

The first story is about connecting the dots.

I dropped out of Reed College after the first 6 months, but then stayed around as a drop in for another 18 months or so before I really quit. So why did I drop out?

It started before I was born. My biological mother was a young, unwed graduate student, and she decided to put me up for adoption. She felt very strongly that I should be adopted by college graduates, so everything was all set for me to be adopted at birth by a lawyer and his wife. Except that when I popped out they decided at the last minute that they really wanted a girl. So my parents, who were on a waiting list, got a call in the middle of the night asking: “We have an unexpected baby boy; do you want him?” They said: “Of course.” My biological mother found out later that my mother had never graduated from college and that my father had never graduated from high school. She refused to sign the final adoption papers. She only relented a few months later when my parents promised that I would go to college. This was the start in my life.

And 17 years later I did go to college. But I naively chose a college that was almost as expensive as Stanford, and all of my working-class parents’ savings were being spent on my college tuition. After six months, I couldn’t see the value in it. I had no idea what I wanted to do with my life and no idea how college was going to help me figure it out. And here I was spending all of the money my parents had saved their entire life. So I decided to drop out and trust that it would all work out OK. It was pretty scary at the time, but looking back it was one of the best decisions I ever made. The minute I dropped out I could stop taking the required classes that didn’t interest me, and begin dropping in on the ones that looked far more interesting.

It wasn’t all romantic. I didn’t have a dorm room, so I slept on the floor in friends’ rooms, I returned coke bottles for the 5 cent deposits to buy food with, and I would walk the 7 miles across town every Sunday night to get one good meal a week at the Hare Krishna temple. I loved it. And much of what I stumbled into by following my curiosity and intuition turned out to be priceless later on. Let me give you one example:

Reed College at that time offered perhaps the best calligraphy instruction in the country. Throughout the campus every poster, every label on every drawer, was beautifully hand calligraphed. Because I had dropped out and didn’t have to take the normal classes, I decided to take a calligraphy class to learn how to do this. I learned about serif and sans serif typefaces, about varying the amount of space between different letter combinations, about what makes great typography great. It was beautiful, historical, artistically subtle in a way that science can’t capture, and I found it fascinating.

None of this had even a hope of any practical application in my life. But ten years later, when we were designing the first Macintosh computer, it all came back to me. And we designed it all into the Mac. It was the first computer with beautiful typography. If I had never dropped in on that single course in college, the Mac would have never had multiple typefaces or proportionally spaced fonts. And since Windows just copied the Mac, it’s likely that no personal computer would have them. If I had never dropped out, I would have never dropped in on this calligraphy class, and personal computers might not have the wonderful typography that they do. Of course it was impossible to connect the dots looking forward when I was in college. But it was very, very clear looking backwards ten years later.

Again, you can’t connect the dots looking forward; you can only connect them looking backwards. So you have to trust that the dots will somehow connect in your future. You have to trust in something – your gut, destiny, life, karma, whatever. Because believing that the dots will connect down the road will give you the confidence to follow your heart even when it leads you off the well-worn path. And that would make all the difference.

My second story is about love and loss.

I was lucky – I found what I loved to do early in life. Woz and I started Apple in my parent’s garage when I was 20. We worked hard, and in 10 years Apple had grown from just the two of us in a garage into a $2 billion company with over 4000 employees. We had just released our finest creation – the Macintosh – a year earlier, and I had just turned 30. And then I got fired. How can you get fired from a company you started? Well, as Apple grew we hired someone who I thought was very talented to run the company with me, and for the first year or so things went well. But then our visions of the future began to diverge and eventually we had a falling out. When we did, our Board of Directors sided with him. So at 30 I was out. And very publicly out. What had been the focus of my entire adult life was gone, and it was devastating.

I really didn’t know what to do for a few months. I felt that I had let the previous generation of entrepreneurs down – that I had dropped the baton as it was being passed to me. I met with David Packard and Bob Noyce and tried to apologize for screwing up so badly. I was a very public failure, and I even thought about running away from the valley. But something slowly began to dawn on me – I still loved what I did. The turn of events at Apple had not changed that one bit. I had been rejected, but I was still in love. And so I decided to start over.

I didn’t see it then, but it turned out that getting fired from Apple was the best thing that could have ever happened to me. The heaviness of being successful was replaced by the lightness of being a beginner again, less sure about everything. It freed me to enter one of the most creative periods of my life.

During the next five years, I started a company named NeXT, another company named Pixar, and fell in love with an amazing woman who would become my wife. Pixar went on to create the world’s first computer animated feature film, Toy Story, and is now the most successful animation studio in the world. In a remarkable turn of events, Apple bought NeXT, I retuned to Apple, and the technology we developed at NeXT is at the heart of Apple’s current renaissance. And Laurene and I have a wonderful family together.

I’m pretty sure none of this would have happened if I hadn’t been fired from Apple. It was awful tasting medicine, but I guess the patient needed it. Sometimes life hits you in the head with a brick. Don’t lose faith. I’m convinced that the only thing that kept me going was that I loved what I did. You’ve got to find what you love. And that is as true for your work as it is for your lovers. Your work is going to fill a large part of your life, and the only way to be truly satisfied is to do what you believe is great work. And the only way to do great work is to love what you do. If you haven’t found it yet, keep looking. And don’t settle. As with all matters of the heart, you’ll know when you find it. And, like any great relationship, it just gets better and better as the years roll on. So keep looking. Don’t settle.

My third story is about death.

When I was 17, I read a quote that went something like: “If you live each day as if it was your last, someday you’ll most certainly be right.” It made an impression on me, and since then, for the past 33 years, I have looked in the mirror every morning and asked myself: “If today were the last day of my life, would I want to do what I am about to do today?” And whenever the answer has been “No” for too many days in a row, I know I need to change something.

“Remembering that I’ll be dead soon” is the most important tool I’ve ever encountered to help me make the big choices in life. Because almost everything – all external expectations, all pride, all fear of embarrassment or failure – these things just fall away in the face of death, leaving only what is truly important. Remembering that you are going to die is the best way I know to avoid the trap of thinking you have something to lose. You are already naked. There is no reason not to follow your heart.

About a year ago I was diagnosed with cancer. I had a scan at 7:30 in the morning, and it clearly showed a tumor on my pancreas. I didn’t even know what a pancreas was. The doctors told me this was almost certainly a type of cancer that is incurable, and that I should expect to live no longer than three to six months. My doctor advised me to go home and get my affairs in order, which is doctor’s code for prepare to die. It means to try to tell your kids everything you thought you’d have the next 10 years to tell them in just a few months. It means to make sure everything is buttoned up so that it will be as easy as possible for your family. It means to say your goodbyes.

I lived with that diagnosis all day. Later that evening I had a biopsy, where they stuck an endoscope down my throat, through my stomach and into my intestines, put a needle into my pancreas and got a few cells from the tumor. I was sedated, but my wife, who was there, told me that when they viewed the cells under a microscope the doctors started crying because it turned out to be a very rare form of pancreatic cancer that is curable with surgery. I had the surgery and thankfully I’m fine now.

This was the closest I’ve been to facing death, and I hope it’s the closest I get for a few more decades. Having lived through it, I can now say this to you with a bit more certainty than when death was a useful but purely intellectual concept:

No one wants to die. Even people who want to go to heaven don’t want to die to get there. And yet death is the destination we all share. No one has ever escaped it. And that is as it should be, because death is very likely the single best invention of life. It is life’s change agent. It clears out the old to make way for the new. Right now the new is you, but someday not too long from now, you will gradually become the old and be cleared away. Sorry to be so dramatic, but it is quite true.

Your time is limited, so don’t waste it living someone else’s life. Don’t be trapped by dogma – which is living with the results of other people’s thinking. Don’t let the noise of other’s opinions drown out your own inner voice. And most important, have the courage to follow your heart and intuition. They somehow already know what you truly want to become. Everything else is secondary.

When I was young, there was an amazing publication called The Whole Earth Catalog, which was one of the bibles of my generation. It was created by a fellow named Stewart Brand not far from here in Menlo Park, and he brought it to life with his poetic touch. This was in the late 1960′s, before personal computers and desktop publishing, so it was all made with typewriters, scissors, and Polaroid cameras. It was sort of like Google in paperback form, 35 years before Google came along: it was idealistic, and overflowing with neat tools and great notions.

Stewart and his team put out several issues of The Whole Earth Catalog, and then when it had run its course, they put out a final issue. It was the mid-1970s, and I was your age. On the back cover of their final issue was a photograph of an early morning country road, the kind you might find yourself hitchhiking on if you were so adventurous. Beneath it were the words: “Stay Hungry. Stay Foolish.” It was their farewell message as they signed off. Stay Hungry. Stay Foolish. And I have always wished that for myself. And now, as you graduate to begin anew, I wish that for you.

Stay Hungry. Stay Foolish.

Thank you all very much.


瑞典印象1-垃圾房

在2009年9月到2010年12月期间,我有幸在瑞典工作和生活了一段时间,那段时间太忙了,除了上班基本上都是“蜗”在宿舍里看资料(以前在工作中接触的东西太有限了,而IT的技术点又太多,况且还得边啃边学英语)和学习,居然没怎么出去走走,也没有静下心来写点东西——现在后悔莫及了,只好追忆性地写点东西,帮自己重拾回忆的同时可以给大家讲一点瑞典的细节,以作为各位的参考素材。

我比较关注环保,所以就拿环保方面的素材作为开篇吧。

瑞典人很注重环保,其中的一个表现是对垃圾集中和分类存放。
我当时住的楼的一楼(地面那一层)有个30平方米左右的垃圾房,让住客放置非食物垃圾,下面是里面的一些照片。

(1)垃圾房全景照

注意到垃圾推车是分黑、蓝、红三种颜色没有?

(2)黑色推车 – 电子垃圾

激光打印机、录放机、CRT显示器、电吹风等——当然,基本上都是坏的,但如果你有兴趣,可以拿回家拆下对你有用的部件。

(3)蓝色推车 – 可循环再用物料
(3-A) 纸质包装

这是鸡蛋包装盒,牛奶等饮料的纸板盒等。
因为这里的东西不是每天都被运走的,所以要求住客等牛奶、果汁等蒸发走了后才能放到垃圾房中(据闻还要求用水洗一下),并且要求将纸板盒压扁(回想一下,你喝完王老吉凉茶、统X奶茶、蒙X牛奶等后,是否有将纸板盒压扁再扔呢?)。

(3-B)玻璃瓶

透明和不透明的玻璃瓶是被要求放在不同的推车中的,上图是放不透明玻璃瓶的,其中间杂着几个透明瓶子估计是粗心的住客不小心放错了。

(3-C)塑料瓶

毫无疑问,同样是要求干燥后才能放到这里来。

(4)红色 – 带污染物料

干性电池、光管(含汞,即水银)、节能灯泡(含汞,即水银)等是带污染的生活垃圾。
据说一颗干性电池可以污染几十万升水,够一个人使用一生——虽然我不知道具体数据,但想想干性电池把闹钟、收音机、玩具车等腐蚀成那个样子,也不禁心寒——可悲的是,我在深圳7年了,只看到惠鑫公寓大门口象征性地有个回收电池的垃圾桶(难道是因为我足不出门的缘故?),深圳都如此了,更不用说广大农村了……

我第一次进入那个垃圾房时,第一感觉就是跟自己开玩笑:这房间对国内捡破烂的人来说,可谓一个小天堂了。
但紧接而来的就是一种莫名的悲哀。看完上述图片,我想,你应该能体会我当时的感觉吧。


登华山东峰看日出没如愿

出差到西安三个星期了 一直没发博文,趁在华山东峰封顶发一篇以作纪念。

昨晚11:30开爬 今早五点半到东峰顶 但天公不作美 看不到太阳的脸,但这并遗憾,因为攀爬的过程已经够回味的了。


7-23动车追尾事故与瓦萨号沉船事故

今天是2011年8月10日,383年前的今天,在瑞典首都斯德哥尔摩一艘名为“瓦萨号”的军舰从其建造地扬帆起航,但在航行了不到1海里(少于2千米)后便告沉没,之后直至1961年才被打捞上岸,经处理、修复后于1987年向世人开放,这就是“瓦萨沉船博物馆”。直至2007年为止,“瓦萨号”已经吸引了二千五百万名游客。

堂堂一艘军舰,何以在首航即可告沉没?
简而言之,就是老大(当时的国王)临时改需求(单层炮改双层)还逼着赶工(急于参与战争),而下属则迫于压力而没有始终贯彻“安全生产 质量第一”的作风。
去年在瑞典出差时听中方同事说瓦萨沉船事件当时震惊全国,全民(可能有点夸张)皆反思“安全生产”的重要性,从而奠定了瑞典人严谨的处事作风,进而成就了今天的辉煌。(这个我一时没找到资料,日后再补充)。

前几天在“中国军网”看到一篇文章《由瓦萨战舰沉没想到的》对瓦萨号沉船事故的解读,除了痛斥面子工程的危害之外更是上升到了哲学的高度:客观规律是不可抗拒的。有兴趣的朋友可以阅读阅读。
该文发表在几天前的8月4日,不知是否就发生在上个月的“7-23动车追尾事故”有感而发。

对于“7-23动车追尾事故”,国人的关注程度以及国人对质量的反思均与瓦萨号沉船事故相似,但其能否起到类似于后者的作用则需要拭目以待了。


能力是总结出来的 – 我的第一篇博文

开办konca.com个人网站近十年,期间断断续续地更新着,在此文之前更是长达四年没有更新。

细想起来,原因很多,一方面是工作太忙了,另一方面则是所读所学杂七杂八,总是觉得所获甚少,担心所论所言孤陋浅薄、不等大雅之堂、甚至误人子弟。

前一阵因工作上从事较为抽象、虚无的系统建模、UML应用推广等工作,在对别人“恨铁不成钢”的同时反思着自己在总结、表达和演讲能力的不才,继而发现自己被“茶壶里煮饺子倒不出来的就不是饺子”一矢中的,顿时倍感失落。

失落期间,偶然想起前任主管一句赠言:“能力是总结出来的”,接着,“温故而知新”“学而不思则惘”“总结也是一种能力”“没有最好,只有更好”等古训、言论掠过脑海,进而开博客的念头浮上心头。
至于误人子弟的担忧也就很容易随之消失——误人子弟的大有人在,多我一个又何妨?况且我只是将我的所学所思共享与人,没有照本宣科、矫揉造作,更没有“己所不欲而施于人”。

在此,希望自己的总结能给有兴趣的人有所帮助,同时也希望得到读者的指正或建议。

另外,本人博文除特别声明外均为原创。
欢迎转载,但请遵守CC授权许可“署名-非商业-相同方式分享”
英文概要:http://creativecommons.org/licenses/by-nc-sa/3.0/
中文概要:http://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh