原文地址:https://hsivonen.fi/doctype/In order to deal both with content written according to Web standards and with content written according to legacy pr...
分类:
其他好文 时间:
2014-07-08 21:51:26
阅读次数:
539
hashlib是个专门提供hash算法的库,现在里面包括md5,sha1,sha224,sha256,sha384,sha512,使用非常简单、方便。md5经常用来做用户密码的存储。而sha1则经常用作数字签名。下面看看代码吧:#-*-encoding:gb2312-*-importhashliba="ateststring"printhashlib.md5(a).hexdigest()pr..
分类:
编程语言 时间:
2014-07-08 09:00:43
阅读次数:
242
先来说说C/C++编译过程 编译: 检查语句符号定义,将C/C++代码翻译生成中间语言。 链接: 将中间代码整合,生成可执行的二进制代码。 简单的说,库文件都是一种特殊的中间语言文件,静态库还是一种特殊格式的归档文件(打包的文件)。 使用静态库: 1. 先编写库函数 1 #ifndef _PR...
分类:
系统相关 时间:
2014-07-07 00:57:03
阅读次数:
368
一、Asp.net中的线程池设置 在Asp.net的服务处理中,每当服务器收到一个请求,HttpRuntime将从HttpApplication池中获取一个HttpApplication对象处理此请求,请求的处理过程将被排入线程池中,对于Asp.net来说,在Machine.config文件的pr....
分类:
移动开发 时间:
2014-07-06 23:03:50
阅读次数:
349
1在nginx 服务器上安装nrpe客户端:Nginx的服务需要监控起来,不然万一down了而不及时修复,会影响web应用,如下web应用上面启动的nginx后台进程[root@lb-net-2 ~]# ps aux|grep nginxnobody 15294 0.0 0.0 22432 3464 ? S Jul03 0:05 nginx: worker pr...
分类:
移动开发 时间:
2014-07-06 10:44:26
阅读次数:
267
敏捷的几点概念: a) Iteration 迭代开发 Iteratio Planing Meeting 需要团队参加的会议 b) Story Card/ Story Wall / Feature List 将特性分为 Story Card,每个Story最多一周就需要完成 Pr...
分类:
其他好文 时间:
2014-07-05 11:15:08
阅读次数:
240
在使用linux的ramoops驱动模块时,在编译完加载时,会发现驱动加载不成功。明明直接使用的内核代码,为什么会出现这样的情况呢?
首先看一下ramoops的初始化代码:
180 static int __init ramoops_init(void)
181 {
182 return platform_driver_probe(&ramoops_driver, ramoops_pr...
分类:
其他好文 时间:
2014-07-04 00:24:28
阅读次数:
761
#include #include #include #include #pragma comment( lib, "opengl32.lib" )// 链接时使用OpenGL32.lib#pragma comment( lib, "glu32.lib" )// 链接时使用GLu32.lib #pr...
分类:
其他好文 时间:
2014-07-03 22:18:24
阅读次数:
432
IOS提供了叫做MPMoviePlayerController MPMoviePlayerViewController两个类,可以轻松用来实现视频播放。MPMoviePlayerViewController只能全屏播放视频。
#import "MainViewController.h"
#import
@interface MainViewController ()
//视频播放器
@pr...
分类:
移动开发 时间:
2014-07-03 16:39:10
阅读次数:
195
1.Listener是什么 Listener实际上是一个 VirtualNetworkName,客户端通过这个VNN来连接的具体的sqlserver实例 .Listener包含了DNS名称,port和IPaddress。 当客户端通过Listener进行连接时,Listener会将请求自动导向到Pr...
分类:
其他好文 时间:
2014-07-03 12:47:22
阅读次数:
285