https://blogs.msdn.microsoft.com/asiatech/2011/12/05/how-to-develop-and-deploy-activex-control-in-c/
Monthly Archives: April 2016
Assigning exclusivity and evicting processes from a CPU core
I have a need to move one process to a vacant core – but is the core vacant? Does it stay vacant? Step 1 – move the process to a core, Step 2 (which should happen before Step 1) is to see what core has least activity, evict the squatters to another core, then move the relevant process.
- PowerShell: List processes currently using the most CPU
- Listing processes by cpu
- Moving a process to a new cpu – powershell
- running a sub-shell as an admin user w. a UAC prompt
- Odd Math I required
- flip a bit in a mask
- converting to hex
- How to convert a simple integer to a larger one that can cast to an IntPtr use [Convert]::ToInt32 <- this can then convert to the pointer required by the .ProcessorAffinity property
- “using write-host is almost always the wrong…” … I agree. Use write-output if you want to pipe something to a file using the > operator
Image Processing to detect differences in flashing frames
I have a need to detect when a screen “stops changing” and that time will then be considered “done”. So first, the flashing is every 1 seconds, so if we average out frames in 2 seconds and use that “rolling averaged” frame vs. the subsequent rolling average (so 1 averaged frame later) and do some math to say “how much different” then we can look for when the changes stop and be happy we have an answer. So average 48 frames if you are using 24fps.
Where to start? ImageMagick I think is a good place.
- compare function
- can it work on video so I don’t have to convert? There seems to be hope