2012 in review

The WordPress.com stats helper monkeys prepared a 2012 annual report for this blog.

Here’s an excerpt:

600 people reached the top of Mt. Everest in 2012. This blog got about 6,100 views in 2012. If every person who reached the top of Mt. Everest viewed this blog, it would have taken 10 years to get that many views.

Click here to see the complete report.

 

Another annual report provided by WordPress, take a look now…

A Good Post to Read About WPF, Read the Comments as well !

I receive this article from codeproject email, and…. I got the same feeling as well because the WPF is the hardest part to pick up in my current project!

Six years of WPF; what’s changed?

I only have 20 months + experience in WPF so no comment on the revolutions of WPF, but please take some time to read the comments below, it is worth to read them.

The project file {0} has been moved, renamed or is not on your computer

I face similar issue described in this post:

The project file * has been moved, renamed or is not on your computer

I am using VS2010. I have one project not recognize in solution (Unloaded and grey out), when edit the .sln file notices there are unmatched entries:

SccProjectUniqueName102 = CorrectPath\\Modules\\MyProject.csproj

SccProjectName102 = WrongPath/MyProject
SccLocalPath102 = WrongPath\\MyProject

Most of the answers on the internet tell you to delete the .suo file so you will get rid of it, I have tried but no luck, end up I decides to correct the paths manually in .sln file, like this:

Step 1/2

SccProjectUniqueName102 = CorrectPath\\Modules\\MyPorject.csproj

SccProjectName102 = CorrectPath/Modules/MyProject
SccLocalPath102 = CorrectPath\\Modules\\MyProject

Save the changes and open the solution again, Visual Studio still prompt me a warning said the ‘MyProject’ failed to load.

Step 2/2
Ok, it seems I should try the most popular solution, delete .suo …

Open solution again, and ….. No error/warning message given!

Pheeew, solved it at last.

Reminder:

You will lose your Visual Studio user settings by deleting the .suo file, like breakpoints, opened tabs, expanded/collapsed tree nodes, etc.

Keywords: .suo, .sln, Visual Studio 2010 Solution, Setting

References:

  1. The project file * has been moved, renamed or is not on your computer
  2. Hack the Project and Solution Files

Progressive JPEG

This is not a new thing, it appears since many years ago when the dial-up line still common among houses.

To be honest, I only know this kind of picture call ‘Progressive JPEG’ since today, although this kind of JPEG has been so popular since last time and fade out in recent years as the connection is more faster now.

I always prefer things that work under limited resources such as this one.

Ok, I admit that I read a very brief intro about this kind of JPEG here, that made me think better to write it down somewhere in my blog:

Quick note on why you should always use Progressive JPEGs if larger than 10KB

Great understanding with sample pictures in there!

~~~

Reference: Quick note on why you should always use Progressive JPEGs if larger than 10KB

Keywords: Slow internet connection, picture, graph

张国荣

忽然觉得需要为他留个印记。

他之前,黄家驹,陈百强的过世轰动了华人圈,可是对我感触不深,可能年纪还小。

他过世那天,我在参观朋友的宿舍顶楼房间,欣赏窗外的夜景,读漫画,聊天。。。然后听到收音机插播即时新闻,说张国荣跳楼自杀。。。

嗯,很不错的愚人节新闻。

不断重复的新闻。

难道是真的?愚人节新闻也不需要这么真实的,是吧?

十点,收听第五台整点新闻,同样的新闻还是重复在这官方电台,这一刻,我的心忽然有些有些空荡荡,不真实的感觉。

好!今天是愚人节,所以我还存有怀疑,是正常的!谁知道明天睡醒后,张国荣还在继续他的生活呢?朋友也是这样认为的!OK,我们继续我们的!

明天睡醒后,第一件事就是收听八点的电台新闻。这次是真的了。

序幕由此掀开。

其后的大腕明星陆续而来。

他们属于我的年代,都被划拉到我的年代,在我的年代圈子内,一颗颗的巨星陨落。

所谓我的年代,我们的年代,就是我们自己最熟悉,最有亲切感的,因为它是我们在这个世界上接触的第一批人,物,事,以后再接触的人,物,事,永远也不可能想第一批那样,给予我们最大的感受。

这是个改变的印记。

FRIM 半日行

三月十七参加了公司的甲洞森林局半日游,和平时自己去的不一样,这次有一个领队为我们讲解途中遇到的东西。一个相伴了二十多年,而且经常去的地方,直到现在才开始认识它,感觉以前有点睁眼瞎的感觉。 :p

这不是一篇游记,我会在这里记下当天听到的东西,因为觉得很不错一下。

~~~。~~~。~~~

开头有参观博物馆,就是那间日本兵以前拿来做指挥总部的那间,前面有一个草场空地的。在里面见识了几种木头。硬的木头颜色通常比较深,倾向深红蓝黑,而且也比较重。较软的木头颜色比较浅,入手较轻。

硬木耐久,不易腐烂,有些甚至不会被白蚁腐蚀,软木就完全掉转。家私通常用硬木,但有些也是用中硬木的,因为要在上面雕花,如:窗沿。会留意这个是因为自己有练长棍,需要知道什么样的木造出来的棍性质如何,运用时才知道要注意什么,比如坚硬的棍对上刀就比较有底。同时选棍时心里也有底。

~~~。~~~。~~~

森林里和城市的树木有些不同,森林的树木由于需要争夺生长环境,大多是少枝桠(省养分),高长直(抢光线),枝桠绿叶都尽量集中在树顶(也是抢光线养料)。而城市的树木可以是绿荫葱葱,生得不高(除了高大的树种)。

同样以十年为期,坚硬的树木直径可能只有软木树种的树木的一半,高度也及不上。因为通常软木树种的生长速度较硬木树种快。

领队给我们看两颗同时种的树(忘了有几年),一颗有一人合抱粗,另一颗则大约有双手合握粗(还要粗些)。当然较细的是硬木。

~~~。~~~。~~~

看到它表示附近有河流或水源

领队说如果看到这种紫色的叶状水果(还是叶子?忘记了),就表示附近有河流或水源,但是这种水果是有季节的。我们去的时候就看到很多这种水果挂在树上。

忘了说,这种果都是出现在树干的中间的,呵呵。

~~~。~~~。~~~

印象最深的是 Pokok Kapur,中文不懂叫什么,但我相信很多人都见过,只不过不知道而已。

它的落叶约有一寸半(1.5 inch)长,微褐色,有一明显的中轴叶茎连通叶茎和叶尖。捡起把叶尖与叶茎对折,折断中轴叶茎,叶子会释出一种味道,能驱虫。大部分市面上的驱虫药都含有这种成分。

这树的树干滑直,树身高大,没有枝桠。同种树的树冠之间没有交叉,是其一大特色,参考下图:

Still Pokok Kapur

忘了说,它的树底下有很多它的落叶,领队说这些落叶除了可以驱虫,大量的落叶也会阻止其他植物的生长,不怪得连一根草也看不到。。。

~~~。~~~。~~~

在那边有看到一种高大的树,生有板根,其板根约有一人高。当它生在山坡上时,板根一定朝向上山坡分叉生长,作固定树身之用。下次再去时可以留意这种树。

~~~。~~~。~~~

山猪不可怕,可怕的是落单的山猪(因为被自己人赶出来),脾气会很暴躁,所以看到山猪时注意是不是一只山猪而已。

~~~。~~~。~~~

成群的蘑菇通常没有毒,而只有一个蘑菇时通常那蘑菇是毒的。 (只作参考,实际情况未必如此)

~~~。~~~。~~~

Tongkat Ali 的叶子拔下来,放在掌心握拳摺到皱皱,手放开时叶子会弹开恢复原状,就好象 plastic 的五块钱酱。

~~~。~~~。~~~

还有其他的一时想不起,未能尽录。

2011 in review

The WordPress.com stats helper monkeys prepared a 2011 annual report for this blog.

Here’s an excerpt:

A New York City subway train holds 1,200 people. This blog was viewed about 4,900 times in 2011. If it were a NYC subway train, it would take about 4 trips to carry that many people.

Click here to see the complete report.

~~~~~

From me, 大脚板:

I got this auto-generated 2011 summary report from WordPress.com, just share it here.

😉

tzuhsun

Prism RegionContext become NULL when View Removed from Region

Found a bug in Prism Region Context last month and Prism team has quick fix for this that work flawless!

Thread posted: Region context set to NULL when remove any view in region

Solution : Prism v4: RegionContext lost when removing a view from a region

You can find the sample project in my thread, looks for the name “Prism_RegionContext”, and below shows the key part captured, read the comments:

Search keywords : Prism v4.0, context, region, Communicating between components, MVVM

简单 快乐 幸福

最近常看到朋友们转载这一句话:

小时候,幸福是简单的事,长大后,简单是幸福的事。

今天和朋友稍微讨论了“快乐”这东西,结果我想起了上面那个句子,可是我第一个想到的是这样的:

小时候,快乐是简单的事,长大后,简单是快乐的事。

仔细想想,好像还真有这么一句,两个版本都有。

 

挺有意思的句子。我觉得,快乐和(快乐的反义词),幸福和(幸福的反义词),永远是孖生兄弟,伴随而来。或者,我们需要一些智慧,一点运气,一些。。。,来包容它们。