devxlogo

The Latest

Converting Between List and String Types

These handy functions let you easily convert from a generic string List to a delimited string, or from a delimited string to a string List: /// /// Converts List to

Evaluating an Object’s PropertyPath

PropertyPaths are a very useful binding concept, and can be useful in other instances as well. However, .NET 3.5 does not support evaluating PropertyPaths against objects directly without using binding.

Get a Table Description in Oracle’s PL/SQL

If you’re with an organization that requires you to document everything that you do (and if you’re not required to, there’s something wrong!), you’ll no doubt have to document any

Simplify Your XAML with Resources and Control Templates

he visual appearance of controls in XAML?their styling?is, unlike Windows Forms controls, completely customizable. XAML offers speedy and uncomplicated ways to style controls, primarily: Declaratively, through XAML markup Programmatically, through

Typed Datasets: A First Step to .NET Flexibility

isual Basic Express (VB Express) wizards make it easy to connect to a remote data source and start manipulating data. However, the results aren’t always flexible enough for a development

The HTML 5 Layout Elements Rundown

TML 5 is an interesting beastie. The specification was not planned; The W3C was committed to HTML 4.1 as the last word in HTML. As such, most of the requests

Returning Zero-Length Arrays in Java

It’s best not to return null from a method that returns an array type. Always returning an array, even if the array has zero length, greatly improves the generality of

RegEx.Split vs. String.Split

The String.Split method has few limitations. For example, it does not support splits on duplicate delimiters such as double pipe (||) characters, double tildes (~~), or double colons (::). The

Selecting Sort Order at Runtime

You can select which column to sort a SELECT statement by at runtime, using just one parameter. To do this, declare one parameter and use it with a CASE command.

A Taste of JavaFX for the Uninitiated

avaFX is a scripting language that provides built-in properties for manipulating objects within a 2D coordinate system. A competing technology to Microsoft’s Silverlight, JavaFX provides the tools to fill and

Solving Eclipse (Ganymede) and PermGem Out-of-Memory Errors

First, launch Eclipse with increased memory options, which you can do as follows (increase these values as needed, but don’t exceed your available memory): eclipse.exe -vmargs -Xmx512M -XX:MaxPermSize=256M Sometimes, the

Determine Which Session Is Blocking All Users in Oracle

You can find out which session is causing blocking problems using this SQL command: SELECT blocking_session, sid, serial#, wait_class, seconds_in_wait FROM v$session WHERE blocking_session IS NOT NULLORDER BY blocking_session; Related

Open Any File from Code

Using the following code snippet you can run any application (such as Word, Excel, etc.) or open any file whose extension is associated with an application, such as .doc, .txt,

Generating Microsoft Office Documents with the Open XML SDK

evelopers have worked with Office documents for years, primarily word-processing documents, presentations, and spreadsheets. While the various Microsoft Office applications have provided built-in support for creating and modifying Office documents,