摘要: 1 - Tomcat Server的组成部分 1.1 - Server A Server element represents the entire Catalina servlet container. (Singleton) 1.2 - Service A Service element rep 阅读全文
posted @ 2017-04-19 20:14 yfceshi 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 1、完整生命周期 上图是Android Activity的生命周期图。当中Resumed、Paused、Stopped状态是静态的。这三个状态下的Activity存在时间较长。 (1)Resumed:在此状态时,用户能够与Activity进行交互,Activity在最前端 (2)Paused:在此状 阅读全文
posted @ 2017-04-19 19:42 yfceshi 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 原文请訪问我的博客:http://xiaoshig.sinaapp.com/ 向上取整 使用ceil函数。ceil(x)返回的是大于x的最小整数。如: ceil(2.5) = 3 ceil(-2.5) = -2 sort排序头文件 #include <algorithm> 数组初始化总结 整型数组初 阅读全文
posted @ 2017-04-19 18:59 yfceshi 阅读(351) 评论(0) 推荐(0) 编辑
摘要: Android开发中可能会碰到怎样发送邮件的困扰,之前我也查了相关的文档,博友们也分享了不少的发送邮件的办法。总共同拥有3种把,我细致阅读了下,发现有的讲的太过复杂跟麻烦,不够清晰。我今天就来分享下我觉得的最好用的办法来解决该问题,使用Andorid-MAIL Jar包。首先我们先要下载以下四个文件 阅读全文
posted @ 2017-04-19 18:18 yfceshi 阅读(2691) 评论(0) 推荐(0) 编辑
摘要: watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" alt=""> 阅读全文
posted @ 2017-04-19 17:15 yfceshi 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 1.对pro进行配置。使其可以理解opencv。INCLUDEPATH+=d:\opencv249\include\opencv\ d:\opencv249\include\opencv2\ d:\opencv249\include LIBS+=d:\opencv249\lib\libopencv_ 阅读全文
posted @ 2017-04-19 15:43 yfceshi 阅读(3284) 评论(0) 推荐(0) 编辑
摘要: GeoIP + PHP的使用 方法一: 下载 GeoIP 的 PHP 文件geoip.inc,保存为 geoip.inc.php http://sjolzy.cn/php/GeoIP/bak/geoip.inc php使用代码 <?php include("geoip.inc.php"); $gi 阅读全文
posted @ 2017-04-19 14:23 yfceshi 阅读(1071) 评论(0) 推荐(0) 编辑
摘要: Given an array of n integers where n > 1, nums, return an array output such that output[i] is equal to the product of all the elements ofnums except n 阅读全文
posted @ 2017-04-19 13:27 yfceshi 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://www.patest.cn/contests/pat-a-practise/1028 题目: 1028. List Sorting (25) 时间限制 200 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue 阅读全文
posted @ 2017-04-19 12:13 yfceshi 阅读(141) 评论(0) 推荐(0) 编辑
摘要: HDU 2883 kebab 题目链接 题意:有一个烧烤机,每次最多能烤 m 块肉。如今有 n 个人来买烤肉,每一个人到达时间为 si。离开时间为 ei,点的烤肉数量为 ci,每一个烤肉所需烘烤时间为 di。注意一个烤肉能够切成几份来烤 思路:把区间每一个点存起来排序后。得到最多2 * n - 1个 阅读全文
posted @ 2017-04-19 11:02 yfceshi 阅读(134) 评论(0) 推荐(0) 编辑
摘要: request.getSession.setAttribute()是获得当前会话的session,然后再setAttribute到session里面去,有效范围是session而不是request。 而request.setAttribute()是setAttribute到request中去。有效范 阅读全文
posted @ 2017-04-19 10:21 yfceshi 阅读(604) 评论(0) 推荐(0) 编辑
摘要: 字典树查询 #include<iostream> #include<cstring> #include<malloc.h> using namespace std; const int maxn = 30; typedef struct Trie{ int v; Trie *next[ maxn ] 阅读全文
posted @ 2017-04-19 09:22 yfceshi 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 矩阵高速幂: 依据关系够建矩阵 , 高速幂解决. Arc of Dream Time Limit: 2000/2000 MS (Java/Others) Memory Limit: 65535/65535 K (Java/Others) Total Submission(s): 2164 Accep 阅读全文
posted @ 2017-04-19 08:25 yfceshi 阅读(145) 评论(0) 推荐(0) 编辑