Time of Update: 2016-01-12
標籤:
Time of Update: 2016-01-12
標籤:上篇文章我已經帶大家熟悉了laravel架構的基本結構、路由功能、控制器、視圖等各個部分互動方式,這篇文章繼續帶大家做一下其他頁面。建立文章內容頁和個人首頁路由,增加Route::get(‘article_show/{id}‘,‘Home\[email protected]_show‘); //文章內容頁Route::get(‘Profile/{id}‘,‘Home\[email protected]‘);
Time of Update: 2016-01-12
標籤:1. I wasn‘t born yesterday.(我又不是三歲小孩)2. How do I address you?(我怎麼稱呼你)3. She turns me off.(她使我厭煩。)4. So far so good.(目前為止,一切都好。)5. Be my guest.(請便、別客氣)6. That was a close call.(太危險了/千鈞一髮)7. Far from it.(一點也不。)8. It‘s a pain in the
Time of Update: 2016-01-12
標籤:<!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: 2016-01-12
標籤: int letter = 0; int digit = 0; int other = 0; for(NSUInteger i = 0; i < [text length]; i++) { int a = [text characterAtIndex:i]; BOOL letterFlag = [[NSCharacterSet letterCharacterSet] characterIsMember:a];
Time of Update: 2016-01-12
標籤:參照site:https://github.com/quantifind/KafkaOffsetMonitor一、簡述 這個應用程式用來即時監控Kafka服務的Consumer以及它們所在的Partition中的Offset,我們可以瀏覽當前的消費者組,並且每個Topic的所有Partition的消費情況都可以觀看的一清二楚。 它讓我們很直觀的知道,每個Partition的Message是否消費掉,有沒有阻塞等等。 這個Web管理平台保留的Partition、Offset和它的Con
Time of Update: 2016-01-12
標籤:1.cdn文章2.https文章3.前端效能指標計算方式、監測平台4.node效能監測5.es5、es6主題6.xss分享7.效能最佳化8.css布局9.nginx10.行業相關技術調研11.移動端效能問題12.移動端開發相關規範。如1px問題13.響應式設計14.圖書管理平台,方便借書15.session與cookie的區別、管理16.express重新造個輪子17.整理常用公用庫less包含h5 px轉rem、1px18.ftp,上傳 247 ui組件 tfx19.tcp/ip
Time of Update: 2016-01-12
標籤:zeromq這個庫主要用於進程通訊,包括本地進程、網路通訊,涉及到一些基礎知識,主要包括管道通訊,socket編程的內容,反應器模式(使用IO多工實現),無鎖隊列這幾塊比較重要的部分,下面的幾個連結是這幾塊內容的學習筆記,有了這些知識,能比較好的理解這個開源庫1、socket原理詳解2、I/O多工之select3、I/O多工之poll4、I/O多工之epoll zeromq源碼分析筆記之準備篇
Time of Update: 2016-01-12
標籤:轉載請註明出處:http://blog.csdn.net/u012860063DescriptionYou have N integers, A1, A2, ... , AN. You need to deal with two kinds of operations. One type of operation is to add some given number to each number in a given interval.
Time of Update: 2016-01-12
標籤:Maven庫:http://repo2.maven.org/maven2/Maven依賴查詢:http://mvnrepository.com/Maven常用命令: 1. 建立Maven的普通java項目: mvn archetype:create -DgroupId=packageName -DartifactId=projectName 2.
Time of Update: 2016-01-12
標籤:W3C 中說明: ECMAScript arguments 對象 可訪問當前函數的參數,而無需指出參數名 區別於其他程式設計語言,ECMAScript 不會驗證傳遞給函數的參數個數是否等於函數定義的參數個數 開發人員定義的函數可以接受任意個數的參數(根據 NetScape 文檔,最多可接受255個),而不會引發任何錯誤 任何遺漏的參數將以 undefined 傳遞給函數 可以類比函數重載,如 function doAdd() {
Time of Update: 2016-01-12
標籤:遞迴#include <iostream>#include <vector>#include <sstream>#include <string>#include <cmath>#include <stack>using namespace std;int pan[17]={0};int l[17];int r[17];///先根訪問節點,///對節點是訪問 對樹是遍曆子樹///最簡單的訪問shi輸出void
Time of Update: 2016-01-11
標籤:終於開始學習物件導向的基礎知識了,物件導向三大特點:1. 繼承2. 多態3. 封裝程式的世界只有兩種元素:資料,演算法。 演算法一直試圖改變資料,得到一種新的資料。類的功能也就是把資料和演算法放到一起,這中寫法改變了代碼的格局,更適合人的思維,因此一經推出便得到了長足的發展。 Pyhong的類個人感覺是做了一個融合,把javascript當中的對象思想和其他語言的類的思想融合在了一起,下面的例子將簡單的介紹一些基本概念。1.
Time of Update: 2016-01-12
標籤:遍曆數組找出有沒有重複的元素 首先想到用一個數組記錄出現的元素的個數代碼:public class Solution { public boolean containsDuplicate(int[] nums) { if(nums.length == 0) return true; int[] checkElement = new int[Integer.MAX_VALUE]; for(int i = 0; i <
Time of Update: 2016-01-11
標籤:註:在看這篇文章之前,如果對CopyOnWriteArrayList底層不清楚的話,建議先去看看CopyOnWriteArrayList源碼解析。http://www.cnblogs.com/java-zhao/p/5121944.html1、對於CopyOnWriteArraySet需要掌握以下幾點建立:CopyOnWriteArraySet()添加元素:即add(E)方法刪除對象:即remove(E)方法遍曆所有對象:即iterator(),在實際中更常用的是增強型的for迴圈去做遍曆
Time of Update: 2016-01-11
標籤:windows下安裝以及配置nginxhttp://jingyan.baidu.com/article/f3e34a12a9c1c3f5eb6535d4.html 1): http://nginx.org2)啟動 解壓至c:\nginx,運行nginx.exe(即nginx -c conf\nginx.conf),預設使用80連接埠,日誌見檔案夾C:\nginx\logs3)使用 http://localhost4)關閉 nginx -s stop 或taskkill /
Time of Update: 2016-01-11
標籤:local參考博文:http://freeloda.blog.51cto.com/2033581/1346412http://freeloda.blog.51cto.com/2033581/1346076http://www.shuijingwanwq.com/2013/07/30/82/1、安裝apacheyum -y install gcc gcc-c++ openssl-devel pcre-develtar &n
Time of Update: 2016-01-11
標籤:選擇系特指input[type=radio]與input[type=checkbox], 俗話的單選框與複選框。它們都是 通過checked屬性決定是否能提交到後端,在傳統架構中,都是將它們序列化成字串進行提交,但新的MVVM架構, 它們對應的是更語義化的東西。單選框為一個布爾,那麼只要將它的name值及選中或選中的布爾(通常為節省字元簡化為0或1)提交就行。在複選框
Time of Update: 2016-01-11
標籤:一.EventEncoder和EventDecoder事件編碼器會收到一個事件對象(event object)並將它轉換成為ChannelBuffer對象。編碼器首先讀取事件的類型並作為作業碼(緩衝區的第一個位元組),然後讀取事件體並轉換成為ChannelBuffer對象作為資訊體。/** * A simple event encoder will receive an incoming event, and convert it to a * {@link ChannelBuffer}.
Time of Update: 2016-01-11
標籤: 用法一:給通道添加非同步介面public void close() { LOG.debug("Going to close tcp connection in class: {}", this .getClass().getName()); Event event = Events.event(null, Events.DISCONNECT); if (channel.isConnected())