为Linux系统设计一个简单的二级文件系统。要求做到以下几点: 1.可以实现下列几条命令: login 用户登录 dir 列目录 create 创建文件 delete 删除文件 open 打开文件 close 关闭文件 read 读文件 write 写文件 2.列目录时要列出文件名,物理地址,保护码和文件长度。 3.源文件可以进行读写保护。
上传时间: 2015-08-30
上传用户:独孤求源
带进度条的文件上传(java+ajax源码) 在写代码的时候,还要用到关于servlet的包servlet-api.jar。 写完后调试的过程中,老报错:java.lang.NoClassDefFoundError: org/apache/commons/io/output/DeferredFileOutputStream,后来一查才知道少了commons-io-1.2.jar,加上后,就ok了。 关于获取及显示进度部分,用了我原来自己写的一个ajax的应用架构,从中抽取了部分代码出来,注意,js文件只适用于UTF-8编码的页面,因为现在我只写UTF-8编码的页面了,国际化方便。 progressUpload.jar中,包含了commons-fileupload-1.1.1.jar,servlet-api.jar,commons-io-1.2.jar,在progressUpload.jar中,还包含一个属性文件,里面是一些默认配置,可根据自己的需要修改。 由于有源码,怎么用可以自己看源码,此外,那个例子中也写了,在此不再赘述。例子中只取到了FileItem,再将item保存一下就ok了,示例代码: File upFile = new File(remoteFilePath) try \{ item.write(upFile) fileInfo.put("infotip", "上传成功.") } catch (java.lang.Exception e) \{ fileInfo.put("infotip", "上传失败.") }
上传时间: 2015-09-01
上传用户:ccclll
video editing for is streamlined for fast linear operations over video. It has batch-processing capabilities for processing large numbers of files and can be extended with third-party video filters. VirtualDub is mainly geared toward processing AVI files, although it can read (not write) MPEG-1 and also handle sets of BMP images.
标签: video batch-processing streamlined operations
上传时间: 2014-01-06
上传用户:fhzm5658
This text introduces the spirit and theory of hacking as well as the science behind it all it also provides some core techniques and tricks of hacking so you can think like a hacker, write your own hacks or thwart potential system attacks. 译作:《黑客入侵的艺术》,也是从朋友的宝箱中搜来的,以前层大致浏览过,是难得一件的好资料。
标签: introduces the hacking science
上传时间: 2013-12-28
上传用户:离殇
dspic的汇编例程,Write LCD with text using PSV feature and flash LED1 with a Timer1 loop
上传时间: 2013-12-30
上传用户:bruce5996
第一版YL2410开发板的BIOS 功能比较简单,上电之后,LCD显示蓝色、绿色、红色三个竖条 同时串口显示如下: Power on reset ************************************ * * * YL2410 Board BIOS V2006 * * Http://www.ucdragon.com * * * ************************************ NAND Flash Boot Please select function : 0 : USB download file(通过USB下载文件) 1 : Uart download file(通过串口下载文件) 2 : Write Nand flash with download file(将下载的文件烧写到NandFlash) 3 : Load Pragram from Nand flash and run(从NandFlash装载文件并运行) 4 : Erase Nand flash regions(擦除NandFlash区域) 5 : Write NOR flash with download file(将下载的文件烧写到NorFlash) 6 : Set boot params(设置Linux启动相关参数) 7 : Set AutoBoot parameter,1:linux 2:wince(设置WINCE自启动)
上传时间: 2015-09-15
上传用户:Amygdala
一个简单的SPI IP核,SPI Core Specifications 可以从说明文档中找到! The simple Serial Peripheral Interface core is an enhanced version of the Serial Peripheral Interface found on Motorola s M68HC11 family of CPUs. The Serial Peripheral Interface is a serial, synchronous communication protocol that requires a minimum of 3 wires. FEATURES: · Compatible with Motorola’s SPI specifications · Enhanced M68HC11 Serial Peripheral Interface · 4 entries deep read FIFO · 4 entries deep write FIFO · Interrupt generation after 1, 2, 3, or 4 transferred bytes · 8 bit WISHBONE RevB.3 Classic interface · Operates from a wide range of input clock frequencies · Static synchronous design · Fully synthesizable
标签:
上传时间: 2015-09-17
上传用户:TRIFCT
This article shows that by using the tools available and understanding the programming system, it is possible to improve programming productivity. Microsoft Foundation Classes (MFC) and other tools let the user build GUIs while working in the same development program that was used to write the rest of the test code. MFC comes bundled with Microsoft Visual C++ and other development systems such as Watcom C/C++ and Borland Inprise C++ Builder.
标签: understanding programming available the
上传时间: 2014-12-02
上传用户:无聊来刷下
This manual describes omniidl, the omniORB IDL compiler. It is intended for developers who wish to write their own IDL compiler back-ends, or to modify existing ones. It also documents the design of the compiler front-end for those poor souls who have to track the IDL specification.
标签: developers describes compiler intended
上传时间: 2015-10-07
上传用户:84425894
Text processing often involves matching text against a pattern. Although Java s character and assorted string classes offerlow- levelpattern- matching support, that support commonly leads to complex code. To help you write simplerpattern- matching code, Java provides regular expressions. After introducing you to terminology and thejava.util. regex package, Jeff Friesen explores many regular expression constructs supported by that package s Pattern class. Then he examines Pattern s methods and the additionaljava.util. regex classes. In conclusion, he presents a practical application of regular expressions.
标签: processing character Although involves
上传时间: 2014-01-19
上传用户:爱死爱死