The Latest

DevX

Custom Web Controls Demystified, Part 2

ast issue I gave you a ‘hit-the-ground-running’ introduction to custom Web control development and showed you how to build a rendered control and an inherited control. In this issue you’ll

DevX

Creating High-Performance Animated Controls

learned very early in my career that the sexiness of an application can have as much effect on its salability as its functionality. I’ve seen a non-technical boss take one

DevX

Take the Pain Out of Deployments with ClickOnce

ne of the most challenging tasks faced by Windows application developers is the deployment of their applications on the client machines. Once an application is deployed, any changes or maintenance

DevX

Retrieving a Domain Name

This VB function returns the DNS domain name (westcoast.mycorp.com) from the passed LDAP distinguishedName (CN=Administrator,DN=Users,DC=westcoast,DC=mycorp,DC=com). Function DN2DomainName(ByVal strDN As String) On Error Resume Next Dim strDomainName As String Dim strDNParts()

DevX

Implementing the GetFreePhysicalMemory API in Linux

Because everything in Linux is composed of files, you can get any required information from the /proc/meminfo file. Here’s the code: int getFreePhysicalMemory(){ ifstream meminfo(“/proc/meminfo”); if ( ! meminfo.is_open() )

DevX

Overloading a Constructor or Method

Overloading a constructor or a method so it takes an extra argument based upon some specific requirement can result in duplicate code. For instance, a project that contains a lot

DevX

Retrieving Custom Objects Added to the Clipboard

You may have found that sometimes, copying a custom .NET object to the clipboard doesn’t work. That’s because retrieving a custom object from the clipboard returns nothing if the object

DevX

The Less SQL Server Sorts, the Faster It Responds

ometimes we developers put unnecessary burden on the server, having it perform too many sorts or sort more data than necessary. By applying the techniques described in the following sections

DevX

In the Eolas Patent Lawsuit, Users Lose

bout two years ago, I wrote an editorial explaining (and excoriating) the Eolas lawsuit?or more pointedly, the patent itself. Given Microsoft’s recent announcement that it’s planning to change Internet Explorer

DevX

A Very Brief Peek at LINQ

t PDC, Microsoft announced the Language Integrated Query framework (the LINQ Project). The LINQ Project is a set of language extensions to C# and Visual Basic and a unified programming

DevX

Use sun.misc Classes for Base64 Image Conversion

The following code demonstrates how to use sun.misc classes for Base64 image conversion: import java.io.*;import java.awt.*;import java.awt.event.*;class Base64Example extends Frame implements ActionListener{Image IMG=null; //image1Image IMGdecode=null; //image2-resultTextArea TA=new TextArea(); //printing the

DevX

Implement GetTickCount in Linux

To implement the GetTickCount API when porting code from Windows to Linux, use the following code: long getTickCount(){ tms tm; return times(&tm);} Related Posts Elon Musk endorses Nelson Peltz for

DevX

How to Hide a ContextMenu

To display the shortcut menu, you call ContextMenu.Show() method. Typically, you call this method if the right mouse button on a control or area of the form is clicked. The

DevX

Handling Null Values in Oracle

Oftentimes, a query will return null values for some of the columns in a query. However, to display “null” as the value in the generated report isn’t a very effective

DevX

Analyze Your IIS6 Web Logs with AWStats

eb server logs are a powerful resource for extracting information about your Web sites and applications. When logging is enabled, Web servers log information about each request. By analyzing these

DevX

Statistics Made Easier with STL

rogrammers developing financial, scientific, and numerical analysis applications often need to reinvent the wheel, implementing statistical functions for calculate mean, median, percentiles, and similar statistical data. This solution will show

DevX

.Finalize(): What Does That Beep Mean?

pparently, only a fraction of the people who live in Florida actually live in Florida. At least, that’s what the tax collector thinks, because if you actually do suffer through