How to recursively delete an entire directory with PowerShell 2.0?

Remove-Item -Recurse -Force some_dir does indeed work as advertised here. rm -r -fo some_dir are shorthand aliases that work too. As far as I understood it, the -Recurse parameter just doesn’t work correctly when you try deleting a filtered set of files recursively. For killing a single dir and everything below it seems to work … Read more

Git Bash is extremely slow on Windows 7 x64

You can significantly speed up Git on Windows by running three commands to set some config options: git config –global core.preloadindex true git config –global core.fscache true git config –global gc.auto 256 Notes: core.preloadindex does filesystem operations in parallel to hide latency (update: enabled by default in Git 2.1) core.fscache fixes UAC issues so you … Read more

The request was aborted: Could not create SSL/TLS secure channel

I finally found the answer (I haven’t noted my source but it was from a search); While the code works in Windows XP, in Windows 7, you must add this at the beginning: // using System.Net; ServicePointManager.Expect100Continue = true; ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; // Use SecurityProtocolType.Ssl3 if needed for compatibility reasons And now, it works perfectly. … Read more

How do I force my .NET application to run as administrator?

You’ll want to modify the manifest that gets embedded in the program. This works on Visual Studio 2008 and higher: Project + Add New Item, select “Application Manifest File”. Change the <requestedExecutionLevel> element to: <requestedExecutionLevel level=”requireAdministrator” uiAccess=”false” /> The user gets the UAC prompt when they start the program. Use wisely; their patience can wear out quickly.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)