close
  • Postfix郵件伺服器(2):SMTP-AUTH相關的設定:
    • mynetwork設為127.0.0.1-postconf -e 'mynetworks=127.0.0.1'
    • main.cf:
      • smtpd_sasl_auth_enable=yes
      • smtpd_sasl_security_options=noanonymous
      • broken_sasl_auth_clients=yes
      • smtpd_recipient_restrictions=permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
  • Hibernate有提供一個middlegen的工具來產生hbm.xml
  • System.Diagnostics: Debug.WriteLine(), Trace.WriteLine(), Trace.WriteLineIf(),使用前要先用 Trace.Listeners.Add( new TextWriterTraceListener( new FileStream("mylog.txt") ) ),表示trace, debug輸出在mylog.txt。另外,也可以加上switch,程式裡用 var dbSwitch=new BooleanSwitch("DatabaseSwitch", "Database Access"); 這樣 app.config 裡就可以用 switches tag (關鍵字:switches)來控制,switch的value attribute可以加數字,表示輸出等級,程式裡則可用 dbSwitch.TraceInfo、dbSwitch.ErrorInfo 來判斷等級。
  • Java的不定參數:用 ...,例如 void f( String... arg )。存取方法跟陣列相似。
  • 專案管理工具Mantis
  • 網頁資料加密與簽章:利用ProtectedData與ProtectedMemory這兩個類別,還有SecureString、NegotiateStream、SslStream、FileSecurity、SecurityIdentifier。

arrow
arrow
    全站熱搜

    elleryq 發表在 痞客邦 留言(0) 人氣()