码迷,mamicode.com
首页 > 其他好文
Service初步认识
1、Service是什么 Service是一个应用程序组件,Android四大核心组件之一 Service没有图形化界面 通常用来处理一些耗时比较长的操作 可以使用Service更新ContentProvider,发送Intent以及启动系统的通知 2、Service不是什么 Service不是一个单独的进程 Service不是一个线程...
分类:其他好文   时间:2014-12-15 23:38:57    阅读次数:140
UITableViewCell的重用
UITableViewCell的重用总结心得...
分类:其他好文   时间:2014-12-15 23:39:04    阅读次数:179
<frameset>和<body>不能共用
和不能共用...
分类:其他好文   时间:2014-12-15 23:38:53    阅读次数:213
ZOJ3623:Battle Ships(完全背包)
Battle Ships is a new game which is similar to Star Craft. In this game, the enemy builds a defense tower, which has L longevity. The player has a military factory, which can produce N kinds of batt...
分类:其他好文   时间:2014-12-15 23:40:22    阅读次数:304
Resources.Theme
public final class Resources.Theme extends Object java.lang.Object    ? android.content.res.Resources.Theme Class Overview This class holds the current attribu...
分类:其他好文   时间:2014-12-15 23:37:53    阅读次数:289
ZOJ3662:Math Magic(完全背包)
Yesterday, my teacher taught us about math: +, -, *, /, GCD, LCM... As you know, LCM (Least common multiple) of two positive numbers can be solved easily because of a * b = GCD (a, b) * LCM (a, b). ...
分类:其他好文   时间:2014-12-15 23:38:50    阅读次数:287
LeetCode——TwoSum
题目: Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two numbers such that they add up to the target, ...
分类:其他好文   时间:2014-12-15 23:37:57    阅读次数:224
在tornado中使用celery实现异步任务处理之一
一、简介 tornado-celery是用于Tornado web框架的非阻塞 celery客户端。 通过tornado-celery可以将耗时任务加入到任务队列中处理, 在celery中创建任务,tornado中就可以像调用AsyncHttpClient一样调用这些任务。 ? Celery中两个基本的概念:Broker、Backend Broker : 其实就是一开始说的 消息队列 ...
分类:其他好文   时间:2014-12-15 23:38:30    阅读次数:477
struts2 常用标签的一般用法
1.标签value 默认来自top of stack,默认的类型是Object取username(对象)的值,显示一个字符串如果找不到指定一个默认值'" escape="false" />以html元素在页面显示2.标签scope存放的位置default value is Action(一般是名字太...
分类:其他好文   时间:2014-12-15 23:36:11    阅读次数:233
Zindex和png
Z轴在元素设置position为absolute或relative后被激活,起大小由z-index设置,z-index越大,元素位置越靠上。如果多个元素的z-index值相同,那么html标签中后出现的元素会浮在先出现元素上面。多元素位置重叠,除了设置position为absolute或relati...
分类:其他好文   时间:2014-12-15 23:36:18    阅读次数:244
编程思路总结——递归
1. 二叉树中和为某一值的路径路径:从树的根节点到叶子节点经过的节点形成的路径,例如途中(10,5,4),(10,5,7),(10,12)满足和为22的路径有(10,5,7)、(10,12)参考代码void FindPath(TreeNode *root, vector &vec, int cur,...
分类:其他好文   时间:2014-12-15 23:34:35    阅读次数:268
FFMPEG-数据结构解释(AVCodecContext,AVStream,AVFormatContext)
http://blog.csdn.net/yuan892173701/article/details/8702333AVCodecContext这是一个描述编解码器上下文的数据结构,包含了众多编解码器需要的参数信息如果是单纯使用libavcodec,这部分信息需要调 用者进行初始化;如果是使用整个F...
分类:其他好文   时间:2014-12-15 23:35:01    阅读次数:412
Git 命令
Commit 取消:git reset --hard git push origin HEAD --force根据–soft –mixed –hard,会对working tree和index和HEAD进行重置:git reset –mixed:此为默认方式,不带任何参数的git reset,即时这...
分类:其他好文   时间:2014-12-15 23:32:31    阅读次数:270
codeforces 495A. Digital Counter 解题报告
题目链接:http://codeforces.com/problemset/problem/495/A 这个题目意思好绕好绕~~好绕~~~~~,昨天早上做得 virtual 看不懂,晚上继续看还是,差点就想求救 XX 兽了,最终还是打住,尽量不要依赖人嘛。今天终于想到了,大感动 ~_~ 理解能力.....
分类:其他好文   时间:2014-12-15 23:32:00    阅读次数:349
leetcode. Maximum Product Subarray
Find the contiguous subarray within an array (containing at least one number) which has the largest product.For example, given the array[2,3,-2,4],the...
分类:其他好文   时间:2014-12-15 23:31:49    阅读次数:214
01背包专题
>>什么是01背包>题目链接#includeusing namespace std;int main(){ int N,V,T; int w[1005]; int c[1005]; int i,j,k; scanf("%d",&T); while(T--) ...
分类:其他好文   时间:2014-12-15 23:31:18    阅读次数:356
1692: [Usaco2007 Dec]队列变换(BZOJ1640强化版)
1692: [Usaco2007 Dec]队列变换Time Limit:5 SecMemory Limit:64 MBSubmit:682Solved:280[Submit][Status]DescriptionFJ打算带他的N(1 s1[i] then 50 ...
分类:其他好文   时间:2014-12-15 23:31:06    阅读次数:261
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!