API Reference对__block变量修饰符有如下几处解释://A powerful feature of blocks is that they can modify variables in the same lexical scope. You signal that a block can modify a variable using the __block storage typ...
分类:
其他好文 时间:
2015-05-04 12:07:38
阅读次数:
135
Capturing automatic variablesNext, you need to learn what the “together with automatic (local) variables” part means. For Blocks, this can be rephrase...
分类:
移动开发 时间:
2015-05-03 23:25:13
阅读次数:
176
初始化main
|-mysqld
|-my_init // 初始话线程变量,互斥量
|-load_defaults // 获取配置
|-init_common_variables // 初始化变量
|-init_server_components // 初始化插件
| |-plugin_init...
分类:
数据库 时间:
2015-04-30 20:12:12
阅读次数:
217
概述
本文讲述GreenDao对关系数据的支持。分别为
ToOne,
ToMany.
双向关联
Tree Relations
To-One
相当于外键关系。
// The variables "user" and "picture" are just regular entities
Property pictureIdProperty = user.addLongPropert...
分类:
移动开发 时间:
2015-04-30 16:20:58
阅读次数:
450
1、数据库挂到cxgrid上,中文显示不正确我调试了好长时间,怀疑是编码问题,mysql的编码方式我都试过了,都不可以。
解决问题过程:
(1)、在dos系统下进入mysql数据库输入show variables like ‘char%’;
我考虑可能是character_set_connection的编码有问题,于是开始设置它的编码方式,但是,这个编码方式重新启动数据库还是原来的编码方式...
分类:
数据库 时间:
2015-04-29 19:49:29
阅读次数:
271
-- Created on 2015/4/29 by MENGHU DECLARE -- Local variables here I INTEGER; BEGIN FOR OPEN_DATA IN (SELECT * FROM SYS_DEPT_ACCOUNTING SDA WHERE SD...
分类:
数据库 时间:
2015-04-29 16:35:59
阅读次数:
160
在安装mysql的时候如果没有选择编码方式的话,那么系统将默认选择latin1编码,在mysql的控制台的窗口中输入show variables like 'char%'可以查看到数据库系统的默认的编码集,如下:
我们可以看出系统的默认的编码是Latin1编码方式,Latin1是ISO-8859-1的别名,有些环境下写作Latin-1。ISO-8859-1编码是单字节编码,向下兼容A...
分类:
数据库 时间:
2015-04-26 09:24:40
阅读次数:
136
译文出处:Why does Java have transient variables?
java 中的 transient 关键字表明了 transient 变量不应该被序列化(transient)。
参考Java Language Specification, Java SE 7 Edition, Section 8.3.1.3. transient Fields:被 transient...
分类:
编程语言 时间:
2015-04-24 22:51:01
阅读次数:
217
如何开启mysql计划事件(2012-07-26 12:21:23)转载▼标签:mysql事件计划it分类:MySQL首先在sql中查询计划事件的状态:SHOW VARIABLES LIKE 'event_scheduler'如果返回的是off表示当前是关闭状态,如果是on当前已经开启了计划任务。在...
分类:
数据库 时间:
2015-04-24 15:39:21
阅读次数:
158
一、概述
环境变量:bash shell用一个称作“环境变量(environment variables)”的特性来存储有关shell会话和工作环境的信息,它允许你在内存中存储数据,以便运行在shell上的程序和脚本访问,这些数据可以用来识别用户、账户、系统、shell特性以及任何其他你需要存储的数据。
shell中的环境变量有全局环境变量和局部环境变量,通过K...
分类:
系统相关 时间:
2015-04-24 09:21:56
阅读次数:
244