Yearly Archives: 2008

Move blog posts from Live Space to Google Blogger

I developed a small tool to enable the massive posts movement to the Google Blogger. I attached the README.txt file below.

livespaceexport.v1.zip
md5 digest: 401b130f69a0d83f3696c6c07a6d0c0b

Live space export utility
Ver.1.0
Zhuotong Nan ([email protected])

PURPOSE

This tool is to export all live space posts (without 20 posts limit due to using a different method to achieve posts) and
to generate a xml file in a format which can be imported to Blogger.

This tool is specially useful when you want to move to a newly established Blogger. Considering you have already written
hundreds of posts in your live space, it is impossible to move all posts manually. The existing tools on the Internet
with similar purpose have more constraints, for ex, 20 posts max from live space, and 50 posts per day on the Blogger side.

The tool is designed to address those issues.

CONFIGURATION

Windows Live ID – your live id. Mine is [email protected].

Live space user name – my space is http://nzt.spaces.live.com, in this case the user name is nzt.

Live space secret word – go to your live space setting, enable your email publishing. the secret word can be found there.

Start page to navigate all posts – sign in your space, it is the link address leading to the Summary list of Blog,
My start page is like http://nzt.spaces.live.com/?_c11_BlogPart_BlogPart=summary&_c=BlogPart, replace nzt with
your name. This tool will use the link to achieve all posts list.

Use local buffer posts listing file – the first time it always gray out. After you downloaded the Live space posts list (posts
contents have not yet downloaded at that time), the posts list were saved to a local file named blogposts.txt in the current
directory. Then by enabling this option, the tool will skip the step of downloading posts list, and then continue to catch
posts contents as well as to form a final xml file.

BlogID – your Blogger id. when you log in your Blogger space, click the Customize link, you will see
a url in your browser addr bar like http://www.blogger.com/rearrange?blogID=207104551370538866, the number string here is
your id (here actually it is mine, ^_^).

Blogger user name – generally your gmail account
Blogger password – gmail password

Xml file name – the posts from live space will be organized in this file. Import this file to Blogger using Import from
Blogger in draft. To get the import function, at the time of this release, log in your blogger, and go to visit
http://draft.blogger.com/home, then click Settings on that page, you can see Import blog, Export blog and Delete blog.

WHAT TO DO NEXT

log in your blogger, and go to visit http://draft.blogger.com/home, then click Settings on that page, you can see
Import blog, Export blog and Delete blog. Use Import blog to import the created xml file. Do not worry about existing
blogger posts, they will be kept. the imported posts will be assigned with imported tag, you can make decision to publish
or delete some or all of them.

HOW IT WORKS

get posts list from live space -> download all posts -> get existing posts of your Blogger -> append posts from live space
to your existing Blogger posts to generate a xml file for import -> import to Blogger (thanks to draft Blogger)

I did not implement the import functionality in this tool based on the network consideration. The created xml file might be large
in size. In this case it requires much time to import even in a very good network condition. You decide when you do the import
using the xml file.

IMPORTANT

The tool will not alter/delete/add any post to your live space. Existing blogger posts will be exported and posts from live space
will appended to existing blogger posts. the time stamps of live space posts will be kept.

If you only import partial posts of live space to your Blogger, for ex due to network problem, make sure you delete those before
you do the second import. otherwise there will be duplicated posts.

The tool only communicates to your live space and your blogger.
For the sake of safety, please compare md5 of the zip package downloaded with the md5 string on author’s Blogger.

REQUIREMENTS

.net framework 2.0 or above is required to run it. get it from ms website.
here is the link for the framework 3.5,
http://www.microsoft.com/downloads/details.aspx?familyid=AB99342F-5D1A-413D-8319-81DA479AB0D7&displaylang=en

HELP

Visit http://nanzhuotong.blogspot.com for help and bug report.
Latest available version will also be published in that web site.

Ver. 1.0
+ initial release (11/7/08)

p.s. forgive my English and typos, I am not native English speaker.

 

image
the first time the tool run

image
properly configure it

image
the start page of summary list of posts. the page url is necessary to make the tool work.

image
enable the email publishing and set the secret word. secret word acts as password to access the live space api.

image
click start! to run it

image
you can cancel the running at any time. note in this case the formatted xml file is not completed.

image
after you downloaded all the posts, from the draft Blogger to reach Setting link (different from the normal Blogger setting link)

image
following the setting link from draft Blogger, see the Import blog function. follow its steps, good luck.

HtmlDecode Tool

It’s a very simple tool doing the html decoding. I developed it today because when I searched the Internet, I cannot locate such a tool from so many search results. There is some web site with similar conversion function. But I hate the ads on the website, which makes my laptop work slowly.

image

Look at the figure above. Put the texts to be decoded into the upper textbox, and press “Covert & copy” to do the decoding. The decoded strings will be shown on the lower textbox and copied to the clipboard when press that button. Then you can easily paste to anywhere else without doing selection and ctrl+c.

HtmlDecoded.zip

To run it, you need install .net 2.0 runtime. Source codes are also included. VC# 2008 express edition is used.

American Dream

昨天美大选,产生了美国历史上第一个黑人总统。

记得若干年前,克林顿说,穷人也有机会。

奥巴马的成功证明了黑人也有机会。

人生而平等,不管什么肤色,什么宗教,来自哪里,有钱没钱,人人都有机会。这个国家再次缔造了奇迹。

杭州人拿了08年的“日内瓦发明金奖”?

文学城上看到一则新闻,说杭州人拿了日内瓦发明金奖,多振奋人心的好消息呀。于是想瞻仰一下这个“金刚掌汽车停车器”。仗着还懂几句英语,找到了36届日内瓦发明展览会的网址,找到了2008的获奖列表(http://www.inventions-geneva.ch/pdf/Presse2008/SidiPalmares2008EN.pdf)。大小几百项奖吧,含金量最高的叫Grand Prix,不过遗憾的是一个韩国人拿的。搜索wei不得,搜索parallel parking不得,搜索china,找到几个可惜都是台湾人。

该记者可能是做梦的时候意淫了一个新闻。可怜的是浙江在线、钱江晚报和文学城都被骗了。

文学城报道地址:http://news.wenxuecity.com/messages/200811/news-gb2312-731881.html

Quote:

杭州夫妇发明"金刚掌汽车停车器" 获国际金奖(图) 钱江晚报

周星驰在《少林足球》中,想象了一种最省便的停车方式:无需侧后方倒车,只要把车一停,用少林金刚掌一推,车就进了车位。
现在,这一场面将有可能成为现实。这个叫“汽车平行停车器”的“少林金刚掌”,刚在日内瓦获得了国际发明展金奖,他的发明人是来自杭州的魏枫和邱珍莉。昨晚,魏枫的父亲魏大伯喜滋滋地打进了本报热线。

“我们的儿子在第36届日内瓦国际发明展上获得了金奖。我们真是太高兴了!”昨晚10时,家住杭州大塘新村的魏道行大伯和张美娥大妈,激动地给本报新闻热线96068打来电话报喜。

魏道行大伯今年80岁,张大妈今年78岁,老夫妇俩生有四个儿子,魏枫是老大,今年54岁了。他的妻子邱珍莉比他小两岁。
“ 我们这个大儿子,文化程度也不高,但他就是爱学习,爱动脑筋。他自学考上了杭州电视大学,学的是机械专业。电大毕业后,他干过很多工作,自己也办过厂,但 没有赚到什么钱。后来,他搞了好多发明研究,我们也不清楚都有哪些发明研究。我们只知道,他的这个获金奖的发明是因为想缓解杭州市区的停车难问题。”
魏枫是3月28日与妻子邱珍莉一起前往日内瓦,参加第36届日内瓦国际发明展的。他们去参展后,老夫妻俩就一直在家等着他们的喜讯。昨天晚上9点半,儿子打来越洋电话,激动地向父母报喜——汽车平行停车器获得了金奖!
“我们生了四个儿子,魏枫是老大。魏枫的女儿魏安达在香港科技大学上大学,今年就要毕业了。她很能干呢,这次她爸爸妈妈出国,都是她在网上联系的呢。”老夫妇俩说起儿孙们,倍感骄傲和自豪。

汽车平行停车器
魏枫和邱珍莉发明的汽车平行停车器,其实是一种安装在汽车底盘上的简单装置,可在路边停车时协助驾驶员准确入位。
这套装置可固定在汽车底盘下,停车时放下4个比车轮略宽的承载滑车,置于车轮前。汽车在轮子驶上滑车后,可以靠后轮倒车动力压动滑车平行移动入位,而且可以原地转向。
侧后方停车入位是个技术活,许多驾车者特别是新手对此比较头疼。据魏枫介绍,他们的这项发明名为“汽车侧向平移泊车/原地掉头装置”,可使汽车在路边停车时平行入位变得简单易行,从而有助于更紧凑地使用城市里日益紧张的停车场地。
第36届瑞士日内瓦国际发明、技术和新产品展是4月2日开幕的,这是世界上规模最大、历史最悠久的国际发明展。 (本文来源:浙江在线-钱江晚报 )

甘肃夏河麻当乡华旦尖措孤儿学校

我的几个学生去看了一下他们的学校,这是其中一些照片。

image
天很蓝,可上天并没有眷顾这些天边的孩子

image
这个孤儿学校的创办人,很不起的师傅

image
合影

image
好客的孩子们为我们表演节目

image
他们在吃饭

image
调皮的小孩和她的饭

image
馒头和土豆汤

image
开饭了

image
食堂改成临时教室,我们在他们演示外面的新鲜事物

image
渴望知识的孩子

image
记住他们的笑脸

image
调皮的小姑娘

image
他四岁了,不会说汉语,但很好玩

image
还是这个小朋友

image
阿妈在做饭

image
他们的厕所,十分不安全

image
他们的宿舍,没有任何取暖设备,虽然那时是正午时分,我们进去后依然感到非常冷~

image
一个孩子的床

image
这本是一间教室,由于太冷,不得不搬到别的班级

image
靠这个取暖

image
教室

image
破碎的玻璃和接下来很冷的冬天

image
上课

没有收获

去lake erie,站到水中去钓鱼,脚冻的不成,没有收获。尽管享受到钓鱼的乐趣,但总感觉不是十全十美。总得讲,地方不错,但太远了,跑一趟不容易,钱还花了不少。

Talking about 要穿羽绒服

 

Quote

要穿羽绒服

早上婆婆说:“如果天气不变冷,我就可以天天接朵朵,挺好”。我也说:“是阿,是阿,最好不要下雪,一下雪就麻烦了”。没想到,朵朵听到此话就很伤心地哭了起来,我们两被搞得莫名奇妙,好不容易把她安抚平静。朵朵才道出实情:“我想穿去年去美国的时候穿的那件羽绒服,如果不下雪,我怎么穿阿,再长大一点就穿不上了阿,你们还说不要下雪了”。My God,原来这就是她伤心的理由,你能想得出来吗?   
于是,觉得事情较严重,有必要找机会教导一下“小孩子不能整天想着穿漂亮衣服”。和她爸爸谈及此事,没想到她爸爸说:“阿,她那样喜欢那件衣服啊,估计是因为想我吧,那就把家里开冷气,好让她穿羽绒服”。我直接快晕倒了,你说这两个人,一个够自恋的,一个够自作多情的。

driving learning permit

这几天是忙疯了,一边是国内的项目本子,一边是这边的事,而且驾照考试马上要到期,所以必须这两天考掉。感觉有点吃不消了,心脏平静的时候都感觉到跳的欢。不过前面去体检的时候,医生居然说我身体perfect。花一晚上的时间通读了manual,做了一些题,今天上午去考试十分顺利,拿到permit,这样就有1年的缓冲期了,反正也不急着买车,所以什么时候Road test不急。接下去要focus on到国内的本子,作为建议人,感觉各个课题间在内容想法上有些不一致,涉及多单位合作都有类似的问题,头疼,北京的明天又到最后截止日期了。时间不够用呀。

qq上朋友问了一些问题,很nice地帮他解答了。接下去突然来一句,你最近不忙吗,看你整天在线。苦笑不得,莫非问我问题,他希望得到我说,我很忙,没时间帮你。隔着个网络,我再忙,对面的人恐怕体会不到吧。所以人太nice也不一定是好事了,一定要让大家知道你很忙才对。

开心网争车位自动程序

在v0.2的基础上,形成了1.0版。主要特点,
1. 自动帖条;
2. 智能泊车(自动识别免费车位和颜色,免费车位优先级最低,白名单里用户优化级最高)
3. 定时周期运行
4. 多线程
5. 支持主要参数和匹配模式的配置
6. 绿色、安全

如果好用,请给我email发个邮件,我的email是[email protected]

欢迎反馈测试结果

已知问题:

应用程序正常初始化失败
安装.net framework 2.0运行包,下载点这里,不会黑屏。
KaixinWar.v1.zip