??xml version="1.0" encoding="utf-8" standalone="yes"?> If you meet following errors below when you try to build your source code: Checking build tools versions... build/core/main.mk:72: ************************************************************ build/core/main.mk:73: You are attempting to build on a 32-bit system. build/core/main.mk:74: Only 64-bit build environments are supported beyond froyo/2.2. build/core/main.mk:75: ************************************************************ Don’t panic, just change the code: build/core/main.mk ifeq ($(BUILD_OS),linux) build_arch := $(shell uname -m) ---ifneq (64,$(findstring 64,$(build_arch))) +++ifneq (i686,$(findstring i686,$(build_arch))) and change the code in four mk files below from “+=-m64” to “+=-m32” external/clearsilver/cgi/Android.mk external/clearsilver/java-jni/Android.mk external/clearsilver/util/Android.mk external/clearsilver/cs/Android.mk LOCAL_CFLAGS += -m32 LOCAL_LDFLAGS += -m32 end.
搭徏序:
1. 安装DC+DNS服务器?br />2. 安装集群节点, 配置双网卡,域登录?br />3. 安装集盘服务?br />4. 在集节点上配置iSCSI发v?br />5. 在集节点上安装“故障转移集”功能?br />6. q行故障转移集验证和创建?br />7. xQWindows集群环境安装完毕?br />8. 在集节点上按群集方式安装SqlServer 2008?br />9. SqlServer 2008集群环境构徏完毕?br />
参考文档:
]]>
当前版本Q?.04.
q是个Open Source的,改天一定要好好观摩一番的?/div>
]]>
This How-To works with many NOKIA Mobile Phone, especially for
Nokia 3230, 6670, 6680, 6682 e 7610, 6120, Sony Ericsson Z1010, LG
U8110/8120.
First of all, we have to grant access for Mobile Phone to “dialout” group.
sudo gedit /etc/udev/rules.d/40-permissions.rules
Now we have to add to the end of file:
# NOKIA 6120
BUS==”usb”, SYSFS{idVendor}==”0421″, SYSFS{idProduct}==”002f”, GROUP=”dialout”
where 0421 and 002f could be different depending on your Mobile Phone.
To check your idVendor and idProduct, we have to type on terminal
lsusb
Bus 003 Device 009: ID 0421:002f Nokia Mobile Phones
Now, we have to reload udev permission file:
sudo /etc/init.d/udev restart
We have to add our username on group “dialout”
gpasswd -a username dialout
All basics configurations for USB Data Cable are completed. We can start installation of obexftp and obextool GUI. Obextool GUI is written for tk graphic library, so GUI not have a good design as GTK.
sudo apt-get install openobex-apps libopenobex1 obexftp obextool
If you want start obextool from terminal we have to type for the first time:
export OBEXCMD=”obexftp -t /dev/ttyACM0 -u 1″
obextool
or, we can start it simply by typing:
obextool –obexcmd “obexftp -t /dev/ttyACM0 -u 1″
When we start Obextool we can see this error message:
It seems, that your device does not support the memory status feature.
Memory status will be disabled
To solve this problem we have to set some values on obextool.cfg:
sudo gedit /etc/obextool.cfg
set ObexConfig(config,memstatus) 0
set ObexConfig(config,filemove) 0
Another error message that we can see is:
FIle ‘/FileName/’ could not be uploaded to ‘E:/Path’!
Please check your file permissions.
To solve it:
sudo gedit /etc/obextool.cfg
set ObexConfig(config,dir_slash) 1
Good Job! Now your Mobile Phone works well in Ubuntu Gutsy with ObexTool.
If we want add it as Desktop Entry:
sudo gedit /usr/share/applications/obextool.desktop
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Exec=/usr/bin/obextool –obexcmd “obexftp -t /dev/ttyACM0 -u 1″
Icon=/usr/share/icons/gnome/scalable/devices/phone.svg
Terminal=false
Name=Obextool
GenericName=
Comment=Browser your Mobile Phone
Categories=Application;Utility;
So, you can find it in your Gnome Panel over: “Applications” -> “Accessories” -> Obextool
试环境QWin2K Pro日文版,SUN J2SDK 1.5.0-beta2
l过试Q发现Shift_JIS和MS932~码的全角L线Q?#8220;?#8221;Q的~码都是 0x8160Q?6q制Q两个字节,高位在前Q。通过sun.io.ByteToCharMS932转换后得到Unicode字符'\uFF5E'Q而通过sun.io.ByteToCharSJIS转换后则得到Unicode字符'\u301C'?/p>
反之QUnicode字符'\uFF5E'通过sun.io.CharToByteMS932转换后会得到MS932~码的本地字W?x8160Q?6q制Q两个字节,高位在前Q,而Unicode字符'\u301C'通过 sun.io.CharToByteSJIS转换后也会得到Shift_JIS~码的本地字W?x8160Q?6q制Q两个字节,高位在前Q,两者的转换l果相同?/p>
l论Q在WinNT/2K/XP上,MS932和Shift_JISq两U本地字W集完全相同Q只是分别采用JDK的sun.io.ByteToCharMS932和sun.io.ByteToCharSJIS对个别特D的本地字符q行转换后所得到?Unicode字符q不一栗实际上QMS932是WinNT/2K/XP上的Shift_JISQ只是与标准版的Shift_JIS字符集相比,MS932收录了更多的字符Q比如NEC和IBM对Shift_JIS的扩展(如日文中?#8220;㊤㊥㊦㊧㊨①..?..”{等Q;然而,JDK中的 ByteToCharSJIS及CharToByteSJIS却用了标准的Shift_JIS字符集,所以部分扩展字W在从byte转换成char或是从char转换成byte时会出现qQ这的确是JDK让h非常qh的一处?br />
参考资?Q日文)Qhttp://www.asahi-net.or.jp/~ez3k-msym/charsets/jis2ucs.htm
Spring的特性:
1. 提供了一U管理对象的ҎQ可以把中间层对象有效地l织h。一个完的框架“黏合?#8221;?br />
2. 采用了分层结构,可以增量引入到项目中?br />
3. 有利于面向接口编E习惯的L?br />
4. 目的之一是ؓ了写出易于测试的代码?br />
5. 非R入性,应用E序对Spring API的依赖可以减x限度?br />
6. 一致的数据讉K介面?br />
6. 一个轻量的架构解x案?/p>
对Spring的理?br /> Spring致力于用POJOs来构建应用程序。由框架提供应用E序的基设施Q将只含有业务逻辑的POJOs作ؓlg来管理。从而在应用E序中Ş成两条相对独立发展的qU,q且在各自的抽象层面上g长了各自的生命周期?/p>
Spring的工作基是Ioc。Ioc创建对象的职责从应用程序代码剥d了框架中Q通常2中注入方式:setter ?ctor参数?br /> 每个Bean定义被当作一个POJOQ通过cd和JavaBean的初始属性或构造方法参CU方式定义的BeanQ?br /> Spring的核心在org.springframework.beansQ更高抽象层面是BeanFactory. BeanFactory是一个非常轻量的容器?/p>
关于可维护性的思?br />
Spring之类的技术确实带来了应用pȝ的可l护性的提高吗?
IocQ?AOP之类的技术,本质上都是将原本位于应用E序代码?编?逻辑Q剥d来放C配置文g中(或者其他Ş式)。主声音都是认为提高了应用E序的可l护性?/p>
但如果从以下斚w观察Q结合项目实际经验,个h感觉q些技术的应用大大降低了应用程序的可维护性,其是面对一个陌生的pȝQ或者项目h员变动频J的时候?br />
1. 中断了应用程序的逻辑Q代码变得不完_不直观。此时单从Source无法完全把握应用的所有行为?br />
2. 原本应该代码化的逻辑配置化,增加了出错的Z以及额外的负担?br />
3. 时光倒退Q失MIDE的支持。在目前IDE功能日益强大的时代,以往代码重构{让人头痛的丑֊来容易。而且IDEq提供了诸多强大的辅助功能,使得~程的门槛降低很多。通常来说Q维护代码要比维护配|文Ӟ或者配|文Ӟ代码的合体要容易的多?br />
4. 调试阶段不直观,后期的bug对应阶段Q不Ҏ判断问题所在?br />
5. 性能问题。虽说硬件性能日新月异Q但是性能也是在不l意间一点一点地失的。从汇编到高U语aQ到面向对象Q到虚拟机,一直处于这L发展势?/p>