bai_jimmy

导航

2016年3月6日 #

php base64 原理

摘要: #include <stdio.h> #include <stdlib.h> #include <string.h> static const char base64_table[] ={ 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 阅读全文

posted @ 2016-03-06 12:38 bai_jimmy 阅读(214) 评论(0) 推荐(0)

2016年2月21日 #

位集合

摘要: #include <stdio.h> #include <limits.h> #include <string.h> unsigned character_offset(unsigned bit_number); unsigned bit_offset(unsigned bit_number); / 阅读全文

posted @ 2016-02-21 22:18 bai_jimmy 阅读(364) 评论(0) 推荐(0)

2016年2月2日 #

多线程进行http请求

摘要: 昨天需要一个线下脚本进行单播推送,大约有1kw个用户,考虑到推送速度就临时搞了个请求线上的一个脚本 /** * 临时支持invoke单播推送 */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <pthread 阅读全文

posted @ 2016-02-02 14:15 bai_jimmy 阅读(6789) 评论(0) 推荐(0)

2015年5月17日 #

mysql--测试前缀索引能否用于order by 或者 group by

摘要: 创建一个测试用表mysql> desc two;+-------+-------------+------+-----+---------+----------------+| Field | Type | Null | Key | Default | Extra |... 阅读全文

posted @ 2015-05-17 00:09 bai_jimmy 阅读(854) 评论(0) 推荐(0)

2015年5月16日 #

用mysql触发器实现log记录

摘要: 首先建立两张测试用表mysql> desc pay;+-------+---------------+------+-----+---------+----------------+| Field | Type | Null | Key | Default | Extra ... 阅读全文

posted @ 2015-05-16 16:39 bai_jimmy 阅读(547) 评论(0) 推荐(0)

2015年5月13日 #

源码安装mysql

摘要: 1.安装依赖组件#yuminstallgccgcc-c++ncurses-develperl-y2.安装cmake#wgethttp://www.cmake.org/files/v2.8/cmake-2.8.12.tar.gz#tarzxvfcmake-2.8.12.tar.gz#cdcmake-2... 阅读全文

posted @ 2015-05-13 16:12 bai_jimmy 阅读(114) 评论(0) 推荐(0)

2015年5月3日 #

C语言:void指针

摘要: 使用前必须进行强制类型转换#include void test(const void *p);int main(){ int i = 123; int *p = &i; puts("my test:"); test(p);}void test(... 阅读全文

posted @ 2015-05-03 22:56 bai_jimmy 阅读(125) 评论(0) 推荐(0)

2015年5月1日 #

C语言:枚举类型

摘要: 整数常量的符号名称...#include enum _bool {false,true};int main(){ enum colors { red, orange, yellow, ... 阅读全文

posted @ 2015-05-01 17:54 bai_jimmy 阅读(150) 评论(0) 推荐(0)

C语言:结构体与数组

摘要: #include struct book{ char title[100]; char author[100]; int price;};int arr[10] = {1,2,3,4,5,6,7,8,9,10};int main(){ stru... 阅读全文

posted @ 2015-05-01 17:17 bai_jimmy 阅读(435) 评论(0) 推荐(0)

C语言:联合变量

摘要: #include union hold{ int digit; double big; char letter;};int main(){ union hold a; a.letter = 'R'; union ho... 阅读全文

posted @ 2015-05-01 16:34 bai_jimmy 阅读(296) 评论(0) 推荐(0)