為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
上傳用戶:愛死愛死