Skip to content

Instantly share code, notes, and snippets.

View lgleasain's full-sized avatar

Lance Gleason lgleasain

View GitHub Profile
@lgleasain
lgleasain / gist:2117678
Created March 19, 2012 16:14
db blok fix
def db(&block)
result = ActiveRecord::Base.connection_pool.with_connection(&block)
ActiveRecord::Base.connection_pool.release_connection
result
end
@lgleasain
lgleasain / gist:2038808
Created March 14, 2012 19:19
with the +
03996 5ebb 7:15:55 PM Voice "kate" has been substituted with "kate-englishgb"
03997 5ebb 7:15:55 PM VxTTSPortLoquendo7::SynthesizeSSML - <<?xml version="1.0" encoding="UTF-8" ?><speak>and agent will call you shortly</speak>>
03998 5ebb 7:15:55 PM Successfully initiated TTS using voice Kate-EnglishGb
03999 5ebb 7:15:55 PM Using TTS plugin subsystem for voice kate-englishgb
04000 5ebb 7:15:55 PM LoquendoCallback - TTSEVT_TEXT = <?xml version="1.0" encoding="UTF-8" ?><speak>and agent will call you shortly</speak>
04001 5ebb 7:15:57 PM TTSSTAT: resource= engine=vxttsloq7 voice=Kate-EnglishGb activePorts=1 peakPorts=7 textBytes=85 audioTimeMS=1659 renderingTimeMS=1501 realtimeRatio=1.105
04002 5ebb 7:15:57 PM VxTTSPortLoquendo7::~VxTTSPortLoquendo7
04003 f396 7:15:57 PM Listener com.voxeo.tropo.util.MrcpTtsListener@16bcf9fe received result: com.voxeo.sipmethod.mrcp.client.MrcpTtsResult@6b79f262
04004 f396 7:15:57 PM listener is com.vo
@lgleasain
lgleasain / gist:2038762
Created March 14, 2012 19:12
tropo error
01960 c3ba 7:10:51 PM SimpleIncomingCall[4044754845/+14044754845->4048574641/+14048574641] : ====> Raw string: EXEC Dial "tel:14049662820","","" <====
01961 c3ba 7:10:51 PM SimpleIncomingCall[4044754845/+14044754845->4048574641/+14048574641] : ====> command {:action=>"exec", :command=>"dial", :args=>["tel:14049662820", "", ""]} <====
01962 c3ba 7:10:51 PM SimpleIncomingCall[4044754845/+14044754845->4048574641/+14048574641] : ====> Headers to map: #<TropoAGItate::MagicChannelVariables:0x135f5da1 @variables={:callerid=>{}}> <====
01963 c3ba 7:10:51 PM SimpleIncomingCall[4044754845/+14044754845->4048574641/+14048574641] : ====> Destination: ["tel:14049662820"], Options: {:timeout=>0, :headers=>{"x-tropo-callerid"=>"{}"}} <====
01964 c3ba 7:10:51 PM SimpleIncomingCall[4044754845/+14044754845->4048574641/+14048574641] : _parseTime(0) returning 0
01965 c3ba 7:10:51 PM SimpleIncomingCall[4044754845/+14044754845->4048574641/+14048574641]->transfer([tel:14049662820
@lgleasain
lgleasain / RubyConf Uruguay
Created November 11, 2011 20:33
RubyConf Uruguay Demo
South Africa: 27 213009785
Voice & Messaging: (404) 857-4641
International Voice: +54 1152525423
International Voice: +54 1152525431
@lgleasain
lgleasain / gist:1357935
Created November 11, 2011 12:54
failing nokogiri test
require 'rubygems'
require 'test/unit'
require 'nokogiri'
class TestAdd < Test::Unit::TestCase
MyNode = Class.new Nokogiri::XML::Node
def setup
@node = MyNode.new 'foo', Nokogiri::XML::Document.new
assert @node.name == 'foo'