Android的adt提供了android图标的制作工具:Android icon set。 通过这个可以新建launcher或notification图标。
1.首先,在Eclipse中某个android项目上右击打开 New - Other 视图
2. 找到Android,Android icon set,然后点击Launcher...
分类:
移动开发 时间:
2014-10-06 14:47:10
阅读次数:
448
WebView的缓存可以分为页面缓存和数据缓存。
1. 页面缓存是指加载一个网页时的html、JS、CSS等页面或者资源数据。这些缓存资源是由于浏览器的行为而产生,开发者只能通过配置HTTP响应头影响浏览器的行为才能间接地影响到这些缓存数据。
他们的索引存放在/data/data/package_name/databases下。他们的文件存放在/d...
分类:
Web程序 时间:
2014-10-06 15:03:40
阅读次数:
183
一.类模板
C++中可以将模板的思想应用与类,使得类可以不关注具体所操作的数据类型,而只关注类所实现的功能。
C++中的类模板
---- 提供一种特殊的类以相同的行为处理不同的类型
---- 在类声明前使用template进行标识
---- 用于说明类中使用的泛指类型T
template
class Operator
{
public:
T ...
分类:
其他好文 时间:
2014-10-06 15:03:30
阅读次数:
167
UI 常用方法总结之--- UIWindow UIView (不断更新中)...
Given preorder and inorder traversal of a tree, construct the binary tree.
Note:
You may assume that duplicates do not exist in the tree.
/**
* Definition for binary tree
* struct TreeNode {
...
分类:
其他好文 时间:
2014-10-06 14:46:30
阅读次数:
202
UI 常用方法总结之--- UILabel UITextField (不断更新中)...
分类:
其他好文 时间:
2014-10-06 15:03:00
阅读次数:
168
1、 仿函数
仿函数又名函数对象,具有函数性质的对象,就是传入一些参数,然后对参数进行某些运算,然后返回一个值。为了能够使行为类似函数,需要在类别定义中必须自定义function call 运算子operator()。
仿函数有如下几类:算术类仿函数(plus、minus)关系运算类仿函数(equal_to、less)逻辑运算类仿函数(logical_and、logical_or、logica...
分类:
其他好文 时间:
2014-10-06 16:42:50
阅读次数:
231
Given inorder and postorder traversal of a tree, construct the binary tree.
Note:
You may assume that duplicates do not exist in the tree.
/**
* Definition for binary tree
* struct TreeNode {...
分类:
其他好文 时间:
2014-10-06 14:45:50
阅读次数:
178
第十五章 多态性和虚函数
/**
* 书本:【ThinkingInC++】
* 功能:纯抽象类
* 时间:2014年10月6日13:10:28
* 作者:cutter_point
*/
#include
using namespace std;
enum note {middleC, Csharp, Cflat};
//创建一个抽象类
//基类
class Instrument
{
p...
分类:
编程语言 时间:
2014-10-06 15:02:20
阅读次数:
281
Given a binary tree, find its maximum depth.
The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node.
/**
* Definition for binary tree
...
分类:
其他好文 时间:
2014-10-06 16:08:40
阅读次数:
181
在这一节,接着使用上一节的代码例子往下讲,http://blog.csdn.net/troy__/article/details/39806245。
添加文件到暂存区
添加新文件和修改版本库中的已有文件的内容是常用的操作,命令git add可以完成这两种操作,帮助暂存须要提交的变更。暂存的变更(stage change)就是工作目录树中那些你打算提交到版本库的变更。暂存操作将...
分类:
其他好文 时间:
2014-10-06 15:18:20
阅读次数:
259
7.预先准备好内存不够的情况。
new在无法完成内存分配请求时,会抛出异常,异常了要怎么办,这是一个很现实且以后绝对要碰到的问题。
在c中一般使用宏来分配内存并检测分配是否成功,c++中类似以下函数:
#define NEW(PTR,TYPE) try { (PTR) = new TYPE;} catch (std::bad_alloc& ){assert(0);}catc...
分类:
编程语言 时间:
2014-10-06 16:41:30
阅读次数:
174
其实流程大致是:调用飞驴下载API+文件下载+调用flvBind...
分类:
Web程序 时间:
2014-10-06 16:08:00
阅读次数:
426
原因:
数据库table和插入语句的字符编码不匹配或者数据库table的编码不支持中文
解决方案:
修改table中的字符编码为:utf-8(或gbk,gb2312)
在代码中链接数据库时,连接字符串后面加上?characterEncoding=utf8,例如jdbc:mysql://localhost:3306/db_zhu?characterEncoding=utf8
在出现插...
分类:
数据库 时间:
2014-10-06 15:50:50
阅读次数:
257
使用自定义代码生成工具快速进行Laravel开发
这个Laravle包提供了一种代码生成器,使得你可以加速你的开发进程,这些生成器包括:
generate:model – 模型生成器
generate:view – 视图生成器
generate:controller – 控制器生成器
generate:seed – 数据库填充器
generate:migration – 迁移
generate:pivot – 关联表
generate:resource -资源
generate:scaffold – 脚...
分类:
其他好文 时间:
2014-10-06 15:00:11
阅读次数:
212
昨晚安装好了ububtu 14.04 server 64-bit 今天就得配置服务器了 上午安装了 mysql phpmyadmin apache php5 tomcat jdk还算顺利1. 在宿主机的windows安装了一个 Xshell 相应的在linux里也要安装ssh服务 这样就可以在windows和虚拟机的linux间传递文件,在windows下载的安装文件可以传递到虚...
分类:
系统相关 时间:
2014-10-06 15:49:20
阅读次数:
284