2014年4月23日 星期三
2014年2月24日 星期一
An implementation of queue with socket in linux.
I have found an efficient-enough way for exchanging data between threads, and unsurprisingly the concept of `Queue' is a rough answer. To be more precise, there are more than data storage to be considered:
2013年12月28日 星期六
Implementations of singleton in C.
Singleton is usually an important and necessary pattern, no matter in any programming languages, for developing flows. The point which is cared here, is if the property could be assured consisted, could be checked by compiler.
2013年12月10日 星期二
Another private problem in C.
Rather than the private property in the C structures, the optional-private property(or usually be called as namespace) is more interesting and suffering. The situation might be, there is a big system, which contains several subsystems, each has its own interfaces to be accessed by the other subsystems, or the application if it is a library. Beside the interface, there are also some implement helper functions which are expected to be called only within the subsystem, such as callback functions, helper functions, reused code fragments... etc. As a simple example, say we have a subsystem handles socket stuff:
2013年12月5日 星期四
Private members in C.
As being a language with great possibilities, almost every concepts, no matter old or new, could be implemented by C. A quite common difficulty would be the private member in C, especially when offering a library for co-working. Here are some notes about doing the private-like members in the C structs.
2013年10月26日 星期六
An ssh session management trick with roxterm.
[2015/1/6] Edit: some modification of the script.
I used putty/pietty and putty session manager to manage and organize ssh profiles/sessions in Windows. The main reasons of choosing this combination are:
2013年10月19日 星期六
Install ubuntu 13.10 in Asus N550JV, along with windows 8.1.
** 2014/04/23 Update:
As ubuntu 14.04 LTS has been released in April 17, 2014, it is strongly recommended to install the LTS version. It is not only stabler, but also perfecter.
訂閱:
文章 (Atom)