
Since 1998, DevX has helped people start businesses, build websites, and provide enterprise technology to people globally. Interviewing the likes of Microsoft’s co-founder, Steve Ballmer, the publication brings comprehensive, reliable, and accessible insights to the Internet.
Although it’s not considered best practice, after writing a class, sometimes you may decide that all or part of that class might work better as an interface. When that happens,
Most programmers use the String.split(String) method to convert a String to a String array specifying a delimiter. However, I feel it’s unsafe to rely on the split() method in some
To display row numbers in an ASP.NET DataGrid, first create a template column and set its ItemTemplate value using the following code:
This function separates the items in the delimited string (parameter 1) at the delimiter (parameter 2), creates a new generic string list, and then adds each item to the new
A quick example should suffice for defining and executing a Groovy Bean inside a Spring application context. Here’s a short Java interface: package com.springandgroovy; public interface HelloWorldService { String sayHello();
tored procedures and functions are a new feature of MySQL 5.0. A stored procedure is a pre-built procedure containing one or more SQL statements stored in the database server. This
ava Real-Time System (Java RTS) is Sun’s commercial implementation of the Real-Time Specification for Java (RTSJ), which defines real-time as “the ability to reliably and predictably respond to a real-world
hen someone comes over to your cube and starts talking about the latest cool software, the last thing you would expect them to be excited about is a new text
he simplicity of REpresentational State Transfer (REST), an architectural style for accessing information on the web, has made it a popular way for developers to access services. In the REST
f you use MS Access to store and manipulate data, you know that corruption happens. While it may not be an absolute certainly, Access is more susceptible to corruption than
Binding a Visual Studio Solution to code controllers such as Visual SourceSafe (VSS) offers many advantages to develoeprs. However, it is also a pain when you have to distribute such
It’s useful to know how to publish your 32-bit ASP.NET applications to a 64-bit operating system (OS). For example, suppose you want to publish to a Windows Server 2003 64-bit
When building classes in Visual Studio (VS), you can generate property setters and getters quickly by defining a field variable, and then right-clicking on the field and selecting Refactor ?
You can call PowerShell cmdlets directly from your C# code. First, add a reference to System.Management.Automation to your project. Unfortunately, you need to do this by editing the .vcproj file
orms have become an integral part of nearly all web applications, but the core HTML form elements are now nearly 13 years old. No surprise, then, that one of the
ere’s a common scenario: a base class has multiple constructors, each of which takes a different number of parameters of various types. A derived class has to declare “mirror constructors”
or years, heating problems have prevented CPU manufacturers from building viable CPUs with clock rates higher than 4.0GHz. This single-core processor speed limitation means that the only viable way to
The first listing here, which may look more familiar, is considerably longer than the second listing, even though they’re essentially equivalent. Listing 1.List friends = new ArrayList();friends.add(“Ben”);friends.add(“Kiran”);friends.add(“….”); You can replace
like working in high-level languages like Lisp and Ruby, but finding one that produces the small native standalone applications that I sometimes need to build is not easy. The two
An easy way to send mail from .NET is to use the DnsMailClient class. Here’s some sample code in both C# and VB: // in C#MailMessage msg = new MailMessage();msg.From
For large web pages, you often want to maintain the user’s current scroll position after a postback. To do that, use one of the following methods: In Web.config, in the
This example adds the days of the week and the weeks separately. You never iterate over the loop more then four times regardless of the number of days being added.
When you save an HTML file with Internet Explorer, it saves the contents as a Multipurpose Internet Mail Extension HTML (MHTML) file, with an .mht extension. But you can easily
ace conditions are an inherent part of parallel programming. A race condition exists any time a program’s behavior may depend on the relative ordering of events on separate threads. In
he MiniCMS system begun in the first article in this series needs to have flexible menu components. The menu system should be data driven?in this example, menus are created from
hile the default behavior of Microsoft Dynamics CRM 4.0 is completely functional, it’s also general; more often than not, you’ll find you need to augment it based on specific business
he previous articles in this series (see the Related Resources section in the left column) covered the releases of Python 3.0 and Python 2.6. Despite the relative youth of these
s the Microsoft .NET platform has matured, desktop application technologies have reached a new plateau. Decades-old client/server applications built for Win32 using the PowerBuilder platform are reaching the end of
The 32-bit DLLs run on the both 32-bit as well as 64-bit operating system or environment. But only the 32-bit mode application can load the 32-bit mode DLLs. By default
Rather unintuitively, you can’t run DOS commands directly by specifying Runtime.getRuntime().exec(dosCommand) in Java. Instead, to execute a DOS command (such as DIR, or RD) from a Java program, you need









