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

IRC log for #mojo, 2014-07-17

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

All times shown according to UTC.

Time Nick Message
00:40 dvinciguerra joined #mojo
01:03 laouji joined #mojo
01:35 klapperl joined #mojo
01:59 mattastrophe joined #mojo
02:19 mattastrophe joined #mojo
02:38 Eke- joined #mojo
02:46 dvinciguerra joined #mojo
03:03 TenshiLy1e joined #mojo
03:17 Ptolemarch joined #mojo
03:25 riche at mojoconf I thought I heard that assetpack did image minifying but perhaps it was somehing else?
03:25 riche *something
03:26 riche guess I'll have to wait til batman gets back online later
03:46 basic6_ joined #mojo
03:52 JohnDRockefeller joined #mojo
03:57 jberger I don't think it does image minifying out of the box
03:57 jberger But it would be easy enough to add given a compression system
04:00 irq joined #mojo
04:08 riche jberger: I think it would be pretty cool so we dont have to use stuff like pagespeed
04:09 riche perhaps I will just add it to his github as a request
04:12 riche added ... https://github.com/jhthorsen/mojolicious-plugin-assetpack/issues/19
04:14 sujithm joined #mojo
04:52 KCL_ joined #mojo
05:29 laouji joined #mojo
05:35 ryanc joined #mojo
05:35 kyshtynbai joined #mojo
06:06 denis_boyun joined #mojo
06:11 Eke- joined #mojo
06:31 rem_lex joined #mojo
06:36 arthas joined #mojo
06:44 sujithm joined #mojo
06:53 Lee joined #mojo
07:04 eseyman joined #mojo
07:04 cooper joined #mojo
07:05 neyasov__ joined #mojo
07:09 dod joined #mojo
07:16 Vandal joined #mojo
07:22 rawler joined #mojo
07:25 HtbaaPi joined #mojo
07:29 dod joined #mojo
07:49 Martin90 joined #mojo
07:51 fhelmber_ joined #mojo
08:17 neyasov__ joined #mojo
08:35 TenshiLyle joined #mojo
08:40 go|dfish hmm. 'mojo get mojolicio.us title text' seems to be emitting a warning with 5.14. doesn't happen with 5.13. I guess it's related to the all_text changes
08:44 mishantil go|dfish: The smartmatch warnings or one of the others?
08:45 go|dfish 'Use of uninitialized value in string eq' line 220 Mojo/DOM.pm
08:46 basiliscos joined #mojo
08:46 go|dfish Don't get a warning with: perl -Mojo -E 'say g("mojolicio.us")->dom("title")->text'
08:46 marcus__ joined #mojo
08:46 sujithm joined #mojo
08:51 irq joined #mojo
09:06 fhelmber_ joined #mojo
09:14 batman riche: jberger is correct. And I'm pretty sure I won't add it.
09:14 batman There's just too many ways and too many image types IMO.
09:16 batman riche: but if you have an idea on how to do it, then go crazy and make an extension of assetpack :) m::p::ImagePack that use AssetPack but adds another preprocssor.
09:18 batman riche: but please add the request. Maybe someone (you) has an easy way to do it. I think I will add everything that is easy :)
09:21 neyasov__ joined #mojo
09:27 sri batman: add a sprite generator :)
09:28 sri headache guaranteed
09:31 mire joined #mojo
09:33 denis_boyun joined #mojo
09:57 laouji joined #mojo
10:00 dpetrov_ joined #mojo
10:09 geira joined #mojo
10:16 dotan joined #mojo
10:28 Lee joined #mojo
10:39 sujithm joined #mojo
10:46 Negor joined #mojo
11:15 mattastrophe joined #mojo
11:24 neilhwatson joined #mojo
11:47 sujithm joined #mojo
12:03 mr-fooba_ joined #mojo
12:24 marcus__ joined #mojo
12:32 dvinciguerra joined #mojo
12:43 lipizzan joined #mojo
13:18 _WildPikachu_ joined #mojo
13:22 sh4 joined #mojo
13:23 D4RK-PH0ENiX joined #mojo
13:30 abhishekisnot joined #mojo
13:30 disputin joined #mojo
13:44 Kripton joined #mojo
13:48 btyler joined #mojo
13:51 kablamo joined #mojo
13:58 btyler_ joined #mojo
13:58 bluescreen joined #mojo
14:04 mtths joined #mojo
14:15 denis_boyun joined #mojo
14:27 neyasov__ joined #mojo
14:30 dvinciguerra joined #mojo
14:30 sri go|dfish: can be replicated with this one-liner perl -Mojo -E 'my $title = x(g("mojolicio.us")->body)->at("title"); say $title->text'
14:31 sri i think it wouldn't show before because ->text was checking parent elements differently
14:32 btyler joined #mojo
14:33 sri formatting would just be wrong in older versions
14:37 Lee joined #mojo
14:40 btyler_ joined #mojo
14:45 sujithm joined #mojo
14:46 mattastrophe joined #mojo
14:49 good_news_everyon joined #mojo
14:49 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/8ihU0w
14:49 good_news_everyon mojo/master 9e9ac56 Sebastian Riedel: fixed small selector bug in get command
14:49 good_news_everyon left #mojo
14:52 good_news_everyon joined #mojo
14:52 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/jDm2Tw
14:52 good_news_everyon mojo/master a0010c7 Sebastian Riedel: use each consistently
14:52 good_news_everyon left #mojo
14:52 sri go|dfish: fixed
14:56 disputin joined #mojo
15:06 kwa joined #mojo
15:18 btyler joined #mojo
15:25 btyler_ joined #mojo
15:45 dexteruk joined #mojo
15:47 crab just in case charlie brady is reading irc logs: implying that it might be in any way, shape, or form "best" to change renderer->paths in a controller, or in a helper, or in a hook, or before every request to a layout earns you a special mention.
15:48 mire joined #mojo
15:50 btyler joined #mojo
15:51 sri charlie brady is too hostile for me, i avoid threads he participates in these days :/
15:52 neyasov__ joined #mojo
15:58 neyasov___ joined #mojo
16:00 btyler_ joined #mojo
16:05 btyler joined #mojo
16:08 disputin joined #mojo
16:10 btyler_ joined #mojo
16:11 sujithm joined #mojo
16:15 btyler joined #mojo
16:22 btyler joined #mojo
16:27 btyler_ joined #mojo
16:40 batman sri: yeah, I just commented on https://github.com/jhthorsen/mojolicious-plugin-assetpack/issues/19
16:52 KCL joined #mojo
16:54 btyler joined #mojo
16:55 dexteruk joined #mojo
17:02 btyler_ joined #mojo
17:06 disputin joined #mojo
17:09 berov joined #mojo
17:17 lipizzan joined #mojo
17:26 btyler joined #mojo
17:36 btyler_ joined #mojo
17:38 dod joined #mojo
17:41 btyler joined #mojo
17:48 lipizzan joined #mojo
17:48 btyler_ joined #mojo
17:57 good_news_everyon joined #mojo
17:57 good_news_everyon [mojo] kraih tagged v5.15 at 8d01cd2: http://git.io/Z1o3oQ
17:57 good_news_everyon left #mojo
17:59 good_news_everyon joined #mojo
17:59 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/x7wI5Q
17:59 good_news_everyon mojo/master c1feca0 Sebastian Riedel: bump version
17:59 good_news_everyon left #mojo
18:11 go|dfish sri: ah, thanks for the explanation :)
18:14 val40 joined #mojo
18:24 [0xAF] joined #mojo
18:42 JohnDRockefeller joined #mojo
19:15 kyshtynbai joined #mojo
19:38 neyasov___ joined #mojo
19:49 irq joined #mojo
20:10 [0xAF] joined #mojo
20:12 zz_[0xAF] joined #mojo
20:22 Eke- joined #mojo
20:54 rem_lex joined #mojo
21:09 neilhwatson joined #mojo
21:22 sugar joined #mojo
21:23 basic6 joined #mojo
21:30 sugar joined #mojo
21:42 riche joined #mojo
21:45 riche batman: I added to the ticket re: img minify but I think it req more deep thinking on approach ... and probably an additional helper will be needed for the <img> tag helper src.
21:46 riche lol right when i sent this i saw ur response come thru
21:46 batman ;)
21:46 riche actually I was thinking perhaps minion can do the minifying
21:46 riche the literal minifying
21:46 riche and somehow update the channel cache so a helper would know which img to pick up
21:47 batman then i'm 99.9999999% sure this is not an assetpack task
21:47 riche anyways just thinking out loud
21:47 batman no idea why you want to use minion though
21:47 batman have you read my response?
21:47 riche imagine uploading a new image
21:47 riche yah
21:47 batman upload to where?
21:47 riche lol that's another point of discussion
21:48 * batman will probably close the issue as "won't fix"
21:50 riche I just don't want to rely on an outside source to do minifying like that ... but I will think of it more and perhaps tinker after work today
21:51 batman what do you mean about "outside source"?
21:51 Eke- joined #mojo
21:51 riche service outside of current domain
21:51 riche tinypng
21:52 batman right. but how will you be able to decide what is best for me or anyone else? AssetPack is supposed to use the best way available.
21:52 batman not sure if such a thing exists for images
21:52 batman "such a thing" = "the best solution"
21:53 sugar_ joined #mojo
21:54 riche I need to round out my thinking on it a bit more.  If people want to use another online service to do the work that is their choice, but it would be nice to have its availability via plugin
21:55 riche go ahead and close it, I think we both know it doesnt necessarily fit in the spirit of assetpack right now
21:58 riche oh you asked me why I thought of minion - because this is a processor intensive activity, and if you have half a dozen channels and updating / adding many images, could take a while to crunch.  that's all.
21:59 btyler joined #mojo
22:01 sri riche: are you thinking of resizing images?
22:03 riche sri: that is part of it, and also possibly changing depth based on channel
22:03 riche bit depth
22:03 purl well, bit depth is 8
22:03 sri totally out of scope for AssetPack
22:03 sri that's not application assets
22:04 sri user content is in a completely different category
22:04 riche fair enough, they're resources
22:04 sri minifying images would be precompiling sprites
22:04 btyler_ joined #mojo
22:05 sri (image assets)
22:07 riche fair enough ... 'asset' is such an overloaded term I bucketed that in but I see your point on separating the concerns
22:10 btyler joined #mojo
22:38 btyler_ joined #mojo
22:39 batman sri++
22:42 batman riche: think about the "pack" part an how it works now
22:42 batman *and
22:43 batman the assets need to be compiled on startup, since they are application critical files. like you don't want to start the app without a valid css file...
22:44 batman "the assets" = "the assetpack assets"
22:44 batman sri: no idea how to make sprites though... since i think it has to create both a coordinate file and the actual image
22:46 riche yeah I agree with its scope now ... it is another plugin or perhaps an app altogether
22:46 batman riche: maybe you want this: https://metacpan.org/pod/Cloudinary
22:50 riche I'll think about it
22:50 riche thanks
22:54 sri batman: i think existing ones generate a css file with classes that reference each image
22:55 batman but how is it included?
22:55 batman %= asset "foo.png" would include the .css file..?
22:55 sri http://compass-style.org/help/tutorials/spriting/
22:55 batman s/the/the generated/
22:55 sri i'm not sure about the details
22:55 sri just stumbled over it
22:55 batman ok. cool.
22:57 riche use @media
22:57 sri jberger: think i figured out why you'd want the catalyst stash in plack middleware
22:58 riche that is common way to select based on media dimensions
22:58 sri jberger: it's because the catalyst stash totally sucks
22:58 sri jberger: you can only access stash values via hash :o
22:58 sri $c->stash->{foo}
22:59 sri i can't believe i made it that way...
23:00 riche batman: ideally the app understands the channels as well, and has a fall-through for an undefined channel
23:00 batman what is an channel?
23:00 purl or good
23:01 batman riche: i think you're using too many enterprise expression. you need to "dumb down" for me to understand...
23:01 riche a channel is another word for a media configuration.
23:01 batman *expressions
23:01 riche like my screen width is 400px
23:01 riche media screen width, like width of viewport on device
23:02 batman that doesn't have anything to do with assetpack. use cloudinary.com
23:02 riche yah I just got stuck on how it abstracts the handle to the target artifact
23:03 riche like I just have asset handle 'foo' and it's actually something foo-guid
23:03 riche so if I could just define image 'foo' and it wwould magically know which image to pick up
23:04 riche anyways ... perhaps just wishful dreaming
23:04 batman cloudinary does that.
23:04 riche yah many services do that ...
23:04 sri riche: step back, and take a look at the new <picture> element
23:04 batman i'm _not_ going to make cloudinary. they kick ass like i will never do.
23:04 sri html5 will fix that
23:05 batman at least from a image-manipulation-perspective
23:05 riche but perhaps not from a download sizing perspective ...
23:06 riche need to go afk for while
23:06 sri http://html5hub.com/html5-picture-element/
23:06 batman i have no idea what you're talking about riche.
23:06 batman you either fail to understand my answers or i fail to understand your questions.
23:07 riche yes thats why i said I need to think about it more to round out my statements
23:07 batman cloudinary (the service, not my module) allow you to do clever things with javascript so you download the correct image to the correct screen
23:07 riche you are right, I am partially asking what 'cloudinary' and others do
23:08 riche anyways we can drop it until I can better round out what I'm asking
23:08 purl it has been said that asking is just polite demanding. or seeking confirmation of an answer to which one has a partial clue because without a clue there is no question
23:08 batman riche: i'm sorry to say, that assetpack (or anything i make) will ever do something remotely close to what cloudinary does.
23:09 batman it's not rocket science, it's just something out of my scope.
23:09 riche batman: understood
23:09 riche so ... let's drop it ;)
23:10 batman sorry. just the way i roll :/
23:10 * batman already dropped #20
23:10 batman i meant #19
23:11 sri don't be afraid to say no
23:12 batman i'm not afraid. i love it.
23:12 batman but i also really like to make cool stuff that others want to use
23:13 sri MOAR FEATURES http://joshlinkner.com/images/2012/05/SAN.jpg
23:14 batman :D
23:14 batman i did like to get coffeescript and jnx support :)
23:14 riche ugh another question ... is there a reference implementation using Mojolicious::Plugin::Authentication and krb5?
23:24 onelander joined #mojo
23:24 onelander left #mojo
23:24 onelander joined #mojo
23:25 onelander Is there a way to send an argument to a helper?  I have SQL query that i want to run but i need to send an offset to it.
23:29 sri http://mojolicio.us/perldoc/Mojolicious/Guides/Rendering#Adding_helpers
23:30 onelander thank you
23:30 onelander i feel silly.  that is so obvious.
23:31 sri if you don't feel like that all the time you're doing programming wrong :)
23:32 batman :D
23:33 onelander very true.  :)
23:43 disputin joined #mojo
23:44 onelander i feel even sillier.  had i paid any attention to my already existing code.  i would have seen that i was already doing that.
23:45 onelander either way.  i love mojolicious!

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