Wrox Articles

CSS and JavaScript Bundling and Minification in ASP.NET 4.5

ASP.NET 4.5 includes a new feature to minify and bundle CSS and JavaScript within your web application. If you use any of the default project templates in Visual Studio 2012, this new feature is turned on. What Is Bundling and Minification? Most static content files, such as CSS and JavaScript, contain a lot of whitespace [...]

Tags:

Sending SMS Messages Programmatically in Your Android Application

Recipe 5.2 Sending SMS Messages Programmatically in Your Android Application Android Versions Level 4 and above Permissions android.permission.SEND_SMS Source Code to Download from Wrox.com SendSMS.zip In some situations you might want to programmatically send SMS messages in your Android application. For example, your application might monitor the current location of a user and automatically send [...]

Tags:

4 JavaScript Minifiers Compared

  Minification is the act of stripping out unnecessary characters from code to reduce the size, and a minifier is the tool that does it. Most often, the term is applied to JavaScript although the technique can also be used on CSS and (to some extent) HTML. For the web master, the aim of minification [...]

Tags:

Browser Capability Detection with JavaScript

Although browser vendors have made a concerted effort to implement common interfaces, the fact remains that each browser presents its own capabilities and flaws. Browsers that are available cross-platform often have different issues, even though they are technically the same version. These differences force web developers to either design for the lowest common denominator or, [...]

Tags:

8 Steps to Solving Coding Problems in Programming Interviews

  It doesn’t matter what language the job requires when you are on a programming interview. Whether you’ll be working in Java, C#, C++, ASP.NET, Python, or any other language, when you are on the interview and you are asked to write code to solve an interview question, the first step is the same: when [...]

Tags:

Creating a Basic Windows 8 Application

Windows 8 Style Applications Before you learn about the principles and characteristics of the new Windows 8 style applications, you must first turn back the clock to understand what brought the Windows 8 design language to life. So, let’s look into the history and talk about retro-style applications. A long time ago, when people started [...]

Tags:

Event-Based Asynchronous Pattern in .NET 4.5 and C# 2012

The method OnAsyncEventPattern makes use of the event-based asynchronous pattern. This pattern is implemented by the WebClient class and thus it can be directly used. This pattern defines a method with the suffix "Async". Therefore, for example, for the synchronous method DownloadString, the WebClient class offers the asynchronous variant DownloadStringAsync. Instead of defining a delegate [...]

Tags:

How Node and Javascript Make Writing Asynchronous Applications Easier

Ryan Dahl, the author of Node, began his project building a C platform, but maintaining the context between function calls was too complicated and led to complex code. He then turned to Lua, but Lua already had several blocking I/O libraries. This mix of blocking and non-blocking could confuse developers and prevent many of them [...]

Tags:

Writing Motion Detecting Apps in Flash for Android and iOS

Android and iOS devices have built-in motion detectors that enable programmers to capture the motion that occurs on a three-dimensional axis. This capability enables you to detect all sorts of user motions — tilting the phone, shaking back and forth, and rotating it in a circular fashion. This chapter introduces you to the Accelerometer and [...]

Tags:

Screen Layout: Emulating Apple Design in iPhone Safari Web Pages

Screen Layout: Emulating Apple Design By the time you have studied and evaluated the UI design of the built-in applications, you can begin to determine what parallels may exist with the type of application in which you are building. For applications that need to use a navigation list design, download one of the frameworks that [...]

Tags: