I know, old knowledge, but I only recently added the below batch files to file collection.
Why? Because since a few Windows versions, the System process uses port 80 because IIS is installed by default in many configurations. And recently I had to do quote a bit of http communication work against a local machine outside the IIS realm.
:: http://stackoverflow.com/questions/22084561/difference-between-iisreset-and-iis-stop-start-command
:checkPrivileges
net file 1>nul 2>nul
if '%errorlevel%' == '0' ( goto :gotPrivileges ) else ( goto :getPrivileges )
:isNotAdmin
:getPrivileges
echo You need to be admin running with an elevated security token to run %0
goto :exit
:isAdmin
:gotPrivileges
:: net stop w3svc
:: net stop iisadmin
iisreset /stop
:exit
::pause
exit /b
Start IIS:
:: http://stackoverflow.com/questions/22084561/difference-between-iisreset-and-iis-stop-start-command
:checkPrivileges
net file 1>nul 2>nul
if '%errorlevel%' == '0' ( goto :gotPrivileges ) else ( goto :getPrivileges )
:isNotAdmin
:getPrivileges
echo You need to be admin running with an elevated security token to run %0
goto :exit
:isAdmin
:gotPrivileges
:: net start w3svc
:: net start iisadmin
iisreset /start
:exit
::pause
exit /b
Reloop has posted the below for DJ controlers (like Contour IE, Jockey 3 ME and Digital Jockey 2 ME), but it also applies to their mixers, for instance my Reloop RMX-40 USB – Reloop (but not limited to Reloop audio equipment) in combination with either of my:
MacBook Air (13-inch, Mid 2011)
MacBook Pro (Retina, 15-inch, Late 2013)
All these machines have USB 3.0 ports. But the workarounds below work:
It’s obvious if you have seen this once, but it wasn’t clear to me how to play only individual songs from a playlist. Luckily my search got this step by step guide as the first hit:
Create the playlist.
Uncheck all of the check boxes in the playlist (In iTunes for Windows, ctrl click one of the check marks to uncheck all of the checkboxes at once)
Now double click (or select and press spacebar) a song to play it. It will stop when finished because there is no other song checked to be played next.
If you want to change back to normal sequential play, ctrl click one of the check marks again to change all of the checkboxes back to the checked status.
The tip works for both Mac and Windows.
I needed this as part of a pub-quiz so I could finish the questions and answers before moving on to the next track in the playlist.
Most of the times it is me at fault: some process still is using it.
But sometimes, it is devenv.exe (Visual Studio itself) that keeps it locked, even though nothing is running (in fact it can happen right after you loaded the project in Visual Studio 2013).
I think the reason forward declaration of classes and interfaces is possible because they both are reference types, so referring does not impose copying.
Anyway, the trick is this:
You can’t have forward declarations for record types. Define both Implicit operators in the second type