瀏覽器多重使用者模式 — 如何在一台電腦使用多組帳號上網,讓家人各自擁有自己的書籤(我的最愛)

十二月 28, 2011

Chrome瀏覽器

使用版本:16.0.912.63

Windows XP command 設定方法

Chrome所在目錄\chrome.exe"  -user-data-dir=使用者資料目錄

範例:
"C:\Documents and Settings\test\Local Settings\Application Data\Google\Chrome\Application\chrome.exe" –user-data-dir=c:\ChromeData\test

 

Firefox瀏覽器

使用版本:8.0

Windows XP command 設定方法

"firefox.exe" –P 使用者名稱

範例:

"C:\Program Files\Mozilla Firefox\firefox.exe" -P test

Java API 整理

九月 24, 2011
API套件 說明
Aache Common

Components

Attributes
Runtime API to metadata attributes such as doclet tags.

BCEL
Byte Code Engineering Library – analyze, create, and manipulate Java class files

BeanUtils
Easy-to-use wrappers around the Java reflection and introspection APIs.

Betwixt
Services for mapping JavaBeans to XML documents, and vice versa.

BSF
Bean Scripting Framework – interface to scripting languages, including JSR-223

Chain
Chain of Responsibility pattern implemention.

CLI
Command Line arguments parser.

Codec
General encoding/decoding algorithms (for example phonetic, base64, URL).

Collections
Extends or augments the Java Collections Framework.

Compress
Defines an API for working with tar, zip and bzip2 files.

Configuration
Reading of configuration/preferences files in various formats.

Daemon
Alternative invocation mechanism for unix-daemon-like java code.

DBCP
Database connection pooling services.

DbUtils
JDBC helper library.

Digester
XML-to-Java-object mapping utility.

Discovery
Tools for locating resources by mapping service/reference names to resource names.

EL
Interpreter for the Expression Language defined by the JSP 2.0 specification.

Email
Library for sending e-mail from Java.

Exec
API for dealing with external process execution and environment management in Java.

FileUpload
File upload capability for your servlets and web applications.

IO
Collection of I/O utilities.

JCI
Java Compiler Interface

JCS
Java Caching System

Jelly
XML based scripting and processing engine.

Jexl
Expression language which extends the Expression Language of the JSTL.

JXPath
Utilities for manipulating Java Beans using the XPath syntax.

Lang
Provides extra functionality for classes in java.lang.

Launcher
Cross platform Java application launcher.

Logging
Wrapper around a variety of logging API implementations.

Math
Lightweight, self-contained mathematics and statistics components.

Modeler
Mechanisms to create Model MBeans compatible with JMX specification.

Net
Collection of network utilities and protocol implementations.

OGNL
An Object-Graph Navigation Language

Pool
Generic object pooling component.

Primitives
Smaller, faster and easier to work with types supporting Java primitive types.

Proxy
Library for creating dynamic proxies.

Sanselan
A pure-Java image library.

SCXML
An implementation of the State Chart XML specification aimed at creating and maintaining a Java SCXML engine. It is capable of executing a state machine defined using a SCXML document, and abstracts out the environment interfaces.

Transaction
Implementations for multi level locks, transactional collections and transactional file access.

Validator
Framework to define validators and validation rules in an xml file.

VFS
Virtual File System component for treating files, FTP, SMB, ZIP and such like as a single logical file system.

Git 相關網站

九月 23, 2011
下載元件 說明
Git 官方網站  
Tortoisegit Windows 下Open source Git Client

Hibernate org.hibernate.LazyInitializationException問題

五月 14, 2011

在使用Hibernate時在某些情況會發生 org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role,十什麼原因造成的?該如何解決?

發生原因:
1. Lazy功能預設為true啟動
2. Session已經Close
由於Lazy功能會讓Object在真的需要使用時才會像資料庫讀取資料,假設我們已經Session關閉後,要取得Object相關聯的外部物件就會發生此Exception。

解決辦法1: 將Lazy設為false,但校能可能會不好

解決辦法2: 在關閉Session前使用Hibernate.initialize(物件),纖纖物件容器載入。

Joomla Extensions Developer (Joomla 擴充套間開發)

三月 21, 2011

要開發Joomla套件之前首先要弄懂Model, Component, template, Plugin的差異。

Template 簡單說是是用來定義畫面呈現的樣板。
Model 簡單說是小區塊的功能模組,顯示在頁面中飛主要區塊,如顯示在選單區。
Component 簡單說是整頁的功能組件,顯示在頁面的主要區塊,也就是Template的主要區塊中。
Plugin 簡單說是直接擴充Joomla核心的服務。Plugin是與事件相關的,當某一事件發生時,Joomla會觸發事件相關的Plugin實行相關作業。

Java Swing 應用程式基本撰寫步驟

三月 17, 2011

1. 建立新的Class繼承java.swing.JFrame,配置好各個GUI元件的位置等設定

     ex:

public TestFrame extends java.swing.JFrame
{
    public TestFrame()
    {
        //配置Components
    }
}

2.建立各自GUI 元件事件的Event Handler Class實作特別的Listener

ex:

private class TextFieldHandler implements ActionLister
{
   public void actionPerformed(ActionEvent e)
    {
        //Components行為處理
    }
}

3. 將各自GUI 元件事件Object註冊到各自GUI 元件Object的Listener

ex:

public TestFrame extends java.swing.JFrame
{
    public TestFrame()
    {
        //配置Components
       TextField textfield1=TextField();
       
       //為各自Components註冊設定Event Handler
       TextFieldHandler textfieldhandler1=new TextFieldHandler ():
       textfield1.addActionLister(textfieldhandler1) ;
    }
}

Java GUI 基本開發套件

三月 17, 2011
AWT AWT (Abstract Windows Toolkit),在 J2SE 1.2版開始支援的GUI套件,是JFC (Java Foundation Classes)其中之一成員,其package為 java.awt 。AWT是基於作業系統的繪圖能力來繪製元件(作業系統的原生API),但會有跨系統環境中外觀不一致的問題。已被後起的Swing漸漸替代。
Swing () Swing是純Java撰寫的GUI API,Swing架構建立在AWT基礎,是JFC (Java Foundation Classes)其中之一成員,其package為 javax.swing 。Swing解決AWT跨系統環境中外觀不一致的問題,現今多利用Swing取代AWT來開發GUI程式。
   

Joomla 參考資料

三月 16, 2011

Joomla是一個面費架站軟體,使用授權為免費開放原始碼自由軟體 GPL。使用PHP, Apache Http Server, MYSQL組成。

Joomla中文站台

網站 說明
Joomla!台灣 Joomla 台灣社群
Joomla!123 Joomla 台灣架站教學
Joomla 藏經閣 Joomla 台灣繁體翻譯者Eddy的Blog
Joomla吧 大陸站台
Joomlagate 大陸站台
Joomlait 大陸站台,以免費套件下載為主
Joomlask 大陸站台
Autoit 大陸站台
Joomlafans 大陸討論區站台
囧啦 大陸站台,有不少套件資訊
Joomer 大陸站台

Joomla教學

網頁 說明

joomlatutorials.com

國外教學網站,內有Joomla開發教學
Build the joomla website 國外教學站台
Joomla相關電子書下載 大陸Joomla8站台

Joomla設定

網頁

如何建立一個安全的Joomla展示站台

 

Joomla開發文件

網頁 說明

Joomla!開發線上資源整理

Joomla 繁體翻譯者Eddy整理的開發資源連結

Joomla! Official Documentation

Joomla官方網站 快速入門文件
Joomla Documentation Developer Joomla官方網站 開發文件

Joomla說明

網頁

Joomla預設基本Plugin介紹

 

架站工具

網頁 說明

XAMPP

一套包含PHP, PERL, Apache Http Server, Apache Tomcat Server, MYSQL, PHPMyAdmin等多套網站相關套件。

 

 

如何修改Windows服務

三月 12, 2011

 

使用程式sc.exe

sc create test binpath= "D:\DevPlan\Apache HTTP Server 2.2\bin\httpd.exe" displayname=testDescript

phpmyadmin安裝設定

三月 12, 2011

phpmyadmin是一套以PHP撰寫的網頁版MYSQL管理系統

如何安裝phpmyadmin 2.11.2

    1.安裝Web Server:Apache or IIS
    2.將PhpMyAdmin放到Web Server目錄下
    3.Copy phpmyadmin目錄下config.samle.inc.php==>config.inc.php
    4.重新啟動Web Server

如何修改phpmyadmin登入資料庫帳號密碼詢問方式

    修改config.inc.php中
    1.每次詢問
    $cfg['Servers'][$i]['auth_type'] = ‘http’;


Follow

Get every new post delivered to your Inbox.