ITeye博客

xjk112的博客

xjk112 · 共 12 篇文章

mysql 创建 table 时 不要加 单引号

create table book( id int(11) not null auto_increment, num int(11) default null, name varchar(11) default null, primary key (id), key asd (num) )engine=innoDB default charset=gbk;

2014-05-02 09:23 · mysql · 评论(0)

mysql

(1) 服务器的 IP (192.168.1.248) (2) 包 (MySQL-server-5.6.17-1.el6.x86_64.rpm) (MySQL-client-5.6.17-1.el6.x86_64.rpm) (MySQL-shared-compat-5.6.17-1.el6.x86_64.rpm) (3) 以 root 登入 (4) rpm -i MySQL-shared-compat-5.6.17-1.el6.x86_64.rpm (5) rpm -ivh MySQL-server-5.6.17-1.el6.x86_64.rpm (6) rpm -ivh MySQL-cli…

2014-04-24 19:29 · mysql · 评论(0)

c 常用头文件的作用

1、 Linux中一些头文件的作用: <assert.h>:ANSI C。提供断言,assert(表达式) <glib.h>:GCC。GTK,GNOME的基础库,提供很多有用的函数,如有数据结构操作函数。使用glib只需要包含<glib.h> <dirent.h>:GCC。文件夹操作函数。struct dirent,struct DIR,opendir(),closedir(),readdir(),readdir64()等 <ctype.h>:ANSI C。字符测试函数。isdigit(),islower()等 <errno.h>:ANSI C。查看错误代码errno是调试程序的一个重要方法…

2014-03-27 14:06 · linux · 评论(0)

linux

crontab -e crontab -l crontab -r scp souce destination

2014-03-25 13:26 · linux · 评论(0)

Pointer in Object-c

Get Rules : By simply returning an object you are returning a weak reference to it; In other words, the pointer value is copied to the receiver's variable but the reference count is unchanged. The same thing happens when an element from a collection is returned;

2013-12-18 21:50 · Document - ios · 评论(0)

int NSInteger NSNumber

look down #if __LP64__ || (TARGET_OS_EMBEDDED && !TARGET_OS_IPHONE) || TARGET_OS_WIN32 || NS_BUILD_32_LIKE_64 typedef long NSInteger; typedef unsigned long NSUInteger; #else typedef int NSInteger; typedef unsigned int NSUInteger; #endif you usually want to use NSInteger when you don't konw what kin…

2013-12-13 10:45 · ios · 评论(0)

ios nil Nil Null

i am newbie to iphone,here the difference between nil, Nil, Null; nil -> Null-pointer to objective-c object Nil -> Null-pointer to objective-c class Null - > null pointer to primitive type or absence of data;(null 指针 ->一个原始的类型或缺失的对象) here is details; Follow me: nil is the literal(字面) null value for…

2013-12-12 14:18 · ios · 评论(0)

Duplicate symbol issues xx.o

what hell ! 今天碰到了 Duplicate symbol issues xx.o 的问题(xx.o文件是c语言的目标文件),指的是:xx.m的文件被两次导入,生成2个目标文件! 顺便复习下{ xx.c : c语言源文件 xx.i : 预处理的c文件 xx.s : 生成的汇编文件 xx.o : 目标文件 }

2013-12-11 14:49 · ios · 评论(0)

c 语言知识点

const : 只读常量; #include <> : 引用标准头文件,编译器从标准库目录开始搜索; #include "" : 引用非标准头文件,编译器从用户工作目录开始搜索;

2013-12-04 13:25 · C language · 评论(0)

Introduction to Attributed String Programming Guide - Accessing Attributes

访问属性 一个 attributed string 识别属性 by 名字, 在一个Map(which 是 依次和一个 NSRange[它显示 characters {字符- >那个map请求的字符}] 有关)中在对应的属性名下存储值.除了标准的属性外,你能分配一个范围的字符串给任何属性名-值对。 取回/检索属性值 拥有一个非可变的 attributed string,在创造它的时候,你分配所有的属性.In Java,你用构造函数,In OC, 你用 比如"initWithString:attributes"(which 采用NSDictionary管理name-value对)的方法,或"in…

2013-11-28 22:39 · Document - ios · 评论(0)

ios对象初始化

ios对象初始化常见方法: viewWillAppear, viewDidAppear, ........其实这些方法是在视图展现或隐藏的时候才会被called,我们平时用storyboard时,页面元素的初次加载是在“awakeFromNib”时instantiated的;而在animated transistions 过程中 ,“viewWillAppear, viewDidAppear”这些方法是被called 多次的,所以呢!。。。。。

2013-11-27 21:56 · ios · 评论(0)

mysql

mysql 权限 : (1) grant all *.* on 'root'@'%'; // 将本数据库的所有表的所有权限给任意机器上的root用户 > grant all *.* on 'xjk'@'192.168.1.111'; // 将本数据库的所有表的所有权限给 192.168.1.111 机器上的root用户 > flush privileges; // 刷新权限

2013-11-24 09:29 · mysql · 评论(0)