ruote tmp/log_2011-02-18.html

2011-02-18 05:33:54 utc sandbox hello again
2011-02-18 05:34:22 utc jmettraux sandbox: hello !
2011-02-18 05:35:06 utc sandbox i wanted to get your thoughts on something
2011-02-18 05:35:12 utc jmettraux ok
2011-02-18 05:35:34 utc sandbox if you have a storage participant that is supposed to wait on a notification from someone
2011-02-18 05:36:04 utc sandbox how do you go about opening that participant back up when it gets the notification and then needs to respond back to the engine
2011-02-18 05:36:17 utc sandbox s/respond/reply
2011-02-18 05:36:52 utc jmettraux usually with storage participants, you grab the workitem, modify it and then call the reply(workitem) method of the storage participant
2011-02-18 05:37:05 utc jmettraux wi = engine.storage_participant[fei]
2011-02-18 05:37:14 utc jmettraux wi.fields['hello'] = 'world'
2011-02-18 05:37:24 utc jmettraux engine.storage_participant.reply(wi)
2011-02-18 05:37:31 utc jmettraux that's the "vanilla" way
2011-02-18 05:37:32 utc sandbox yeah that is what i am currently doing
2011-02-18 05:38:19 utc sandbox i added some convenience methods to my class and it would nice to initialize the class so that it can use those methods
2011-02-18 05:39:15 utc jmettraux you have a special StorageParticipant implementation ?
2011-02-18 05:39:50 utc sandbox just a subclass which added some convenience methods to operate on workitem
2011-02-18 05:40:32 utc jmettraux you could a) re-open StorageParticipant to add your convenience methods
2011-02-18 05:41:19 utc jmettraux b) do my_storage_participant = MyStorageParticipant.new(engine_or_worker_or_storage)
2011-02-18 05:41:47 utc jmettraux c) I could have an engine option were you can specify the storage participant class
2011-02-18 05:41:59 utc sandbox ah interesting
2011-02-18 05:42:11 utc sandbox b) seems like what i would want
2011-02-18 05:42:33 utc jmettraux ok
2011-02-18 05:42:34 utc sandbox a) is also closest to what i am doing already
2011-02-18 05:42:38 utc sandbox i didn't want to reopen the class
2011-02-18 05:42:52 utc sandbox so i subclassed it
2011-02-18 05:46:09 utc sandbox that is helpful thank you
2011-02-18 05:46:22 utc jmettraux ah, you're welcome
2011-02-18 05:46:29 utc jmettraux Brian is a co-worker of you ?
2011-02-18 05:46:47 utc sandbox i haven't had time to continue working on the redis backend but i think next week i'd like to show you the message queue for it
2011-02-18 05:47:33 utc jmettraux ok, I myself didn't have the time to look at your improvements, I was busy fixing ruote-dm (and I wrote ruote-sequel at the same time)
2011-02-18 05:50:42 utc sandbox what's ruote-sequel?
2011-02-18 05:51:59 utc sandbox so basically uses generic sql backend?
2011-02-18 05:52:45 utc jmettraux yes, it uses http://sequel.rubyforge.org/ while ruote-dm uses http://datamapper.org/ sequel seems faster
2011-02-18 06:08:22 utc sandbox oh yes brian is a co-worker of mine, i think he might be considered my boss in some ways but it's really hard to tell
2011-02-18 06:09:36 utc sandbox we are organizationally flat but i do get a lot of advice from him
2011-02-18 06:12:29 utc jmettraux now realizing you have at least two Brians working with you
2011-02-18 06:12:36 utc sandbox oh yeah
2011-02-18 06:12:39 utc sandbox we
2011-02-18 06:12:44 utc sandbox have 2 brians
2011-02-18 06:16:25 utc sandbox we have 2 of almost every name in our company
2011-02-18 06:16:32 utc sandbox it is ultimate redundancy
2011-02-18 06:17:38 utc jmettraux :)
2011-02-18 11:54:40 utc kennethkalmer hi jmettraux !
2011-02-18 11:54:43 utc kennethkalmer hi tosch_le !
2011-02-18 11:54:49 utc jmettraux hello !
2011-02-18 11:54:51 utc jmettraux coffee ?
2011-02-18 11:54:56 utc tosch_le hello folks!
2011-02-18 11:55:03 utc tosch_le i'd take one.
2011-02-18 11:55:06 utc kennethkalmer yes please !
2011-02-18 11:55:19 utc jmettraux ACTION emits coffee
2011-02-18 11:55:23 utc jmettraux how are you doing ?
2011-02-18 11:55:24 utc kennethkalmer ACTION consumes
2011-02-18 11:55:27 utc tosch_le ACTION happily consumes
2011-02-18 11:55:29 utc kennethkalmer well thanks, you guys ?
2011-02-18 11:55:51 utc tosch_le very well, thanks. a bit tired, though, need more sleep.
2011-02-18 11:56:11 utc kennethkalmer know the feeling
2011-02-18 11:56:11 utc jmettraux tosch_le: lots of learning ?
2011-02-18 11:56:28 utc tosch_le no, my son has a cold
2011-02-18 11:56:57 utc jmettraux ok, take good care of him
2011-02-18 11:57:23 utc kennethkalmer so I have a "naive" question guys, on rk
2011-02-18 11:57:42 utc tosch_le jmettraux: i'll do so
2011-02-18 11:57:50 utc kennethkalmer at present, what is the best way to deploy rk ? ...
2011-02-18 11:57:56 utc kennethkalmer in the rails app, as middleware
2011-02-18 11:58:02 utc kennethkalmer standalone, using rk-client
2011-02-18 11:58:09 utc kennethkalmer other suggestions ?
2011-02-18 11:58:18 utc tosch_le when using rails?
2011-02-18 11:58:40 utc kennethkalmer yep, 2.3.8 at present
2011-02-18 11:58:54 utc kennethkalmer finally replacing ruote-rest has now escalated to top priority
2011-02-18 11:59:52 utc tosch_le in the rails app, as middleware.
2011-02-18 12:00:25 utc tosch_le (although it isn't a middleware at all)
2011-02-18 12:00:29 utc kennethkalmer true
2011-02-18 12:00:49 utc kennethkalmer i just remember seeing a ticket about removing all mentions of middleware, hence my question
2011-02-18 12:01:40 utc tosch_le as you can't use another app for certain routes in rails 2.3.8, there's no other way to make /_ruote accessible
2011-02-18 12:02:18 utc tosch_le but there's also no need for the network overhead using rk-client (which is outdated, btw) would induce
2011-02-18 12:03:09 utc kennethkalmer also true, I got thinking about this a lot this week
2011-02-18 12:03:54 utc kennethkalmer i was thinking, for my setup with a ton of autonomous participants, and frequent deployments to the rails app, that separation of concerns might be better
2011-02-18 12:03:55 utc jmettraux I also have to work on making /_ruote not absolute
2011-02-18 12:04:33 utc kennethkalmer how does 'n daemon-kit generated project with rk bundled in sound ?
2011-02-18 12:05:08 utc tosch_le kennethkalmer: you could only use ruote within your rails app and have a standalone rk configured to use the same storage
2011-02-18 12:05:19 utc kennethkalmer tosch_le: +1
2011-02-18 12:05:25 utc kennethkalmer that was my next question :)
2011-02-18 12:05:36 utc kennethkalmer just so rusty
2011-02-18 12:05:44 utc kennethkalmer we're using ruote-couch for this project
2011-02-18 12:05:54 utc tosch_le or you could include rk within your rails app, but not stack it into the middleware stack
2011-02-18 12:06:13 utc tosch_le that way you'd have RuoteKit.engine, but not /_ruote
2011-02-18 12:06:22 utc tosch_le so many ways
2011-02-18 12:06:22 utc kennethkalmer even better
2011-02-18 12:06:29 utc kennethkalmer i know, i know
2011-02-18 12:06:47 utc kennethkalmer beautifully architected tools
2011-02-18 12:07:06 utc tosch_le what for would you need daemon-kit when running rk standalone?
2011-02-18 12:07:25 utc kennethkalmer well, easily deploy updates
2011-02-18 12:07:34 utc kennethkalmer that was the core issue for me with rr
2011-02-18 12:08:01 utc kennethkalmer so the most basic scenario is dk simply loads rk as a gem dependency and bootstraps the env for it
2011-02-18 12:08:11 utc kennethkalmer so rk can evolve on its own
2011-02-18 12:08:37 utc kennethkalmer without my project specific stuff cluttering a "copy" of rk
2011-02-18 12:08:43 utc tosch_le hey, rk is a rack app. i use a custum config.ru for that
2011-02-18 12:09:26 utc tosch_le have a look at the "Using the gem/Bundler" section of the readme
2011-02-18 12:09:44 utc kennethkalmer ACTION seems to be a victim of analysis paralysis...
2011-02-18 12:10:33 utc tosch_le +1 ;-)
2011-02-18 12:10:56 utc kennethkalmer man, thanks guys
2011-02-18 12:11:08 utc kennethkalmer glad we're all in such capable hands
2011-02-18 12:11:45 utc tosch_le gnah, i'm only standing on the shoulders of great men
2011-02-18 12:11:58 utc tosch_le :-)
2011-02-18 12:27:07 utc jmettraux kennethkalmer: are you going with ruote master ?
2011-02-18 12:27:40 utc kennethkalmer let me check
2011-02-18 12:28:58 utc jmettraux it has features that might interest you
2011-02-18 12:29:05 utc jmettraux engine.on_error : https://github.com/jmettraux/ruote/blob/814d3e1cde34a49b5763a59fc4ea2c966a5a78e9/test/functional/ft_49_engine_on_error.rb
2011-02-18 12:29:44 utc jmettraux https://github.com/jmettraux/ruote/blob/814d3e1cde34a49b5763a59fc4ea2c966a5a78e9/lib/ruote/engine.rb#L701-715
2011-02-18 12:30:07 utc jmettraux engine.on_terminate : https://github.com/jmettraux/ruote/blob/814d3e1cde34a49b5763a59fc4ea2c966a5a78e9/lib/ruote/engine.rb#L730-748
2011-02-18 12:30:22 utc kennethkalmer wow wow wow
2011-02-18 12:31:19 utc jmettraux :filter attribute : https://github.com/jmettraux/ruote/blob/c93b210d6e40d633ad6b46f4a2709a8d88e6a967/test/functional/ft_56_filter_attribute.rb
2011-02-18 12:31:57 utc jmettraux 'filter' expression : https://github.com/jmettraux/ruote/blob/c93b210d6e40d633ad6b46f4a2709a8d88e6a967/test/functional/eft_35_filter.rb
2011-02-18 12:32:45 utc jmettraux filter "commons" : https://github.com/jmettraux/ruote/blob/c93b210d6e40d633ad6b46f4a2709a8d88e6a967/test/unit/ut_22_filter.rb
2011-02-18 12:35:19 utc jmettraux launch_single : https://github.com/jmettraux/ruote/blob/c93b210d6e40d633ad6b46f4a2709a8d88e6a967/lib/ruote/engine.rb#L109-119
2011-02-18 12:43:54 utc kennethkalmer launch_single ftw
2011-02-18 12:44:49 utc kennethkalmer m(__)m
2011-02-18 12:44:54 utc kennethkalmer you've been a busy man indeed
2011-02-18 12:45:44 utc jmettraux tosch_le helped a lot
2011-02-18 12:46:08 utc kennethkalmer tosch_le: m(__)m
2011-02-18 13:22:53 utc kennethkalmer taking a stab in the dark here...
2011-02-18 13:23:07 utc kennethkalmer do you guys know of any tool to help document a rest api provided by rails ?
2011-02-18 13:23:43 utc tosch_le no idea, sorry
2011-02-18 13:23:55 utc jmettraux yes, rails
2011-02-18 13:24:35 utc kennethkalmer how do you mean ?
2011-02-18 13:24:37 utc jmettraux you can serve HTML representations that document the api
2011-02-18 13:25:30 utc kennethkalmer ah, it is already there, the client is just anal about it
2011-02-18 13:25:42 utc kennethkalmer they could just point activeresource to it and it should work
2011-02-18 13:25:45 utc kennethkalmer but no... :/
2011-02-18 13:26:34 utc tosch_le have to leave for an hour. bye!
2011-02-18 13:26:46 utc jmettraux bye !
2011-02-18 13:27:08 utc kennethkalmer bye !
2011-02-18 13:45:02 utc kennethkalmer i'm also heading out
2011-02-18 13:45:10 utc kennethkalmer thanks for the great info and excitement
2011-02-18 13:45:16 utc kennethkalmer see you guys next week
2011-02-18 13:45:21 utc kennethkalmer have a great weekend !
2011-02-18 13:52:07 utc jmettraux bye !
2011-02-18 14:33:28 utc tosch_le dirklectisch: welcome on #ruote!
2011-02-18 14:33:51 utc dirklectisch thanks tosch!
2011-02-18 14:34:12 utc dirklectisch actually it's also: welcome to IRC. :-)
2011-02-18 14:37:05 utc tosch_le :-)
2011-02-18 14:37:21 utc dirklectisch late to the party i know ;-)
2011-02-18 14:38:32 utc dirklectisch I have a project coming up where I want to use Ruote, So that's how I ended up here.
2011-02-18 14:39:05 utc dirklectisch You're the guy who made that sinatra wrapper right?
2011-02-18 14:39:21 utc tosch_le no, kennethkalmer made it, i'm just maintaining
2011-02-18 14:41:39 utc dirklectisch Ah ok. Well Ruote looks great. I have been reading bits and pieces about it for a while now. Can't wait to apply it somewhere.
2011-02-18 15:01:24 utc tosch_le thanks for the warm words, they're welcome :-)
2011-02-18 15:02:11 utc tosch_le if you have any questions, don't hesitate to ask. if no one answers here, please post to the mailing list
2011-02-18 15:04:03 utc dirklectisch Thank you, both for the warm welcome and the work on a great piece of software!
2011-02-18 15:04:45 utc tosch_le it's a pleasure!
2011-02-18 15:23:30 utc hallelujah Hello
2011-02-18 15:23:39 utc hallelujah How are you ?
2011-02-18 15:23:41 utc tosch_le hello hellujah!
2011-02-18 15:23:48 utc tosch_le fine, thanks. and you?
2011-02-18 15:23:52 utc hallelujah Hello tosch_le
2011-02-18 15:23:58 utc hallelujah I am fine thx
2011-02-18 15:24:16 utc hallelujah I just have a small question
2011-02-18 15:24:29 utc tosch_le please ask.
2011-02-18 15:24:37 utc hallelujah I don't understand what exactly does the launchitems option in ruote amqp receiver
2011-02-18 15:25:11 utc tosch_le oh no, sorry, i don't have a clue
2011-02-18 15:25:30 utc tosch_le never used ruote together with amqp
2011-02-18 15:26:05 utc hallelujah Thank you
2011-02-18 15:27:18 utc tosch_le but perhaps https://github.com/kennethkalmer/ruote-amqp/blob/master/lib/ruote-amqp/receiver.rb#L58-65 is helpful
2011-02-18 15:28:58 utc tosch_le as far as i understand the code, you can launch ruote workflow instances by putting a launchitem in an amqp queue
2011-02-18 15:42:52 utc hallelujah Thanks tosch_le for your link :)
2011-02-18 15:42:56 utc hallelujah taht was very helpful$
2011-02-18 15:43:24 utc tosch_le glad to be helpful :-)
2011-02-18 19:30:28 utc briahn10 hey there
2011-02-18 19:31:27 utc briahn10 what's the best way to run a ruby expression? make a participant to do it?
2011-02-18 19:31:42 utc briahn10 i want to do something like "wait '${count} * 1d"
2011-02-19 00:00:00 utc jmettraux memo briahn10: you can do wait "${count}d"