The web in a box - a next generation web framework for the Perl programming language

IRC log for #mojo, 2014-06-14

| Channels | #mojo index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:13 sri and done https://github.com/kraih/minion/commit/6ed3f101f6d489ec9ba65919c5958274e4d70bb0
00:14 sri makes the file backend a little more usable
00:16 hummeleBop1 joined #mojo
00:24 d4rkie joined #mojo
00:29 hummeleBop joined #mojo
00:31 cpan_mojo Minion 0.21 by Sebastian Riedel - http://metacpan.org/release/SRI/Minion-0.21 (depends on Mojolicious)
01:08 marty joined #mojo
01:23 marty joined #mojo
01:28 klapperl joined #mojo
01:45 marty joined #mojo
01:45 marty_ joined #mojo
02:06 marty joined #mojo
02:23 marty joined #mojo
03:04 russum joined #mojo
03:15 tempire 30 days seems a bit much
03:15 * tempire thinks 10
03:41 russum joined #mojo
04:11 meshl joined #mojo
04:30 russum joined #mojo
04:39 davido__ joined #mojo
04:56 russum joined #mojo
05:07 irq joined #mojo
07:02 moritz /w 13
07:02 moritz sorry
07:26 gnephiak joined #mojo
07:30 sh4 joined #mojo
07:34 arthas joined #mojo
08:07 Vandal joined #mojo
09:01 Adurah_ joined #mojo
09:02 mire joined #mojo
09:42 mire joined #mojo
09:46 irq joined #mojo
10:02 basiliscos joined #mojo
10:06 denis_boyun joined #mojo
10:13 gnephiak joined #mojo
10:13 denis_boyun_ joined #mojo
10:28 alnewkirk joined #mojo
10:34 cpan_mojo Mojolicious-Plugin-AssetPack 0.14 by Jan Henning Thorsen - http://metacpan.org/release/JHTHORSEN/Mojolicious-Plugin-AssetPack-0.14
10:35 irq_ joined #mojo
10:35 batman ^ a lot of new features \o/ :)
10:36 sh4|2 joined #mojo
10:56 batman wonder if this makes sense: https://github.com/jhthorsen/mojolicious-plugin-assetpack/pull/15 (.jsx support)
10:57 batman marcus: ^ got any input?
11:02 crab what's a jsx?
11:03 batman "JSX is a JavaScript XML syntax transform recommended for use with React"
11:03 batman so you can write things like: var element = <div className="appClass">Hello, React!</div>;
11:04 crab and element will be a dom node?
11:04 batman no. it's a "shadow" dom element used by react.js
11:04 batman meaning that it's much faster to create and manipulate, relative to a real dom elemnet
11:04 batman *element
11:04 batman it can be rendered to a read dom element though
11:05 crab ah, ok
11:05 batman React.renderComponent(<div className="appClass">Hello, React!</div>, document.getElementById('example'));
11:05 batman s/read/real/
11:14 basiliscos joined #mojo
11:31 crab sri: it's not just you, btw. i find the cgi thread slowly turning offensive too.
11:31 crab "ignorant", indeed.
11:46 shmuel joined #mojo
11:47 rem_lex|pivo joined #mojo
11:53 rem_lex| joined #mojo
12:09 rem_lex| joined #mojo
12:09 dod joined #mojo
12:20 basic6 joined #mojo
12:24 mire joined #mojo
12:29 batman crab: what's going on?
12:29 purl A complete clusterfuck.
12:31 stephan48 sri++ # Minion looks awesome
12:31 stephan48 currently migrating a project from gearman to minion for a test
13:00 stephan48 is there a way in Mango to check if the connection to the mongodb server is still there? i would like to disable the frontend when the mongodb can not be reached/no workers are running
13:16 batman stephan48: can't you just check the $err in callbacks?
13:17 stephan48 true i could do a call to the mongodb on each request to test its availability
13:18 batman stephan48: maybe $mango->db->command(bson_doc(ping => 1));
13:18 batman haven't tried it myself...
13:19 batman you should probably just do sensible error handling.
13:19 batman you never know when the database goes away
13:19 stephan48 thats right
13:19 stephan48 but my plan is to disable the frontend(the form to create jobs) and display a note when backend(mongo, worker) are not there
13:20 batman my plan would be to make sure mongo was always there...
13:20 batman s/was/is/
13:20 stephan48 best is to handle both cases :)
13:20 stephan48 but mh. i need to do a query to mongodb anyway(to fetch a joblist) so i could do this for status checking
13:21 batman sounds you're planning for mongodb to be down a lot
13:21 shmuel joined #mojo
13:21 stephan48 no
13:21 stephan48 its just a case i want to account for
13:24 batman then you should account for it in every callback.
13:25 gnephiak joined #mojo
13:27 * sri wonders what would make the minion tests fail on windows like this http://www.cpantesters.org/cpan/report/5e59f268-6c27-1014-9ffc-a44555012b15
13:28 sri is here some Storable quirk i need to be aware of?
13:33 crab it's the permission denied right at the top that matters, right?
13:34 marty joined #mojo
13:39 cpan_mojo Business-Payment-SwissESR 0.5.0 by Tobias Oetiker - http://metacpan.org/release/OETIKER/Business-Payment-SwissESR-0.5.0 (depends on Mojolicious)
13:40 sri hmm, i guess
13:44 sri it's strange there is nothing different regarding file handling from the mojo tests really
14:25 gnephiak joined #mojo
14:25 shmuel joined #mojo
14:36 jberger sri: I have seen that before
14:36 jberger Try requiring the newest version of Storable
14:37 jberger But that error was the reason that forkcall has pluggable serialize
14:40 sri jberger: the permission denied problem?
14:44 jberger Well the one I always saw was "Magic number checking on storable string failed"
14:44 jberger But I can't remember if there was permission denied before it or not
15:00 basiliscos joined #mojo
15:44 stephan48 a thing which i find is missing in minion is a way to pass data back when a job is finished/status info during runtime(no event emitting when a job is finished & so on), it would be super awesome if this could be included in core minion! meanwhile i will add it seperately
15:58 sri that already existed but was removed again
15:58 stephan48 okey
15:59 sri 12 days ago actually https://github.com/kraih/minion/commit/2399f7b94be5a2e611b17df2c6b8e3b5eba040cb
16:00 stephan48 too bad
16:01 sri think about it, what would you actually use it for with that kind of latency?
16:02 sri if you can come up with really good use cases i bring it back
16:04 HtbaaPi joined #mojo
16:04 sri now with pluggable backends using some kind of pub/sub to decrease latency is completely out
16:06 stephan48 i currently write a tool for our technicans for testing mail sending, essentialls its a small scale spam sender which allows them to send test mails... it consists of a form and a job list which lists all previous requests with the status(failed/running/inactive, amount of mails already send from the specified amount, code), the form is just a post which redirect back to the list, the list reloads via JS. the user is expected to look for the designated j
16:07 stephan48 i capture a few informations in my worker(benchmark, errors occouring) which i want to show on the page
16:09 stephan48 its far from a "really good" use case, i think but some small case which could also be solved via storing the info i need in a seperate per job document(bit more cumbersome but acceptable :)
16:11 crab tl;dr: i want to send spam
16:11 * crab hides
16:11 stephan48 crab: ye
16:14 stephan48 we decided to just call it mailspam... as its the best fitting name for this test mail send script...
16:23 gryphon joined #mojo
16:25 beyondcreed joined #mojo
17:16 dod joined #mojo
17:34 denis_boyun joined #mojo
17:38 asarch joined #mojo
17:42 irq joined #mojo
18:12 Eke- joined #mojo
18:15 sri stephan48: and you do not care if it takes 1 or 20 seconds?
18:16 sri your javascript pulls every few seconds?
18:17 mire joined #mojo
18:19 stephan48 ye
18:24 marty joined #mojo
18:25 stephan48 it would be more efficient to only poll when a job is running, but this would require it to subscribe to the job
18:27 sri actually, i don't think the result patch works with the file backend at all, since every time you pull you'd have to lock and read the whole database
18:28 sri doing that every second for a few jobs would be insanely slow
18:29 stephan48 https://metacpan.org/source/SRI/Minion-0.21/lib/Minion/Backend/Mango.pm#L147 - this line is probably not needed anymore
18:30 sri oh
18:32 stephan48 that is true @ slow reading
18:39 kb3ien joined #mojo
18:40 kb3ien Do we have a good way to create mojo routes where arguments are either optional or assumed (have a default) but not required. ?
18:42 kb3ien eg    $r->route('/upload/:project')->to(controller => 'foo', action => 'upload');
18:43 kb3ien doesn't work if GET http://FQDN/upload
18:45 kb3ien is there a way to make :project optional, and match the route in both cases ?
18:47 irq_ joined #mojo
18:47 marty kb3ien:  You could always use two routes, placing the more restrictive route first.  ie: $r->route('/upload/:project')   and $r->route('/upload')
19:15 kb3ien more restrictive has to come first ? That's good to know.
19:25 disputin joined #mojo
19:27 marty I'm not sure if the more restrictive route has to come first.  I just do that to keep my routes organized.
19:31 good_news_everyon joined #mojo
19:31 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/F0neHw
19:31 good_news_everyon mojo/master cc5d6c3 Sebastian Riedel: renamed section about optional placeholders in routing guide
19:31 good_news_everyon left #mojo
19:32 basiliscos joined #mojo
19:44 cpan_mojo Business-Payment-SwissESR 0.5.1 by Tobias Oetiker - http://metacpan.org/release/OETIKER/Business-Payment-SwissESR-0.5.1 (depends on Mojolicious)
19:52 marty sri++
20:24 igorsutton joined #mojo
20:31 sri :)
20:31 sri tempire: 10 days sounds sensible
21:00 kb3ien Yep that's good! THX marty!
21:04 igorsutton joined #mojo
21:24 mire joined #mojo
21:52 igorsutton joined #mojo
22:10 meshl joined #mojo
22:24 zivester joined #mojo
22:42 denis_boyun joined #mojo
23:01 d4rkie joined #mojo
23:25 d4rkie joined #mojo
23:44 Eke- joined #mojo

| Channels | #mojo index | Today | | Search | Google Search | Plain-Text | summary