Time of Update: 2014-03-30
Time of Update: 2014-03-30
我們在使用jquery選取器的時候 對一些ID屬性中有特殊符號的地方需要進行轉義。列舉部分如下:<input id="entity.username" type="text" value="hello" />alert($("#entity\\.username").val());<input id="entity:username" type="text"
Time of Update: 2014-03-30
寫在前面的話本篇部落客要講 publish和subscribe使用的meteor版本為0.7.0.1本篇部落客要是完善以前寫過的一篇部落格Meteor中subscribe和publish簡單介紹老話重提 ,盡量以官方文檔為主本篇部落格有不正確的地方在所難免,如有發現望指出。本篇部落格涉及到另外一個知識點 Collection,不會詳說,將作為獨立的部落格進行說明。功能主要是控制服務端如何向用戶端推送資料,以及用戶端如果接收資料集publish Server首先,在你實驗這個函數之前
Time of Update: 2014-03-27
利用PHP串連百度地圖API<html> <head> <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>
Time of Update: 2014-03-30
好的,今天我們來研讀下css大牛Chris Coyier的利用SASS實現響應式布局的解決方案(Simple Technique for using Sass for Rows)。線上研究點這裡,下載收藏點這裡。先看實現過程,然後我們再來解讀。html檔案,裡面放了N多個映像,為了簡化書寫我們用了jade- for (var x = 1; x < 16; x++) div.pic
Time of Update: 2014-03-27
網頁前端最佳化的多重標準:一、使用瀏覽器緩衝最佳化緩衝:大多數的網頁,包括CSS檔案,影像檔,JavaScript檔案等,需要一段時間才能通過網路下載,從而增加載入一個網頁的時間。HTTP緩衝允許儲存這些資源,或通過瀏覽器或代理緩衝。一旦資源被緩衝,瀏覽器可以下載本機快取,而不是不必每次下載web伺服器。因此,緩衝可以消除許多HTTP請求所耗費的資源, 減少載入時間,並大幅降低總有效載荷大小
Time of Update: 2014-03-30
說明見:https://github.com/CyberZHG/blog/issues/10#include <cstdio>#include <cstring>#include <algorithm>using namespace std;const int MAXN = 1e6 + 10;int n;char s[MAXN];bool judge(int x){ int cur = 0, lastMax = 0; for (int i
Time of Update: 2014-03-30
說明見:https://github.com/CyberZHG/blog/issues/10#include <cstdio>const int MAXN = 1e6 + 10;const int MOD = 1e9 + 7;int dp[MAXN][5];char s[MAXN];int main(){ int n; scanf("%s", s); switch (s[0]) { case '?':
Time of Update: 2014-03-30
說明見:https://github.com/CyberZHG/blog/issues/10#include <cstdio>#include <map>#include <set>#include <algorithm>using namespace std;const int MAXN = 1e5 + 10;int n, k;struct Node{ int index; int dist; bool
Time of Update: 2014-03-30
每日一C排序之C語言#預先處理 每天拾一個C語言貝殼,厚積薄發,積跬步以致千裡。 今日貝殼:預先處理,又稱先行編譯,是原始碼.c到執行.exe的第一步處理。
Time of Update: 2014-03-30
學習軟體開發,首先要選擇的就是選擇需要採用的程式設計語言,考慮語言本身的優缺點和實際需求,綜合評價之後選擇相關的語言進行系統開發。本篇部落格開始就從近年來比較流行的Java開始為大家講起。背景
Time of Update: 2014-03-30
如果個數是奇數就返回中間節點,如果是偶數,就返回任意一個。主要是能想到用2個指標,一個指標一次走一步,另一個指標一次走2步#include <stdio.h>#include <stdlib.h>typedef struct node{ int a; struct node *link; }mynode;int creat_tail(mynode *head,int n){ mynode *node = head,*new;
Time of Update: 2014-03-30
說明見:https://github.com/CyberZHG/blog/issues/10#include <cstdio>#include <cstring>#include <set>#include <algorithm>using namespace std;const int MAXN = 5000 + 10;int n, m;int a[MAXN], b, g[MAXN];set<int> bad;int gcd(
Time of Update: 2014-03-30
每日一C排序之struct位元組對齊 每天拾一個C語言貝殼,厚積薄發,積跬步以致千裡。 今日貝殼:結構體struct是多個相互關聯資料的集合,這些資料以整體形式儲存在記憶體。
Time of Update: 2014-03-27
前情回顧本專欄的前幾篇博文, 對class檔案中的常量池進行了詳細的解釋。 前文講解了常量池中的7種資料項目, 它們分別是:關於這七種資料項目, 前面的文章已經講得很詳細了, 不瞭解的同學請先參閱前面的博文。 此外, 如果想要全面的瞭解JVM和Class檔案格式, 建議按順序閱讀我專欄中的部落格。此外,本文是建立在前幾篇部落格的基礎之上的, 是接著前面的的部落格寫的,所以, 同樣建議先閱讀專欄前面的部落格, 以保證知識的完整性。 專欄地址:http://blog.csdn.net/
Time of Update: 2014-03-30
考慮特殊情況:1. 鏈表頭指標為空白,n小於等於0是錯誤輸入2. 鏈表實際節點數小於n因此代碼:#include <stdio.h>#include <stdlib.h>typedef struct node{ int a; struct node *link; }mynode;int creat_tail(mynode *head,int n){ mynode *node = head,*new; int
Time of Update: 2014-03-30
每日一C排序之sizeof與strlen 每天拾一個C語言貝殼,厚積薄發,積跬步以致千裡。 今日貝殼:C語言sizeof與strlen的區別
Time of Update: 2014-03-28
每日一C排序之include<>與include""
Time of Update: 2014-03-28
第一步註冊第二步,擷取到api後將代碼嵌入到相關的網頁中首先將一下代碼鍵入到模板中,也就是表單提交頁面 report.php模板中 <tr> <td height="23">Captcha</td> <td
Time of Update: 2014-03-27
在上一篇文章 深入理解Java Class檔案格式(一) 中, 介紹了class檔案在整個java體繫結構中的位置和作用, 並對class檔案的整體格式做了說明, 介紹了其中的魔數和版本號碼的相關內容, 並對常量池做了概述。 在本文章, 繼續介紹class檔案中的其他內容。class檔案中的特殊字元串首先說明一下, 所謂的特殊字元串出現在class檔案中的常量池中, 所以在上一篇部落格中, 只是對常量池介紹了一個大概。