Drop MSSQL Database – Currently in Use

By | Engineering | No Comments

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 | No Comments

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 | No Comments

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

From Sketch iOS Icon to XCode Asset Catalog

By | Engineering | No Comments

Open up a new Sketch document with the ‘iOS App Icon’ template. Update your design and then click export in the upper right corner or File > Export… You’ll be exporting that Sketch file into the folder that contains the app icon asset in xcode. To find the path to the Appicon.appiconset you can click on the (>) next to…

Read More

dotnet watch (like nodemon for NodeJS)

By | Engineering | No Comments

Updated July 1, 2018 With the release of dotnet core 2.1.3, they have built in the following dotnet tools. Watch is one of them. So to get started just create a project or upgrade a project to 2.1.3 and then simply add a ‘watch’ after your dotnet app and before the command. dotnet watch run nodemon is used in NodeJS…

Read More

Book Review: The One Minute Entrepreneur

By | Entrepreneur | No Comments

While listening to ‘The One Minute Entrepreneur‘, the author advises the protagonist in the fable to write down his one-minute insights. I went through the book and captured those insights and thought I should write them here for future reference. Associate with people you admire and can learn from. Keep a notebook of the wisdom you read, hear and learn…

Read More

Add Nationality Flag to Mac Top Bar

By | Ramblings | No Comments

I was watching a pluralsight video the other day and something caught my eye. I’m always looking for tips, tricks and what apps the engineers are using, but in this video one of the engineers had the American flag in this top toolbar on his Mac. A few searches on google lead me to believe this wasn’t clearly as easy…

Read More

20 Top Entrepreneur Attributes of Successful Entrepreneurs

By | Entrepreneur | No Comments

According to ‘The One Minute Entrepreneur‘, here’s the top 20 attributes that are exhibited in their book and must haves for successful entrepreneurs. Resourcefulness Purposeful Focused Risk-taking Problem Solving Salesmanship Oriented Visionary Optimistic Leadership Oriented Ambitious Innovative Integrity based Adaptable Communicative Self-motivated Strategic Team Oriented Determined Curious Balanced I went through the list and picked out a few that I thought…

Read More