原创 ios上的uiwebview只顯示英文

之前利用phonegap開發ios上的程序, 在點擊 <input type="file" /> 的時候,界面總是顯示英文,Choose Existing File。 爲了顯示中文或者日文,需要在 info.plist裏面添加一個Loca

原创 在ubuntu上使用uwsgi部署CherryPy的應用

1, 安裝uWSGI server sudo apt-get install uwsgi uwsgi-plugin-python 2, 在/etc/uwsgi/apps-available目錄下創建配置文件 appsample.json

原创 ios push notifications using nodejs

1, create the proper SSL Certificate and Keys. please refer to the link from Apple Provisioning and Development afte

原创 ubuntu啓動s時出現錯誤: udevadm trigger is not permitted while udev is unconfigured.

基本上通過下面方法可以實現 解決步驟可以參考 http://ubuntuforums.org/showthread.php?t=1567147 如下的8個步驟。 1. Boot liveCD 2. "sudo fdisk -l" to f

原创 intel edison with grove lcd

通過intel xdk,如下的程序可以打印Hello world到grove lcd上 var mraa = require ('mraa'); var LCD = require ('jsupm_i2clcd'); console.

原创 ssh to pcduino3 without monitor from ubuntu

Ubuntu NOTE: You should have the usbnet module available for your Linux kernel. On most distributions, this is the ca

原创 從Ubuntu12.04升級到Ubuntu 14.04後系統不能啓動

進入Ubuntu啓動界面,一般有幾個選項,Ubuntu,Ubuntu高級。。。 輸入e鍵,進入grub的設置界面,將裏面的ro修改爲rw即可。 以上可以啓動,暫時性的設置 但是爲了永久保存這個設置,需要進入Ubuntu裏面,修改文件 /b

原创 如何使用wireshark查看ssl內容

1,要查看ssl的內容,需要得到server的server rsa key 2, 打開wireshark, 找到如下路徑, Edit -> Preferences -> protocols -> SSL 然後點擊 RSA Keys Lis

原创 使用MongoDb Extension for Yii 2連接mongodb分佈式服務

1, 連接一般的mongodb,可以參考MongoDb Extension的文檔,如下 http://www.yiiframework.com/doc-2.0/ext-mongodb-index.html 2, 連接mongodb分佈式

原创 利用DNode實現php和nodejs之間的通信

一,安裝DNode, 1, for nodejs, 執行 $ sudo npm install dnode 2, for php, 利用composer來安裝DNode php 執行下列語句下載composer $ wget ht

原创 install nodejs on pcduino3

1, install nodejs, the same as raspberry pi wget http://node-arm.he

原创 Turning MongoDB Replica Set to a Sharded Cluster

Written by Severalnines on May 11, 2013 origin: http://www.severalnines.com/blog/turning-mongodb-replica-set-sharded-

原创 使用nodejs mongodb連接mongodb的shard分佈服務

1,連接單個mongodb的實例,可以參看node mongodb的文檔 https://github.com/mongodb/node-mongodb-native 2, 連接mongodb 的mongos服務,只需要修改一下連接配

原创 ssh to intel edison

The factory software image for Edison has SSH access enabled only via the USB Gadget network interface (192.168.2.15).

原创 在啓動時自動執行linux上的一些程序

在啓動時自動執行linux上的一些程序,可以通過修改下面的文件,添加一下命令,就可以在啓動linux時自動加載想要的程序。 /etc/rc.local