Mar 11, 2009

Useful USB status code

Some useful USB status code which you may see when dealing with USB monitor

1.target stalled
USBD_STATUS_STALL_PID 0xC0000004

2.operation is cancelled by application
USBD_STATUS_CANCELED 0xC0010000

Mar 1, 2009

PDF management

Recently I tried to manage the pdf I have got so far. It's very handy if I had a tool like iPhoto which can automatically add all of my pdfs to a large library with automatic indexs, comments or description.

Delicious library on MAC can find book description, but it cannot import pdfs automatically. Yep on MAC is a good way to go, but I just wonder that if there is a similiar software on PC?

Feb 21, 2009

Javascript code prettifier test

Here is my small expriment on the Javascript code prettifier.


void main(){
}

Deletion Test

deleteme

SyntaxHighlighter Test

I am testing in SyntaxHighlighter 1.5.1.The SyntaxHighlighter 2.0 is hard to be compatible with blogspot, so I decide to postpone to use the new version. But 1.5.1 still shows some strangeness. (Do you see that?)

--Update 2009/05/10
I have updated the SyntaxHighlighter to 2.0.3. Everything seems fine now.


void main(){
printf("hello world!);
}

Feb 5, 2009

VIM

I am trying to adapt VIM in recent days. Still fill painful, though.

Here is my plugin list:
a.vim
include_complete.vim
supertab.vim
omnicppcomplete.vim
taglist.vim
visualmark.vim

Nov 11, 2008

Fix your ultraedit right key menu

Just import this to your registry
Be sure to chage your ultraedit path below


Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\UltraEdit-32]
@="{b5eedee0-c06e-11cf-8c56-444553540000}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{b5eedee0-c06e-11cf-8c56-444553540000}]
@="UltraEdit-32"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{b5eedee0-c06e-11cf-8c56-444553540000}\InProcServer32]
@="C:\\Program Files\\UltraEdit-32\\ue32ctmn.dll"
"ThreadingModel"="Apartment"

 
TEMPLATE HACKS AND TWEAKS BY [ METAMUSE ] BLACKCAT 1.1
/scripts/shBrushJScript.js'/>