The Latest

DevX

Random Ramblings

elcome to this first issue of 2003. We have some interesting things in this issue for you. The first item to note is our coverage of Visual C++ 2003. YES,

DevX

Customize the Windows Forms DataGrid Control

hen I first met the ASP.NET DataGrid control, it was love at first sight. Together we built several applications, taught dozens of classes, published countless articles and tips; we even

DevX

Become a Cross-platform Wireless UI Expert

he promise of write-once-run-anywhere is arguably more attractive and far more economically advantageous for developers targeting mobile devices; mobile hardware is so diverse that cutting development time by writing one

DevX

Reevaluating the Wireless World

everal months ago I sat down to write an editorial for DevX, which I had tentatively titled “Where’s My Wireless Killer App?” The premise of this editorial was to be,

DevX

Examining Developers’ Artillery

he job ahead of creating new wireless applications and extending traditional desktop applications to mobile devices is somewhat ominous, but the good news, according to Gartner Research Analyst Theresa Lanowitz,

DevX

Inspecting the Ranks

t’s tempting to think that we might be at or near the peak of the curve for wireless device proliferation, but that’s nowhere near the truth. Ken Dulaney, vice president

DevX

Making the Case for Local Database and Synchronization

Editor’s Note: Martyn Mallick is a wireless solutions evangelist at iAnywhere Solutions, a vendor of mobile database solutions. Though the article is not impartial, we have sought it for publication

DevX

Making a Cafeteria Plan

ven as wireless hardware diversifies (see sidebar “Inspecting the Ranks“), there’s a simultaneous convergence of sorts going on, but that convergence is happening inside devices, not outside. “The great thing

DevX

Heed the Siren Call of Wireless Development

here’s no lack of innovation going on in the wireless area and the technology is maturing fast. But still, the vast majority of developers have avoided taking the wireless plunge.

DevX

The DataTable’s Compute method

The DataTable class has a method, Compute, that executes SQL-like functions on the rows locally stored in the DataTable. It supports functions such as COUNT, SUM, MIN, MAX, AVG and

DevX

BackupDatabase – Backing-up a SQL Server database

‘ Backup the specified database.’ Note: requires Imports System.Data.SqlClient” Example:’ Dim connString As String = “server=(local); user id=sa; password=; ‘ Database=master;”‘ Try’ BackupDatabase(connString, “MyTestDB”, “D:MyTestDbBackup.bak”)’ Catch ex As Exception’ MessageBox.Show(ex.Message)’

DevX

RestoreDatabase – Restoring a SQL Server database

‘ Restore the specified database.’ Note: requires Imports System.Data.SqlClient” Example:’ Dim connString As String = “server=(local); user id=sa; password=; ‘ Database=master;”‘ Try’ RestoreDatabase(connString, “MyTestDB”, “D:MyTestDbBackup.bak”)’ Catch ex As Exception’ MessageBox.Show(ex.Message)’

DevX

Calculated columns that refer to relationships

The DataSet is a container of multiple DataTables, and it allows to create parent-child relationships between two tables, as shown below: ‘ create a relationship between the Categories and the

DevX

Choosing the Right swap() Implementation

wap() is one of those tricky algorithms that has several implementations, each of which offers its own advantages and disadvantages. In the following sections I will show why familiarity with

DevX

GetSystemUpTime – Retrieving the system’s up time

‘ Returns a TimeSpan for the interval of time the system has been up.’ EXAMPLE:’ Dim ts As TimeSpan = GetSystemUpTime()’ Console.WriteLine(String.Format(“The system’s up time is: {0} days, {1} ‘

DevX

DecodeBase64 – Decoding a string from base64

‘ Returns the input string decoded from base64Private Function DecodeBase64(ByVal input As String) As String Dim strBytes() As Byte = System.Convert.FromBase64String(input) Return System.Text.Encoding.UTF8.GetString(strBytes)End Function Related Posts Knowing the Sign of

DevX

EncodeBase64 – Encoding a string to base64

‘ Returns the input string encoded to base64Private Function EncodeBase64(ByVal input As String) As String Dim strBytes() As Byte = System.Text.Encoding.UTF8.GetBytes(input) Return System.Convert.ToBase64String(strBytes)End Function Related Posts Red Hat, Samsung Sign

DevX

Set Attributes in a Servlet Request

Usually, you set attributes in a session and the attributes are available through out the session. If you want to limit the scope of an attribute to just a request,