Camelia, the Perl 6 bug

IRC log for #mojo, 2013-10-02

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

All times shown according to UTC.

Time Nick Message
00:15 vaewyn joined #mojo
00:36 vaewyn left #mojo
00:48 btyler joined #mojo
00:54 moltar joined #mojo
01:00 shmuel joined #mojo
01:05 laouji joined #mojo
01:27 jnbek joined #mojo
01:57 asarch joined #mojo
02:00 d4rkie joined #mojo
02:48 shmuel joined #mojo
03:04 preflex_ joined #mojo
03:36 lukep_ joined #mojo
04:47 d4rkie joined #mojo
05:18 basic6_ joined #mojo
05:51 dqw7 joined #mojo
06:15 dod joined #mojo
06:20 dpetrov_ joined #mojo
06:31 Vandal joined #mojo
06:45 dod joined #mojo
07:04 frannymay joined #mojo
07:04 frannymay Does Hypnotoad/Morbo support gzip compression like Apache?
07:05 dod joined #mojo
07:14 batman frannymay: https://metacpan.org/module/Mojolicious::Guid​es::Rendering#Post-processing-dynamic-content
07:20 mire_ joined #mojo
07:20 dvinciguerra joined #mojo
07:23 dod joined #mojo
07:28 tba joined #mojo
07:31 frannymay adding this hook results in this:  Event "read" failed: Can't call method "gzip" on unblessed reference
07:35 frannymay interesting... calling it with $self->render('index', gzip => 1); results in that error.
07:44 batman did you actually load IO::Compress::Gzip ?
07:44 trone joined #mojo
07:45 frannymay I did.
07:46 frannymay Actually, it may be because I am trying to also do a $self->render(json => $out, gzip => 1);
07:49 frannymay Yeah, removing gzip => 1 from the rendering of json seems to have gotten rid of the error. Though, Page Speed Analysis is still saying that the CSS in my template is not compressed.
07:49 frannymay Oh well, at least for the most part it is working.
08:06 batman frannymay: this is after --dynamic-- content
08:06 batman you need to do around_dispatch if you want to append the filter to all content
08:06 batman i use a cdn in front, so i don't have to worry about static content.
08:06 batman cloudflare++
08:11 themage joined #mojo
08:26 frannymay This site is internal on a corporate network, thus I am stuck with what we have. I wish I could use something like cloudflare, but just the fact that I am able to use a Perl that is not 5.8.4 is simply amazing.
08:26 frannymay Otherwise I'd be doing this entire thing in CGI.
08:28 dod joined #mojo
08:28 batman internal? why do you need gzip then?
08:28 frannymay because I am getting jquery unresponsive script errors and need to do whatever I can to get the load time down.
08:29 frannymay I am using datatables, populating the table from a SQL database, but for some reason something is happening (which Firebug is not being helpful on) that is making the page take forever to load.
08:29 frannymay Well, not forever on my system, but on the crappy systems the people I am designing this for are using... yeah.
08:34 nic frannymay: If the client boxes are underpowered, getting them to gunzip everything could make things worse
08:35 frannymay Actually, testing just now on their systems I have noticed that it does make things worse.
08:35 frannymay This is not an issue with mojolicious, but rather an issue with a very slow database server.
08:38 punter joined #mojo
08:48 moritz ok, I've now registered meatpan.org :-)
08:51 arthas joined #mojo
08:57 alnewkirk joined #mojo
08:58 nic not to be confused with meatspin...
08:59 nic (please don't google that; if you don't know it, you're v lucky)
09:00 moritz nic: it's meant to become a perl job board (like CPAN, but you get meat-space developers)
09:00 nic oh no, meatpan, meatspace, it's just a matter of time
09:01 jamesw metameat
09:14 moritz jamesw: that would be for a dating platform :-)
09:15 moritz or social graph exploration in meat-space, aka pub?
09:22 tholen42 joined #mojo
09:25 jamesw heh
09:29 jamesw i suppose it depends on how you pronounce meta
09:32 jpn joined #mojo
09:37 tholen42 joined #mojo
09:52 jpn joined #mojo
09:54 jpn joined #mojo
10:00 tholen42 joined #mojo
10:09 depesz joined #mojo
10:09 depesz hi. i can't find in perldoc Mojolicious - how can I set logfile?
10:09 depesz right now mojo app logs to stderr (which i can see via strace) but stderr is redirected to dev/null (probably by hypnotoad)
10:10 mire__ joined #mojo
10:24 ryozi joined #mojo
10:24 tholen42 joined #mojo
10:30 yakudza depesz, Mojolicous lite ? create folder log (;
10:33 yakudza depesz, http://mojolicio.us/perldoc/Mojo/Log http://mojolicio.us/perldoc/Mojo#log for Mojolicious
10:43 crab depesz: e.g. sub production_mode { shift->log->path("blah") }
10:48 tholen42 joined #mojo
10:49 kwa crab: Hasn't that method been deprecated?
10:49 kwa I think it's now if ($self->mode eq 'production') { }
10:49 kwa In startup().
10:53 depesz yakudza: thanks.
11:09 henq joined #mojo
11:09 crab kwa: ah, just last month.
11:12 tholen42 joined #mojo
11:13 depesz left #mojo
11:15 wippler joined #mojo
11:16 wippler how to implode a mojo app into a lite_app?
11:17 wippler um, turn a mojo app with templates and static files into a lite_app -- make it a single file
11:18 wippler there is an "inflate" command is there an opposite? generate lite_app doesn't use the curren't apps templates, it uses default hello app
11:20 basiliscos joined #mojo
11:23 crab no.
11:24 crab as in, no, there's no command to do it. if you want to "implode" an app, you have to do it yourself.
11:24 crab and inflate only removes static resources from data sections, it leaves your code alone (of course).
11:27 wippler yeah, thanks
11:27 tholen42 joined #mojo
11:33 tholen42 joined #mojo
11:53 tholen42 joined #mojo
11:58 dod joined #mojo
12:00 marty kwa: crab:  I thought it was $self->app->mode
12:01 marty btw, moinin ya'll
12:03 kwa marty: *Shrugs* From startup, Mojolicious is the base, which looks like $self->mode. Maybe both? :/
12:05 marty ahhh, ok.  yep, you are correct.  I was just using $self-app->mode in my controllers. I did not think about startup.
12:10 mattp joined #mojo
12:11 laouji joined #mojo
12:12 Andreas2 joined #mojo
12:12 Andreas2 left #mojo
12:39 rem_lex joined #mojo
12:40 sri hmm, i've now told the same person three times not to open github issues for support requests
12:41 sri seems like he doesn't care at all, since crab answered one of his questions once
12:47 sri maybe time to try the github block feature
12:48 jpn joined #mojo
12:49 wippler or you could like help the guy out :p
12:51 maxhq joined #mojo
12:52 sri if you're being rude, there is no chance i would sacrifice time to help you
12:56 wippler guy probably doesn't realize its considered rude  -- btw, what do you kill time with, hammer of chainsaw?
12:58 marty wippler:  last time I checked sri kills time with writing awesome software that he gives away for free.   sri is not responsible (or even obligated) to help everyone out who does not understand **something**
12:59 wippler joined #mojo
13:00 wippler and then what happened? :P
13:00 mire__ joined #mojo
13:00 marty did you see this...   wippler:  last time I checked sri kills time with writing awesome software that he gives away for free.   sri is not responsible (or even obligated) to help everyone out who does not understand **something**
13:01 marty wippler: Perhaps you should spend more time contributing rather than criticizing the people who write software you use.
13:02 wippler aww come on guy
13:02 sri marty: if you want to be more lazy you can link to the log :) http://irclog.perlgeek.de/​mojo/2013-10-02#i_7662043
13:03 wippler yes, I have the log open ; so sri saw the guys open issue, saw they were "support requests" , and directs the guy to mailinglist/irc
13:03 asarch joined #mojo
13:03 wippler each one was short with a fairly obvious answer -- could have answered
13:04 wippler guy is obviously ignorant and oblivious that he is being rude -- maybe you can say "we consider ignoring this advice to be rude..." so guy will know
13:04 sri wippler: why don't you answer them all?
13:04 wippler if you ban him, he'll still remain ignorant
13:04 marty where is it written that sri has to do *anything* to help *anyone*?    I guess spending thousands of hours writing software for no pay is not enough huh?
13:04 wippler sri: cause I don't have github
13:04 sri the point of directing him somewhere else is so others can help him instead of core devs
13:05 wippler @marty come on guy
13:05 moltar joined #mojo
13:06 wippler @sri I get that , but did you copy/paste that response or type it in?
13:06 sri it's plastered all over the documentation, and even the new issue page links to the guidelines https://github.com/kraih/mojo/issues/new
13:07 marty what's with this "come on guy" crap.  I'm trying to help you out and point out that you are arguing for the wrong reason.   OSS developers have no obligation to help anyone.   Instead of critisising the people who write software you use, you need to help them out by answering the questions you can.
13:08 wippler yes it is, I saw it, but the guy obviously didnt -- or didnt understand -- some folks just don't get it until someone say "dude , you're being rude, stop that or you're banned"
13:08 russum joined #mojo
13:08 Adura "You get the support you pay for."
13:08 marty then wipple, why did'nt you say ""dude , you're being rude, stop that or you're banned"?
13:09 marty Insead of saying that you start to jump on sri for "not doing it correctly"
13:09 marty sheez, and people wonder why oss developers say fuckit and quit
13:10 wippler @marty whoa relax guy -- I wasn't asking for help. sri chatted into the chatbox and I offered him an alternative view point (with a smily face even) ; no jumping or anything hostile
13:11 wippler sri was all like "why doesn't this guy get it" -- cause hes' ignorant and oblivious -- he doesn't realize it -- i'll bet if the guys block he'll just create another account, because he doesn't get it
13:11 wippler needs explicitness
13:12 marcus "I don't have github" <- worst excuse ever.
13:12 sri wippler: please, just stop it
13:12 wippler can you be a little more specific?
13:13 sri wippler: stop it or i'm going to ban you
13:13 marty 05:56 wippler :"btw, what do you kill time with, hammer of chainsaw?"  Sure, you're not being rude, nope, not you
13:13 crab chain-hammer?
13:14 marty where is yko when you need him.   We could use a good alligator pit about now.  :)
13:14 wippler @marty it was all friendly , crab gets it ; @sri ok-bye
13:14 crab crab is probably the most confused person here. he doesn't get anything.
13:15 hrupp joined #mojo
13:18 wippler @crab have you checked for PSP blooms ? :) I really wasn't trying to be rude
13:19 sri in retrospect i always feel silly for trying to argue about this stuff... maybe community gardening should just be done and not talked about
13:22 wippler maybe ... have you seen https://github.com/PerlChina/POD_CN/issues/2   so this could very well be a language+culture barrier issue
13:22 sri wippler: final warning
13:23 wippler @sri I don't get, whatever
13:24 sri mibbit of course
13:28 marty mibbit?
13:28 sri web client to stay relatively anonymous
13:29 marty ahhh,  hip tech stuff.  no wonder I didn't know what it was.
13:29 sri haha, mibbit has been around like forever ;p
13:30 crab is wipplit the chap who was asking questions on github?
13:30 marty ok, then that means I am so progressive that i don't waste time with outdated tech.    (that sound better)
13:30 sri doubt it
13:31 marty lol wipplit.. wipplit it good
13:32 marty btw, that's a devo innuendo if anyone cares.
13:32 sri way to show your progressiveness with old music references!
13:33 marty heheheh
13:45 kwa I knew wippler's "come on guy" reminded me of something. He is Saddam Hussein, IRCing from hell: http://www.youtube.com/watch?v=AS-ts5_nuF8
13:47 sri that does explain a few things
13:47 sri btw. agents of shield rocks!
13:49 kwa Nice to know. It's only a couple of episodes in, so I'll wait until it has finished the series then batter it. :)
13:50 sri hah, blocking worked, he posted to the list \o/
13:51 kwa :)
13:51 marcus epic win
13:51 btyler joined #mojo
13:52 sri http://www.youtube.com/watch?v=Y6ljFaKRTrI
13:59 sh4 joined #mojo
13:59 dvinciguerra joined #mojo
14:02 rem_lex|pivo joined #mojo
14:05 bluescreen joined #mojo
14:11 hrupp left #mojo
14:13 sri anyone using validation already?
14:23 d4rkie joined #mojo
14:26 dqw7 joined #mojo
14:29 cfedde Is it still progressive rock even if it is 30 years old?
14:57 moltar joined #mojo
14:58 gryphon joined #mojo
15:11 denis_boyun joined #mojo
15:21 hrupp joined #mojo
15:21 hrupp left #mojo
15:21 fhelmber_ joined #mojo
15:37 avkhozov joined #mojo
16:04 maxhq joined #mojo
16:10 mire__ joined #mojo
16:12 sri hmm, passing the controller to validation checks and error generators sucks :(
16:14 denis_boyun joined #mojo
16:17 sri if i hate this enough i might consider removing validation again
16:32 Dandre joined #mojo
16:38 sri and i do hate it quite a bit already
16:39 sri passing the controller is a huge problem... since the current controller can change
16:40 tianon :(
16:42 sri i'm open for suggestions
16:43 sri but really, i only see horrible solutions atm... like $validation->current_controller($c)
16:43 sri the validation object persists for the whole request, the controller does not
16:51 sri hmm
16:51 sri i could also get rid of all message generation
16:51 sri and just store errors as list of arguments, pushing message generation down the stack
16:53 sri errors => {foo => [['size', 'name', 'value', 2, 10], ...]}
16:54 stephanj maybe make something like $validation->generate_message($c)?
16:55 stephanj and the function returns the generated messages
16:55 sri stephanj: and how would that look in a real app?
16:55 stephanj i have no clue :)
16:55 sri ...
17:07 * sri tends towards removing message generation
17:09 tianon if that means we get to keep the rest of validation, I'm all for removing message generation :)
17:10 sri personally i'm not actually using message generation
17:11 sri just the coloring of failed validations with descriptive labels
17:12 sri perhaps has_error should get a more neutral name
17:12 sri to leave room for future error messages, in case someone comes up with a design
17:12 sri has_failure?
17:19 tianon that sounds good to me - I'm definitely of the school that the page itself (before errors) should contain all the validation information in plain-text format, so that I don't have to mess up to be told what it was supposed to be, so the coloring is basically perfect :)
17:19 tianon even my login pages usually contain a reminder about the password requirements, so you don't feel stupid trying to remember which stupid password you used for the site :)
17:20 tianon it's always irritating to have to go back to the registration page to see what machination was required for some silly website to be happy
17:23 denis_boyun_ joined #mojo
17:24 Kovensky joined #mojo
17:51 good_news_everyone joined #mojo
17:51 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/Pcr2xw
17:51 good_news_everyone mojo/master f84d17f Sebastian Riedel: removed generators for dynamic error messages from Mojolicious::Validator
17:51 good_news_everyone left #mojo
17:58 good_news_everyone joined #mojo
17:58 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/fDH1nw
17:58 good_news_everyone mojo/master c05fda7 Sebastian Riedel: test and documentation tweaks
17:58 good_news_everyone left #mojo
18:11 good_news_everyone joined #mojo
18:11 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/bRu3iQ
18:11 good_news_everyone mojo/master 484cc7f Sebastian Riedel: do not store value with errors
18:11 good_news_everyone left #mojo
18:13 good_news_everyone joined #mojo
18:13 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/kMzkuA
18:13 good_news_everyone mojo/master dbd9149 Sebastian Riedel: mention how to retrieve details about failed validation checks
18:13 good_news_everyone left #mojo
18:23 Gedge joined #mojo
18:29 highflying joined #mojo
18:46 zackiv31 joined #mojo
18:52 denisboyun joined #mojo
19:15 good_news_everyone joined #mojo
19:15 good_news_everyone [mojo] kraih tagged v4.43 at 266d6d7: http://git.io/MunQOw
19:15 good_news_everyone left #mojo
19:22 mire__ joined #mojo
19:41 moltar joined #mojo
19:57 asarch joined #mojo
20:00 avkhozov joined #mojo
20:02 avkhozov joined #mojo
20:05 avkhozov joined #mojo
20:09 avkhozov joined #mojo
20:12 avkhozov joined #mojo
20:15 avkhozov joined #mojo
20:15 marty joined #mojo
20:19 sri marcus, jberger, tempire, crab: take a look
20:20 sri https://github.com/kraih/mojo/compare/307​d6e13c37886d553c5f4e9e7620b1d85e650d8...d​bd9149b359ff8846e09a99dc425a86f83d11bfe
20:47 __mkrull joined #mojo
21:09 bowtie_ joined #mojo
21:19 good_news_everyone joined #mojo
21:19 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/l9t5rg
21:19 good_news_everyone mojo/master 9ba4e88 Sebastian Riedel: small optimization
21:19 good_news_everyone left #mojo
21:47 lukep joined #mojo
22:25 moltar joined #mojo
22:47 dvinciguerra joined #mojo
23:30 Akron joined #mojo
23:45 good_news_everyone joined #mojo
23:45 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/Wn1Xqw
23:45 good_news_everyone mojo/master d2fbc3b Sebastian Riedel: a few more validation examples
23:45 good_news_everyone left #mojo

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