Time of Update: 2015-02-07
標籤:這個實驗我選擇了簡單的做法,並沒有用到kerkeros。本人會努力,儘快學會用到kerkeros給hadoop增加安全機制,使我的小象不再“裸奔”。首先是開啟hdfs-site.xml,然後加入如下屬性。最後設定登入使用者名稱。就是在設定hadoop.http.authentication.signature.sercet.file屬性時指定的目錄檔案,在檔案中寫入用於登入的使用者名稱。我這裡填的是leung。登入時在網址後面加上“?user.name=
Time of Update: 2015-02-07
標籤:一、有WEB-INF下建立一個datetag.tld<?xml version="1.0" encoding="UTF-8"?> <taglib> <tlib-version>1.0</tlib-version> <jsp-version>1.2</jsp-version> <tag> <name>date</name>
Time of Update: 2015-02-06
標籤:加密 php md5 代碼 <body style="color:green;font-size:28px;background:black;font-family:Verdana, sans-serif;"><?php error_reporting(0);?><form name="c" action="<?php
Time of Update: 2015-02-06
標籤:1、下載一個jquery.js的檔案2、引入jquery.js檔案1 <script type="text/javascript" src="__PUBLIC__/js/jquery-1.7.2.min.js"></script>2 <script type="text/javascript">3 $(function(){4 5 //這裡面使用jquery的方法6 7 8 });9
Time of Update: 2015-02-06
標籤:function ajax(url, fnSucc, fnFaild){//1.建立Ajax對象var oAjax=null;if(window.XMLHttpRequest){oAjax=new XMLHttpRequest();}else{oAjax=new ActiveXObject("Microsoft.XMLHTTP");}//2.串連伺服器oAjax.open(‘GET‘, url,
Time of Update: 2015-02-06
標籤:The best way I can think of is to intercept the form-submit action, and convert the form details into XML format, and then submit that to the server. There are many ways to do this, but the easiest would be to implement a solution via a framework
Time of Update: 2015-02-06
標籤:今天做項目中,需要將文章點擊量顯示在頁面中,需求中給的是多少多少萬,雖然不是什麼難事,但做程式員這麼久了,需要考慮的不再是簡單的實現,而且有效率和快捷,雖然PHP內建的函數有number_format()可以做到實現千分位,但我要的是萬分位,通過尋找,發現了可以用以下這個方法:$num = 86231;# 將數字轉為萬分位echo $num>10000?sprintf("%.1f",
Time of Update: 2015-02-06
標籤:hibernate 主鍵策略 hashcode equals 一:運行上一篇文章的程式會發現,後台輸出兩個warn17:22:14,232 WARN RootClass:233 - composite-id class does not override equals(): com.hibernate.model.TeacherPK17:22:
Time of Update: 2015-02-06
標籤:hibernate報錯內容:17:21:59,843 INFO org.hibernate.tool.hbm2ddl.SchemaExport:226 - Running hbm2ddl schema export 17:21:59,859 DEBUG org.hibernate.tool.hbm2ddl.SchemaExport:242 - import file not found: /import.sql 17:21:59,859
Time of Update: 2015-02-06
標籤:.net corefx coreclr 2014年底微軟印度籍CEO宣布了.Net跨平台開源計劃,沒想到他們的動作還很快,corefx和coreclr的代碼已經上傳到github了,對於.Net程式員來說絕對是一個福音。讀讀這些代碼絕對是提升水平的有效途徑。Github上的項目如下所示:我用sourcetree工具下載了代碼到本地檔案夾,如下所示:1.
Time of Update: 2015-02-06
標籤:css css知多少 上一節《css知多少(2)——學習css的思路》有幾個人留言表示思路很好、繼續期待,而且收到了9個贊,我還是比較欣慰的。沒看過的朋友建議先去看看上一節。 這一節就開始實踐上一節的思路!1. “層疊”的概念 CSS——層疊樣式表,其中的“層疊”是什麼意思呢?層疊就是瀏覽器對多個樣式來源進行疊加,最終確定結果的過程。舉一個簡單的例子:
Time of Update: 2015-02-06
標籤:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta
Time of Update: 2015-02-06
標籤:開始學習PHP,使用的是webmatrix構建的本機伺服器(這樣最簡單了,但也弄了好半天)。說起來webmatrix也確實夠簡單的了,只需要建立一個空網站,然後就可以在裡面開搞了。注意的是,啟動並執行時候可能會返回404,這是由於主站沒有預設頁面,預設頁面在網站的設定下面輸入,輸入想要的預設頁面就可以了。正式開始php了php的指令碼都是以<?php開始然後?>結束變數前全部要加上貨幣符號(還挺貪錢的):$(中文IME下竟然變成了¥)注意,php中變數也分為全域變數和局部變數,
Time of Update: 2015-02-06
標籤:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html;
Time of Update: 2015-02-06
標籤:先下載相應的php檔案:http://files.cnblogs.com/files/tianguook/phpmailer.rar解壓後有2個php檔案(2個類) 1個html檔案(API)將2個php檔案放到php項目中簡述:我這裡是用一個163的郵箱發訊息給126的郵箱關鍵代碼如下:<?php require ‘class.phpmailer.php‘; $mail = new PHPMailer(true); //建立郵件發送類
Time of Update: 2015-02-06
標籤:轉載 http://blog.csdn.net/liruxing1715/article/details/7914974 PHPMailer 的官方網站:http://phpmailer.worxware.com/PHPMailer 最新類庫:【點擊下載】PHPMailer GitHub :https://github.com/Synchro/PHPMailer,該頁面也提供了使用例子,不過不是很全面。使用方法,詳見代碼清單: <?phpheader(‘
Time of Update: 2015-02-06
標籤:當使用css3時,會遇到利用@keyframes來定義動畫事件,利用以下3個事件,能夠捕捉當前元素的動畫:AnimationEnd //動畫結束時AnimationStart //動畫開始AnimationIteration
Time of Update: 2015-02-07
[演算法系列之十二]字串匹配之蠻力匹配,演算法系列字串匹配
Time of Update: 2015-02-07
(hdu step 3.1.2)骨牌鋪方格(簡單遞推:求用2*1的骨牌鋪滿2*n的網格的方案數),hdu3.1.2在寫題解之前給自己打一下廣告哈~。。抱歉了,希望大家多多支援我在CSDN的視頻課程,地址如下:http://edu.csdn.net/course/detail/209題目:骨牌鋪方格Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s):
Time of Update: 2015-02-07
Linux 應用程式應用 localhost 的問題,linuxlocalhost陳科肇============最近碰到一個奇葩的問題:前提 -- Linux