Web and Windows Phone 7 by Ben Cull

Author Archive

Push Notifications in Windows Phone 7 – #2 Code on the Server

Posted on January 19th, 2011 by Benjii

This is the second part in the mini series that is taking us through the steps of setting up push notifications for your windows phone 7 app. Posts in the series: Code on the device – This will handle everything you need to put into your wp7 app Code on the server – This will [...]

Torrential – uTorrent client for Windows Phone 7 in the Marketplace!

Posted on November 15th, 2010 by Benjii

Torrential has finally hit the marketplace and promises to be the best torrent app for windows phone 7 yet! Not only can you manage your torrents on the go, but you can also search Isohunt directly from within the app, and even receive push notifications when your downloads are complete without installing any extra software. [...]

Building Torrential – A Windows Phone 7 Story

Posted on November 11th, 2010 by Benjii

After a frantic few weeks and very little sleep my newest creation has finally been submitted to the Windows Phone 7 marketplace. Some of you may remember the exciting day when I declared myself to be an Android Developer, however since then I’ve been left with only a shell of an application and not a [...]

SplitQuoteSafe – A SQL function for splitting a string

Posted on September 16th, 2010 by Benjii

If you need to split a string using a delimiter in SQL, but want certain sections wrapped in quotes to ignore the delimiter, fear not, as I have a quick and easy answer. Here’s how you use it: In SQL: SELECT * FROM dbo.SplitQuoteSafe(‘"Test","Stuff, that, has commas","ok",24.45,,yes’, ‘,’) In Linq: var words = from w [...]

jQax jQuery plugin – The jQuery plugin version of the jQax ajax wrapper

Posted on August 18th, 2010 by Benjii

Upgraded by popular demand, the jQax ajax wrapper has been turned into a full fledged jQuery plugin, conforming to the plugin authoring guidelines and compatible with compression. Rain sweet code down on me: Below is the full code as of writing, if you’re interested in helping out, the source can also be found here on [...]

Endless Scrolling ListView in Android

Posted on August 9th, 2010 by Benjii

Implementing an endless scroller in Android was not actually that difficult. Here’s a quick code snippet and explanation to get you on your way. Just give me the code! Well here you go: public class EndlessScrollListener implements OnScrollListener { private int visibleThreshold = 5; private int currentPage = 0; private int previousTotal = 0; private [...]

Simple MVC 2 Pager Control – PagerHtmlHelper

Posted on July 26th, 2010 by Benjii

I’ve recently discovered a great new tool for MVC 2 that lets you create generic modular controls that can be shared with and used by anyone. So I built a paging control. Now you get a free Pager control AND learn how to build your own html helper. Amazing. If you just want the pager [...]