Geeks With Blogs
Joe Mayo C#
Scenarios for Throwing Exceptions
I recently came across a situation where someone had an opinion that differed from mine of when an exception should be thrown. This particular case was an issue opened on LINQ to Twitter for an Exception on EndSession. The premise of the issue was that the poster didn’t feel an exception should be raised, regardless of authentication status. As first, this sounded like a valid point. However, I went back to review my code and decided not to make any changes. Here's my rationale: 1. The exception ......

Posted On Tuesday, June 5, 2012 9:52 PM

Pre-Processing Directives for Multi-Platform Support
Over the last several months, I’ve been modifying LINQ to Twitter to support multiple platforms. Originally, I had targeted full profile .NET, ASP.NET Web Forms, and ASP.NET MVC apps. An easy stop along the way was Mono compatibility, but that was simple because Mono is good about running any CLR app. The code-base was good until I started porting to Silverlight. Porting to Silverlight Silverlight requires a different type of class library, so right-away I couldn’t use the same libraries as the full ......

Posted On Friday, May 11, 2012 8:33 AM

DataSprings Blog Post

Here's a blog post by DataSprings on how to use LINQ to Twitter:  It demonstrates how to authenticate with OAuth and how to use several of the APIs.


Posted On Monday, June 6, 2011 6:32 PM

Displaying Search Results With LINQ to Twitter and ASP.NET MVC
Sometimes, the way that LINQ to Twitter materializes queries into entities isn’t immediately clear. It’s easy to get confused until you see the patterns or make a correlation between the Twitter API results and their representations as LINQ to Twitter entities. In this post, I’ll explain some of the logic behind the design of LINQ to Twitter entities and demonstrate an example of one of the more oddly designed entity types, Search. Note: They'll be talking about MVC3 during multiple sessions at Tech-Ed. ......

Posted On Thursday, April 28, 2011 8:27 AM

TechEd 2011
Now that Mix11 is over, Microsoft’s next big conference is Tech-Ed 2011, which happens May 16th through May 19th in Atlanta, GA. Each of Microsoft’s conferences have a theme; Mix is about the Web, PDC is about new and upcoming technologies, and there are many more. The focus of Tech-Ed is on current Microsoft technologies. In other words, you would go there to learn about the software that you can use today to get your work done. If you haven’t been there yet, Atlanta is a nice city and the surrounding ......

Posted On Saturday, April 16, 2011 2:31 PM

JustCode Provides Reflector Alternative
If you've been a loyal Reflector user, you've probably been exposed to the debacle surrounding RedGate's decision to no longer offer a free version. Since then, the race has begun for a replacement with a provider that would stand by their promises to the community. Mono has an ongoing free alternative, which has been available for a long time. However, other vendors are stepping up to the plate, with their own offerings. If Not Reflector, Then What? One of these vendors is Telerik. In their recent ......

Posted On Saturday, March 19, 2011 11:04 PM

Released LINQ to Twitter Beta v2.0.20

I released LINQ to Twitter Beta v2.0.20:  Most of the items were bug fixes.  A couple items were new: Geo Search and I finished adding Asynch support for non-Silverlight APIs.


Posted On Sunday, March 6, 2011 8:24 PM

Debugging Windows Service Timeout Error 1053
If you ever receive an Error 1053 for a timeout when starting a Windows Service you've written, the underlying problem might not have anything to do with a timeout. Here's the error so you can compare it to what you're seeing: --------------------------- Services --------------------------- Windows could not start the Service1 service on Local Computer. Error 1053: The service did not respond to the start or control request in a timely fashion. --------------------------- OK --------------------------- ......

Posted On Thursday, March 3, 2011 12:20 PM

LINQ to Twitter Queries with LINQPad
LINQPad is a popular utility for .NET developers who use LINQ a lot. In addition to standard SQL queries, LINQPad also supports other types of LINQ providers, including LINQ to Twitter. The following sections explain how to set up LINQPad for making queries with LINQ to Twitter. LINQPad comes in a couple versions and this example uses LINQPad4, which runs on the .NET Framework 4.0. 1. The first thing you'll need to do is set up a reference to the LinqToTwitter.dll. From the Query menu, select query ......

Posted On Thursday, February 24, 2011 11:31 AM

A Basic Thread
Most of the programs written are single-threaded, meaning that they run on the main execution thread. For various reasons such as performance, scalability, and/or responsiveness additional threads can be useful. .NET has extensive threading support, from the basic threads introduced in v1.0 to the Task Parallel Library (TPL) introduced in v4.0. To get started with threads, it's helpful to begin with the basics; starting a Thread. Why Do I Care? The scenario I'll use for needing to use a thread is ......

Posted On Monday, February 21, 2011 10:30 PM

Copyright © Joe Mayo | Powered by: | Join free