The Latest

DevX - Software Development Resource

The Difference between ‘Count’ and ‘Count(*)’

‘Count’: Counts the number of non-null values.‘Count(*)’: Counts the number of rows in the table, including null values and duplicates. Related Posts Handle WPF Application Exceptions all in one PlaceIs

DevX - Software Development Resource

Using ROWNUM To Retrieve

It is often necessary to get a list of values from multiple rows. Generally, this is done using the cursor, which tends to make the task more complicated.I tried to

DevX - Software Development Resource

Execute an Operating System Command From Within SQL Server

The Related Posts US tech giants buy out AI startupsRepeated Service Disruptions for Google Compute EngineMicrosoft Buys Italian IoT Vendor SolairChina, Germany discuss green transition outcomesContainer Wars: Docker vs. Rkt

DevX - Software Development Resource

Testing New Operations For Null

Beginning Java programmers sometimes test the results of a newoperation for a null. The code for this test looks like this: Integer i = new Integer (400); if (i ==

DevX - Software Development Resource

Threads and ThreadGroups

Every Java thread is a member of a Related Posts Display of Bit Field on UISUSE Releases OpenStack Cloud 5Nasa reviews Starliner’s return readiness progressBroadband Forum brings Fiber closer to

DevX - Software Development Resource

Remove vbs Attachments in Outlook

Home users of Outlook must create a new form and make it the default form for their Inbox. This code removes any attachments with vbs in the filename on incoming

DevX - Software Development Resource

Pass Information from a Servlet to a JSP

You can use this kind of bean to pass information from a servlet to a JSP page through a session variable. For Instance: DataBean myobj = new dataBean();myobj.setData( Related Posts

DevX - Software Development Resource

A Simple Way to Install a Special Font

This tip loads and removes any font. Loaded fonts can be listed by the common dialog control but not in the Windows Fonts folder. The advantage is it lets you

DevX - Software Development Resource

List That Requires Items of the Same Class

The benefits here are that the class can be set at runtime. You don’t need to write a new list for every Class that needs listing. public class HomogenousList extends

DevX - Software Development Resource

Automatically Select the Radio Button

Make the width of the radio option button a lot wider than the caption text it holds. Next, position a textbox between the end of the caption and the actual

DevX - Software Development Resource

Limitations of reinterpret_cast

A reader tried to cast a nonstatic member function of a certain class to void*, as in the following example: class A{public: void func();};void *pmf = reinterpret_cast < void *>

DevX - Software Development Resource

Conditional Compilation

In many cross-platform applications, you have code sections that — depending on the target OS and compiler — need to be either concealed or compiled. For example, code that uses

DevX - Software Development Resource

Pointers to const Member Functions

The const-ness of a member function is an integral part of its type. The following class defines two member functions, f(), g(), which have the same return type and parameter

DevX - Software Development Resource

A VBScript Hit Counter

I created this Hit Counter to keep track of the use of our Company Intranet. On the SQL Server (in our case MSSQL 7), you will need to have a

DevX - Software Development Resource

Dynamic Constants

In applications that cannot be recompiled (e.g., apps that are installed on a customer’s machine as binaries only), values of constants may change occasionally. For example, exchange rates and the

DevX - Software Development Resource

Leading Blanks in Input

By default, std::cin ignores leading whitespaces when it reads input from the keyboard or file. For example, if you execute the following statement: char name[10];cin>>name; and the user enters the

DevX - Software Development Resource

Code Inserter ToolWindow Addin

If you ever wanted to enhance the VB6 IDE without writing your own add-in program, or doing any programming, then this addin is for you. It creates a ToolWindow with

DevX - Software Development Resource

IsFileInCache – Check whether a file is in the Internet cache

Private Declare Function GetUrlCacheEntryInfo Lib “wininet.dll” Alias _ “GetUrlCacheEntryInfoA” (ByVal sUrlName As String, lpCacheEntryInfo As Any, _ lpdwCacheEntryInfoBufferSize As Long) As Long’ Check whether the file identified by the URL

DevX - Software Development Resource

IsConnectedToInternet – Check whether there is an Internet connection

Private Declare Function InternetGetConnectedState Lib “wininet.dll” (ByRef _ lpSFlags As Long, ByVal dwReserved As Long) As LongConst INTERNET_CONNECTION_MODEM = 1Const INTERNET_CONNECTION_LAN = 2Const INTERNET_CONNECTION_PROXY = 4Const INTERNET_CONNECTION_MODEM_BUSY = 8′ return

DevX - Software Development Resource

Send All Your System Messages To File

Often, while developing a system you want to debug it using System.out.println or System.err.println. When development is over you would like to send all those messages to file. The easiest

DevX - Software Development Resource

Use Assertions For Detecting Errors

The assert macro can be used to detect errors as soon as they occur. This macro is defined in the include file , and is used that way: assert (expression)

DevX - Software Development Resource

A Smart Way to Determine Whether a Year is a Leap Year

Use the following code: Public Function IsLeapYear(iYearToCheck As Integer) As BooleanIsLeapYear=IsDate(Format( Related Posts Schools across Lancashire hit by ransomwareAI: a double-edged sword in cybersecuritySurvey: Developer Adoption of Windows 10 Climbs