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

IRC log for #mojo, 2014-08-31

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

All times shown according to UTC.

Time Nick Message
00:51 jnbek joined #mojo
01:26 klapperl_ joined #mojo
01:49 jberger http://stackoverflow.com/help/badges/4290/mojolicious
01:49 jberger \o/
02:06 hesperaux joined #mojo
02:11 good_news_everyon joined #mojo
02:11 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/_rB2LQ
02:11 good_news_everyon mojo/master 032695b Sebastian Riedel: simplify @ARGV handling
02:11 good_news_everyon left #mojo
02:23 sri \o\
02:23 sri //o/
02:23 sri heh, that doesn't work!
02:24 sri batman: how am i supposed to stretch?
02:32 noganex joined #mojo
03:03 jberger /o/
03:03 jberger /say?
03:03 purl it has been said that /say is my friend
03:03 * jberger punches purl in the nose
03:26 zivester joined #mojo
03:32 asarch joined #mojo
03:38 asarch joined #mojo
03:38 asarch ?
03:39 asarch Did you kicked me out?
03:39 asarch NM, restarting the app fixes the problem
03:40 asarch Have a nice day guys :-)
04:24 d4rkie joined #mojo
04:43 d4rkie joined #mojo
05:22 irq joined #mojo
06:05 basiliscos joined #mojo
06:07 Vandal joined #mojo
06:37 basiliscos joined #mojo
06:41 D4RK-PH0ENiX joined #mojo
06:42 KCL joined #mojo
06:56 dod joined #mojo
07:07 berov joined #mojo
07:37 __eugen joined #mojo
07:52 cpan_mojo Statocles 0.022 by Doug Bell - http://metacpan.org/release/PREACTION/Statocles-0.022 (depends on Mojolicious)
08:06 marty joined #mojo
08:21 ivan joined #mojo
08:47 cpan_mojo Test-Mojo-Trim 0.01 by CSSON - http://metacpan.org/release/CSSON/Test-Mojo-Trim-0.01
09:22 cpan_mojo Mojolicious-Plugin-BootstrapHelpers 0.003 by CSSON - http://metacpan.org/release/CSSON/Mojolicious-Plugin-BootstrapHelpers-0.003
09:22 crab are inline templates deprecated or discouraged?
09:22 crab inline templates as in ->render(inline => ...), not @@ foo/bar.html.ep
09:23 woz joined #mojo
09:24 cpan_mojo Test-Mojo-Trim 0.02 by CSSON - http://metacpan.org/release/CSSON/Test-Mojo-Trim-0.02
09:29 Eke- joined #mojo
09:41 batman i wonder how to present "/list" output in convos...
09:41 batman freenode got 30k channels
09:41 stephan48 some irc clients do automatic limiting of /list
09:42 dotan joined #mojo
09:42 batman i don't get how that's any helpful for the user
09:42 batman i will try to see how javascript handles such a list...
09:55 woz joined #mojo
10:53 dotan1 joined #mojo
11:05 woz joined #mojo
11:19 d4rkie joined #mojo
11:37 d4rkie joined #mojo
11:57 sri haha http://bjorn.tipling.com/if-programming-languages-were-weapons
12:03 * lb didn't know m1 garands occasionally misfired, taking out the local city block
12:07 woz joined #mojo
12:15 cpan_mojo Mojolicious-Plugin-BootstrapHelpers 0.004 by CSSON - http://metacpan.org/release/CSSON/Mojolicious-Plugin-BootstrapHelpers-0.004
12:16 marcus I like the molotov coctail. Weapon of choice for rebels everywhere.
12:19 basiliscos joined #mojo
12:22 irq joined #mojo
12:33 cpan_mojo Mojo-IRC 0.11 by Jan Henning Thorsen - http://metacpan.org/release/JHTHORSEN/Mojo-IRC-0.11
12:45 bobkare joined #mojo
12:49 batman marcus: what do you think: http://home.thorsen.pm/private/raw/notverysecret/convos/channel-list-2014-08-31-14-48-06.ogv
12:53 batman marcus: it's from the improvement/connection-editor-1 branch, if you want to try it out
12:55 sri batman: show how many people are in the channel
12:55 batman which channel?
12:55 purl i guess which channel is the pm.org channel?
12:55 sri ALL THE CHANNELS
12:55 batman not going to do that.
12:56 sri it's what all irc clients do
12:56 corgi joined #mojo
12:57 batman so they actually loop through all the channels to get the number of users in each of them..?
12:57 sri seriously... without it you just end up searching for a linux channel and joining all 500 of them because you have no idea which one is popular
12:57 sri i have no clue how other irc clients have implemented it, but without it a channel list is much less useful
12:58 sri and i doubt it involves joining
12:58 sri oh, i misread
12:58 sri but i still hav eno clue how it should be done
12:58 batman that's weird... i think i have read the spec wrong
13:00 batman no, the response is "<channel> <# visible> :<topic>"
13:00 purl okay, batman.
13:01 berov With the changes introduced in in lib/Mojolicious/Commands.pm  in 5.34 some commandline options are now restricted for commands created by command authors
13:01 batman so, i'm not going to implement that.
13:01 berov I mean -m|mode and -h|help
13:01 batman sri: at least not _now_. want to make the basics work before adding complexity.
13:02 berov these options are eaten-up by lib/Mojolicious/Commands.pm and do not get to the actually executed command
13:02 berov this way they become reserved for lib/Mojolicious/Commands.pm only
13:03 cpan_mojo Mojolicious-Plugin-BootstrapHelpers 0.005 by CSSON - http://metacpan.org/release/CSSON/Mojolicious-Plugin-BootstrapHelpers-0.005
13:03 berov I think in the documentation  should be stated this fact
13:03 marcus batman: pretty sure list returns number of people per channel.
13:03 batman the response is "<channel> <# visible> :<topic>" <----
13:03 batman ah!
13:03 batman crap.
13:04 marcus #visible
13:04 * batman will implement it now
13:04 batman i thought it was a flag :P
13:04 marcus :)
13:04 marcus Almost Sandvika.
13:04 marcus Couldn't watch your video on iPhone.
13:05 sri -.-
13:05 batman marcus: that's fine. i'm going to make dinner soon, so i'm not back until... maybe tomorrow
13:06 marcus I'm going to hack for a couple of hours when I get home.
13:06 batman how should the format look like then..? "#channe (10) - Cool topic" ?
13:06 marcus Batman: does that mean you don't want to release today?
13:06 batman i totally forgot about the release :(
13:07 batman been too busy with connection manager...
13:07 batman i'm not sure if i can make it. is it ok if we do it tomorrow morning?
13:07 marcus Sure.
13:07 batman just make everything ready in "master", and i can release tomorrow
13:07 batman thanks!
13:09 batman should the filtering filter on topic as well as on channel name?
13:10 * batman makes another video
13:10 woz joined #mojo
13:12 batman sri: better now? http://home.thorsen.pm/private/raw/notverysecret/convos/channel-list-2014-08-31-15-11-41.ogv :)
13:13 marcus Don't think we should filter on topic.
13:13 batman ok. let's iterate :)
13:13 batman (if we have to)
13:13 batman the connection editor branch is getting pretty smooth now imo.
13:14 batman next: need to detect ssl error and password prompt
13:14 batman any idea if there's a server that require passwords?
13:17 marcus Slack irc proxy :)
13:17 batman can you send me the host+port?
13:29 marcus Didn't find it on phone. Home in 5
13:30 zivester joined #mojo
13:31 basiliscos joined #mojo
13:36 sri batman: much better
13:36 sri if anyone is using atom, +1 this :) https://github.com/DanBrooker/file-icons/pull/68
13:36 batman cool
13:44 berov I wrote a comment: please look at it: https://github.com/kraih/mojo/commit/032695b69f4b3e51d50679f94051d583d593a339#diff-b5388cbf7a62766a34c06fef16162ad1R28
13:48 dexteruk joined #mojo
13:57 irq joined #mojo
14:13 woz joined #mojo
14:22 denis_boyun joined #mojo
14:34 sri anyone know why the .pl in Makefile.PL is uppercase?
14:37 jberger sri: any files with upper case PL are run and are expected to produce the file without the extention
14:37 jberger ie Makefile.PL produces a Makefile
14:37 sri ah, neat
14:37 jberger Build.PL produces Build
14:39 jberger my personal favorite is Dynaloader.pm.PL: http://perl5.git.perl.org/perl.git/blob/HEAD:/ext/DynaLoader/DynaLoader_pm.PL
14:40 jberger produces DynaLoader.pm while Perl is being built on your machine
14:47 jberger Its been a problem for PDL actually
14:47 jberger it existed before this convention, so it make its own up: .pd
14:47 jberger .pd should have been .xs.PL, and now many tools, especially metacpan render them incorrectly
14:49 sri haha
14:53 sri looks like there might be a lack of volunteers :S https://rt.cpan.org/Public/Bug/Display.html?id=98312
14:54 sri one of these days i gotta get really good at C
14:56 olg joined #mojo
14:57 marcus Also, you need to learn how to clone yourself.
14:58 jberger polyfill?
14:58 purl well, polyfill is http://remysharp.com/2010/10/08/what-is-a-polyfill/ or  https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-browser-Polyfills
14:59 jberger well finally purl has made itself useful
14:59 jberger purl: botsnack
14:59 purl :)
14:59 marcus :pin
15:00 marcus oops
15:00 marcus wrong focus :)
15:01 olg Hi! Has something changed recently with regards to default logging to STDOUT in morbo?
15:01 olg mojo generate app Test
15:01 olg cd Test && morbo script/test
15:01 olg doesn't print any log to stdout except 'Server available at … ', though it is written to log/development.log and displayed on errors on the site itself?
15:02 olg (A generated lite_app prints all debug output (routes, rendering, errors) as I'm used to)
15:03 sri no changes in the last few *years* http://mojolicio.us/perldoc/Mojolicious/Lite#Mode
15:03 jberger olg: if a log directory exists, the log goes there, this is a very old behavior for mojo
15:04 jberger predates my joining the project at least
15:04 olg doh, thanks - missed that :/
15:07 denis_boyun_ joined #mojo
15:18 woz joined #mojo
15:32 cpan_mojo Galileo 0.036 by Joel Berger - http://metacpan.org/release/JBERGER/Galileo-0.036 (depends on Mojolicious::Plugin::Memorize)
15:34 jberger sri: moving to proper template files works just fine, since the routes are not built (and thus have no controller logic) I have no security fears
15:34 jberger https://github.com/jberger/Galileo/commit/dd92cdb3874ea8b56849ee1bf01d6a9a48f44484
15:36 sri jberger: at some point i believe that might cause a problem
15:36 sri https://github.com/kraih/mojo/blob/master/lib/Mojolicious/Renderer.pm#L245
15:36 sri we already warmup data for template files, and it's only getting more
15:37 sri so don't be surprised if it breaks
15:38 sri nevermind, you're doing the right thing and don't add a path at runtime :)
15:38 sh4 joined #mojo
15:39 cpan_mojo Mojolicious-Plugin-BootstrapHelpers 0.006 by CSSON - http://metacpan.org/release/CSSON/Mojolicious-Plugin-BootstrapHelpers-0.006
15:41 neilhwatson joined #mojo
15:45 jberger sri: yep
15:45 jberger I looked into that as I worked
15:45 jberger thanks tho
15:48 jberger it was such a cute hack tho, I'm sad to see part of it go
15:48 jberger ;'(
15:49 jberger the best part of the hack was, after it wrote the config file in step 1, it reloaded that same config file into the app
15:49 jberger it then uses those db config setups to connect to the database
15:50 jberger it really is configuration on the fly
15:50 jberger you are using the app to configure/setup itself
15:51 jberger and that is still true
15:51 jberger it's just not self-contained anymore
16:06 sri jberger: you could always make it a second app though, even mount it into the first
16:08 cpan_mojo Test-Mojo-Trim 0.03 by CSSON - http://metacpan.org/release/CSSON/Test-Mojo-Trim-0.03
16:17 Eke- joined #mojo
16:53 tomboh left #mojo
17:25 cpan_mojo Ado 0.60 by Krasimir Berov - http://metacpan.org/release/BEROV/Ado-0.60 (depends on Mojolicious::Plugin::DSC)
17:39 meshl joined #mojo
17:56 Eke- joined #mojo
18:00 sri oh, gittip has a new name
18:42 KCL_ joined #mojo
18:43 denis_boyun joined #mojo
18:47 olg left #mojo
19:06 sri \o\
19:07 sri /o/
19:10 asarch joined #mojo
19:11 asarch How do I (the server) know when the user (the remote client) has closed the browser window (to delete the session)?
19:14 sri you don't
19:14 neilhwatson http is stateless, you can't know.
19:18 zivester joined #mojo
19:19 asarch You have a typo in: http://mojolicio.us/perldoc/Mojolicious/Guides/FAQ#What-does-Your-secret-passphrase-needs-to-be-changed-mean
19:19 asarch Instead of "app" it should be "$app"
19:20 sri nope
19:20 asarch What is 'app' and where is it?
19:21 asarch It should be $self, right?
19:24 asarch It was $self :-P
19:25 asarch D'oh!
19:28 sri also wrong
19:28 asarch ?
19:28 sri all are valid depending on context
19:28 Eke- joined #mojo
19:29 stephan48 some of you use the Atom editor if i recall correctly, do you know if it has a native way of editing remote(via sftp/scp) files?
19:29 good_news_everyon joined #mojo
19:29 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/-jIW8Q
19:29 good_news_everyon mojo/master a12d62c Sebastian Riedel: use $app consistently outside of Mojolicious::Lite apps
19:29 good_news_everyon left #mojo
19:30 asarch Oh I see, app and $app didn't work (the application complains about the undeclared var), nevertheless, $self worked fine
19:59 tasting joined #mojo
19:59 jberger stephan48: someone asked about that a few months ago (I might have thought it was you actually), either way, the answer was "we don't think so"
20:00 sri damn, i was soooo sure i had a neat little Mojo::Template optimization... but it might not be worth it after all
20:01 sri https://gist.github.com/anonymous/a0e9be83289c4d796711
20:01 sri the test case
20:01 purl hmmm... the test case is designed to show the permissions changing, but I can't see how or why.
20:01 sri MOJO_TEMPLATE_DEBUG=1 perl -Ilib -Mojo -E 'my $c = app->build_controller; n { $c->render(inline => "foo\n" x 100) } 10000'
20:02 sri output before https://gist.github.com/anonymous/ab37b161b28c31ecea73
20:03 sri output after https://gist.github.com/anonymous/3992a1ab242b8468adc1
20:04 sri lol, i broke the linkembedder in convos... my second gist link replaces the preview of the first!
20:04 stephan48 jberger: mh okey, might have been me, i don't remember ;)
20:05 sri anyway, the idea was to turn 100 "$buffer .= "foo\n"" into "$buffer .= "foo\nfoo\nfoo\nfoo\n...""
20:08 bodgix joined #mojo
20:08 marcus sri: that doesn't happen here.
20:08 sri hmm... the gain is better around 1000 lines
20:09 marcus (convos link embedder shows two different gists).
20:09 sri how odd
20:09 sri anyway!
20:09 sri the gain at 1000 lines is about 25%
20:10 neilhwatson joined #mojo
20:10 sri how big is the average html template and how big are the static blocks?
20:10 marcus I'm sure it varies a lot
20:12 sri before and after https://gist.github.com/anonymous/acca285b54edbb4c30e8
20:14 sri barely noticeable at 50 lines https://gist.github.com/anonymous/443255790107bd363f28
20:15 sri and convos did it again... replaced the gist preview before
20:15 sri even if i reload i only see the first gist preview with the content of the second
20:17 preaction joined #mojo
20:17 jberger sri: odd, I see both
20:19 sri hmm, i guess the average block of static html will be around 50 lines... not 1000... so the optimization doesn't seem worth it :/
20:20 sri although, if you have big html templates in a real app, give the patch a try and report results! (if you're interested in getting it applied)
20:24 cpan_mojo Mojolicious-Plugin-BootstrapHelpers 0.007 by CSSON - http://metacpan.org/release/CSSON/Mojolicious-Plugin-BootstrapHelpers-0.007
20:26 asarch A broken link: http://mojolicio.us/perldoc/model
20:26 asarch From http://mojolicio.us/perldoc/Mojolicious/Guides/Growing#Model
20:28 good_news_everyon joined #mojo
20:28 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/ETSUVg
20:28 good_news_everyon mojo/master ac59188 Sebastian Riedel: fixed typo in growing guide
20:28 good_news_everyon left #mojo
20:29 sri yea, that wasn't supposed to be a link :)
20:35 sri hmm, i'm a bit of a doofus... my test case was not very good
20:35 sri at 100 lines of static html it is about a 10% performance gain
20:37 sri https://gist.github.com/anonymous/8d7e8a961a08cddba7b1
20:39 basiliscos joined #mojo
20:48 sri maybe i can golf it down to few enough lines that it's cheap enough to do anyway :)
20:48 sri down to 3 lines now
20:54 sri cleaner compiled templates might be an argument too http://i.imgur.com/i2Fzlvn.png
21:04 denis_boyun_ joined #mojo
21:06 sri allright, that's my best try https://gist.github.com/anonymous/893bba4201eb6dc3d34a
21:07 sri it doesn't have to walk the tree twice anymore
21:10 sri the fact that the parse method is already kinda huge also makes me hesitate
21:13 sri tell me what to do!
21:14 preaction joined #mojo
21:26 sri hehe, down to 2 lines
21:33 good_news_everyon joined #mojo
21:33 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/4C9DsQ
21:33 good_news_everyon mojo/master 3d2ed74 Sebastian Riedel: optimize successive text lines in Mojo::Template
21:33 good_news_everyon left #mojo
21:37 jamesaxl joined #mojo
21:58 zivester joined #mojo
22:07 jberger +1 for me
22:26 good_news_everyon joined #mojo
22:26 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/t5oqbQ
22:26 good_news_everyon mojo/master 9b8eb03 Sebastian Riedel: more elegant handling of blocks
22:26 good_news_everyon left #mojo
22:32 sri damn, doesn't actually work on older versions of perl
22:36 good_news_everyon joined #mojo
22:36 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/idhprQ
22:36 good_news_everyon mojo/master 85a45dd Sebastian Riedel: optimizing successive text lines does not work on older versions of Perl
22:36 good_news_everyon left #mojo
22:36 sri well, that was fun
22:41 sri apparently older versions of Perl get the line numbers on errors wrong :S
23:03 jamesaxl joined #mojo
23:04 sri very odd, if i paste the generated code into a file it works
23:07 meshl joined #mojo
23:07 d4rkie joined #mojo
23:08 sri if anyone wants to join this is the current patch https://gist.github.com/anonymous/60ce67f9b496e3b0b5b9
23:09 sri no clue if there's a version that can pass t/mojo/template.t on older perl versions
23:09 jamesaxl joined #mojo
23:10 sri the odd thing really is that it works fine if you run the generated code directly
23:35 preaction joined #mojo
23:42 bobkare joined #mojo

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