一、中文字符串截取:mb_substr() mb_substr($str, $start, $length, $encoding); $str,需要截断的字符串 $start,截断开始处,起始处为0 $length,要截取的字数 $encoding,网页编码,如utf-8,GB2312,GBK例: ...
分类:
Web程序 时间:
2014-08-22 16:05:48
阅读次数:
253
1179 - Josephus Problem
PDF (English) Statistics Forum
Time Limit: 2 second(s) Memory Limit: 32 MB
The historian Flavius Josephus relates how, in the Romano-Jewish conflict of 67 A.D., the Romans t...
分类:
其他好文 时间:
2014-08-21 15:07:14
阅读次数:
181
1148 - Mad Counting
PDF (English) Statistics Forum
Time Limit: 0.5 second(s) Memory Limit: 32 MB
Mob was hijacked by the mayor of the Town "TruthTown". Mayor wants Mob to count the total population...
分类:
其他好文 时间:
2014-08-21 11:34:55
阅读次数:
261
mb_convert_encoding("人人", "UTF-8", "HTML-ENTITIES");
分类:
Web程序 时间:
2014-08-19 14:13:44
阅读次数:
177
点击打开链接题目链接
1110 - An Easy LCS
PDF (English)
Statistics
Forum
Time Limit: 2 second(s)
Memory Limit: 32 MB
LCS means 'Longest Common Subsequence' that means ...
分类:
其他好文 时间:
2014-08-19 12:59:35
阅读次数:
604
<?php
function getweather($city){
$url="http://www.weather.com.cn/weather1d/".$city.".shtml";
$result=file_get_contents($url);
$arr=explode("",$result);
$arr1=explode("",$arr[1]);
$wt= mb...
分类:
Web程序 时间:
2014-08-19 09:26:13
阅读次数:
165
HDFS Hadoop的核心就是HDFS与MapReduce。那么HDFS又是基于GFS的设计理念搞出来的。 HDFS全称是Hadoop Distributed System。HDFS是为以流的方式存取大文件而设计的。适用于几百MB,GB以及TB,并写一次读多次的场合。而对于低延时数据访问、大量小文...
分类:
其他好文 时间:
2014-08-18 12:21:14
阅读次数:
228
题目链接:点击打开链接
1038 - Race to 1 Again
PDF (English)
Statistics
Forum
Time Limit: 2 second(s)
Memory Limit: 32 MB
Rimi learned a new thing about integers, whic...
分类:
其他好文 时间:
2014-08-18 01:35:13
阅读次数:
283
本文主要介绍ESB相关的一些技术概念与术语,还有一些入门的需要了解的基础知识,并初步了解介绍一些ESB产品。企业服务总线(Enterprise Service Bus):由中间件基础设施产品技术实现的、通过事件驱动和基于xml消息引擎,为复杂的面向服务的架构提供软件架构的构造物。企业应用集成(Enterprise Application Integration):是完成在组织内、外的各种异构系统、应用和数据源之间共享、交换信息、协作的途径,方法学,标准和技术。...
分类:
其他好文 时间:
2014-08-16 23:50:41
阅读次数:
722