Guide
http://msdn.microsoft.com/en-us/library/aa969767(v=VS.90).aspx
Install Path:
Program Files\Microsoft Windows Performance Toolkit\WPF Performance Suite\WpfPerf.exe
Friday, December 16, 2011
Monday, December 5, 2011
Root Samsung Exhibit II
http://androidforums.com/exhibit-4g-all-things-root/444258-anyone-root-samsung-exhibit-ii-4g-t679.html
ZergRush zip file attached.Install the phone drivers on your pc, in your phone turn usb debugging on, plug your phone into your pc and let the drivers install.Unzip the zergRush file to a new folder on your desktop,open the folder and click on the .bat file and let it run . To check if you rooted...you should see apps called superuser and terminal emulator in your app draw. You can also download root checker from the market to verify...enjoy.
This WORKS for the Exhibit 4g ll and Exhibit 4g.
ZergRush zip file attached.Install the phone drivers on your pc, in your phone turn usb debugging on, plug your phone into your pc and let the drivers install.Unzip the zergRush file to a new folder on your desktop,open the folder and click on the .bat file and let it run . To check if you rooted...you should see apps called superuser and terminal emulator in your app draw. You can also download root checker from the market to verify...enjoy.
This WORKS for the Exhibit 4g ll and Exhibit 4g.
Monday, November 21, 2011
How To Make Your Application Delete Itself
XP:
none-XP
reference:
http://www.codeproject.com/KB/threads/HowToDeleteCurrentProcess.aspx
Process.Start("cmd.exe", "/C ping 1.1.1.1 -n 1 -w 3000 > Nul & Del " +
Application.ExecutablePath);
none-XP
Process.Start("cmd.exe",
"/C choice /C Y /N /D Y /T 3 & Del " + Application.ExecutablePath);
Application.Exit();
reference:
http://www.codeproject.com/KB/threads/HowToDeleteCurrentProcess.aspx
Saturday, November 19, 2011
System.Windows.Forms.Cursor.Hide
http://msdn.microsoft.com/en-us/library/system.windows.forms.cursor.hide.aspx
The Show and Hide method calls must be balanced. For every call to the Hide method there must be a corresponding call to the Show method.
坑爹啊...
Wednesday, November 9, 2011
Understanding User Interface in Android
http://mobiforge.com/designing/story/understanding-user-interface-android-part-1-layouts
http://mobiforge.com/designing/story/understanding-user-interface-android-part-2-views
http://mobiforge.com/designing/story/understanding-user-interface-android-part-3-more-views
http://mobiforge.com/designing/story/understanding-user-interface-android-part-4-even-more-views
http://mobiforge.com/designing/story/understanding-user-interface-android-part-2-views
http://mobiforge.com/designing/story/understanding-user-interface-android-part-3-more-views
http://mobiforge.com/designing/story/understanding-user-interface-android-part-4-even-more-views
DroidDraw Beta
Comsuming WCF Services With Android
Android ListView and ListActivity - Tutorial
Tuesday, October 25, 2011
欧凯歌库中用到的英文词汇的含义
http://www.28ktv.com/BBs/read-htm-tid-2401-ordertype-desc.html
欧凯歌库中用到的英文词汇的含义
请教欧凯歌库导出后在EXCEL中看到的几个英语词的含义:
SONGID(歌曲编印码) NAME(歌曲名) SINGER(歌手名) TYPE(歌曲类别)
LANG(歌曲语种) HC(是否合唱)
WORDNUM(歌名字数) PY(歌名拼音首字母)
FILENAME(歌曲地址)
这几个我已找到,下面的几个意思是什么,请朋友们指点:
DBCOUNT WAVCOUNT
WAVTYPE WAVVALUE
WAVSPEED
DBCOUNT 点播次数
WAVCOUNT 原唱音轨
WAVTYPE 音轨类型
WAVVALUE 音量加减
WAVSPEED 声音延时
欧凯歌库中用到的英文词汇的含义
请教欧凯歌库导出后在EXCEL中看到的几个英语词的含义:
SONGID(歌曲编印码) NAME(歌曲名) SINGER(歌手名) TYPE(歌曲类别)
LANG(歌曲语种) HC(是否合唱)
WORDNUM(歌名字数) PY(歌名拼音首字母)
FILENAME(歌曲地址)
这几个我已找到,下面的几个意思是什么,请朋友们指点:
DBCOUNT WAVCOUNT
WAVTYPE WAVVALUE
WAVSPEED
DBCOUNT 点播次数
WAVCOUNT 原唱音轨
WAVTYPE 音轨类型
WAVVALUE 音量加减
WAVSPEED 声音延时
mencoder commands
//merge audio with video
mencoder "d:\result.avi" -audiofile "D:\My Music\mm_col\Track01.mp3" -ovc copy -oac copy -o d:\result2.avi
//save audio
mencoder -of rawaudio -ovc copy -oac mp3lame -o d:\o1.mp3 d:\result.avi
//save audio for track id
mencoder -aid 0 -of rawaudio -ovc copy -oac mp3lame -o d:\o3.mp3 d:\wlty.mkv
//save left channel
mencoder -af channels=2:2:0:0:0:1 -of rawaudio -ovc copy -oac mp3lame -o d:\o5.mp3 d:\rain.rmvb
//save right channel
mencoder -af channels=2:2:1:0:1:1 -of rawaudio -ovc copy -oac mp3lame -o d:\o6.mp3 d:\rain.rmvb
//compress video
mencoder d:\testd.avi -vf scale -zoom -xy 320 -o d:\result5.avi -oac copy -ovc lavc -lavcopts vcodec=mpeg4
mencoder "d:\result.avi" -audiofile "D:\My Music\mm_col\Track01.mp3" -ovc copy -oac copy -o d:\result2.avi
//save audio
mencoder -of rawaudio -ovc copy -oac mp3lame -o d:\o1.mp3 d:\result.avi
//save audio for track id
mencoder -aid 0 -of rawaudio -ovc copy -oac mp3lame -o d:\o3.mp3 d:\wlty.mkv
//save left channel
mencoder -af channels=2:2:0:0:0:1 -of rawaudio -ovc copy -oac mp3lame -o d:\o5.mp3 d:\rain.rmvb
//save right channel
mencoder -af channels=2:2:1:0:1:1 -of rawaudio -ovc copy -oac mp3lame -o d:\o6.mp3 d:\rain.rmvb
//compress video
mencoder d:\testd.avi -vf scale -zoom -xy 320 -o d:\result5.avi -oac copy -ovc lavc -lavcopts vcodec=mpeg4
Friday, October 7, 2011
Wednesday, October 5, 2011
Making A 7-Zip Switchless Installer
From
http://www.wincert.net/forum/index.php?/topic/1978-tutorial-making-a-7-zip-switchless-installer/
Time for a new Tutorial. At first there are new versions of all the stuff that's needed. Secondly are there much improvements and is there an easier way to make a 7-Zip Installer now. Third: I think most people don't know this all.
Tutorial:1. Download the right 7zSD (always linked to latest version). Extract and place the 7zsd.sfx in a new folder.
2. Go to here and download the 7za***.zip (where *** is the version number) from the latest 7-Zip command line version. Extract and place only the 7za.exe in the same folder as 7zSD.
3. Download UPX here. Extract and place only the upx.exe in the folder where 7zSD and 7za are placed.
4. Make a subdirectory with the name Bin and copy all installation files to.
5. If you want, you can change the icon of the installer by replacing the icon in 7zsd.sfx using ResHacker as described here.
6. You can also change the version info of the executable using ResHacker. Go to the folder Version Info in ResHacker by opening 7zsd.sfx and rename the values of "CompanyName" and "FileDescription".
7. Create a Config.txt in the same folder as 7zSD, 7za and UPX.
Open it and set:
Replace program.exe with the name of your installer (including the extension). Replace -switch with the desired switch(es) to be used. Many switches of different programs can be found here.
For a full silent 7-Zip install you add:
It's not needed any more to add StartX.exe, msistub.exe or other supplementary tools. Then "waiting" is enabled by default for 'RunProgram=', unless 'nowait:' parameter is used. Also reg-files aren't needed any more. They can be configured in the Config.txt.
For a Register Entry (If you use a lot of Register Entries it's smart to use the parameter SetEnvironment to save time):
Keep this in mind: you MUST use DOUBLE backslashes (\\) wherever you normally use backslashes (\) (e.g. in paths or dialog texts). Similarly, if the Value contains double quotes ("), you MUST precede them with a backslash (\").
Now, your Config.txt looks like this:
You can add, edit and remove lines if you want.
* All available configuration parameters and other helpful information can be found here (site is just translated from Russian to English).
8. Save Config.txt with UTF-8 encoding by selecting "UTF-8" from the dropdown menu in the "Save As..." dialog in Notepad.
9. Make a Create.cmd in the same folder as the Config.txt and past the following:
10. Rename Program_Name to your own program name and run your Create.cmd.
11. Congratulations: you have guaranteed the littlest 7-Zip Installer as possible.
Tool:Utility that can extract 7z archive and config file (Config.txt) as well as SFX module (7zsd.sfx) from 7z SFX archive. It has the name 7z SFX Archive Splitter (from the 7z SFX creator) and you can download it here (always linked to latest version).
http://www.wincert.net/forum/index.php?/topic/1978-tutorial-making-a-7-zip-switchless-installer/
Time for a new Tutorial. At first there are new versions of all the stuff that's needed. Secondly are there much improvements and is there an easier way to make a 7-Zip Installer now. Third: I think most people don't know this all.
Tutorial:1. Download the right 7zSD (always linked to latest version). Extract and place the 7zsd.sfx in a new folder.
2. Go to here and download the 7za***.zip (where *** is the version number) from the latest 7-Zip command line version. Extract and place only the 7za.exe in the same folder as 7zSD.
3. Download UPX here. Extract and place only the upx.exe in the folder where 7zSD and 7za are placed.
4. Make a subdirectory with the name Bin and copy all installation files to.
5. If you want, you can change the icon of the installer by replacing the icon in 7zsd.sfx using ResHacker as described here.
6. You can also change the version info of the executable using ResHacker. Go to the folder Version Info in ResHacker by opening 7zsd.sfx and rename the values of "CompanyName" and "FileDescription".
7. Create a Config.txt in the same folder as 7zSD, 7za and UPX.
Open it and set:
Quote
RunProgram="program.exe -switch"
Replace program.exe with the name of your installer (including the extension). Replace -switch with the desired switch(es) to be used. Many switches of different programs can be found here.
For a full silent 7-Zip install you add:
Quote
GUIMode="2"
It's not needed any more to add StartX.exe, msistub.exe or other supplementary tools. Then "waiting" is enabled by default for 'RunProgram=', unless 'nowait:' parameter is used. Also reg-files aren't needed any more. They can be configured in the Config.txt.
For a Register Entry (If you use a lot of Register Entries it's smart to use the parameter SetEnvironment to save time):
Quote
RunProgram="hidcon:cmd Register Entry"
Keep this in mind: you MUST use DOUBLE backslashes (\\) wherever you normally use backslashes (\) (e.g. in paths or dialog texts). Similarly, if the Value contains double quotes ("), you MUST precede them with a backslash (\").
Now, your Config.txt looks like this:
Quote
;!@Install@!UTF-8!
GUIMode="2"
RunProgram="program.exe -switch"
RunProgram="hidcon:cmd Register Entry"
;!@InstallEnd@!
GUIMode="2"
RunProgram="program.exe -switch"
RunProgram="hidcon:cmd Register Entry"
;!@InstallEnd@!
You can add, edit and remove lines if you want.
* All available configuration parameters and other helpful information can be found here (site is just translated from Russian to English).
8. Save Config.txt with UTF-8 encoding by selecting "UTF-8" from the dropdown menu in the "Save As..." dialog in Notepad.
9. Make a Create.cmd in the same folder as the Config.txt and past the following:
upx --ultra-brute 7zsd.sfx cd Bin ..\7za a -mx=9 "..\Program.7z" * cd .. copy /b 7zsd.sfx + Config.txt + Program.7z Program_Name.exe del Program.7z
10. Rename Program_Name to your own program name and run your Create.cmd.
11. Congratulations: you have guaranteed the littlest 7-Zip Installer as possible.
Tool:Utility that can extract 7z archive and config file (Config.txt) as well as SFX module (7zsd.sfx) from 7z SFX archive. It has the name 7z SFX Archive Splitter (from the 7z SFX creator) and you can download it here (always linked to latest version).
Thursday, September 29, 2011
Monday, September 26, 2011
Friday, September 23, 2011
windbg trick: Failed to load data access DLL, 0x80004005
Copy From http://hunmr.blogspot.com/2009/09/failed-to-load-data-access-dll.html
前一段时间在x86机器上分析一个64位机上取的dump时,遇到以下情况:
0:000> .load sos
0:000> !clrstack
Failed to load data access DLL, 0x80004005
Verify that 1) you have a recent build of the debugger (6.2.14 or
newer)
2) the file mscordacwks.dll that matches your version of
mscorwks.dll is
in the version directory
3) or, if you are debugging a dump file, verify that the
file
mscordacwks___.dll is on your
symbol path.
4) you are debugging on the same architecture as the dump
file.
For example, an IA64 dump file must be debugged on an
IA64
machine.
You can also run the debugger command .cordll to control the
debugger's
load of mscordacwks.dll. .cordll -ve -u -l will do a verbose reload.
If that succeeds, the SOS command should work on retry.
If you are debugging a minidump, you need to make sure that your
executable
path is pointing to mscorwks.dll as well.
Google了好几天,有解, 如下:
1.
.load wow64exts
2.
!sw
3.
.loadby sos mscorwks
4.
这里你可以执行sos里面的命令了。
!clrstack,
!thread,
!dumpheap -stat -type Exception //看异常比较有效
!pe, //看异常比较有效
!dso,
!do,
!GCRoot //分析ManagedHeap内在泄露比较有效。
严重推荐:
http://blogs.msdn.com/alejacma/archive/2009/08/24/managed-debugging-with-windbg-breaking-on-an-exception-part-1.aspx
===========
http://msdn.microsoft.com/en-us/windows/hardware/ff562263(v=VS.85)
.cordll -I mscorwks -lp c:\dacFolder
0:000> .load sos
0:000> !clrstack
Failed to load data access DLL, 0x80004005
Verify that 1) you have a recent build of the debugger (6.2.14 or
newer)
2) the file mscordacwks.dll that matches your version of
mscorwks.dll is
in the version directory
3) or, if you are debugging a dump file, verify that the
file
mscordacwks_
symbol path.
4) you are debugging on the same architecture as the dump
file.
For example, an IA64 dump file must be debugged on an
IA64
machine.
You can also run the debugger command .cordll to control the
debugger's
load of mscordacwks.dll. .cordll -ve -u -l will do a verbose reload.
If that succeeds, the SOS command should work on retry.
If you are debugging a minidump, you need to make sure that your
executable
path is pointing to mscorwks.dll as well.
Google了好几天,有解, 如下:
1.
.load wow64exts
2.
!sw
3.
.loadby sos mscorwks
4.
这里你可以执行sos里面的命令了。
!clrstack,
!thread,
!dumpheap -stat -type Exception //看异常比较有效
!pe, //看异常比较有效
!dso,
!do,
!GCRoot //分析ManagedHeap内在泄露比较有效。
严重推荐:
http://blogs.msdn.com/alejacma/archive/2009/08/24/managed-debugging-with-windbg-breaking-on-an-exception-part-1.aspx
Subscribe to:
Posts (Atom)