自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

成不了佛,便堕落吧

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

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

原创 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 10624 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 1231

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

<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 1281 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 2141

原创 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 3589 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 3847

转载 Web UI 设计命名规范

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

2010-09-07 14:48:00 1340

原创 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 14983

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

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

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

批处理 环境变量设置

环境设置 直接批处理,只用于 win下,xp是成功的,vista 和win7没试过

2010-06-30

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

精通Apache Velocity

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

2010-08-23

空空如也

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

TA关注的人

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