How to Open an MVC project in Visual Studio 2010

without comments

Written by grantmcinnes

June 9th, 2009 at 11:25 am

Posted in .NET Programming

Example IsapiRewrite4.ini File for IsapiRewrite4

without comments

 

– Redirect attacks

RewriteCond %{REMOTE_ADDR} 10.10.1.0
RewriteRule ^/(.*)$ /$1 [F]

– Redirect from http://foo.com to http://www.foo.com

RewriteCond %{HTTPS} (on)?
RewriteCond %{HTTP:Host} ^(?!www\.)(.+)$ [NC]
RewriteCond %{REQUEST_URI} (.+)
RewriteRule .? http(?%1s)://www.%2%3 [R=301,L]

Written by grantmcinnes

May 28th, 2009 at 3:20 pm

Posted in Technology

Duplicate VM for Hyper-V

without comments

 

  1. Shutdown the VM that you want to duplicate
  2. Make a copy of the VHD file
  3. Create a new VM that joins to the copied VHD file
  4. Start the VM
  5. Launch SysPrep (c:\windows\system32\sysprep.exe) over the new VM once started
  6. Relicense Windows, rename Machine Name

Written by grantmcinnes

May 28th, 2009 at 2:27 pm

Posted in Technology

Regular Expressions Cheat Sheet (V2)

without comments

Written by grantmcinnes

May 20th, 2009 at 3:55 pm

Posted in .NET Programming

Eric Hexter’s Current .NET Application and Tooling Stack

without comments

Written by grantmcinnes

May 20th, 2009 at 3:01 pm

Posted in .NET Programming

Liked “The Conversation Prism”

without comments

 

 

Written by grantmcinnes

May 1st, 2009 at 1:39 pm

Posted in Web 2.0

Roadmap to web 2.0 in healthcare organizations: Slideshow

without comments

Written by grantmcinnes

May 1st, 2009 at 8:32 am

Posted in Medicine,Technology

Twitter Use Examples

without comments

 

Commercial use of Twitter: Advertising job vacancies:

image

Written by grantmcinnes

April 30th, 2009 at 1:20 pm

Posted in Uncategorized

WCF Service Project configuration for https

without comments

Rowan has spent alot of time on WCF and has a good understanding of WCF services. In this example, I wanted to host a WCF service on a website and use it with https. Below is the configuration necessary to do that.

In web.config file create the serviceBehaviors, bindings, and services section:

 

<system.serviceModel>

<behaviors>

<serviceBehaviors>

<behavior name="MembershipProviderHelperBehavior">

<serviceMetadata httpsGetEnabled="true" httpsGetUrl="" />

<serviceDebug includeExceptionDetailInFaults="false" />

</behavior>

</serviceBehaviors>

</behaviors>

<bindings>

<basicHttpBinding>

<binding name="TheConfig">

<security mode="Transport"/>

</binding>

</basicHttpBinding>

</bindings>

<services>

<service behaviorConfiguration="CustomClassHelperBehavior" name="CustomClassHelper">

<host>

<baseAddresses>

<add baseAddress="https://ssl.texmed.org/Services/CustomClassHelper" />

</baseAddresses>

</host>

<endpoint address="" binding="basicHttpBinding" contract="ICustomClassHelper" bindingConfiguration="TheConfig">

</endpoint>

<endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" />

</service>

</services>

</system.serviceModel>

Written by grantmcinnes

April 24th, 2009 at 1:57 pm

Posted in .NET Programming

Three Secrets to Make a Message Go Viral

without comments

Taken from: http://www.fastcompany.com/magazine/135/made-to-stick-getting-your-ideas-to-fly.html

Excerpt from article on viral marketing:

Viral marketing has become a hip, low-cost way to reach a lot of people very quickly — with little effort.

It’s emotional — in fact, if you believe it, it’s terrifying.

There’s another emotional angle: When someone shares this legend with you, they feel like they’re doing a public service. They might believe they’re saving your life. And that’s the second trait of viral ideas.

Rosen calls this a "trigger," and it’s the third trait of a viral idea. A trigger is an environmental reminder to talk about an idea.

Written by grantmcinnes

April 21st, 2009 at 11:36 am

Posted in Technology