為L(zhǎng)inux系統(tǒng)設(shè)計(jì)一個(gè)簡(jiǎn)單的二級(jí)文件系統(tǒng)。要求做到以下幾點(diǎn): 1.可以實(shí)現(xiàn)下列幾條命令: login 用戶登錄 dir 列目錄 create 創(chuàng)建文件 delete 刪除文件 open 打開(kāi)文件 close 關(guān)閉文件 read 讀文件 write 寫文件 2.列目錄時(shí)要列出文件名,物理地址,保護(hù)碼和文件長(zhǎng)度。 3.源文件可以進(jìn)行讀寫保護(hù)。
標(biāo)簽: create delete Linux login
上傳時(shí)間: 2015-08-30
上傳用戶:獨(dú)孤求源
帶進(jìn)度條的文件上傳(java+ajax源碼) 在寫代碼的時(shí)候,還要用到關(guān)于servlet的包servlet-api.jar。 寫完后調(diào)試的過(guò)程中,老報(bào)錯(cuò):java.lang.NoClassDefFoundError: org/apache/commons/io/output/DeferredFileOutputStream,后來(lái)一查才知道少了commons-io-1.2.jar,加上后,就ok了。 關(guān)于獲取及顯示進(jìn)度部分,用了我原來(lái)自己寫的一個(gè)ajax的應(yīng)用架構(gòu),從中抽取了部分代碼出來(lái),注意,js文件只適用于UTF-8編碼的頁(yè)面,因?yàn)楝F(xiàn)在我只寫UTF-8編碼的頁(yè)面了,國(guó)際化方便。 progressUpload.jar中,包含了commons-fileupload-1.1.1.jar,servlet-api.jar,commons-io-1.2.jar,在progressUpload.jar中,還包含一個(gè)屬性文件,里面是一些默認(rèn)配置,可根據(jù)自己的需要修改。 由于有源碼,怎么用可以自己看源碼,此外,那個(gè)例子中也寫了,在此不再贅述。例子中只取到了FileItem,再將item保存一下就ok了,示例代碼: File upFile = new File(remoteFilePath) try \{ item.write(upFile) fileInfo.put("infotip", "上傳成功.") } catch (java.lang.Exception e) \{ fileInfo.put("infotip", "上傳失敗.") }
上傳時(shí)間: 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.
標(biāo)簽: video batch-processing streamlined operations
上傳時(shí)間: 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. 譯作:《黑客入侵的藝術(shù)》,也是從朋友的寶箱中搜來(lái)的,以前層大致瀏覽過(guò),是難得一件的好資料。
標(biāo)簽: introduces the hacking science
上傳時(shí)間: 2013-12-28
上傳用戶:離殤
dspic的匯編例程,Write LCD with text using PSV feature and flash LED1 with a Timer1 loop
上傳時(shí)間: 2013-12-30
上傳用戶:bruce5996
第一版YL2410開(kāi)發(fā)板的BIOS 功能比較簡(jiǎn)單,上電之后,LCD顯示藍(lán)色、綠色、紅色三個(gè)豎條 同時(shí)串口顯示如下: Power on reset ************************************ * * * YL2410 Board BIOS V2006 * * Http://www.ucdragon.com * * * ************************************ NAND Flash Boot Please select function : 0 : USB download file(通過(guò)USB下載文件) 1 : Uart download file(通過(guò)串口下載文件) 2 : Write Nand flash with download file(將下載的文件燒寫到NandFlash) 3 : Load Pragram from Nand flash and run(從NandFlash裝載文件并運(yùn)行) 4 : Erase Nand flash regions(擦除NandFlash區(qū)域) 5 : Write NOR flash with download file(將下載的文件燒寫到NorFlash) 6 : Set boot params(設(shè)置Linux啟動(dòng)相關(guān)參數(shù)) 7 : Set AutoBoot parameter,1:linux 2:wince(設(shè)置WINCE自啟動(dòng))
標(biāo)簽: 2410 BIOS YL 開(kāi)發(fā)板
上傳時(shí)間: 2015-09-15
上傳用戶:Amygdala
一個(gè)簡(jiǎn)單的SPI IP核,SPI Core Specifications 可以從說(shuō)明文檔中找到! 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
標(biāo)簽:
上傳時(shí)間: 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.
標(biāo)簽: understanding programming available the
上傳時(shí)間: 2014-12-02
上傳用戶:無(wú)聊來(lái)刷下
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.
標(biāo)簽: developers describes compiler intended
上傳時(shí)間: 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.
標(biāo)簽: processing character Although involves
上傳時(shí)間: 2014-01-19
上傳用戶:愛(ài)死愛(ài)死
蟲蟲下載站版權(quán)所有 京ICP備2021023401號(hào)-1