BlackWasp
Name: BlackWasp
Score: 2,519.09
Last Seen: 2 days, 4 hours, 48 minutes ago
Member Since: 8 April, 2009
DotNetShoutout
atom rss
1
Shouts

Thread-Safe Stacks with ConcurrentStack(T)

published 5 hours, 37 minutes ago posted by BlackWaspBlackWasp 2 days, 4 hours, 48 minutes ago
Tuesday, June 18, 2013 10:02:14 AM GMT Sunday, June 16, 2013 10:51:43 AM GMT
.NET 4.0 introduced several thread-safe collection types that can be used in parallel code without manual thread synchronisation. The ConcurrentStack (more)
category: How To | clicked: 3 | comment | | source: www.blackwasp.co.uk
tags:
3
Shouts

Using Environment.FailFast

published 5 hours, 37 minutes ago posted by BlackWaspBlackWasp 8 days, 17 hours, 39 minutes ago
Tuesday, June 18, 2013 10:02:14 AM GMT Sunday, June 09, 2013 10:00:57 PM GMT
When an application becomes critically unstable, it is sometimes better to exit, rather than risk corruption. If even exiting normally could cause damage to data, it is appropriate to ignore any exception handling and stop the process immediately. (more)
category: How To | clicked: 15 | comment | | source: www.blackwasp.co.uk
tags:
3
Shouts

Invoking Overloaded Methods Using Reflection

published 6 days, 4 hours, 17 minutes ago posted by BlackWaspBlackWasp 15 days, 18 hours, 17 minutes ago
Wednesday, June 12, 2013 11:23:02 AM GMT Sunday, June 02, 2013 9:22:31 PM GMT
Static and instance methods can be invoked via reflection by obtaining a MethodInfo object for the desired member and calling the Type class's Invoke method. When invoking overloaded methods, the call to obtain the method information must be modified. (more)
category: How To | clicked: 6 | comment | | source: www.blackwasp.co.uk
tags:
1
Shouts

A LINQ Style Operator to Set the Length of a Sequence

published 13 days, 22 hours, 51 minutes ago posted by BlackWaspBlackWasp 20 days, 6 hours, 24 minutes ago
Tuesday, June 04, 2013 4:49:11 PM GMT Wednesday, May 29, 2013 9:15:36 AM GMT
Sometimes it is necessary to modify the length of a sequence of values to achieve a fixed length. This may require that values at the end of the sequence are omitted or that new elements are added to achieve the desired length. (more)
category: How To | clicked: 7 | comment | | source: www.blackwasp.co.uk
tags:
3
Shouts

Thread-Safe Queues with ConcurrentQueue

published 18 days, 1 hour, 39 minutes ago posted by BlackWaspBlackWasp 27 days, 5 hours, 48 minutes ago
Friday, May 31, 2013 2:01:01 PM GMT Wednesday, May 22, 2013 9:51:31 AM GMT
The standard .NET queue classes are not thread-safe so require additional locking to avoid errors when used in multithreaded or parallel scenarios. This additional complexity is not required with the generic ConcurrentQueue (more)
category: How To | clicked: 13 | comment | | source: www.blackwasp.co.uk
tags:
4
Shouts

Setting the Foreground Window

published 22 days, 5 hours, 23 minutes ago posted by BlackWaspBlackWasp 30 days, 8 hours, 36 minutes ago
Monday, May 27, 2013 10:16:43 AM GMT Sunday, May 19, 2013 7:04:01 AM GMT
Occasionally it is necessary for a .NET program to activate a window that belongs to a separate application. The facility to set the foreground window is not available through the .NET base class library but is possible using Platform Invocation Services. (more)
category: How To | clicked: 5 | comment | | source: www.blackwasp.co.uk
tags:
3
Shouts

Using SendKeys

published 32 days, 6 hours, 12 minutes ago posted by BlackWaspBlackWasp 38 days, 7 hours, 52 minutes ago
Friday, May 17, 2013 9:27:50 AM GMT Saturday, May 11, 2013 7:47:25 AM GMT
Some software that needs to be automated provides no application programming interface (API) to permit this and no direct access to data to control the program indirectly. In these cases, one solution to automation is the SendKeys class. (more)
category: How To | clicked: 7 | comment | | source: www.blackwasp.co.uk
tags:
1
Shouts

Creating Fixed-Width Data Files

published 34 days, 23 hours, 29 minutes ago posted by BlackWaspBlackWasp 44 days, 5 hours, 11 minutes ago
Tuesday, May 14, 2013 4:10:42 PM GMT Sunday, May 05, 2013 10:29:09 AM GMT
Fixed-width data files are an alternative to comma-separated values (CSV) for storing and sharing tabular data. The information in a fixed-width data set tends to use more storage or bandwidth than CSV but is more readable to humans. (more)
category: How To | clicked: 17 | comment | | source: www.blackwasp.co.uk
tags:
2
Shouts

Identifying the Namespaces in an Assembly

published 47 days, 5 hours, 50 minutes ago posted by BlackWaspBlackWasp 56 days, 8 hours ago
Thursday, May 02, 2013 9:50:06 AM GMT Tuesday, April 23, 2013 7:39:29 AM GMT
Sometimes it is necessary to find the names of all of the namespaces that are defined in a .NET assembly. Although reflection does not provide a method for this purpose, it is possible to get this information indirectly. (more)
category: How To | clicked: 6 | comment | | source: www.blackwasp.co.uk
tags:
5
Shouts

SQL Server NOLOCK Hint

posted by BlackWaspBlackWasp 62 days, 6 hours, 44 minutes ago
Wednesday, April 17, 2013 8:56:11 AM GMT
Where locking causes problems with queries it can be useful to execute those queries with the NOLOCK hint. This specifies that a query should ignore existing locks and create no data locks. However, the hint introduces the potential of data corruption. (more)
category: How To | clicked: 5 | comment | | source: www.blackwasp.co.uk
tags:
5
Shouts

Visual Studio Code Metrics

posted by BlackWaspBlackWasp 65 days, 5 hours, 28 minutes ago
Sunday, April 14, 2013 10:11:49 AM GMT
Judging the maintainability of an application's source code objectively during code reviews can be difficult. To help, some Visual Studio editions can calculate code metrics, such as cyclomatic complexity, depth of inheritance and lines of code. (more)
category: How To | clicked: 2 | comment | | source: www.blackwasp.co.uk
tags:
1
Shouts

LINQ Style Variance and Standard Deviation Operators

posted by BlackWaspBlackWasp 76 days, 5 hours, 23 minutes ago
Wednesday, April 03, 2013 10:17:01 AM GMT
In statistics, the variance and standard deviation for a set of data indicate how spread out the individual values are. Small values indicate that the elements of a set are close to the average value, whereas larger values suggest a greater spread. (more)
category: How To | clicked: 5 | comment | | source: www.blackwasp.co.uk
tags:
3
Shouts

Switching Visual Studio Window Layouts

published 97 days, 3 hours, 18 minutes ago posted by BlackWaspBlackWasp 106 days, 8 hours, 45 minutes ago
Wednesday, March 13, 2013 12:22:11 PM GMT Monday, March 04, 2013 6:54:18 AM GMT
Visual Studio provides many windows that are used for designing, developing and debugging software. For developers that work with varying screen resolutions or numbers of screens, it can be useful to store and reload window layout configurations. (more)
category: How To | clicked: 43 | comment | | source: www.blackwasp.co.uk
tags:
5
Shouts

Controlling the Wave Device Volume

published 104 days, 1 hour, 38 minutes ago posted by BlackWaspBlackWasp 113 days, 10 hours, 50 minutes ago
Wednesday, March 06, 2013 2:01:32 PM GMT Monday, February 25, 2013 4:49:46 AM GMT
The wave device volume determines how loudly sounds are played, either for the current application or for the entire operating system. This volume can be adjusted for the left and right channels independently using Windows API functions. (more)
category: How To | clicked: 22 | comment | | source: www.blackwasp.co.uk
tags:
5
Shouts

The Generic EventHandler Delegate

published 106 days, 6 hours, 25 minutes ago posted by BlackWaspBlackWasp 116 days, 4 hours, 44 minutes ago
Monday, March 04, 2013 9:14:42 AM GMT Friday, February 22, 2013 10:55:19 AM GMT
In .NET 1.1, creating a custom event with event arguments often included the declaration of a new delegate. In .NET 2.0 and with the introduction of generics, the process is simplified with the standard EventHandler (more)
category: How To | clicked: 51 | comment | | source: www.blackwasp.co.uk
tags:
5
Shouts

Capturing the Standard Output of a Process

published 112 days, 6 hours, 14 minutes ago posted by BlackWaspBlackWasp 122 days, 3 hours, 36 minutes ago
Tuesday, February 26, 2013 9:25:23 AM GMT Saturday, February 16, 2013 12:03:25 PM GMT
Rather than recreating some functionality, it can be easier to launch existing processes. When a program can output textual information and error details, the software launching the process can subscribe to events and capture that information. (more)
category: How To | clicked: 11 | comment | | source: www.blackwasp.co.uk
tags:
6
Shouts

A Generic Priority Queue

published 116 days, 6 hours, 7 minutes ago posted by BlackWaspBlackWasp 126 days, 3 hours, 39 minutes ago
Friday, February 22, 2013 9:32:20 AM GMT Tuesday, February 12, 2013 12:01:05 PM GMT
A queue is a data structure that preserves the order of items added to it to give first in, first out, or FIFO, operation. A priority queue is similar but attaches a priority to each element, so that the more important items are extracted earlier. (more)
category: How To | clicked: 32 | comment | | source: www.blackwasp.co.uk
tags:
5
Shouts

A LINQ Style Partition Operator

published 123 days, 6 hours, 31 minutes ago posted by BlackWaspBlackWasp 131 days, 3 hours, 51 minutes ago
Friday, February 15, 2013 9:08:21 AM GMT Thursday, February 07, 2013 11:48:55 AM GMT
Sometimes a sequence of values needs to be split into partitions, batches or chunks. This article describes an extension method that performs such an operation, accepting a collection of any type and returning a set of sequences from its contents. (more)
category: How To | clicked: 26 | comment | | source: www.blackwasp.co.uk
tags:
3
Shouts

Binary Heaps

published 125 days, 6 hours, 27 minutes ago posted by BlackWaspBlackWasp 134 days, 7 hours, 21 minutes ago
Wednesday, February 13, 2013 9:12:28 AM GMT Monday, February 04, 2013 8:18:37 AM GMT
A binary heap is a data structure, based upon a complete binary tree, that allows the first item in an ordered set to be quickly extracted. Heaps are used in several popular algorithms, including the heapsort method for ordering elements in a collection. (more)
category: How To | clicked: 19 | comment | | source: www.blackwasp.co.uk
tags:
3
Shouts

Windows Presentation Foundation

published 139 days, 3 hours, 16 minutes ago posted by BlackWaspBlackWasp 147 days, 5 hours, 34 minutes ago
Wednesday, January 30, 2013 12:23:20 PM GMT Tuesday, January 22, 2013 10:06:09 AM GMT
This is the first in a series of articles describing the use of Windows Presentation Foundation (WPF), a powerful technology for creating Microsoft Windows-based, smart client software. The tutorial begins with an overview of the benefits of WPF. (more)
category: How To | clicked: 10 | comment | | source: www.blackwasp.co.uk
tags:
Previous 1 2 3 4 5 6 7 8 9 10 Next