Visual Studio – Enable Debug for new Build Configuration

When you are setting up new build configuration which you want to be able to debug, you need to set Debug info to Full.

Right click the project in Solution Explorer and select Properties. Select build tab and then select desired configuration from Configuration drop down list at the top of the page.

Click on Advanced at the bottom of output section and select Full from Debug Info drop down list.

Save changes to project settings and rebuild your solution.



Font Awesome and IIS

If you are using Font Awesome in your ASP.Net web app which is hosted on IIS, you need to set appropriate mime type for Font Awesome files, otherwise IIS won’t know how to serve them.

To do this, you’ll need to add mime type mapping to <system.webServer> section in your application’s Web.config file.

Before registering each file extension (woff and woff2), we’ll want to remove them first, just in case that mime types for those are already registered on IIS host.

<remove fileExtension=”.woff” />
<mimeMap fileExtension=”.woff” mimeType=”application/x-font-woff” />
<remove fileExtension=”.woff2″ />
<mimeMap fileExtension=”.woff2″ mimeType=”application/x-font-woff2″ />

How to Hard Reset HP Laptop

Doing a Hard Reset (or Forced Reset) on HP laptop to clear and then set up again connections between BIOS and the hardware. You can use this to resolve a range of issues, such as boot issues, Windows not loading properly, or software freezing when you use it.

To do a hard reset, perform the following steps:

  1. Turn off you laptop.
  2. Disconnect power and anything else you might have connected (e.g. printer, USB hard drive, mouse).
  3. Remove the battery.
  4. Press and hold Power button for 30 seconds.

Once you’ve done all this, re-insert the battery and power up your laptop.

How to Cancel App Store Update in OS X

When you are downloading updates from Mac App Store, you can pause the update of an app. But what if you want to cancel it altogether? Luckily, App Store offers that functionality as well.

Go to Updates in App Store and press and hold Option key. This will change Pause button into Cancel button for all apps that are currently updating. Click on Cancel button while holding Option key, and the update for that app will be cancelled.

However, if the app has already finished downloading and has started installing, you won’t be able to cancel the update. In this case just wait for the installation to finish and remove the app.

How to Speed up Windows Folder Loading

Sometimes there is one (or more) folders on your PC that take a very long time to load and display contents when you try to open them. This is due to the fact that Windows will try to figure out what type of content is mostly present in that folder to optimize the folder view (e.g. Pictures, Music, etc.).

You can stop this behavior by changing the folder’s content type in Properties. Right-click on folder and select Properties, then go to Customize tab. Select General Items from “Optimize this folder for” drop down list. You can also select “Apply this template to all subfolders” if you have subfolders inside with the same issue. Click Apply to apply changes, and then OK to close Properties dialog.

Change should take place immediately next time you open up that folder.

Windows fast folder load

How to specify template parameter values in SQL Server Management Studio

When using templates in SQL Server Management studio (for example using a template to create new stored procedure), there is always a bunch of parameters for which you need to specify values. You can always go manually through the whole template script and set parameter values, but there is an easier way.

Press Shift+Ctrl+M and parameter value editor will open up. Enter values for each parameter in the list and you are done.


How to specify MS SQL Server port to connect to

If you are connecting to a SQL Server instance that is not listening for connections on default port (1433), you need to specify the port that the server is listening to.

To specify a port, use a comma separator after the server name / IP address –,5001,5001\MyInstance

First example above will connect to default instance on port 5001, and second example will connect to named instance on port 5001.