Time of Update: 2015-01-06
標籤:http://www.markhneedham.com/blog/2011/12/15/webdriver-getting-it-to-play-nicely-with-xvfb/ Thoughts on Software Development with 2 commentsAnother thing we’ve been doing with WebDriver is having it run with the FirefoxDriver while
Time of Update: 2015-01-06
標籤:CDN的全稱是Content Delivery Network,即內容分髮網絡。其目的是通過在現有的Internet中增加一層新的網路架構,將網站的內容發布到最接近使用者的網路"邊緣",使使用者可
Time of Update: 2015-01-07
標籤:The post we have: http://www.cnblogs.com/Answer1215/p/4185504.html gives a breif introduce about bindToController on the directive.Here is a blog about bindToController from thoughtram which explains in detail why bingToController comes
Time of Update: 2015-01-07
標籤:一、工程搭建 (需要注意額外引入如下三個jar包) 二、構建實體類,添加上對應Annotation註解package com.djl.test;import javax.persistence.Entity;import javax.persistence.Id;@Entitypublic class Teacher { @Id private int id; private String name; private int age;
Time of Update: 2015-01-06
標籤:使用html5
Time of Update: 2015-01-06
標籤:在以後的日子裡,我會堅持成為雜學派。 謹以此行文字,獻給我的部落格生涯。2015年1月7日
Time of Update: 2015-01-06
標籤:COMET探索系列二【Ajax輪詢複用模型】寫在前面:Ajax輪詢相信大家都信手拈來在用,可是有這麼一個問題,如果一個網站中同時有好多個地方需要用到這種輪詢呢?就拿我們網站來說,有一個未讀訊息數提醒、還有一個時即時載入最新說說、昨天又加了一個全網喊話,以後還會要有類似功能添加是肯定的,難道要為每個功能都建立一個獨立的輪詢?要知道輪詢請求中有大半是無用,會對伺服器資源和寬頻造成巨大的浪費。因此在頁面中每增加一個輪詢點,對伺服器的壓力及寬頻浪費都將成倍的增長。再考慮一個情況,如果當前網頁中需要
Time of Update: 2015-01-06
標籤: 我們經常需要用到ip白名單,ip黑名單。netty本身就幫我實現了一套驗證機制,提供了IpFilterRuleHandler類 public class IpFilterRuleHandler extends IpFilteringHandlerImpl public abstract class IpFilteringHandlerImpl implements ChannelUpstreamHandler,
Time of Update: 2015-01-05
標籤:方法一:在本地調試html頁,如果其中包含js或flash,IE經常會提示“IE已限制此網頁運行可以訪問電腦的指令碼或ActiveX控制項”。雖然IE出於安全考慮阻止本地指令碼運行這個做法沒錯,但作為程式開發人員來說,每次都要點允許,非常之討厭,於是開始想辦法去掉這個提示。在IE選項裡翻了半天,終於讓我找到了。方法是:工具 – Internet選項 – 進階標籤 –
Time of Update: 2015-01-05
標籤:壓縮 php curl gzip 亂碼 一般伺服器不會胡亂返回gzip壓縮的資料,一般是用戶端請求的頭部裡包含你瀏覽器能接受的壓縮方式,Accept-Encoding:gzip,deflate,sdch這裡是gzip
Time of Update: 2015-01-05
標籤:phantomjs1.下載phantomjs.exe :https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-windows.ziphttp://zhouhua.qiniudn.com/work/nodejs/phantomjs.zip2.安裝phantomjs.exe, 對這個這執行性檔案 設定環境變數3.建立一個test.js檔案var page =
Time of Update: 2015-01-05
標籤:爛泥 密碼 apache 工具 生產 htpasswd 本文首發於爛泥行天下。1、 htpasswd的作用與安裝2、 htpasswd命令詳解3、 htpasswd的執行個體4、
Time of Update: 2015-01-05
標籤:overview features details system object python #!/usr/bin/env pythonimport difflibtxt1 = """ IPython 0.13 --&n
Time of Update: 2015-01-05
標籤:在項目中我們有時候需要使用到其他第三方的api,而有些api要求我們上傳檔案,search一下,下面將結果記錄一下嘍!含義 ENCTYPE="multipart/form-data" 說明: 通過 http 協議上傳檔案 rfc1867協議概述,jsp 應用舉例,用戶端發送內容構造 1、概述在最初的 http 協議中,沒有上傳檔案方面的功能。 rfc1867 (http://www.ietf.org/rfc/rfc1867.txt) 為 http
Time of Update: 2015-01-05
標籤:設計模式 一書將設計模式引入軟體社區,該書的作者是 Erich Gamma、Richard Helm、Ralph Johnson 和 John Vlissides Design(俗稱 “四人幫”)。所介紹的設計模式背後的核心概念非常簡單。經過多年的軟體開發實踐,Gamma
Time of Update: 2015-01-05
標籤: /// <summary> /// 檢測串值是否為合法的網址格式 /// </summary> /// <param name="strValue">要檢測的String值</param> /// <returns>成功返回true 失敗返回false</returns> public static bool CheckIsUrlFormat(string strValue) {
Time of Update: 2015-01-06
Uncaught SyntaxError: Unexpected identifier,uncaughttypeerrorjquery的一個BUG setTimeout($("#mask").fadeOut(1000), 1000);這樣調用函數時JS給出的報錯資訊Uncaught SyntaxError: Unexpected
Time of Update: 2015-01-07
POJ 2524-Ubiquitous Religions(並查集),poj2524-ubiquitousUbiquitous ReligionsTime Limit: 5000MS Memory Limit: 65536KTotal Submissions: 25383 Accepted: 12530DescriptionThere are so many different religions in the world today
Time of Update: 2015-01-07
資料結構Java實現——隊列的“奇葩”二 優先順序隊列,java隊列寫在前面有很多時候,一些資料的儲存不僅需要先進先出,而且還有根據資料的優先順序來排序,也就是優先順序高的一定先出去,優先順序相同的先進先出,此時就會用到優先順序隊列應用其實優先順序隊列的應用十分廣泛,比如說構造哈夫曼樹演算法,再比如在一些電腦作業系統中用優先順序隊列來來滿足搶先式多任務作業系統等等等等代碼實現1、優先順序佇列儲存體的資料元素的描述package org.Stone6762.entity;/** *
Time of Update: 2015-01-06
華為機試—物品放籮筐,華為機物品籮筐/* 你有一個容量為100的籮筐,給你30個物品,每個物品的體積已知, 問:最多能裝多少個物品。 思路:排序,最小的體積的先放 輸入:5 59 100 1 2 3 20 20 30 40 50 60 20 20 20 20 10 10 10 10 10 100 20 20 20 20 20 20 20 30 輸出:11 */#include<iostream>using namespace std;int main(int argc,