BobStrogg

Stories kicked by BobStrogg

MVC Strongly-Typed Action Helpers - They're Back!(chriscavanagh.wordpress.com)

submitted by BobStroggBobStrogg(1033) 3 days, 23 hours ago

Way back in 2009, the MVC Futures assembly introduced “strongly-typed action helpers”. They allowed you to render links using lambda expressions pointing directly to the actions on your controller, rather than using strings. Here's an alternative implementation that aims to resolve some of the performance issues they had. read more...

1 comment |category: |Views: 183

tags: another

Expression Trees + Generic Static Constructors(chriscavanagh.wordpress.com)

submitted by BobStroggBobStrogg(1033) 29 days, 9 hours ago

A great thing about .NET Expression Trees is you can compile them at runtime, and they’ll execute as fast as any .NET code. However, while building and compiling a tree is pretty quick, it’s best if you only need to do it once. Here's a way to do that with a generic class and static constructor. read more...

add a comment |category: |Views: 11

tags: another

LOLCode Parser(chriscavanagh.wordpress.com)

submitted by BobStroggBobStrogg(1033) 2 months, 6 days ago

LOLCode parser and compiler. Now your cat can code for you. read more...

add a comment |category: |Views: 24

tags: another

SQL Server XQuery with LINQ To SQL(chriscavanagh.wordpress.com)

submitted by BobStroggBobStrogg(1033) 1 year, 2 months ago

LINQ To SQL doesn’t provide a way to include Xquery expressions in queries. The simplest solution is to create SQL user-defined functions that perform the Xquery for you and return scalar results. This works pretty well for small databases, but you lose the benefit of SQL Server’s XML indexes. To get around that, we can modify the SQL command text to expand the function calls into raw Xquery expressions. read more...

add a comment |category: |Views: 117

tags: another

Modifying LINQ To SQL command text(chriscavanagh.wordpress.com)

submitted by BobStroggBobStrogg(1033) 1 year, 2 months ago

Here’s a bit of code that’ll let you modify any command text LINQ To SQL generates before it hits the database. It’s always been possible to call DataContext.GetCommand and use modified SQL in a call to DataContext.Translate or DataContext.ExecuteQuery, but that’s pretty restrictive in the complexity of query you can use. Also, if LINQ To SQL decides it needs to batch multiple SELECT statements for the desired results, GetCommand can only give you the first one. The first thing to do is replace the IProvider implementation used by your DataContext. Unfortunately, DataContext’s Provider property is both private and read-only. Also, the IProvider interface itself is private. This is bad in every way, and we absolutely shouldn’t try to hack our way through that… but we will. read more...

add a comment |category: |Views: 40

tags: another

A Real WPF 4.0 WebBrowser(chriscavanagh.wordpress.com)

submitted by BobStroggBobStrogg(1033) 1 year, 7 months ago

Finally updated the WPF Chromium WebBrowser for .NET 4.0 and Awesomium 1.6 RC1. Source code available on CodePlex! read more...

add a comment |category: |Views: 384

tags: another

WPF Photo Print updated(chriscavanagh.wordpress.com)

submitted by BobStroggBobStrogg(1033) 1 year, 8 months ago

I've added basic “Save” functionality to my WPF Photo Print utility. It’s exceptionally quirky, but it gets the job done. read more...

add a comment |category: |Views: 8

tags: another

JelloPhone for Windows Phone 7(chriscavanagh.wordpress.com)

submitted by BobStroggBobStrogg(1033) 1 year, 9 months ago

I’ve finally put source code for my Windows Phone 7 Soft-Body Physics demo on CodePlex! As a bonus it runs much faster with the current emulator. read more...

add a comment |category: |Views: 8

tags: another

Amazon S3 bucket deletion(chriscavanagh.wordpress.com)

submitted by BobStroggBobStrogg(1033) 1 year, 9 months ago

A simple LINQPad script to delete every item from an Amazon S3 bucket. read more...

add a comment |category: |Views: 5

tags: another

NullableDictionary(chriscavanagh.wordpress.com)

submitted by BobStroggBobStrogg(1033) 1 year, 10 months ago

Here’s an alternative to .NET’s generic Dictionary that allows a null value as a key… It’s one of those things you’ll rarely (never?) need, but when you do you might be glad of it read more...

add a comment |category: |Views: 12

tags: another

MVC IsAuthorized and AuthorizedActionLink revisited(chriscavanagh.wordpress.com)

submitted by BobStroggBobStrogg(1033) 1 year, 10 months ago

An MVC HTML helper method that renders a link, taking the current authorization state into account (only rendering the link if the user was authorized to hit it). read more...

add a comment |category: |Views: 27

tags: another

WPF Chromium WebBrowser updates(chriscavanagh.wordpress.com)

submitted by BobStroggBobStrogg(1033) 1 year, 10 months ago

I’ve updated the WPF Chromium WebBrowser to use the current Awesomium beta version (1.6) and .NET 4.0. It’s still a preview, but you can find the source here on CodePlex. Here are the known issues/problems: 1) Resizing the WebBrowser causes the content to flicker. This appears to be an Awesomium issue, but it needs more investigation (pending support request on Awesomium forum). 2) There is an artifact left behind when scrolling a page; this is a known bug in Awesomium and will be fixed by Awesomium RC1. read more...

add a comment |category: |Views: 43

tags: another

LINQ Query Translator(chriscavanagh.wordpress.com)

submitted by BobStroggBobStrogg(1033) 2 years ago

I’ve published a small project called Linq Mapper that translates simple LINQ queries between different data sources. It allows you to write queries against your domain model, but have them run against a different model (typically a data model like LINQ to SQL or Entity Framework). read more...

add a comment |category: |Views: 15

tags: another

Soft-Body Physics for Windows Phone 7(chriscavanagh.wordpress.com)

submitted by BobStroggBobStrogg(1033) 2 years, 2 months ago

This took me literally 5 minutes to port… I love my iPhone, but WinPhone7 has one heck of a sweet developer experience :) read more...

add a comment |category: |Views: 42

tags: another

jQuery 1.4 Released!(jquery14.com)

submitted by powerrushpowerrush(3873) 2 years, 4 months ago

In celebration of jQuery’s 4th birthday, the jQuery team is pleased to release the latest major release of the jQuery JavaScript library! A lot of coding, testing, and documenting has gone into this release, and we’re really quite proud of it. read more...

4 comments |category: |Views: 494

tags: another

Write C# instead of JavaScript - gain the productivity of C# dev. (sharpkit.net)

submitted by alexgrossalexgross(258) 2 years, 4 months ago

SharpKit is a Web Toolkit that enables you to write C# and convert it to JavaScript during compilation. Writing and maintaining JavaScript code can be very expensive. Migrating from JavaScript to C# enables you to: *Leverage Visual Studio C# productivity *Maximize cross-browser compatibility *Streamline client-side code review read more...

12 comments |category: |Views: 709

tags: another