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

IRC log for #mojo, 2014-05-08

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

All times shown according to UTC.

Time Nick Message
00:06 Adura joined #mojo
00:06 cmihai joined #mojo
00:07 rem_lex|pivo joined #mojo
00:07 Negor joined #mojo
00:07 abhishekisnot joined #mojo
00:17 Adurah joined #mojo
00:17 rem_lex| joined #mojo
00:19 shmuel joined #mojo
00:32 rem_lex| joined #mojo
00:32 Bravo13 joined #mojo
00:37 cmihai joined #mojo
00:42 gryphon_ joined #mojo
00:47 gryphon joined #mojo
00:54 doby joined #mojo
01:01 d4rkie joined #mojo
01:05 laouji joined #mojo
01:21 zivester joined #mojo
01:22 klapperl_ joined #mojo
01:29 hellyna joined #mojo
01:47 rem_lex|pivo joined #mojo
02:28 fhelmber_ joined #mojo
02:40 zivester joined #mojo
02:43 irq joined #mojo
03:08 basic6 joined #mojo
04:24 laouji joined #mojo
04:41 dvinciguerra joined #mojo
04:42 dotandimet joined #mojo
04:49 howitdo joined #mojo
05:23 laouji joined #mojo
05:25 russum joined #mojo
05:26 alnewkirk joined #mojo
05:29 dotandimet joined #mojo
05:59 ramo_ joined #mojo
06:10 Eke- joined #mojo
06:28 fhelmber_ joined #mojo
07:10 ramo_ joined #mojo
07:12 Vandal joined #mojo
07:23 igorsutton joined #mojo
07:27 dod joined #mojo
07:34 denis_boyun joined #mojo
07:35 irq joined #mojo
07:38 fhelmber_ joined #mojo
07:42 denis_boyun joined #mojo
07:44 irq_ joined #mojo
07:47 trone joined #mojo
07:50 rawler joined #mojo
07:58 marcus wat
08:01 trone joined #mojo
08:16 shmuel_ joined #mojo
08:20 Jonis watwat
08:21 moritz "for every DWIM there's a WAT"
08:21 maxhq joined #mojo
08:41 denis_boyun joined #mojo
08:58 Negor joined #mojo
09:29 edestler joined #mojo
09:34 sugar_ joined #mojo
09:37 maxhq joined #mojo
09:39 sugar__ joined #mojo
09:49 Jonneh joined #mojo
09:50 basiliscos joined #mojo
09:51 denis_boyun joined #mojo
10:01 Jonneh joined #mojo
10:39 Negor joined #mojo
10:46 asarch joined #mojo
11:20 dvinciguerra joined #mojo
11:31 jberger tempire: very cool, I had basically stopped checking at this point. will start
11:31 ver joined #mojo
11:32 jberger so now that atom is OS, it's there a Linux version yet?
11:38 nic soon
11:47 jberger then again I've been wanting to try out Vim::X
11:49 neilhwatson joined #mojo
11:52 marcus wow, looks shiny (http://techblog.babyl.ca/entry/vim-x)
12:03 cpan_mojo Mojolicious-Plugin-Form 0.003 by Helmut Wollmersdorfer - http://metacpan.org/release/WOLLMERS/Mojolicious-Plugin-Form-0.003
12:24 sugar joined #mojo
12:27 nic Is there a neat way of pulling pre#error out of the html resulting from a broken myapp get /bad-url.html ?
12:30 arthas joined #mojo
12:31 mire_ joined #mojo
12:35 memowe_ joined #mojo
12:47 nic I suppose grep does a good enough job
12:51 sri that's literally a tutorial example
12:51 sri http://mojolicio.us/perldoc/Mojolicious/Lite#Built-in_exception_and_not_found_pages
12:58 arthas_ joined #mojo
13:02 nic oh wow, that's brilliant
13:03 d4rkie joined #mojo
13:03 gryphon joined #mojo
13:06 Eke|| joined #mojo
13:09 nic I'm using $self->defaults(layout => 'loggedin') but that messes up exception pages
13:09 nic What's the recommended approach?
13:09 purl the recommended approach is to pick a less broken design
13:09 nic (a) don't use a default layout
13:10 nic (b) customise your own exception templates (to work with default layout)
13:10 nic (c) it should work; you've broken it some other way
13:11 nic Actually, it this case it must be (c) + (b)
13:12 sh4 joined #mojo
13:12 sri i think it's actually a feature someone requested, the built-in exception pages are not affected and work as a fallback
13:16 nic yeah, I'm sure I've created a weird breakage, but I'm rushing towards/past a deadline so I'll need to debug tomorrow
13:21 zivester joined #mojo
13:31 bluescreen joined #mojo
13:32 bluescreen_ joined #mojo
13:37 Akron joined #mojo
13:38 Eke- joined #mojo
13:55 sujithm joined #mojo
13:55 btyler joined #mojo
14:49 igorsutton_ joined #mojo
15:02 sujithm joined #mojo
15:02 tempire huh
15:03 tempire sri: is there anything else besides sysctl, ulimit, and LIBEV_FLAGS to get the c10k script working? (https://gist.github.com/kraih/5551292)
15:03 tempire was working for me the other day, now it just hands on batch 95.
15:04 tempire ah, perl 5.16.3 doesn't like it
15:04 tempire hmm
15:08 irq_ joined #mojo
15:13 sri tempire: make sure you actually have EV installed for that version of perl
15:15 mire_ joined #mojo
15:21 Negor joined #mojo
15:25 sri oh, there is finally a pretty twitter client for android that reminds me a bit of tweetbot \o/
15:27 aggrolite joined #mojo
15:28 jzawodn joined #mojo
15:30 igorsutton_ joined #mojo
15:30 sri strange i've not heard of fenix before
15:33 igorsutton_ joined #mojo
15:38 igorsutton_ joined #mojo
15:53 Eke- joined #mojo
16:10 btyler heh, cool, c10k.pl uses even less memory than advertised in the gist -- perl was hovering around 548MB when everything was said and done (OSX 10.9.2, perl 5.18.2)
16:10 tadegenban joined #mojo
16:10 btyler and 4.97
16:10 tadegenban my $dom = Mojo::DOM->new('<div><p id="a">A</p><p id="b">B</p></div>');
16:10 tadegenban
16:10 tadegenban say $dom.'blabla';
16:11 tadegenban get  '<div><p id="a">A</p><p id="b">B</p></div>blabla'
16:11 tadegenban why?
16:12 tadegenban say $dom->at('p')->text;
16:12 tadegenban get A
16:12 tadegenban $dom is a string or a object ?
16:13 sri http://mojolicio.us/perldoc/Mojo/DOM#stringify
16:13 Akron Mojo::Dom overides ""
16:14 sri or rather http://mojolicio.us/perldoc/Mojo/DOM#OPERATORS
16:18 tadegenban coool! thank you all
16:27 nic Template "not_found.development.html.ep" not found.
16:28 beyondcreed joined #mojo
16:29 nic Am I right thinking that used to be provided, but is no longer?
16:36 nic ah, looks like development.html.ep takes over if $mode eq 'development'
16:36 dod joined #mojo
16:36 nic so I need to figure out why my app is still looking for the old file
16:38 basiliscos joined #mojo
16:39 tempire what the
16:39 tempire (libev) select: Invalid argument
16:40 tadegenban my $xml = '<xml><MsgId>12</MsgId></xml>';
16:40 tadegenban
16:40 dod joined #mojo
16:40 tadegenban my $dom = Mojo::DOM->new($xml);
16:40 ramo_ left #mojo
16:40 tadegenban say $dom->at('MsgId')->text;
16:40 tadegenban Can't call method "text" on an undefined value
16:41 tadegenban what's wrong with this?
16:43 tempire tadegenban: there is no <MsgId> element
16:44 tadegenban <MsgId>12</MsgId> is not allowed?
16:45 nic DOM should be a big clue it's not a general XML tool
16:47 tadegenban I want to parse the XML format string like '<xml><MsgId>12</MsgId></xml>'
16:48 tadegenban could I use Mojo::DOM to do this?
16:50 go|dfish tadegenban: perl -Mojo -E 'say x("<xml><MsgId>12</MsgId></xml>")'
16:53 go|dfish it lowercases stuff, so I guess you want: ->at('msgid')->text;
16:57 tadegenban go|dfish: thanks ,you are right
16:58 tadegenban go|dfish: why doesn's parser switch to XML mode ,become case sensitive?
16:58 tadegenban go|dfish: automaticly
16:58 tempire dernit.
16:58 tempire c10k is failing again
17:01 jzawodn tempire: I'll be in the audience at your talk today :-)
17:02 go|dfish tadegenban: I don't know
17:05 go|dfish tadegenban: http://mojolicio.us/perldoc/Mojo/DOM#parse
17:05 tempire jzawodn: maybe
17:05 tempire if I finish this presentation in time
17:05 tempire :o
17:06 jzawodn heh.  mine is in 25 minutes
17:06 tempire good luck
17:06 purl You'll need it.
17:06 tempire oh snap
17:07 * jzawodn glares at purl
17:07 * purl pins jzawodn with the Stare Of Death
17:07 jzawodn ouch
17:10 Akron tadegenban: perl -MMojo::DOM -E 'say Mojo::DOM->new->xml(1)->parse("<xml><MsgId>12</MsgId></xml>")->to_string'
17:10 cpan_mojo Mojolicious-Plugin-AssetPack 0.10 by Jan Henning Thorsen - http://metacpan.org/release/JHTHORSEN/Mojolicious-Plugin-AssetPack-0.10
17:12 tadegenban Akron: thank you, usefull
17:14 cpan_mojo Mojolicious-Plugin-AssetPack 0.11 by Jan Henning Thorsen - http://metacpan.org/release/JHTHORSEN/Mojolicious-Plugin-AssetPack-0.11
17:22 sri tadegenban: it's all documented http://mojolicio.us/perldoc/Mojo/DOM#CASE_SENSITIVITY
17:22 sri tempire: that means your EV is using the wrong backend
17:22 sri that specific select error happens when there are too many file descriptors
17:23 sri you may or may not have to force kqueue support when compiling EV
17:23 sri it seems a bit random which versions of EV compile it automatically and which don't
17:24 sri nic: Mojo::DOM *is* a general purpose XML tool
17:32 fhelmber_ joined #mojo
17:47 neyasov_ joined #mojo
18:09 sujithm joined #mojo
18:26 Eke- joined #mojo
18:30 Akron s/\* a/ the\*/ ! ;)
18:31 gregf joined #mojo
18:46 Phil21 joined #mojo
19:03 dotandimet joined #mojo
19:15 nic yeah yeah, that's what I meant :)
19:22 rawler joined #mojo
19:23 aggrolite joined #mojo
19:46 rem_lex|pivo joined #mojo
19:50 dotandimet joined #mojo
19:52 punter joined #mojo
19:59 dod joined #mojo
20:08 cfedde joined #mojo
20:13 igorsutton_ joined #mojo
20:20 nic Anyone got a minute to test my template issue?
20:20 nic mojo generate app Test
20:20 nic cd test
20:21 nic script/test get /123
20:21 nic then check log/development.log to see if it complains about not finding not_found.development.html.ep
20:23 gtodd left #mojo
20:24 dotandimet joined #mojo
20:24 nic which is weird cos it does appear to return a useful 'not found' page
20:25 nic Or is that a feature: warn that no bespoke page was found, then fallback to the built-in one?
20:29 dod joined #mojo
20:29 bjoernfan joined #mojo
20:30 nic yay, copying development.html.ep to templates/not_found.development.html.ep stops the log entries (which are only at 'debug' level anyway)
20:30 irq joined #mojo
20:33 basic6_ joined #mojo
20:56 jb360 joined #mojo
20:58 zackiv31 joined #mojo
21:01 zackiv31 joined #mojo
21:03 zackiv31 joined #mojo
21:10 neyasov__ joined #mojo
21:12 nic ah, but that doesn't work if you have a default layout
21:17 nic in which case, make a real copy (not a symlink) and put "% layout undef;" at the top
21:23 sri don't do that, it uses other internal resources
21:24 sri built-in templates are off limits
21:27 nic don't copy the internal templates?
21:27 sri of course not
21:28 nic Would you be willing to add "% layout undef;" in the official ones?
21:28 sri why?
21:28 nic So they don't pick up a default layout
21:29 sri are you sure?
21:29 purl You still have ALL THREE lifelines left!
21:29 nic I'm never ever sure, but I've tested this one more than usual :)
21:30 nic I did find that adding that line eliminated all the problems I'd been having
21:31 sri i doubt you actually tested it http://pastie.org/9157179
21:33 fhelmber_ joined #mojo
21:34 aggrolite joined #mojo
21:51 nic yeah, wouldn't be needed in the built-in templates cos the problem only arises when in the app's templates
22:11 chansen sri: What's messed up with the HTTP/2.0 (SPDY) protocol?
22:23 neyasov__ joined #mojo
22:29 gryphon joined #mojo
22:34 d4rkie joined #mojo
22:42 Eke- joined #mojo
22:49 jberger damn, purl has been extra snarky today
22:50 jberger o/
22:51 cfedde /o\
22:53 neyasov__ joined #mojo
22:56 jberger I think I will be using the helper methods from my MojoForum toy app to motivate my talk
22:57 jberger It's pretty Spartan, but it's an almost fully functional and fully Nonblocking threaded forum software using mojo mango and Mandel
23:01 aggrolite joined #mojo
23:12 jnbek joined #mojo
23:27 jzawodn tempire's presenation++
23:28 cpan_mojo Mojolicious-Plugin-TtRenderer 1.52 by PLICEASE - http://metacpan.org/release/PLICEASE/Mojolicious-Plugin-TtRenderer-1.52
23:28 sri tempire-- # making the rest of us look bad
23:32 tempire I'm glad everyone liked it
23:33 sri what was the topic?
23:34 sri tempire++ # because tempire
23:35 tempire sri: https://twitter.com/tempire/status/463550237181620224
23:36 sri dat hat!
23:37 tempire I gave a demo.
23:37 jzawodn I can say that Mojo::IOLoop::Delay make sense now
23:37 jzawodn err, makes sense
23:37 tempire I got the point across, I think.
23:37 sri wow
23:37 tempire But it failed because of not enough open file handles.
23:37 tempire so I couldn't do more than 100 requests. :(
23:38 sri it was the EV
23:38 tempire But there was a collective whoa when I compared the 100 blocking requests to the 100 non-blocking requests.
23:38 tempire woah, even.
23:41 tempire I'm not sure what I'm doing wrong.
23:42 tempire I compiled ev with kqueue manually
23:42 sri btw. if you want to be absolutely sure your EV works, use dtruss
23:42 sri sudo dtruss -p $PID
23:42 sri where $PID is the pid of your daemon
23:42 tempire I'll try it
23:42 tempire it was running perfectly earlier today
23:42 sri you see either tons of select or kqueue calls
23:43 sri umm, i mean calls to kevent
23:43 sri "kevent(0x9, 0x7FBDAD20A5E0, 0x3) = 0 0"
23:54 jzawodn export LIVE_DEMO=0 <-- fixes it
23:59 rem_lex| joined #mojo
23:59 tempire truth.

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