there I write down the restaurant system.public class TimeSpan { Date date; String start; String end;}public class Table { int tableid; ...
分类:
其他好文 时间:
2014-07-27 11:02:02
阅读次数:
234
前言 笔者本打算撰写一篇讲解标准I/O(缓存I/O)的博文,但是发现已经有网友做过同样的工作,并且工作质量上乘,特转载于此。 原文地址http://lenky.info/archives/2012/08/1856 正文 利用系统调用函数read()/write()是我们平常用得最多的一...
分类:
其他好文 时间:
2014-07-27 10:58:32
阅读次数:
170
asp.net中打开新窗口的多种方法1.Response.Redirect("XXX.aspx",true)——直接转向新的页面,原窗口被代替;2. Response.Write("")——原窗口保留,另外新增一个新页面;3.Response.Write("")——打开新的页面,原窗口被代替;4.S...
分类:
Web程序 时间:
2014-07-27 10:43:22
阅读次数:
158
今天来说说 write barrier 。在 GC 的扫描过程中,由于分步执行,难免会出现少描了一半时,那些已经被置黑的对象又被修改,需要重新标记的情况。这就需要在改写对象时,建立 write barrier 。在扫描过程中触发 write barrier 的操作影响的对象被正确染色,或是把需要再染...
分类:
其他好文 时间:
2014-07-27 10:01:02
阅读次数:
309
A - 卡特兰数
Time Limit:1000MS Memory Limit:30000KB 64bit IO Format:%I64d & %I64u
Submit Status
Description
This is a small but ancient game. You are supposed to write down the num...
分类:
其他好文 时间:
2014-07-26 15:07:50
阅读次数:
216
控制台运行://显示defaults write com.apple.finder AppleShowAllFiles -bool true//隐藏defaults write com.apple.finder AppleShowAllFiles -bool false
分类:
其他好文 时间:
2014-07-26 13:42:34
阅读次数:
202
场景描述:系统启动之后,将分区挂载到/var目录下,保存日志文件到其他的硬盘分区之上。出现如下的问题:1重新挂载硬盘的分区到/var/log,接收系统的日志如果已经指向一个设备,重新挂载到一个设备,以前的将被覆盖2startingsystemlogger:cannotopenorcreate/var/run/syslogd.pi..
分类:
其他好文 时间:
2014-07-26 03:11:57
阅读次数:
599
1. readn 和 writen 1.1 基础巩固: read 和 write 函数的返回值 1.1.1 read 函数原型为:ssize_t read(int fd, void* buf, size_t count); (这里的 void *在标准 C 中表示通用指针即任意类型的指针都可...
分类:
系统相关 时间:
2014-07-26 01:51:56
阅读次数:
472
上一篇讲的是block和截获变量的特性,这里我们来看一下_block变量。引用官方:You can specify that an imported variable be mutable—that is, read-write— by applying the__blockstorage type...
分类:
其他好文 时间:
2014-07-26 01:27:36
阅读次数:
239
static int MapLogFile(void){ hFile = CreateFile(".\\db.bin", GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_ALWAYS, ...