大约有 4,000 项符合查询结果(耗时:0.0217秒) [XML]
Lua简明教程 - 脚本技术 - 清泛IT论坛,有思想、有深度
...year.." : " .. self.name
end复制代码
模块我们可以直接使用require(“model_name”)来载入别的lua文件,文件的后缀是.lua。载入的时候就直接执行那个文件了。比如:我们有一个hello.lua的文件:print("Hello, World!")复制代码
如...
对外网用户的squid代理+认证 - 更多技术 - 清泛网 - 专注C/C++及内核技术
...proxynew# make install
2、安装Apache,squid认证用户设置密码时使用apache的密码管理程序htpasswd
jiulongproxynew# cd /usr/ports/www/apache13
jiulongproxynew# make install
3、下载并安装squid
从http://www.squid-cache.org/Versions/v2/2.6/下载squid-2.6.STABLE16.tar.gz
...
SSMS插件开发指南 - C/C++ - 清泛网 - 专注C/C++及内核技术
...plicationObject = (DTE2)ServiceCache.ExtensibilityModel;
注意:开发使用的VS版本不能高于SSMS的版本,否则会出现各种各样意想不到的问题。
SSMS2008一般采用VS2005或VS2008开发,SSMS2012采用VS2012开发。SSMS2008与SSMS2012一些获取对象等细节方面...
Linux反编译全攻略 - 操作系统(内核) - 清泛网 - 专注C/C++及内核技术
...什么都没有。这不是一个正常的程序?
接下来,使用十六进制工具 hexedit 查看程序信息。运行命令:hexedit cm2 ,显示如下:
代码:
00000000 7F 45 4C 46 01 01 01 00 4C 69 6E 75 78 00 00 00 .ELF....Linux...
00000010 02 00 03 00 01 00 ...
【内核源码】linux UDP实现 - 操作系统(内核) - 清泛网 - 专注C/C++及内核技术
...ib_lport_inuse2(net, snum, hslot2, //判断hash2是否有该端口正在被使用
sk, saddr_comp);
if (!exist && (hash2_nulladdr != slot2)) {
hslot2 = udp_hashslot2(udptable, hash2_nulladdr);
exist = udp_lib_lport_inuse2(net, snum, hslot2, //再判断通配地址的情况
...
CentOS+Nginx+PHP+MySQL详细配置(图解) - PHP - 清泛IT论坛,有思想、有深度
...个只要我们安装是启用FastCGI即可。此次我们安装PHP不仅使用了FastCGI,而且还使用了PHP-FPM这么一个东东,PHP-FPM说白了是一个管理FastCGI的一个管理器,它作为PHP的插件纯在,在安装PHP要想使用PHP-FPM时就需要把PHP-FPM以补丁的形式...
C++ Convert string (or char*) to wstring (or wchar_t*)
...ts.
These CA2W (Convert Ansi to Wide=unicode) macros are part of ATL and MFC String Conversion Macros, samples included.
Sometimes you will need to disable the security warning #4995', I don't know of other workaround (to me it happen when I compiled for WindowsXp in VS2012).
#pragma warning(pu...
Match linebreaks - \n or \r\n?
...s to question 1.
I have an app that runs on Windows and uses a multi-line MFC editor box.
The editor box expects CRLF linebreaks, but I need to parse the text enterred
with some really big/nasty regexs'.
I didn't want to be stressing about this while writing the regex, so
I ended up normalizing ...
关于php的socket初探 - 更多技术 - 清泛网 - 专注C/C++及内核技术
...来看以不同io模型来实现一个socket(io) server的功能
1、使用 accept 阻塞的古老模型:属于同步阻塞 IO 模型,代码如下:
socket_server.php
<?php
/**
* SocketServer Class
* By James.Huang <shagoo#gmail.com>
**/
set_time_limit(0);
class Socket...
Why can't strings be mutable in Java and .NET?
...ame data, and one is modified, then both get modified). CString objects in MFC get around that by using reference counting.
– RobH
Mar 20 '09 at 18:21
7
...