PHP 提示 Creating default object from empty value
的问题,一般是由于PHP版升级的原因,PHP 5.4 以上的版本一般会报这个错误;我的解决方法:找到报错的地方,初始化对象$_obj = new
stdClass();同理,数组也需要初始化$_arr =...
分类:
Web程序 时间:
2014-05-26 16:12:37
阅读次数:
336
最基础的search api格式是empty
search,这个search不指定任何的查询条件,就是返回cluster中的所有的index的document: GET /_search相应的消息如下:{
"hits":{ "total": 14, "hits":[ { ...
分类:
其他好文 时间:
2014-05-26 14:15:42
阅读次数:
250
在empty
search中你是否注意到了查询的结果中包含了不同的type:有来自us中的user,有来自gb中的tweet。不限值index和type我们能搜索整个cluster中的所有的document,ES会把请求分发到cluster中所有的primary和replica,然后返回结果的前十条...
分类:
其他好文 时间:
2014-05-26 13:59:11
阅读次数:
257
Given a strings1, we may represent it as a
binary tree by partitioning it to two non-empty substrings recursively.Below is
one possible representation...
分类:
其他好文 时间:
2014-05-26 11:24:36
阅读次数:
214
You have an empty repositoryTo get started you will
need to run these commands in your terminal.New to Git? Learn the basic Git
commandsConfigure Git ...
分类:
其他好文 时间:
2014-05-26 09:57:01
阅读次数:
254
1. kafka是一个分布式的消息发布-订阅队列。2. 其中有一些主要的概念: Topic:
就是对放入队列的消息进行分类,分类消息分开储存,比如现在有订单消息和用户投诉消息,则分成订单topic和投诉topic Message:
放入消息队列的一条一条的消息。 Producer: 消息的生...
分类:
其他好文 时间:
2014-05-24 11:45:13
阅读次数:
236
参考
http://aralejs.org/class/docs/competitors.html,http://www.iteye.com/topic/248933,http://www.cnblogs.com/qiantuwuliang/archive/2011/01/08/1930548.ht...
分类:
Web程序 时间:
2014-05-24 08:59:33
阅读次数:
372
Unity3D的Easy Touch
的手册最近寻找中文版本,google无果,自己动手。目前暂时只有c# ,javascript原理是一样的。 一、Quick Start 1-Import
EasyTouch Package. 2-Create an empty gameObjec...
分类:
其他好文 时间:
2014-05-24 08:00:45
阅读次数:
564
【题目】
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 the entire input string (not partial).
The functi...
分类:
其他好文 时间:
2014-05-23 00:17:12
阅读次数:
364
通过IP获取归属地
请输入ip地址:
//获取ip地址
//$ip = $_SERVER['REMOTE_ADDR']; //自动获取客户端的IP
//ip对应的地区
if(!empty($_POST['ip'])){
$ip = $_POST['ip'];
//接口地址,这样返回的是一个xml结果集,如图1;
$str = file_get_cont...
分类:
Web程序 时间:
2014-05-22 18:27:26
阅读次数:
354