Archive: 2012

Reading Binary Tile Map Data on Windows Phone

Scott Walker · Sep 28, 2012

When building a tile‑mapping engine for Windows Phone, one of the first challenges is reading binary data from the device. Unlike full .NET Framework applications, Windows Phone does not support the System.Runtime.Serialization.Formatters.Binary namespace, which means traditional binary serialization is not available.

πŸ’¬ 0 C# Windows Phone

Using jQuery Templates to Search Blog Posts

Scott Walker · Sep 13, 2012

Before modern client-side frameworks became the norm, jQuery Templates offered a simple way to render dynamic HTML using JSON data returned from the server. Although the plugin is now deprecated, many legacy applications still rely on it for lightweight templating.

πŸ’¬ 0 Jquery Templates

Loading and Parsing Tweets from a Twitter Feed (Legacy XML API)

Scott Walker · Mar 22, 2012

Before Twitter retired its XML timeline endpoints, applications could pull tweets directly using a simple URL and parse the results. The LoadTweets() function below demonstrates how legacy ASP.NET applications retrieved tweets, converted URLs into clickable links, and displayed them on a page.

πŸ’¬ 0 Twitter JavaScript XML

Performing LIKE '%query%' Searches in LINQ

Scott Walker · Mar 16, 2012

When you need SQL-style LIKE '%keyword%' behavior in LINQ to SQL or Entity Framework, the simplest approach is to use Contains(). It automatically translates to a SQL LIKE query.

πŸ’¬ 0 Linq SQL