摘要: With Apache:Premature end of script headers权限不正确 阅读全文
posted @ 2013-02-07 03:14 zhangshine 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 一、下载MySQLdbhttp://www.lfd.uci.edu/~gohlke/pythonlibs/(打开网页时小红伞会弹出警告,why?)和Python二、 1、连接数据库,关闭数据库1 import MySQLdb2 #connect3 con = MySQLdb.connect(host="127.0.0.1", port=3306, user="root", passwd="cctvzg2008", db="forpython")4 #exit5 con.close() 先占个位 Press Ctrl 阅读全文
posted @ 2012-02-27 23:06 zhangshine 阅读(156) 评论(0) 推荐(0) 编辑
摘要: Utils::OpenHandle:#define MAKE_OPEN_HANDLE(From, To) \ v8::internal::Handle<v8::internal::To> Utils::OpenHandle(\ const v8::From* that) { \ return v8::internal::Handle<v8::internal::To>( \ reinterpret_cast<v8::internal::To**>(const_cast<v8::From*>(that))); \ }MAKE_OPEN_HANDLE 阅读全文
posted @ 2012-01-19 21:20 zhangshine 阅读(1349) 评论(0) 推荐(0) 编辑
摘要: 收集的一些关于V8内部实现机制的文章,如有问题请联系原作者。v8学习笔记(一) 调用层次 http://blog.csdn.net/tuhuolong/article/details/5861627v8学习笔记(二) Handle和HandleScope机制http://blog.csdn.net/tuhuolong/article/details/5861635v8学习笔记(三) 运行时环境http://blog.csdn.net/tuhuolong/article/details/5861641v8学习笔记(四) 对象机制http://blog.csdn.net/tuhuolong/art 阅读全文
posted @ 2012-01-16 19:11 zhangshine 阅读(606) 评论(0) 推荐(0) 编辑
摘要: Env : Win7 + VS2010 + CMake编译LLVM1、将llvm 3.0解压,并在文件夹下建立build文件夹2、打开Visual Studio命令符,把路径切换到build文件夹下。输入cmake-gui.exe的地址打开cmake-gui.exe。3、指定Source和Build路径,单击Configure,选择NMake Makefiles-----Finish。4、cmake自动配置完毕后,在Search一栏里输入machine,确认是X86或其他,有时候可能会有错误,在我机器上第一次就不正确,下图。其他的选项可自行修改。5、单击Generate,就可以自动生成Make 阅读全文
posted @ 2011-12-09 18:17 zhangshine 阅读(3042) 评论(0) 推荐(0) 编辑
摘要: Warning: 只支持0-9的加减乘除,测试一下博客园功能Env: Win7+VS2010$cl main.cpp$main.exe (3+(4*8))+((6+7)/5)348*+67+5/+Result : 37#include <cstdio>#include <cstdlib>#include <cstring>#include <stack>char buff[1000] = {0};int count=0;//指向buff中下一个可用的位置char current;//currentExp所指向的字符char* currentExp 阅读全文
posted @ 2011-10-08 18:56 zhangshine 阅读(284) 评论(0) 推荐(0) 编辑