| 2010-03-03 01:15:25 utc | hassox | hey jmettraux |
| 2010-03-03 01:15:27 utc | hassox | how are you mate? |
| 2010-03-03 01:15:40 utc | jmettraux | hassox: hi ! Doing fine, how about you ? |
| 2010-03-03 01:15:44 utc | hassox | good thanx :D |
| 2010-03-03 01:16:02 utc | hassox | I had a question that in all the ruby world, only your name came to my mind ;) |
| 2010-03-03 01:16:15 utc | jmettraux | ok :) |
| 2010-03-03 01:16:23 utc | hassox | just wondering if you know of a lib for dealing with swift messages |
| 2010-03-03 01:16:37 utc | jmettraux | sorry, no :( |
| 2010-03-03 01:16:43 utc | hassox | np |
| 2010-03-03 01:16:55 utc | hassox | just thought I'd ask ;) |
| 2010-03-03 01:16:58 utc | hassox | how's things going |
| 2010-03-03 01:16:59 utc | jmettraux | maybe Java / Jruby |
| 2010-03-03 01:17:18 utc | jmettraux | fine fine, I've seen you're very active on github these days |
| 2010-03-03 01:17:39 utc | hassox | I am? |
| 2010-03-03 01:17:46 utc | hassox | guess I'm just trying to tidy up a bit |
| 2010-03-03 01:17:54 utc | hassox | I'd like to get warden finished |
| 2010-03-03 01:18:01 utc | hassox | to 1.0 so I can implement authorizations |
| 2010-03-03 01:18:06 utc | hassox | I need them for a project |
| 2010-03-03 01:18:32 utc | jmettraux | :) |
| 2010-03-03 01:19:18 utc | hassox | how goes ruote? |
| 2010-03-03 01:19:24 utc | hassox | I havne't played for a while |
| 2010-03-03 01:19:37 utc | jmettraux | doing fine, slowly making it better |
| 2010-03-03 01:20:06 utc | hassox | :) |
| 2010-03-03 01:20:16 utc | hassox | ur using v2 at work? |
| 2010-03-03 01:20:32 utc | jmettraux | yes |
| 2010-03-03 01:21:10 utc | jmettraux | tracking the status of electronic boards through tests, recalls, and stuff |
| 2010-03-03 01:21:18 utc | hassox | nice :D |
| 2010-03-03 01:21:24 utc | hassox | multi-process? |
| 2010-03-03 01:21:37 utc | jmettraux | yes, depending on the board flavour |
| 2010-03-03 01:21:55 utc | hassox | sweet :D |
| 2010-03-03 01:22:20 utc | jmettraux | then I have a project with Kenneth, it's about auditing loans and grants requests |
| 2010-03-03 01:23:06 utc | hassox | can you add new rules on the fly? |
| 2010-03-03 01:23:27 utc | jmettraux | short answer : yes |
| 2010-03-03 01:24:40 utc | hassox | is that yes with a but |
| 2010-03-03 01:24:42 utc | hassox | ? |
| 2010-03-03 01:24:49 utc | jmettraux | well, it depends, |
| 2010-03-03 01:24:57 utc | jmettraux | you can modify processes on the fly |
| 2010-03-03 01:25:06 utc | jmettraux | or use processes that are loose enough |
| 2010-03-03 01:25:38 utc | jmettraux | or delegate decisions/rules to decision participants (http://jmettraux.wordpress.com/2010/02/17/ruote-and-decision-tables/) |
| 2010-03-03 01:25:54 utc | jmettraux | or have processes that are short-lived and multiple |
| 2010-03-03 01:26:18 utc | jmettraux | or have many sub-processes called at will from a master, more static, main process |
| 2010-03-03 01:26:20 utc | hassox | I read that article :) |
| 2010-03-03 01:26:23 utc | jmettraux | :) |
| 2010-03-03 01:26:26 utc | hassox | it looks very useful |
| 2010-03-03 01:26:59 utc | jmettraux | even if you don't use ruote, I hope the articles and ideas are re-usable |
| 2010-03-03 01:27:53 utc | jmettraux | Wayne is super busy on #rvm |
| 2010-03-03 01:28:06 utc | wayneeseguin | whatusp? |
| 2010-03-03 01:28:08 utc | wayneeseguin | hassox: ! |
| 2010-03-03 01:28:16 utc | jmettraux | Hi Wayne ! |
| 2010-03-03 01:28:19 utc | wayneeseguin | hihi! |
| 2010-03-03 01:29:07 utc | wayneeseguin | jmettraux: What brought on that comment out of curiosity? |
| 2010-03-03 01:29:32 utc | jmettraux | wayneeseguin: I impressed our web designer the other day by doing a "rvm implode" on his machine |
| 2010-03-03 01:29:40 utc | wayneeseguin | LOL!!! |
| 2010-03-03 01:30:11 utc | wayneeseguin | jmettraux: next time show him |
| 2010-03-03 01:30:16 utc | wayneeseguin | 'rvm seppuku' |
| 2010-03-03 01:30:17 utc | wayneeseguin | ;) |
| 2010-03-03 01:30:32 utc | jmettraux | wayneeseguin: chatting with Hassox and since he's a connaissance of yours |
| 2010-03-03 01:30:44 utc | wayneeseguin | hai! |
| 2010-03-03 01:30:45 utc | jmettraux | :) unfortunately the rvm was too old for a seppuku |
| 2010-03-03 01:30:51 utc | wayneeseguin | rvm update --head |
| 2010-03-03 01:30:54 utc | wayneeseguin | rvm seppuku |
| 2010-03-03 01:30:55 utc | wayneeseguin | lol |
| 2010-03-03 06:37:51 utc | talpink | anyone running into an issue with rufus scheduler working in development environment but seemingly being ignored in production env? |
| 2010-03-03 06:38:03 utc | jmettraux | hi |
| 2010-03-03 06:38:06 utc | talpink | hi |
| 2010-03-03 06:38:15 utc | talpink | how are you today? |
| 2010-03-03 06:38:16 utc | jmettraux | which rubies ? |
| 2010-03-03 06:38:19 utc | jmettraux | doing fine and you ? |
| 2010-03-03 06:38:32 utc | talpink | good.. let me get the specs for you. |
| 2010-03-03 06:39:17 utc | talpink | running ruby 1.8.6 |
| 2010-03-03 06:39:23 utc | talpink | it's actually a merb app. |
| 2010-03-03 06:39:29 utc | talpink | rather than rails. |
| 2010-03-03 06:39:31 utc | jmettraux | both server and dev ? |
| 2010-03-03 06:39:39 utc | talpink | yes.. |
| 2010-03-03 06:39:43 utc | jmettraux | which webserver are you using ? |
| 2010-03-03 06:39:44 utc | talpink | same server run in 2 modes. |
| 2010-03-03 06:40:07 utc | talpink | nginx+mongrel_merbs? |
| 2010-03-03 06:40:11 utc | jmettraux | ok |
| 2010-03-03 06:40:22 utc | jmettraux | did you turn on any error interception ? |
| 2010-03-03 06:40:44 utc | jmettraux | what is the ignored task supposed to do ? |
| 2010-03-03 06:40:45 utc | talpink | not yet.. i read about this on a forum thread. where can i put the override code? |
| 2010-03-03 06:41:10 utc | talpink | it launches some net-sftp calls and some file conversions. |
| 2010-03-03 06:41:18 utc | talpink | s3 pushes etc.. |
| 2010-03-03 06:41:33 utc | jmettraux | http://github.com/jmettraux/rufus-scheduler scroll to "exceptions in jobs" |
| 2010-03-03 06:41:39 utc | talpink | k |
| 2010-03-03 06:42:20 utc | jmettraux | you can also put some puts or p in the job to make it verbose : if it's completely silent, then the scheduler got ballistic |
| 2010-03-03 06:42:34 utc | jmettraux | if it's verbose to a certain point, it means there was an error |
| 2010-03-03 06:42:51 utc | talpink | right.. yes there are some puts right before.. |
| 2010-03-03 06:43:01 utc | talpink | where should i place the log exception method? |
| 2010-03-03 06:43:16 utc | jmettraux | where you initialize the scheduler |
| 2010-03-03 06:43:27 utc | talpink | just a sec. |
| 2010-03-03 06:46:10 utc | talpink | i will try a few suggestions and come back here. will you be in for a bit? |
| 2010-03-03 06:46:21 utc | talpink | see what i discover. |
| 2010-03-03 06:46:21 utc | jmettraux | like 3 hours |
| 2010-03-03 06:46:26 utc | talpink | cool. |
| 2010-03-03 06:47:10 utc | talpink | also, are there any issues with placing the a rufus command in a controller? |
| 2010-03-03 06:47:16 utc | talpink | so basically I'm saving a record.. |
| 2010-03-03 06:47:21 utc | jmettraux | it's suicidal |
| 2010-03-03 06:47:26 utc | jmettraux | ah |
| 2010-03-03 06:47:28 utc | jmettraux | sorry |
| 2010-03-03 06:47:30 utc | talpink | and then starting a new thread for rufus |
| 2010-03-03 06:47:38 utc | talpink | that's the issue? |
| 2010-03-03 06:47:43 utc | talpink | or one of them :)? |
| 2010-03-03 06:47:44 utc | jmettraux | starting a scheduler from a controller is pointless |
| 2010-03-03 06:47:58 utc | talpink | here's the scenario... |
| 2010-03-03 06:47:59 utc | jmettraux | you have to start it from an initializer |
| 2010-03-03 06:48:09 utc | jmettraux | adding schedules from a controller is OK |
| 2010-03-03 06:48:13 utc | jmettraux | but then |
| 2010-03-03 06:48:40 utc | jmettraux | some webserver like passenger spawn new processes, where the scheduler thread will vanish |
| 2010-03-03 06:48:55 utc | talpink | right.. that's what seems to be happening. |
| 2010-03-03 06:49:09 utc | jmettraux | are you using cron or every or at ? |
| 2010-03-03 06:49:13 utc | jmettraux | only cron ? |
| 2010-03-03 06:49:29 utc | talpink | im using schedule_in |
| 2010-03-03 06:49:34 utc | jmettraux | ok |
| 2010-03-03 06:49:39 utc | talpink | basically to start 1 second after a record is saved. |
| 2010-03-03 06:49:54 utc | talpink | to not hold up the save.. but then to start processing immediately after. |
| 2010-03-03 06:49:57 utc | jmettraux | why don't you use sleep 1 in that case ? |
| 2010-03-03 06:50:16 utc | jmettraux | Thread.new { sleep 1; start_processing } |
| 2010-03-03 06:50:21 utc | jmettraux | will do the job |
| 2010-03-03 06:50:26 utc | talpink | yeah, no need for rufus in that case? |
| 2010-03-03 06:50:31 utc | jmettraux | no need at tall |
| 2010-03-03 06:50:35 utc | jmettraux | at all |
| 2010-03-03 06:50:45 utc | talpink | will give it a shot. |
| 2010-03-03 06:50:48 utc | jmettraux | :) |
| 2010-03-03 06:50:55 utc | talpink | ill let you know how it goes. |
| 2010-03-03 06:50:57 utc | talpink | :) |
| 2010-03-03 06:51:03 utc | jmettraux | ok |
| 2010-03-03 06:51:08 utc | talpink | funny thing is... |
| 2010-03-03 06:51:09 utc | talpink | i had both. |
| 2010-03-03 06:51:17 utc | talpink | rufus wrapped around a thread and a sleep. |
| 2010-03-03 06:51:29 utc | talpink | overkill i guess. |
| 2010-03-03 06:51:31 utc | jmettraux | scary |
| 2010-03-03 06:51:35 utc | talpink | now.. |
| 2010-03-03 06:51:47 utc | talpink | so this is triggered by a save. |
| 2010-03-03 06:52:21 utc | talpink | but if i want to have rufus check the queue of unprocessed files... then i should setup an every somewhere in the init of the app right? |
| 2010-03-03 06:52:33 utc | talpink | like every 4 minutes or so... |
| 2010-03-03 06:52:35 utc | jmettraux | I think so |
| 2010-03-03 06:52:46 utc | talpink | ok. i will play. |
| 2010-03-03 06:52:48 utc | jmettraux | not sure about the 4 minutes |
| 2010-03-03 06:52:55 utc | talpink | merci |
| 2010-03-03 06:52:58 utc | jmettraux | ok, coffee time for me, ttyl |
| 2010-03-03 06:52:59 utc | jmettraux | de rien |
| 2010-03-03 06:53:08 utc | talpink | bye |
| 2010-03-03 07:08:21 utc | jmettraux | back |
| 2010-03-03 07:14:59 utc | tosch_le | hi guys! |
| 2010-03-03 07:15:18 utc | jmettraux | hi ! |
| 2010-03-03 07:17:39 utc | tosch_le | specced our discussion from yesterday: http://gist.github.com/320403 |
| 2010-03-03 07:18:36 utc | jmettraux | I think I like your "catchall MyParticipant" better than my "participant catchall MyParticipant" |
| 2010-03-03 07:19:02 utc | jmettraux | well |
| 2010-03-03 07:19:04 utc | tosch_le | but an implemantation is not that easy as there is no RuotKit.engine before the configuration is done |
| 2010-03-03 07:19:13 utc | jmettraux | ah ok |
| 2010-03-03 07:19:30 utc | tosch_le | so i believe dropping that idea is best... |
| 2010-03-03 07:19:51 utc | jmettraux | the participant method would register in a temporary array I guess |
| 2010-03-03 07:20:49 utc | tosch_le | i would have saved the block given to the RuoteKit::Configuration#register method in the conf and called it just after the initialization of the engine |
| 2010-03-03 07:21:11 utc | tosch_le | but that somehow feels like overkill |
| 2010-03-03 07:21:31 utc | jmettraux | you still have to provide a "participant" method |
| 2010-03-03 07:22:31 utc | tosch_le | that's quite easy. i've updated the gist with my first (not working) try |
| 2010-03-03 07:22:59 utc | tosch_le | (didn't think of the missing engine first) |
| 2010-03-03 07:23:15 utc | jmettraux | looks cool |
| 2010-03-03 07:23:37 utc | tosch_le | took the idea from the rubydsl parser in ruote ;-) |
| 2010-03-03 07:24:14 utc | jmettraux | :) |
| 2010-03-03 07:27:32 utc | tosch_le | so wdyt? shall we drop Configuration#register? or should i try saving the block? |
| 2010-03-03 07:29:55 utc | jmettraux | thinking... |
| 2010-03-03 07:31:16 utc | jmettraux | ruote 2.1.x has participants stored in the storage |
| 2010-03-03 07:31:23 utc | jmettraux | their configuration at least |
| 2010-03-03 07:31:34 utc | jmettraux | so that workers can grab them |
| 2010-03-03 07:32:35 utc | jmettraux | maybe ruote-kit's configure should directly register the participants in the participant-list without passing via the engine |
| 2010-03-03 07:33:11 utc | jmettraux | but well, there is always an engine in ruote-kit |
| 2010-03-03 07:33:42 utc | jmettraux | so evaling the block at the end of the RuoteKit.configure block sounds OK |
| 2010-03-03 07:35:02 utc | tosch_le | directly registering won't be possible in every case, too: that would require the storage to be configured already and we can't be sure about that |
| 2010-03-03 07:35:17 utc | jmettraux | OK |
| 2010-03-03 07:38:05 utc | jmettraux | tosch_le: do you have experience with rails' i18n ? |
| 2010-03-03 07:38:19 utc | tosch_le | a bit |
| 2010-03-03 07:38:26 utc | tosch_le | but rails 2.x only |
| 2010-03-03 07:38:35 utc | jmettraux | OK, mind if I fire a question ? |
| 2010-03-03 07:38:45 utc | tosch_le | no, fire away |
| 2010-03-03 07:39:13 utc | jmettraux | I want to do something like t('workflow.launch', :wfid => new_wfid) |
| 2010-03-03 07:39:42 utc | jmettraux | how could I format the message ? "you just launched {{wfid}}" ? |
| 2010-03-03 07:39:55 utc | jmettraux | {{options[:wfid]}} |
| 2010-03-03 07:41:00 utc | tosch_le | the first variant |
| 2010-03-03 07:41:40 utc | jmettraux | aaah, thanks ! |
| 2010-03-03 07:42:18 utc | jmettraux | finally found something about it : http://www.slideshare.net/jacobeus/internationalization-in-rails-22 |
| 2010-03-03 07:42:23 utc | tosch_le | rl example: overall_price: Gesamtpreis: {{price}} inkl. MwSt. |
| 2010-03-03 07:42:49 utc | tosch_le | add "" at appropriate places... |
| 2010-03-03 07:43:15 utc | jmettraux | :) thanks ! |
| 2010-03-03 07:45:23 utc | tosch_le | never mind. unfortunately, the docs on rails' i18n are not the best. you should have found the information you searched in |
| 2010-03-03 07:45:25 utc | tosch_le | I18n::Backend::Simple#interpolate |
| 2010-03-03 07:45:27 utc | tosch_le | ... |
| 2010-03-03 07:45:40 utc | jmettraux | :) |
| 2010-03-03 07:46:49 utc | tosch_le | btw.: if you need some default locales: http://github.com/svenfuchs/rails-i18n/tree/master/rails/locale/ |
| 2010-03-03 07:47:10 utc | jmettraux | already copied the ja ones, thanks ! |
| 2010-03-03 08:48:32 utc | tosch_le | pushed RuoteKit::Configuration#register to my fork |
| 2010-03-03 08:48:42 utc | jmettraux | well done ! |
| 2010-03-03 08:50:06 utc | tosch_le | not too happy about the catchall method, it always needs a participant class while in most cases this just will be Ruote::StorageParticipant |
| 2010-03-03 08:50:28 utc | jmettraux | catchall for short ? |
| 2010-03-03 08:51:13 utc | tosch_le | yeah, but the possibility to use another participant implementation than StorageParticipant is appealing, too. |
| 2010-03-03 08:51:23 utc | tosch_le | so some default would be fine. |
| 2010-03-03 08:51:50 utc | tosch_le | ACTION wonders if there is a way to check if *args is emtpy... |
| 2010-03-03 08:52:20 utc | jmettraux | args.empty? |
| 2010-03-03 08:52:29 utc | jmettraux | it's an array |
| 2010-03-03 08:54:11 utc | anb_ | Hello everyone |
| 2010-03-03 08:54:19 utc | jmettraux | anb_: hello ! |
| 2010-03-03 08:54:38 utc | anb_ | how are you ? |
| 2010-03-03 08:54:48 utc | jmettraux | doing fine and you ? |
| 2010-03-03 08:56:30 utc | tosch_le | hi anb_! |
| 2010-03-03 08:57:14 utc | anb_ | pretty good thx |
| 2010-03-03 09:11:58 utc | jmettraux | beer calling |
| 2010-03-03 09:12:01 utc | jmettraux | ttyl ! |
| 2010-03-03 09:19:03 utc | anb_ | time to read the rspec doc :) |
| 2010-03-03 09:37:56 utc | tosch_le | rspec is quite fun. the rspec book (beta at the pragmatic programmers) gave me a good and worth to read introduction |
| 2010-03-03 10:11:22 utc | anb_ | the book is available online ? |
| 2010-03-03 10:14:06 utc | tosch_le | http://www.pragprog.com/titles/achbd/the-rspec-book |
| 2010-03-03 10:15:12 utc | anb_ | thx |
| 2010-03-03 10:57:11 utc | tosch_le | jmettraux: is there any brewerage worthy to be called 'beer' in japan? ;-) |
| 2010-03-03 10:57:54 utc | jmettraux | :) the humidity level here calls for appropriate beers |
| 2010-03-03 10:58:47 utc | jmettraux | point taken |
| 2010-03-03 11:00:02 utc | tosch_le | RuoteKit.configure{|c| c.register{catchall}} |
| 2010-03-03 11:00:04 utc | tosch_le | works now and registers a storage participant catchall |
| 2010-03-03 11:00:53 utc | jmettraux | :) |
| 2010-03-03 11:00:58 utc | jmettraux | well done ! |
| 2010-03-03 11:20:47 utc | jmettraux | I will probably integrate that in my app tomorrow |
| 2010-03-03 14:28:03 utc | jmettraux | good evening guys ! |
| 2010-03-03 15:53:14 utc | der-dokctor | hello :) |