How to register a global hotkey for your application in C#

How to register a global hotkey for your application in C#

Register a hotkey for your application that can be triggered even if your form is minimized and does not have focus. More »

Visual Studio 2013

Visual Studio 2013

Visual Studio 2013 is now available. Make sure to upgrade to the latest version of Visual Studio. More »

How to download a file in C# (progressbar and download speed)

How to download a file in C# (progressbar and download speed)

Learn how to download files in C# while displaying the percentage and the download speed. More »

UDP hole punching implementation in C#

UDP hole punching implementation in C#

Learn how to implement UDP hole punching so you can make your clients life a lot easier by not forcing them to open ports on their end. More »

 

How to make Firefox ask to save tabs on exit

Sadly the newer versions of Firefox no longer ask you if you want to save the open tabs when you close Firefox. This is probably because of the new feature that has been implemented in the general options which allows Firefox to always remember the open tabs and windows upon closing.

Firefox save windows and tabs option

But what happens if you don’t always want to save the open tabs ?

To get back the original functionality of Firefox, that used to show a message on exit asking if we want to save the open tabs or not we need to dig a bit in Firefox’s configuration settings.

  1. Type about:config in your address bar and press enter.
  2. There are three entries we are interested in (four if you are using Firefox 12 or higher).
    • browser.tabs.warnOnClose
    • browser.warnOnQuit
    • browser.warnOnRestart
    • browser.showQuitWarning (for Firefox 12 and higher)

    Search for each one individually and make sure that their value is set to true.

  3. Restart Firefox.

Now everytime you will close Firefox (assuming you have tabs open) you will get a message asking you if you want to save the current tabs or not.

Firefox save tabs message

Share on FacebookTweet about this on TwitterShare on Google+Share on StumbleUponShare on LinkedInShare on RedditPin on PinterestShare on TumblrDigg thisPrint this pageEmail this to someone

Disable grey urls in Firefox’s address bar

Firefox 6 and higher support a new feature that will automatically color the domain name and the top level domain black, greying out the rest of the URL.

Since this feature is enabled by default in the latest versions you might want to disable it if you don’t like the way Firefox is displaying the URL in the address bar. If that is the case simply follow the steps below.

browser.urlbar.formatting.enabled (true)
Firefox url formatting color setting enabled

browser.urlbar.formatting.enabled (false)
Firefox url formatting color setting disabled

How to disable Firefox’s url formatting.

  1. Type about:config in your address bar and press enter.
  2. Search for browser.urlbar.formatting.enabled.
  3. Make sure the value is set to false.

The URL in the address bar should now be colored in black only.

Share on FacebookTweet about this on TwitterShare on Google+Share on StumbleUponShare on LinkedInShare on RedditPin on PinterestShare on TumblrDigg thisPrint this pageEmail this to someone

Disable recently closed tabs and recently closed windows in Firefox

Firefox’s recently closed tabs and recently closed windows are not controlled by the history settings. Which means even if you have history disabled the last windows and tabs you closed will still be there.

If you are worried about your privacy and you don’t want others to able to find out the last websites you visited then an addition solution to disabling the history is to disable the recently closed tabs and recently closed windows as well.

In order to do that you will need to following the steps below:

  1. Type about:config in your address bar and press enter.
  2. Search for browser.sessionstore.max_windows_undo and browser.sessionstore.max_tabs_undo.
  3. Change the value to the number of max entries you want Firefox to remember. Use 0 to disable them completely.

And as always, if you are making changes to Firefox’s configuration, it is always wise to restart Firefox once the changes have been made.

Share on FacebookTweet about this on TwitterShare on Google+Share on StumbleUponShare on LinkedInShare on RedditPin on PinterestShare on TumblrDigg thisPrint this pageEmail this to someone

Winamp’s era is coming to an end

After 15 years of active development the company behind Winamp announced that they are shutting down winamp.com and all the associate web services they provide. No official reason for the shut down was given as of yet.

The shut down will happen on the December 20, 2013 and from that point on users will not be able to download Winamp from the official site or use any other services that were associated with it. With these sad news Nullsoft released a final version of Winamp (Winamp 5.66) which will be available on their site till the 20th of December.

Farewell Winamp, you will be missed.

Winamp 5.66

Share on FacebookTweet about this on TwitterShare on Google+Share on StumbleUponShare on LinkedInShare on RedditPin on PinterestShare on TumblrDigg thisPrint this pageEmail this to someone

Download FxCop 10

FxCop is a tool that performs static code analysis of .NET code. It provides hundreds of rules that perform various types of analysis to ensure that your code follows Microsoft’s .NET Framework Design Guidelines.

Sadly the latest versions of FxCop are bundled within Microsoft Windows SDK. Since Microsoft doesn’t allow for their software to be distributed I cannot provide you with a standalone installer of FxCop myself, but at least I can take you through the steps to create one yourself.

For the next steps you will require a program that can open and extract files from both .cab files as well as .iso files. For this example I will be using WinRAR.

First you will need to download Microsoft’s Windows SDK which FxCop is bundled into. Choose a link below based on the CPU architecture you want.

Share on FacebookTweet about this on TwitterShare on Google+Share on StumbleUponShare on LinkedInShare on RedditPin on PinterestShare on TumblrDigg thisPrint this pageEmail this to someone