ruote log_2010-02-05

2010-02-05 06:21:22 utc anb_ too confusing ?
2010-02-05 06:21:54 utc jmettraux for a rule engine, it's confusing
2010-02-05 06:22:07 utc anb_ hehe
2010-02-05 06:22:07 utc jmettraux hello
2010-02-05 06:22:09 utc anb_ Hi
2010-02-05 06:22:52 utc jmettraux http://twitter.com/joshuaclayton/status/8654338553
2010-02-05 07:20:34 utc anb_ John, this is probably a question for Kenneth, but do you know how to change the content-type when sending a message with AMQP participants ?
2010-02-05 07:20:49 utc jmettraux euh, let me look at the source
2010-02-05 07:21:59 utc jmettraux it's using the 'amqp' gem
2010-02-05 07:22:12 utc jmettraux http://github.com/tmm1/amqp
2010-02-05 07:23:55 utc anb_ yes, I've been looking around the amqp gem without luck so far. but I'll find out :) thanks
2010-02-05 07:24:27 utc jmettraux ah, sorry
2010-02-05 07:24:36 utc jmettraux you have an issue with that ?
2010-02-05 07:24:50 utc jmettraux ASCII vs UTF-8 ?
2010-02-05 07:25:02 utc anb_ no, not with encoding
2010-02-05 07:25:53 utc anb_ I'm sending a ruby hash with to_json and the content-type received by the consumer is application/octet-stream
2010-02-05 07:26:16 utc anb_ so it fails miserably
2010-02-05 07:26:20 utc jmettraux aah
2010-02-05 07:26:42 utc anb_ I just need to set it to application/json
2010-02-05 07:26:46 utc anb_ ( I think )
2010-02-05 07:27:09 utc jmettraux http://groups.google.com/group/ruby-amqp/msg/b20a0c96a3844b93 ... not sure
2010-02-05 07:28:44 utc jmettraux in #publish http://github.com/tmm1/amqp/blob/master/lib/mq/exchange.rb#L247-266
2010-02-05 07:28:56 utc jmettraux publish(message, :content_type => 'application/json'
2010-02-05 07:28:58 utc jmettraux )
2010-02-05 07:29:07 utc jmettraux maybe you could fork ruote-amqp
2010-02-05 07:30:12 utc anb_ great, I'll have a look
2010-02-05 07:32:52 utc jmettraux I have to fork ruote-amqp right now
2010-02-05 07:33:04 utc jmettraux maybe I could add a provision for that in my fork
2010-02-05 07:33:53 utc jmettraux kennethkalmer: good morning !
2010-02-05 07:34:16 utc kennethkalmer afternoon jmettraux !
2010-02-05 07:34:31 utc jmettraux we were talking about ruote-amqp with Anthoine
2010-02-05 07:34:46 utc jmettraux coffee ?
2010-02-05 07:36:26 utc kennethkalmer yes please
2010-02-05 07:36:30 utc kennethkalmer (on both counts)
2010-02-05 07:36:38 utc jmettraux ACTION emits coffee
2010-02-05 07:36:46 utc kennethkalmer ACTION reduces
2010-02-05 07:37:29 utc jmettraux anb_ would need to have amqp messages published with content_type application/json
2010-02-05 07:38:28 utc anb_ Hello kenneth
2010-02-05 07:38:57 utc kennethkalmer hi anthoine
2010-02-05 07:39:31 utc kennethkalmer so, content-type in the amqp packets
2010-02-05 07:39:37 utc jmettraux kennethkalmer: tiny ruote-amqp pull request sent
2010-02-05 07:39:41 utc kennethkalmer ah
2010-02-05 07:39:43 utc kennethkalmer looking
2010-02-05 07:39:52 utc anb_ you guys are awesome
2010-02-05 07:40:06 utc jmettraux oh thanks !
2010-02-05 07:41:05 utc jmettraux the pull request is only about http://github.com/jmettraux/ruote-amqp/commit/c434a3205712f8e202f053da9809d8d9bc5d55db
2010-02-05 07:41:39 utc jmettraux kennethkalmer: should I include a publish path in my pull request ?
2010-02-05 07:42:05 utc kennethkalmer publish path ?
2010-02-05 07:42:18 utc jmettraux wait, gisting
2010-02-05 07:45:20 utc jmettraux kennethkalmer: http://gist.github.com/295615
2010-02-05 07:46:15 utc jmettraux maybe "application/json; charset=utf-8"
2010-02-05 07:46:57 utc anb_ yes
2010-02-05 07:48:21 utc jmettraux it's early for Kenneth
2010-02-05 07:50:02 utc kennethkalmer :)
2010-02-05 07:51:42 utc jmettraux anb_: you should probably watch Kenneth's ruote-amqp and not mine (on github)
2010-02-05 07:53:36 utc anb_ all right, thanks
2010-02-05 07:53:49 utc anb_ discovering git hub
2010-02-05 07:53:55 utc jmettraux :)
2010-02-05 07:54:08 utc anb_ we're using subversion actually
2010-02-05 07:54:53 utc jmettraux you seem to be in a nice environment (amqp, ruby, ...)
2010-02-05 07:58:03 utc anb_ kenneth, I think content type and encoding are seperated unlike http headers
2010-02-05 07:58:57 utc anb_ yes it's a nice change from Java and Jboss
2010-02-05 07:59:02 utc jmettraux :)
2010-02-05 07:59:15 utc anb_ and we use python heavily
2010-02-05 07:59:29 utc jmettraux sweet
2010-02-05 07:59:50 utc jmettraux were you using maven for building java ?
2010-02-05 08:00:06 utc anb_ nope, we had ugly ant builds
2010-02-05 08:00:22 utc jmettraux are you the ruby evangelist in there ?
2010-02-05 08:00:51 utc anb_ i'm the guy who pushed python against java and perl evangelists
2010-02-05 08:01:04 utc anb_ I'm using ruby only because of ruote actually
2010-02-05 08:01:05 utc jmettraux whoah
2010-02-05 08:01:12 utc jmettraux aaah
2010-02-05 08:01:15 utc anb_ :)
2010-02-05 08:01:39 utc jmettraux it's pleasant to read
2010-02-05 08:01:50 utc jmettraux python and ruby are (shouldn't be) enemies
2010-02-05 08:02:10 utc anb_ true
2010-02-05 08:02:19 utc jmettraux there's not much ruby in CH it seems
2010-02-05 08:02:38 utc anb_ in this case we wanted the workflow engine to be an autonomous entity so it doesn't really matter if it's ruby or python or anything else
2010-02-05 08:02:51 utc jmettraux ACTION nods
2010-02-05 08:03:43 utc anb_ are you using ruby exclusively at work ?
2010-02-05 08:04:04 utc jmettraux java for the old projects, ruby for the new
2010-02-05 08:04:20 utc jmettraux and I was using jruby in the old projects to "breathe"
2010-02-05 08:04:29 utc kennethkalmer back
2010-02-05 08:04:44 utc kennethkalmer i have to admit i didn't know there was a content type for amqp
2010-02-05 08:04:45 utc anb_ that's funny because I used Jython for the same reasons
2010-02-05 08:05:11 utc jmettraux I used Jython as well, but around 2001/2002
2010-02-05 08:05:26 utc jmettraux jruby and jython are heaven-sent
2010-02-05 08:05:49 utc jmettraux kennethkalmer: wb
2010-02-05 08:05:50 utc anb_ definitely but when starting fresh i'd rather go for the originals
2010-02-05 08:05:57 utc jmettraux :)
2010-02-05 08:07:27 utc kennethkalmer guys
2010-02-05 08:07:35 utc kennethkalmer looking at the source for the amqp gem
2010-02-05 08:07:55 utc jmettraux http://github.com/tmm1/amqp/blob/master/lib/mq/exchange.rb#L247-266 ?
2010-02-05 08:08:13 utc jmettraux :content_type defaults to octet/stream in there
2010-02-05 08:08:29 utc kennethkalmer exactly the lines
2010-02-05 08:08:34 utc kennethkalmer it cannot be overwritten
2010-02-05 08:08:40 utc kennethkalmer fark
2010-02-05 08:08:43 utc kennethkalmer it can
2010-02-05 08:08:44 utc kennethkalmer my bad
2010-02-05 08:08:50 utc kennethkalmer way too early
2010-02-05 08:09:08 utc jmettraux http://gist.github.com/295615 ;)
2010-02-05 08:09:32 utc kennethkalmer good spotting
2010-02-05 08:09:32 utc anb_ hehe
2010-02-05 08:09:34 utc kennethkalmer now I wonder
2010-02-05 08:10:05 utc kennethkalmer is the content type in the amqp messages a formality, or could a client discard messages coming down the queue that isn't the correct content type ?
2010-02-05 08:10:36 utc anb_ spec says it's optional
2010-02-05 08:11:34 utc kennethkalmer i'll accept the patch :)
2010-02-05 08:11:37 utc kennethkalmer thanks guys
2010-02-05 08:11:42 utc jmettraux woot !
2010-02-05 08:11:44 utc anb_ thank you
2010-02-05 08:11:45 utc kennethkalmer learned something cool now :)
2010-02-05 08:12:15 utc jmettraux ok, let me send a pull request
2010-02-05 08:14:07 utc kennethkalmer please
2010-02-05 08:14:18 utc jmettraux done
2010-02-05 08:14:25 utc jmettraux anb_: thanks for the follow !
2010-02-05 08:19:21 utc kennethkalmer forkqueue taking forever to update
2010-02-05 08:23:13 utc jmettraux I got ruote-dm almost green
2010-02-05 08:23:30 utc kennethkalmer well done
2010-02-05 08:24:55 utc kennethkalmer pushing changes, thanks guys !
2010-02-05 08:25:05 utc jmettraux thanks to you !
2010-02-05 08:31:18 utc anb_ thanks
2010-02-05 08:41:24 utc anb_ i don't know what changed but now rake build works like a charm on ruote-amqp
2010-02-05 08:43:17 utc jmettraux probably a change in the Rakefile
2010-02-05 08:43:54 utc kennethkalmer mine is still not building
2010-02-05 08:47:53 utc anb_ strange
2010-02-05 08:48:15 utc anb_ and now it works with the json content-type, great
2010-02-05 08:48:35 utc jmettraux wunderbar
2010-02-05 08:49:03 utc kennethkalmer coffees ?
2010-02-05 08:49:08 utc jmettraux please
2010-02-05 08:49:45 utc kennethkalmer coming up
2010-02-05 09:22:32 utc anb_ kenneth, the amqp listener is actually a "receiver" ruote2.0 style ?
2010-02-05 09:22:57 utc kennethkalmer receiver is 2.1 style, yeah
2010-02-05 09:23:03 utc kennethkalmer wonder if i should rename it
2010-02-05 09:23:27 utc anb_ I don't know
2010-02-05 09:23:47 utc anb_ your call :)
2010-02-05 09:30:18 utc anb_ in the todo you mention Launch processes over AMQP, are you already working on it ?
2010-02-05 09:30:48 utc kennethkalmer think it is in actaully
2010-02-05 09:30:56 utc kennethkalmer let me just check the specs
2010-02-05 09:31:17 utc kennethkalmer yeah
2010-02-05 09:31:37 utc kennethkalmer there is a RuoteAMQP::LaunchitemListener
2010-02-05 09:39:17 utc anb_ nice, thanks
2010-02-05 09:39:55 utc anb_ I don't know if I should do everything through amqp actually. (I mean instead of rest/ruote-kit)
2010-02-05 09:54:40 utc kennethkalmer there will be a place and time though :)
2010-02-05 09:54:57 utc kennethkalmer i have some spots where I would want to launch a process via amqp, still have implement it though
2010-02-05 09:58:49 utc anb_ in my case it's either I launch through rest or through amqp.. i'll see
2010-02-05 10:28:06 utc anb_ Hello tosch_le
2010-02-05 10:28:14 utc tosch_le hi anthoine
2010-02-05 10:28:56 utc kennethkalmer hi tosch_le
2010-02-05 10:29:06 utc kennethkalmer thanks for the message, glad you like the changes
2010-02-05 10:29:17 utc jmettraux hi Torsten
2010-02-05 10:33:14 utc tosch_le yeah, i can drop my gist now -- rk does the same it gives some nice peep holes into running process instances...
2010-02-05 10:33:52 utc jmettraux guys, don't forget to CC the mailing list
2010-02-05 10:39:55 utc tosch_le ACTION will post some info on the ml next week
2010-02-05 10:40:14 utc jmettraux great
2010-02-05 10:53:20 utc tosch_le kenneth: just two (related) feature requests for rk: i'd like a store_participant method within RuoteKit module (RuoteKit.store_participant) and not just as Helper. And I suppose John likes to see the method updated to use StorageParticipant.new instead of the plist.lookup method
2010-02-05 10:54:04 utc jmettraux I'm open to proposal
2010-02-05 10:54:08 utc jmettraux s
2010-02-05 10:54:12 utc tosch_le (would do them by myself, but i'm not in the office today.
2010-02-05 10:54:39 utc kennethkalmer i'll have a look at it :)
2010-02-05 12:42:12 utc anb_ kenneth ?
2010-02-05 12:42:43 utc kennethkalmer yo
2010-02-05 12:42:54 utc anb_ does the catchall in ruote-kit overides any previously registered participant ?
2010-02-05 12:44:50 utc anb_ i'm not even sure my question makes any sense
2010-02-05 12:48:35 utc kennethkalmer it does
2010-02-05 12:49:09 utc kennethkalmer the question does
2010-02-05 12:49:16 utc kennethkalmer ACTION on the phone
2010-02-05 12:50:44 utc anb_ np
2010-02-05 12:51:20 utc kennethkalmer i pushed up changes last night that stopped the automatic catchall participant from being registered
2010-02-05 12:51:31 utc kennethkalmer because it registers first in the participant list
2010-02-05 12:51:36 utc kennethkalmer with a pattern of '.*'
2010-02-05 12:51:55 utc kennethkalmer so anything that gets registered afterwards is never detected
2010-02-05 12:52:42 utc kennethkalmer does it make sense?
2010-02-05 12:54:19 utc anb_ I think, so even if the register participant is called before the configure_catchall, the catch all will be first in list with .* ?
2010-02-05 13:15:35 utc anb_ forget my last question :)
2010-02-05 13:15:36 utc anb_ thx
2010-02-05 13:18:22 utc wayneeseguin kennethkalmer: rvm update --head; rvm 1.9.1%rails3 && curl -L http://bit.ly/bJ3VIgĀ -o rails3.gems && rvm gems load rails3.gems
2010-02-05 13:18:24 utc wayneeseguin :)
2010-02-05 13:18:44 utc kennethkalmer saw the tweet
2010-02-05 13:18:47 utc kennethkalmer gonna give it a shot :)
2010-02-05 13:18:53 utc kennethkalmer how are you wayneeseguin ?
2010-02-05 13:19:01 utc kennethkalmer rooibos ?
2010-02-05 13:23:25 utc wayneeseguin kennethkalmer: oh yes please! Add some honeybush ;)
2010-02-05 13:23:28 utc wayneeseguin mmmmmmmmm
2010-02-05 13:23:55 utc kennethkalmer wayneeseguin meet Anthoine, anb_ meet Wayne (aka Mr rvm)
2010-02-05 13:24:17 utc kennethkalmer ACTION emits rooibos
2010-02-05 13:24:17 utc anb_ Hello Wayne
2010-02-05 13:26:02 utc anb_ i'm hearing a lot of people talking about rvm, I should take a look :)
2010-02-05 13:30:40 utc kennethkalmer well worth it
2010-02-05 13:31:11 utc kennethkalmer this migration from 1.8.6 to 1.8.7 and beyond 1.9.1 really needs a tool like rvm
2010-02-05 13:38:43 utc anb_ in rk , I can just register participant in config.ru right ? I have no idea what I am doing wrong
2010-02-05 13:42:39 utc wayneeseguin :)
2010-02-05 13:42:55 utc wayneeseguin anb_: if you have questions you can leave messages for me in #rvm
2010-02-05 13:43:15 utc anb_ http://gist.github.com/295791
2010-02-05 13:43:29 utc anb_ thanks Wayne
2010-02-05 13:44:00 utc wayneeseguin kennethkalmer: we've been using it for JRuby apps also ;)
2010-02-05 13:44:34 utc kennethkalmer wayneeseguin: i wanna test rubinius & macruby
2010-02-05 13:44:39 utc kennethkalmer anb_: having a look
2010-02-05 13:44:52 utc wayneeseguin kennethkalmer: Don't forget maglev ;)
2010-02-05 13:44:59 utc kennethkalmer anb_: config.ru looks perfect
2010-02-05 13:45:28 utc kennethkalmer no messages going out ?
2010-02-05 13:45:55 utc kennethkalmer iirc you can add AMQP.settings[:verbose] = true or AMQP.settings[:log] = true
2010-02-05 13:46:16 utc kennethkalmer either way it dumps a ton of verbose AMQP chatter to the console for inspection
2010-02-05 13:47:15 utc anb_ yes, actually I can see the amqp init sequence when I start rack but no messages when my process is on the participant
2010-02-05 13:47:36 utc kennethkalmer can you gist a sample process so I can mirror it ?
2010-02-05 13:49:50 utc anb_ sure : http://gist.github.com/295795 it's a three participant sequence process, one echo, one amqp, one echo
2010-02-05 13:53:35 utc anb_ stop I sent you the wrong process
2010-02-05 13:54:22 utc anb_ ok, I updated http://gist.github.com/295795
2010-02-05 14:18:52 utc kennethkalmer anb_: will have a look a bit later, having server emergencies to deal with :/
2010-02-05 14:19:22 utc anb_ sure :)