• Home
  • Posts RSS
  • Comments RSS
  • Edit
Blue Orange Green Pink Purple

Matt Linder

My Photo Much like Hector Salamanca, I believe family is everything. I run and cycle sometimes, too. I spend the majority of my week days implementing a solution, or solving problems at a computer, aided by a trusty bag of almond m&ms.

Google Accounts Multiple Sign-In

Google accounts now offers multiple sign-in. The feature may have to be enabled if you have not done so already for each account you plan to use...

Read More

LG G3 Cyanogenmod/ TWRP Nightly Updates won't install

For the past few months, I have been unable to update my cyanogenmod versions. I finally got sick of the issues I was having with Straight Talk MVNO for Verizon and dug into it. I hope someone finds this helpful.

This page on the cyanogemod forum indicates that there was an update for the modem that should address the issue. After installing the modem update, TWRP was able to flash the new CM nightly build from this week. If this will not address the issues I have been having with my Straight Talk mobile data(Mobile Signal Icon shows exclamation point and I have to contact support to resolve) I will have to revert back to AT&T MVNO.
Read More 1 Comment | Posted by Matt Linder edit post

Stupid Horse

When I was a teenager, I was given a horse as a gift. I spent hours working with him while he was young to train him. I learned a lot about life, but that is a different post.

My family bought many horses in the years following. We had around 24, and we went for family rides weekly. Good times. Which brings me to my story.

My brother bought a beautiful chocolate colored stallion with a creme colored main and tail. He cost a whopping $1100. The first day we brought him to our stable, we locked up the other horses to allow him to investigate his new surroundings without being spooked by the other horses.

There was a half acre arena for him to walk around in. He walked to the back of the arena, to where the other horses were stabled. He was spooked and ran all the way across the arena and cleared the 6 foot gate.

We had trail horses. We rode for pleasure. He was a horrible trail horse. He made riding on a trail un-pleasurable.

We kept him for a few years after gelding him, but he never became a good trail horse. Eventually my brother gave up and sold him for $900 to a man with the disclaimer of what we knew of him.

The next week, we were told the man sold the horse for $11,000 to a lady with a daughter. The lady was delighted with the perfect horse. He daughter wanted a jumper, and he was perfect. He even won several competitions.

We were glad to be rid of the horse, but there is a takeaway lesson here for the professional world.
Read More 0 comments | Posted by Matt Linder edit post

Unity config changes for 2.1


Unity is a great tool from the patterns and practices team at Microsoft. Its an asset to loosely couple classes for different patterns and architectures.

After running into a snag with Unity, I decided to run through the demo available from the microsoft download. I have installed VS 2012 and love the new features.

Unfortunately, the 2008 demo has the old style configuration schema, which breaks when you reference the new Unity assemblies. After a few minutes of reviewing the documentation I got it t work. I will include the new format here in case anyone else needs it.

Original:


<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <configSections>
    <section name="unity" type="Microsoft.Practices.Unity.Configuration.UnityConfigurationSection, Microsoft.Practices.Unity.Configuration"/>
  </configSections>
  <unity>
    <typeAliases>
      <typeAlias alias="int" type="System.Int32, mscorlib" />
      <typeAlias alias="singleton"
                 type="Microsoft.Practices.Unity.ContainerControlledLifetimeManager, Microsoft.Practices.Unity" />
      <typeAlias alias="transient"
                 type="Microsoft.Practices.Unity.TransientLifetimeManager, Microsoft.Practices.Unity" />
      <typeAlias alias="IMachineDisplay"
                 type="SlotMachine.IMachineDisplay, SlotMachine" />
      <typeAlias alias="ISpinner"
                 type="SlotMachine.ISpinner, SlotMachine" />
      <typeAlias alias="IWinningsCalculator"
                 type="SlotMachine.IWinningsCalculator, SlotMachine" />
    </typeAliases>
    <containers>
      <container>
        <types>
          <type type="IMachineDisplay" mapTo="SlotMachine.ConsoleDisplay, SlotMachine">
            <lifetime type="singleton" />
          </type>
          
          <type type="ISpinner" mapTo="SlotMachine.SimpleSpinner, SlotMachine">
            
            <typeConfig extensionType="Microsoft.Practices.Unity.Configuration.TypeInjectionElement, Microsoft.Practices.Unity.Configuration">
              <property name="Display" propertyType="IMachineDisplay" />
            </typeConfig>
          
          </type>

          <type type="IWinningsCalculator" mapTo="SlotMachine.AirportWinningsCalculator, SlotMachine" />

          <type type="SlotMachine.SlotMachine, SlotMachine">
            <typeConfig extensionType="Microsoft.Practices.Unity.Configuration.TypeInjectionElement, Microsoft.Practices.Unity.Configuration">
              <constructor>
                <param name="id" parameterType="int">
                  <value value="37" type="int" />
                </param>
                <param name="display" parameterType="IMachineDisplay">
                  <dependency />
                </param>
                <param name="spinner" parameterType="ISpinner">
                  <dependency />
                </param>
                <param name="calculator" parameterType="IWinningsCalculator">
                  <dependency name="debug"/>
                </param>
              </constructor>
            </typeConfig>
          </type>
        </types>
      </container>

      <container name="child">
        <types>
          <type type="IMachineDisplay" mapTo="SlotMachine.ConsoleDisplay, SlotMachine">
            <lifetime type="transient" />
          </type>
        </types>
      </container>
      
    </containers>
  </unity>
</configuration>

Updated:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <configSections>
    <section name="unity" type="Microsoft.Practices.Unity.Configuration.UnityConfigurationSection, Microsoft.Practices.Unity.Configuration"/>
  </configSections>
  <unity xmlns="http://schemas.microsoft.com/practices/2010/unity"

    <alias alias="int" type="System.Int32, mscorlib" />
    <alias alias="singleton"
               type="Microsoft.Practices.Unity.ContainerControlledLifetimeManager, Microsoft.Practices.Unity" />
    <alias alias="transient"
               type="Microsoft.Practices.Unity.TransientLifetimeManager, Microsoft.Practices.Unity" />
    <alias alias="IMachineDisplay"
               type="SlotMachine.IMachineDisplay, SlotMachine" />
    <alias alias="ISpinner"
               type="SlotMachine.ISpinner, SlotMachine" />
    <alias alias="IWinningsCalculator"
               type="SlotMachine.IWinningsCalculator, SlotMachine" />

    <containers>
      <container>
        <register type="IMachineDisplay" mapTo="SlotMachine.ConsoleDisplay, SlotMachine">
          <lifetime type="singleton" />
        </register>
        <register type="ISpinner" mapTo="SlotMachine.SimpleSpinner, SlotMachine">
          <property name="Display" dependencyType="IMachineDisplay" />          
        </register>
        <register type="IWinningsCalculator" mapTo="SlotMachine.AirportWinningsCalculator, SlotMachine" />
        <register type="SlotMachine.SlotMachine, SlotMachine">
          <constructor>
            <param name="id" value="37" >
            </param>
            <param name="display" >
              <dependency />
            </param>
            <param name="spinner">
              <dependency />
            </param>
            <param name="calculator">
              <dependency name="debug"/>
            </param>
          </constructor>
        </register>
      </container>

      <container name="child">
        <register type="IMachineDisplay" mapTo="SlotMachine.ConsoleDisplay, SlotMachine">
          <lifetime type="transient" />
        </register>
      </container>
    </containers>
  </unity>
</configuration>
Read More 0 comments | Posted by Matt Linder edit post

Windows 7 64 bit WHS backup "Cannot mount the backup"

I just migrated to a new computer, but was unable to open/restore old backups. I had to enable automount in diskpart and uninstall the Home Server Restore Driver as found here:
http://forum.wegotserved.com/index.php/topic/15405-cannot-mount-the-backup/

"Finally found the solution. I've been struggling with this for a year. just go into your device manager on your client and expand the system devices tree and uninstall any Home Server Restore Driver you see. Reboot if necessary then you should be able to mount your backup. "

I did not need to reboot.
Read More 0 comments | Posted by Matt Linder edit post

Jsonp and MVC

JSON is a powerful way to transmit or expose sets of data to jQuery or javascript. There are several api's such as twitter, flicker, and yahoo that allow this functionality. Unfortunately, it can be used for bad intentions. To curtail such experiences, a "defense system" for foreign requests was created. This defense places restrictions on requests that occur on cross-domain http requests via javascript for returning data in the JSON format.

For visualization:


To bypass this issue and reduce the opportunity for accidental exposure of vulnerabilites, you have to change the response type of requests for this scenario. In jQuery 1.2, JSONP support was introduced. Jsonp, or JSON with Padding, is a a way to wrap json responses in callback manner, and remove client side get requests allowing only posts.


example source
Using MVC, you can easily expose JSON responses with your Controller. A simple way is to return a JsonResult. To add JSONP functionality, however, you will have to create a custom class, or extend the existing JsonResult.

Changing something like this:
{"Id" : 4, "Name" : "Matt Linder"}
to this:
callback({"Id" : 4, "Name" : "Matt Linder"});

I have implemented a default callback on the originating server, with the option to specify a custom consumer script for the callback, which seems to work well.
Read More 0 comments | Posted by Matt Linder edit post

Entity Framework Migration

Working on my first major from scratch MVC/EF Codefirst project, things 'bout to get real. After the poc/dev process, a project may involve tweeks  or changes that will be abandoned. There are great processes for scripting changes, but EF has a nice feature called migrations.

Here is a good post on Entity Framework Migrations. Note 9 applies best. Its always the little things.
Read More 0 comments | Posted by Matt Linder edit post

jQuery Background Image Bug

Sorry, this is for me and  me alone.

We had an issue with a drupal install that only impacted IE8 on XP. After checking hotfixes, antivirus and duplicating the issue,
Read More 0 comments | Posted by Matt Linder edit post
Older Posts

Matt Linder

  • About

      Former scoutmaster, soccer coach, long distance runner turned donut connoisseur and father of five with a passion for learning technology and solving technical problems!

      View Matt Linder's profile on LinkedIn
    • About Me

      My photo
      Matt Linder
      South Carolina native, lover of peanut butter and donuts, and web developer.
      View my complete profile

      Professional Matt Linder

      Matt Linder's public blog.

      Blog Archive

      • ▼  2015 (1)
        • ▼  August (1)
          • LG G3 Cyanogenmod/ TWRP Nightly Updates won't install
      • ►  2013 (1)
        • ►  October (1)
      • ►  2012 (11)
        • ►  October (1)
        • ►  July (2)
        • ►  June (1)
        • ►  April (2)
        • ►  March (5)

      Achievements Unlocked

      fitness apps fitness apps fitness apps fitness apps
    • Search






      • Home
      • Posts RSS
      • Comments RSS
      • Edit

      © Copyright Professional Matt Linder. All rights reserved.

      Designed by FTL Wordpress Themes | Bloggerized by FalconHive.com | Blogger Templates
      brought to you by Smashing Magazine

      Back to Top