HanG321 Blog
Be Shine, Be Smile, Be Wild
  • Home
  • Blog
    • 好文閱讀 readings
    • 生活記事 diary
    • 時事評論 commentary
    • 科技資訊 technology
    • 電腦編程 programming
    • 金融財經 finance
    • 音樂電影 music/movie
  • About

Log file in both NSF and Text format

January 17, 2007|Domino, log|電腦編程

Log file in both NSF and Text format
Mr Frunobulax 16.Jan.07 11:33 a Web browser
Domino Server 7.0.2 Windows 2003


You could write your own custom class which simply wraps up a .nsf log and a txt log. Something like this:

?

Class MyLog

Private fileLog As NotesLog
Private dbLog As NotesLog

Sub new( programName As String, dbName As String, fileName As String )

Set fileLog = New NotesLog( programName )
Call fileLog.OpenFileLog( filename )

Set dbLog = New NotesLog( programName )
Call dbLog.OpenNotesLog( "", dbName )

End Sub

Sub logAction( msg As String )

Call fileLog.LogAction( msg )
Call dbLog.LogAction( msg )

End Sub

Sub close()

Call fileLog.Close()
Call dbLog.Close()

End Sub

End Class

You would use the class like this:

Dim myLog As New MyLog( "My Agent", "mylog.nsf", "c:templog.txt" )
Call myLog.logAction( "Hello world" )
Call myLog.close()

Client Side encrypt and sign

January 16, 2007|cryptography, PKI|科技資訊

Signing Text from JavaScript
http://docs.sun.com/source/816-6152-10/sgntxt.htm

SecClab PKI Utilities
http://secclab.mozdev.org/
Secclab is a XPCOM Component that implements some PKI functions. Secclab is open source and dually-licensed under the GNU General Public License and the Mozilla Public License. You can download and install Secclab from the Installation page.
Features:
-Sign/verify CMS detached Signatures from XUL applications
-Encrypt/Decrypt CMS encrypted messages from XUL applications
-CLABSignString, a cryptoSignText clone that enables in mozilla (and phoenix) form-sign feature.

Choice

January 16, 2007|生活記事

“i have no choice”  — [The Devil wears Prada]

如果真係冇得選擇…世界應該會再簡單點….
至少, 冇左阿當夏娃食禁果這故事, 人就沒有”原罪”

有選擇便要考慮, 要分析, 要取捨, 要決定……
究竟……是什麼……..

...102030...75767778...100...

 

如果你喜歡我的文章,請幫忙按 1-10次 LikeButton 化讚為賞,非常感謝!越喜歡當然可以越按越多 😛

搜尋 Search

簡介 Bio

香港人,現居南十字星空下。

為人貪心,科技、生活、財經、散文 皆有興趣,周身刀冇張利。

思想矛盾,喜歡現在work-life balance 既生活又懷念a city never sleep。

 

每月送我一杯咖啡支持我: liker.land/hang321




分類 Categories

  • 好文閱讀
  • 時事評論
  • 未分類
  • 生活記事
  • 科技資訊
  • 金融財經
  • 電腦編程
  • 音樂電影

文章存檔 Archives




熱門文章 Popular Posts

  • Install XPEnology (DSM) 5.1 on ESXi 6 (HP MicroServer Gen 8)
    Install XPEnology (DSM) 5.1 on ESXi 6 (HP MicroServer Gen 8) June 8, 2015
  • 呢幾日個blogger 有問題….
    呢幾日個blogger 有問題…. October 28, 2004
  • assembly
    assembly February 11, 2006
  • 新工作
    新工作 January 6, 2009
  • 嫁人要嫁工程師
    嫁人要嫁工程師 April 27, 2006

標籤雲 Tag Cloud

CentOS Character chroot Cluster crash cryptography DD-WRT debug Domino DSM Dual Core DWA email ESXi GCP git google HylaFax IE Java Javascript JRE LikeCoin Linux log LotusScript mint MX MySQL nginx PKI PowerShell Qwiklabs srt telent VMware vpn vSphere WinXP wordpress XPEnology 專欄 網絡資訊 選股 風帆

日曆 Calendar

May 2025
M T W T F S S
  « Feb    
 1234
567891011
12131415161718
19202122232425
262728293031  

Follow Me

Follow Us on RSSFollow Us on TwitterFollow Us on YouTube

文章存檔 Archives

Copyright © 2004-2021 hang321.net. All Rights Reserved