A Brief Rundown of Changes and Additions in Python 3.1
he previous articles in this series (see the Related Resources section in the left column) covered the releases of Python 3.0 and Python 2.6. Despite the relative youth of these
he previous articles in this series (see the Related Resources section in the left column) covered the releases of Python 3.0 and Python 2.6. Despite the relative youth of these
s the Microsoft .NET platform has matured, desktop application technologies have reached a new plateau. Decades-old client/server applications built for Win32 using the PowerBuilder platform are reaching the end of
The 32-bit DLLs run on the both 32-bit as well as 64-bit operating system or environment. But only the 32-bit mode application can load the 32-bit mode DLLs. By default
Rather unintuitively, you can’t run DOS commands directly by specifying Runtime.getRuntime().exec(dosCommand) in Java. Instead, to execute a DOS command (such as DIR, or RD) from a Java program, you need
The deployment element in machine.config defines settings used to support deployment. The retail attribute can be set only at the machine level, not at the application level: You use it
To quickly create XML documentation for your .NET classes during every build, open the project Properties, click the Build tab, scroll down to the Output section, and check the “XML
Copying and pasting several sections of a file to another location is a common operation that usually ends up wasting a lot of time. But rather than copying each section
data access object (DAO) provides an abstract interface to a database—giving developers access to common database operations without them having to know the database schema details—essentially, data access object separate
ompression has become an integral design step for almost any modern programming design, because serialized data compression is a well-supported and logical step toward significant performance gains, and reducing the
he first article in this series on C#’s new features looked at the language’s new support for dynamic lookup and for named and optional parameters in C#. This article and
To avoid problems, you should never compare a string variable with a string constant, because string variables may have a null value, in which case your code will throw a
In modern versions of Windows (XP, Vista, and beyond), the API call SetForegroundWindow() will bring the specified window to the foreground only if it’s owned by the calling thread. The
The following code shows how you can use the WebClient class to obtain data from a URL and save it to a file: System.Net.WebClient client = new System.Net.WebClient();byte [] bytedata
To send email over SMTP asynchronously, create a SmtpClient, call its SendAsync method, and add a SendCompleted event handler to your code: //Call the SmtpClient SendAsync method SmtpClient client =
ecently, there has been a revival of interest in domain-specific languages (DSLs). Not only are these languages able to provide a higher level of abstraction over a specific domain (and
he world of enterprise Java has an overwhelming array of choices for remoting: RMI, XML/SOAP, REST/JSON, etc. Each comes with its own industry-acknowledged strengths and weaknesses, such as complex setup
he RDF data model gives you a way to add attribute name/value pairs to any resource that you can reference with a URI. This makes it easy to create metadata
indows Presentation Framework (WPF) gets a lot of mileage out of being layered on top of DirectX, including fast rendering, multimedia support, audio, video, and more. One of the features
eflection, dynamic proxies, and annotations are far from new capabilities in Java, having been introduced in JDK 1.1, 1.3, and 1.5, respectively. Lately, though, I’ve witnessed a spectacular combination of
Suppose you have a CSS style defined as class=”myClass” as shown below: Now suppose you want to know exactly how the myClass style definition is defined. Just place your cursor
Error: Undeclared Identifier Example error message: doy.cpp: In function ‘int main()’: doy.cpp:25: ‘DayOfYear’ undeclared (first use this function) doy.cpp:25: (Each undeclared identifier is reported only once for each function it
You can use the following server-side code to get the name of the currently executing ASP.NET page (e.g. default.aspx, hello.aspx). string sPagePath = System.Web.HttpContext.Current.Request.Url.AbsolutePath; System.IO.FileInfo oFileInfo = new System.IO.FileInfo(sPagePath); string
In XAML, you can hook an application-level event that will fire whenever an unhandled error occurs anywhere in your application by overriding the OnStartup event in the App.xaml.cs file. Here’s
The HttpWebRequest object makes it easy to check whether a web site is available or a URL is valid. Its HttpStatusCode property returns the status code from the request, which
In some cases, the JavaScript triple equals sign operator can simplify variable type and value checking. The operator tests both type and value for equivalency. Here’s a simple example HTML
ugmented Reality (AR) seems to be on everyone’s radar. For the two of you who haven’t watched a YouTube video about it: Augmented Reality is the ability to overlay location
very declaration of an enum type must be a complete definition containing a full list of its enumerators. However, in some use cases declaring an enumeration without providing the enumerators
ne of the first things you will learn about when you begin programming iPhone projects is view controllers. Beginners often get intimidated by the amount of work they need to
espite having a good understanding of the term null, most developers still fail to adequately accommodate null values in their databases. Accommodating null values appropriately is an important part of
Visual Studio makes it simple to add an installer class to your Windows service. Here are the steps: Open the “Solution Explorer” (press Ctrl-Alt-L, or go to the “View” menu