Posts

Showing posts from 2016

2 Stroke Carburetor Jetting

http://www.smellofdeath.com/lloydy/jetting.htm

DOS: Concatenate binary files

copy /b *.vob combined.vob copy /b file.bin+file2.bin combined.bin

Visual Studio 2015: Debug a Release Build

https://msdn.microsoft.com/en-us/library/fsk896zz.aspx You can debug a release build of an application. To debug a release build Open the  Property Pages  dialog box for the project. For details, see  Working with Project Properties . Click the  C/C++  node. Set  Debug Information Format  to  C7 compatible (/Z7)  or  Program Database (/Zi) . Expand  Linker  and click the  General  node. Set  Enable Incremental Linking  to  No (/INCREMENTAL:NO) . Select the  Debugging  node. Set  Generate Debug Info  to  Yes (/DEBUG) . Select the  Optimization  node. Set  References  to  /OPT:REF  and  Enable COMDAT Folding  to  /OPT:ICF . You can now debug your release build application. To find a problem, step through the code (or use Just-In-Time debugging) until you find where the failure occurs, and then determine the incorrect parameters or code. If an application works in a debug build, but fails in a release build, one of the compiler optimizations may be e

Git: Create A Patch Without A Commit

"create a patch without commit", can be also solved in this way: git diff > my_patch.txt Later you can apply this patch, also without a commit, by: git apply my_patch.txt

Visual Studio 2015: Using The Remote Debugger

Image
Intro Most of this write up just summarizes what's talked about in this video:  Visual Studio - How to Attach Debugger to a Remote Server This Microsoft web page documents how to install and run the remote debugger:  VS Remote Debugging Installation And Running Prerequisites The Visual Studio Remote Debugger for 2015 is called  rtools_setup_x64.exe To properly debug on a remote machine, you will need debug symbols for your code. Install And Run The Remote Debugger Find  rtools_setup_x64.exe , and install it on the remote server. After install, go to the  Start  menu and run  Remote Debugger . You may have to configure the firewall, this can be done through the  Remote Debugging Configuration  dialog that the  Remote Debugger  launches.  Allow everything. Once the remote debugger is running, go to the  Tools  menu and select  Options . The port will probably be 4020, change this to  4016 .  I could not get 4020 to work. Tick  No Authentication  and  Allow any use

FFMPEG Command Examples (Useful FFMPEG Commands)

Some of these are taken from here and here  and here . Good beginner guide:  here Nice set of examples:  here FFMPEG Audio Manipulation commands: https://trac.ffmpeg.org/wiki/AudioChannelManipulation Shorten a file.  Start at 0, and encode 180 seconds.  Copy ALL streams, not just the first or "best" of each type, which is the FFMPEG default: ffmpeg -i input.mpg -ss 00:00:00 -t 180 -map 0 -codec copy output.mpg Convert MP4 frames to Annex B: ffmpeg -i input.mov -codec:v copy -codec:a copy -bsf:v h264_mp4toannexb -f mp4 -y output.mp4 Get information about a media file: ffmpeg -i video.avi Extract (demux) the audio track from a video file: ffmpeg -i video.mts -acodec copy -vn audio.ac3 Extract (demux) the video track from a video file: ffmpeg -i video.mts -vcodec copy -an -f h264 ffNT.h264 Merge an audio and a video track (mux): ffmpeg -i video.h264 -i audio.ac3 -vcodec copy -acodec copy videoaudio.ts Resize an original Full-HD (16:9) video fi

Force Visual Studio To Run As Administrator

http://stackoverflow.com/questions/12257110/can-you-force-visual-studio-to-always-run-as-an-administrator-in-windows-8

Fix Visual Studio MSBuild.exe zombie process

http://stackoverflow.com/questions/3919892/msbuild-exe-staying-open-locking-files