維基九八七

內容連結

隨手剪貼

VirtualBox: How to change the UUID of Virtual Disk (vdi)

SignTool Error: Signtool requires CAPICOM version 2.1.0.1

Original Post

I had uninstalled some CTP “Community Technology Preview” software. The next thing I know I'm getting this “SignTool” error when trying to publish with ClickOnce in Visual Studio 2005. It wasn't a hard fix.

  1. Download the latest CAPICOM “Platform SDK Redistributable” here.
  2. Run the downloaded “capicom_dc_sdk.msi” file.
  3. I had to register the DLL file. Assuming the installation directory is the same just run the following command from the command prompt.

regsvr32 “C:\Program Files\Common Files\Microsoft Shared\CAPICOM\CapiCom.dll”

Hope this helps!

Virtulization

Windows 檢查目前Ports使用狀況

To see a list of open ports on Windows XP you can install one of many firewall applications, or you can go to a command prompt and enter:

netstat -ano

To find the program that is using the port, look at the PID number, then use the task manager to match the PID with a running process. To get a more detailed list that includes the EXE file and DLL file names (this takes a bit longer) try this:

netstat -anobv 

Avira Update

Avira手動更新載點: http://dl.antivir.de/down/vdf/ivdf_fusebundle_nt_en.zip
1.執行「小紅傘授權精靈程式」

C:\Program Files\Avira\AntiVir Desktop\fact.exe
2.點選「hdeda.key」
3.在「檔名」的地方,輸入以下任一網址:
http://dl1.avgate.net/down/windows/hbedv.key
http://dl2.avgate.net/down/windows/hbedv.key
http://dlce.antivir.com/down/windows/hbedv.key

Avira AD Remove

參考:http://fred151.net/?p=articles/removeavirapublicity

Win 7:

  1. 開始 > 執行 > gpedit.msc
  2. 開啟 Computer Configuration\Windows Settings\Security Settings\Software Restriction Policies
  3. 在Software Restriction Policies上按滑鼠右鍵 > New Software Restriction Policies
  4. 新增之後,會出現兩個子目錄,點擊選擇 Additional Rules
  5. 在右邊空白地方按滑鼠右鍵 > New Path Rule…
  6. 將 C:\Program files\Avira\AntiVir Desktop\avnotify.exe 加入Path
  7. Security Level 設定為 Disallowed
  8. 按下OK,完成。

windows 95/98/ME/2000/XP/VISTA:

可以直接下載 No Notify Avira 幫你關閉廣告

快速更換XP序號

(下列語法另存檔案 .vbs)

for each Obj in GetObject("winmgmts:{impersonationLevel=impersonate}").InstancesOf ("win32_WindowsProductActivation")
result = Obj.SetProductKey ("FMJY7-8TB7C-4YTTW-QFQJX-VVR2M")
Next

刪除已存在Windows系統中的帳號密碼

rundll32.exe keymgr.dll, KRShowKeyMgr

SyntaxHighlighter用法

官方網站:http://alexgorbatchev.com/SyntaxHighlighter
外掛網站:http://www.dokuwiki.org/plugin:syntaxhighlighter3
Usage:

<sxh [brush alias][; options for SyntaxHighlighter]>
... code/text ...
</sxh>

Example:

<sxh php; first-line: 5; highlight: [10,11,12,13]>
function render($mode, &$renderer, $data) {
 
    if ($mode == 'xhtml') {
        if (count($data) == 3) {
            list($syntax, $attr, $content) = $data;
            if ($syntax == 'sxh')
                $renderer->doc .= "<pre class=\"brush: ".$attr."\">".$renderer->_xmlEntities($content)."</pre>";
            else
                $renderer->file($content);
        }
        return true;
    }
    return false;
}
</sxh>

Expected result:

function render($mode, &$renderer, $data) {

    if ($mode == 'xhtml') {
        if (count($data) == 3) {
            list($syntax, $attr, $content) = $data;
            if ($syntax == 'sxh')
                $renderer->doc .= "<pre class=\"brush: ".$attr."\">".$renderer->_xmlEntities($content)."</pre>";
            else
                $renderer->file($content);
        }
        return true;
    }
    return false;
}

SyntaxHighlighter uses separate syntax files called brushes to define its highlighting functionality.

Brush name Brush aliases File name
ActionScript3 as3, actionscript3 shBrushAS3.js
Bash/shell bash, shell shBrushBash.js
ColdFusion cf, coldfusion shBrushColdFusion.js
C# c-sharp, csharp shBrushCSharp.js
C++ cpp, c shBrushCpp.js
CSS css shBrushCss.js
Delphi delphi, pas, pascal shBrushDelphi.js
Diff diff, patch shBrushDiff.js
Erlang erl, erlang shBrushErlang.js
Groovy groovy shBrushGroovy.js
JavaScript js, jscript, javascript shBrushJScript.js
Java java shBrushJava.js
JavaFX jfx, javafx shBrushJavaFX.js
Perl perl, pl shBrushPerl.js
PHP php shBrushPhp.js
Plain Text plain, text shBrushPlain.js
PowerShell ps, powershell shBrushPowerShell.js
Python py, python shBrushPython.js
Ruby rails, ror, ruby shBrushRuby.js
Scala scala shBrushScala.js
SQL sql shBrushSql.js
Visual Basic vb, vbnet shBrushVb.js
XML xml, xhtml, xslt, html, xhtml shBrushXml.js

Tools

Process Explorer: http://goo.gl/sKov0

DebugView: http://goo.gl/X16Y9

start.txt · 上一次變更: 2012/02/24 20:46 由 achi
 
若未特別註明,此維基上的內容都是採用以下授權方式: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki