A Collection of Random Things

Things I come up sometime

One interesting feature of C# is that you can directly use unmanaged dlls from the managed code. There are different ways to do this, such as: 1) using a unsafe block and write unmanaged code directly. It is tested that the performance of these unmanaged codes is somewhate better than managed code. 2) use Marshall and dllimport from C# and dllexport from C++; 3) use 3rd party libraries such as swig.exe. Here I am going to introduce using dllimport because I think this is the most native way to deal with interop requirements.

Read more »

Create ASP.NET website with SignalR

From asp.net, SignalR “is a library for ASP.NET developers that simplifies the process of adding real-time web functionality to applications. Real-time web functionality is the ability to have server code push content to connected clients instantly as it becomes available, rather than having the server wait for a client to request new data.” with signalR, it is relatively easy to create a socket between frontend an backend so we can pass data bi-directionally.

Read more »

Day 5 – Yoho National Park

This is probabaly one of the most amazing days of this trip. Yesterday, we bumped into two elder couples, they told us iceline trail is one of their favorite trails and they were planning to visit it the next day. I came across this trail on TripAdvisor and saw it received 5 stars reviews, so it is on our original plan.

Read more »

Day 6 – Yoho and Jasper National Park

第五天乏善可陈,因为前面连续三天长时间长距离hiking,所以大家都非常疲劳,而且因为Jasper相当大,所以一整天基本就在赶路。
沿途到达第一个景点Columbia Icefield, 由于时间问题,我们这次只是远远的看了看,并没有停下来。继续赶路,前面停在一片叫做Athabasca Falls 的地方,比起昨天的Takakkaw 这个可以靠得更近,而且可以看到改道的河床。

Read more »

Day 4 – Lake Louise Area

Since we have climbed Plains of Six Glaciers yesterday, so we need to arrange a trip around lake Louise. After carefully consideration, we picked Mt Fairview

Read more »

第三天————Banff到Lake Louise区域

我可以说真正有趣的行程第三天才开始,按照计划,上午先去Lake Minnewaska兜了一圈, 没有留下很深的印象。开车向lake lousie的时候,赶上了大暴雨,所以只好跳过了本来要去的Johnston Canyon。到达下一个景点Moraine Lake的时候,雨已经停了,这个是开发的比较好的景点,所以湖边遍布拍照的老人小孩,旅行团。 当时有点风,所以没有拍出水平如镜场面。
不过碧绿隐隐约约倒映着湖水和远处的高山和更高的天空,一种心旷神怡之感跃然而出。

Read more »

Came from a Linux word, I was pretty comfortable with all the super user privileges such as su, sudo, along with a bunch of useful inter-machine communication tools, like ssh, scp, etc.

While windows has similar functionalists: it is possible to remote log in as a administrator, you can easily drag and drop files to a RDP connected remote machine like you do on your local desktop. It is easy to mount a network drive so it behaves like a local disk. However, running a command on a remote machine is not quite straightforward.

Read more »

I decided to write a Chinese article in my previous post. However, I had a hard time viewing and typing chinese. In Atom, all the Chinese characters are rendered as blocks. Whereas in Emacs, I can view Chinese without problem but I cannot type in anything in Chinese. After spending sometime on the internet, I finally figured out how to enable Chinese support for both of them.

Read more »

从加拿大回美国已一周有余, 一直计划着写这篇游记,无奈琐事甚多,一直拖到现在才有心情安心坐下来仔细回味那片国家公园令人窒息的美景。

Beautiful Scene

Read more »
0%