自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

成不了佛,便堕落吧

不再有什么感情可说,该有的都有了,只是回味时,一切都那么的遥远

  • 博客(195)
  • 资源 (231)
  • 收藏
  • 关注

原创 JBoss 中 应用程序的log4j的配置

<br /> <br />JBoss 3.2.1 (新版本的没有试)<br />在自己的程序中想用做日志,但是与jboss的log4j配置有冲突,在自己程序中写了日志,没有记录下来。<br />似乎Jboss的log4j配置直接覆盖了自己程序的log4j配置,网上有冲突的解决办法<br />http://hi.baidu.com/xixitie/blog/item/be1a728087c1c6d39023d907.html<br />也算是有点麻烦吧,所以我想为什么不直接用jboss本身的log4j的配置呢

2010-10-27 17:03:00 1448

原创 javascript动态添加属性

<br /><br />var objectX = {};objectX.name = "Paddon"alert(objectX.name);//或者var objectX = {};name = "gender";value= "male";objectX[name]=value;alert(objectX.gender);alert(objectX[name]);

2010-10-14 11:05:00 1454

原创 ThreadLocal 与 static 变量 

<br /> <br />ThreadLocal是为解决多线程程序的并发问题而提出的,可以称之为线程局部变量。与一般的变量的区别在于,生命周期是在线程范围内的。<br />static变量是的生命周期与类的使用周期相同,即只要类存在,那么static变量也就存在。<br />那么一个 static 的 ThreadLocal会是什么样的呢?<br />看下面一个例子,<br /> <br /> <br />public class SequenceNumber { private static Th

2010-09-26 10:09:00 10557 4

原创 apache roller4 中扩展 servlet

<br /> <br />  roller是一个java开发的开源的多人blog系统,最新版本是4.0 (2010-09-25)<br />  具体的安装与配置不说,roller有教程。<br />  roller提供了搜件扩展接口,具体参考http://rollerweblogger.org/roller/entry/roller_plugins,本文只是介绍如何添加一个自义的servlet。<br />  roller通过RequestMappingFilter来管理一些servlet的调用,具体功能可

2010-09-25 17:31:00 1210

原创 一个错误"索引期间字段权重如果每个文档都设置的话,是值得的"

<br />http://wiki.apache.org/lucene-java/LuceneFAQ#What_is_the_difference_between_field_.28or_document.29_boosting_and_query_boosting.3F<br /><br />想找一个公式来计算权重,查找的时候,无意发现了段话“索引期间字段权重如果每个文档都设置的话,是值得的”,开始没注意,不过旁边给出了原文的链接,就跳过去看了下,原文如下<br />Index time field bo

2010-09-19 16:21:00 1272 1

原创 Eclipse 3.5 设置Run Last Lunched 快捷键

<br /> <br />Eclipse 3.2 有一个 Run last Lunched 的快捷键,即运行最后一次运行的项目,这样在改某个配置时,可以一个快捷键下去,而不需要用鼠标点,<br />但是3.5中,没有这个选项了,查了下面的网址,可以通过下面方式修改, <br />windows --> preference-->Run/Debug --> Launching<br />里面有个Launch Operation, 选第一个 Always launch the previously launch

2010-09-10 17:02:00 2123

原创 C# Form.Hide()后再 Show()时,Dock不为 none的 控件将不会显示。

<br /> <br />  具体原因不是很清楚,查看了下 Control 的源码, Hide 和Show方法只是改变了 Visible属性,然后看了下OnVisibleChanged方法,里面的内容比较多,我就没细看,想来也是控制其上的子控件的 visible属性,但没看到与 dock有何关系。<br />  <br />  解决的方法就是设Dock值为 none, 如果想随窗体大小改变而改变时,可以在窗体的 onSizeChanged事件中改变相应控制的大小。<br />  <br />  其实,只要窗

2010-09-08 16:23:00 3537 1

转载 c# 杀死进程与子进程

<br />http://www.cnblogs.com/TianFang/archive/2010/05/19/1739614.html<br /> <br />正好碰到这位一样的问题,就直接转过来了<br /> <br />这是个我在C#调用批处理文件时遇到的问题。首先我通过Process.Start方法调用一个批处理文件,那个批处理文件里面则调用了一大堆程序。当退出C#程序时,我在程序中结束杀掉了那个批处理文件的Process,但是,那个批处理所调用的子进程却无法像直接调用批处理文件那样随着批处理文件

2010-09-08 10:23:00 3794

转载 Web UI 设计命名规范

<br />文章分类:Web前端<br />最近工作实在是繁忙,所以好久没有更新自己的博客了。今天好不容易闲下来半天,所以和大家分享一下我之前总结的一套Web UI 设计命名规范,也就是网站用户界面设计(俗称网页设计)命名规范。<br />这套规范并非单纯的CSS、html或JavaScript命名规范,它涉及了很多使用PhotoShop这类设计工具进行网页设计过程中的命名规范。(好久没写文章了,有点罗嗦,吼吼~)。毕竟设计师也是技术团队的成员,而且前端开发工程师是要使用设计师的效果图源文件的,所以统一命名

2010-09-07 14:48:00 1326

原创 C# 用匿名委托的方式简化Thread 和 Controle.Invoke的写法

<br /> 1. Thread<br />C# 程序中,如果要新建一个 Thread 的话,一般需要另建一个 方法,如果要传参数的话,需要的步骤比较麻烦,<br />参考一<br />Thread oThread = new Thread(new ThreadStart(threadMethod));  <br />private void threadMethod(){<br />..<br />};<br />如果要向线程传递参数<br />public static void myStaticPar

2010-09-06 17:14:00 14889

原创 android 中,用 HttpClient 抛出异常 SocketException

<br /> <br />把连接的时间设长点就可以解决了,<br /> int timeoutSocket = 10000;<br />  HttpConnectionParams.setSoTimeout(httpParameters, timeoutSocket);<br />  client = new DefaultHttpClient(httpParameters);

2010-08-03 09:11:00 1870

原创 java.lang.UnsatisfiedLinkError: 动态库 : 动态库:only ET_DYN and ET_EXEC can be loaded

http://topic.csdn.net/u/20100721/09/e066d629-f81e-4564-a939-16a7db165422.htmllinux加载动态库错误解决方法是将打包过程中g++ -fpic -I/usr/java/jdk1.6.0_19/include/ -I/usr/java/jdk1.6.0_19/include/linux/ -shared -o libkeyboard_encrypt_64.so -c keyboard_encrypt.c  修改成为了g++ -fpic

2010-07-26 09:27:00 3940

原创 The import com.sun.tools cannot be resolved

It's in the lib directory of the JDK, not the JRE. You'll need the JDK if you're going to develop Java programs!需要设定 jdk 为 lib 目录,而不是 jre为 lib目录http://www.codeguru.com/forum/showthread.php?threadid=493354

2010-07-16 10:21:00 11342

原创 cas 单点注销

<br />cas-server-3.3.2<br />roller 4.0.1<br />acegi-security.10.3-sample-tutorial.war<br />cas-client-core-3.1.3.jar cas-client-3.1.3-release.zip的modules目录下<br />cas 地址为 http://p.cn:8080/cas<br /> <br />上一篇是单点登录 http://blog.csdn.net/laorer/archive/2010/06/

2010-07-14 14:57:00 8863

原创 roller 与 cas 的整合

 roller 4.0.1 cas-server-3.3.2  还需要下载  cas-client-java-2.1.1 所有过程是在 winxp下完成的,linux是不是有什么不同不清楚,不过大概的过程应该差不多吧1.cas 的部署  cas部署直接把 modules 下的cas-server-webapp-3.3.2.war改名为 cas.war 放到tomcat的webapps目录下就行了,但在这之前需要配置ssl  1) 生成服务端密钥  cmd 进入到 %CATALINA_HOME% 目录下,  

2010-06-30 16:36:00 2196

原创 android 下修改 hosts文件 及 out of memory的解决

<br /><br /> <br />需要使用 android模拟器访问某个网站,其实是指向开发机器上的,这时需要修改 andorid上的 hosts文件,<br />下面这个网站介绍了方法<br /> <br />http://www.hiapk.com/bbs/thread-63992-1-1.html<br /> <br />具体步骤如下<br />1、获得root权限:adb root<br /> <br />2、设置/system为可读写:adb remount<br /> <br />3、将ho

2010-06-10 10:21:00 10407 2

原创 Skype 的在线状态 代码

<br /><br />最近想找些 skype的状态代码,搜了一些,要么是固定图片的,要么虽然可以动态显示状态信息的图片,但图片太大了<br />下面是官方的skype在线状态生成网址 http://www.skype.com/intl/en-us/tell-a-friend/get-a-skype-button/<br /> <br />最终生成的代码如下<br /> <br /><a href="skype:account?call"><img src="http://mystatus.skype.co

2010-06-03 13:27:00 2161

原创 关于 ListView layout_width

  listView中文字被选中时,如何使显示的选中高亮的宽度是整行?需要指定 layout_width 为一个具体的数值,或者为fill_parent如下:    android:layout_width="160px"     android:layout_height="fill_parent" android:scrollbars="vert

2010-05-17 15:57:00 1863

原创 在代码中设置 layout_width、layout_height

layout_width layout_height 可以直接在 xml中设置,比如<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"; android:orientation="vertical" android:layout_width="fill_parent"

2010-05-17 13:47:00 14317 1

原创 WARNING: Application does not specify an API level requirement!

 需要在 AndroidManifest.xml中加上  这个节点是 manifest节点的直接子节点 也可以在 eclipse(装了 ADT) 中用 android manifest editor 打开, 在Manifest Extras 中选中 Uses Sdk,右边再在 Min SDK version 中填上 7 (android sdk 2.1) 参考:

2010-05-12 11:07:00 2313 1

原创 Description Resource Path Location Type missing required source folder: 'gen'

Eclipse 新建一个 android项目时,如果出现 Missing required source folder:gen,删掉 gen目录下的 R.java 参考: http://www.blogjava.net/crazycoding/archive/2010/03/27/316701.html

2010-05-12 10:16:00 10885

原创 解决安装程序在win7/vista安装时出现2869的错误

 vs2005生成安装程序时,想要加入一些动作,比如在安装完成之后弹出一个窗口,或者在结束安装后运行程序,这时需要使用CustomAction,具体操作参见 Vs2005安装程序完成后,自动启动程序  http://blog.hjenglish.com/optop/articles/1208387.html   How can I customize an MSI in the Visual

2010-05-07 15:08:00 12511 2

原创 C#中 foreach最好不要用在多线程中

 最近碰到一个问题,需要对一个数组的每个元素在线程上操作,使用了如下的代码:      private void ForeachThread(int[] arr)        {            foreach (int a in arr)            {                new Thread(delegate() { Console.WriteLine("

2010-05-04 15:18:00 6180 4

原创 C#跨线程调用窗体控件

在使用多线程可能会碰到跨线程调用 Control的属性与方法,但这时通常会报"Cross-thread operation not valid"的异常,解决方法也简单,可以看下 参考1. 大部分的方法是建立一个delegate,然后判断InvokeRequired并新建一个delegate, 但这种方法比较烦琐,多出了比较多的步骤.后来google时,找到了参考2. 里面使用了匿名方法,有

2010-05-04 14:01:00 1473

原创 C# winform Panel 获取滚轮事件

使用 Panel 做为控件容器时,设置 Panel.AutoScroll=true时,在适当的时候将会出现滚动条,但是只能通过拖动滚动条来调整滚动条的位置,如果想要用鼠标中间键来控制滚动条的位置,可以通过下面几步来完成1.在构造函数中加上Panel1.MouseWheel += new System.Windows.Forms.MouseEventHandler(this.Pa

2010-04-27 17:12:00 6247

原创 C# 用正则表达式替换字符串时,要注意替换的次数

 同时在写表达式时,需要记住,如果表达式字符串前面加了@ ,则表达式中的 "." 表达的什么意思,是只想表示 "."(任意字符) 还是表示"/."(句号)另外如果有多个分组替换时, 最好加上替换的次数,否则出现的情况与所想的不一样 int cnt=0; string str = ""; string strRex = @"(?.*?)((?:/()(?/d+)(?:/)))?(

2010-04-16 11:01:00 1858

原创 页面上有 activex控件,但是就是不显示下载对话框,也不可以使用,

 检查下codebase的 url用户是否可以访问得到,如果访问不到的话,将会出现上面的情况

2010-04-08 16:07:00 857

原创 javascript 的字符串连接 join更优吗?

这个是无意中从网上看到了,打破了原来的想法,所以再帖一下,  <!--function StringBuffer() { this._strs = new Array; } StringBuffer.prototype.append = function (str) { this._strs.push(str); }; StringBuffer.protot

2010-04-02 08:07:00 1232 2

原创 gdi 画文字的一些属性

  gdi 画文字的一些属性 主要是设置 StringFormat的一些值,Trimming  主要是在不足以显示所有文字时,以怎么样的方式来显示文字, 如下(参考1)StringTrimming  成员--------------------------------------------------------------------------------  成员名称

2010-03-24 10:41:00 1645

原创 C# 调用 C++的dll文件时,参数对照

对于基本的数值类型的数据,如果是输入参数,则直接按值传递,如果是输出参数,则需要按引用传递(加ref 修饰);不论什么类型的数组,传递时实际上都是按引用传递,所以不需要再用ref修饰,否则会出错。对于传出型参数,在调用前要记得分派足够的空间。另外,short* 可以考虑要改成 byte*

2010-02-01 14:05:00 773

原创 语音的播放与压缩

 最近在做语音通信有关的东西,原来没有接触过,所以绕了好大的弯子,尤其是语音压缩与播放一块。在网上找了direct sound播放和压缩有关的内容,但是播放的时间总会有延迟,而压缩的效果也不是很好。后来找到了 朱二的一篇文章(http://zhuer.info/?p=24),用定时器机制来把数据写入到SecondaryBuffer中,这样使用定时器方式后,同时减少检查的间隔,减少secon

2010-02-01 10:34:00 1519 1

原创 C# 日期相减

http://blog.csdn.net/laorer有两种方法:直接调用 DateTime.Subtract,得到一个TimeSpan或者直接DateTime.Tricks相减,差值生成一个TimeSpan,如果想直接得到相差的秒数,可以把差值除以1000000  private static void SubDateTime() { Da

2010-01-11 13:32:00 1911

原创 C# 监听系统的语音调节

 C# 监听系统的语音调节当用户通过系统的语音调节面板调节语音时,应用程序如何监听到这种控制?这需要使用到winmm.dll中的系统函数具体代码如下  public const int MMSYSERR_NOERROR = 0; public const int MM_MIXM_CONTROL_CHANGE = 0x3D1;

2010-01-08 09:51:00 1125

原创 根据宽根据宽度来决定显示的字符串长度 (C#,VS2005)度来决定显示的字符串长度 (C#,VS2005)

 根据宽度来决定显示的字符串长度 (C#,VS2005)如果 lable长度固定但字符串长度可变,如果超过了lable显示的长度时,希望用 ...代替剩下的字符,这时需要一个函数Graphics.MeasureString具体代码如下  public string Abbreviation(string str)        {            if (str == null)

2010-01-07 10:36:00 2850

原创 使用 openfire media proxy

 htt://blog.csdn.net/laorer 用 xmpp协议完成p2p语音聊天的软件,通过jingle ice协议实现p2p(把本地的IP/Port和NAT转换后的IP/Port发送给对方),但当这两种方式行不通的时候,就需要用到 Relay服务器了,即通过服务器转发,使用Openfire 服务器的话,可以开启 Media Proxy 服务。客户端发送rtpbridge

2009-12-29 13:52:00 4215 1

原创 编写监听端口的Openfire插件

  最近需要写一个openfire插件,需要监听某个端口(以UDP协议传输的),按照照普通的方式(线程+DatagramSocket),写好之后,服务器端不再监听 5222/5223等端口了……,没查到什么解决方法,后来看了看Red5的源码,发现他的实现方式是用了mina,就换成了mina方式,打包上传,OK,成功了……代码如下  public void destroyPlugin

2009-12-22 17:34:00 2212

原创 给Openfire插件加上WEB访问功能

 最近在做与Openfire相关的内容,需要用户可以通过浏览器访问,即http://ip:7070/pluginName   7070是 openfire的 http绑定接口,在网上查了下,关于插件开发最多是 openfire开发指南(不过我还是建议英文版的http://www.igniterealtime.org/builds/openfire/docs/latest/documentati

2009-12-18 09:18:00 3498 1

原创 C#列举与网卡相关的配置信息

        public static void EnumNetworkAdapterConfiguration()        {            ManagementClass mc;            mc = new ManagementClass("Win32_NetworkAdapterConfiguration");             ManagementObj

2009-11-24 14:13:00 1157 1

原创 C# 日期型与 byte数组的转换,通过long来考虑

/// /// 将BYTE数组转换为DATETIME类型 /// /// /// public static DateTime BytesToDateTime(byte[] bytes) { if (bytes != null &&

2009-11-17 16:12:00 4919 2

原创 100个数重新乱序排列

具体问题参见: http://topic.csdn.net/u/20091027/09/db4cd117-bfbe-491f-bcb8-d54ee08c0787_2.html?seed=1203220048&r=60751960#r_60751960 100 个数乱序 #102 的算法不错这样一个长100的数组,对他进行打乱, 洗牌算法, 可以这样 for(int i = 0;

2009-10-29 09:00:00 1720

精通Apache Velocity

精通Apache Velocity.pdf 这个可能比较老了,我看了下,似乎是 1.3左右的,

2010-08-23

快速软件开发 有效控制和完成进度计划

快速 软件 开发 有效控制和完成进度计划

2010-08-20

spring-webflow-2.2.0.M1

spring-webflow-2.2.0.M1.zip

2010-08-18

Best Android Apps.pdf

Best Android Apps.pdf

2010-08-18

Solving Everyday Problems With the Scientific Method Thinking Like a Scientist

Solving Everyday Problems With the Scientific Method Thinking Like a Scientist.pdf

2010-08-18

Improve Your Written English.pdf

Improve Your Written English.pdf

2010-08-13

Hello, Android 3rd Edition.pdf

Hello, Android 3rd Edition.pdf

2010-08-13

Moodle 1.9 English Teacher's Cookbook

Moodle 1.9 English Teacher's Cookbook.pdf

2010-08-13

Manning.jQuery.in.Action.2nd.Edition.Jun.2010

Manning.jQuery.in.Action.2nd.Edition.Jun.2010.pdf

2010-08-12

Lucene-in-Action-2nd-Edition---Manning

Lucene-in-Action-2nd-Edition---Manning.pdf 英文版

2010-08-12

droiddraw-r1b13

droiddraw-r1b13.zip 通过这个工具不仅可以布局应用程序的界面,而且对我们学习应用程序的布局也是个很好的教材,其对操作的描述完全是按照Android SDK中关于界面布局的解析 http://www.moandroid.com/?p=390

2010-07-21

osworkflow-chinese-manual.pdf

osworkflow-chinese-manual.pdf

2010-07-21

IT人健康宝典V2版.pdf

IT人健康宝典V2版.pdf 从其他地方下下来的

2010-07-15

property visual map

property visual map property 的api概览图

2010-07-14

jquery visual map

jquery visual map jquery 的api概览图

2010-07-14

cas-client-3.1.3-release.zip

cas-client-3.1.3-release.zip 单点登出需要的的包

2010-07-14

Python+Tutorial+2.chm

\Python+Tutorial+2.chm

2010-07-14

apache-roller-src-4.0.1 源代码

apache-roller-src-4.0.1 源代码

2010-07-14

roller 另外要加入的 jar包

roller-other.jars.rar activation.jar mail.jar mysql-connector-java-3.1.11-bin.jar

2010-06-30

apache-roller-4.0.1

apache- roller-4.0.1

2010-06-30

Android_应用框架原理与程序开发_高焕堂

Android_应用框架原理与程序开发_高焕堂

2010-11-11

PortableGit-1.7.3.1-preview20101002.7z

PortableGit-1.7.3.1-preview20101002.7z 使用eclipse的插件egit http://download.csdn.net/source/2819827

2010-11-09

egit.0.9.3

eclipse 3.5以上版本最好, 应该支持3.6, 3.7没试,可能支持 应该还是比较好用 感觉可以直接在本地保存,而不必要连到服务器上,设置都比较简单 按照eclipse的插件方式安装, 如果要用link方式安装的话,把这个解压到一个目录,写个link文件放到dropins目录下 windows下的 git, http://download.csdn.net/source/2819852

2010-11-09

unlocking_android.pdf.pdf

Part I: What is Android—The Big Picture Chapter 1: Targeting Android Chapter 2: Development environment Part II: Learning Android’s Key Technologies Chapter 3: User Interfaces Chapter 4: Intents and Services Chapter 5: Storing and Retrieving Data Chapter 6: Networking Chapter 7: Telephony Chapter 8: Notification and Alarms Chapter 9: Graphics and Animation Chapter 10: Multimedia Chapter 11: Location Based Services Part III: Android applications for the Real Device Chapter 12: Putting it all together: A Field Service Application Chapter 13: Hacking Android Appendix: Installing the Android SDK

2010-11-03

ProgrammingInScala --draft june 13,2007

I Rationale 1 II Scala by Example 7 1 A First Example 11 2 Programming with Actors andMessages 15 3 Expressions and Simple Functions 19 3.1 Expressions And Simple Functions . . . . . . . . . . . . . . . . . . . . . . 19 3.2 Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 3.3 Conditional Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 3.4 Example: Square Roots by Newton’sMethod . . . . . . . . . . . . . . . . 23 3.5 Nested Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 3.6 Tail Recursion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 4 First-Class Functions 29 4.1 Anonymous Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 4.2 Currying . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 4.3 Example: Finding Fixed Points of Functions . . . . . . . . . . . . . . . . 34 4.4 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 4.5 Language Elements Seen So Far . . . . . . . . . . . . . . . . . . . . . . . 36 5 Classes and Objects 39 6 Case Classes and PatternMatching 51 6.1 Case Classes and Case Objects . . . . . . . . . . . . . . . . . . . . . . . . 54 6.2 PatternMatching . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55

2010-10-28

checkstyle_eclipse5.3插件 及最sun_check.rar

checkstyle_eclipse 支持eclipse3.5 有一份eclipse的格式化模板 

2010-10-25

Sams.Sams.Teach.Yourself.PHP.in.10.Minutes.Mar.2005.eBook-LiB.chm

Lesson 1. Getting to Know PHP PHP Basics Your First Script Summary Lesson 2. Variables Understanding Variables Data Types Summary Lesson 3. Flow Control Conditional Statements Loops Summary Lesson 4. Functions Using Functions Arguments and Return Values Using Library Files Summary Lesson 5. Working with Numbers Arithmetic Numeric Data Types Numeric Functions Summary Lesson 6. Working with Strings Anatomy of a String Formatting Strings String Functions Summary Lesson 7. Working with Arrays What Is an Array? Array Functions Multidimensional Arrays Summary Lesson 8. Regular Expressions Introducing Regular Expressions Using ereg Summary Lesson 9. Working with Dates and Times Date Formats Working with Timestamps Summary Lesson 10. Using Classes Object-Oriented PHP What Is a Class? Creating and Using Objects Summary Lesson 11. Processing HTML Forms Submitting a Form to PHP Processing a Form with PHP Creating a Form Mail Script Summary Lesson 12. Generating Dynamic HTML Setting Default Values Creating Form Elements Summary Lesson 13. Form Validation Enforcing Required Fields Displaying Validation Warnings Enforcing Data Rules Highlighting Fields That Require Attention Summary Lesson 14. Cookies and Sessions Cookies Sessions Summary Lesson 15. User Authentication Types of Authentication Building an Authentication System Summary Lesson 16. Communicating with the Web Server HTTP Headers Server Environment Variables Summary Lesson 17. Filesystem Access Managing Files Reading and Writing Files Summary Lesson 18. Host Program Execution Executing Host Programs The Host Environment Security Considerations Summary Lesson 19. Using a MySQL Database Using MySQL Executing SQL Statements Debugging SQL Summary Lesson 20. Database Abstraction The PEAR DB Class Database Portability Issues Summary Lesson 21. Running PHP on the Command Line The Command-Line Environment Writing Scripts for the Command Line Summary Lesson 22. Error Handling Error Reporting Summary Lesson 23. PHP Configuration Configuration Settings Configuration Directives Loadable Modules Summary Lesson 24. PHP Security Safe Mode Other Security Features Summary Lesson 25. Using PEAR Introducing PEAR Using PEAR Summary Appendix A. Installing PHP Linux/Unix Installation Windows Installation Troubleshooting Index

2010-10-22

php_manual_zh(2010-08-16).chm

入门指引 简介 简明教程 安装与配置 安装前需要考虑的事项 Unix 系统下的安装 Mac OS X 系统下的安装 Windows 系统下的安装 FastCGI 进程管理器 (FPM) PECL 扩展库安装 还有问题? 运行时配置 语言参考 基本语法 类型 变量 常量 表达式 运算符 控制结构 函数 类与对象 命名空间 异常处理 引用的解释 Predefined Variables Predefined Exceptions Predefined Interfaces Context options and parameters

2010-10-21

Structure and Interpretation .chm

1 Building Abstractions with Procedures 1.1 The Elements of Programming 1.1.1 Expressions 1.1.2 Naming and the Environment 1.1.3 Evaluating Combinations 1.1.4 Compound Procedures 1.1.5 The Substitution Model for Procedure Application 1.1.6 Conditional Expressions and Predicates 1.1.7 Example: Square Roots by Newton's Method 1.1.8 Procedures as Black-Box Abstractions 1.2 Procedures and the Processes They Generate 1.2.1 Linear Recursion and Iteration 1.2.2 Tree Recursion 1.2.3 Orders of Growth 1.2.4 Exponentiation 1.2.5 Greatest Common Divisors 1.2.6 Example: Testing for Primality 1.3 Formulating Abstractions with Higher-Order Procedures 1.3.1 Procedures as Arguments 1.3.2 Constructing Procedures Using Lambda 1.3.3 Procedures as General Methods 1.3.4 Procedures as Returned Values

2010-10-21

Agile Web Application Development with Yii 1.1 and PHP5.pdf

Preface 1 Chapter 1: Meet Yii 7 Yii is easy 8 Yii is efficient 8 Yii is extensible 9 MVC architecture 9 The model 10 The view 10 The controller 10 Stitching these together: Yii request routing 11 Blog posting example 11 Object-relational mapping and Active Record 13 Active Record 14 The view and controller 14 Summary 15 Chapter 2: Getting Started 17 Installing Yii 17 Installing a database 19 Creating a new application 19 Hello, World! 22 Creating the controller 22 One final step 26 Reviewing our request routing 27 Adding dynamic content 28 Adding the date and time 28 Adding the date and time, a better approach 29 Moving the data creation to the controller 29 Have you been paying attention? 30

2010-10-21

PHP Hacks -Jack Herrington -December 2005

Chapter 1. Installation and Basics Section 1.1. Hacks 12: Introduction Hack 1. Install PHP Hack 2. Install PEAR Modules Chapter 2. Web Design Section 2.1. Hacks 310: Introduction Hack 3. Create a Skinnable Interface Hack 4. Build a Breadcrumb Trail Hack 5. Create HTML Boxes Hack 6. Add Tabs to Your Web Interface Hack 7. Give Your Customers Formatting Control with XSL Hack 8. Build Lightweight HTML Graphs Hack 9. Properly Size Image Tags Hack 10. Send HTML Email Chapter 3. DHTML Section 3.1. Hacks 1126: Introduction Hack 11. Put an Interactive Spreadsheet on Your Page Hack 12. Create Pop-Up Hints Hack 13. Create Drag-and-Drop Lists Hack 14. Build Dynamic HTML Graphs Hack 15. Section Your Content with Spinners Hack 16. Create Drop-Down Stickies Hack 17. Create Dynamic Navigation Menus Hack 18. Obscure JavaScript Dynamically Hack 19. Build a DHTML Binary Clock Hack 20. Tame Ajax with JSON Hack 21. Make a DHTML Slideshow Hack 22. Add Vector Graphics with PHP Hack 23. Build a Color Selector Hack 24. Create Link Graphs Hack 25. Create an Interactive Calendar Hack 26. Create the Google Maps Scrolling Effect Chapter 4. Graphics

2010-10-19

GETTING THINGS DONE

Part 1: The Art of Getting Things Done 1 Chapter 1 A New Practice for a New Reality 3 Chapter 2 Getting Control of Your Life: The Five Stages of Mastering Workflow 24 Chapter 3 Getting Projects Creatively Under Way: The Five Phases of Project Planning 54 Part 2: Practicing Stress-Free Productivity 83 Chapter 4 Getting Started: Setting Up the Time, Space, and Tools 85 Chapter 5 Collection: Corralling Your "Stuff" 104 Chapter 6 Processing: Getting "In" to Empty 119 Chapter 7 Organizing: Setting Up the Right Buckets 138

2010-09-17

gettingthingsdone.

第一部分 通向从容之道 6 第一章 新情况,新做法 7 像实干家一样思考问题,像思想家一样付诸行动。 第二章 横向管理工作进程的5个阶段 23 我们应该使任何事物都变得越简单越好,而不是比较简单。 第三章 纵向管理:巧妙制定工作计划 47 当着手处理平凡琐事的时候,必须着眼于大局,这样一来,所有的烦琐小事才能够沿着正确的方向发展。 第二部分 远离压力,提高效率 69 第四章 确定时间、空间和工具 70 提升个人工作效率的最佳手段之一,就是拥有你乐于使用的管理工具。 第五章 收集阶段:填充工作篮 83 训练自己发现那些没有到位的事情。 第六章 处理阶段:清空工作篮 97 工作篮是一个处理问题的站点,而不是一个存储容器。 第七章 管理阶段:建立好清单 112 在从局部管理向全局总揽的转化过程中,一个完整和同步的工作清单堪称为一个主要的运作手段。 第八章 检查阶段:回过头看看 142 只要你保证在适当的时间查阅适当的资料,每天几秒钟也就是回顾检查所需要的全部时间。 第九章 行动阶段:选最佳方案 149 你的工作是发现你的工作,然后全身心地投入到其中去。 第十章 创造性地思考工作 163 准备行动、创造条件,对工作进行一些创造性的思考。然后,你就把大多数人远远地抛在后面了。 第三部分 事半功倍的几个窍门 171 第十一章 窍门1:养成收集和自省的习惯 172 焦虑感和内疚感并非是由于承担太多的工作而造成的,这是由于你撕毁了同自己签订的协议而自然导致的后果。 第十二章 窍门2:下一步行动 180 无论问题有多么大、多么严峻,你总可以向解决它们的方向迈出小小的一步,来根除掉束手无策的感觉。行动起来吧。 第十三章 窍门3:关注结果 190 没有明确任务的展望充其量只是一个梦想,而缺乏前景的任务只是痛苦和艰辛的劳作。同时拥有前景和任务才是世界的希望。 第四部分 结论 195

2010-09-17

Getting StartED with Dojo.pdf

Contents at a Glance ........ iv Contents .........v About the Author............. xi About the Technical Reviewer .......... xii Acknowledgments .......... xiii Introduction ...xiv Chapter 1: JavaScript Fundamentals.....1 Chapter 2: Digging Deeper 29 Chapter 3: Enhancing with Dojo ........ 49 Chapter 4: Dojo DOM Basics.............. 87 Chapter 5: Managing User Interaction with Dojo . 119 Chapter 6: Make It Rich .. 141 Chapter 7: Dynamic Data 171 Chapter 8: Widgets ....... 193 Chapter 9: Where to Go from Here... 233 Appendix A: Setting Up a Local Web Server ....... 265 Appendix B: Dojo Base Quick Reference ........... 281 Appendix C: Plug-ins...... 289 Index.......... 317

2010-09-15

Mastering Dojo-JavaScript and Ajax Tools for Great Web Experiences

1 Introduction 9 1.1 Key Aspects of Dojo . 12 1.2 Using the Book . . . 15 1.3 Acknowledgments . . 17 I Ajax the Dojo Way 19 2 Powerful Web Forms Made Easy 20 2.1 What Customers Are Saying About Your Form 21 2.2 Installing Dojo on Your Own Server . . 21 2.3 Adding Dojo and Dijit to a Page . . . . 22 2.4 Laying Out the Form 26 2.5 Improved Form Controls . . . 31 2.6 Wrapping It Up . . . 34 3 Connecting to Outside Services 37 3.1 Dojo Remote Scripting . . . . 37 3.2 JavaScript Idioms for Calling XHR . . 39 3.3 A Wish List with dojo.data and dojox.grid.Grid . 46 3.4 Researching Cigars Using JSONP . . . 56 3.5 Reviews with dojo.xhrGet . . 63 3.6 Errors and Debugging . . . . 67 II The Dojo APIs 70 4 Dojo In Depth 71 4.1 Modularizing JavaScript . . . 71 4.2 Dojo Source Code Organization . . . . 75 4.3 Loading Dojo 78

2010-09-15

Dojo中文手册-- 简单的体验

内容目录 1 简介.. 3 2 Dojo工具包:JavaScript开发的水槽(Kitchen Sink)....3 3 设置和配置Dojo. 4 3.1 选择正确的Dojo创建4 3.2 动态加载package...5 3.3 定制的创建.. 5 4 应用:旅行路线编辑器 6 5 DOM和HTML效果 6 5.1 处理DOM.... 7 5.2 Dojo的HTML效果....8 6 使用dojo.io.bind()的Ajax远程调用8 6.1.1 淡出和移除9 6.1.2 使用XMLHttpRequest来告诉服务器发生了什么.. 9 7 拖放操作.. 10 7.1.1 连接所有的天....11 7.1.2 连接单个的天....11 7.1.3 onLoad 11 8 结论 12

2010-09-15

HTML5 for Web Designers.pdf

HTML5 for Web Designers.pdf

2010-09-14

Smart SVN

Smart SVN

2010-08-31

android book

android book

2010-08-30

heidiSQL mysql gui

HeidiSQL_5.1_Portable mysql gui

2010-08-25

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除