You are climbing a stair case. It takesnsteps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb...
分类:
其他好文 时间:
2014-08-31 14:22:31
阅读次数:
219
php:5.5,操作系统:ubuntu13.10 网站文本编辑器使用的是ueditor,测试上传图片显示后台配置项未成功加载,上传插件不能正常使用。 查阅了ueditor的文档,有关运行测试那里先访问ueditor/controller.php,提示出错,再访问ueditor/php/con...
分类:
Web程序 时间:
2014-08-31 11:46:51
阅读次数:
1084
private function _array_to_xml($source, $charset='utf-8'){ $array = json_decode($source); $pre = ''; $xml = $pre. $thi...
分类:
Web程序 时间:
2014-08-30 20:17:29
阅读次数:
218
One of the fundamental activities of an object-oriented design is establishing relationships between classes. Two fundamental ways to relate classes are inheritance and composition. Although the co...
分类:
其他好文 时间:
2014-08-30 19:16:10
阅读次数:
279
$xml= $this->getToken($url); $rs =simplexml_load_string (urldecode( $xml) ) ; $rs = json_decode( json_encode($rs) , true);json相关编码问题:http://www.nowa.....
分类:
Web程序 时间:
2014-08-30 12:36:39
阅读次数:
236
1、PHP文件缓存内容保存格式
PHP文件缓存内容保存格式主要有三种:
(1)变量 var_export 格式化成PHP正常的赋值书写格式;
(2)变量 serialize 序列化之后保存,用的时候反序列化;
(3)变量 json_encode格式化之后保存,用的时候json_decode
互联网上测试结果是:seri...
分类:
Web程序 时间:
2014-08-28 21:14:16
阅读次数:
254
oracle 实现类似MYSQL的 find_in_set 排序,函数 decode:
select * from tb_info_game where gameid in(23,20,19,26,18)
order by decode(gameid,23,1,20,2,18,3,26,4,1009,5)
参考CDSN的帖子:http://topic.csdn.net/...
分类:
数据库 时间:
2014-08-28 18:13:25
阅读次数:
301
我们的图片大部分都是可以转换成base64编码的data:image。 这个在将canvas保存为img的时候尤其有用。虽然除ie外,大部分现代浏览器都已经支持原生的基于base64的encode和decode,例如btoa和atob。(将canvas画布保存成img并强制改变mimetype进行下...
分类:
其他好文 时间:
2014-08-28 13:08:19
阅读次数:
270
思想: 动态规划,分析:
12121212: 前面为1 或者 (前面是2 且 当前值 1。
分类:
其他好文 时间:
2014-08-27 21:51:28
阅读次数:
205
http://www.oschina.net/translate/8-ways-improve-asp-net-web-api-performance英文原文:8 ways to improve ASP.NET Web API performanceASP.NET Web API 是非常棒的技术。编...