Monday, 25 June 2012

Make

1. 组成部分:
注释,依赖,命令,(循环依赖),宏定义,宏定义外置;
2. Example:
http://www.opussoftware.com/tutorial/TutMakefile.htm
# This makefile compiles the project listed in the PROJ macro
#
PROJ = project   # the name of the project
OBJS = main.obj io.obj  # list of object files 
# Configuration:
#
MODEL = s   # memory model
CC = bcc   # name of compiler 
# Compiler-dependent section
#
%if $(CC) == bcc  # if compiler is bcc
  CFLAGS = –m$(MODEL)  # $(CFLAGS) is –ms
  LDSTART = c0$(MODEL)  # the start-up object file
  LDLIBS = c$(MODEL)  # the library
  LDFLAGS = /Lf:\bc\lib  # f:\bc\lib is library directory
%elif $(CC) == cl  # else if compiler is cl
  CFLAGS = –A$(MODEL,UC) # $(CFLAGS) is –AS
  LDSTART =   # no special start-up
  LDLIBS =   # no special library
  LDFLAGS = /Lf:\c6\lib; # f:\c6\lib is library directory
%else    # else
% abort Unsupported CC==$(CC) # compiler is not supported
%endif    # endif 
# The project to be built
#
$(PROJ).exe : $(OBJS)
 tlink $(LDSTART) $(OBJS), $(.TARGET),, $(LDLIBS) $(LDFLAGS) 
$(OBJS) : incl.h 

Thursday, 21 June 2012

Show the List of Installed Packages on Ubuntu or Debian


Show the List of Installed Packages on Ubuntu or Debian

While working on the instructions for compiling MonoDevelop from source, I relied heavily on the dpkg and apt-cache commands to tell me what was already installed vs what packages were available in the repository. After completing that article it occurred to me that I should explain how to show what packages are currently installed… so here we are.
The command we need to use is dpkg –get-selections, which will give us a list of all the currently installed packages.
$ dpkg --get-selections
adduser                                         install
alsa-base                                       install
alsa-utils                                      install
apache2                                         install
apache2-mpm-prefork                             install
apache2-utils                                   install
apache2.2-common                                install
apt                                             install
apt-utils                                       install
The full list can be long and unwieldy, so it’s much easier to filter through grep to get results for the exact package you need. For instance, I wanted to see which php packages I had already installed through apt-get:
dpkg --get-selections | grep php
libapache2-mod-php5                             install
php-db                                          install
php-pear                                        install
php-sqlite3                                     install
php5                                            install
php5-cli                                        install
php5-common                                     install
php5-gd                                         install
php5-memcache                                   install
php5-mysql                                      install
php5-sqlite                                     install
php5-sqlite3                                    install
php5-xsl                                        install
For extra credit, you can find the locations of the files within a package from the list by using the dpkg -L command, such as:
dpkg -L php5-gd
/.
/usr
/usr/lib
/usr/lib/php5
/usr/lib/php5/20060613
/usr/lib/php5/20060613/gd.so
/usr/share
/usr/share/doc
/etc
/etc/php5
/etc/php5/conf.d
/etc/php5/conf.d/gd.ini
/usr/share/doc/php5-gd
Now I can take a look at the gd.ini file and change some settings around…

Wednesday, 20 June 2012

How to read code

1. Target: In order to read Code DynaMIT.
2. Tools: Source Insight
3. Understand: Wiki
4. Target Today: Understand the work flow and answer questions related with performance

Sunday, 17 June 2012

Design and Implementation of Large-Scale Distributed Agent-based Transportation Simulation

0. Introduction
1. Agent-based Structure
2. Road Network Partitioning
3. Boundary Processing
4. Communication and Synchronization
    Rules:
    (1) Based on MPI&Cluster
    (2) Group Discussion > one-by-one
    (3) Proxy and Buffer
    (4) Off-line Storage & Communication
5. Experiments and Analysis
6. Conclusion

Thursday, 14 June 2012

关于男士护肤

今天发现自己的皮肤很不好;
身体的皮肤开始长一些小红豆,
面部的痘痘逐渐退去,留下了一些小坑;
有可能已经无法根除,只能让事情不要变的更坏!
(1)皮肤分层:表皮&真皮
          表皮抵抗,真皮再生;
(2)油性皮肤
(3)对付小坑
在临床上,有经验的专业医师通常会外用维甲酸、曲酸、水杨酸等制剂来淡化色素沉着,如果是比较浅的小坑,几个月后就基本上能恢复正常肤色。但对于明显的小坑,就必须到皮肤外科或美容外科进行皮肤磨削术了。这种手术主要是对表皮和真皮乳头浅层进行削磨,使深而明显的小坑基本变平,达到治疗目的。另外,皮肤磨削术还可用于水痘等引起的瘢痕。

Saturday, 2 June 2012

男士服装学习

第一个:佐丹奴(GIORDANO
休闲,中等价格
比较喜欢,裤子休闲,价格在20-50新币左右
第二个:G2000 (U2)
都市生活,活力干练
中等价格

第三个:ESPRIT (埃斯普利特)
心态而非年龄,追求品位,中高档价位
款式设计风格并非适合我;

第四个:JACK&JONES 杰克琼斯
流行度,中等价位
很好,可以看看新加坡有没有;

另外,需要认识一些奢侈品品牌,知道自己的位置:
Hugo Boss,GianFranco Ferre, W&LT (无性别主义),GUCCI (奢侈品), Gabbana,  

comme des garcons (日本品牌),PRADA (意大利时尚), Armani, Christian Dior (古典).