Time of Update: 2018-12-05
package first;import java.util.Stack;public class first {static int time=10;/** * 一個射擊運動員打靶,靶一共有10環,連開10槍打中90環的可能性有多少種? * 請用遞迴演算法編程實現。[中國某著名通訊企業H面試題] * @param args */public static void main(String[] args) {// TODO Auto-generated method stub//連續開槍的次數/
Time of Update: 2018-12-05
一、澄清一些使用者體驗相關概念1、不要濫用“使用者體驗”使用者體驗這個詞已經被炒得有點爛了,但我們真的明白是怎麼回事了,不得而知。每個人都對使用者體驗有自己的理解,也都認為自己懂得使用者體驗,這種情況下,很多人就會什麼人都想插一腳,無論是開發還是產品設計或者銷售,誰都不願意放棄自己以為正確的理論,心中總有一種想法覺得,自己的想法代表了一定量使用者的想法,也覺得自己的想法一定會受到使用者的支援,但真的是這樣嗎? 2、你不是使用者不要混淆“UCD”概念和使用者體驗這個概念也都是一樣,“UCD”(以使
Time of Update: 2018-12-05
這兩天在用迅雷下載東西的時候,無意中發現工作清單底下,多了個可愛的表情表徵圖,很搞笑, 總覺得比較有趣,好奇心驅使我點擊了“鄙視它”的按鈕,點完了,進入迅雷比一比的TAB標籤, 點擊確定,發現底下顯示的是,推薦資訊: 其實到這,我終於明白比一比的目的是什麼,其實就推薦,增加系統黏度, 很多時候,我們喜歡採用熱門排行榜等功能來增加系統的黏性,例如熱門排行榜之類的: 從迅雷的“比一比”來看,增加系統黏度,推薦資訊給使用者,咱們改變一下自己的思路又何妨,使用一種幽默的方式來推薦資訊呢,就算“抄襲”
Time of Update: 2018-12-05
package Singleton;public class Persion1 {public static Persion1 persion=new Persion1();/** * 餓漢式單例 */public static Persion1 getInstance(){return persion;}private int age;public int getAge() {return age;}public void setAge(int age) {this.age =
Time of Update: 2018-12-05
/*------------------------------------------------------------------------ Author: AaronBai Project: TelephoneSystem State: Creation Date: 2006-11.-2 Description: ------
Time of Update: 2018-12-05
One day, a poor boy who was trying to pay his way through school by selling goods door to door found that he only had one dime left. He was hungry so he decided to beg for a meal at the next house. However, he lost his nerve when a lovely
Time of Update: 2018-12-05
/** * 擷取非區域網路的ip地址 * * @return * @author SHANHY */ public static String getPsdnIp() { String ipurl = "http://whois.pconline.com.cn/ipJson.jsp"; String ss =null; HttpURLConnection urlConnection = null;
Time of Update: 2018-12-05
Minister: We are gathered here today in the sight of God, and in the face of this company, to join together (Groom’s Name) and (Bride’s Name) in holy matrimony; which is an honorable estate, instituted of God, since the first man and the first
Time of Update: 2018-12-05
很久之前就想寫篇關於迅雷網站的設計分析文章了,迅雷看看一直是我線上看電影的網站,也是我比較喜歡的網站,所以我也比較樂於分析一下它的設計,先從結構上分析,也就是導航、搜尋、詳細資料展示、以及播放頁面的順序。
Time of Update: 2018-12-05
package JunitExample;//執行介面public interface Calculate {public int invoke(int... i);}加法操作package JunitExample;public class AddCalculate implements Calculate{@Overridepublic int invoke(int... i) {// TODO Auto-generated method stubtry {Thread.sleep(100)
Time of Update: 2018-12-05
National Anthem The national anthem was written in 1935, with lyrics by the noted poet Tian Han and music by the famous composer Nie Er. The lyrics are as follows: Arise, ye who refuse to be slaves; With our very flesh and blood Let us
Time of Update: 2018-12-05
Datagrid的ItemDataBound事件中 Button btn = (Button)e.Items.Cell[0].Control[0]; 摸板列 btn.Attributes.Add("onclick","return confirm('您真的要刪除嗎?');"); Button btn = (Button)e.Items.FindControl("btn"); 自訂按鈕列
Time of Update: 2018-12-05
package first;import java.util.Stack;public class first {/** * 一個人爬樓梯,一步可以邁一級,二級,三級台階, 如果樓梯有N級,編寫程式,輸出所有走法。java實現。 * * @param args */public static void main(String[] args) {// TODO Auto-generated method stubStack<Integer> stt=new
Time of Update: 2018-12-05
1. Atlas 用戶端指令碼 Atlas用戶端指令碼包括客戶控制項()、資料繫結(Data Binding)、資料驗證(Validation)、行為(Behaviors )、模版(Templates)和用戶端組件(Client-side Components)。1.1 客戶控制項 1.2 資料繫結 1.3 資料驗證 1.4 行為 1.5 模版 1.6 用戶端組件 2. Atlas 的伺服器端控制項 Atlas的伺服器端控制項包括
Time of Update: 2018-12-05
兩年前,看了《情感化設計》很是感觸,作者將設計分了層次分為三個層:本能、行為和反思,按我的理解是,介面、功能和自我實現,當然介面已經包含了產品的一切,但我指的僅僅是簡單的介面層次,不包括由介面的功能層次。功能指的是產品所包括的功能,自我實現,這個詞有點彆扭,但我想不到別的詞了,暫時用這個吧,自我實現指的是,系統營造的氣氛給使用者帶來愉悅,讓使用者覺得有趣或者說有意思之類的感覺。這本書的理論很經典,可惜我做開發的,對於產品設計不是很瞭解,看不出這些理論有什麼可操作性,很是迷惑就把書放下了,到現在,
Time of Update: 2018-12-05
使用Tomcat建立基於主機名稱的虛擬機器主機(1)用UltraEdit開啟<Tomcat主目錄>/conf目錄下的Server.xml檔案,使用“尋找”菜單尋找內容為“</Host>”的行,緊接該行下面增加一對<Host></Host>標籤。參照前面的<Host>標籤的屬性設定情況,設定新增的<Host>標籤的屬性,並在它裡面嵌套一個設定該WEB網站根目錄的<Context>元素,最終的內容如下:
Time of Update: 2018-12-05
需要測試的代碼見 junit 4.0,完善下上次一個除法測試的代碼package JunitExample;public class DivideCalculate implements Calculate {@Overridepublic int invoke(int... i) {// TODO Auto-generated method stubint _i = i[0];for (int m = 1; m < i.length; m++) {if(i[m]==0){throw
Time of Update: 2018-12-05
1) 沒有明確的生活目標。沒有奮鬥的中心目標或明確的努力主向,就沒有成功的希望。2) 沒有非同尋常的雄心抱負。如果對凡事漠不關心,不想在人生中求發展,不願付出代價,那麼這樣的人也將成功無望。 3) 缺乏自律。紀律來自自我控制,這意味著人必須控制所有的消極思想,只能先控制自己,才能控制環境。自製是人類面對的最艱巨任務,如果無法戰勝自我,就會被自我征服。4)
Time of Update: 2018-12-05
CVS環境初始化 ============ 環境設定:指定CVS庫的路徑CVSROOT tcsh setenv CVSROOT /path/to/cvsroot bash CVSROOT=/path/to/cvsroot ; export CVSROOT 後面還提到遠程CVS伺服器的設定: CVSROOT=:ext:$USER@test.server.address#port:/path/to/cvsroot CVS_RSH=ssh; export CVSROOT CVS_RSH
Time of Update: 2018-12-05
1、安裝MS字型 cd /usr/share/fonts sudo mkdir zh_CN 然後將MS的字型檔(simsun.ttc tahoma.ttf verdana.ttf verdanab.ttf verdanaz.ttf tahomabd.ttf verdanai.ttf)複製到zh_CN目錄下,然後 引用:cd zh_CN sudo mkfontscale sudo mkfontdir sudo fc-cache