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
#!/usr/bin/env ruby | |
# | |
# Warning: This file is clobbered when you update your | |
# application with the waves script. Accordingly, you may | |
# wish to keep your tasks in .rb or .rake files in lib/tasks | |
require 'rubygems' | |
WAVES = "#{File.dirname(__FILE__)}/.." unless defined? WAVES |
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
<iq xmlns="jabber:client" to="utterance.localhost" type="get" id="2590"> | |
<vCard xmlns="vcard-temp" /> | |
</iq> |
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
D, [2009-05-28T12:43:21.585216 #1607] DEBUG -- : | |
------------------------------ | |
D, [2009-05-28T12:43:21.585576 #1607] DEBUG -- : << <presence type='subscribe' to='utterance.localhost' from='nolan@localhost' id='9821' xmlns='jabber:client'><nick xmlns='http://jabber.org/protocol/nick'>nolan</nick><x xmlns='vcard-temp:x:update'></x><c ver='c9YhHDC8qrp1wOzPTQHysAgnAeY=' hash='sha-1' node='http://gajim.org' xmlns='http://jabber.org/protocol/caps'></c><status>I would like to add you to my contact list.</status></presence> | |
D, [2009-05-28T12:43:21.585849 #1607] DEBUG -- : PARSING: (<presence type='subscribe' to='utterance.localhost' from='nolan@localhost' id='9821' xmlns='jabber:client'><nick xmlns='http://jabber.org/protocol/nick'>nolan</nick><x xmlns='vcard-temp:x:update'></x><c ver='c9YhHDC8qrp1wOzPTQHysAgnAeY=' hash='sha-1' node='http://gajim.org' xmlns='http://jabber.org/protocol/caps'></c><status>I would like to add you to my contact list.</status></presence>) |
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
require "rubygems" | |
require "blather/client" | |
module Test | |
extend Blather::DSL | |
setup("user@localhost/test", "secret", "localhost", 5222) | |
#setup("component.localhost", "secret", "localhost", 5347) | |
when_ready do |
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
D, [2009-06-03T17:03:02.975315 #32267] DEBUG -- : << <message type='chat' to='utterance.localhost' from='nolan@localhost/Eee' id='purple22543b60' xmlns='jabber:client'><x xmlns='jabber:x:event'></x><active xmlns='http://jabber.org/protocol/chatstates'></active></message> | |
D, [2009-06-03T17:03:02.975569 #32267] DEBUG -- : PARSING: (<message type='chat' to='utterance.localhost' from='nolan@localhost/Eee' id='purple22543b60' xmlns='jabber:client'><x xmlns='jabber:x:event'></x><active xmlns='http://jabber.org/protocol/chatstates'></active></message>) | |
D, [2009-06-03T17:03:02.976023 #32267] DEBUG -- : START ELEM: ({:uri=>"jabber:client", :prefix=>nil, :ns=>{nil=>"jabber:client"}, :elem=>"message", :attrs=>{"from"=>"nolan@localhost/Eee", "id"=>"purple22543b60", "to"=>"utterance.localhost", "type"=>"chat"}}) | |
D, [2009-06-03T17:03:02.976785 #32267] DEBUG -- : START ELEM: ({:uri=>"jabber:x:event", :prefix=>nil, :ns=>{nil=>"jabber:x:event"}, :elem=>"x", :attrs=>{}}) | |
D, [2009-06-03T17:03:02.977483 #32267] DEBUG -- : END E |
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
/var/lib/gems/1.8/gems/blather-0.4.0/lib/blather/stream/parser.rb:94:in `error': EndTag: '</' not found (Blather::ParseError) | |
from /var/lib/gems/1.8/gems/nokogiri-1.3.0/lib/nokogiri/xml/sax/push_parser.rb:47:in `native_write' | |
from /var/lib/gems/1.8/gems/nokogiri-1.3.0/lib/nokogiri/xml/sax/push_parser.rb:47:in `<<' | |
from /var/lib/gems/1.8/gems/blather-0.4.0/lib/blather/stream/parser.rb:22:in `<<' | |
from /var/lib/gems/1.8/gems/blather-0.4.0/lib/blather/stream.rb:85:in `receive_data' | |
from /var/lib/gems/1.8/gems/eventmachine-0.12.8/lib/eventmachine.rb:242:in `run_machine' | |
from /var/lib/gems/1.8/gems/eventmachine-0.12.8/lib/eventmachine.rb:242:in `run' | |
from /home/nolan/Projects/Utterance/bin/utterance:12 | |
from /var/lib/gems/1.8/gems/daemons-1.0.10/lib/daemons/application.rb:215:in `call' | |
from /var/lib/gems/1.8/gems/daemons-1.0.10/lib/daemons/application.rb:215:in `start_proc' |
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
D, [2009-06-05T00:02:55.581833 #18758] DEBUG -- : NEW JID: echo@localhost/echo | |
D, [2009-06-05T00:02:55.582841 #18758] DEBUG -- : SENDING: (/var/lib/gems/1.8/gems/blather-0.4.0/lib/blather/stream.rb:77:in `connection_completed') <stream:stream to='localhost' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' xml:lang='en' > | |
D, [2009-06-05T00:02:55.584574 #18758] DEBUG -- : | |
------------------------------ | |
D, [2009-06-05T00:02:55.584796 #18758] DEBUG -- : << <?xml version='1.0'?><stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='95765323' from='localhost' version='1.0'><stream:features><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>DIGEST-MD5</mechanism><mechanism>PLAIN</mechanism></mechanisms><auth xmlns='http://jabber.org/features/iq-auth'></auth></stream:features> | |
D, [2009-06-05T00:02:55.584945 #18758] DEBUG -- : PARSING: (<?xml version='1.0'?><stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/s |
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
#!/usr/bin/env ruby | |
require 'blather/client' | |
Blather.logger.level = Logger::DEBUG | |
when_ready { puts "Connected ! send messages to #{jid.stripped}." } | |
subscription :request? do |s| | |
write s.approve! | |
end |
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
package info.hermesgps.hermes.models | |
import org.openstreetmap.osmosis.core.domain.v0_6.{Entity => OSMEntity} | |
class Entity(obj:OSMEntity) { | |
def name { | |
"Entity" | |
} | |
} |
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
package info.hermesgps.hermes.model | |
import scala.collection.immutable.Map | |
import org.openstreetmap.osm.data.IDataSet | |
import org.openstreetmap.osmosis.core.domain.v0_6.{Tag, WayNode} | |
import org.openstreetmap.osmosis.core.domain.v0_6.{Entity, Node, Relation, Way} | |
/* | |
* Superclass for rich OSM entities. | |
*/ | |
class RichEntity(val obj:Entity, val dataset:IDataSet) { |
OlderNewer