Below you will find pages that utilize the taxonomy term “未分類”
Posts
安裝使用phalcon-devtools[
phalcon-devtools 增加專案樣板
phalcon-devtools 增加專案樣板
之前phpconf 有會眾提到說是否自行增加樣版?基本上不會有問題而且開發團隊有增加樣版也都還沒補上.
接下來會簡單講解如何加入自行樣板.
安裝使用phalcon-devtools[
]1
Posts
Embeda UNO.Net新手測試!! 接 熱釋紅外線感應 BISS0001
之前介紹過Embeda 現在來實際玩玩.
逛了網拍 找到 人體紅外線感應模組 熱釋紅外線感應 BISS0001來試試.[
]1
Posts
接下來直接開箱:[
Embeda(mbed) 介紹 & Mac 10.8 開發使用
Embeda 是由國內廠商,於知名mbed所開發而來的.相容原有mbed系統(目前我測試是這樣的)資源豐富.
而mbed(MCU微控制器)類似於Arduino 都屬於簡單易用可快速架構開發.
各位可以前往官網查詢購買方式.
http://www.embeda.com.tw/tw/
接下來直接開箱:[
]1
(收到的樣子,大家可以看到實際大小實在夠迷你!!)[
][2][
]3
(整個控制版)[
]4
(接上usb即可使用)
Posts
Phalcon !! 以C開發的php freamwork!!
Phalcon is a C extension so you need to download a binary for your platform or compile it from source code. 看完這句,再去看 官方的數據. Framework Benchmark 這完全拋開PHP!!!的包袱. 安裝方式 ##Ubuntu必須先確認 安
Posts
Redis Key-Value資料庫建置實測
reids
Redis是一個開源的使用ANSI C語言編寫、支援網路、可基於記憶體亦可持久化的日誌型、Key-Value資料庫,並提供多種語言的API。從2010年3月15日起,Redis的開發工作由VMware主持。
通常,Redis將數據存儲於記憶體,或被配置為使用虛擬記憶體。通過兩種方式可以實現數據持久:使用快照的方式,將內存中的數據不斷寫入磁碟;或使用類似MySQL的日誌方式,記錄每次更新的日誌。前者性能較高,但是可能會引起一定程度的數據遺失(後者相反)。
Mac 使用brew安裝reids
-> % brew install redis
==> Downloading http://redis.googlecode.com/files/redis-2.4.8.tar.gz
######################################################################## 100.0%
==> make -C src
==> Caveats
If this is your first install, automatically load on login with:
mkdir -p ~/Library/LaunchAgents
cp /usr/local/Cellar/redis/2.4.8/homebrew.mxcl.redis.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
If this is an upgrade and you already have the homebrew.mxcl.redis.plist loaded:
launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
cp /usr/local/Cellar/redis/2.4.8/homebrew.mxcl.redis.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
To start redis manually:
redis-server /usr/local/etc/redis.conf
To access the server:
redis-cli
==> Summary
/usr/local/Cellar/redis/2.4.8: 9 files, 424K, built in 5 seconds
Posts
Gearman Install OSX
安裝Gearman 在OSX上面 $ sudo -s $ cd /tmp $ wget https://github.com/downloads/libevent/libevent/libevent-2.0.15-stable.tar.gz $ tar zxvf libevent-2.0.15-stable.tar.gz $ cd libevent-2.0.15-stable $ ./configure $ make $ make install $ cd .. $ wget https://launchpad.net/ubuntu/lucid/+source/libdrizzle/0.7-1/+files/libdrizzle_0.7.orig.tar.gz $ tar libdrizzle_0.7.orig.tar.gz $ cd libdrizzle-0.7/ $ ./configure $ make $ make install $ cd .. $ wget http://launchpad.net/gearmand/trunk/0.14/+download/gearmand-0.14.tar.gz $ tar zxvf gearmand-0.14.tar.gz $ cd gearmand-0.14/
Posts
MongoDB VS Mysql 簡單測試.
廢話不多說.
MongoDB 使用 MongoDB Object Document Mapper測試.
Mysql 使用 Object Relational Mapper測試.
MongoDB部分:
config.php
register();
$classLoader = new ClassLoader('Doctrine\ODM\MongoDB', __DIR__ . '/../../lib');
$classLoader->register();
$classLoader = new ClassLoader('Doctrine\MongoDB', __DIR__ . '/../../lib/vendor/doctrine-mongodb/lib');
$classLoader->register();
$classLoader = new ClassLoader('Symfony', __DIR__ . '/../../lib/vendor');
$classLoader->register();
$classLoader = new ClassLoader('Documents', __DIR__);
$classLoader->register();
$config = new Configuration();
$config->setProxyDir(__DIR__ . '/Proxies');
$config->setProxyNamespace('Proxies');
$config->setHydratorDir(__DIR__ . '/Hydrators');
$config->setHydratorNamespace('Hydrators');
$config->setDefaultDB('doctrine_odm_sandbox');
//使用safe模式
$con = new Connection('localhost',array('safe'=>true, 'w' => 2,'wtimeoutMS' => 2000));
//使用一般模式
//$con = new Connection('localhost');
$reader = new AnnotationReader();
$reader->setDefaultAnnotationNamespace('Doctrine\ODM\MongoDB\Mapping\\');
$config->setMetadataDriverImpl(new AnnotationDriver($reader, __DIR__ . '/Documents'));
$dm = DocumentManager::create($con, $config);
Posts
FreeBSD 架設 redmine
redmine 安裝:
1.先更新本機的port tree
$ portsnap fetch update
2.安裝
cd /usr/ports/www/redmine; make install clean
Posts
FreeBSD DenyHosts 擋掉暴力破解 ssh 的使用者
# cd /usr/ports/security/denyhosts; make install clean;
-------------------------------------------------------------------------------
To run denyhosts from startup, add denyhosts_enable="YES"
in your /etc/rc.conf.
Configiration options can be found in /usr/local/etc/denyhosts.conf
-------------------------------------------------------------------------------
In order to proper working of denyhosts
1. edit your /etc/hosts.allow file and add:
sshd : /etc/hosts.deniedssh : deny
sshd : ALL : allow
2. issue the following command if /etc/hosts.deniedssh does not exist yet
touch /etc/hosts.deniedssh
-------------------------------------------------------------------------------
Warning:
syslogd should ideally be run with the -c option; this will ensure that
denyhosts notices multiple repeated login attempts.
To do this, add syslogd_flags="-c" to /etc/rc.conf
-------------------------------------------------------------------------------
===> Installing rc.d startup script(s)
===> Registering installation for denyhosts-2.6_3
===> Cleaning for denyhosts-2.6_3
#
Posts
VirtualBox-OSE on FrreeBSD 免x11
參考 http://d.hatena.ne.jp/wittro/20100617/1276782079 cd /usr/src make build32 install32; ldconfig -v -m -R /usr/lib32 cd /usr/ports/emulators/virtualbox-ose make install clean ============================================================================= VirtualBox was installed. You need to load the vboxdrv kernel module via /boot/loader.conf: vboxdrv_load="YES" For bridged networking please add the following line to your /etc/rc.conf: vboxnet_enable="YES" Reboot the machine to load the needed kernel modules. You also have to add all users to your vboxusers group in order to use vbox.
Posts
PHPUnit
PHPUnit 介紹 PHPUnit 其實是個 PHP 寫成的 Framework , 主要功能就是自動對我們所寫的PHP程式做輸入輸出的檢查 一個方便的工具來幫我們自動測試 , 而 PHPUnit 就可以讓我們自行撰寫測