Drop MSSQL Database – Currently in Use

By | Engineering

When using MSSQL server in development, you may need to drop your database to have a migration/init script re-create the whole thing. If you fire off a quick ‘drop database DatabaseNameHere’, you’ll probably encounter an error “Cannot drop database ‘DatabaseNameHere’ because it is currently in use.” Here’s a command you can execute to stop any active connections and drop the…

Read More

Launch Raspberry PI Fullscreen Browser URL

By | Engineering

First start by updating the package library and installing a few packages on the PI by entering the terminal and running the following commands. sudo apt-get update sudo apt-get install -y chromium-browser unclutter x11-xserver-utils The chromium-browser package may have been installed by default, but it is essentially the latest development branch of the popular Chrome browser. Next, the unclutter library will allow…

Read More

Enable CORS for dotnet core applications

By | Engineering

From the W3C specification, A simple cross-origin request has been defined as congruent with those which may be generated by currently deployed user agents that do not conform to this specification. Simple cross-origin requests generated outside this specification (such as cross-origin form submissions using GET or POST or cross-origin GET requests resulting from script elements) typically includeuser credentials, so resources conforming to this specification must always be prepared to expect…

Read More