首页 > 全部
web.xml文件的作用
每个javaEE工程中都有web.xml文件,那么它的作用是什么呢?它是每个web.xml工程都必须的吗?一个web中可以没有web.xml文件,也就是说,web.xml文件并不是web工程必须的。web.xml文件是用来初始化配置信息:比如Welcome页面、servlet、servlet-map...
分类:Web开发   时间:2014-02-08 09:30:22    收藏:0  评论:0  赞:0  阅读:417
几种xml读取方法比较
背景这几天手上有个活,解析xml,众所周知xml的解析方法有:DOMSAXlinq to xmlplinq测试用xml和生成代码 1 static void CreateFile() 2 { 3 int N = 5000000; 4 Random rand = new Random(); 5 usi...
分类:其他   时间:2014-02-08 09:29:32    收藏:0  评论:0  赞:0  阅读:450
Rolling cURL: PHP并发最佳实践
Rolling cURL: PHP并发最佳实践在实际项目或者自己编写小工具(比如新闻聚合,商品价格监控,比价)的过程中, 通常需要从第3方网站或者API接口获取数据, 在需要处理1个URL队列时, 为了提高性能, 可以采用cURL提供的curl_multi_*族函数实现简单的并发.本文将探讨两种具体...
分类:Web开发   时间:2014-02-08 09:27:52    收藏:0  评论:0  赞:0  阅读:490
创建高安全性PHP网站的几个实用要点
大家都知道PHP已经是当前最流行的Web应用编程语言了。但是也与其他脚本语言一样,PHP也有几个很危险的安全漏洞。所以在这篇教学文章中,我们将大致看看几个实用的技巧来让你避免一些常见的PHP安全问题。技巧1:使用合适的错误报告一般在开发过程中,很多程序员总是忘了制作程序错误报告,这是极大的错误,因为...
分类:Web开发   时间:2014-02-08 09:27:02    收藏:0  评论:0  赞:0  阅读:382
PHP Socket编程起步
让我们以一个简单的例子开始---一个接收输入字符串,处理并返回这个字符串到客户端的TCP服务.下面是相应的代码:PHP 代码:下面是其每一步骤的详细说明:1.第一步是建立两个变量来保存Socket运行的服务器的IP地址和端口.你可以设置为你自己的服务器和端口(这个端口可以是1到65535之间的数字)...
分类:Web开发   时间:2014-02-08 09:26:12    收藏:0  评论:0  赞:0  阅读:446
PHP语言中使用JSON
原文地址:http://www.ruanyifeng.com/blog/2011/01/json_in_php.html在PHP语言中使用JSON目前,JSON已经成为最流行的数据交换格式之一,各大网站的API几乎都支持它。我写过一篇《数据类型和JSON格式》,探讨它的设计思想。今天,我想总结一下P...
分类:Web开发   时间:2014-02-08 09:25:22    收藏:0  评论:0  赞:0  阅读:410
php Socket基础
◆ Socket 基础PHP使用Berkley的socket库来创建它的连接。socket只不过是一个数据结构。你使用这个socket数据结构去开始一个客户端和服务器之间的会话。这个服务器是一直在监听准备产生一个新的会话。当一个客户端连接服务器,它就打开服务器正在进行监听的一个端口进行会话。这时,服...
分类:Web开发   时间:2014-02-08 09:24:32    收藏:0  评论:0  赞:0  阅读:360
浅谈PHP代码设计结构
浅谈PHP代码设计结构您的评价:还行收藏该经验coding多年,各种代码日夜相伴,如何跟代码友好的相处,不光成为职业生涯的一种回应,也是编写者功力的直接显露。如何看待程序和代码呢?那就让我们从程序定义来谈起,如果从业务最终呈现来看,一个程序可以看成是一个真实业务需求的逻辑代码映射。如果从程序逻辑结构...
分类:Web开发   时间:2014-02-08 09:23:42    收藏:0  评论:0  赞:0  阅读:510
Rotate Image
You are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place? 1 public class Sol...
分类:其他   时间:2014-02-08 09:22:02    收藏:0  评论:0  赞:0  阅读:338
Permutations II
Given a collection of numbers that might contain duplicates, return all possible unique permutations.For example,[1,1,2]have the following unique perm...
分类:其他   时间:2014-02-08 09:21:12    收藏:0  评论:0  赞:0  阅读:313
Search a 2D Matrix
Write an efficient algorithm that searches for a value in anmxnmatrix. This matrix has the following properties:Integers in each row are sorted from l...
分类:其他   时间:2014-02-08 09:19:32    收藏:0  评论:0  赞:0  阅读:327
LeetCode: Linked List Cycle I & II
Given a linked list, determine if it has a cycle in it.想了好半天没想出来,后来看网上的做法。用快慢两个指针,慢指针每次移动一位,快指针每次移动两位。如果存在环的话,两个指针一定会相遇。最差的情况是,在慢指针进入环的时候,快指针恰巧在慢指针前面一...
分类:其他   时间:2014-02-08 09:20:22    收藏:0  评论:0  赞:0  阅读:345
Sharepoint学习笔记—习题系列--70-573习题解析 -(Q133-Q135)
Sharepoint学习笔记—习题系列--70-573习题解析 -(Q133-Q135)
分类:其他   时间:2014-02-08 09:18:42    收藏:0  评论:0  赞:0  阅读:350
C#集合基础与运用
C#集合基础与运用转至:http://www.cnblogs.com/LiZhiW/p/3539839.html1.集合接口与集合类型(1)集合的命名空间大多数集合类都可以在 System.Collections 和 System.Collections.Generic 名称空间中找到。泛型集合位于...
分类:其他   时间:2014-02-08 09:17:02    收藏:0  评论:0  赞:0  阅读:345
Search Insert Position
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or...
分类:其他   时间:2014-02-08 09:17:52    收藏:0  评论:0  赞:0  阅读:367
[Leetcode]-- Longest Palindromic Substring
Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa...
分类:其他   时间:2014-02-08 09:16:12    收藏:0  评论:0  赞:0  阅读:467
[Leetcode]-- Search Insert Position
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or...
分类:其他   时间:2014-02-08 09:15:22    收藏:0  评论:0  赞:0  阅读:366
VS2013中web项目中自动生成的ASP.NET Identity代码思考
vs2013没有再分webform、mvc、api项目,使用vs2013创建一个web项目模板选MVC,身份验证选个人用户账户。项目会生成ASP.NET Identity的一些代码。这些代码主要在AccountController中。 ASP.NET Identity微软宣称的好处就不说了,这是原文...
分类:Web开发   时间:2014-02-08 09:12:52    收藏:0  评论:0  赞:0  阅读:578
[Leetcode]-- Search a 2D Matrix
Write an efficient algorithm that searches for a value in anmxnmatrix. This matrix has the following properties:Integers in each row are sorted from l...
分类:其他   时间:2014-02-08 09:13:42    收藏:0  评论:0  赞:0  阅读:350
子查询与内嵌视图
子查询是完整的查询语句。子查询首先生成结果集,并将结果集应用于条件语句。子查询与内嵌视图不同。内嵌视图也可以看作临时查询结果,但是内嵌视图出现在from子句中,并与其他数据源(数据表、视图等)形成笛卡尔积运算。而子查询单独运算,不会与其他数据源进行笛卡尔积运算。子查询可以出现在插入、查询、更新和删除...
分类:其他   时间:2014-02-08 09:12:02    收藏:0  评论:0  赞:0  阅读:320
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!