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

IRC log for #mojo, 2016-05-20

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

All times shown according to UTC.

Time Nick Message
00:01 pink_mist perhaps it'd be more clear if one showed with a hash: my %hash = (foo => 'bar); my $obj = \%hash; bless $obj, 'Class'; $obj->{foo} = 'baz'; ... $obj is clearly still the same reference that's blessed. it's just the value stored under the 'foo' key in the underlying hash that gets changed.
00:02 pink_mist it's the same principle for the scalar ref
00:04 allnighter Makes sense, thanks!
00:25 allnighter anyone tried Mojo::Base::XS ?
00:26 sri looks like this one went stale https://github.com/kraih/mojo/issues/960
00:28 sri btw. some ideas for optimizing these queries would be cool https://github.com/kraih/minion/blob/master/lib/Minion/Backend/Pg.pm#L107-L144
00:44 marty joined #mojo
00:46 marty joined #mojo
01:09 sri looks like the cpan bot is dead
01:12 bpmedley What's a good way to get test data for those queries?
01:22 marty joined #mojo
01:23 marty_ joined #mojo
01:23 disputin joined #mojo
01:36 lluad joined #mojo
02:24 marty joined #mojo
02:43 inokenty-w joined #mojo
02:57 noganex joined #mojo
03:11 allnighter joined #mojo
03:25 marty joined #mojo
03:41 tyldis joined #mojo
04:22 tyldis_ joined #mojo
04:26 irqq joined #mojo
04:36 umask001 joined #mojo
04:36 Guest-quest joined #mojo
04:49 punter joined #mojo
04:59 Adurah joined #mojo
05:26 allnighter joined #mojo
05:27 jberger batman: the batsignal is lit
05:28 marty joined #mojo
05:35 dod joined #mojo
05:40 dod joined #mojo
05:49 batman jberger?
05:55 dod joined #mojo
06:10 trone joined #mojo
06:27 ashimema joined #mojo
06:38 punter joined #mojo
07:16 ashimema joined #mojo
07:23 AndrewIsh joined #mojo
07:44 trone joined #mojo
08:18 Vandal joined #mojo
08:24 osfabibisi joined #mojo
09:04 dod joined #mojo
09:05 ashimema joined #mojo
09:57 irqq joined #mojo
10:21 pink_mist batman: I'd assume he meant sri mentioning the cpan bot is dead (but I dunno really)
10:36 sue joined #mojo
10:38 sri yay, the first person has used the new issue template https://github.com/kraih/mojo-pg/issues/20
10:44 sue joined #mojo
10:47 pink_mist wow, even provided a patch!
10:49 dvinciguerra joined #mojo
10:50 tchaves joined #mojo
10:56 punter joined #mojo
11:12 itaipu joined #mojo
11:34 Jonis oh neat, that's the mojo::test:session guy
11:34 Jonis I was looking at that five seconds ago
11:46 mcsnolte joined #mojo
12:30 dvinciguerra joined #mojo
12:46 dod1 joined #mojo
12:46 dod2 joined #mojo
12:50 ashimema joined #mojo
12:57 ramortegui joined #mojo
13:23 cpan_mojo joined #mojo
13:30 itaipu joined #mojo
14:01 itaipu joined #mojo
14:14 gizmomathboy joined #mojo
14:27 itaipu joined #mojo
14:45 jnbek joined #mojo
15:26 marty joined #mojo
15:35 allnighter joined #mojo
15:37 marty joined #mojo
15:52 marty joined #mojo
15:54 dod joined #mojo
16:00 kaare joined #mojo
16:05 lluad joined #mojo
16:26 irqq joined #mojo
16:38 marty joined #mojo
17:03 allnighter joined #mojo
17:14 marty joined #mojo
17:31 augensalat joined #mojo
17:35 Zoffix joined #mojo
17:36 Zoffix Did something change with how AssetPack finds the assets? I tell it to look for 'assets/sass/main.scss' (https://github.com/zoffixznet/perl6.party/blob/master/app.pl#L16) and I have that file in my public directory (https://github.com/zoffixznet/perl6.party/blob/master/public/assets/sass/main.scss), but AssetPack tells me "Could not find asset 'assets/sass/main.scss'"
17:41 PryMar56 joined #mojo
17:41 batman Zoffix: since when?
17:41 Zoffix I just tried to use the new version. I just wrote that code.
17:42 Zoffix Oh, it's no longer looking in public, but in $app-home/assets? https://metacpan.org/source/JHTHORSEN/Mojolicious-Plugin-AssetPack-1.11/lib/Mojolicious/Plugin/AssetPack.pm#L20
17:42 batman Zoffix: yes.
17:43 batman you can change it, but that's the default.
17:44 batman Zoffix: i hope the tutorial tells you the correct location... https://metacpan.org/pod/distribution/Mojolicious-Plugin-AssetPack/lib/Mojolicious/Plugin/AssetPack/Guides/Tutorial.pod
17:45 batman been a while since i wrote the tutorial :/
17:45 Zoffix Sweet. That fixed it. Thanks, batman++
17:45 batman Zoffix: sweet! any feedback is more than welcome
17:46 Zoffix If I come up with anything, I'll be sure to let you know.
17:46 Zoffix \o
17:47 batman you could put the assets in __DATA__ as well or do $app->asset->store->paths([$app->home->rel_dir("public")]);
17:51 batman i really like how i can pull stuff in from the web now: https://metacpan.org/pod/distribution/Mojolicious-Plugin-AssetPack/lib/Mojolicious/Plugin/AssetPack/Guides/Tutorial.pod#Defining-assets-in-a-definition-file
17:52 batman incredible easy to depend on bootstrap, materializecss or other sass based projects.
17:52 batman i should probably implement the same support for "less", but.... i don't care enough :(
17:59 Zoffix joined #mojo
18:00 Zoffix Seems something is buggish somewhere? I get almost 3KB of newlines in my CSS: http://perl6.party/asset/a6de649c4d/app.css This is the app https://github.com/zoffixznet/perl6.party/blob/master/app.pl and I installed all the optional dependencies (https://metacpan.org/pod/distribution/Mojolicious-Plugin-AssetPack/lib/Mojolicious/Plugin/AssetPack/Guides/Tutorial.pod#Optional-dependencies)
18:02 batman Zoffix: i haven't experience that. maybe there's some weird \r\n handling..?
18:02 batman i have no idea :/
18:03 marty joined #mojo
18:17 Zoffix The asset is marked as minified by the time it reaches Css pipeline and so isn't minified :/
18:17 dvinciguerra joined #mojo
18:18 Zoffix And it's marked as such in Sass pipeline
18:27 batman Zoffix: Pipe::Sass is supposed to minify the asset.
18:28 Zoffix Yeah. I'm investigating that ATM
18:28 batman Zoffix: can you see if pipes => [qw(JavaScript Sass Combine)] makes any difference?
18:29 batman maybe you even need to modify sass/main.scss (add a newline) to force recalculation
18:30 batman and are you running the app in production mode?
18:37 Zoffix Found the bug
18:37 batman do tell :)
18:38 Zoffix batman, on this line, _COMPACT needs to be _COMPRESSED. Compact is what places rulesets one per line with an extraneous newline between them: https://github.com/jhthorsen/mojolicious-plugin-assetpack/blob/master/lib/Mojolicious/Plugin/AssetPack/Pipe/Sass.pm#L124
18:39 batman so weird. maybe CSS::Sass has been updated :/
18:39 Zoffix Maybe.
18:40 Zoffix This gives me the multi-line version, but if I change it to COMPRESSED, then it's properly minified: perl -MCSS::Sass=sass_compile  -wlE 'say +(sass_compile("a { color: red; }\nb { color: red }", output_style => CSS::Sass::SASS_STYLE_COMPACT()))[0];'
18:40 batman or maybe i'm just not paying attention... hard to say :/
18:40 Zoffix :)
18:41 batman which version of CSS::Sass do you have?
18:41 batman nevermind
18:41 batman i'm seeing the same thing
18:41 Zoffix CSS::Sass is up to date. (3.3.3)
18:41 batman so weird i haven't picled that up :(
18:41 * batman feels embarrassed
18:42 batman I even had CSS::Sass::SASS_STYLE_COMPRESSED in the old version
18:52 allnighter joined #mojo
19:02 odc joined #mojo
19:03 batman Zoffix++
19:06 Zoffix \o/
19:06 batman not sure what's up with cpan_mojo :(
19:07 batman [2016-05-20T19:07:08Z] No new releases found.
19:09 pink_mist it didn't notice the Mojo::Pg release?
19:17 allnighter joined #mojo
19:22 cpan_mojo joined #mojo
19:23 cpan_mojo joined #mojo
19:23 cpan_mojo joined #mojo
19:23 cpan_mojo Mojolicious-Plugin-AssetPack-1.12 by JHTHORSEN https://metacpan.org/release/JHTHORSEN/Mojolicious-Plugin-AssetPack-1.12
19:24 batman right. so the new startup script i had deployed had a bad character in the filter regex
19:24 batman all good now
19:37 jberger batman++
19:37 jberger (for cpan_mojo)
19:37 jberger batman++ / Zoffix++ # squashing bugs
19:39 mishanti1 ..meanwhile I am trying to cooperate with awindows 10 machine and Microsoft Edge.
19:39 jberger batman: I think perhaps Imgur embed broke
19:39 jberger I don't have time to look now, but I'm seeing broken links on existing images
19:47 batman jberger: that's fine. not sure how to pull the fix in :(
19:48 jberger batman: do you see this embed for this: https://imgur.com/FoPb9IJ
19:48 batman nope
19:49 jberger I'll try to take a look soon if you don't get to it
19:49 * jberger 's stack depth is getting too high
19:50 batman i don't think i will.
19:50 batman time is running away from me :(
19:51 batman i have no idea why, but time seems to be running faster in 2016 :/
19:51 mishanti1 batman: Yup. It is quite annoying. Let me know if you find a fix for time.
19:52 batman mishanti1: you too :)
19:52 mishanti1 Will do. :)
20:04 zivester joined #mojo
20:26 slobo joined #mojo
20:30 punter joined #mojo
21:27 mishanti1 Hah. When using Edge and bing to search for "Chrome", the three top ads on the Bing-page are serving chrome with malware included.
21:28 bpmedley Wow.. perhaps we should just ship our computers to the malware authors.. give up.. :)
21:29 mishanti1 Hehe.
21:34 itaipu joined #mojo
21:38 bpmedley File "blah.pl" changed, restarting: 2016-05-20T17:37:25  <-- Would a morbo patch that shows the restart time be useful?
21:45 dvinciguerra joined #mojo
21:45 Grinnz_ bpmedley: aren't all log entries timestamped already?
21:46 bpmedley Grinnz_: Is that in the log or via regular "say"?  I believe it's a "say".
21:47 Grinnz_ oh right, that's a verbose thing, not debug logging
21:50 pink_mist Good news everyone! https://imgur.com/gallery/hxB7X
21:51 bpmedley pink_mist: Nicht versteha
21:54 slobo joined #mojo
21:54 good_news_everyon joined #mojo
21:54 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/vrgmU
21:54 good_news_everyon mojo/master 3ef203b Sebastian Riedel: update jQuery to version 2.2.4
21:54 good_news_everyon left #mojo
22:21 orev1 joined #mojo
22:23 trwww joined #mojo
22:28 lluad joined #mojo
22:35 lluad joined #mojo
22:57 lluad_ joined #mojo
23:09 slobo joined #mojo
23:19 bobkare joined #mojo
23:20 Zoffix joined #mojo
23:20 Zoffix batman, I think the tests are now failing. The test is looking for a semicolon that got compressed away: https://gist.github.com/zoffixznet/283d71a6381e84ba309ec4701a224aec
23:26 marty joined #mojo
23:27 orev1 is there a way to include files in an ep template, like INCLUDE in template toolkit?
23:28 orev I'm already using layouts, but I have some common elements across layouts
23:28 bpmedley orev: i think there is an include helper
23:29 orev I see it.  thanks
23:49 itaipu joined #mojo
23:57 itaipu joined #mojo

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