首页 > 2014年06月01日 > 全部分享
u-boot学习(二):u-boot简要分析
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 看到不错的文章,不要添加收藏夹,想着以后有时间再看,因为很有可能你以后再也不会看它们了。 想写总结的文章,不要想着等到以后有时间了再总结,因为很有可能你以后更没有时间总结它们了。 ——送给自己 +++++++...
分类:其他   时间:2014-06-01 09:04:44    收藏:0  评论:0  赞:0  阅读:652
javascript bind
最近在代码中经常看到bind关键词,之前没用过啊,这里记录下。从微软复制过来的例子: // Define the original function. var checkNumericRange = function (value) { if (typeof value !== 'number') return false; else return...
分类:编程语言   时间:2014-06-01 04:58:04    收藏:0  评论:0  赞:0  阅读:401
iOS开发- Xcode插件(一)-规范注释生成器VVDocumenter
分享几个常用的Xcode插件。第一个, 规范注释生成器VVDocumenter。顾名思义, 它可以很方便的为你自动添加注释使用效果如下:下载链接:https://github.com/onevcat/VVDocumenter-Xcode使用说明:1.前往GitHub下载工程文件:VVDocumenter-Xcode2.用Xcode打开工程,Command + BBuild成功后,可以在~/Libr...
分类:移动平台   时间:2014-06-01 00:15:30    收藏:0  评论:0  赞:0  阅读:702
android:强大的图片下载和缓存库Picasso
1.Picasso简介Picasso是Square公司出品的一个强大的图片下载和缓存图片库。官方网址是:http://square.github.io/picasso/只需要一句代码就可以将图片下载并设置到ImageView上。Picasso.with(context).load("http://i.imgur.com/DvpvklR.png").into(imageView);2.主要特点2.1...
分类:移动平台   时间:2014-06-01 08:58:44    收藏:0  评论:0  赞:0  阅读:455
Andorid Binder进程间通信---Binder对象死亡通知机制
本文参考《Android系统源代码情景分析》,作者罗升阳。 一、Binder库(libbinder)代码:        ~/Android/frameworks/base/libs/binder        ----BpBinder.cpp        ----Parcel.cpp        ----ProcessState.cpp        --...
分类:其他   时间:2014-06-01 06:45:45    收藏:0  评论:0  赞:0  阅读:703
TI_DSP_corePac_带宽管理 - 1.2(仲裁寄存器)
下图为仲裁寄存器,重要的是理解SDMAARB寄存器,在该寄存器中只需要设计MAXWAIT值,PRI(优先级)设置要在外设(如FFTC,AIF2等)提供的仲裁寄存器中设置,因为是外设在访问slave,所以他们最清楚应该设置多大的优先级。如下述代码(在每个CPU上都要设置类似的代码,这样才能对每个corePac中的资源起作用,即当FFTC,AIF2等外设访问各个corePac中的资源的时候,会采用相应...
分类:其他   时间:2014-06-01 04:28:32    收藏:0  评论:0  赞:0  阅读:420
LeetCode: Decode Ways [090]
【题目】 A message containing letters from A-Z is being encoded to numbers using the following mapping: 'A' -> 1 'B' -> 2 ... 'Z' -> 26 Given an encoded message containing digits, determine the total number of ways to decode it. For example, Given encoded ...
分类:其他   时间:2014-06-01 08:59:58    收藏:0  评论:0  赞:0  阅读:379
iOS性能优化小结
iOS性能优化分析 首先要熟悉几个概念 PNG 和 JPG 的区别是什么? png格式的图片有alpha通道,jpeg则没有。png无损压缩,jpeg允许你选择0-100%的压缩质量。如果需要alpha通道(透明),就只能用png格式.CPU 和 GPU 如果想看看两者的区别,先得了解iOS视图背后的层级结构原理  上图中的最底下一行是硬件层,由GPU和CPU组成。 我们经常说到的硬件...
分类:移动平台   时间:2014-06-01 00:09:58    收藏:0  评论:0  赞:0  阅读:489
orale 查询每年、每月、每日统计量的sql语句
每年 select to_char(createtime, 'YYYY') 年, count(*) from table  group by to_char(createtime, 'YYYY'); 每季度 select to_char(createtime, 'q') 年, count(*) from table  group by to_char(createtime, 'q'); ...
分类:数据库技术   时间:2014-06-01 08:48:49    收藏:0  评论:0  赞:0  阅读:480
沁园春·咏史
沁园春·咏史 谁是谁非?宋桧连金,武穆饮生。叹止渴饮鸩,灰飞烟灭;诵传千载;长跪无声。懿旨朱批?直书秉笔?天地一根称自衡。何曾忘!这英雄千古,犹恨空横!...
分类:其他   时间:2014-06-01 03:02:57    收藏:0  评论:0  赞:0  阅读:287
drools6 基本使用2
drools6 基本使用2...
分类:其他   时间:2014-06-01 03:10:06    收藏:0  评论:0  赞:0  阅读:902
查询一个月最后一天的总用户数,数据库中没有保存最好一天的数据,就查询本月数据库已存有的最后一天的数据
select total_user from a_user_no where date_time=(select max(date_time) from a_user_no  where  ‘2013-05’+ "'=to_char(date_time,‘yyyy-mm’));   通过max 函数来去5月份出现最大日期的数据...
分类:数据库技术   时间:2014-06-01 08:53:16    收藏:0  评论:0  赞:0  阅读:365
一个自增与自减的源码
#include using namespace std; //template class Int {     friend ostream& operator public:     Int(int i):m_i(i)     {     }     Int& operator++()     {         ++(this->m_i);         r...
分类:其他   时间:2014-06-01 09:00:42    收藏:0  评论:0  赞:0  阅读:505
Java中检索联系人中有没有今天生日的
查询crm_linkman表中,birthday(数据库中为date类型)字段中,月日为5-31的记录(主要用于检索今天有没有联系人生日) SELECT * FROM crm_linkman WHERE MONTH(birthday) = 5 and DAYOFMONTH(birthday) = 31...
分类:编程语言   时间:2014-06-01 08:52:37    收藏:0  评论:0  赞:0  阅读:355
linux netlink套接字实现类似ss命令 ,统计套接字以及TCP信息
参考了 ss的源代码 以及 netlink相关资料:http://blog.csdn.net/scdxmoe/article/details/27711205 实现结果为: gcc netlink_dig_530_7.c -o netlink_dig_530_7 ./netlink_dig_530_7 state      family     l.addr...
分类:Web开发   时间:2014-06-01 05:18:39    收藏:0  评论:0  赞:0  阅读:467
iOS开发 - 不进入待机(屏幕保持唤醒)---UIApplication学习
如果你不希望应用运行时 iPhone 进入锁屏待机状态,加入下面这行代码即可[[UIApplication sharedApplication] setIdleTimerDisabled:YES];顺便, 学习了下 UIApplication。iPhone应用程序是由主函数main启动,它负责调用UIApplicationMain函数,该函数的形式如下所示:对准UIApplicationMain,...
分类:移动平台   时间:2014-06-01 08:52:01    收藏:0  评论:0  赞:0  阅读:589
设计模式六大原则——合成/聚合复用原则(CARP)
1、定义    简而言之,对于合成/聚合复用原则的定义就是:要尽量使用合成和聚合,尽量不要使用继承。           2、释义     为什么“要尽量使用合成和聚合,尽量不要使用继承”呢?      这是因为:      第一,继承复用破坏包装,它把父类的实现细节直接暴露给了子类,这违背了信息隐藏的原则;      第二:如果父类发生了改变,那么子类也要发生相应的改变,这就直...
分类:其他   时间:2014-06-01 08:50:49    收藏:0  评论:0  赞:0  阅读:474
LeetCode: Subsets II [091]
【题目】 Given a collection of integers that might contain duplicates, S, return all possible subsets. Note: Elements in a subset must be in non-descending order. The solution set must not contain duplicate subsets. For example, If S = [1,2,2], a solution ...
分类:其他   时间:2014-06-01 08:51:25    收藏:0  评论:0  赞:0  阅读:387
AndroidMainifest标签使用说明1——<action>
1. 格式: 父标签: 描述: 一个必须包含一或一个以上的.如果不包含则不会有Intent被拦截。 参数: android:name 表示的是action的名称,一些标准的action已经在Intent类中定义了,可以查询Intent的api查看。可以通过 "android.intent.action.*"来进行赋值。比如对于 ACTION_M...
分类:移动平台   时间:2014-06-01 06:03:18    收藏:0  评论:0  赞:0  阅读:387
[Noi2005]聪聪和可可
[Noi2005]聪聪和可可 Time Limit:10000MS  Memory Limit:65536K Total Submit:21 Accepted:14 Description Input 数据的第1行为两个整数N和E,以空格分隔,分别表示森林中的景点数和连接相邻景点的路的条数。 第2行包含两个整数C和M,以空格分隔,分别表示初始时聪聪和可可所在的景点的编...
分类:其他   时间:2014-06-01 05:13:06    收藏:0  评论:0  赞:0  阅读:268
591条   上一页 1 ... 19 20 21 22 23 ... 30 下一页
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!