2019年1月23日

Service Location Protocol SLP

摘要: https://www.ibm.com/developerworks/cn/linux/l-slp/ 服务发现(service discovery) 是在网络环境中发现必须使用的服务的能力。例如,如果要在网络上新安装一个桌面系统,应该如何对这个系统配置邮件服务器、缺省网关(用来对本机之外的连接进行路 阅读全文

posted @ 2019-01-23 17:08 liujx2019 阅读(816) 评论(0) 推荐(0)

linux find string in files

摘要: http://blog.csdn.net/duguduchong/article/details/7716908 查找目录下的所有文件中是否含有某个字符串 find .|xargs grep -ri "IBM" 查找目录下的所有文件中是否含有某个字符串,并且只打印出文件名 find .|xargs 阅读全文

posted @ 2019-01-23 17:08 liujx2019 阅读(680) 评论(0) 推荐(0)

[http 1.1] M-POST

摘要: http://www.brainbell.com/tutors/XML/XML_Book_B/Sending_Messages_Using_M_POST.htm You can restrict messages coming through a firewall or a proxy server 阅读全文

posted @ 2019-01-23 17:07 liujx2019 阅读(195) 评论(0) 推荐(0)

安装 wbemcli

摘要: 安装环境 建立自己的目录后, wget http://vault.centos.org/6.0/os/x86_64/Packages/sblim-wbemcli-1.6.1-1.el6.x86_64.rpm wget -r -np -nd --accept=sblim*.rpm http://vau 阅读全文

posted @ 2019-01-23 17:06 liujx2019 阅读(213) 评论(0) 推荐(0)

[http 1.1] M-POST w3

摘要: https://www.w3.org/Protocols/HTTP/ietf-ext-wg/draft-frystyk-http-extensions-02 阅读全文

posted @ 2019-01-23 17:06 liujx2019 阅读(337) 评论(0) 推荐(0)

Linux 抓包

摘要: https://www.cnblogs.com/ggjucheng/archive/2012/01/14/2322659.html tcpdump 与wireshark Wireshark(以前是ethereal)是Windows下非常简单易用的抓包工具。但在Linux下很难找到一个好用的图形化抓包 阅读全文

posted @ 2019-01-23 17:04 liujx2019 阅读(1929) 评论(0) 推荐(0)

一些软件的 Basic Auth 行为

摘要: 一个 WBEM 在2003年的bugI'm trying to access the WBEM service of the CIMOM on the ESX Server 3i and all my requests end up with this error "(501) not implem 阅读全文

posted @ 2019-01-23 17:03 liujx2019 阅读(126) 评论(0) 推荐(0)

DMTF 关于 CIM-XML 的幻灯片介绍

摘要: https://members.dmtf.org/data/presentations/devcon02/JimDavis-IntroductiontoCIM-XML.pdf 阅读全文

posted @ 2019-01-23 17:01 liujx2019 阅读(195) 评论(0) 推荐(0)

不论是 Basic Auth 还是 Digest Auth,都会有 Authorization 字段

摘要: RFC2617 http://www.ietf.org/rfc/rfc2617.txt https://en.wikipedia.org/wiki/Digest_access_authentication 阅读全文

posted @ 2019-01-23 17:00 liujx2019 阅读(582) 评论(0) 推荐(0)

An example shows several CIM-XML extension headers

摘要: The example below shows several CIM-XML extension headers for a GetClass operation on the root/cimv2 namespace M-POST /cimom HTTP/1.0 Content-Type: te 阅读全文

posted @ 2019-01-23 17:00 liujx2019 阅读(195) 评论(0) 推荐(0)

automake autoconf 使用详解

摘要: 本文地址: http://www.laruence.com/2009/11/18/1154.html 文章转自: http://www.linuxcomputer.cn/ 本文地址: http://www.laruence.com/2009/11/18/1154.html 文章转自: http:// 阅读全文

posted @ 2019-01-23 16:59 liujx2019 阅读(3463) 评论(0) 推荐(0)

/proc/[pid]/status

摘要: http://man7.org/linux/man-pages/man5/proc.5.html 阅读全文

posted @ 2019-01-23 16:58 liujx2019 阅读(962) 评论(0) 推荐(0)

The new SFCB broker fails to start with a SSL-related error: Failure setting ECDH curve name (secp22

摘要: # openssl ecparam -list_curves secp384r1 : NIST/SECG curve over a 384 bit prime field secp521r1 : NIST/SECG curve over a 521 bit prime field prime256v 阅读全文

posted @ 2019-01-23 16:57 liujx2019 阅读(212) 评论(0) 推荐(0)

Linux 常用C函数

摘要: http://net.pku.edu.cn/~yhf/linux_c/ 阅读全文

posted @ 2019-01-23 16:56 liujx2019 阅读(128) 评论(0) 推荐(0)

shell脚本报错:"[: =: unary operator expected"

摘要: shell脚本报错:"[: =: unary operator expected" 在匹配字符串相等时,我用了类似这样的语句: if [ $STATUS == "OK" ]; then echo "OK" fi 在运行时出现了 [: =: unary operator expected 的错误,就一 阅读全文

posted @ 2019-01-23 16:56 liujx2019 阅读(1047) 评论(0) 推荐(0)

SVN diff

摘要: http://svnbook.red-bean.com/en/1.6/svn.ref.svn.c.diff.html Name svn diff (di) — This displays the differences between two revisions or paths. Name svn 阅读全文

posted @ 2019-01-23 16:56 liujx2019 阅读(184) 评论(0) 推荐(0)

一种用 数组元素 指定 所调函数 的方法

摘要: typedef struct mgrHandler { void (*handler) (int *, OperationHdr *); } MgrHandler; static MgrHandler mHandlers[] = { {notSupported}, // dummy {classProvider}, ... 阅读全文

posted @ 2019-01-23 16:55 liujx2019 阅读(154) 评论(0) 推荐(0)

阻塞 非阻塞

摘要: 阻塞的系统调用是指, 当进行系统调用时, 除非出错(被信号打断也视为出错) , 进程将会一直陷入内核态直到调用完成。 非阻塞的系统调用是指无论I/O操作成功与否, 调用都会立刻返回 阅读全文

posted @ 2019-01-23 16:54 liujx2019 阅读(109) 评论(0) 推荐(0)

Linux open() 一个函数,两个函数原型

摘要: open在手册中有两个函数原型, 如下所示: int open(const char *pathname, int flags); int open(const char *pathname, int flags, mode_t mode); 这样的函数原型有些违背了我们的直觉。 C语言是不支持函数 阅读全文

posted @ 2019-01-23 16:45 liujx2019 阅读(948) 评论(0) 推荐(1)

QT 执行windows cmd 命令并读取结果

摘要: 1,写好命令, 2,用QProcess执行,等待完成(有超时), 3,读取结果 注意形如“Program Files”的有 空格 的路径,要加上双引号。 阅读全文

posted @ 2019-01-23 16:42 liujx2019 阅读(3148) 评论(0) 推荐(0)

Qt5 escape spaces in path

摘要: There are two possible ways. You can either use escaped quotes (inserting the string between quotes) : Or use the QStringList() overload of start whic 阅读全文

posted @ 2019-01-23 16:41 liujx2019 阅读(236) 评论(0) 推荐(0)

获取磁盘的 总容量,空余容量,已用容量 【windows】

摘要: 使用windows api 输入:盘符字符串 输出:磁盘容量 注意其中的字符数组 dir 一定要以'\0'结尾,否则程序时好时坏,因为有时dir末尾正好是0,而有时不是。 阅读全文

posted @ 2019-01-23 16:40 liujx2019 阅读(445) 评论(0) 推荐(0)

通过进程名称,获取其路径

摘要: 使用windows api 此处要轮询每个进程,稍微费时,不适合几秒钟就做一次的情况 阅读全文

posted @ 2019-01-23 16:39 liujx2019 阅读(311) 评论(0) 推荐(0)

C++ Windows - How to get process path from its PID

摘要: 出处 https://stackoverflow.com/questions/1933113/c-windows-how-to-get-process-path-from-its-pid 注意质疑(我也没试过): 1 most of modules turn to a failure in gett 阅读全文

posted @ 2019-01-23 16:38 liujx2019 阅读(833) 评论(0) 推荐(0)

QT 无法抓住异常

摘要: 出处:https://stackoverflow.com/questions/40980171/qt5core-dll-crashing I've found that enabling /EHa (Structured Exception Handling) on the compiler sol 阅读全文

posted @ 2019-01-23 16:37 liujx2019 阅读(1370) 评论(0) 推荐(0)

设置共享内存大小 【windows】

摘要: hMapFile = CreateFileMapping( INVALID_HANDLE_VALUE, // use paging file NULL, // default security PAGE_READWRITE, //... 阅读全文

posted @ 2019-01-23 16:36 liujx2019 阅读(1452) 评论(0) 推荐(1)

How to use QueryPerformanceCounter? (c++,不使用 .Net)

摘要: 出处:https://stackoverflow.com/questions/1739259/how-to-use-queryperformancecounter 参考:https://docs.microsoft.com/zh-cn/windows/desktop/WmiSdk/accessing 阅读全文

posted @ 2019-01-23 16:35 liujx2019 阅读(295) 评论(0) 推荐(0)

c++ 更新 performance counter 数据,错误码 87

摘要: ERROR_INVALID_PARAMETER 87 (0x57) The parameter is incorrect. 很可能是该送 ULONG 的送了 ULONGLONG,vise versa ERROR_INVALID_PARAMETER 87 (0x57) The parameter is 阅读全文

posted @ 2019-01-23 16:35 liujx2019 阅读(243) 评论(0) 推荐(0)

点击 QTableView,触发事件

摘要: Here is an example of how you can get a table cell's text when clicking on it. Suppose a QTableView defined in some MyClass class. You need to connect 阅读全文

posted @ 2019-01-23 16:33 liujx2019 阅读(4363) 评论(2) 推荐(1)

测网速

摘要: 出处:https://stackoverflow.com/questions/20190456/determine-available-upload-download-bandwidth There's no way to determine the absolute network capacit 阅读全文

posted @ 2019-01-23 16:32 liujx2019 阅读(219) 评论(0) 推荐(0)

fseek 在以字符串模式打开的文件中工作不正常 [MSDN]

摘要: For streams opened in text mode, fseek and _fseeki64 have limited use, because carriage return-linefeed translations can cause fseek and _fseeki64 to 阅读全文

posted @ 2019-01-23 16:28 liujx2019 阅读(172) 评论(0) 推荐(0)

Inno Setup: Ask for reboot after uninstall

摘要: https://stackoverflow.com/questions/36497580/inno-setup-ask-for-reboot-after-uninstall Use UninstallNeedRestart event function: It makes uninstaller a 阅读全文

posted @ 2019-01-23 15:06 liujx2019 阅读(279) 评论(0) 推荐(0)

【Inno Setup】Pascal 脚本 ---- 事件函数

摘要: 转载 事件函数 Inno Setup支持以下函数和过程。 1. 【安装初始化】该函数在安装程序初始化时调用,返回False 将中断安装,True则继续安装,测试代码如下: 2. 该过程在开始的时候改变向导或者向导页,不要指望使用InitializeSetup函数实现改变向导页的功能,因为Initia 阅读全文

posted @ 2019-01-23 10:58 liujx2019 阅读(2980) 评论(0) 推荐(0)

在安装程序之前,预先安装别的程序

摘要: 写在下面的函数里 阅读全文

posted @ 2019-01-23 10:42 liujx2019 阅读(410) 评论(0) 推荐(0)

【Inno Setup】查看是否安装了VC++ 2015 Redistributeable

摘要: 可能有必要先测一下注册表的这一项是否存在 这些代码都放在下面这个函数里: 查看注册表的一项,看版本号是否以14开头。因为14.0对应2015. 阅读全文

posted @ 2019-01-23 10:27 liujx2019 阅读(3631) 评论(0) 推荐(0)

Visual Studio 添加图标和版本

摘要: 在Visual Studio中,如果你创建的是纯C语言的工程,那么给可执行程序添加图标就没有便捷的入口。 但也只是入口不好找了,添加步骤还是比较简单的,以下为具体操作方法: 1. 右键点击C工程,选择Add->Resource去添加图标。 2. 在弹出的菜单中选Icon,并点击新建 Note:注意看 阅读全文

posted @ 2019-01-23 10:08 liujx2019 阅读(10865) 评论(0) 推荐(2)

导航