Skip to content

Instantly share code, notes, and snippets.

@hotgazpacho
hotgazpacho / gist:5058272
Created February 28, 2013 17:04
Roundhouse barfing on the build server
System.NullReferenceException : A type could not be created from the object you passed. "roundhouse.databases.sqlserver.SqlServerDatabase, roundhouse.databases.sqlserver" resolves to null.
using System.Configuration;
using System.Data.Common;
using System.Data.SqlClient;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text.RegularExpressions;
using FluentNHibernate.Cfg;
using FluentNHibernate.Cfg.Db;
@hotgazpacho
hotgazpacho / gist:4948471
Created February 13, 2013 21:26
WTF SQL Server?
RoundhousE encountered an error. You were running in a transaction though, so the database should be in the state it was
in prior to this piece running. This does not include a drop/create or any creation of a database, as those items can not run in a transaction.
System.Data.SqlClient.SqlException: A transport-level error has occurred when sending the request to the server. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.)
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParserStateObject.WriteSni()
at System.Data.SqlClient.TdsParserStateObject.WritePacket(Byte flushMode)
at System.Data.SqlClient.TdsParser.TdsExecuteTransactionManagerRequest(Byte[] buffer, TransactionManagerRequestTyp
@hotgazpacho
hotgazpacho / cutetweet.rb
Created January 3, 2013 03:35
tweet a message with a cute baby animal image
require 'optparse'
require 'google-search'
require 'twitter'
options = {}
optparse = OptionParser.new do |opts|
opts.on('-t', '--tweet MESSAGE', "Message to tweet") do |f|
options[:tweet] = f
end
@hotgazpacho
hotgazpacho / gist:4269813
Created December 12, 2012 17:31
Error lanuching Play for Windows
PLATFORM VERSION INFO
Windows : 6.1.7601.65536 (Win32NT)
Common Language Runtime : 4.0.30319.296
System.Deployment.dll : 4.0.30319.245 (RTMGDR.030319-2400)
clr.dll : 4.0.30319.296 (RTMGDR.030319-2900)
dfdll.dll : 4.0.30319.1 (RTMRel.030319-0100)
dfshim.dll : 4.0.31106.0 (Main.031106-0000)
SOURCES
Deployment url : http://play-windows.s3.amazonaws.com/Play.application
@hotgazpacho
hotgazpacho / gist:3706547
Created September 12, 2012 13:20
Exception when enabling Fody with NCrunch
[09:20:28.639-UI-1] Publishing Event: [#=q46oCx6ZlXJ6UHER9nk$QrJ42p0s22CR$7HugjotJock=:nCrunch.VSAddIn.UI.ContextualCommands.Commands.RebuildComponentsCommand]
[09:20:28.639-UI-1] Event [#=q46oCx6ZlXJ6UHER9nk$QrJ42p0s22CR$7HugjotJock=:nCrunch.VSAddIn.UI.ContextualCommands.Commands.RebuildComponentsCommand] is being published on thread CoreThread to subscriber: ContextualCommandController.#=q3vlMr_5aLNnv6FM6uZt2W1QsRbzqu78D0XNCx4JVdqY=
[09:20:28.639-Core-69] Event [#=q46oCx6ZlXJ6UHER9nk$QrJ42p0s22CR$7HugjotJock=:nCrunch.VSAddIn.UI.ContextualCommands.Commands.RebuildComponentsCommand] is being processed on Core thread with subscriber: ContextualCommandController.#=q3vlMr_5aLNnv6FM6uZt2W1QsRbzqu78D0XNCx4JVdqY=
[09:20:28.639-Core-69] Marking existing task [BuildTask: [SnapshotComponent: BindaTests, 1, 40338974], ProcessingFailed] for execution
[09:20:28.639-Core-69] Publishing Event: [TaskStateChangedEvent]
[09:20:28.639-Core-69] Event [TaskStateChangedEvent] is being published on thread CoreThread to subscriber
@hotgazpacho
hotgazpacho / gist:3437532
Created August 23, 2012 15:06
Today's lovely little find
public static void CloseStatus(string Title)
{
statusForm.Update(Title, 100);
Application.DoEvents();
System.Threading.Thread.Sleep(1500);
statusForm.Update("good bye", 1000);
Application.DoEvents();
}
# system-specific logs may be also be configured here.
/home/*/logs/*_log /home/*/domains/*/logs/*_log {
rotate 5
weekly
compress
sharedscripts
postrotate
/sbin/service httpd reload > /dev/null 2>/dev/null || true
endscript
}
/Users/iddwill/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find svn2git (>= 0) amongst [bigdecimal-1.1.0, io-console-0.3, json-1.5.4, minitest-2.5.1, rake-0.9.2.2, rdoc-3.9.4] (Gem::LoadError)
from /Users/iddwill/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec'
from /Users/iddwill/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems.rb:1231:in `gem'
from /Users/iddwill/.rvm/gems/ruby-1.9.3-p194/bin/svn2git:18:in `<main>'
from /Users/iddwill/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `eval'
from /Users/iddwill/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `<main>'
subject.ObserveOn(scheduler).Where(predicate).Subscribe(action);
subject.Where(predicate).ObserveOn(scheduler).Subscribe(action);