到今天为止,差不多已经工作一年了,一直在做的是javaweb开发,一直用的是ssh(sh)别人写好的框架,总感觉自己现在高不成低不就的,所以就像看看java的源码,顺便学习一下大牛的思想和架构,read and write一直是提高自己编程水平的不二法门,写博客只是记录自己的学习历程,方便回顾,.....
分类:
编程语言 时间:
2014-07-31 23:39:30
阅读次数:
357
read())){//遍历文件夹 echo $entry; } $handler->close();//关闭句柄 判断是否有读的权限 is_readable($file); 判断文件是否存在 file_exists($file);...
分类:
Web程序 时间:
2014-07-31 19:59:47
阅读次数:
217
The purpose of this problem is to verify whether the method you are using to read input data is sufficiently fast to handle problems branded with the ...
分类:
其他好文 时间:
2014-07-31 19:39:57
阅读次数:
190
正则表达式与python的网页操作练习一:importurllib.request
importre
qname=input(‘inputenglish:‘)
qname=qname.strip()
url=‘http://dict.youdao.com/search?le=eng&q=‘+qname+‘&keyfrom=dict.top‘
html=urllib.request.urlopen(url)
source=html.read().decode(‘U..
分类:
编程语言 时间:
2014-07-31 17:21:47
阅读次数:
242
JDK提供了写锁接口ReadWriteLock和它的实现ReentrantReadWriteLock。要实现一个读写锁,需要考虑很多细节,其中之一就是锁升级和锁降级的问题。什么是升级和降级呢?ReadWriteLock的javadoc有一段话:
Can the write lock be downgraded to a read lock without allowing an interven...
分类:
其他好文 时间:
2014-07-31 17:13:36
阅读次数:
231
Page 2 Line 1, "reads" should be "read".Page 2 Line 5, "are initial velocity and initial magnetic field" should be"are initial velocity and initial ma...
分类:
其他好文 时间:
2014-07-31 16:47:06
阅读次数:
217
普通文件被映射到进程地址空间后,进程可以像访问普通内存一样对文件进行访问,不必再调用read(),write()等操作。刷新变化函数msync()进程在映射空间的对共享内容的改变并不直接写回到磁盘文件中,往往在调用munmap()后才执行该操作。可以通过调用msync()函数来实现磁盘文件内容与共享...
分类:
其他好文 时间:
2014-07-31 16:42:56
阅读次数:
151
1. 编辑/etc/scsi_id.config文件,如果该文件不存在,则创建该文件,添加如下行:options=–whitelisted –replace-whitespace2. 获取需要绑定为ASM Disk的磁盘uuid,比如我们要使用/dev/sdc和/dev/sdd作为ASM磁盘,那么:...
分类:
系统相关 时间:
2014-07-31 16:38:36
阅读次数:
338
B -TourTime Limit:1000MSMemory Limit:65536KB64bit IO Format:%I64d & %I64uDescriptionJohn Doe, a skilled pilot, enjoys traveling. While on vacation, he...
分类:
其他好文 时间:
2014-07-31 13:05:16
阅读次数:
287
A -DividingTime Limit:1000MSMemory Limit:10000KB64bit IO Format:%I64d & %I64uDescriptionMarsha and Bill own a collection of marbles. They want to spli...
分类:
其他好文 时间:
2014-07-31 12:51:46
阅读次数:
192