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

IRC log for #mojo, 2015-08-29

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

All times shown according to UTC.

Time Nick Message
00:01 didge joined #mojo
01:11 Flying_Squirrel joined #mojo
01:41 jberger it was stated as 79 when I joined the project
02:15 noganex_ joined #mojo
02:19 didge joined #mojo
02:35 jberger got my gist down to 165 lines
02:37 didge joined #mojo
02:37 jberger for all its functionality that's pretty good I think
02:38 mrallen1 joined #mojo
02:42 ZoffixMobile joined #mojo
02:44 ZoffixMobile jberger, looks sweet. But what is that an example of? Sending mail? If so, perhaps the signup confirmation email sending is all that's needed and the entire  forgot password" thing can be abandoned?
02:50 jberger ZoffixMobile: hmmmm, perhaps you are right, it really doesn't add anything
02:54 jberger ZoffixMobile: you know, you're right
02:54 jberger because the reset isn't really a good enough implementation anyway
02:54 ZoffixMobile \o/ sweet..
02:54 ZoffixMobile :-)
02:54 jberger even though it is "secure" it would suffer from replay attacks
02:55 jberger I don't think anyone is too worried about replay attacks on an email confirmation
02:57 * ZoffixMobile doesn't understand why mobile GitHub disabled zooming capabilities
02:59 * Grinnz didn't even know "mobile GitHub" was a thing
02:59 jberger https://gist.github.com/jberger/91a853ee223737c1a1d1
02:59 jberger new paste without forgot/reset, 120 lines
03:00 damaya joined #mojo
03:00 Grinnz that looks much more manageable
03:02 ZoffixMobile Grinnz, lol.. it exists, except it looks like this and you can't zoom out: m.imgur.com/a1QFKQJ
03:02 Grinnz heh
03:03 ZoffixMobile jberger, that looks great
03:14 jberger would it look better (enough better to be worth it) to use signatures?
03:15 Grinnz 'eh
03:20 jberger because the task has such a long signature, I actually lose a line on that one :o
03:20 jberger in the end its only 4 fewer lines
03:23 Grinnz and they're all anonymous subs
03:23 Grinnz and most of them it's just $c
03:23 jberger well that should be a win, one line per sub
03:23 jberger except that some are already one line
03:24 jberger reverted back to the gist
03:28 jberger it will save two more lines not to use the Print transport
03:30 jberger you can set it via the environment anyway, so I guess I'll do that
03:43 AndroUser2 joined #mojo
03:58 LordV joined #mojo
04:00 jberger I'm back and forth on sigs
04:00 jberger I can save 6 lines if I'm a little unscrupulous with line length
04:00 jberger < 90
04:02 jberger two more if I can convince myself to not hate a signature that long shifted that far right
04:02 * jberger shakes fist at ocd
04:02 Grinnz lol
04:05 LordV joined #mojo
04:15 jberger joined #mojo
04:21 kaare joined #mojo
04:48 diopow joined #mojo
04:49 didge joined #mojo
04:49 diopow i'm getting random behavior from "defaults" declared on app startup
04:50 diopow it is declared to a null value, i run the script/app prefork
04:51 diopow two clients, both see the same null value...then each one perform an action that changes the value
04:52 diopow let's say value change for A for client 1 and B for client 2
04:52 diopow at first they see those values
04:53 diopow but then at random, the value changes for A, B and the inital null for both clients
04:54 diopow anyone can explain this??
04:57 diopow no action is performed other than reading the "default" and it shows all those 3 values at random for both clients
04:59 diopow looks like a bug
05:00 LordV joined #mojo
05:28 LordV joined #mojo
05:32 LordV joined #mojo
05:32 berov joined #mojo
05:40 LordV joined #mojo
06:05 dod joined #mojo
06:10 dod joined #mojo
06:24 damaya joined #mojo
06:26 ashimema joined #mojo
06:29 dod joined #mojo
06:42 didge joined #mojo
06:42 damaya joined #mojo
07:03 cpan_mojo MojoX-Plugin-PHP-0.04 by MOB https://metacpan.org/release/MOB/MojoX-Plugin-PHP-0.04
07:04 Grinnz that's ... uh... a thing
07:11 deserted w....t....f
07:11 deserted PHP as a templating system?
07:20 ssm awww, that's just plain evil :)
07:39 trone joined #mojo
07:41 batman i think it's cool :)
07:42 batman the DESCRIPTION is good enough for me
07:53 ashimema joined #mojo
07:57 asm35 joined #mojo
07:58 Vandal joined #mojo
08:07 amon joined #mojo
08:08 didge joined #mojo
08:17 cpan_mojo Mojolicious-Plugin-Logf-0.07 by JHTHORSEN https://metacpan.org/release/JHTHORSEN/Mojolicious-Plugin-Logf-0.07
08:22 cpan_mojo Mojolicious-Plugin-Bootstrap3-3.3502 by JHTHORSEN https://metacpan.org/release/JHTHORSEN/Mojolicious-Plugin-Bootstrap3-3.3502
08:23 cpan_mojo Mojo-IRC-Server-1.0.2 by SJDY https://metacpan.org/release/SJDY/Mojo-IRC-Server-1.0.2
08:41 Quai "A Chinese IRC server".. :)
08:43 batman yeah... that's so weird.
08:57 cpan_mojo Mojo-IRC-Server-1.0.3 by SJDY https://metacpan.org/release/SJDY/Mojo-IRC-Server-1.0.3
09:07 didge joined #mojo
09:54 sri Zoffix: holy notification batman
09:55 batman sri?
09:55 sri http://imgur.com/a1QFKQJ
09:58 sri deserted: watch your language
09:59 batman deserted: see topic (channel is G-rated)
10:03 pink_mist "PHP as a templating system?" <-- isn't that what it started out as? :P
10:05 didge joined #mojo
10:07 sri stop swearing! ;p
10:09 jontaylor joined #mojo
10:10 pink_mist oops, my bad :P sorry :P
10:40 bscm joined #mojo
10:42 deserted pink_mist, PHP was started as a bad idea, and refined from there into a fractal of bad design :P
10:46 Adura 清昌创叮咚 PHP.
10:52 sh4 joined #mojo
10:57 stephen joined #mojo
11:10 sri hahaha, googling for why to use 79 char lines instead of 80 results mostly in a quote from guido about pep 8... "Because an 80 char wide Emacs window starts wrapping at 79."
11:12 * sri wonders how many lines of code would be removed if we used 100 char lines
11:13 sri oh, quite a few as it turns out
11:13 sri from 8618 to 8399 lines :o
11:15 sri anyway, i think the 80 char line limit is still relevant
11:16 sri 100 looks odd even in a gist https://gist.github.com/anonymous/8188f553d285be457218
11:17 pink_mist I think changing it would be silly; if it's there, it should be kept at the standard 80 chars ... if someone argued for removing it altogether, I wouldn't argue against that though :P
11:17 sri i think it's relevant because of split panes
11:18 pink_mist ah, fair
11:33 sri Grinnz: heh, look what i found, isn't this odd? Oo https://github.com/kraih/mojo/blob/master/Changes#L439
11:36 sri guess that makes it a bug fix ;p
11:36 good_news_everyon joined #mojo
11:36 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/vGGz2
11:36 good_news_everyon mojo/master dea5fd2 Sebastian Riedel: packaging changes should be mentioned
11:36 good_news_everyon left #mojo
12:02 cpan_mojo XML-Loy-0.41 by AKRON https://metacpan.org/release/AKRON/XML-Loy-0.41
12:06 didge joined #mojo
12:08 dod joined #mojo
13:03 absolut_todd joined #mojo
13:22 doby joined #mojo
13:33 asm35 joined #mojo
14:01 asarch joined #mojo
14:15 iloveyou joined #mojo
14:22 meshl joined #mojo
14:44 good_news_everyon joined #mojo
14:44 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/vGZLL
14:44 good_news_everyon mojo/master 20bb97d Sebastian Riedel: use a better idiom to check for an empty string
14:44 good_news_everyon left #mojo
14:47 sri p5p thread showed that length in boolean context is a bad idea in some cases
14:47 sri "eq ''" is more solid
14:49 sri i guess "$foo eq ''" is easily optimized, while "!length $foo" is tricky
14:52 nicomen someone suggested optimizing length i boolean context?
14:52 nicomen *in
14:56 sri yea
15:25 didge joined #mojo
15:35 ajr_ joined #mojo
15:36 ZoffixWork joined #mojo
15:37 ZoffixWork The nice thing about length is it doesn't issue undefined warning on modern perls. eq '' does :)
15:37 ZoffixWork So you can avoid all those // '';
15:37 batman ZoffixWork: i got an idea :) https://github.com/jhthorsen/mojolicious-plugin-assetpack/issues/63#issuecomment-136001592
15:38 iloveyou joined #mojo
15:40 sri Zoffix: but it's very very slow in some cases
15:40 ZoffixWork batman, I like the concept, but not the "replace" "with" bit. I'd want to be able to pass a sub ref. For example, on the issue of relative paths, the "proper" way is to fix them is to parse CSS file and not merely hack it up with a regex.
15:41 sri Zoffix: i like your style of reporing issues
15:41 ZoffixWork :)
15:46 PryMar56 joined #mojo
15:46 asm35 joined #mojo
15:47 batman ZoffixWork: right. i'm not going to parse css files :(
15:47 ZoffixWork :)
15:48 ZoffixWork I don't think we can anyway... Since we're dealing with SASS and others.
15:51 ZoffixWork batman, you know what. Looking at it again with fresh eyes, I think $t->app->asset->preprocessors->add(css => sub {... }); should just be a recommended way to deal with the issue. We can't (or shouldn't) parse to automatically fix the issue and adding Preprocessor::Rewrite is overengineering things a bit. We'd make the plugin more complex, with little benefit.
15:51 batman not going to parse anything. the super basic sass parsing is over the limit, but required.
15:51 ZoffixWork batman, I think that Issue should just be closed.
15:51 batman meaning i don't even want to parse the @import statements
15:52 batman go ahead and close it :)
16:00 Grinnz sri, that is interesting... looks like you changed it to meta spec v2 but without the meta-spec tag, and then reverted it
16:01 Grinnz there used to be a MailingList tag but i don't think that's valid
16:05 sri i don't remember any of it :/
16:12 lluad joined #mojo
16:22 dod joined #mojo
17:06 zivester joined #mojo
17:30 asarch joined #mojo
17:35 jontaylor joined #mojo
17:41 Adura joined #mojo
17:52 iloveyou joined #mojo
18:03 kaare joined #mojo
18:28 kaare_ joined #mojo
18:35 iloveyou joined #mojo
18:53 sri hmm, those ligatures are an interesting idea for a programming font https://github.com/tonsky/FiraCode
18:55 mudler joined #mojo
18:56 Vandal joined #mojo
18:59 jwang joined #mojo
19:27 iloveyou joined #mojo
19:37 ajr_ joined #mojo
19:46 iloveyou joined #mojo
20:11 ZoffixWork joined #mojo
20:13 ZoffixWork sri, how difficult is it to create new gift shop items? I want the teddy bear, but one that's wearing the rainbow-puking-raptor shirt https://shop.spreadshirt.com/kraih/-A100073856 https://shop.spreadshirt.com/kraih/failraptor-A100066327
20:14 iloveyou joined #mojo
20:17 sri ZoffixWork: just tried, not possible
20:17 ZoffixWork awww :(
20:17 sri there's also no teddy bear with blue shirt
20:20 sri i think the design has to be a 1-3 color vector image
20:26 didge joined #mojo
20:32 lluad_ joined #mojo
21:03 iloveyou joined #mojo
21:35 howitdo joined #mojo
22:04 PryMar56 joined #mojo
22:12 jontaylor joined #mojo
22:26 didge joined #mojo
22:34 meshl joined #mojo
22:52 asarch joined #mojo
23:22 iloveyou joined #mojo
23:49 jontaylor joined #mojo

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