主要特色:
1.代碼設計的優雅,小巧,進一步定制能力強
2.支持的語言眾多,目前是見過的支持語言最多的
3.不僅有序列化機制,還帶有rpc功能。
4.等等
如果說只是用于服務端內部,protobuf在在序列化方面由于thrift,ice在rpc方面遠勝過thrift,但如果想在客戶端和服務端使用的話,thrift的小巧優勢就非常明顯了。thrift既可以用在客戶端和服務端之間,也可以用于服務端內部之間,對于打造一個統一平臺是非常適合的.
2011年9月26日 #
2011年8月28日 #
2011年5月29日 #
2011年5月25日 #
1.sudo /usr/sbin/tcpdump -i eth1 -n port 7999
2.sudo /usr/sbin/tcpdump -i any -X -n -s0 port 7999
3.sudo /usr/sbin/tcpdump -i any -X -n -s0 dst port 7999 and ip[39]==0 and ip[40]==2
最后的 ip[39]==0 and ip[40]==0是過濾條件,含義為,從ip頭開始算起的第39個字節為十進制0,第40個字節為十進制2
2011年4月6日 #
| Compression or encryption | Uncompression or decryption |
| AES_ENCRYT() | AES_DECRYPT() |
| COMPRESS() | UNCOMPRESS() |
| ENCODE() | DECODE() |
| DES_ENCRYPT() | DES_DECRYPT() |
| ENCRYPT() | Not available |
| MD5() | Not available |
| OLD_PASSWORD() | Not available |
| PASSWORD() | Not available |
| SHA() or SHA1() | Not available |
| Not available | UNCOMPRESSED_LENGTH() |
2011年1月29日 #
2011年1月24日 #
public static int InsertProfile(Profile model)

{
try
{
DbCommand dbc = m_Db.GetStoredProcCommand("Profile_Insert");
m_Db.AddInParameter(dbc, "@pSourceID", DbType.String, model.SourceID);
m_Db.AddInParameter(dbc, "@pName", DbType.String, model.Name);
m_Db.AddInParameter(dbc, "@pAddress", DbType.String, model.Address);
m_Db.AddInParameter(dbc, "@pCity", DbType.String, model.City);
m_Db.AddInParameter(dbc, "@pTel", DbType.String, model.Tel);
m_Db.AddInParameter(dbc, "@pCode", DbType.String, model.code);
object obj = m_Db.ExecuteScalar(dbc);
if (obj != null)
{
return int.Parse(obj.ToString());
}
else
{
return 0;
}
}
catch (System.Exception e)
{
return 0;
}
}2011年1月22日 #
2011年1月19日 #
下載鏈接http://www.microsoft.com/downloads/en/details.aspx?FamilyID=abc59783-89de-4adc-b770-0a720bb21deb
msi安裝文件才3.9M,非常不錯,小巧適合開發用途,下載完畢,安裝時提示,.NET Framework 需要 >= 4.0,我使用的是VS2008,版本不夠,突然想到這不就是為了推廣VS2010嗎?公司開發機用不了,家里的筆記本還是可以用的,以前都是用apache,看來也有必要安裝IIS了。