This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //This achieves 3 things: | |
| //1. Processes in parallel | |
| //2. Preserves original order | |
| //3. Returns items immediately after they are available | |
| public static IEnumerable<TOutput> SelectParallelPreserveOrder<TInput,TOutput>( | |
| this IEnumerable<TInput> source, | |
| Func<TInput, TOutput> selector, | |
| int? degree = null) | |
| { | |
| var dop = Math.Max(degree ?? Environment.ProcessorCount, 1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Microsoft has "OpenCL™, OpenGL®, and Vulkan® Compatibility Pack Installer", which seems to use an unrelease Mesa3d for Windows: | |
| https://apps.microsoft.com/detail/9nqpsl29bfff?hl=en-US&gl=US | |
| Alternatively, use mesa-dist-win: | |
| https://github.com/pal1000/mesa-dist-win |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| How to enable RemoteFX on server | |
| Run the following PowerShell commands, and reboot. | |
| Set-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Terminal Services' -Name 'ColorDepth' -Type DWORD -Value 5 | |
| Set-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Terminal Services' -Name 'fEnableVirtualizedGraphics' -Type DWORD -Value 1 | |
| Alternatively, you may change a few group policies using gpedit.msc: | |
| Run gpedit.msc. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Download tiles. | |
| Zoom 20 is adequate for tennis courts. Zoom 22 is ideal, with diminishing returns. | |
| C:\Users\Smith\Desktop\dev\cs\QldGlobeApps | |
| Convert tiles to geotiff | |
| C:\Users\Smith\Desktop\dev\cs\QldGlobeApps | |
| Run geotiff through geodeep | |
| https://github.com/uav4geo/GeoDeep |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pip install -e packages/markitdown[all] | |
| pip install pyinstaller | |
| create a bootstrap file: | |
| markitdown-main\packages\markitdown\src\runme.py | |
| content: | |
| import markitdown.__main__ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Visual Studio → Tools → Options → Text Editor → C# → Advanced | |
| Set: | |
| Run background code analysis for: Entire Solution | |
| Show compiler errors and warnings for: Entire Solution | |
| Click OK |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| * Block UDP outbound ports 5004 and 9000 | |
| * Webex will be forced to use TCP, and the system's TCP SOCKS proxy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .\iperf3.exe -s -p 6000 | |
| //TCP | |
| ./iperf3.exe -c 127.0.0.1 -p 5001 -t 10 -P 10 --bidir | |
| //UDP | |
| ./iperf3.exe --udp -c 127.0.0.1 -p 5001 -b 100K -l 1200 -t 10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Get-WmiObject -Namespace "ROOT\ccm\ClientSDK" -Class CCM_Application | Select-Object Name, Publisher, SoftwareVersion, FullName, Revision, IsMachineTarget, InstallState | Sort-Object Name | |
| Legacy applications might be: | |
| Get-WmiObject -Namespace "ROOT\ccm\ClientSDK" -Class CCM_Program | |
| Ideas: | |
| https://www.powershellgallery.com/packages/SCClient/1.1/Content/SCClient.psm1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Force use of GPU: | |
| https://knowledge.civilgeo.com/enabling-gpu-rendering-for-microsoft-remote-desktop/ | |
| Increase from 30 to 60 FPS: | |
| https://learn.microsoft.com/en-us/troubleshoot/windows-server/remote/frame-rate-limited-to-30-fps |
NewerOlder