Time of Update: 2015-08-01
標籤:安裝apache,php: yum install httpd php 假設VPS的IP是58.130.17.168,有兩個網域名稱指向該IP,分別是domain1.com, domain2.com, 修改/etc/httpd/conf/httpd.conf,在檔案的最後加入: ServerName 58.130.17.168 NameVirtualHost 58.130.17.168 &安裝apache,php:yum install httpd php假設VPS的IP是58.1
Time of Update: 2015-08-02
最強AngularJS資源合集,AngularJS資源合集AngularJS是Google開源的一款JavaScript
Time of Update: 2015-08-01
JavaScript中call() 與Apply()的異同,javascriptapplycall方法: 文法:call([thisObj[,arg1[, arg2[, [,.argN]]]]]) 定義:調用一個對象的一個方法,以另一個對象替換當前對象。 apply方法: 文法:apply([thisObj[,argArray]]) 定義:應用某一對象的一個方法,用另一個對象替換當前對象。 function
Time of Update: 2015-08-01
Atitit.angular.js 使用最佳實務 原理與常見問題解決與列表顯示案例 attilax總結,angularjs最佳實務Atitit.angular.js 使用最佳實務 原理與常見問題解決與列表顯示案例 attilax總結 1. 本文範圍 12. Angular的優點 12.1. 雙向資料繫結 12.2. dsl化 22.3. 依賴注入 22.4. 指令
Time of Update: 2015-08-01
JavaScript之Regex入門,javascript<html><head><title>Js String Regex</title><script>//邊界符 js 中直接定義需要邊界符// java裡面不需要邊界符var re =
Time of Update: 2015-08-01
jQuery的簡介及文法,jQuery簡介文法1)為什麼要使用jQuery? jQuery是一個javaScript函數庫,不僅讓代碼變得簡潔,而且因其底層封裝了瀏覽器安全色性代碼,所以不用再擔心令 開發人員頭疼的瀏覽器安全色性問題,大大提高了使用javaScript代碼的工作效率。2)jQuery有哪些功能? jQuery主要包含HTML元素的選取、HTML元素的操作、CSS操作、HTML事件函數、js的特效和動畫、DOM元素的遍曆和
Time of Update: 2015-08-02
HDU 3853
Time of Update: 2015-08-01
arm mmu源碼分析,armmmu源碼 arm7以上帶有mmu模組,這個模組可以進行單位大小的地址的重新對應,這是擴充地址空間,增加代碼靈活性的一個模組。以下是一個源碼void rt_hw_mmu_init(struct mem_desc *mdesc, rt_uint32_t size) {unsigned int i; unsigned int reg; unsigned int low,high,ram; low = (0xa1000000 - 0xa00
Time of Update: 2015-08-01
對fork函數理解,fork函數理解標頭檔: #include <unistd.h>pid_t fork (void);1. 建立一個子進程,失敗返回-1。2. 調用一次,返回兩次。分別在父子進程中返回子進程的PID和0。利用返回值的不同,可以分別為父子進程編寫不同的處理分支。#include <stdio.h>#include <unistd.h>int main (void) {printf
Time of Update: 2015-08-01
HDU 5323(2015多校3)-Solve this interesting problem(dfs+剪枝),hdu5323 題目地址:HDU 5323 題意:給一個l,r,表示區間[l,r],問是否存在區間為[0,n]的線段樹的節點區間為[l,r],如果有求最小的n,如果沒有輸出-1。
Time of Update: 2015-08-01
廣度優先遍曆演算法(BFS),廣度bfs十大演算法之廣度優先遍曆:本文以執行個體形式講述了基於Java的圖的廣度優先遍曆演算法實現方法,具體方法如下:用鄰接矩陣儲存圖方法:1.確定圖的頂點個數和邊的個數2.輸入頂點資訊儲存在一維數組vet中3.初始化鄰接矩陣;4.依次輸入每條邊儲存在鄰接矩陣array中輸入邊依附的兩個頂點的序號i,j;將鄰接矩陣的第i行第j列的元素值置為1;將鄰接矩陣的第j行第i列的元素值置為1;廣度優先遍曆實現:1.初始化隊列Q2.訪問頂點v;if
Time of Update: 2015-08-01
Java反射—結合架構談註解,java反射架構註解1. 概念
Time of Update: 2015-08-01
NSSrting的幾種常用的用法,nssrting幾種1.建立NSString字串NSString 與 char* 最大的區別就是 NSString是一個objective對象,而char* 是一個位元組數組。@+" 字串 " 這個符號為objective-c NSString 字串常量的標準用法,char* 建立的時候 無需添加@- (void)viewDidLoad [super viewDidLoad]; //經典的字串賦值
Time of Update: 2015-08-01
nyoj 95,nyoj95#include<stdio.h>#include<queue>#include<algorithm>using namespace std;struct node{ bool operator()(int &x,int &y)//優先順序 { return
Time of Update: 2015-08-01
ZOJ 3456 Traveler Nobita 最小產生樹,zojnobitaTraveler NobitaTime Limit: 2 Seconds Memory Limit: 65536 KBOne day, Nobita used a time machine and went back to 1000 AD. He found that there are N cities in
Time of Update: 2015-08-01
HDU 5335 Walk Out,hdu5335walkoutProblem DescriptionIn an n∗m maze, the right-bottom corner is the exit (position (n,m) is the exit). In every position of this maze, there is either a 0 or a 1 written on it.An explorer gets lost in this grid. His
Time of Update: 2015-08-01
HDU 5323 Solve this interesting problem(暴搜),hdu5323題意:給一個l,r,表示區間[l,r],問是否存在區間為[0,n]的線段樹的節點區間為[l,r],如果有求最小的n,如果沒有輸出-1分析:對於線段樹而言,其中一段區間也就是一個節點可以有左節點或者右節點,而對於一個節點的左節點有兩種情況:(1).左節點的長度和該節點長度相同;(2).左節點長度比該節點長度長1
Time of Update: 2015-08-01
HDU 5289
Time of Update: 2015-08-01
C++ Primer 學習筆記_22_類與資料抽象(8)--static 成員變數、static 成員函數、類/對象的大小,_22--static一、static
Time of Update: 2015-08-01
[LeetCode] 038. Count and Say (Easy) (C++/Python),leetcodepython 索引:[LeetCode] Leetcode 題解索引 (C++/Java/Python/Sql) Github: https://github.com/illuz/leetcode038. Count and Say (Easy)連結:題目:https://leetcode.com/problems/Count-and-Say/ 代碼(github)