random.Next()'s Image
More about this blog
Latest Post
19 Nov 2009
Total Posts
17
Readers
374
Liked
0
Disliked
0
Views-Per-Post
22.00
vote up
0
vote down

Simple Silverlight Chat Client Using Sockets

This code uses the excellent SocketsLight library to simplify socket connections in Silverlight.  I've put together a simple example of a chat server and client where you can send a message back and forth immediately. We plan to extend this idea to
 
Caleb
Nov 19 2009 11:54 AM
vote up
0
vote down

jQuery Ajax Tooltip

Update: I've updated the JavaScript to use the hoverIntent plugin to avoid unnecessary ajax calls when moving the mouse quickly over a list of items. We're taking a bit of a break from WPF right now, so I'm back working on our ASP.NET project. Our
 
Caleb
tags: jquery
Nov 05 2009 02:22 AM
vote up
0
vote down

To Return Early or Not From a Method?

I remember always being told to not return early from a method.  However, I think it makes sense in some cases when you would otherwise have a set of nested "if" statements. Take this example I ran across while working in our production system:
 
Caleb
Sep 02 2009 12:11 AM
vote up
0
vote down

Mutually Exclusive HTML Select Elements Using jQuery

This jQuery code snippet shows how to make a number of related html select elements mutually exclusive.  That is, all of the select elements have the same list of options, but you should only be allowed to choose a given option once. In this
 
Caleb
Aug 14 2009 11:51 PM
vote up
0
vote down

Generic Query String Helper for ASP.NET

Query strings are something we deal with constantly.  I've come up with a helper that uses .NET Generics to handle a lot of common cases that we usually write unnecessary code for. Example Usage: // Required. Will throw exceptions if the query
 
Caleb
tags: asp.net
Aug 07 2009 08:28 PM
vote up
0
vote down

Iterating a Complex DataList Hierarchy With Lambda Expressions

Update: I've added a new blog post on how to do the same thing with a custom iterator using the yield keyword. This post demonstrates one way to use lambda expressions as part of a strategy to avoid code duplication when iterating over complex control
 
Caleb
tags: asp.net
Jul 13 2009 07:10 PM
vote up
0
vote down

Iterating a Complex DataList Hierarchy With Custom Iterators

This is a follow-up post to Iterating a Complex DataList Hierarchy With Lambda Expressions, which showed one way to avoid code duplication when iterating a complex control hierarchy.  This shows how to achieve roughly the same thing by taking
 
Caleb
Jul 13 2009 07:08 PM
vote up
0
vote down

Switching ViewControllers on Orientation Change

Have you ever wondered how Apple achieves the smooth transition to Coverflow from the iPod app on the iPhone?  Today I'll go over how you can accomplish the same feature with very little code. First, there needs to be two view controllers with
 
Jesse
Jun 23 2009 06:27 PM
vote up
0
vote down

WWDC 2009

Though things have been pretty slow here on the blog, you can expect more frequent posts after next week. We will be at Apple's WWDC, learning new and exciting ways to develop apps on the iPhone and Mac OS X. We will hopefully be putting up some iPhone
 
Jesse
Jun 05 2009 07:16 PM
vote up
0
vote down

Using NHibernate MultiCriteria and LINQ

I'm really impressed with the NHibernate.Linq add-on that's part of the NHContrib project.  It's considered alpha software and most likely will be replaced with the work Steve is doing on NHibernate to create a more fully featured LINQ
 
Caleb
May 29 2009 08:02 PM
vote up
0
vote down

Creating a badge icon plugin with jQuery

updated - I fixed a bug in the plugin when using it with no options If you are familiar with Apple products, you've probably seen what are known as badges. These small icons usually represent a change in the application, sometimes with details on what
 
Jesse
tags: jquery
Feb 27 2009 10:00 PM
vote up
0
vote down

jQuery live() and plugins

Problem jQuery .live() is a great solution to keep your jQuery code working in heavy ajax situations where you might be adding/recreating content that needs to have jQuery applied to it (as I mentioned in my previous post). The problem is that .live()
 
Caleb
tags: jquery
Feb 22 2009 10:05 AM
vote up
0
vote down

Selecting a WPF ComboBoxItem with the Tab Key

The WPF ComboBox doesn't work out of the box as I expected when IsEditable=False. This is how I expect it to work: Expand the ComboBox Use the up/down arrow keys to find the item you want to select. Press the "tab" key on the current item to
 
Caleb
tags: wpf
Jan 10 2009 02:21 AM
vote up
0
vote down

ComboBox Bug

Today we found a small, but annoying, bug in the WPF ComboBox.  As Caleb mentioned before, we are implementing an autocomplete control.  Since our implementation is a bit different, we are programmatically opening and closing the dropdown list
 
Jesse
tags: bug
Jan 10 2009 02:21 AM
vote up
0
vote down

Validation in WPF - The Disconnect

Karl Shifflett is just one of the many WPF gurus we follow here at the office.  As we are getting started on our first LOB WPF application, their experience has been a key part of our learning process.  I mention Karl because he recently posted
 
Jesse
Jan 10 2009 02:20 AM
vote up
0
vote down

Set WPF ListBox SelectedItem on Hover

So as previously mentioned, the ComboBox doesn't work as expected regarding the highlighted item vs. focused item.  It turns out that we can make the ListBox work like we want.  At first glance, it looks like the ListBox won't work because
 
Caleb
tags: wpf
Dec 30 2008 08:51 PM
vote up
0
vote down

Another reason to use Expression Blend to design your WPF Applications

As if there aren't already enough reasons, this simple one saves tons of time and frustration. Say you want to have an automatically sized window.  Have you ever tried to edit one of those windows in visual studio? Not very designer friendly. 
 
Jesse
tags: blend
Dec 26 2008 08:39 PM