
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.
Logging is a top priority for any project. Current versions of most popular databases have excellent logging capabilities, but it’s not always easy to get the logged data in a
Simply add these two lines of code to the Form’s Load event: this.Location = Screen.PrimaryScreen.WorkingArea.Location;this.Size = Screen.PrimaryScreen.WorkingArea.Size;
There are a couple of ways to track JFrame resizing. This method uses a while(true) loop, setting Thread.sleep to wait for some specified period of time. However, you could just
You can use the .NET WebBrowser control to take thumbnails or full-size screenshots of loaded web pages, and then use the Bitmap class to save them locally. For example, to
Sometimes you need to know which is the last row or column in an Excel sheet that contains actual data. To do that, use the following code: ‘ Find last
Recently, I learned a valuable lesson in modern programming efficiency: Problem-solving abilities often take a backseat to information retrieval and analysis. I was working on an application that saved images
o test a class, a developer must make sure that the class’s dependencies won’t interfere with its unit tests. Enter mocks and stubs. Unit tests check on the behavior of
ny discussion of “best practices” must first define the term. A best practice is: Something that works. Something that works well. Something that works well on a repetitive basis. Something
hen implementing a sequence of elements that needs to grow and shrink dynamically, std::vector is a fine choice. It provides the convenience of a standard container class, including automatic memory
erl is a script programming language that has a syntax similar to C. It includes a number of popular Unix facilities such as SED, awk, and tr. Perl comes pre-installed
One of the categories in the 2008 contest was the “Technology Showcase”. Developers were invited to submit applications using Flash Lite, Java, Python, open source or other technologies supported by
uppose you have a constantly growing database that currently contains 75 tables. Like any other database, a significant percentage of the tables carry metadata (i.e., the kind of data that
ohsuke Kawaguchi, a staff engineer at Sun Microsystems, released Hudson in February of 2005. Since that time, Java developers have adopted Hudson as their continuous integration server in greater and
This code snippet creates a Validator that you can use to validate an XML document represented as a DOMSource. //create a DocumentBuilderFactory objectDBF=DocumentBuilderFactory.newInstance(); //activating namespaces supportDBF.setNamespaceAware(true); //create a DocumentBuilder objectDB=DBF.newDocumentBuilder();
When a WPF control gains the focus, it displays a dashed box around itself to indicate that it has the focus. In some cases, the focus rectangle can detract from
This example assumes the main page from which users will pop up the calendar is named Calender.aspx. The following procedure shows how to create the popup calendar: In Calendar.aspx, add
The .NET Framework includes a SoundPlayer class (in System.Media) that can play sound files. However, this class suffers from two crippling limitations: it can play only PCM-encoded WAV files, and
Even though this is a reserved word in JavaScript, the following code fails… with(parent){…this.window.event…} …because it can’t back out of parent. The workaround is to assign the window object to
hange is the one constant you can depend on: Requirements change, environments change, and processes change. Together, these factors ensure that your WCF services will change as well. Fortunately, you
hen creating a connection to foreign data, the .NET configuration wizard is a great place to start. Not only will it create a point-and-click connection for you, but it also
he Document Object Model (DOM) is a W3C standard based on a set of interfaces that can be used to represent an XML (or HTML) document as a tree of
The new Sun boss put the OpenOffice and JavaFX groups on notice during the JavaOne opening keynote today: Produce some JavaFX libraries for the OpenOffice suite and do it quickly.
You can create a list of a specific type at run time by passing the type to the MakeGenericType method, for example: Type t = Type.GetType(“System.Int32”);IList tList= (IList)Activator.CreateInstance( (typeof(List<>).MakeGenericType(t))); tList.GetType().FullName
The following code gets all the properties of an Employee class using Reflection. Here’s the Employee class code: class Employee{ private int m_age; private string m_name; public int Age {
The following code snippet is J2SE 6.0 code that uses the setRequestProperty method to send cookies to the server. You can find more information about cookies and the complete application
It is normal practice for developers to include “TODO” comments for fellow developers and themselves. Developers also spend a lot of time searching for them later. In Visual Studio (VS),
n an application built with object-oriented techniques, objects are the bricks. You construct little pieces of code encapsulated in these bricks. To build bigger structures, you need to hold these
essage-oriented middleware (MOM) decouples applications by allowing them to communicate using one of two messaging models: point-to-point messaging and publish/subscribe messaging. The models differ in fundamental ways, but neither requires









