码迷,mamicode.com
首页 > 2014年12月28日 > 全部分享
实战Nginx(4)-压缩模块与http首部响应报文模块
默认情况下,Nginx的gzip压缩是关闭的,gzip压缩功能就是可以让你节省不少带宽,但是会增加服务器CPU的开销,Nginx默认只对text/html进行压缩,如果要对html之外的内容进行压缩传输,我们需要手动调整。一.nginx资源文件压缩模块介绍基于gzip实现资源文件压缩模块:发送给客户..
分类:Web程序   时间:2014-12-28 01:56:24    阅读次数:318
Linux DNS 设置失败
在执行yuminstallgcc时发现下载失败pingwww.baidu.comping不通ping百度的IP:220.181.111.188却能ping通由此证明是DNS的问题百度后查到设置DNS需要运行命令:vi/etc/resolv.conf添加:nameserver192.168.0.1nameserver192.168.0.1然而运行vi/etc/resolv.conf后提示:#Generated..
分类:系统相关   时间:2014-12-28 01:54:41    阅读次数:277
Linux-0.11内核内存管理get_free_page()函数分析
/**Author:DavidLin*Date:2014-11-11pm*Email:linpeng1577@163.comorlinpeng1577@gmail.com*world:thecityofSZ,inChina*Ver:000.000.001*history:editortimedo 1)LinPeng2014-11-11createdthisfile! 2)*/Linux-0.11内存管理模块是源代码中比较难以理解的部分,现在把笔者个人的..
分类:系统相关   时间:2014-12-28 01:53:20    阅读次数:205
Linux-0.11内核源码分析系列:进程调度
/* *Author:DavidLin *Date:2014-12-10pm *Email:linpeng1577@163.comorlinpeng1577@gmail.com *world:thecityofSZ,inChina *Ver:000.000.001 *history:editortimedo *1)LinPeng2014-12-10createdthisfile! *2) *//*author:linus*/ voidsleep_on(structtask_struct*..
分类:系统相关   时间:2014-12-28 01:53:38    阅读次数:225
【java解惑】Unicode转义符的使用
如下所示代码:publicclassExample014{ publicstaticvoidmain(String[]args){ /** *itisatestfor\utest. */ //\u0022是双引号的Unicode转义字符 System.out.println("a\u0022.length()+\u0022b".length()); } }结果说明:上述程序有编译错误。如果删除多行注释,..
分类:编程语言   时间:2014-12-28 01:52:59    阅读次数:231
有点想法系列:借助海尔平台打造智能家居的一点想法
前言:这只是本人做了一个无线通信项目,看了一篇文章,吃了一顿饭,饭桌上和同事讨论了手机行业(原谅京瓷和NEC都做过手机啊,原谅楼主村里人 ..
分类:其他好文   时间:2014-12-28 01:55:06    阅读次数:170
Linux内核编程:从hello world 开始-(1)_C文件编写
/* *File:test.c *Author:DavidLin *Date:2014-12-07pm *Email:linpeng1577@163.comorlinpeng1577@gmail.com *world:thecityofSZ,inChina *Ver:000.000.001 *history:editortimedo *1)LinPeng2014-12-07createdthisfile! *2) */ #include<linux/init.h> #include<lin..
分类:系统相关   时间:2014-12-28 01:54:06    阅读次数:254
软件调试:利用断言ASSERT宏定位软件bug
/* *Author:DavidLin *Date:2014-12-26pm *Email:linpeng1577@163.comorlinpeng1577@gmail.com *world:thecityofSZ,inChina *Ver:000.000.001 *For:threadsforrxtx! *history:editortimedo *1)LinPeng2014-12-26createdthisfile! *2) */ /*assert_self.h*/ #ifndef__ASSERT_S..
分类:其他好文   时间:2014-12-28 01:51:31    阅读次数:198
Linux内核编程:源码分析之防御性编程学习
/* *Kernel:Linux2.6.32.63 *File:\scripts\mod\modpost.h \scripts\mod\modpost.c *Author:DavidLin *Date:2014-12-25pm *Email:linpeng1577@163.comorlinpeng1577@gmail.com *world:thecityofSZ,inChina *Ver:000.000.001 *history:editortimedo *1)LinPeng2014-12-25create..
分类:系统相关   时间:2014-12-28 01:53:17    阅读次数:180
Linux内核编程:从hello world 开始-(3)_run      
/* *File:test.c *Author:DavidLin *Date:2014-12-07pm *Email:linpeng1577@163.comorlinpeng1577@gmail.com *world:thecityofSZ,inChina *Ver:000.000.001 *history:editortimedo *1)LinPeng2014-12-07createdthisfile! *2) */1.获得root权限:suroot;2.make3.insmod./test.ko..
分类:系统相关   时间:2014-12-28 01:53:24    阅读次数:179
操作系统栈溢出检测之ucosII篇
Author:DavidLin林鹏E-mail:linpeng1577@gmail.comlinpeng1577@163.comOS:源码级理解掌握UcosRt-thread等嵌入式操作系统内核的设计与实现目前在研究linux内核路漫漫其修远兮吾将上下而求索:)转载请注明出处谢谢前言 在嵌入式操作系统运行中进程的栈溢出问题是大家比较关心的问..
分类:其他好文   时间:2014-12-28 01:51:48    阅读次数:365
10天学通Android开发(4)-用户布局与常用控件
常用布局FrameLayout:子元素没有相对位置概念,都相对于左上角LinearLayout:线性布局,一个接一个,水平或垂直RelativeLayout:相对布局,可相对其它子元素TableLayout:水平和垂直LinearLayout的混和如:<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/a..
分类:移动开发   时间:2014-12-28 01:53:34    阅读次数:270
Linux内核编程:Linux2.6内核源码解析_进程遍历        
/* *File:test.c *Author:DavidLin *Date:2014-12-07pm *Email:linpeng1577@163.comorlinpeng1577@gmail.com *world:thecityofSZ,inChina *Ver:000.000.001 *history:editortimedo *1)LinPeng2014-12-07createdthisfile! *2) */ #include<linux/init.h> #include<lin..
分类:系统相关   时间:2014-12-28 01:51:34    阅读次数:211
微创居然被唐骏买了,顺便挖挖里面的内部
前几天忽然在微信群里发现以前的微创同事发来的消息,唐骏回微创了,消失了好久的之前不是去新华都了么,怎么又回来了,难道是混不下去了么?然后发现不是回微创而是控股微创了,尼玛一个微创技术经理是怎么控股微创的呢,微创不是闵行区政府和微软控股的么?作为前微软和前微..
分类:其他好文   时间:2014-12-28 01:52:23    阅读次数:34773
Nginx 多规则关键字替换模块 subs_filter_module
本文介绍一个nginx第三方模块nginx_substitutions_filter,此模块作用是替换过滤响应主体,nginx也有一个类似这样的原生模块(http_sub_module),但有一个缺点,就是只能使用一条规则,而nginx_substitutions_filter则不限规则数量(测试效率比原生模块稍慢一点)。安装方法1.svnc..
分类:其他好文   时间:2014-12-28 01:50:30    阅读次数:213
有个函数:逆序排列char* reverse(char *buf)
/* *Author:DavidLin *Date:2014-12-15pm *Email:linpeng1577@163.comorlinpeng1577@gmail.com *world:thecityofSZ,inChina *Ver:000.000.001 *For:reversethechararray/string! *history:editortimedo *1)LinPeng2014-12-15createdthisfile! *2) */ char*reverse(char*buf..
分类:其他好文   时间:2014-12-28 01:50:30    阅读次数:126
协议实现:如何实现一个最简单的通信协议(线程模拟)
/* *Author:DavidLin *Date:2014-12-20pm *Email:linpeng1577@163.comorlinpeng1577@gmail.com *world:thecityofSZ,inChina *Ver:000.000.001 *For:threadsforrxtx! *history:editortimedo *1)LinPeng2014-12-20createdthisfile! *2) */ #include<stdio.h> #include<..
分类:编程语言   时间:2014-12-28 01:51:42    阅读次数:174
1169条   上一页 1 ... 57 58 59 60 61 62 63 ... 69 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!