07 2014 档案

摘要:在这款应用程序中谷歌对部分功能、API和设计架构进行了非常详细的阐述,其中包括碎片、程序加载、服务、广播、接收器、警告、通知、SQLite数据库、内容提供商、Action Bar、导航Drawer和Google Drive API、Google Cloud Messaging、Material De... 阅读全文
posted @ 2014-07-31 11:53 holycrap 阅读(198) 评论(0) 推荐(0)
摘要:max(length()) oracle字段最长长度 阅读全文
posted @ 2014-07-28 16:30 holycrap 阅读(1839) 评论(0) 推荐(0)
摘要:#define EV_TIMER_RESOLUTION 1 /* 1 msec */#define EV_READ_EVENT EPOLLIN#define EV_WRITE_EVENT EPOLLOUTstruct ev_event;struct ev_timer;typedef void ... 阅读全文
posted @ 2014-07-17 17:33 holycrap 阅读(151) 评论(0) 推荐(0)
摘要:#define DEFAULT_EPOLL_TIMEOUT 1000 /* 1 sec */static inline uint64_t get_current_msec(){ struct timespec ts; clock_gettime(CLOCK_MONOTONIC, ... 阅读全文
posted @ 2014-07-17 17:32 holycrap 阅读(201) 评论(0) 推荐(0)
摘要:#include #include #include #include #include #include "server_network.h"int sock_setnonblock(sock_t s){ int flags = 0; flags = fcntl(s, F_... 阅读全文
posted @ 2014-07-15 15:38 holycrap 阅读(221) 评论(0) 推荐(0)
摘要:每天被没成功所困扰,是否是男人需要承担的基本心理压力。女人所承担的心理压力可能是每天自问自己为什么还要和没有成功的男人在一起。男人和女人的无奈就这样每天被成功困扰着,被家庭带来的温情冲淡着。这样看来,要么你在事业上成功,要么你就好好的经营你的家庭吧。 阅读全文
posted @ 2014-07-15 09:52 holycrap 阅读(112) 评论(0) 推荐(0)
摘要:信号 使用kill -l可以查看Linux支持的信号,信号用于进程间状态通知,传递简单信息。 # kill -l 1) SIGHUP 2) SIGINT 3) SIGQUIT 4) SIGILL 5) SIGTRAP 6) SIGABRT 7) SIGBUS 8) SIGFPE 9) SIGKI... 阅读全文
posted @ 2014-07-11 15:39 holycrap 阅读(316) 评论(0) 推荐(0)
摘要:objdump -d /lib64/libc.so.6 阅读全文
posted @ 2014-07-11 14:41 holycrap 阅读(1382) 评论(0) 推荐(0)
摘要:sqltext 中sql 有完整的sql, sqlarea没有 阅读全文
posted @ 2014-07-11 10:21 holycrap 阅读(145) 评论(0) 推荐(0)
摘要:面向模式的软件体系结构,卷2,详细介绍并发网络服务器C 语言常见问题集 阅读全文
posted @ 2014-07-05 10:41 holycrap 阅读(355) 评论(0) 推荐(0)
摘要:#include #include #include #include #include #include #include #include #include #include #include #include #include "common.h"#include "serversignal.... 阅读全文
posted @ 2014-07-04 15:46 holycrap 阅读(177) 评论(0) 推荐(0)
摘要:1. 实现基础的信号处理 sigaction使用前一定内存清零2. 实现基础的进程模型 wait 等待子进程结束#include #include #include #include #include "common.h"#include "serversignal.h"static volat... 阅读全文
posted @ 2014-07-03 07:25 holycrap 阅读(256) 评论(0) 推荐(0)
摘要:/**** test how many threads can be created in x86 32 system* * ubuntu 13.0***************************************************************... 阅读全文
posted @ 2014-07-01 21:12 holycrap 阅读(355) 评论(0) 推荐(0)
摘要:/* * * Copyright (c) International Business Machines Corp., 2001 * * This program is free software; you can redistribute it and/or modify * it... 阅读全文
posted @ 2014-07-01 17:14 holycrap 阅读(260) 评论(0) 推荐(0)