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 »

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 »

 

Limit the number of months displayed by WordPress archives widget

Locate and edit your themes functions.php file. This can either be done in the admin panel by navigating to

Appearance -> Editor -> Click on functions.php file

or by directly editing the file which you can usually find under

wp-content/themes/<theme name>/functions.php

After opening the file simply add the following lines in it.

Replace the number 10 with the number of months that you want to display and you are done!

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

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

If you are looking for a way to set a global hotkey for your C# application that can be used without your form having focus I have created a decently commentated example for you below that you can use.

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

How to know if a process has stopped or started using events in C#

There are numerous of ways to detect if a new process has started or stopped, sadly the majority of them are extremely inefficient as it requires you to keep looping through the active process constantly to see if a new one appeared in the array or if one is not there any more.

Luckily the windows Win32_ProcessStartTrace and Win32_ProcessStopTrace classes are here to help out.

The first thing we need to do is reference System.Management.dll in our project. Then we need to define the scope in your class which we will be using.

After that we need to initialise the class which will contain the process start and process stopped events and add the handlers and their methods.

Add the two following variables in your Class.

In your constructor the event handlers need to be added.

and then their event methods that will be trigged when a process either starts or stops.

And finally we need to start the events by using

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

Unigine releases Heaven 4.0 benchmark

Unigine has released a new version of Heaven, a DirectX 11 graphics benchmark.

The new version offers a number of new features such as:

  • Extreme hardware stability testing
  • Accurate results due to 100% GPU-bound benchmarking
  • Benchmarking presets for convenient comparison of results
  • Support for DirectX 9, DirectX 11 and OpenGL 4.0
  • Multi-Platform support for Windows, Linux and Mac OS X
  • Comprehensive use of hardware tessellation, with adjustable settings
  • Dynamic sky with volumetric clouds and tweakable day-night cycle
  • Real-time global illumination and screen-space ambient occlusion
  • Cinematic and interactive fly/walk-through camera modes
  • Support for multi-monitor configurations
  • Various stereo 3D modes
  • GPU temperature and clock monitoring
  • Command line automation support
  • Highly customizable reports in CSV format
  • Support for software rendering mode in DirectX 11 for reference purposes
  • Support for English, Russian and Chinese languages

System Requirements

  • ATI Radeon HD 4xxx and higher, NVIDIA GeForce 8xxx and higher, or Intel HD 3000 and higher
  • Video memory: 512 Mb
  • Disk space: 1 Gb
  • Microsoft Windows XP / Vista / 7 / 8, Linux (proprietary video drivers required), or Mac OS X 10.8+ (Mountain Lion)

There are three versions currently available .

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

3DMark 11 is now available

Futuremark has released a new version of the known benchmark software 3DMark.

The new version consists of six new benchmark tests which make extensive use of DirectX 11 features including tessellation, compute shaders and multi-threading.

Available Benchmarks

  • Deep Sea 1
  • Graphic test using lights with no tessellation.

  • Deep Sea 2
  • Graphic test using tessellation, post processing, depth of field and other camera lens effects.

  • High Temple 1
  • Graphic test using lights and tessellation.

  • High Temple 2
  • Graphic test with high tessellation usage.

  • Physics test
  • Multi-theaded CPU heavy benchmark with minimal impact on the GPU.

  • Combined test
  • All around benchmark, that tests both the GPU and CPU using object collision, tessellation, volumetric lighting and post processing effects.

Minimum Requirements

  • OS: Microsoft Windows Vista or Windows 7
  • Processor: 1.8GHz dual-core Intel or AMD CPU
  • Memory: 1 GB of system memory
  • Graphics: DirectX 11 compatible graphics card
  • Hard drive space: 1.5 GB
  • Audio: Windows Vista / Windows 7 compatible sound card

There is a free edition available at http://www.3dmark.com/3dmark11/download

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