上一页 1 2 3 4 5 6 7 ··· 14 下一页

2014年6月6日

Reverse Words in a String

摘要: Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".先要去除首尾两端的空格。 中间可能有多个连续空格, 所以sp... 阅读全文

posted @ 2014-06-06 06:39 Step-BY-Step 阅读(154) 评论(0) 推荐(0) 编辑

2014年5月16日

How to define Servlet filter order of execution using annotations

摘要: If we define Servlet filters in web.xml, then the order of execution of the filters will be the same as the order in which they are defined in the web... 阅读全文

posted @ 2014-05-16 05:33 Step-BY-Step 阅读(493) 评论(1) 推荐(1) 编辑

Understanding and Using Servlet Filters

摘要: Overview of How Filters WorkThis section provides an overview of the following topics:How the Servlet Container Invokes FiltersTypical Filter ActionsH... 阅读全文

posted @ 2014-05-16 05:32 Step-BY-Step 阅读(226) 评论(0) 推荐(0) 编辑

2014年5月14日

Observer Pattern

摘要: MotivationWe can not talk about Object Oriented Programming without considering the state of the objects. After all object oriented programming is abo... 阅读全文

posted @ 2014-05-14 07:50 Step-BY-Step 阅读(347) 评论(0) 推荐(0) 编辑

javascript 比较

摘要: javascript中由于是弱类型,所以在比较的时候有较大的麻烦。这次专门做了总结:Comparison OperatorsComparison operators are used in logical statements to determine equality or difference ... 阅读全文

posted @ 2014-05-14 03:11 Step-BY-Step 阅读(181) 评论(0) 推荐(0) 编辑

2014年5月13日

SOAP vs REST

摘要: Both methods are used by many of the large players. It's a matter of preference. My preference is REST because it's simpler to use and understand.SOAP... 阅读全文

posted @ 2014-05-13 07:09 Step-BY-Step 阅读(247) 评论(0) 推荐(0) 编辑

REST和SOAP Web Service的区别比较

摘要: 本文转载自他人的博客,ArcGIS Server 推出了 对 SOAP 和 REST两种接口(用接口类型也许并不准确)类型的支持,本文非常清晰的比较了SOAP和Rest的区别联系!////////////////////////////////////////////////////////////... 阅读全文

posted @ 2014-05-13 07:07 Step-BY-Step 阅读(7704) 评论(1) 推荐(1) 编辑

Feature Flag

摘要: know more from here:https://www.youtube.com/watch?v=WMRjj06R6jg&list=UUkQX1tChV7Z7l1LFF4L9j_gFeature flag: a way if exposing features to a sub-sent of... 阅读全文

posted @ 2014-05-13 04:52 Step-BY-Step 阅读(775) 评论(0) 推荐(0) 编辑

2014年5月10日

终于明白公测的beta 源自何处了

摘要: A very early version of a software product that may not contain all of the features that are planned for the final version. Typically,softwaregoes t... 阅读全文

posted @ 2014-05-10 09:06 Step-BY-Step 阅读(221) 评论(0) 推荐(0) 编辑

2014年5月1日

(转载) 好的程序员到底好在哪里?

摘要: 根据我的经验,成为一个优秀的程序员与年龄、教育或者你挣钱的多少没有关系。关键在于你的表现,更深刻的说,是你如何思考。我注意到我羡慕的程序员有一致的习惯,比起他们所选语言的知识、对数据结构和算法的深入理解、或者几年的工作经验——更多的是他们交流的方式,管理自己的方式,和根据他们精湛的技巧可以知道他们... 阅读全文

posted @ 2014-05-01 07:14 Step-BY-Step 阅读(162) 评论(0) 推荐(0) 编辑

Caching Tutorial

摘要: for Web Authors and WebmastersThis is an informational document. Although technical in nature, it attempts to make the concepts involved understandabl... 阅读全文

posted @ 2014-05-01 07:03 Step-BY-Step 阅读(177) 评论(0) 推荐(0) 编辑

2014年4月29日

A Step-by-Step Guide to Your First AngularJS App

摘要: What is AngularJS?AngularJS is a JavaScript MVC framework developed by Google that lets you build well structured, easily testable, and maintainable f... 阅读全文

posted @ 2014-04-29 02:52 Step-BY-Step 阅读(422) 评论(0) 推荐(0) 编辑

2014年4月23日

What are Scopes?

摘要: scopeis an object that refers to the application model. It is an execution context forexpressions. Scopes are arranged in hierarchical structure which... 阅读全文

posted @ 2014-04-23 08:42 Step-BY-Step 阅读(250) 评论(0) 推荐(0) 编辑

2014年4月22日

How to Enable 64-bit Processes for Enhanced Protected Mode in Internet Explorer 11 (IE11)

摘要: InformationEnhanced Protected Mode(EPM) adds additional security to Protected Mode and includes AppContainer and 64-bit tab processes. Like the Windo... 阅读全文

posted @ 2014-04-22 05:34 Step-BY-Step 阅读(601) 评论(0) 推荐(0) 编辑

2014年4月17日

change Username for SVN(Subclipse) in Eclipse

摘要: Subclipse does not own the information about users and passwords (credentials), so there is no way for you to manage it from Subclipse itself. It is c... 阅读全文

posted @ 2014-04-17 05:13 Step-BY-Step 阅读(457) 评论(0) 推荐(0) 编辑

2014年4月12日

JavaScript Madness: Dynamic Script Loading

摘要: IntroductionI've developed some pretty seriously Javascript intensive sites, where the sheer quantity of Javascript on the page is so much that I worry about the load time for the page getting too big. Often large chunks of the Javascript code are only used very rarely, and it seems a shame to l 阅读全文

posted @ 2014-04-12 06:05 Step-BY-Step 阅读(236) 评论(0) 推荐(0) 编辑

2014年3月29日

How to use Mac Terminal

摘要: Mac OS X 启用超级用户的方法Root user,又名超级用户,是一个权力最高的Unix 账户,Root 的账户能在整个系统里任何部份进行任何“操作”,包括:拷贝档案、移动/移除档案、执行程序等。所以,通常 Root 的账户都只会指派给高级专业的用户使用。因此,苹果把Root user 隐藏在MacOS X 里。但有时候我们不得不启用Root用户以便于实现某些操作,可以通过以下三种方法把启动Root账户。方法一:把Mac OS X 的安装光盘放入到光驱中,用光盘启动系统,在安装菜单里选择“Password Reset”选项,便能更改你的密码和启动超级用户模式。(把这工具拷贝到硬盘中是不能 阅读全文

posted @ 2014-03-29 04:32 Step-BY-Step 阅读(415) 评论(0) 推荐(0) 编辑

2014年3月18日

SSH Tunneling Explained

摘要: 转载:http://chamibuddhika.wordpress.com/2012/03/21/ssh-tunnelling-explained/March 21, 2012 byBuddhika ChamithRecently I wanted to set up a remote desktop sharing session from home pc to my laptop. While going through the set up guide I came across ssh tunneling. Even though there are many articles on 阅读全文

posted @ 2014-03-18 08:19 Step-BY-Step 阅读(497) 评论(0) 推荐(0) 编辑

2014年3月15日

Tutorial: Model

摘要: What is a model?Across the internet the definition ofMVCis so diluted that it's hard to tell what exactly your model should be doing. The authors of backbone.js have quite a clear definition of what they believe the model represents in backbone.js.Models are the heart of any JavaScript applicati 阅读全文

posted @ 2014-03-15 00:54 Step-BY-Step 阅读(261) 评论(0) 推荐(0) 编辑

2014年3月13日

What is XMLHTTP? How to use security zones in Internet Explorer

摘要: Types of Security ZonesInternet ZoneThis zone contains Web sites that are not on your computer or on your local intranet, or that are not already assigned to another zone. The default security level is Medium.Local Intranet ZoneBy default, the Local Intranet zone contains all network connections tha 阅读全文

posted @ 2014-03-13 02:48 Step-BY-Step 阅读(353) 评论(0) 推荐(0) 编辑

UNDERSTANDING CALLBACK FUNCTIONS IN JAVASCRIPT

摘要: 转自:http://recurial.com/programming/understanding-callback-functions-in-javascript/Callback functions are extremely important in Javascript. They’re pretty much everywhere. Originally coming from a more traditional C/Java background I had trouble with this (and the whole idea of asynchronous programm 阅读全文

posted @ 2014-03-13 02:45 Step-BY-Step 阅读(168) 评论(0) 推荐(0) 编辑

2014年3月11日

Browser detect

摘要: A useful but often overrated JavaScript function is the browser detect. Sometimes you want to give specific instructions or load a new page in case the viewer uses, for instance, Safari.If you're new to JavaScript,don'tuse browser detects. You don’t need them. Please read theobject detection 阅读全文

posted @ 2014-03-11 08:22 Step-BY-Step 阅读(410) 评论(0) 推荐(0) 编辑

比較Backbone.js, Angular.js, Ember.js, Knockout.js 心得

摘要: 還記得第一次寫網站的時候,我無意間寫成了 SPA(single page application),當時還沒有SPA這個詞,後來因為廣告主需要不同 url location 頁面的廣告展示,只好把部分網站改成一般網頁。但是一直以來我對於提高整體溝通效率以及使用端的回應效率抱持相同的想法,希望能夠把更多回應放到 client 處理,讓server 做好 api 提供者的角色,可以讓網站回應更即時而親切,這篇心得文不會詳細走訪每個技術層面,而是提供概括的入門使用情況。現在client-side javascript MV*(MVVM, MVC等) framework實作產量豐富,Backbone. 阅读全文

posted @ 2014-03-11 08:18 Step-BY-Step 阅读(1613) 评论(0) 推荐(0) 编辑

2014年3月9日

Calling Lua From a C Program

摘要: IntroductionFrom a running C program, you can call a Lua script. The C program can pass arguments to the Lua script, and the Lua script can pass back a return. The Lua script can serve to initialize the C program, or the Lua script can install a callback routine in the C program.Calling a Lua script 阅读全文

posted @ 2014-03-09 03:32 Step-BY-Step 阅读(398) 评论(0) 推荐(0) 编辑

First Lua function running in C

摘要: 这是我在C里面跑出来的第一个Lua 文件, 纪念一下。1.Set up envirnonment:Mac下面 Lua的src (即include) 和lib(binary)是分开的, 所以需要分别下载。使用的是 5.2.3 的src 和 standard lib(5.2.1_MacOS107_lib).include 和 lib 在gcc 编译的时候需要用-L 引入。2.代码:VERY IMPORTANT:ua_open() should not be used. In lua-5.1 it's still available as simple wrapper macro for l 阅读全文

posted @ 2014-03-09 03:26 Step-BY-Step 阅读(205) 评论(0) 推荐(0) 编辑

2014年3月8日

Open multiple Eclipse workspaces on the Mac

摘要: This seems to be the supported native method in OS X:cd /Applications/eclipse/open -n Eclipse.appBe sure to specify the ".app" version (directory); in OS X Mountain Lion erroneously using the symbolic link such asopen -n eclipse, might get one GateKeeper stopping access:"eclipse" 阅读全文

posted @ 2014-03-08 09:57 Step-BY-Step 阅读(424) 评论(0) 推荐(0) 编辑

Install wget in Mac OS X Without Homebrew or MacPorts

摘要: May 22, 2012 -31 CommentsThe command line tool wget lets you retrieve a group of files from FTP and HTTP protocols, it’s a very useful utility for web developers and powerusers to have around because it lets you do things like performquick and dirty site backupsand evenmirror websites locally.This a 阅读全文

posted @ 2014-03-08 07:19 Step-BY-Step 阅读(360) 评论(0) 推荐(0) 编辑

Embedding Lua in C: Using Lua from inside C.

摘要: Requirments:1: The Lua Sources.2: A C compiler - cc/gcc/g++ for Unix, and Visual C++ for Windows.Other compilers should under Windows, basically any C compiler - I will cover compiling under Windows at the end of the toturial.This tutorial will work under any OS which has a C compiler, and which Lua 阅读全文

posted @ 2014-03-08 06:51 Step-BY-Step 阅读(699) 评论(0) 推荐(0) 编辑

Lua 的数据结构

摘要: 1. Arrays:注意 #(data), # 加上 table名字 == size of 1 data = {}; 2 for y = 1 , 7 do --行 3 for x = 1 , 8 do --列 4 data[(y-1)*8+x] = (y-1)*8+x; 5 end 6 7 end 8 print(#(data)) 9 for y = 1 , 7 do10 11 print(data[(y-1)*8+1].." "..data[(y-1)*8+2].." "..data[(y-1)*8+3].." "12 ..data 阅读全文

posted @ 2014-03-08 03:25 Step-BY-Step 阅读(149) 评论(0) 推荐(0) 编辑

2014年3月7日

Maintainable HashCode and Equals Using Apache Commons

摘要: Java hashCode and equals methods can be tricky to implement correctly. Fortunately, all majors IDEs allow generating them. For example, this is how they look like for a class with two attributes when generated in Eclipse:123456789101112131415161718192021222324252627282930@Overridepublic int hashCode 阅读全文

posted @ 2014-03-07 09:18 Step-BY-Step 阅读(201) 评论(0) 推荐(0) 编辑

Multiples of 3 and 5

摘要: 1 --If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. 2 --Find the sum of all the multiples of 3 or 5 below 1000. 3 4 --set up iterator 5 function list_iter() 6 local i = 1; 7 local n = 100; 8 return functi... 阅读全文

posted @ 2014-03-07 07:22 Step-BY-Step 阅读(254) 评论(0) 推荐(0) 编辑

Even Fibonacci numbers

摘要: 1 --Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be: 2 --1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ... 3 --By considering the terms in the Fibonacci sequence whose values do not exceed four million, find the sum of. 阅读全文

posted @ 2014-03-07 07:20 Step-BY-Step 阅读(228) 评论(0) 推荐(0) 编辑

2014年3月6日

Eclipse Error: Unable to set localhost. This prevents creation of a GUID.

摘要: SymptomsThe following error appears in theatlassian-confluence.log:2011-03-16 18:20:03,021 ERROR [main] [net.sf.ehcache.Cache] Unable to set localhost. This prevents creation of a GUID. Cause was: : java.net.UnknownHostException: : at java.net.InetAddress.getLocalHost(InetAddress.java:1354)at net.s. 阅读全文

posted @ 2014-03-06 04:19 Step-BY-Step 阅读(2263) 评论(0) 推荐(0) 编辑

2014年3月4日

Oracle中merge into的使用

摘要: 转自: http://blog.csdn.net/yuzhic/article/details/1896878http://blog.csdn.net/macle2010/article/details/5980965该命令使用一条语句从一个或者多个数据源中完成对表的更新和插入数据. ORACLE 9i 中,使用此命令必须同时指定UPDATE 和INSERT 关键词,ORACLE 10g 做了如下改动。1,insert 和update是可选的 2,UPDATE 和INSERT 后面可以跟WHERE 子句 3,在ON条件中可以使用常量来insert 所有的行到目标表中,不需要连接到源表和目标表 阅读全文

posted @ 2014-03-04 10:18 Step-BY-Step 阅读(152) 评论(0) 推荐(0) 编辑

MERGE

摘要: PurposeUse theMERGEstatement to select rows from one or more sources for update or insertion into a table or view. You can specify conditions to determine whether to update or insert into the target table or view.This statement is a convenient way to combine multiple operations. It lets you avoid mu 阅读全文

posted @ 2014-03-04 09:36 Step-BY-Step 阅读(302) 评论(0) 推荐(0) 编辑

2014年3月1日

pl/sql tutorial

摘要: http://plsql-tutorial.com/plsql-procedures.htmWhat is PL/SQL?PL/SQLstands for Procedural Language extension of SQL.PL/SQL is a combination of SQL along with the procedural features of programming languages.A Simple PL/SQL Block:Each PL/SQL program consists of SQL and PL/SQL statements which from a P 阅读全文

posted @ 2014-03-01 07:27 Step-BY-Step 阅读(341) 评论(0) 推荐(0) 编辑

What is the difference between Views and Materialized Views in Oracle?

摘要: aterialized views are disk based and update periodically base upon the query definition.Views are virtual only and run the query definition each time they are accessed.Views evaluate the data in the tables underlying the view definition at the time the view is queried. It is a logical view of your t 阅读全文

posted @ 2014-03-01 05:47 Step-BY-Step 阅读(367) 评论(0) 推荐(0) 编辑

MATERIALIZED VIEW

摘要: Oracle的实体化视图提供了强大的功能,可以用在不同的环境中,实体化视图和表一样可以直接进行查询。实体化视图可以基于分区表,实体化视图本身也可以分区。主要用于预先计算并保存表连接或聚集等耗时较多的操作的结果,这样,在执行查询时,就可以避免进行这些耗时的操作,而从快速的得到结果。在数据仓库中,还经常使用查询重写(query rewrite)机制,这样不需要修改原有的查询语句,Oracle会自动选择合适的实体化视图进行查询,完全对应用透明。实体化视图和表一样可以直接进行查询。实体化视图还用于复制、移动计算,远程同步等方面。实体化视图有很多方面和索引很相似:使用实体化视图的目的是为了提高查询性能; 阅读全文

posted @ 2014-03-01 05:46 Step-BY-Step 阅读(291) 评论(0) 推荐(0) 编辑

Oracle index hint syntax

摘要: Question: I added an index hint in my query, but the hint is being ignored. What is the correct syntax for an index hint and how do I force the index hint to be used in my query?Answer:Oracle index hint syntax is tricky because of the index hint syntax is incorrect it is treated as a comment and not 阅读全文

posted @ 2014-03-01 03:28 Step-BY-Step 阅读(300) 评论(0) 推荐(0) 编辑

Oracle composite index column ordering

摘要: Question:I have a SQL with multiple columns in my where clause. I know that Oracle can only choose one index, and I know about multi-column composite indexes, but I do not know how to determine the optimal column order for a composite index with multiple column values. What is the secret for creatin 阅读全文

posted @ 2014-03-01 01:58 Step-BY-Step 阅读(454) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 ··· 14 下一页

导航