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

IRC log for #mojo, 2014-02-04

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

All times shown according to UTC.

Time Nick Message
00:11 dvinciguerra joined #mojo
00:22 KindOne joined #mojo
00:25 punter joined #mojo
00:27 punter joined #mojo
00:47 sugama joined #mojo
00:47 good_news_everyone joined #mojo
00:47 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/O6M74A
00:47 good_news_everyone mojo/master 001f685 Sebastian Riedel: more precise Mojo::DOM method descriptions
00:47 good_news_everyone left #mojo
00:50 d4rkie joined #mojo
00:51 good_news_everyone joined #mojo
00:51 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/AaBEDg
00:51 good_news_everyone mojo/master 934d3de Sebastian Riedel: link directly to selectors
00:51 good_news_everyone left #mojo
00:58 laouji joined #mojo
01:24 btyler joined #mojo
01:28 jnbek^dt joined #mojo
01:33 abra_ joined #mojo
01:39 Kulag joined #mojo
02:14 laouji joined #mojo
02:17 thowe joined #mojo
02:21 webart left #mojo
02:23 klapperl_ joined #mojo
02:25 ka2u joined #mojo
02:47 cpan_mojo Mojolicious-Plugin-Module 0.02 by Georgy Bazhukov - http://metacpan.org/release/BUGOV/Mojolicious-Plugin-Module-0.02
02:54 bpmedley Wow, there's a lot of Mojo on CPAN.. :)
02:56 sri indeed :)
02:57 * sri just had a very very bad idea... figured adding a Mojo::DOM::wrap similar to jquery might be worth a try and would prolly be simple... I WAS SO WRONG
02:58 bpmedley Not simple or not a good idea?
02:59 sri not simple at all... and because of that not a good idea ;p
02:59 sri starts with completely separate semantics for root and tag nodes :S
03:03 bpmedley I see how it could get complicated quickly.
03:04 sri yea... not gonna do ->wrap... don't think it can be done elegantly
03:09 btyler joined #mojo
03:09 sri might as well just let people hack it with the primitives we have...
03:09 sri perl -Mojo -E 'my $foo = x("<foo><bar>test</bar></foo>"); my $bar = $foo->at("bar"); my $old = "$bar"; my $new = x("<baz></baz>"); $new->at("baz")->append_content($old); $bar->replace($new); say "$foo"'
03:09 sri oh, that was kind of a long oneliner ;p
03:11 sri correct implementation would have to be able to search the first innermost tag in the wrapper and return the original Mojo::DOM object... for tag and root nodes... it's messy
03:15 bpmedley perl -Mojo -E 'my $foo = x("<foo><bar>test</bar></foo>"); my $bar = $foo->at("bar"); $foo->replace(x("<foo><blue>$bar</blue></foo>"));  say "$foo"'
03:16 btyler joined #mojo
03:38 cfedde joined #mojo
03:43 rihegher joined #mojo
04:01 tempire joined #mojo
04:09 thowe So, anyone ever use Galileo?
04:09 cfedde joined #mojo
04:12 crab what is galileo?
04:12 sri bpmedley: haha, almost, you replaced $foo :)
04:13 thowe CMS in Mojolicious framework.
04:13 bpmedley Ahh well.. :)
04:13 thowe https://github.com/jberger/Galileo
04:13 sri but you got a point... my oneliner is terrible
04:17 bzero Hello, how to redefine render_not_found?
04:20 bzero Ok, got it. ;) Mojolicious::Controller::render_not_found
04:20 laouji joined #mojo
04:22 rihegher Hello,Can I perform Non-blocking HTTP requests inside the recurring callback of an Mojo::IOLoop?
04:23 rihegher In the Mojo::UserAgent doc I've seen that I can write some non-blocking requests inside a running event loop, but I can't have it working in my case.
04:31 sugama joined #mojo
04:35 sugama joined #mojo
04:42 laouji joined #mojo
04:47 good_news_everyone joined #mojo
04:47 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/BTnRmg
04:47 good_news_everyone mojo/master 019a074 Sebastian Riedel: merged content operations in Mojo::DOM
04:47 good_news_everyone left #mojo
04:48 thowe I freakin love all the Futurama references.
04:54 cfedde joined #mojo
04:59 cfedde joined #mojo
05:04 cfedde joined #mojo
05:04 ka2u joined #mojo
05:09 cfedde joined #mojo
05:10 good_news_everyone joined #mojo
05:10 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/kWqB0w
05:10 good_news_everyone mojo/master 8b59fd9 Sebastian Riedel: simplify content handling
05:10 good_news_everyone left #mojo
05:10 sri thowe: that's r...ALL GLORY TO THE HPNOTOAD!
05:11 sri i accident...ALL GLORY TO THE HYPNOTOAD!
05:14 cfedde joined #mojo
05:19 cfedde joined #mojo
05:24 cfedde joined #mojo
05:29 cfedde joined #mojo
05:34 cfedde joined #mojo
05:39 hesperaux_ joined #mojo
05:39 cfedde joined #mojo
05:44 sri hmmmm... i do have a pretty decent implementation of Mojo::DOM::wrap for tags... wonder if its ok if it just doesn't do anything for the root element
05:49 cfedde joined #mojo
05:54 cfedde joined #mojo
05:59 cfedde joined #mojo
06:04 ka2u joined #mojo
06:04 cfedde joined #mojo
06:08 sri finding the inmost tag is actually the hardest part
06:09 cfedde joined #mojo
06:14 cfedde joined #mojo
06:15 sri it's not so bad after golfing it down :)
06:16 tianon you solved the root element problem reasonably then?
06:16 sri http://pastie.org/8696669 # Mojo::DOM::wrap proposal, made it simple by only supporting elements, no root
06:17 tianon ah :)
06:17 sri wrapping root is messy, not worth it really imo
06:17 tianon right, if you want to wrap root, it's easier to just do it yourself outside Mojo::DOM
06:18 tianon *sufficiently easy
06:18 sri yea
06:18 sri also not going to support ->wrap('lalala')
06:18 sri that does nothing
06:18 sri you need at least one element
06:19 sri but it does ->wrap('<foo>la<bar>la</bar>la</foo>')
06:19 tianon lol
06:19 sri first inmost element wins
06:19 cfedde joined #mojo
06:20 sri ->wrap('<a><b></b><c></c></a>')
06:20 sri <b> wins there
06:24 cfedde joined #mojo
06:25 good_news_everyone joined #mojo
06:25 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/vgVL3A
06:25 good_news_everyone mojo/master 57f1d72 Sebastian Riedel: added wrap method to Mojo::DOM
06:25 good_news_everyone left #mojo
06:25 sri whatever, lets try the full jquery
06:29 sri wrapping elements in the middle of a document is a pretty expensive operation otherwise
06:29 cfedde joined #mojo
06:34 cfedde joined #mojo
06:39 cfedde joined #mojo
06:46 cfedde joined #mojo
06:49 hrupp joined #mojo
06:51 cfedde joined #mojo
06:54 maxhq joined #mojo
06:56 cfedde joined #mojo
06:58 good_news_everyone joined #mojo
06:58 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/yVQDyw
06:58 good_news_everyone mojo/master a453d84 Sebastian Riedel: added another wrap example
06:58 good_news_everyone left #mojo
07:01 cfedde joined #mojo
07:06 cfedde joined #mojo
07:11 cfedde joined #mojo
07:20 cfedde joined #mojo
07:24 Vandal joined #mojo
07:25 cfedde joined #mojo
07:30 cfedde joined #mojo
07:30 laouji joined #mojo
07:34 salparadise joined #mojo
07:35 cfedde joined #mojo
07:42 abra joined #mojo
07:42 cfedde joined #mojo
07:45 basiliscos joined #mojo
07:47 cfedde joined #mojo
07:48 dod joined #mojo
07:52 cfedde joined #mojo
07:57 rem_lex|pivo joined #mojo
08:00 sri hmm, the names Mojo::DOM::to_xml and Mojo::DOM::content_xml are kinda wrong
08:00 dotan joined #mojo
08:00 cfedde joined #mojo
08:01 good_news_everyone joined #mojo
08:01 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/JDu7hg
08:01 good_news_everyone mojo/master f23d503 Sebastian Riedel: mention that Mojo::DOM also generates HTML
08:01 good_news_everyone left #mojo
08:01 rihegher left #mojo
08:02 sri can't really think of more generic names though
08:03 sri stumbled over it because this roundtrips correctly now perl -Mojo -E 'say x("<foo bar><input></foo>")'
08:04 sri s/correctly/equal/
08:05 cfedde joined #mojo
08:10 crab foo bar input
08:10 cfedde joined #mojo
08:18 cfedde joined #mojo
08:22 dod joined #mojo
08:22 d4rkie joined #mojo
08:23 cfedde joined #mojo
08:23 trone joined #mojo
08:28 cfedde joined #mojo
08:35 odc joined #mojo
08:41 punter joined #mojo
08:51 eugen joined #mojo
09:03 d4rkie joined #mojo
09:15 webart joined #mojo
09:20 Dandre joined #mojo
09:21 Dandre left #mojo
09:28 rdunklau joined #mojo
09:54 dod1 joined #mojo
09:55 dod joined #mojo
10:04 mtj joined #mojo
10:05 nic Thanks for the link re signatures, that's pretty exciting
10:09 rawler joined #mojo
10:18 crab what link?
10:19 dvinciguerra joined #mojo
10:20 arthas joined #mojo
10:31 dod joined #mojo
10:40 dod joined #mojo
10:46 dod1 joined #mojo
10:47 Dandre joined #mojo
11:05 Dandre joined #mojo
11:06 hrupp joined #mojo
11:10 nic crab: https://github.com/Perl/perl5/commit/30d9c59b5f3cba8b5d632d20c2370e82d8ba69ca#diff-9e7cc5aeaa35c709063fd1031d94555bR306
11:18 dod joined #mojo
11:23 dod1 joined #mojo
11:28 DaTa i don't understand the hype, it's not in blead yet ...
11:38 zM joined #mojo
11:43 cfedde joined #mojo
11:47 basiliscos joined #mojo
11:48 cfedde joined #mojo
11:48 ka2u joined #mojo
11:53 cfedde joined #mojo
11:57 batman i don't get $, why would you have a parameter without assigning it?
11:58 cfedde joined #mojo
12:00 sugama joined #mojo
12:03 cfedde joined #mojo
12:12 mire__ joined #mojo
12:12 denis_boyun joined #mojo
12:13 cfedde joined #mojo
12:16 cleverfox joined #mojo
12:18 cfedde joined #mojo
12:22 d4rkie joined #mojo
12:23 cfedde joined #mojo
12:34 cfedde joined #mojo
12:35 nic You might want to keep your API consistent with another but want to be explicit about it being ignored
12:37 batman hm... ok
12:39 cfedde joined #mojo
12:44 cfedde joined #mojo
12:49 Dandre joined #mojo
12:50 cfedde joined #mojo
13:06 Zx3 joined #mojo
13:06 cfedde joined #mojo
13:21 cfedde joined #mojo
13:26 cfedde joined #mojo
13:28 dod joined #mojo
13:29 webart left #mojo
13:31 cfedde joined #mojo
13:36 cfedde joined #mojo
13:38 Dandre joined #mojo
13:39 laouji joined #mojo
13:41 cfedde joined #mojo
13:46 cfedde joined #mojo
13:51 cfedde joined #mojo
13:51 gryphon joined #mojo
13:56 cfedde joined #mojo
14:01 cfedde joined #mojo
14:06 cfedde joined #mojo
14:06 dod1 joined #mojo
14:19 dvinciguerra joined #mojo
14:33 webart joined #mojo
14:34 sh4 joined #mojo
14:41 bluescreen joined #mojo
14:44 btyler joined #mojo
14:54 bayashi joined #mojo
14:54 cfedde joined #mojo
14:57 hrupp joined #mojo
14:59 cfedde joined #mojo
15:04 cfedde joined #mojo
15:09 mire__ joined #mojo
15:09 cfedde joined #mojo
15:11 cleverfox joined #mojo
15:14 cfedde joined #mojo
15:16 marty joined #mojo
15:19 cfedde joined #mojo
15:21 sri DaTa: i heard it might get merged within the next 48 hours
15:24 cfedde joined #mojo
15:25 sri nobody said anything about Mojo::DOM::wrap, anyone want to +1/-1 it? https://github.com/kraih/mojo/commit/57f1d72f608589fdd8e3dc6607b9433a1c506c1b
15:26 cleverfox joined #mojo
15:27 dpetrov_ joined #mojo
15:27 sri one thing i'm not 100% sure about is if the B in this example should end up before or after the wrapped element https://github.com/kraih/mojo/commit/57f1d72f608589fdd8e3dc6607b9433a1c506c1b#diff-24fe40937fb0bc295d664900b1a94f0eR823
15:29 cfedde joined #mojo
15:34 cfedde joined #mojo
15:37 batman marcus: can i save local address/port in Mojo::Redis?
15:38 batman i would like to pass the address/port over pub/sub so my perl-server knows when the client has disconnected.
15:38 batman the idea is that the server will run "client list" every five seconds to check it... i think it will work, since i don't have many clients
15:39 batman doesn't feel right though...
15:39 cfedde joined #mojo
15:40 ka2u joined #mojo
15:44 cfedde joined #mojo
15:47 good_news_everyone joined #mojo
15:47 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/XPALTA
15:47 good_news_everyone mojo/master 401f11c Sebastian Riedel: just append the wrapped element
15:47 good_news_everyone left #mojo
15:47 marty joined #mojo
15:47 marty joined #mojo
15:48 nicomen sri: yeah that B is scary, does it make sense to just allow wrap with an opening tag?
15:49 nicomen or have a switch on before/after, also what to do with wrap('<div><br></div>'); ?
15:49 sri try it
15:49 cfedde joined #mojo
15:54 cfedde joined #mojo
15:56 sri i could treat empty tags like <br> special... but i don't think it's worth it
15:57 nicomen not at all what I expected
15:58 nicomen same with intentional empty <br/>
15:58 sri would require rather ugly changes like http://pastie.org/8698253
15:58 sri have you actually used jquery.wrap()?
15:58 nicomen ah wait, it's not picking up your changes
15:59 cfedde joined #mojo
15:59 nicomen no I never used jquery wrap, I didn't see any mention of jquery there
16:01 sri you can also $dom->at('b')->append_content('lalala')
16:01 sri we are not in the business of preventing stupid behavior
16:02 sri umm ->at('br')
16:03 nicomen I think I'm doing something very stupid
16:03 nicomen ~/projects/mojo$ perl -Ilib -MMojo::DOM -wlE 'say Mojo::DOM->new("<a>b</a>")->at("a")->wrap("<div>B</div>");'
16:03 nicomen <a>b</a>
16:04 cfedde joined #mojo
16:05 sri are you a Mojo::DOM user at all?
16:06 nicomen yes, I even just replaced a 1000 line xml event parser with Mojo::DOM, as it was much better in handling broken elements
16:06 nicomen (so thanks ;)
16:07 cfedde joined #mojo
16:07 sri look at the return value of ->wrap, it doesn't change
16:07 nicomen ah lol
16:12 cfedde joined #mojo
16:12 nicomen so, I guess if the docs state what it does with problematic things it should be ok. Ie. the dom it works will end up inside the first innermost element, buf after any text nodes?
16:12 nicomen *works on
16:13 DaniBunny ]
16:17 cfedde joined #mojo
16:22 cfedde joined #mojo
16:27 cfedde joined #mojo
16:32 cfedde joined #mojo
16:35 mire__ joined #mojo
16:37 cfedde joined #mojo
16:44 cfedde joined #mojo
16:47 hesco joined #mojo
16:47 bowtie_ joined #mojo
16:49 cfedde joined #mojo
16:51 hesco I'm working my way through the synopsis of Mojolicious::Plugin::FormFields, trying to adapt it to my current project, should I assume from the lack of semicolons, that by view, this perldoc means my template.html.ep file?
16:51 sri does "first inmost element" sound like good english?
16:51 lucs "innermost" maybe?
16:52 hesco sri: I would try innermost instead
16:52 lucs (Can there be more than one innermost element?)
16:52 hesco innermost, rather
16:52 hesco most is a superlative, meaning the extreme, there can only be one 'most' on any measurement
16:53 hesco just as there can be only one least for each metric
16:53 hesco more and less express relative relationships
16:53 sri thanks
16:53 good_news_everyone joined #mojo
16:53 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/n8cVsw
16:53 good_news_everyone mojo/master 4b6264c Sebastian Riedel: more detailed description for wrap method
16:53 good_news_everyone left #mojo
16:53 hesco but do not claim to be most or least
16:54 cfedde joined #mojo
16:55 sri yes, there can be more than one
16:56 sri https://github.com/kraih/mojo/blob/master/lib/Mojo/DOM.pm#L826
16:56 sri as shown in this example
16:56 nic IMO it's fine English.  The level is unique, but there can be multiple elements with that level
16:57 nic so we can think of 'innermost element' as shorthand for 'an element at the innermost level'
16:59 cfedde joined #mojo
16:59 sri wonder if the whole "which may contain text content" makes it more complicated
17:00 sri i could also just make it override all content
17:03 lucs sri: I'm afraid I just don't understand what those examples are doing :/
17:04 cfedde joined #mojo
17:04 lucs sri: Oh, I see now.
17:07 icenine joined #mojo
17:09 cfedde joined #mojo
17:10 lucs sri: I think it's not clear that for example L820 couldn't come out as  # "<div><h1>A</h1>B</div>"
17:10 sri how is that not clear? it says so right there in that example!
17:11 lucs So the example is the spec. Okay.
17:11 sri i sure hope none of our examples are incorrect
17:14 cfedde joined #mojo
17:16 nicomen lucs: yes there can be several innermost: <div><b></b><b></b></div>
17:16 lucs nicomen: Yep.
17:18 nicomen "The DOM wil be wrapped around with the provided argument?(), placing the DOM as the last child of the first innermost element"
17:19 cfedde joined #mojo
17:20 sri i like some of that
17:20 sri "Wrap HTML/XML fragment around this element, placing this element as the last child of the first innermost element."
17:21 nicomen great ;)
17:21 nicomen even I can understand that
17:21 sri maybe "placing it as the" to get rid of one element mention
17:22 nicomen +1
17:22 purl 1
17:23 good_news_everyone joined #mojo
17:23 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/k1Yk1A
17:23 good_news_everyone mojo/master 9a37b23 Sebastian Riedel: new description for wrap method
17:23 good_news_everyone left #mojo
17:23 sri nicomen++
17:24 dod joined #mojo
17:24 cfedde joined #mojo
17:33 mudler joined #mojo
17:34 ka2u joined #mojo
17:35 sri i don't expect everyone to grok it right away, took me a few minutes to understand the jquery feature as well :)
17:36 sri http://api.jquery.com/wrap/
17:38 cfedde joined #mojo
17:40 punter joined #mojo
17:42 beyondcreed joined #mojo
17:53 hummeleBop joined #mojo
18:05 * marty misses glitch.   :(
18:08 hesco Can anyone point me at a tutorial on using: Mojolicious::Plugin::FormFields ?
18:13 denis_boyun joined #mojo
18:18 sri oh, nice overview of different approaches to async control flow http://strongloop.com/strongblog/node-js-callback-hell-promises-generators/
18:18 denis_boyun__ joined #mojo
18:20 cleverfox joined #mojo
18:40 cleverfox joined #mojo
18:59 hesco I'm using Mojolicious::Plugin::FormFields to build a webform, but am getting an error message reading: "Invalid parameter 'add_to_list': nothing in the stash for 'add_to_list' at "; what does this mean and what am I missing please?
19:00 good_news_everyone joined #mojo
19:00 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/Z2mdZQ
19:00 good_news_everyone mojo/master f5f0bd2 Sebastian Riedel: added custom response example
19:00 good_news_everyone left #mojo
19:02 sri hesco: maybe nobody here knows that plugin
19:07 hesco sri: thanks.  I'm not attached to that one, but was hoping for some tool to help me process form values.  Any recommendations?
19:08 sri http://mojolicio.us/perldoc/Mojolicious/Guides/Rendering#Form_validation
19:09 hesco thanks, sri: taking a look at that now.
19:22 radixo joined #mojo
19:23 radixo Hello guys.. I am trying mojolicious.. I don't know why.. but It seems that it is not processed in parallel each request
19:23 radixo someone knows why?
19:27 marcus radixo: probably you are doing it wrong.
19:27 Mikey are you doing any operations that are blocking?
19:28 Mikey business as usual database queries?  useragent requests?  file IO?
19:29 Mikey you have to write these sorts of things in a way that is asynchronous
19:34 mire__ joined #mojo
19:51 radixo Mikey: I think no
19:52 radixo marcus: I am using the LWP to navigate and return site data.
19:52 radixo Mikey: I am doing useragent requests
19:53 radixo why is this blocking?
19:54 good_news_everyone joined #mojo
19:54 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/x9jwLw
19:54 good_news_everyone mojo/master d0cfc92 Sebastian Riedel: more accepts examples
19:54 good_news_everyone left #mojo
19:54 sri http://mojolicio.us/perldoc/Mojolicious/Guides/FAQ#What_is_the_difference_between_blocking_and_non-blocking_operations
19:55 hesco I would have though that this would access the data POST'd to my form:  $self->req->param('.prospect.lname'),, but it apparently is not.  Any ideas, please?
19:57 radixo Mikey: I am using LWP::UserAgent
19:57 tempire LWP::UserAgent is the devil
19:57 tempire from the 80s
19:57 radixo tempire: why?
19:58 radixo tempire: do you know if is he blocking me?
19:58 tempire The interface is clunky. It's blocking. It requires a billion dependencies.
19:58 tempire It doesn't handle response formats for you.
19:58 tempire I'm sure there's more.
19:59 tempire Use Mojo::UserAgent
19:59 marcus also, it's not async
19:59 tempire Join the new world.
19:59 tempire We welcome you.
19:59 * tempire parades
19:59 radixo What should I use to make web requests?
19:59 * marcus throws glitter
19:59 tempire Mojo::UserAgent
19:59 purl Mojo::UserAgent is probably not optimized for fast blocking requests
20:00 tempire lulz
20:00 sri very relevant too http://mojolicio.us/perldoc/Mojolicious/Guides/FAQ#Will_my_code_magically_become_non-blocking_with_Mojolicious
20:00 marcus punter: Mojo::UserAgent is also awesomesauce for async.
20:00 purl okay, marcus.
20:00 punter marcus: You meant purl instead of punter?
20:00 marcus purl: Mojo::UserAgent is also awesomesauce for async.
20:00 purl okay, marcus.
20:00 radixo Mojo::UserAgent will not block me?
20:01 marcus punter: yes, that was a bug in my irc client :'(
20:01 marcus Which is very sad since I wrote it.
20:01 tempire If you use it correctly.
20:01 punter marcus: We should make a mIRC clone in Perl/Linux
20:01 tempire brilliant!
20:01 purl coincidentally, I had beans for breakfast
20:01 tempire marcus, get on that.
20:01 tempire maybe offer it for free.
20:02 marcus radixo: http://mojolicio.us/perldoc/Mojolicious/Guides/Cookbook#Non-blocking
20:02 tempire You have 30 seconds to throw something together.
20:02 marcus punter: you mean like http://convos.by/ ?
20:02 tempire less than 30 seconds! amazing.
20:02 hesco never mind, found my typo
20:02 punter marcus: Is Convos better than Smuxi and native perl clients?
20:02 punter marcus: I'll try it out
20:03 hesco tempire: yowza Glen!
20:03 marcus punter: Well, I use it for all my IRCing at least. :)
20:03 punter Are you nordraaker?
20:03 good_news_everyone joined #mojo
20:03 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/JkLmTw
20:03 good_news_everyone mojo/master 5fd40d7 Sebastian Riedel: another accepts example
20:03 good_news_everyone left #mojo
20:03 punter probably
20:04 punter marcus ramberg or sthng
20:04 marcus punter: I'm Marcus, and Nordaaker is my company.
20:04 punter Are there Perl jobs in Norway?
20:04 marcus Yes
20:04 punter I'm looking for work abroad
20:04 punter I like Mojolicious & Moose
20:04 punter not an expert just yet
20:05 marcus omega: are you guys hiring these days?
20:05 punter I've made KJabberd (on github) where you can check my skills
20:07 radixo I don't understand the Mojo::IOLoop.. what can I do with it?
20:07 marcus radixo: it's for async. You set up your requests in it, and when they are done, it calls the callback.
20:07 sri coincidentally http://mojolicio.us/perldoc/Mojolicious/Guides/FAQ#What_is_an_event_loop
20:08 marcus ^^ more concise than I could put it.
20:08 marcus punter: unfortunately I am not hiring atm, but I am sure other Oslo perl shops are.
20:08 marcus punter: Some of them will be sponsoring mojoconf to help their hiring, even :)
20:09 radixo marcus: My real problem is that one request is blocking the other.
20:09 punter didn't know mojoconf existed
20:09 marty woot:  our website got a big spike in traffic today while simultaneously getting hit with a bad crawler.  hypnotoad just breezed through it.   \o/
20:10 marcus punter: we (Oslo,pm) are arranging it in may.
20:10 punter I'll be there
20:10 radixo marcus: I opened 4 tabs in my browser and the requests finishes exactly the same order I made the request.
20:10 marcus radixo: did you read the link I referred you to?
20:10 radixo marcus: Yes..
20:11 radixo but I think it is strange LWP blocking me
20:11 marcus radixo: It is not strange LWP is blocking everybody
20:11 marcus it is a blocking user agent
20:11 batman :)
20:11 radixo marcus: ok.. I will try Mojo::UserAgent
20:11 radixo marcus: thanks guys..
20:12 radixo I will read more..
20:12 radixo very thanks.
20:12 marcus Good luck
20:12 purl You'll need it.
20:12 * marcus smacks purl
20:12 purl Thank you, may I have another?
20:28 meshl joined #mojo
20:38 lukep joined #mojo
20:51 punter left #mojo
20:54 * sri is still waiting for a plugin that hooks up MIME::Types with Mojolicious::Types
20:59 hesco how do I write to log/development.log from my controller?
21:10 good_news_everyone joined #mojo
21:10 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/46Z2Eg
21:10 good_news_everyone mojo/master 4119074 Sebastian Riedel: simplify include helper
21:10 good_news_everyone left #mojo
21:27 batman hesco: $c->app->log->info("hey!);
21:28 batman if you're running morbo or got MOJO_MODE=development.
21:29 good_news_everyone joined #mojo
21:29 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/Y0-A8g
21:29 good_news_everyone mojo/master 68f0bc9 Sebastian Riedel: mention how to use layouts with partial templates
21:29 good_news_everyone left #mojo
21:31 good_news_everyone joined #mojo
21:31 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/SvKSUg
21:31 good_news_everyone mojo/master f9d2e61 Sebastian Riedel: make it more clear that stash values do not work
21:31 good_news_everyone left #mojo
21:42 * sri starts to wonder if ->accepts semantics might be misleading
21:43 sri $self->accepts('json'); does return "json" when no other extension could be detected
21:44 sri from what i gather, assumption might be that it only returns something when it has actually been detected
21:47 good_news_everyone joined #mojo
21:47 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/TN6INw
21:47 good_news_everyone mojo/master d26c323 Sebastian Riedel: another accepts example
21:47 good_news_everyone left #mojo
21:51 good_news_everyone joined #mojo
21:51 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/RvqkSw
21:51 good_news_everyone mojo/master 04b4da0 Sebastian Riedel: link to accepts helper from respond_to
21:51 good_news_everyone left #mojo
22:07 punter joined #mojo
22:13 davido_ joined #mojo
22:40 good_news_everyone joined #mojo
22:40 good_news_everyone [mojo] kraih tagged v4.76 at 00967c7: http://git.io/Sx1I_Q
22:40 good_news_everyone left #mojo
22:42 cpan_mojo Mojolicious 4.76 by Sebastian Riedel - http://metacpan.org/release/SRI/Mojolicious-4.76
22:53 sri oh well, then it all stays the way it is ;p
22:55 punter joined #mojo
23:11 jberger joined #mojo
23:12 zM joined #mojo
23:15 jberger purl: Mojo::UserAgent is teh awesome
23:15 purl ...but mojo::useragent is not optimized for fast blocking requests or awesomesauce for async. or awesomesauce for async....
23:16 * jberger throws rotten vegetables at purl
23:21 good_news_everyone joined #mojo
23:21 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/huwj2A
23:21 good_news_everyone mojo/master 62de666 Sebastian Riedel: made wrap examples a little easier to follow
23:21 good_news_everyone left #mojo
23:44 marty does anyone have any ideas why my log level seems to be stuck on debug even after  'export MOJO_LOG_LEVEL=error'
23:48 sri http://mojolicio.us/perldoc/Mojo/Log#level
23:54 tempire so
23:54 tempire a mojo talk at openwest

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