<!--*************HTML*************--><divid="tabNav"><spanclass="active"data-class="plaInt">平台简介</span><spandata-class="comPro">公司简介</span><spandata-class="costPro">平台费用</span></div><divcl..
分类:
其他 时间:
2015-01-12 16:51:02
收藏:
0 评论:
0 赞:
0 阅读:
238
1.判断是否存在一:if(@mkdir("/img",0700)){echo"ok";}else{echo"error";}//存在输出“ok”,不存在输出“error”二:if(is_dir("/img")){echo"ok";}else{echo"error";}//存在输出“ok”,不存在输出“error”if(is_dir("img")){echo"ok";}else{echo"error";}//存在输出“ok”..
分类:
其他 时间:
2015-01-12 16:49:02
收藏:
0 评论:
0 赞:
0 阅读:
295
1.增大proxy_read_timeout;proxy_send_timeout的参数。
分类:
其他 时间:
2015-01-12 16:47:02
收藏:
0 评论:
0 赞:
0 阅读:
364
近日为了满足客户做性能测试,我与同事沟通,并配置nrpeclient后,发现监控状态异常,漫长的排查后,我们发现nrpe.cfgcommand路径存在异常,然后进行修改并添加后恢复正常,详细信息如下:command[check_appserver]=/usr/local/nagios/libexec/check_http-Hlocalhost-p9000-u/h..
分类:
其他 时间:
2015-01-12 16:46:32
收藏:
0 评论:
0 赞:
0 阅读:
285
Given a list, rotate the list to the right by k places, where k is non-negative.
For example:
Given 1->2->3->4->5->NULL and k = 2,
return 4->5->1->2->3->NULL.
/**
* Definition for singly-lin...
分类:
其他 时间:
2015-01-12 16:43:12
收藏:
0 评论:
0 赞:
0 阅读:
221
解锁、唤醒屏幕用到KeyguardManager,KeyguardLock,PowerManager,PowerManager.WakeLock
所需权限:
:name="android.permission.WAKE_LOCK"
/>
:name="android.permission.DISABLE_KEYGUARD"
/>
//锁屏、唤...
分类:
其他 时间:
2015-01-12 16:42:42
收藏:
0 评论:
0 赞:
0 阅读:
375
11.3.2计算策略的比较
[
evaluation、computation、calculation,在第二章,是后两个计算放在一起,让人搞不清准确的含义;现在倒好,出现了三个计算,又该如何体会呢?
据说,从左到右,是从粗略到精确的过度,即,前面的强调估算,后面的强调演算。
能体会出来吗?语言不同,表达真的不同。
因此,计算机就选了一个中间值,既不强调粗,也不强调精;恰恰表明,既强...
分类:
其他 时间:
2015-01-12 16:42:22
收藏:
0 评论:
0 赞:
0 阅读:
225
阻塞原理:比如,一个队列中有8个格子,代表可放入8条数据,当一条信息到来就放入一个格子中,然后就进行处理。但是这个时候一次性来了8条数据,格子满了,数据还没有处理完,就来个一条数据。这个时候就把这条数据进行阻塞。
示例:假定有一个绑定的缓冲区,它支持 put 和
take 方法。如果试图在空的缓冲区上执行 take 操作,则在某一个项变得可用之前,线程将一直阻塞;如果试图在满的缓冲区上...
分类:
其他 时间:
2015-01-12 16:42:01
收藏:
0 评论:
0 赞:
0 阅读:
289
用xshell客户端连接主机出现错误:
ssh 用户名@ip_address [port]
官方文档上的提示:
"Could not connect to 'hostname' (port 22): Connection failed."
Check if the host machine is ready for connection and the port...
分类:
其他 时间:
2015-01-12 16:41:42
收藏:
0 评论:
0 赞:
0 阅读:
254
各向同性模型在所有方向上都是相同的,而各向异性模型在某些方向上达到基台的速度高于另一些方向。达到基台的较长轴的长度称为主变程,达到基台的较短轴的长度称为次变程,还具有形成主变程的线的旋转角度。...
分类:
其他 时间:
2015-01-12 16:41:32
收藏:
0 评论:
0 赞:
0 阅读:
314
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).
The robot can only move either down or right at any point in time. The robot is trying to reach the ...
分类:
其他 时间:
2015-01-12 16:41:22
收藏:
0 评论:
0 赞:
0 阅读:
250
1.得到屏幕宽高+在代码里设置应用的宽高
[java] view
plaincopy
// 屏幕矩形
mRect =new Rect(0,0,this.getWindowManager().getDefaultDisplay().getWidth(),
this.getWindowManager().getDefaultDis...
分类:
其他 时间:
2015-01-12 16:40:52
收藏:
0 评论:
0 赞:
0 阅读:
240
hdu 5136 Yue Fei's Battle(计数DP)—— black 的专栏 —— waShaXiu...
分类:
其他 时间:
2015-01-12 16:40:32
收藏:
0 评论:
0 赞:
0 阅读:
274
01分数规划~
求最优比率环~
有简单讲解~...
分类:
其他 时间:
2015-01-12 16:39:44
收藏:
0 评论:
0 赞:
0 阅读:
219
方法一
首先计算出字符串在已知宽度的View中的size,然后改变View的size就可以。
示例代码如下:
#define IOS7_OR_LATER ( [[[UIDevice currentDevice] systemVersion] compare:@"7.0"] != NSOrderedAscending )
CGSize size;
NSString *strTail = ...
分类:
其他 时间:
2015-01-12 16:39:12
收藏:
0 评论:
0 赞:
0 阅读:
406
Implement wildcard pattern matching with support for '?' and '*'.
'?' Matches any single character.
'*' Matches any sequence of characters (including the empty sequence).
The matching should cover t...
分类:
其他 时间:
2015-01-12 16:38:06
收藏:
0 评论:
0 赞:
0 阅读:
299
原题链接:https://oj.leetcode.com/problems/roman-to-integer/
比较简单的题,代码应该还可以稍微优化,更generic一些。
class Solution {
public:
int romanToInt(string s) {
if (s.size() == 0) return 0;
...
分类:
其他 时间:
2015-01-12 16:37:37
收藏:
0 评论:
0 赞:
0 阅读:
243
Description
未名湖附近共有N个大小湖泊L1, L2, ...,
Ln(其中包括未名湖),每个湖泊Li里住着一只青蛙Fi(1 ≤
i ≤ N)。如果湖泊Li和Lj之间有水路相连,则青蛙Fi和Fj互称为邻居。现在已知每只青蛙的邻居数目x1,
x2, ..., xn,请你给出每两个湖泊之间的相连关系。
Input
第一行是测试数据的组数T(0 ≤ T ≤ 20)。每...
分类:
其他 时间:
2015-01-12 16:35:52
收藏:
0 评论:
0 赞:
0 阅读:
159
CSS Reset 是革命党,CSS Reset 里最激进那一派提倡不管你小子有用没用,通通给我脱了那身衣服,凭什么你 body 出生就穿一圈 margin,凭什么你姓 h 的比别人吃得胖,凭什么你 ul 戴一胳膊珠子。于是 *{margin:0;}
等等运动,把人家全拍扁了。看似是众生平等了,实则是浪费了资源又占不到便宜,有求于人家的时候还得贱贱地给加回去,实在需要人家的默认样式了怎么办?人...
分类:
其他 时间:
2015-01-12 16:35:32
收藏:
0 评论:
0 赞:
0 阅读:
267
求一个01二位数组最大的矩阵,把它化为直角图再一行一行地算
class Solution{
public:
int maximalRectangle(vector > &martix){
int height[1000][1000];
int maxx = -1;
int row = martix.size();
if(row == 0) return 0;...
分类:
其他 时间:
2015-01-12 16:34:51
收藏:
0 评论:
0 赞:
0 阅读:
259