Author: mmpower

Software Architect & Soccer Fan 黑超白袜 = IT 民工 + 摇滚大叔

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 »

[民工日记]简单服务器GEO-Routing: 根据ip自动分流

不通过应用程序而纯粹从服务器简单配置。。。transparent to your apps

1. 用 apache mod_rewrite 实现根据用户ip自动选择镜像

这是一个非常简单的实现–如果用户来自中国,自动重定向到位于中国的服务器,否则转到海外的服务器。并且自动检测服务器状态,如果一个服务器倒了所有traffic都会转到另外的server.

在 apache config 里加一个 virtual host:

ServerAdmin [email protected]
DocumentRoot /hosting/balance
ServerName balance
<filesmatch "\.(php|htm|html|pl|asp)"="">
Allow from all

RewriteEngine on
RewriteLog rewrite.log
RewriteLogLevel 9
RewriteMap lb prg:/hosting/balance/ip_prg.php
RewriteRule ^(.*)$…

Read More »

Cheap secondary storage options

Looking at cheap storage for hosting backup/archive… driving force: cost.  NetApp is too expensive.

The following can be taken into consideration:

— Amazon S3 web services. Since it’s only used for backup/archive the cost should not be too high. Need to analyze the cost though. Another potential issue is legal/privacy…

     Technically the best way is probably to use a S3 file system driver so the backup/access is transparent to the apps and existing apps doesn’ t need to be modified. the…


Read More »