Raspberry Pi as NAS + Media Server + VPN server

I have an old Raspberry Pi ( the first generation of Raspberry Pi model B), which has been used as my home media center for years. I installed and run libreelec which is a ” ‘Just enough OS’ Linux distribution for running the ultimate entertainment center application Kodi.” I also use Kodi remote control mobile app to control my TV. So far I have been very satisfied with this little single board computer 🙂

Comparing the sizes of my Pi Model B and a card deck

Kodi on…


Read More »

“Closeable Kiosk” (2) — with user scripts

In my last blog post (http://www.smartpeer.net/2013/10/closeable-kiosk-with-firefox-user-styles/) I used user styles to create a “closeable kiosk” with firefox. Google chrome also supports user styles so similar styles can be applied to Chrome too.

Both firefox and Chrome support another “user scripts”, which “Allows you to customize the way a web page displays or behaves, by using small bits of JavaScript.”. it can be applied to selected pages only, or to all the sites/pages. Here is a way…


Read More »

“Closeable Kiosk” with firefox user styles

Recently I got request to create a “closeable browser-based kiosk”– basically a browser in full screen mode, can’t be minimized/resized/moved or returned to non-full screen mode, no browser file menus, no address bar/navigation bar so user have to be stay on the same page, and can’t go to other urls. However user should be able to close it using mouse. This is to be deployed on some real kiosk booths like the ones often seen in a museum. There is no keyboard on the kiosk so short cut key…


Read More »

Digging into Windows Server AppFabric tracking event collection service

There is no enough documentation for configuration of AppFabric Event collection service. The best doc I can find is this MSDN page:
http://msdn.microsoft.com/en-us/library/hh334438

We would like to fine control when workflow tracking events are being persisted. how ever, the document does not provide details of how extactly events are schduled to be persisted to the monitor datastore. The main configurable settings are the “eventBufferSize” and “RewriteDelay” attributes in root web.xml:


Read More »

这些年我看过的网络小说

回首这几年从网络上看过的小说…

假如时间能够倒流, 假如我能够重来过 , 我也许不会浪费无数大好光阴在这上面, 从而避免了从一个愤怒青年进化成不良中年?

做梦吧傻叉.

现实总是: YY强身, 爽文V5 !

~~~~~~~~~~~~~~~~~~~~~
分界线…
~~~~~~~~~~~~~~~~~~~~~

太监的小说:

泥人的《江山如此多娇》
makelaugh的《武林旧事》
宁致远《楚氏春秋》
风月大陆
多一半《唐朝好男人》
我的超级异能
大宋时代周刊
长生

连载中或者宫中的小说:

孙晓《英雄志》
月下小羊《候补圣女》
愤怒的香蕉《赘婿》
随波逐流之神龙传奇
盛唐烟云 酒徒
妄语《凡人修仙传》
北唐
陌上行

印象最深的完本小说:

罗森的《风姿物语》。
《悟空传》今何在
墨武《江山美色》
烟雨江南《亵渎》
老猪的《紫川》
烽火戏诸侯《陈二狗的妖孽人生》
随波逐流《随波逐流之一代军师》
.凤歌《昆仑》
《沧海》
猫腻《庆余年》
月关 《回到明朝当王爷》,
大爆炸《窃明》
邪气凛然
知秋《历史的尘埃》
Read More »

use openssl commandline as symmetric cryptography tool

to encrypt a string using 3des algorithm:

echo 'somecleartext'|openssl enc -e -des3 -K 'some_key_in_hex' -iv 'some_iv_in_hex' |base64

to decrypt a 3des encrypted string:

echo 'somecipher'|base64 -d|openssl enc -d -des3 -K 'some_key_in_hex'  -iv  'some_iv_in_hex'

a bunch of symmetric encryption alorithms are supported, like AES, DES, blowfish etc:

Cipher Types
-aes-128-cbc -aes-128-cfb -aes-128-cfb1
-aes-128-cfb8 -aes-128-ecb -aes-128-ofb
-aes-192-cbc -aes-192-cfb -aes-192-cfb1
-aes-192-cfb8…

Read More »

what will be my next Android pad

I currently own a zt-180 “epad” android pad… it’s ok running android 2.1 but kinda slow when running 2.2. I also don’t like its resistance touch screen and the short battery life (2 hours)… so I am looking for a new one now.

now the question is : which to buy?

here is a list after some quick google searches:
— Nook color: 7 inch, battery good; no video cam and gps. $245 +tax; cortex a-8 1G hz 512M ram.
— Dell streak wifi: 7 inch. 2 camares; screen resolution lower and other complaints. fast…


Read More »

 海归网 iphone app

my first iphone app, for haiguinet.com….

It’s in app store now: http://itunes.apple.com/us/app/id438046601

我得第一个iphone app : 海龟网iphone app正式上线, 可从app store 免费下载安装

大家可以在iphone上的app store 里搜索“归网”,然后免费下载安装。谢谢各位支持。

请在此报告问题或建议。

注: 在ios4.2 以上版本的iphone/ipod touch 上测试过。其他版本的ios未经测试。

开发感想:
-- 虽然海归网总的感觉是在没落中,但是还是有不少的新老id在这里玩。。。这种亲切感挥不掉。希望通过这个小程序让大家玩得更方便一点。
-- 很不喜欢apple的xcode, 特别是interface builder. 个人觉得很垃圾。
-- objective-c…


Read More »