Skip to content

Instantly share code, notes, and snippets.

View dbeattie71's full-sized avatar

Derek Beattie dbeattie71

  • Nebraska
  • 18:33 (UTC -05:00)
View GitHub Profile
@dbeattie71
dbeattie71 / RadDockingManager.cs
Created November 7, 2011 16:58
Telerik RadDockingManager implementation.
using System;
using System.Collections.Generic;
using System.IO;
using System.IO.IsolatedStorage;
using System.Linq;
using System.Windows;
using System.Windows.Data;
using System.Windows.Media;
using Caliburn.Micro;
using Telerik.Windows.Controls;
@dbeattie71
dbeattie71 / gist:1596122
Created January 11, 2012 18:43
WCF RIA side by side with servicestack
<system.web>
<customErrors mode="Off"/>
<authentication mode="Forms"/>
<compilation debug="true" targetFramework="4.0"/>
<httpModules>
<add name="DomainServiceModule"
type="System.ServiceModel.DomainServices.Hosting.DomainServiceHttpModule, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</httpModules>
@dbeattie71
dbeattie71 / gist:1714966
Created February 1, 2012 03:48
IsolatedStorageSettings
using System.IO.IsolatedStorage;
using Gmp.Core.Model;
namespace Gmp.Core
{
public class Helper
{
private static readonly IsolatedStorageSettings Settings = IsolatedStorageSettings.ApplicationSettings;
public static AppSettings GetAppSettings()
@dbeattie71
dbeattie71 / gist:1724662
Created February 2, 2012 17:19
Mutexed IsolatedStorageFile
public static class MutexedIsoStorageFile
{
public static T Read<T>(string fileName, string mutexName) where T : new()
{
var mutexFile = new Mutex(false, mutexName);
var model = new T();
mutexFile.WaitOne();
@dbeattie71
dbeattie71 / Gooroovster.md
Created February 4, 2012 15:32
Gooroovster Beta

Gooroovster Beta

Gooroovster is a native Windows Phone 7 app for Google Music. If you're interested in beta testing Gooroovster send your Windows Live ID email address to beta@gooroovster.com.

@dbeattie71
dbeattie71 / gist:1781678
Created February 9, 2012 18:09
ApplyItemTemplate
public static void ApplyItemTemplate(ItemsControl itemsControl, PropertyInfo property) {
if (!string.IsNullOrEmpty(itemsControl.DisplayMemberPath)
|| HasBinding(itemsControl, ItemsControl.DisplayMemberPathProperty)
|| itemsControl.ItemTemplate != null
|| !property.PropertyType.IsGenericType) {
return;
}
#if !WP71
var itemType = property.PropertyType.GetGenericArguments().First();
@dbeattie71
dbeattie71 / Test123
Created February 12, 2012 16:23
Test123
1.3
This release includes the following changes:
- Fixed a problem with shuffling.
- Added Genres.
- Fixed a problem with skip back not working.
- Put agent status on now playing page.
- Removed stop button.
- Added navigation when tapping on artist/album in now playing.
- Show no_album_art cover until agent reports what song is being started.
- Added prompt to verify refresh all in case of accidental tap.
@dbeattie71
dbeattie71 / gist:1927879
Created February 27, 2012 23:25
AdControlEx
using System.Windows;
using Microsoft.Advertising.Mobile.UI;
namespace Gmp.App.Framework.Controls
{
public class AdControlEx : AdControl
{
//MyApplicaitonId
public const string MyApplicationIdPropertyName = "MyApplicationId";
@dbeattie71
dbeattie71 / gist:1932073
Created February 28, 2012 11:42
release notes
1.4
This release includes the following changes:
- New tiles.
- Added artist art background to now playing page.
- Added application live tile.
- Added more detail to refresh process.
- Added FirstRun and FirstRunAfterUpdate logic.
- Improved performance in refresh process.
- Un-pause resumes correctly.
- Added rewind and fast forward.
Other Thoughts: Ordered this motherboard and received it with bent pins, so I RMA'd. Thanks to the Thanksgiving holiday, the replacement board took a while to get to my address. However, once it arrived, no pins were bent and setup went flawlessly.
Cons: Okay so I bought this motherboard for my new rig that I was building and after installing everything onto the motherboard, I had issues powering it up. It started up fine until I did a clean shutdown of the system and after that, power would not boot. I've bought and changed the PSU three times and I still had the same problem. I installed all my parts to a different motherboard and it works like a charm. I know that the motherboard I bought here was damaged somehow. It's probably just my motherboard that I purchased but $200.00 for a motherboard that doesn't even work, I want a replacement for one that works or my money back!
Cons: Got a bad one my first go around so once I built the computer I found out there was a problem with CPU connection on the mothe