有本书的源码是BIG5的,但Eclipse的“Text File Encoding”选项中没有“BIG5” 解决: 其实other的下拉选择框是一个ComboBox,你可以直接在里面手工输入! Refer: http://hi.baidu.com/zhuguoneng/blog/item/48a64634dc406f3c5ab5f514.html… Read More


http://www.cnblogs.com/cheney23reg/archive/2010/08/19/1803474.html 这几天看到了几个不错的Android 上的应用,心痒痒,也想探索一下Android 的世界,于是决心学习一下Android 的开发技术。 :)   接下来当然是搭建Android 的开发环境啦,步骤如下:   1. 安装JDK。注意这里只是安装JRE是不行的,需要安装JDK 笔者是去 http://www.oracle.com/technetwork/java/javase/downloads/index.html 下载了 JDK 6 Update 20。 注: 根据www.eclipse.org的官方信息,在windows 平台上安装了JDK 6 Update 21,然后运行Eclipse Helios (3.6) 会出现 crashing,需要进行一些设置 ( http://wiki.eclipse.org/FAQ_How_do_I_run_Eclipse%3F#Oracle.2FSun_VM_1.6.0_21_on_Windows ) Windows 7: 1) 双击 jdk-6u20-windows-i586.exe 进行安装 2) 安装完成后,在命令行中输入 “java -version”,若出现以下信息则表示安装成功: java version “1.6.0_20” Java(TM) SE Runtime Environment (build 1.6.0_20-b02) Java HotSpot(TM) Client VM… Read More


http://hi.baidu.com/cive/blog/item/bd4e8e82a714d0b26c81198d.html 重新安装了sql server 2008,发现sa账户无法登录,错误是233。 网上找了很多帖子, 设置了“SQL   Server和Windows身份验证模式”, 也设置了sa“启用”, 也重启了N次, 都不行, 偶然看到一个办法,一试就好了。 如下:   用Windows身份验证登录,执行SQL命令: ALTER LOGIN sa WITH PASSWORD=’新密码’, 搞定,现在终于可以用sa登录SQL管理器了。… Read More


In Microsoft Windows: In Microsoft Windows, you can use the command ipconfig /flushdns to flush the DNS resolver cache. – Start -> Run -> type cmd – In command prompt, type C:>ipconfig /flushdns In Mac OSX: In Mac OSX, you can use the command lookupd -flushcache to flush the DNS resolver cache. bash-2.05a$ lookupd -flushcache… Read More


Recursive relationships: relationships exist between entity instances of the same type. One-to-one: If we were to track which employees were married to other employees, we would expect each to be married to either zero or one other employee at any one point in time. One-to-many: It is common to track the employment “food chain” of … Read More


如班级和教师的关系由三张表来表示:班级表,教师 及 班级教师表 In particular, the logical model does not contain any many-to-many relationships. There is a simple rationale for this difference – relational databases do not directly support many-to-many relationships, so they must be transformed using an intersection entity.… Read More


select count(*) FROM [AdventureWorks].[Person].[Contact] 返回表中所有的记录的个数 select COUNT(MiddleName) from [AdventureWorks].[Person].[Contact] 返回字段中,值非空的记录的个数(重复的也算进去的)  select COUNT(distinct MiddleName) from [AdventureWorks].[Person].[Contact] 返回字段中不重复且非空的记录的个数 Result: 19972 11473 70… Read More


1.Android 四大天王:Activity(程序的界面),Intent(数据传输),Service(服务),Content Provider(数据存放) 2.产生APK安装包:Android Manifest里的Export 3.Activity的生命周期:onCreate->onStart->onResume->onPause->Other Activity’s onCreate,onStart,onResume-> onStop()(完全不可见后,才会调用,如第二个ACtivity是Dialog,则不发生),再按Back后,Other Activity’s onPause ->First Activity’s onStart->onResume, Other Activity’s onStop() , onDestroy()(再起来时一定要再有onCreate) 4. A task is a stack of Activities.… Read More


How To Change SQL Server 2008/2005 Object Schema? Problem It is not easy to change SQL Server 2008/2005 object schema (tables, stored procedures and views) to “dbo”. Here is a solution. Solution a. Execute the following SQL script in SQL Server Management Studio query window. SELECT ‘ALTER SCHEMA dbo TRANSFER ‘ + s.Name + ‘.’… Read More