Determine Object Size Without Using the sizeof() Operator
The sizeof() operator gives you the number of bytes required for storing an object. It also operates on a data type or a value. Another way of determining the size
The sizeof() operator gives you the number of bytes required for storing an object. It also operates on a data type or a value. Another way of determining the size
icrosoft recently unveiled the Windows Mobile 2003 Second Edition, which supports different screen orientations and higher resolution display for mobile devices. The new screen orientation capability means you can view
hen was the last time your boss dropped in to ask you for an update about your current project? For most people, it might happen once a week, but for
Let’s say your XML looks like this: default.aspx?ID=13 Now, you need to transform this tag via XSL to the HTML tag: . The following XSL will do the trick: new
first got interested in running PHP using the Windows operating system during a business trip to Toronto. I was staying with my cousin who, like many people, uses Windows exclusively.
f you need a way to search through various documents with differing formats (PDF, Word documents, PowerPoint presentations, Excel spreadsheets)?including Web content?use Oracle Text. Oracle Text has a powerful text-search
s developers, we often want to jump right in and start coding; it is our passion, and often our most comfortable way of looking at the projects we deal with.
ML is the de-facto language of business transactions. It enables structuring data. And the 2.0 version of the .NET framework, heretofore known by its codename, Whidbey, will finally enable you
here are times when database data manipulation requires extracting DDL (Data Definition Language) commands for various objects, such as database tables, indexes, constraints, triggers, etc. Recently I was charged with
s a developer, one of the most important tools at your disposal is your IDE. As a Java developer, there are several IDEs available?both commercial and open source?that are each
n the first article in this series, you saw how the Universal Description, Discovery, and Integration (UDDI) specification and protocol work together to define messages, application programming interfaces (APIs), and
If a compiler supports both and , the headers are subtly different.In particular, if you include , you get the elements of the iostream library enclosedwithin the namespace std. If
The select statement below takes the name “george” and finds how many occurrences of “ge” appear within it. select (length(‘george’) – length (replace(‘george’,’ge’,”))) / length(‘ge’) countfrom dual/ COUNT———- 2 Using
This code demonstrates how to look up a DataSource object in your Web server using JNDI Lookup. import javax.sql.DataSource;import java.util.Hashtable;import javax.naming.InitialContext;public void findDatasource() { // Initializing DataSource object DataSource dataSource
When you’re dealing with huge Ant files, it can be difficult to follow targets and their dependencies.Luckily, there’s a tool called Vizant that can generate a graph of your Ant
Suppose you have objects of type MyClass. Further assume that you have a collection (named myCollection) containing objects of type MyClass. To sort this collection, follow these steps: MyClass must
For any script that takes more than just a few seconds to run, it’s always a good idea to track the runtime itself. This is especially useful in the development
hat’s Power Python, you ask? It’s the effective use of Python language features to get a lot of work done in fewer lines of code. The lambda, reduce, filter, map,
any SQL Server developers eagerly anticipate the long-awaited release of SQL Server 2005, formerly code-named “Yukon.” Major goals for Business Intelligence (BI) in the 2005 release are better integration of
ast month, Computer Research Associates released their annual Taulbee Survey (of North America’s computer science programs. According to their numbers, enrollment declined nearly 20 percent between 2002 and 2003. Predictably,
This tip shows how binding Windows Forms controls to each other can reduce the code and logic needed to synchronize color changes between controls in a Windows Form. This technique
Today, most browsers are designed to handle the known mime types in a very user-friendly manner. For example, if a server program writes an image/jpeg as a mime type, the
This small snippet shows how to use a XPath on a DataSet. Here are the used classes: DataRowDataSetXmlDataDocumentXmlNodeListXmlNode Here’s the XML file: One Three Four Two Finally, here’s the code:
icrosoft Windows allows you to define various password policy rules. Specifically, it allows you to enable the “Password must meet complexity requirements” setting using the Policy Editor. This validates user
gile development is the new paradigm! (Are you rolling your eyes yet?) Yes, “paradigm” is an overused word but hype aside, agile development does offer some interesting best practices that
n our previous article “Put a 24-hour Lockdown on Your .NET UIs,” we discussed various ways to augment user interfaces to interpose underlying business logic and data engine security constraints.
he C++ preprocessor may seem like a prehistoric relic that has no place in state-of-the-art C++ projects, but this isn’t really so. Although every beginner nowadays knows how to use
I got a request from a developer the other day to produce a SQL statement with the resultset flopped. In other words, he wanted the rows to appear as columns
Often, in code, you find yourself constraining values doing something like: if(val < MIN) val = MIN;else if(val > MAX) val = MAX; This simple template function will do that
To find out if the correct version of Java .exe is installed in a system, type the following at the command line: java -fullversion Related Posts Trigger a GET Request