Time of Update: 2015-03-10
標籤:PHP檔案上傳主要兩個步驟:1.首先前端html寫好檔案表單上傳網頁2.在前端點提交時,web伺服器php指令碼通過超全域變數$_FILES和一個move_uploaded_file函數搞定前端html如下:<!DOCTYPE HTML><html><head> <meta charset="utf-8">
Time of Update: 2015-03-11
CSs陰影框,Div陰影,css陰影框div<!DOCTYPE HTML><html><head><meta charset="UTF-8"><title>CSs陰影框,Div陰影</title><style type="text/css">*{ margin:0; padding:0; border:0; }body{ padding:4em;
Time of Update: 2015-03-11
Netty5入門(4),netty5入門這個類實現SimpleChannelInboundHandler,SimpleChannelInboundHandler是一個抽象類別,實現了中定義的channelRead方法,但同時定義了一個抽象的messageReceived方法,因此我們在MyWebSocketServerHandler類中,不需要實現channelRead方法,但需要實現messageReceived方法。當然,我們還需要覆蓋ChannelHandlerAdapter的channe
Time of Update: 2015-03-11
虛擬開源Bastion HostwebSSH的應用嵌入,堡壘webssh 安裝教程多了就不多寫了,寫一下如何嵌入應用,這裡我使用django+uwsgi+nginx的架構,其實和架構沒什麼關係啦第一步:連結gateone.js(預設在/opt/gateone/static/)到web應用的首頁<script src="{{ STATIC_URL }}js/gateone.js"></script>第二步:嵌入網頁<div style="width: 6
Time of Update: 2015-03-11
實現可摺疊效果,實現可摺疊 <script type="text/javascript">$(document).ready(function(){ $(".help h3").click(function(){ $(this).next("p").slideToggle("fast"); })})</script></head><body> <div class="help">
Time of Update: 2015-03-11
JS中document屬性,JSdocument屬性 document.title //設定文檔標題等價於HTML的title標籤 document.bgColor //設定頁面背景色 document.fgColor //設定前景色彩(文本顏色) document.linkColor //未點擊過的連結顏色 document.alinkColor //啟用連結(焦點在此連結上)的顏色 document.vlinkColor //已點擊過的連結顏色 document.URL
Time of Update: 2015-03-11
《javascript語言精粹》讀書筆記五,javascript語言精粹 第十章 優美的特性在本章開頭 老道寫到:“我想避開不談瀏覽器和其他適合javascript的地方。”我想要強調其更有分量的內容,以顯示它是值得尊敬的語言。我也這麼認為,雖然我瞭解的語言種類不多,但是js強大的表現力還是使我深深的愛上了它。以下是老道認為js種最精粹的部分:函數是頂級對象 函數是有詞法範圍的閉包。 基於原型繼承的動態對象
Time of Update: 2015-03-11
Bag標籤之把字串按關鍵字放進書包,bag標籤關鍵字書包把字串按關鍵字放進書包:<chtml><Bag id=tempstate> <we
Time of Update: 2015-03-11
xapges引用jquery,xapgesjquery 在domino的form的web的開發當中已經有說明怎樣引用jquery,現在在xpages怎樣引用jquery呢? 一、在資源中引用jquery<xp:this.resources> <xp:script
Time of Update: 2015-03-12
【連通圖|二分匹配+強連通分量】POJ-1904 King's Quest,poj-1904quest King’s Quest Time Limit: 15000MS Memory Limit: 65536K Case Time Limit: 2000MS Description Once upon a time there lived a king and he had N sons. And there were N beautiful
Time of Update: 2015-03-11
hdu4751 二分圖的判斷,hdu4751二分圖http://acm.hdu.edu.cn/showproblem.php?pid=4751Problem Description This year is the 60th anniversary of NJUST, and to make the celebration more colorful, Tom200 is going to invite distinguished alumnus back to
Time of Update: 2015-03-11
POJ1625---Censored!(AC自動機+dp+高精度),ac自動機 Description The alphabet of Freeland consists of exactly N letters. Each sentence of Freeland language (also known as Freish) consists of exactly M letters without word breaks. So, there exist exactly N^
Time of Update: 2015-03-11
hdu1575---Tr A,hdu1575---Tr Problem Description A為一個方陣,則Tr A表示A的跡(就是主對角線上各項的和),現要求Tr(A^k)%9973。Input 資料的第一行是一個T,表示有T組資料。 每組資料的第一行有n(2 <= n <= 10)和k(2 <= k < 10^9)兩個資料。接下來有n行,每行有n個資料,每個資料的範圍是[0,9],表示方陣A的內容。Output 對應每組資料,輸出Tr(A^k)%99
Time of Update: 2015-03-11
STL學習,stl Queue是STL中的隊列表示。特點是先進先出(First In First Output FIFO)。允許的操作是新增元素,移除元素,從最底端添加元素,從最頂端擷取元素,除了從底端加入元素,從頂端取出外,沒有任何其它方法可以存取queue的其他元素,也就是說queue不允許有遍曆行為。把元素推入queue的操作為push,
Time of Update: 2015-03-11
Java學習筆記30,java學習筆記LinkedList類是List介面的實作類別,它是一個List集合,可以根據索引來隨機訪問集合元素。除此之外,LinkedList還實現了Deque介面,因此它可以被當成雙端隊列來使用,也可以被當成“棧”來使用。LinkedList是基於鏈的線性表。以下是官方對LinkedList類的說明:List 介面的連結清單實現。實現所有可選的列表操作,並且允許所有元素(包括 null)。除了實現 List 介面外,LinkedList 類還為在列表的開頭及結尾
Time of Update: 2015-03-11
藍橋杯 BASIC-1~3 閏年判斷、01子串、字母圖形,basic-101子閏年判斷【AC代碼】:#include <iostream>#include <algorithm>using namespace std;int main(){int y = 0;cin >> y;if (((0==y%4)&&(0!=y%100))||(0==y%400))cout << "yes";elsecout
Time of Update: 2015-03-11
poj 1469 COURSES 【二分匹配】,poj1469COURSESTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 18438 Accepted: 7262DescriptionConsider a group of N students and P courses. Each student visits zero, one or more than
Time of Update: 2015-03-11
檢測dll是32/64位 ?,dll32檢測dll是32/64位 ?void CCheck32Or64Dlg::OnButton2() {CString fileName = "";CFileDialog *fileDialog = new CFileDialog(TRUE,NULL,NULL,OFN_HIDEREADONLY,"Dll Files(*.dll)|*.dll|Exe
Time of Update: 2015-03-11
leetcode-java題解(每天更新),leetcode-java題解說明:選用java,重在體會,效能不是最優。歡迎轉載:http://www.ming-yue.cn/leetcode-java-solutions/。先給出一個leetcode的已有答案,為什麼上來直接給出答案,因為這個好多答案寫的都非常簡潔,不太易懂,還是建議先自己做,答案只是參考http://www.ninechapter.com/solutions/。1,https://leetcode.com/problems/t
Time of Update: 2015-03-11
面試10大演算法題匯總-字串和數組7,演算法數組14.實現strStr():搜尋一個字串在另一個字串中的第一次出現的位置例:#include <stdio.h>#include <string.h>int main (){ char str[] ="This is a simple string"; char * pch; pch = strstr (str,"simple"); cout<<(*pch)<