This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Build Notes | |
If builds of PostgreSQL 9 are failing and you have version 8.x installed, | |
you may need to remove the previous version first. See: | |
https://github.com/mxcl/homebrew/issues/issue/2510 | |
To build plpython against a specific Python, set PYTHON prior to brewing: | |
PYTHON=/usr/local/bin/python brew install postgresql | |
See: | |
http://www.postgresql.org/docs/9.2/static/install-procedure.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PS1="\033[32m\]\@ \033[33m\]\w\$(__git_ps1 \" (%s) \")\$\033[0m\] " |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[AttributeUsage(AttributeTargets.Method)] | |
public class UrlAliasAttribute : Attribute | |
{ | |
public UrlAliasAttribute(params string[] urls) | |
{ | |
Urls = urls; | |
} | |
public string[] Urls { get; private set; } | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static IRepository<T> GetRepository<T>(ISession session, string table) where T : class, new() | |
{ | |
return GetRepositoryFactory<T>(session).CreateFor<T>(table); | |
} | |
public static IRepository<T> GetRepositoryFactory<T>(ISession session) where T : class, new() | |
{ | |
return new RepositoryFactory(new Gribble.NHibernate.ConnectionManager(session), Mappings(typeof(T).Assembly)); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[FubuException: FubuCore Error 0: | |
Restarted 1/14/2013 4:13:37 PM | |
Application Path c:\users\mob\documents\visual studio 11\Projects\WebApplication6\ | |
------------------------------------------------------------------------------------------------ | |
Errors | |
------------------------------------------------------------------------------------------------ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<meta http-equiv="Content-Type" content="charset=unicode-1-1-utf-8"><!-- saved from url=(0015)assemblybinder: --><html><pre> | |
*** Assembly Binder Log Entry (1/13/2013 @ 2:31:53 PM) *** | |
The operation failed. | |
Bind result: hr = 0x80070002. The system cannot find the file specified. | |
Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll | |
Running under executable C:\Program Files (x86)\IIS Express\iisexpress.exe | |
--- A detailed error log follows. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Source Error: | |
Line 13: public static void Start() | |
Line 14: { | |
Line 15: FubuApplication.For<Conventions>().StructureMap(new Container()).Bootstrap(); | |
Line 16: PackageRegistry.AssertNoFailures(); | |
Line 17: } | |
Source File: d:\Development\FubuMVC.Swank\src\TestHarness\Bootstrap.cs Line: 15 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static HttpWebResponse GetResponse(this HttpWebRequest request, bool throwHttpExceptions) | |
{ | |
if (throwHttpExceptions) return (HttpWebResponse)request.GetResponse(); | |
try | |
{ | |
return (HttpWebResponse)request.GetResponse(); | |
} | |
catch (WebException e) | |
{ | |
var response = e.Response as HttpWebResponse; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Conventions : FubuRegistry | |
{ | |
public Conventions() | |
{ | |
Policies.Add(x => x.ModifyBy(y => y.AddSymmetricFormatter<MyNewXmlFormatter>(), ConfigurationType.Attachment)); | |
} | |
} | |
public static class Extensions | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TrailingSlashRedirectBehavior : IActionBehavior | |
{ | |
private readonly IActionBehavior _innerBehavior; | |
private readonly IOutputWriter _outputWriter; | |
private readonly ICurrentHttpRequest _request; | |
public TrailingSlashRedirectBehavior(IActionBehavior innerBehavior, IOutputWriter outputWriter, ICurrentHttpRequest request) | |
{ | |
_innerBehavior = innerBehavior; | |
_outputWriter = outputWriter; |