ruote log_2010-07-30

2010-07-30 01:22:42 utc dhf JMettraux: Launching a new workflow from a running one. Does the new one pick up the same workitems? if not how can I get it to do so?
2010-07-30 01:23:06 utc jmettraux dhf: engine.launch(pdef, fields)
2010-07-30 01:23:25 utc jmettraux engine.launch(pdef, original_workitem.fields)
2010-07-30 01:23:32 utc jmettraux a variation on this
2010-07-30 01:24:24 utc jmettraux fields being just a JSONifiable hash
2010-07-30 01:26:02 utc dhf thanks, got it. Keep thinking things are more complex than you made them. Should just think what is the easiest way and that is most likely how you did it.
2010-07-30 01:26:26 utc jmettraux :-)
2010-07-30 07:17:46 utc tosch_le hello jmettraux!
2010-07-30 07:18:03 utc jmettraux tosch_le: hello ! Back from the sea ?
2010-07-30 07:18:10 utc tosch_le just having a look at your recent (enormous) work on rk
2010-07-30 07:18:22 utc tosch_le something like that, yeah.
2010-07-30 07:18:37 utc jmettraux :-) hope you liked it
2010-07-30 07:18:52 utc tosch_le was lost in seas of php and lacking facebook documentation :-(
2010-07-30 07:18:59 utc jmettraux aaaaaaaaaaaaargh
2010-07-30 07:19:05 utc jmettraux sorry
2010-07-30 07:19:14 utc tosch_le never mind
2010-07-30 07:19:36 utc tosch_le it's delighting to read some nice ruby code for a change
2010-07-30 07:19:43 utc jmettraux :)
2010-07-30 07:19:44 utc tosch_le so thanks for your work
2010-07-30 07:19:53 utc jmettraux it's far from over ;)
2010-07-30 07:20:49 utc jmettraux by the way, what's your favourite a) def toto( a ) OR b) def toto (a) OR c) def toto(a) ?
2010-07-30 07:20:50 utc tosch_le just wanted to note that there's a minor pitfall in the Gemfile
2010-07-30 07:21:08 utc jmettraux ~/ruote
2010-07-30 07:21:15 utc tosch_le exactly
2010-07-30 07:21:27 utc jmettraux let me fix that immediately
2010-07-30 07:21:59 utc tosch_le my preference is c), but a) is nice, too. i don't like b, though
2010-07-30 07:23:09 utc jmettraux a) is killing me, and I don't remember where I picked the b) habit
2010-07-30 07:24:10 utc jmettraux Gemfile fix pushed
2010-07-30 07:25:01 utc jmettraux I'm going to do /participants as well, I've got a few ideas for it
2010-07-30 07:25:29 utc tosch_le thanks
2010-07-30 07:26:27 utc tosch_le i'll help with some testing
2010-07-30 07:26:35 utc jmettraux great :-)
2010-07-30 07:39:37 utc tosch_le mostly nice writeup: http://pub.cozmixng.org/~the-rwiki/rw-cgi.rb?cmd=view;name=RubyCodingConvention
2010-07-30 07:41:02 utc jmettraux :)
2010-07-30 07:43:54 utc tosch_le btw.: my original spec for /participants, if it's any help: http://gist.github.com/500101
2010-07-30 07:44:14 utc jmettraux muchas gracias !
2010-07-30 07:44:24 utc jmettraux I will integrate it
2010-07-30 07:49:11 utc tosch_le there seems to be a problem with rufus-json and json-pure 1.4.3 in ruby 1.9.1-p378
2010-07-30 07:49:27 utc tosch_le undefined method `generate' for #
2010-07-30 07:49:27 utc tosch_le /home/tsc/.rvm/gems/ruby-1.9.1-p378@ruote-kit/gems/json_pure-1.4.3/lib/json/common.rb:212:in `generate'
2010-07-30 07:49:27 utc tosch_le /home/tsc/.rvm/gems/ruby-1.9.1-p378@ruote-kit/gems/rufus-json-0.2.4/lib/rufus/json.rb:36:in `block in '
2010-07-30 07:50:01 utc jmettraux yes
2010-07-30 07:50:06 utc jmettraux json-pure is the problem
2010-07-30 07:50:09 utc jmettraux ;-)
2010-07-30 07:50:27 utc tosch_le that doesn't surprise me
2010-07-30 07:51:07 utc tosch_le just wondering why json-pure is used even when yajl-ruby is installed
2010-07-30 07:52:00 utc jmettraux weird
2010-07-30 07:52:33 utc tosch_le no, it's the spec_helper.rb
2010-07-30 07:52:37 utc jmettraux and the Gemfile says 'yajl'
2010-07-30 07:52:44 utc tosch_le line 14: "require 'json'"
2010-07-30 07:53:00 utc jmettraux argh
2010-07-30 07:53:13 utc jmettraux let me change that
2010-07-30 07:53:18 utc tosch_le although the bundler stuff is required beforehand and that should load yajl...
2010-07-30 07:54:44 utc jmettraux running specs...
2010-07-30 07:55:13 utc tosch_le me too… ;-)
2010-07-30 07:55:30 utc jmettraux http://github.com/jmettraux/ruote-kit/commit/e9493722471974257b1c9179dc7ced7a4d18b8b7
2010-07-30 08:05:18 utc tosch_le that helps a lot
2010-07-30 08:09:01 utc tosch_le bundler is awesome: http://github.com/tosch/ruote-kit/commit/8fab11005ea45befbbf36bba6e2d20b3fb9c15b4
2010-07-30 08:09:23 utc jmettraux +1
2010-07-30 08:10:08 utc jmettraux oh cool
2010-07-30 08:10:33 utc jmettraux now, how can I incorporate your change
2010-07-30 08:10:42 utc jmettraux should I merge, rebase or cherry-pick ?
2010-07-30 08:11:10 utc tosch_le if you have unpublished commits in your local repo, i would rebase
2010-07-30 08:12:00 utc tosch_le in all other cases, merging will be more safe, i suppose
2010-07-30 08:12:34 utc jmettraux yes, merged
2010-07-30 08:13:00 utc jmettraux many thanks !
2010-07-30 08:13:24 utc jmettraux 80 deletions, impressive
2010-07-30 08:14:02 utc jmettraux feel free to commit your participant spec
2010-07-30 08:16:48 utc tosch_le i ever wondered how to get rid of this double cross checking on Gemfile and gemspec. now i know :)
2010-07-30 08:18:07 utc jmettraux :)
2010-07-30 08:19:07 utc jmettraux I have to say that I really like Kenneth's _ruote/ idea
2010-07-30 08:19:26 utc tosch_le me too.
2010-07-30 08:20:05 utc tosch_le especially when using the gem version it's really easy to plug ruote in rails or any other rack app
2010-07-30 08:20:13 utc tosch_le s/in/into
2010-07-30 08:20:16 utc jmettraux +1
2010-07-30 08:25:51 utc jmettraux about the JSON output, I went with a set of links at the root and a set of links per object
2010-07-30 08:26:28 utc tosch_le i've seen that, it looks very sane to me
2010-07-30 08:26:47 utc jmettraux wunderbar
2010-07-30 08:27:16 utc tosch_le hmm, is there a ruby-debug for ruby 1.9.2?
2010-07-30 08:27:40 utc tosch_le /home/tsc/.rvm/gems/ruby-1.9.2-preview1@ruote-kit/gems/ruby-debug-base19-0.11.23/lib/ruby_debug.so: undefined symbol: ruby_current_thread
2010-07-30 08:27:42 utc tosch_le :(
2010-07-30 08:28:05 utc jmettraux ouch, I've seen that, made me go back to 1.8.7/1.9.1
2010-07-30 08:28:40 utc tosch_le seems to be best for the moment, i suppose
2010-07-30 08:29:21 utc tosch_le 1.8.7 (ree) and 1.9.1-p378 are both spec-green for me
2010-07-30 08:29:35 utc jmettraux thanks !
2010-07-30 08:34:04 utc tosch_le i like your shared examples for the specs with an engine
2010-07-30 08:34:10 utc tosch_le much more readable
2010-07-30 08:34:39 utc jmettraux ah yes, the :type => :engine thing did not work
2010-07-30 08:36:45 utc tosch_le just pushed the participants spec: http://github.com/tosch/ruote-kit/commit/f811450726d2955fbe60020d373fed68758a78c6
2010-07-30 08:37:18 utc jmettraux thanks !
2010-07-30 08:38:05 utc tosch_le never mind
2010-07-30 08:39:58 utc jmettraux just pushed a change about the workitems rels
2010-07-30 08:46:08 utc jmettraux I think I will go "def toto(x)" and "object.call(x, y)" for the whole rk
2010-07-30 08:46:24 utc jmettraux since we're working both on it
2010-07-30 08:47:07 utc tosch_le i'm flexible, so choose your favourite way
2010-07-30 08:47:34 utc jmettraux my policy was to use Kenneth's convention, since it's his baby
2010-07-30 08:47:57 utc tosch_le i know
2010-07-30 08:48:52 utc jmettraux just pushed a tiny change in the participants spec (and a whitespace removal)
2010-07-30 08:50:23 utc jmettraux tosch_le: thanks for everything, I have to get back home
2010-07-30 08:50:31 utc tosch_le bye
2010-07-30 08:50:37 utc jmettraux it's good to have you back from the PHP world
2010-07-30 08:50:43 utc tosch_le :)
2010-07-30 09:23:47 utc jmettraux tosch_le: really ? more readable ?
2010-07-30 09:23:49 utc jmettraux ;-)
2010-07-30 09:25:00 utc tosch_le nearly white on white just isn't readable for me. bad eyes and/or display perhaps ;-)
2010-07-30 09:25:23 utc jmettraux OK, sold
2010-07-30 09:25:29 utc tosch_le i like the new design, though
2010-07-30 09:25:40 utc tosch_le it's very "clean"
2010-07-30 09:25:48 utc jmettraux ah thanks !
2010-07-30 09:26:16 utc jmettraux still don't know where to position the footer yet
2010-07-30 09:26:27 utc jmettraux still have to show it to my designer
2010-07-30 09:26:43 utc jmettraux I'm sure he'll hate the header though
2010-07-30 09:27:26 utc tosch_le i was/am unsure, too. text on text is seldom a very good idea
2010-07-30 09:27:48 utc jmettraux hence the white-ish
2010-07-30 09:27:56 utc jmettraux but it's all just CSS
2010-07-30 09:28:04 utc jmettraux looking forward to your next commits
2010-07-30 09:28:15 utc jmettraux ciao !