原创 用MYSQL創建utf-8格式的數據庫

mysql>Create DATABASE IF NOT EXISTS my_db default charset utf8 COLLATE utf8_general_ci; #my_db:是要創建的數據庫 #注意後面這句話 “COLL

原创 getRealPath()過期解決方法

request.getRealPath("") 這個方法已經不推薦使用了,那代替它的是什麼方法呢? 下面就是替代它的方法: request.getSession().getServletContext().getRealPath()

原创 Chain of Responsibility

In Object Oriented Design , the chain-of-responsibility pattern is a design pattern consisting of a source of command

原创 J2ME FileConnector相關 暫不理解

J2ME實現手機圖片上傳的小經驗 http://www.yustu.com/?viewnews-55067.html J2ME可選包FileConnection開發入門 http://www.yesky.com/319/1935819.s

原创 Decorator

<br />In object-oriented programming, the decorator pattern is a design pat

原创 Interpreter

In computer programming, the interpreter pattern is a particular design pattern. The interpreter pattern specifies how

原创 UAProf

UAProf / User Agent Profile Reference <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="te

原创 Mediator

Introduction The Mediator is a behavioral design pattern that provides a central hub to guide the interactions

原创 File Sync 擴展對象

package com.xxxxxx.xfast.js.lib; import java.io.*; import java.util.Enumeration; import java.util.Hashtable; impor

原创 oracle字段類型

Char 用於描述定長的字符型數據,長度<=2000字節 varchar2 用於描述變長的字符型數據,長度<=4000字節 nchar 用來存儲Unicode字符集的定長字符型數據,長度<=1000字節 nvarchar2 用來存儲

原创 V4L2官方實例

/*  *  V4L2 video capture example  *  *  This program can be used and distributed without restrictions.  */ #include <s

原创 sizeof union struct 內存對齊

union的sizeof問題 union  u   {    double  a;    int  b;   };       union  u2   {    char  a[13];    int  b;   };      

原创 Iterator

The Iterator is one of the simplest and most frequently used of the design patterns. The Iterator pattern allows you to

原创 國母當是蘿莉

有一個男人 ,他19歲娶了18歲的女友、 24歲時和只有18歲的祕書交往並結婚 28歲見到1歲歲的女嬰,開始光源氏計劃、 在31歲到日本 旅行認識一名15歲的女僕,隔年認識10歲的蘿莉, 在日本旅行期間就周旋於女僕和蘿莉之間,38

原创 Symbian Cpp基礎語法要點(1)

There are two places in Symbian OS where you can create objects: the heap and the program stack. In Symbian OS, classes