Swift是什么?Swift号称是简单、快速的编译型脚本语言,适用于在多核计算机,集群,云与超级计算机上运行。联合数组在声明时,可使用auto关键字而不指定任何一个原生类型作key,由语言决定:int[auto]
array;foreach i in [1:10] { array << (i*2);...
分类:
其他好文 时间:
2014-06-06 23:31:47
阅读次数:
285
今天发现自己连Bundle类都没有搞清楚,于是花时间研究了一下。依据google官方的文档(http://developer.android.com/reference/android/os/Bundle.html)Bundle类是一个key-value对,“A
mapping from Strin...
分类:
移动开发 时间:
2014-06-06 17:46:06
阅读次数:
261
redis cluster practice1. create three instance
folder: 9001,9002,9003,folder name as redis instance port2.Store configuration
files redis-server, redi...
分类:
其他好文 时间:
2014-06-03 17:02:51
阅读次数:
474
效果很不错的画笔App,提供几十种不同的画笔,包括毛笔画笔。拥有绘画App的一些基本功能,包括颜色选择、绘画保存,支持撤销(undo)、重做(redo)以及橡皮擦功能等等,甚至还支持类似PhotoShop图层(layer)的功能(如第二张效果图)。说明:应用的App
Store地址:https://...
分类:
移动开发 时间:
2014-06-03 16:12:14
阅读次数:
285
STL的map表里有一个erase方法用来从一个map中删除掉指令的节点eg:map
mapTest;typedef map::iterator ITER;ITER
iter=mapTest.find(key);mapTest.erase(iter);像上面这样只是删除单个节点,map的形为不会出现...
分类:
其他好文 时间:
2014-06-03 16:11:29
阅读次数:
239
Swift is a multi-tenant, highly scalable and
durable object storage system that was designed to store large amounts of
unstructured data at low cost v...
分类:
移动开发 时间:
2014-06-03 15:50:12
阅读次数:
369
两个的区别是:1.数组键名为数字键名时,要合并的两个数组中有同名数字KEY的时候,使用array_merge()不会覆盖掉原来的值,而使用“+”合并数组则会把最先出现的值作为最终结果返回,而把后面的数组拥有相同键名的那些值“抛弃”掉(注意:不是覆盖而是保留最先出现的那个值)。例子:$array1
=...
分类:
Web程序 时间:
2014-06-02 19:09:19
阅读次数:
291
今天做推断插入用到了MySQL中ON DUPLICATE KEY
UPDATE,如今Mark下面!假设你想做到数据库中没有数据的话插入数据、有数据的话更新数据,那么你能够选择ON DUPLICATE KEY UPDATE。ON
DUPLICATE KEY UPDATE可以在UNIQUE索引或PRIM...
分类:
数据库 时间:
2014-06-02 18:04:36
阅读次数:
277
通常情况下,使用TempData需要记住key的名称,本篇体验:通过帮助类,实现对TempData的设置、获取、删除。 关于传递信息的类: namespace
MvcApplication1.Models{ public class Notification { public bool IsShow...
分类:
Web程序 时间:
2014-06-02 15:36:14
阅读次数:
316
【题目】
Given a binary tree, determine if it is a valid binary search tree (BST).
Assume a BST is defined as follows:
The left subtree of a node contains only nodes with keys less than the node's key.
The right subtree of a node contains only nodes with ke...
分类:
其他好文 时间:
2014-06-02 10:29:55
阅读次数:
257