非阻塞I/O 调用 fcntl() 设置文件描述符 O_NONBLOCK 标志,调用 read() 和 write() 不再阻塞,有可能会返回 -1 并设置 errno 为 EAGAIN。 记录锁(字节锁) 用于锁住文件的某一部分,支持读锁和写锁。由于锁信息 lockf_entry 和 v-node ...
分类:
其他好文 时间:
2017-05-27 21:51:10
阅读次数:
230
Problem I Marcus, help! Input: standard input Output: standard output Time Limit: 2 Seconds "First, the breath of God. Only the penitent man will pass ...
分类:
其他好文 时间:
2017-05-25 19:05:25
阅读次数:
161
Description The cows have revised their game of leapcow. They now play in the middle of a huge pasture upon which they have marked a grid that bears a ...
分类:
其他好文 时间:
2017-05-23 16:58:44
阅读次数:
190
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right at any p ...
分类:
其他好文 时间:
2017-05-21 10:52:42
阅读次数:
147
使用JPA保存对象时报nested exception is javax.persistence.RollbackException: Transaction marked as rollbackOnly错误 刚开始以为是数据库中的表有问题,主键的字段不能为空,结果给它赋值了还是不行,再一看数据库中 ...
分类:
编程语言 时间:
2017-05-08 12:29:13
阅读次数:
817
I copied below code from this link.But when I am compiling this code I am getting an entry point cannot be marked with the 'async' modifier. How can I ...
分类:
其他好文 时间:
2017-04-14 00:26:26
阅读次数:
244
解决方法:找到mysql的安装目录的bin/myisamchk工具,在命令行中输入:myisamchk-c-r../data/mysql/user.MYI然后myisamchk工具会帮助你恢复数据表的索引。重新启动mysql,问题解决。
分类:
其他好文 时间:
2017-04-05 18:28:03
阅读次数:
135
-备份数据库时报错[ERROR]/usr/sbin/mysqld:Table‘./daifans/wp_options‘ismarkedascrashedandshouldberepaired-在网上查了文档,说是表损坏,所以WordPress的文章都显示不出来,需要修复,修复前需要备份我备份时也出错了,说是损坏的那个表备份不了的意思,我就用排除废表备..
分类:
数据库 时间:
2017-03-26 22:56:58
阅读次数:
228
一.mysql 执行select 的时候报Table错误:is marked as crashed and last (automatic?) 解决方法如下: 找到mysql的安装目录的bin/myisamchk工具,在命令行中输入: myisamchk -c -r ../data/dedecmsv ...
分类:
数据库 时间:
2017-03-26 01:24:40
阅读次数:
271
npm publish [13:17:43] npm ERR! Darwin 14.3.0 npm ERR! argv "/usr/local/bin/iojs" "/usr/local/bin/npm" "publish" npm ERR! node v1.7.1 npm ERR! npm v2. ...
分类:
其他好文 时间:
2017-03-23 14:15:15
阅读次数:
1333