- 博客(10)
- 资源 (1)
- 收藏
- 关注
原创 u盘安装Fedora-19-x86_64-DVD.iso
1.用UltraISO打开镜像,在启动选项下选择写入硬盘镜像,软件会自动识别你的U盘,并格式化U盘后写入ISO;2.把U盘磁盘名改为FEDORA;3.刻录成功后,到U盘下的isolinux文件夹下找到所有的“LABEL=Fedora\x2019\x20x86_64”,并把Fedora\x2019\x20x86_64替换成你的磁盘名FEDORA;4.最后把isolinux文件的内容复
2014-01-04 00:20:04
995
原创 fedora 19 误把根目录权限设置为 777后引发的问题修改备忘
误把/目录下的所有文件权限都设置成777,之后导致很多权限问题:先把根目录设置成chmod -R 755 /1.ssh用户连不上:chmod -R 400 /etc/ssh/*2.其他用户不能su root :chmod a+w /bin/su
2014-01-04 00:07:32
883
原创 計算當前時間到1970的秒數
#pragma onceconst long nSecondsInJan = 2678400L; // 1月的总秒数const long nSecondsInApril = 2592000L; // 4月的总秒数const long nSecondsInLeapFeb = 2505600L; // 2月(闰)的总秒数const long nSecondsInNonLeapFeb = 24
2013-10-18 23:03:12
844
原创 Linux异步信号处理之sinal sigaction
Linux信号是一种进程间异步的通信机制,在实现上是一种软终断。这个通信过程简单可以理解为:进程1发送信号;进程2安装信号,当收到这个信号,就执行处理业务。一、Linux如何来向目标进程发送信号呢?使用函数extern int kill(_pid_t _pid, int _sig) ,该函数成功返回0失败返回-1,并设置错误errno第一个参数是目标进程的进程号,第二个参数是发
2013-10-07 17:27:27
655
原创 MessageBox用法
一 函数原型及参数 function MessageBox(hWnd: HWND; Text, Caption: PChar; Type: Word): Integer; hWnd:对话框父窗口句柄,对话框显示在Delphi窗体内,可使用窗体的Handle属性,否则可用0,使其直接作为桌面窗口的子窗口。 Text:欲显示的信息字符串。Caption:对话框标题字符串。 Type:
2013-04-26 15:03:37
606
原创 服務程序
http://www.vckbase.com/index.php/wv/1193//服务程序主函数。//#include "stdafx.h"#include "Windows.h"#include "Tchar.h"#include #define SZAPPNAME "serverSample" //服务程序名#defi
2013-04-14 22:44:28
440
原创 get_conf
#ifndef _GET_CONFIG_H_#define _GET_CONFIG_H_ #include #include using namespace std; #define COMMENT_CHAR '#' bool ReadConfig(const string & filename, map & m);void PrintConfig(cons
2013-04-13 22:57:46
617
原创 poll函數
原型:int poll(struct pollfd fdarray[], nfds_t nfds, int timeout) 其中poll函数中,结构pollfd如下: struct pollfd{ int fd; //file descriptor short event;//event of interest on fd short revent;
2013-01-30 20:10:43
377
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人