it-e-06 System Software

Software refers to computer programs. Programs are the instructions that tell the computer how to process data into the form you want. There are two kinds of software: system software and application software.
System software is a collection of programs that enables application software to run on a computer system's hardware devices, it is background software and includes programs that help the computer manage its own internal resources.
Application software is a specialized programs that enables the user to accomplish specific tasks. In this text, we mainly discuss system software.
System software consists of four kinds of programs: bootstrap loader, diagnostic routines,basic input-output system, and operating system. Among these four parts, the operating system is we most concerned with, whith helps manage computer resources. Most important operating systems are: Windows, Windows NT, OS/2, Macintosh, and Unix.

Windows gets its name because of its ability to run multiple applications at the same time, each in its own window. Windows offers graphical user interface (GUI), presents the user with graphic images of computer functions and data. It provides a standard mechanism for copying or moving information from one program to another. This mechanism, called the Clipboard, means that information created in one context is instantly reusable in another, you don't need to reenter information or work with clumsy data-transfer utilities. Windows also has DDE (dynamic data exchange) and OLE (object linking and embedding) functions. In DDE two or more applications can be linked. This way, data created in one application is automatically entered into the others. OLE, like DDE, links data between applications. Additionally, OLE allows the application receiving the data to directly access the application that created the data.
Windows NT

Windows NT is an operating system designed to run on a wide range of
powerful computers and microcomputers. It is a very sophisticated and powerful operation system. Developed by Microsoft, Windows NT is not considered a replacement for Windows.
[1]Rather, it is an advanced alternative designed for very powerful microcomputers and networks. Windows NT has two major advantages when compare to Windows:
Multiprocessing It is similar to multitasking except that the applications are run independently at the same time. For instance, you could be printing a word processing document and using a database management program at the same time. [2]With multitasking, the speed at which the document is printed is affected by the demands of the database management program. With multiprocessing, the demands of the database management program do not affect the printing of the document.Networking In many business environments, workers often use computer to communicate with one another and to share software using a network. This is made possible and controlled by special system software. Windows NT has network capabilities and security checks built into the operating system. This makes network installation and use relatively easy. OS/2 OS/2 stands for Operating System/2. It was developed jointly by IBM and Microsoft
Corporation. OS/2 has many similarities with Windows NT. It is designed for very powerful microcomputers and has several advanced features. Some of its advantages over Windows NT
Minimum system configuration Like Windows NT, OS/2 requires significant memory
and hard disk space. However, OS/2 requires slightly less.
Windows application Like Windows NT, OS/2 does not have a large number of
application programs written especially for it. OS/2 can also run Windows programs, but it runs these programs slightly faster than Windows NT.
Common user interface Microcomputer application programs written specifically for
Windows NT, as well as for OS/2, have consistent graphics interfaces. Across applications, the user is provided with similar screen displays, menus, and operations. Additionally, OS/2 offers a consistent interface with mainframes, minicomputers, and microcomputers. Macintosh Operation System The Macintosh Software, which runs only on Macintosh computers, offers a high-quality graphical user interface and is very easy to use. Apple Macintosh System 7.5 designed for Apple computers using Motorola's PowerPC microprocessor, is a significant milestone for Apple. It is a very powerful operating system like Windows NT and OS/2. System 7.5 has  network capabilities and can read Windows and OS/2 files. It has several

Ease of use The graphical user interface has made the Macintosh popular with many
newcomers to computing. This because it is easy to learn.
Quality graphics Macintosh has established a high standard for graphics processing. This is a principal reason why the Macintosh is popular for desktop publishing. Users are easily able to merge pictorial and text materials to produce nearly professional-looking newsletters, advertisements, and the like.

Consistent interfaces Macintosh applications have a consistent graphics interface. Across all applications, the user is provided with similar screen displays, menus, and operations. Multitasking Like Windows, Windows NT, and OS//2, the Macintosh System enables you to do multitasking. That is, several programs can run at the same time.
Communications between programs The Macintosh system allows applications programs
to share data and commands with other applications programs.

Unix was originally developed by AT&T for minicomputers and is very good for
multitasking. It is also good for networking between computers. Unix initially became popular in industry because for many years AT&T licensed the system to universities for a nominal fee. It is popular among engineers and technical people, with the arrival of very powerful microcomputers, Unix is becoming a larger player in the microcomputer world. Unix can be used with different types of computer systems, that is, it is a portable operating system. It is used with microcomputers,
minicomputers, mainframes, and supercomputers. The other operating systems are designed for microcomputers and are not nearly as portable. It also has the advantages of multitasking, multiprocessing, multiuser, and networking.

Continue reading it-e-06 System Software

mysql dump 乱码问题


明明设置了--default-character-set=utf8 任然如此,网上搜了些文章,例如


"D:\Program Files\MySQL\MySQL Server 5.5\bin\mysqldump.exe" --user=root --password=root --default-character-set=gbk --skip-opt --add-drop-table --set-charset --dump-date --result-file=data.sql test

这样导出的结果编码才是正确的。(注意不要丢掉--skip-opt 选项)




when character_set_system differs from character_set_server or character_set_client, and you input characters manually (as database object identifiers, column values, or both), these may be displayed incorrectly in output from the client or the output itself may be formatted incorrectly. In such cases, starting the mysql client with --default-character-set=system_character_set—that is, setting the client character set to match the system character set—should fix the problem.


Continue reading mysql dump 乱码问题

it-e-07 embedded system

An "embedded system" is a special-purpose computer system, which is completely encapsulated by the device it controls. An embedded system has specific requirements and performs pre-defined tasks, unlike a general-purpose personal computer.

Two major areas of differences are cost and power consumption. Since many embedded systems are produced in the tens of thousands to millions of units range,reducing cost is a major concern. Embedded systems often use a (relatively) slow processor and small memory size to minimize costs. The slowness is not just clock's speed. The wholearchitecture of the computer is often intentionally simplified to lower costs. For example,embedded systems often use peripheralscontrolled by synchronous serial interfaces, which are ten to hundreds of times slower than comparable peripherals used in PCs. Programs on anembedded system often must run with real-time constraints with limited hardware resources:often there is no disk drive, operating system, keyboard or screen. A flash drive may replace rotating media, and a small keypad and LCD screen may be used instead of a PC's keyboard and screen. Firmwareis the name for software that is embedded in hardware devices, e.g. in one or more ROM Flash memory IC chips. Embedded systems are routinely expected to maintain 100% reliability while running continuously for long periods of time, sometimes measured in years.
Firmware is usually developed and tested to much stricter requirements than is general purposesoftware (which can usually be easily restarted if a problem occurs). In addition, because the embedded system may be outside the reach of humans (down an oil well borehole, launched intoouter space, etc.), embedded firmware must usually be able to self-restart even if some sort of catastrophic data corruption has taken place. This last feature often requires external hardware assistance such as a watchdog timer that can automatically restart the system in the event of a software failure.


There are many different CPU architectures used in embedded designs. This in contrast to the desktop computer market, which as of this writing (2003) is limited to just a few competing architectures, mainly the Intel/AMD x86, and the Apple/Motorola/IBM PowerPC, used in the Apple Macintosh. One common configuration for embedded systems is the system on a chip, an application-specific integrated circuit, for which the CPU was purchased as intellectual property to add to the IC's design.

Continue reading it-e-07 embedded system

读书笔记:Effective Java, Second Edition-5章

Item 23: Don’t use raw types in new code


raw type指没有指明类型的如List

List<String> 是 List的子类 但不是 List<Object>的子类,ArrayList<Object>才是List<Object>的子类。

List.class,String[].class, and int.class 合法,但 List<String>.class and List<?>.class不合法。

instance操作符只能使用Raw Type  (o instanceof Set) √ , (o instanceof Set<?>) ×

Set<Object> is a parameterized type representing a set that can contain objects of  any type,

Set<?> is a wildcard type representing a set that can contain only  objects of some unknown type, 无法使用

Set is a raw type, which opts out of the generic type system.

The first two are safe and the last is not.


Parameterized type

Actual type parameter

Generic type

Formal type parameter

Unbounded wildcard type

Raw type

Bounded type parameter
<E extends Number>

Recursive type bound
<T extends Comparable<T>>

Bounded wildcard type
List<? extends Number>

Generic method
static <E> List<E> asList(E[] a)

Type token

Item 24: Eliminate unchecked warnings


Item 25: Prefer lists to arrays

数组是协变的,if Sub is a subtype of Super, then the array type Sub[] is a subtype of Super[].

如此相反的是:Generics, by contrast, are invariant: for any two distinct types Type1 and Type2, List<Type1> is neither a subtype nor a supertype of List<Type2>




Item 26: Favor generic types



private E[] elements;

// The elements array will contain only E instances from push(E).
// This is sufficient to ensure type safety, but the runtime
// type of the array won't be E[]; it will always be Object[]!
public Stack() {
elements = (E[]) new Object[DEFAULT_INITIAL_CAPACITY];


// Appropriate suppression of unchecked warning
public E pop() {
if (size==0)
throw new EmptyStackException();
// push requires elements to be of type E, so cast is correct

E result = (E) elements[--size];
elements[size] = null; // Eliminate obsolete reference
return result;

Item 27: Favor generic methods

Item 28: Use bounded wildcards to increase API flexibility

PECS 原则:if a parameterized type represents a T producer, use <? extendsT>;if it represents a T consumer, use <? superT>.

// Wildcard type for parameter that serves as an E consumer
public void popAll(Collection<? super E> dst) {
while (!isEmpty())

// Wildcard type for parameter that serves as an E producer
public void pushAll(Iterable<? extends E> src) {
for (E e : src)

Item 29: Consider typesafe heterogeneous containers


// Typesafe heterogeneous container pattern - implementation
public class Favorites {
private Map<Class<?>, Object> favorites = new HashMap<Class<?>, Object>(); //以Class<?>作为键达到多种类型的目的。注意Class<?>这个特殊的形式参照Item23.
public <T> void putFavorite(Class<T> type, T instance) {
if (type == null)
throw new NullPointerException("Type is null");
favorites.put(type, instance);
public <T> T getFavorite(Class<T> type) {
return type.cast(favorites.get(type));//将Object安全的转为了绑定类型

Continue reading 读书笔记:Effective Java, Second Edition-5章















Continue reading 【转】面试官心得

openfire 插件开发






在3.6.4中,最终打成的包是.jar( zip格式),penfire启动后会解压缩生成目录,可看到插件被作为一个jar包放在lib目录下。所以只要第一次使用build命令打包,在以后直接将工程打成jar包放到lib目录下即可:测试是可行的。











将我们的插件以文档(documentation\docs\plugin-dev-guide.html#Using the Openfire Build Script)规定的格式存放,

Plugin Structure

 |- plugin.xml      <- Plugin definition file
 |- readme.html     <- Optional readme file for plugin
 |- changelog.html  <- Optional changelog file for plugin
 |- logo_small.gif  <- Optional small (16x16) icon associated with the plugin (can also be a .png file)
 |- logo_large.gif  <- Optional large (32x32) icon associated with the plugin (can also be a .png file)
 |- classes/        <- Resources your plugin needs (i.e., a properties file)
 |- lib/            <- Libraries your plugin needs
 |- src/
     |- database    <- Optional database scripts for your plugin
     |- java        <- Java source code for your plugin
     |   |- com
     |       |- mycompany
     |           |- *.java
     |- web
         |- *.jsp      <- JSPs your plugin uses for the admin console
         |- images/    <- Any images your JSP pages need (optional)
         |- WEB-INF
             |- web.xml    <- Optional file where custom servlets can be registered


然后在其build文件夹中可找到build.xml,使用如下命令可单独编译单个plugin,但应在编译单个plugin之前至少运行一次plugins任务,负责无法编译单个plugin,报错为lib文件夹找不到,webapp目录找不到 :

ant plugin -Dplugin=myplugin


如果你在eclipse中,可右键点击build.xml, run as/Ant Build …/ 注意是三个点的那个才有更多选项。






Continue reading openfire 插件开发



2011-04-21 23:43 | 25977次阅读 | 来源:CSDN编译 【已有60条评论】发表评论

关键词:HTML5 | 作者:子曰 | 收藏这篇资讯

[CSDN编译]HTML5是近十年来Web开发标准最巨大的飞跃。和以前的版本不同,HTML5并非仅仅用来表示Web内容,它的新使命是将 Web带入一个成熟的应用平台,在HTML5平台上,视频、音频、图象、动画以及同电脑的交互都被标准化。对于广大开发人员和设计者,究竟该如何入手 HTML5及获取相关的国外最新资源。以下是广大HTML5技术爱好者学习和参考相关技术不可错过的12家外网,它们或是采用HTML5技术开发出的案例,或是HTML5相关的学习资源,供国内的开发人员参阅。

(1)HTML5 Labs


(2)HTML5 – Wikipedia

维基百科对HTML5的介绍包括了它的历史、特性、与HTML4.01和XHTML 1.X的异同、HTML5的LOGO、参考资料、深度阅读及相关的链接等等。

(3)Apple – HTML5


(4)Youtube HTML5 Beta(需翻墙)


(5)Dive into HTML5 by Mark Pilgrim

这是一本Mark Pilgrim写的介绍HTML5的畅销书籍,内容包括关于HTML5你不得不知的5件事、HTML5的历史、HTML5包含的元素、视频演示以及更多的使用技巧等等。

(6)HTML 5 Cheat Sheet (PDF) – Smashing Magazine(关于HTML5资料的PDF文档精华 )

(7)HTML5 Rocks(需翻墙)

HTML5 Rocks的内容包括了HTML5的演示、视频、如何使用HTML5的API、基础进阶教程等等。

(8)World’s Biggest PacMan


(9)HTML5 Gallery


(10)HTML5 Demos


(11)W3Schools HTML5

在W3Schools HTML5,“私人教师”会向你介绍HTML5最新的特性以及如何应用它们。此外,(12)Gury (需翻墙)也是HTML5爱好者不可错过的。

Continue reading [转csdn文章]学习HTML5不可错过的12家国外网站(组图)


Total views.

© 2013 - 2019. All rights reserved.

Powered by Hydejack v6.6.1