2008年10月21日 星期二

電力電容 耐高壓電容 大容量電容

電力電容

耐高壓電容

大容量電容

2008年10月20日 星期一

CSS selectors

group selector ','
h1, h2, h3 {...}

contextual selector ' '
p em {...}

child selector '>'
p > span {css ...} : only the 'span' which is child of 'p' will apply the embraced css

universal selector '*'
p * span {css ...} : the 'span' under all kids of 'p' will apply the embraced css but the 'span' which is the kid of 'p' will not!

adjacent limb selector '+'

2008年9月21日 星期日

Ubuntu代號

Jaunty Jackalope: Ubuntu 9.04
hardy : Ubuntu8.06?
gutsy : Ubuntu7.10
feisty: Ubuntu7.04


[ref] http://zhuaxia.spaces.live.com/Blog/cns!71787D3A37FFC48A!284.entry
" ... Debian的开发代号来源于电影《玩具总动员》, 脱胎于Debian的Ubuntu,其开发代号同样很有意思... "

Install codeblocks on Ubuntu

Prerequisites:

//=== wx2.6
1. sudo apt-get install build-essential
2. sudo apt-get install gdb
3. sudo apt-get install libwxgtk2.6-0
4. sudo apt-get install libwxgtk2.6-dev wx2.6-headers wx-common
5. sudo apt-get install wx2.6-doc

step 1-5 in one command
sudo apt-get install build-essential gdb libwxgtk2.6-0 libwxgtk2.6-dev wx2.6-headers wx2.6-doc wx-common

//=== wx2.8
Add deb http://apt.wxwidgets.org/ edgy-wx main
or deb http://apt.wxwidgets.org/ feisty-wx main
to your sources.list.

sudo nano /etc/apt/sources.list
deb http://apt.wxwidgets.org/ gutsy-wx main
deb-src http://apt.wxwidgets.org/ gutsy-wx main

wget http://apt.wxwidgets.org/key.asc
sudo apt-key add key.asc


sudo apt-get update

sudo apt-get dist-upgrade

sudo apt-get install libwxgtk2.8-0 libwxgtk2.8-dev wx2.8-headers wx-common


//===
Install codeblocks:
1. Download the tar.gz file to your computer and extract the files to an empty directory, such as one called temp for example.

tar xvf CB_date-of-build_revision-number_Ubuntu6.10+7.04_wx2.8.4.tar.gz

2. Install all the packages at the same time.

sudo dpkg -i *.deb

The packages can be installed individually, if you prefer not to install everything. The first package to install is libcodeblocks0 followed by the codeblocks package. All the other packages are optional.
If you want to install the wxsmith and/or contrib packages, you must install the libwxsmithlib0 package first.

[ref] http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_nightly_build_on_Ubuntu

C++ IDE tools for Ubuntu

http://en.wikipedia.org/wiki/Comparison_of_integrated_development_environments

CodeLite
Codeblocks
Code::Blocks?
Geany(only for KDE?)
Eclipse
(? Eclipse for C++ is ok, but not so good as Eclipse for Java?)

2008年8月22日 星期五

Mono installation on Linux

Using Package Management Systems for linux such as RPM, Red Carpet, Yum, Deb, Portage, Fink, DarwinPorts ...
1. RPM:

  • download and unzip mono-all.zip
  • sudo rpm -Uvh *rpm


2. Yum
Yum, another RPM compatible system is found in Fedora based distributions and can be used to install Mono and dependencies.

On Fedora Core 3, Putting the mono.repo (http://www.go-mono.com/download/fedora-3-i386/mono.repo) file in /etc/yum.repos.d will allow you to install mono and related packages.

3. Deb and Portage
Mono can be usually found in Debian (http://pkg-mono.alioth.debian.org/) (Debian, Ubuntu distributions) and Portage (http://www.gentoo-portage.com/dev-lang/mono) (Gentoo) systems.
These package system are not compatible with RPM based system.

http://packages.ubuntu.com/gutsy/mono
http://pkg-mono.alioth.debian.org/

Installing Mono 1.9.1 on Ubuntu 8.04 Hardy Heron
http://tempvariable.blogspot.com/2008/04/installing-mono-191-on-ubuntu-804-hardy.html
If you want to use them add this to your /etc/apt/sources.list:
deb http://debian.meebey.net/etch-backports /

http://www.go-mono.com/archive/1.9.1/


4. mono-gmcs (C#2.0 compiler)
http://packages.ubuntu.com/gutsy/devel/mono-gmcs


[ref] http://www.mono-project.com/Getting_Mono

Mono spec

ECMA standard ECMA-335 (http://www.ecma-international.org/publications/standards/Ecma-335.htm) .
Common Language Infrastructure(CLI) == Common Language Runtime(CLR)??


Common Language Specification(CLS)
This is specified in ECMA-335 ,chapter 6. It defines the interface to the CLI



ECMA Standard 334 (http://www.ecma-international.org/publications/standards/Ecma-334.htm) , the C# language specification.

ECMA Standard 335 (http://www.ecma-international.org/publications/standards/Ecma-335.htm) , the Common Language Infrastructure.


Managed and Unmanaged Code
Within a native .NET/Mono application, all code is managed ; that is, it is governed by the CLI's style of memory management and thread safety.

.NET/Mono applications can use legacy code, which is referred to as unmanaged , by using the System.InterOpServices libraries to create C# bindings.
Many of the libraries which ship with Mono use this feature of the CLI; in particular, the Gtk# libraries are C# wrappers around the underlying C libraries.