Windows 下:不要用磁盘修复,会提示必须先格式化。管理员身份打开命令行(Cmd),输入以下代码:chkdsk {drive}: /f例如:chkdsk E: /f 表示修复E 盘Mac 下:过程略复杂,首先尝试用自带的磁盘工具(Disk Utility)修复,如果不成功再执行下面的步骤。打开终...
FileStream fs;StreamWriter sw;fs=new FileStream(@" ........",FileMode.Creat,FileAccess.Write)//绝对地址sw=new StreamWriter(fs);sw.Write(data);sw.Close();f...
分类:
其他好文 时间:
2014-08-05 13:57:49
阅读次数:
634
关键字:break case catch continue default delete do else finallyfor function if in instan...
分类:
编程语言 时间:
2014-08-05 13:32:39
阅读次数:
262
Graph Coloring You are to write a program that tries to find an optimal coloring for a given graph. Colors are applied to the nodes of the graph and t...
分类:
其他好文 时间:
2014-08-05 13:31:49
阅读次数:
215
On most of the Linux distribution IPv6 is enabled by default, which may cause your internet is workding slow, so If your network do not supportor do not setup IPv6 network, you should better to dis...
分类:
Web程序 时间:
2014-08-05 11:40:29
阅读次数:
348
查看设备的uuid的三种方法,总结如下:1命令查看:blkid2文件查看:ls-l/dev/disk/by-uuid3命令查看:vol_id/dev/sda1UUID的作用及意义1:它是真正的唯一标志符UUID为系统中的存储设备提供唯一的标识字符串,不管这个设备是什么类型的。如果你在系统中启动的时候,使用盘符挂载..
分类:
系统相关 时间:
2014-08-05 11:37:00
阅读次数:
412
假设有一函数如下privatevoidRealDelete(){Respose.Write("");其他语句}现在知道的情况是,当执行该函数时,并不是执行到Respose语句时就弹出警告框,而是在这个函数的所有语句都执行完毕后才会弹出警告,也就是事实上没有起到警示作用。
分类:
Web程序 时间:
2014-08-05 10:52:49
阅读次数:
196
libcurl有两个接口 easy接口 同步、高效 前缀curl_easy。 multi接口 异步 前缀curl_multi。multi使用单线程 easy使用范例 #include #include #include #include //回调 static size_t write_data(v...
分类:
其他好文 时间:
2014-08-05 09:33:28
阅读次数:
253
①usb有主从设备之分,主设备有:pc, 现在市面上的那些插u-disk即可播放mp3的“mp3”之类的,usb 信号是差分信号,信号线为D+, D-,。 在usb host 端, D+,D- 各接一个15kohm 的下拉电阻, 而在usb device端,这时就有高速低速设备的区别了。usb1.0...
分类:
其他好文 时间:
2014-08-05 00:24:58
阅读次数:
265
参考文献:
Harley Hahns:Guide to Unix and Linux, Chap 24
——》首先要有的关键概念:the amount of "disk space" used by a file is not the same as the amount of data in the file.
——》其次,理解在file system和disk(or ot...
分类:
其他好文 时间:
2014-08-04 21:37:08
阅读次数:
223