原创 漢諾塔實現(含數組修改)Implement of hanoi

漢諾塔的實現,包含僞代碼,以及輸出流程版本和修改數組版本。 #include <iostream> using namespace std; void hanoiPseudocode(int n, char A, char B, ch

原创 用棧判斷是否是平衡括號 Check for balanced parentheses using stack

bool CheckBlancedParentheses(char* ch) { if(NULL == ch) return false; stack <char> s; char* tmp = ch; while(*tmp)

原创 在heroku上使用遠程mysql Connect To Remote MySQL Database From Heroku

0. bundle install --without devlopment, test, doc bundle update bundle install git add . git commit -m "" git push -u o

原创 生成ssh公有密鑰並且註冊到Github Generate ssh rsa keys and register public key on Github

私有密鑰和公有密鑰是成對的兩個文件,私有文件保存在自己的本機,公有密鑰保存到另一端的服務器,網站等。github就是一種網站。 只有保存了私有密鑰的機器才能訪問遠程的服務器等。使用該鍵的好處是不用使用密碼,而是以密鑰的方式驗證用戶。

原创 Mac下安裝使用phpMyAdmin. Set up phpMyAdmin on MacOSX

需要組件: Apache PHP Mysql phpMyAdmin Apache 1. 確認版本 $ httpd -v 2. 啓動apache $ sudo apachectl restart 或者 $ sudo /usr/sbin/a

原创 ISMAR 2015 Poster - Remote Mixed Reality System Supporting Interactions with Virtualized Objects

Published in: Mixed and Augmented Reality (ISMAR), 2015 IEEE International Symposium on Date of Conference: Sept. 2

原创 ssh bitbucket github

$ ssh-keygen -t rsa -C "mac" $ vi ~/.ssh/config Host bb User git HostName bitbucket.org IdentityFile ~/

原创 Bullet Physics OpenGL 剛體應用程序模板 Rigid Simulation in Bullet

利用Bullet物理引擎實現剛體的自由落體模擬的模板 Bullet下載地址 Main.cpp #include <GLUT/glut.h> #include <cstdlib> /* for exit */ #include <ve

原创 CentOS下安裝使用phpMyAdmin. Set up phpMyAdmin on CentOS

需要組件: Apache PHP Mysql phpMyAdmin Apache 0. yum install httpd 1. 確認版本 $ httpd -v 2. 啓動apache $ sudo service httpd star

原创 Mac上配置 Ruby on Rails和Git

Ruby on Rails on Mac ==================================================================================== http://morizy

原创 矩陣模板類

#include <vector> #include <string> #include <iostream> using namespace std; template<class T> class CMatrix { publ

原创 通過ssh特定賬戶的密鑰訪問遠程host

分爲以下幾個步驟 1.local host生成RSA公有密鑰和私有密鑰 2.local host私有密鑰配置 3.將公有密鑰發送至remote host並配置 步驟1: 本機執行 $ssh-keygen -t rsa 可填寫密鑰名,如v

原创 生成不重複隨機數

利用C++中的bitset來檢查生成的隨機數是否重複。這樣可以將內存空間的消耗降低,並且在每次檢查是否重複時不用搜索整個序列。 #include <iostream> #include <ctime> #include <bitset

原创 OpenGL模板 Mac Cmake OpenGL(Glut) Template

自己經常用的一些功能做成了一個模板,有光照效果,可以用鼠標進行縮放,圍繞原點旋轉座標系 Main.cpp #include <GLUT/glut.h> #include <cstdlib> /* for exit */ #include

原创 CentOS上安裝配置Ruby on Rails

0.install sublime editor(optional) ref:http://www.tecmint.com/install-sublime-text-editor-in-linux/ 1.install git $su