原创 nginx配置root, index

root 配置網站的根目錄 index配置網站的入口文件 nginx配置文件放在: /etc/nginx/nginx.conf/etc/nginx/sites-available/default

原创 Yiibooster popover 鼠標置於popover上 不隱藏

yiibooster bootstrap 的popover控件能夠由hover觸發,但是一旦想移動鼠標離開原button,進入popover時,popover控件就消失了,很多情況下我們期望它不消失。 <?php $this->wi

原创 centos, redhat 如何查看系統版本

cat /etc/redhat-release

原创 ubuntu 64位 編譯v8

debian, ubuntu, linux mint 編譯v8 ========================================================= 準備編譯工具: sudo aptitude install

原创 scheme let

#!/usr/bin/racket #lang scheme (display (let ([x 5]) (let ([x 2] [y x]) (list y x)))) (newline)

原创 nginx php 500

出錯碼:500 出錯日誌:rewrite or internal redirection cycle while internally redirecting to "/index.html", client: 192.168.190.1

原创 v8學習---添加js全局函數

#include <v8.h> using namespace v8; void test(const v8::FunctionCallbackInfo<Value>& args) { printf("Hello Headoo

原创 scheme letrec

#!/usr/bin/racket #lang scheme (display (let ([x 5]) (letrec ([x 2] [y x]) (list y x)))) (newli

原创 v8學習---c++調用js構造函數

#include <v8.h> using namespace v8; int main() { Isolate* isolate = Isolate::GetCurrent(); HandleScope handleS

原创 v8學習---添加帶參數js全局函數

#include <v8.h> using namespace v8; void log(const v8::FunctionCallbackInfo<Value>& args) { String::AsciiValue asc

原创 git 取別名 alias

git config --global alias.s statusgit s 等價於 git status

原创 php in_array

<?php $var0 = ['a', 'b', 3]; $var1 = 'a'; var_dump(is_array($var0)); var_dump(is_array($var1)); 運行結果 bool(true) bool(fa

原创 v8學習---使用內部字段給js添加全局變量

#include <v8.h> #include <iostream> using namespace v8; void Setter(Local<String> property, Local<Value> value, const

原创 v8 hack ---給js添加新的關鍵字

ECMAScript的關鍵字是js關鍵字的子集。參考資料點擊打開鏈接;點擊打開鏈接 下文將給v8的添加js關鍵字func,func的用法與function相同。 1.打開v8/src/scanner.cc文件。 2.找到function的

原创 linux 安裝php redis模塊

wget https://github.com/nicolasff/phpredis/archive/master.zip unzip master.zip cd phpredis-master phpize ./configure ma