Givennnon-negative integersa1,a2, ...,an, where
each represents a point at coordinate (i,ai).nvertical lines are drawn such that
the two endpoints of ...
分类:
其他好文 时间:
2014-06-04 21:09:33
阅读次数:
307
Screen.h#ifndef SCREEN_H#define SCREEN_H#include
class Screen {public: typedef std::string::size_type pos; // Action is a type
that can point to...
分类:
其他好文 时间:
2014-06-04 20:59:09
阅读次数:
350
概述本小菜平时主要写后台程序,偶尔也会去写点前端页面,写html、css、js的时候,会同时开着ie6、ie7、ie8、ie9、chrome、firefox等浏览器进行页面测试,和大部分前端开发一样,经常被ie折磨,下面就总结一些常见的浏览器兼容性问题,放一起方便自己总结学习,我知道这类型文章,很多...
分类:
其他好文 时间:
2014-06-04 20:51:36
阅读次数:
277
Given two binary trees, write a function to
check if they are equal or not.Two binary trees are considered equal if they are
structurally identical an...
分类:
其他好文 时间:
2014-06-04 18:37:18
阅读次数:
277
初次使用thinkphp框架,开发一个邮件发送功能,由于对框架不熟悉折腾了几个小时终于成功了,以下是代码记录。此函数只能在ThinkPHP中使用且需要phpmailer扩展的支持;phpmail的下载地址:https://code.google.com/a/apache-extras.org/p/p...
分类:
Web程序 时间:
2014-06-03 13:20:22
阅读次数:
285
使用如下:1.先下载android-support-v4.jar最新版本,之前的版本是没有SwipeRefreshLayout下拉刷新控件的,如果已经更新,此步骤可省略。2.在xml文件中引用android.support.v4.widget.SwipeRefreshLayout控件,在里面可以放置...
分类:
其他好文 时间:
2014-06-03 13:10:17
阅读次数:
300
Tigase和OpenFire都是基于XMPP(Extensible Messaging and
Presence Protocol,可扩展通讯和表示协议)的,主要功能是实现消息的即时通信。Google
Talk支持XMPP协议,可惜QQ和MSN不支持XMPP协议,如果支持的话,Google Tal...
分类:
其他好文 时间:
2014-06-03 12:26:20
阅读次数:
680
Spring
3.0.5的,更细颗粒化的缓存设置,更方便的注解,可以具体到把每个方式的返回值做缓存,需要
ehcache-spring-annotations-1.1.x。下载地址是:http://code.google.com/p/ehcache-spring-annotations首先,appl...
分类:
编程语言 时间:
2014-05-30 19:53:12
阅读次数:
463
Storage不小心看到这个类,注释写着//
分布式文件存储类。。。。不懂,吖的,google不能用,只能用某度,挺火大的。又找到ThinkPHP\Library\Think\Storage\Driver
下面的File.class.php,那么,Storage类只是通过判断type去加载File....
分类:
其他好文 时间:
2014-05-30 17:02:40
阅读次数:
235
本文将介绍单元测试工具google
test(GTEST)在linux操作系统中测试环境的搭建方法。本文属于google test使用的基础教程。在linux中使用google
test之前,需要对如下知识有一些了解:(1)C/C++编程方法(2)makefile的编写(3)linux命令行操作(4...
分类:
系统相关 时间:
2014-05-30 16:31:29
阅读次数:
549