一些中文学习资料总结

iOS应用程序

汉字描红

我现在一般用“自定义”:“大”,每字6行,每行5次描红,打印笔顺,正好一页一字。

备注:

  • 2013年2月20日:上述写字贴中的“力”的笔顺有误,汇报给网站,2月21日已经修复。
  • 2013年9月18日:上述写字贴中的“那”的笔顺无法生成,汇报给网站,9月23日已经修复。

教材

书法

参考

问题

备注: 以后会保持更新,大家如果有其它内容推荐,请回复,谢谢。

How to debug into Qt library in Qt Creator with CDB

OS: Windows 7 64bit SP1 (Note: need to have .Net 4 installed)

SDK: Windows SDK 7.1 x86_64 (Note: remember to have “Visual C++ Compilers” and “Debugging Tools for Windows” installed)

Qt Creator: Qt Creator 2.6.2 in qt-windows-opensource-5.0.1-msvc2010_32-x86-offline-2013-01-30-426.exe (Note: I am testing 5.0.1 daily build packages, 5.0.0 release doesn’t ship with .pdb files)

Qt Creator 2.6.2 could detect the compiler and cdb correctly from above environments after installed. What you need to do are only two things:

  1. Tools->Options->Debugger->CDB, In the Symbol paths field, open the Insert menu and select Symbol Server, just use default value and click OK
  2. Tools->Options->Debugger->General, in Source Paths Mapping part, click Add, set Source path field to q:\qt5_workdir\w\s and Target path field to C:\Qt\Qt5.0.1\5.0.1\Src

Then you can debug into Qt library in your applications.

Reference:

Update:

2013年2月1日起,Oslo和Akershus地区公交和火车票价系统调整

2013年2月1日起,Oslo和Akershus的公交火车票价再次进行年度调整。单张票价平均上涨2.1%,月票平均上涨2.4%。

一些路线和产品的价格涨幅要比上述数字高一些。

另外NSB的火车票,在车上购买要比提前购买多40 NOK,之前的数字是20 NOK。鼓励大家提前在售票机或者使用NSB的手机应用进行购买。

对于Oslo和Akershus的乘客,无法在NSB火车上购买延长段车票(例如原有车票只是一个区,现在想再购买一次使车票扩展到三个区)。替换方法是,如果现有车票是电子票并且有效的情况下,可以在售票机上购买延长段车票。纸票将无法购买延长段车票。所以建议大家提前计划好行程,直接购买整段车票。

以前的Coupon纸票(一张上有30个格的那种),2月1日起不再发售,现存的Coupon纸票只在4月30日前有效。当然大家还可以去退票,时间期限是3年,并且不收取退票费用。

参考资料:

(最后抱怨一下Ruter网站的旧网页的链接经常改变失效,这一点上和NSB差太远了。)

Some information about CI and build, release in qt-project

Just some information, not details:

升级完毕

终于算是忙完了。

家里的Mac Mini 2010做为服务器跑了2年,系统反应变慢很严重,这个星期尤甚,看来是硬盘要挂了。昨天下午去买了工具。晚上等妞妞睡了,就开始工作了。先是换硬盘,装系统(顺便升级到Mountain Lion),然后复制apache/php的配置文件,复制网站目录,安装mysql,复制mysql数据,总算弄完了。

先去睡觉了。

关于挪威难民

包括挪威在内的北欧几国在二战后,二战后就已经开始帮助欧洲难民了。

当时联合国对于难民这一问题形成了《1951难民公约》以及《1967议定书》。(英文,中文,UNHCR: The 1951 Refugee Convention)

每年挪威政府都会和联合国进行商讨之后,再由议会批准每年允许难民定居下来的数量,2009年以来这一数字一直维持在1200名。例如,挪威外交部:Quota for resettlement refugees for 2009中提到了关于1200这个数字的确定以及具体安排:

大家在挪威办理签证时经常打交道的UDI也负责具体的难民定居事宜,相关信息见UDI: Resettlement refugees。

关于难民的一些统计信息(来自于挪威国家统计局的SSB: Population statistics. Persons with refugee background, 1 January 2012 – Most from Iraq and Somalia):

截至2012年1月1日,在挪威居住的具有难民背景的人数一共有163500人。这一数量占据了挪威总人口的3.3%,以及挪威的外来移民的30%。其中最大的两个群体分别来自于伊拉克和索马里。

2011年这一年,具有难民背景的居民数量增加了5800,其中最多的是厄立特里亚背景的人1500,接下来是索马里背景的1200和阿富汗背景的800,2010年也是这三个群体最多。

在这163500人中,119110是主要申请人,其余44400人是投亲而来。

从2003年以来,伊拉克群体成为最大,一直持续到2011年,总数为20600人。第二大群体是索马里,20100人。

多数年轻,多数男性,多数挪威公民

在这些人中,男性比女性多10200人。

难民群体中有44%的人是在20-39岁年龄段,而全挪威的同年龄段比例只有27%。

难民群体中有63%的人是挪威公民。

大约四分之一在奥斯陆

在奥斯陆居住的有43400人。是全国有难民背景的总数的27%,是奥斯陆外来移民总数的31%,是奥斯陆人口总数的7%。有19300人居住在Akershus,12100人居住在Rogaland,最少的是只有1500的Finnmark。

上述文章中一个表格Persons with refugee background1, by duration of residence and country background. 1 January 2012中有关中国的数字大致如下:

  • 总数:996(第24位)
  • 居住了0-4年:452
  • 居住了5-9年:295
  • 居住了10-19年:100
  • 居住了20年以上:149

其它参考信息:

Oslo和Akershus的公共交通在2012年12月9日会有巨大变化

出处:Ruter: Ruteendring 9. desember(挪威语)

当前时间是第45周,下周(第46周)Ruter的出行计划网页会显示12月9日及以后的时刻表信息,第47周会有最新时刻表的PDF版本下载。

请大家出行前查询确认一下。

本次变化的综述:

火车时刻表变化:

  • NSB: Timetables(挪威语) (已经有2012年12月9日到2013年6月8日的时刻表)

大致要点:

  • 火车到达Oslo,汽车局部跑(这里是一个长期规划,Ruter: K2012 – Ruters strategiske kollektivtrafikkplan)
  • 构建良好的交通枢纽
  • 期待更好的运输量(针对现在火车还不太方便的地方,公交汽车会继续运行)
  • 更加适应现有地铁、有轨电车、船(针对Oslo),现有有轨电车和船的时刻表本次不变

大致的变化信息,请根据自己的地区访问Ruter: Ruteendring 9. desember(挪威语):

本文还会继续更新。

Last night, I was back to 1998

Hi, friend, it’s a “title party” blog. The original word is 标题党, and “title party” was translated from Google Translate. I really don’t think 标题党 is “forum spammer” here.

Back to my blog, it’s about running Caesar III on my MacBook Air 2012 13″ via CrossOver.

Caesar III is one of my faviourite games during university. (Sorry, I used a crached version at that time. And it’s still in one of my hard disks, just haven’t played it for years.)

I tried Caesar IV several years ago, but I don’t like the 3D in that game.

Caesar III only has windows version.

Last week, I got a deal, CodeWeavers: Flock The Vote: 2012, a free CrossOver for Mac and Linux.

First application which I want to run, Caesar III, popped up in my mind. Googled “CrossOver Caesar III” and got this page WHAT RUNS: Caesar III, looks like it’s possbile. Then I found some people is using GOG version.

What’s GOG? Good Old Games

It’s only $5.99 and digital downloadable version! I bought it.

But I can’t run it successfully at the first time. The display is garbled after running it. But sound is ok, and ESC could trigger the Quit dialog, the dialog works.

I gave up at that night. And posted a thread in forum.

After checking my thread for days, didn’t get any reply.

Last night, got some spare time after my daughter went to sleep. I found an irc channel for CrossOver, irc.freenode.net/#crossover .

Haha, got some suggestions from Axylus.

Remove the current installed CrossOver and Caesar III:

Then install CrossOver, and Caesar III(use Windows98 bottle).

Before running the game, Configure->Manage Bottles, select “setup_caesar_3.exe” in left, and choose “Control Panel” in right, choose “Wine Configuration”, and click “Launch Selected Item”. In “Graphics” tab, check “Emulate a virtual desktop”, Desktop size could be 800×600 and 1024×768, but for 1024×768, you should also enter the game to set it in Options->Display Settings.

It works this time! (though it’s not in full-screen mode.)

I was back to 1998!

Some other tips for CrossOver: