1. 编辑Apache的httpd.conf文件vim /etc/httpd/conf/httpd.conf2. 开启mod_deflate.so模块LoadModule deflate_module modules/mod_deflate.so3. 对该模块进行配置# GG到最下一行添加如下内容#...
分类:
其他好文 时间:
2014-06-29 06:12:31
阅读次数:
220
升级linux内核直接在一个有编译环境的设备上,编译升级内核很简单。make menuconfig或者拷贝现有系统的.config文件修改.config文件 CONFIG_DEBUG_INFO=n (避免编译产生文件过大)make oldconfigmake all -j4make modules_...
分类:
系统相关 时间:
2014-06-18 10:38:30
阅读次数:
287
开放封闭原则(Open Closed Principle)表述为 "软件实体(类、模块、函数等)应对扩展开放,但对修改封闭。(Software entities (classes, modules, functions, etc.) should be open for extension, but...
分类:
其他好文 时间:
2014-06-17 21:14:56
阅读次数:
268
最近开始学习CMake,因为项目需求需要用到Qt,自带的qmake会出现许多问题(比如文件修改之后有时候qmake不会侦测到不会重新编译,需要手动去编译等),于是开始尝试使用CMake来编写Qt程序,顺便学习一下怎么用CMake来使用find_package,也算给自己一次学习的机会。
切入正题,CMake对于一些有名的库都有自带文件夹中Modules里.cmake文件查询的支持,比如你...
分类:
其他好文 时间:
2014-06-17 19:17:05
阅读次数:
255
第一步找到文件phpcms\modules\admin\index.php注释掉第33行到第36行$code = isset($_POST['code']) && trim($_POST['code']) ?trim($_POST['code']) : showmessage(L('input_co...
分类:
Web程序 时间:
2014-06-17 13:45:34
阅读次数:
375
升级了mac操作系统,安装python的python-ldap,报错Modules/LDAPObject.c:18:10:fatalerror:‘sasl.h‘filenotfound#include<sasl.h>^1errorgenerated.error:command‘cc‘failedwithexitstatus1----------------------------------------Cleaningup...Command/usr/bin/python..
分类:
编程语言 时间:
2014-06-16 16:21:35
阅读次数:
758
概述JBoss 7/WildFly Standalone 模式启动过程大致如下:启动脚本 standalone.sh 启动 JBoss Modules,JBoss Modules 启动 JBoss MSC,JBoss MSC 运行加载相关的 Services,本文简单以调试代码的方式,简单说明这几个步骤。调试 jboss modules当我们完成 JBoss 安装,我们会发现在 JBOSS_HOM...
分类:
其他好文 时间:
2014-06-16 14:25:45
阅读次数:
268
select a.name,a.[type],b.[definition] from sys.all_objects a,sys.sql_modules b where a.is_ms_shipped=0 and a.object_id = b.object_id and a.[type] in (...
分类:
数据库 时间:
2014-06-15 20:39:31
阅读次数:
195
1 ifneq ($(KERNELRELEASE),) 2 obj-m := hello.o 3 4 else 5 PWD := $(shell pwd) 6 KVER := $(shell uname -r) 7 KDIR := /lib/modules/$(KVER)/build 8 al...
分类:
其他好文 时间:
2014-06-15 11:01:51
阅读次数:
349
原文:Sql Server 查看所有存储过程或视图的位置及内容select a.name,a.[type],b.[definition] from sys.all_objects a,sys.sql_modules b where a.is_ms_shipped=0 and a.object_id ...
分类:
数据库 时间:
2014-06-14 18:37:31
阅读次数:
222