在阅读linux源代码的时候,我们经常会发现likely和unlikely,这两个宏语句定义在compiler.h下,#definelikely(x) __builtin_expect(!!(x),1)#defineunlikely(x) __builtin_expect(!!(x),0)这里我们需要先了解__builtin_expect:#define__builtin_expect(x,expected_value)(x)所..
分类:
系统相关 时间:
2014-09-29 17:24:01
阅读次数:
256
1.File-->Build Settings
.
2.选择导出的平台.android
3.设置公司名字,项目名字,Buddle Identifier
4,开始Build,这个过程中会让你选择sdk的安装路径,,
....
分类:
其他好文 时间:
2014-09-28 18:54:35
阅读次数:
175
首先我们来看一下错误信息:Error Domain=AFNetworkingErrorDomain Code=-1011 "Expected status code in (200-299), got 406"{ status code: 406,headers { "Content-Languag...
分类:
Web程序 时间:
2014-09-27 15:54:19
阅读次数:
280
Assuming you have storyboard, go to storyboard and give your VC an identifier (inspector), then do:UIStoryboard *storyboard = [UIStoryboard storyboard...
分类:
移动开发 时间:
2014-09-27 11:10:59
阅读次数:
185
URI: uniform resource identifier,统一资源标识符,用来唯一的标识一个资源。URL: uniform resource locator,统一资源定位器,它是一种具体的URI,即URL可以用来标识一个资源,而且还指明了如何locate这个资源。URN: uniform r...
分类:
其他好文 时间:
2014-09-26 01:52:28
阅读次数:
228
set ANSI_NULLS ONset QUOTED_IDENTIFIER ONgoALTER PROCEDURE [dbo].[db_article_GetArticlePagination]( @pagesize int, @pageindex int,@classid int,@sp_key...
分类:
其他好文 时间:
2014-09-24 19:07:27
阅读次数:
153
对持久化对象的要求
1、 提供一个无参构造器,使Hibernate可以使用Constructor.newInstace()来实例化持久化对象
2、提供一个标识属性(identifier property)。通常映射为数据库表的主键字段,如果没有该属性,一些功能将不起作用,如Session.saveOrUpdate()。
3、 为持久化类的字段声明访问方法(set/get)。Hibernate...
分类:
其他好文 时间:
2014-09-22 19:06:03
阅读次数:
243
PID:为Process Identifier, PID就是各进程的身份标识,程序一运行系统就会自动分配给进程一个独一无二的PID。进程中止后PID被系统回收,可能会被继续分配给新运行的程序,但是在android系统中一般不会把已经kill掉的进程ID重新分配给新的进程,新产生进程的进程号,一般比产...
分类:
移动开发 时间:
2014-09-22 00:46:21
阅读次数:
243
报错:Use of undeclared identifier '_executing' / '_finished';解决方法:在SDWebImageDownloaderOperation类的实现中(@implementation里)添加:1 @synthesize executing = _exe...
分类:
Web程序 时间:
2014-09-21 22:43:01
阅读次数:
1443
Replicat maintains checkpoints that provide a known position in the trail from which to
start after an expected or unexpected shutdown. By default, a record of these checkpoints
is maintained in a f...
分类:
其他好文 时间:
2014-09-21 13:21:10
阅读次数:
235