
Write to Multiple Targets Simultaneously
This is helpful, for instance, if you’re error logging to the file and body of an e-mail. Create a new subclass of OutputStream called TeeOutputStream like this: package be.marble.io;import java.io.*;public

This is helpful, for instance, if you’re error logging to the file and body of an e-mail. Create a new subclass of OutputStream called TeeOutputStream like this: package be.marble.io;import java.io.*;public

You probably know that integers are represented in binary–in base 2. This is pretty straightforward for positive numbers, but it means you must choose an encoding for representing negatives. The

‘ve had a long and happy history using the MetroWerks CodeWarrior IDEs for both Mac and Windows development; they’ve helped me throughout college for those programming projects occasionally thrown at

avaOne alumni know that if you want to get a true geek’s-eye glimpse of the technological future, try to get close to James Gosling. This year Gosling, who is a

s programming languages have evolved over the years, the challenges in optimizing and fine-tuning applications have changed. I began programming 20 years ago and quickly adopted assembler language for its

VB6 does not natively support free threading, but with this ActiveX library you can finally create multiple threads and make them communicate, write delegate functions (similarly to VB.NET) and use

‘ A reusable routine that displays error information’ Note: requires Imports System.ReflectionSub DisplayExceptionInfo(ByVal e As Exception) ‘ Display the error message. Console.WriteLine(e.Message) Dim st As New StackTrace(e, True) Dim i

‘ copy or append text to the clipboardSub ClipboardSetText(ByVal text As String) ClipboardSetText(text, False)End SubSub ClipboardSetText(ByVal text As String, ByVal append As Boolean) If append Then text = ClipboardGetText() &

‘ Check whether a specified file is a .NET assemblyFunction IsAssembly(ByVal filename As String) As Boolean Try Dim asm As [Assembly] = [Assembly].LoadFrom(filename) ‘ if no exception is thrown, this

‘ Get the text in the clipboardFunction ClipboardGetText() As String Return CStr(Clipboard.GetDataObject().GetData(DataFormats.Text))End Function Related Posts Apple watchOS 11 discontinues support for three modelsHow AI is Shaping Digital TransformationOracle Unveils Project

Shared Function _ LoadLibrary(ByVal path As String) As IntegerEnd Function Shared Function _ GetProcAddress(ByVal hModule As Integer, ByVal procName As String) As _ IntegerEnd Function Shared Sub FreeLibrary _ (ByVal

‘ If the first argument is Nothing or a null string return the 2nd argumentFunction IfNull(ByVal value As String, ByVal defaultValue As Object) As String If Not value Is Nothing

an Francisco, Calif.?Sun says it plans to more than triple its developer base in the next few years. The plan is to target developers whose skill levels and development needs

nlike most other programming languages, C++ by default doesn’t initialize automatic variables. Consequently, uninitialized auto variables and aggregates have an indeterminate value. Due to insufficient familiarity with the correct syntax

San Francisco?Java has a new look and?it would seem?a new focus. On the first day of the 2003 JavaOne developer conference Tuesday, Sun Microsystems unveiled an updated Java logo and

etting database data into and out of business objects has always been a problem; however, now that SQL Server 2000 supports XML, you can use interesting techniques that capitalize on

anta Clara, Calif.?Among the last words spoken at a vendor panel titled Linux and Security Standards here at Jupitermedia’s Enterprise Linux Forum Conference & Expo (June 4-6, 2003) may have

enerics is one of the hottest features of Sun Microsystems’s upcoming JDK 1.5 (Tiger) release. Programmers and researchers have been clamoring for a feature like this for years, and an

This component is intended to take valid Visual Basic source code an convert it to properly colorized HTML with procedure seperators. The input can either be a file of any

‘ Evaluate the number of business days between two dates’ Example: Debug.WriteLine(BusinessDateDiff(#4/9/2003#, #4/25/2003#)) ‘ => 12Function BusinessDateDiff(ByVal startDate As Date, ByVal endDate As Date, _ Optional ByVal saturdayIsHoliday As Boolean

‘ Evaluate the Easter date for a given year’ Example: MessageBox.Show(EasterDate(2003).ToLongDateString())Function EasterDate(ByVal year As Integer) As DateTime Dim g, c, h, i, j, l, month, day As Integer g =

‘ Add or subtract a number of business days from a date’ Example: Debug.WriteLine(BusinessDateAdd(#4/9/2003#, 5)) ‘ => 4/16/2003Function BusinessDateAdd(ByVal startDate As Date, ByVal days As Integer, _ Optional ByVal saturdayIsHoliday

‘ Evaluate the age of a person, given his/her birth date’ Example: Debug.WriteLine(Age(#9/28/1980#)) ‘ => 22Function Age(ByVal birthDate As Date, Optional ByVal currentDate As Date = #1/1/ _ 1900#, Optional

rom the get-go, Microsoft’s huge (10,000+ attendees) Tech?Ed conference in Dallas has been primarily about acting defensively?turf protection rather than turf expansion: protecting networks from intruders, protecting users from spam

n my last article, I explained how to use the XML Data Source Object to extract content from an external XML file or XML data embedded in the HTML file

t is sometimes challenging to create and organize XML documents. This is even more true if the document content needs to be presented in several different languages. It creates unwanted

XML is not all it could be. Despite all its promise for free data exchange among disparate applications, Web application developers still contend with XML’s shortcomings: it’s too verbose, it’s

or the past several years, browser development for Windows has been more or less stalled. Sure, there have been under-the-hood improvements; but the basic browsing feature set has remained nearly

EA revolutionized the Java Web services world with WebLogic Workshop 7.x, which abstracted all the infrastructure details of the Web service and allowed the developer to simply develop his or

This little bit of code is great for doing stuff like “COPYRIGHT 1998?(present year).” It saves Webmasters from having to cull through their source code looking for the year (every