Determine Prime Numbers with XQuery
Did you know you can determine if a number is prime by calling an XQuery query? Here’s the code: <prime_numbers> { for $a in (1 to 50) return( if(not(some $counter
Did you know you can determine if a number is prime by calling an XQuery query? Here’s the code: <prime_numbers> { for $a in (1 to 50) return( if(not(some $counter
The AWTEventListener class’ sole purpose is to view events. All you have to do is to implement the eventDispatched method. The following application demonstrates how: import java.awt.*;import java.awt.event.*;public class EventTest
While converting to Excel 2007, I had to update the column-number-to-string code in my program to handle columns of 703 and above (AAA). I found Yassine Moe’s code and simplified
Checking for Daylight Savings Time is one of the most common date checks developers perform. .NET provides an easy method to do this. In .NET 1.1, use the Timezone class’
To call an SAP function module from a Java application, you first need SAP JCo (Java Connector); you can download it from SAP’s site, though you need an account to
Use the following code to insert an XML Schema into an XQuery query. The following code assumes that the XML Schema is: file:///C://Data_Local//xml//docs//AirWings_xslt_xmlschema.xsd and the XML file is: file:///C://Data_Local//xml//docs//AirWings_xpath_xslt.xml Import
The form class’ ShowDialog method functions differently than its Show method. Here’s how: ShowDialog‘s returned value can be used to determine how the user closed the form (using the DialogResult
Excel spreadsheets can grow to a very large number of rows. After the spreadsheet grows beyond a single page, the column headings scroll off the page, making it very difficult
If one class is inheriting from another class, a quick, easy way to find the available overrides is through .NET’s IntelliSense. Simply type “override” in a class and .NET will