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

IRC log for #mojo, 2015-05-26

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

All times shown according to UTC.

Time Nick Message
00:28 nicomen is there still some issues with favicon.ico ?
00:28 nicomen [pid  7677] stat("/usr/share/perl5/public/favicon.ico", 0x1acf280) = -1 ENOENT (No such file or directory)
00:28 nicomen [pid  7677] stat("/usr/share/perl5/Mojo/../Mojolicious/public/favicon.ico", {st_mode=S_IFREG|0644, st_size=3654, ...}) = 0
00:28 nicomen [pid  7677] stat("/usr/share/perl5/Mojo/../Mojolicious/public/favicon.ico", {st_mode=S_IFREG|0644, st_size=3654, ...}) = 0
00:29 nicomen all other static files seem to work
00:31 cpan_mojo Mojolicious-Plugin-Piwik-0.18 by AKRON https://metacpan.org/release/AKRON/Mojolicious-Plugin-Piwik-0.18
00:32 nicomen weirdly it works  with get /favicon.ico
00:32 nicomen *mojo et
01:13 Adurah joined #mojo
01:15 cpan_mojo Mojolicious-Plugin-XRD-0.16 by AKRON https://metacpan.org/release/AKRON/Mojolicious-Plugin-XRD-0.16
01:25 cpan_mojo Mojolicious-Plugin-HostMeta-0.20 by AKRON https://metacpan.org/release/AKRON/Mojolicious-Plugin-HostMeta-0.20
01:31 Grinnz_ joined #mojo
01:32 kaare joined #mojo
01:46 klapperl_ joined #mojo
02:19 asarch joined #mojo
02:36 zivester joined #mojo
02:48 noganex_ joined #mojo
03:12 basic6_ joined #mojo
03:56 tempire ????
04:15 polettix joined #mojo
04:22 inokenty-w joined #mojo
04:52 hshong joined #mojo
05:34 dotandimet joined #mojo
06:07 dp_ joined #mojo
06:40 bjakubski joined #mojo
06:43 dod joined #mojo
06:44 Lee joined #mojo
06:48 dod joined #mojo
06:55 Lee joined #mojo
07:00 McA joined #mojo
07:06 fhelmber_ joined #mojo
07:06 eseyman joined #mojo
07:14 punter joined #mojo
07:44 trone joined #mojo
07:59 hshong joined #mojo
08:12 Vandal31341 joined #mojo
08:35 dotan joined #mojo
08:36 absolut_todd joined #mojo
08:36 trone joined #mojo
08:41 absolut_todd joined #mojo
08:43 henq joined #mojo
09:19 xlat joined #mojo
09:47 polettix joined #mojo
10:40 McA2 joined #mojo
11:04 kyshtynbai joined #mojo
11:06 fhelmber_ joined #mojo
11:08 kopekru joined #mojo
11:16 Vandal31341 joined #mojo
11:18 fhelmber_ joined #mojo
11:57 inokenty joined #mojo
12:00 neilhwatson joined #mojo
12:06 fhelmber_ joined #mojo
12:09 gabiruh joined #mojo
12:29 polettix joined #mojo
12:54 gryphon joined #mojo
12:55 gatitskiy joined #mojo
13:04 gatitski_ joined #mojo
13:05 gatitskiy joined #mojo
13:19 ajr_ joined #mojo
13:56 fhelmber_ joined #mojo
13:56 jberger tempire: pretty hard to dance in those I would think
14:00 PotatoGim^Home joined #mojo
14:02 dod joined #mojo
14:03 gatitski_ joined #mojo
14:11 zivester joined #mojo
14:13 gatitskiy joined #mojo
14:24 gatitski_ joined #mojo
15:01 Onigiri Is there some oddity with a SomeFile.pm as a controller, vs Somefile.pm?
15:01 marmez left #mojo
15:02 Grinnz_ Onigiri: the first would be uncamelized as some_file and the second as somefile
15:03 zackiv31 joined #mojo
15:05 gryphon joined #mojo
15:05 mattastrophe joined #mojo
15:07 Onigiri Ok, so more stuff for me to read today. Thanks!
15:16 batman Onigiri: have a look at https://metacpan.org/pod/Mojo::Util#camelize and decamelize for how to rules work
15:25 inokenty joined #mojo
15:28 cpan_mojo Mojo-Cloudstack-0.03 by HRUPP https://metacpan.org/release/HRUPP/Mojo-Cloudstack-0.03
15:38 gatitskiy joined #mojo
15:39 lluad joined #mojo
15:44 gatitski_ joined #mojo
15:49 gatitskiy joined #mojo
15:53 cpan_mojo Mojo-Cloudstack-0.04 by HRUPP https://metacpan.org/release/HRUPP/Mojo-Cloudstack-0.04
16:31 mattastrophe joined #mojo
16:33 kopekru help me please. after install perlbrew (read manual and step by step, init and add source line to .bashrc and etc). now i have perl 5.20.2, but if i try run script that use DBI i get error: Can't locate DBI.pm in @INC (you may need to install the DBI module). After command perlbrew off and use system perl 5.14 off, DBI work. what else I forgot to do?
16:35 jberger this isn't perlbrew support, we could probably make some guesses and maybe even solve it, but technically off topic
16:38 jzawodn joined #mojo
16:39 disputin joined #mojo
17:02 kopekru jberger: thank you. very helpfull. no harm in trying.
17:02 jberger not at all
17:03 Grinnz kopekru, did you install DBI in your perl 5.20.2?
17:07 niczero joined #mojo
17:07 kopekru Grinnz, yes. nothing changed after install it under 5.20.2. full log after run: http://pastebin.com/17ZK9m73
17:07 Repaster Repasted text from kopekru: http://fpaste.org/225699/60055143/
17:08 Grinnz kopekru, what command did you use to install it under 5.20.2?
17:10 niczero $c->tap(sub { shift->content(undef, slurp($file)) })->render
17:10 niczero is how I'm passing 'content' to a template
17:10 niczero I'm sure there's an elegant way to do it, but can't for the life of me remember it
17:11 kopekru Grinnz: cpanm -S PMName
17:11 Grinnz kopekru, after switching perlbrew to the right perl?
17:11 Grinnz kopekru, there is no reason to use -S under perlbrew
17:13 kopekru Grinnz: yes, i do it after switch to need perl version.
17:14 Grinnz do: perlbrew install-cpanm, then cpanm DBI
17:15 kopekru Grinnz: thank you friend. i will try it.
17:19 zackiv31 joined #mojo
17:57 fhelmber_ joined #mojo
17:58 ajr_ joined #mojo
18:00 mattastrophe joined #mojo
18:01 dod joined #mojo
18:02 amon joined #mojo
18:09 inokenty joined #mojo
18:10 berov joined #mojo
18:19 zackiv31 joined #mojo
18:23 sh4 joined #mojo
18:49 trone joined #mojo
19:24 sri so, the Mojo::Collection::TO_JSON patch will not be put up for a vote?
19:25 dotandimet joined #mojo
19:37 dotandimet joined #mojo
20:08 absolut_todd joined #mojo
20:26 kyshtynbai joined #mojo
20:32 batman oooh! i haven't seen it before now.
20:32 batman sri: so it's sub Mojo::Collection::TO_JSON { shift->to_array } ?
20:33 batman and sub Mojo::ByteStream::TO_JSON { shift->to_string } ?
20:49 disputin joined #mojo
21:20 sri batman: that makes no sense
21:20 purl Chewbacca!
21:21 sri Mojo::ByteStream already stringifies to the value it contains
21:22 sri also, i already voted -1 on Mojo::Collection::TO_JSON, but am surprised it has not been put up for a real vote afterwards
21:23 sri my -1 is not a veto, it can still pass the vote, just if it fails others will be the ones blamed
21:24 punter joined #mojo
21:29 polettix joined #mojo
21:31 jberger sri: JSON::XS wont stringify ByteStream objects unless you have some setting set
21:32 jberger which was why I was interested in that
21:43 Grinnz_ jberger: there is no setting that will make JSON::XS/JSON::PP stringify objects
21:45 * Grinnz_ would be +1 on both
21:45 asarch joined #mojo
21:53 lluad https://github.com/kraih/mojo/compare/master...wttw:master is the change I made. I didn't put it to a vote as a) there wasn't a huge amount of enthusiasm when I asked about it and b) I know nothing about votes / mojo development process
21:54 Grinnz_ lluad: well, as a pull request, documentation and tests would need to be added
21:54 Grinnz_ lluad: then it would be voted on in the pr
21:54 lluad Ah, OK.
21:54 Grinnz_ oh, you have tests, so just docs then
21:54 lluad Yup.
21:58 jberger https://metacpan.org/pod/JSON::XS#convert_blessed-is-enabled-and-the-object-has-a-TO_JSON-method
21:59 jberger so yeah, it doesn't try to stringify, just calls TO_JSON but only if the option is set
21:59 Grinnz_ lluad: see http://mojolicio.us/perldoc/Mojolicious/Guides/Contributing
21:59 lluad Ta.
22:00 mattastrophe joined #mojo
22:01 Grinnz_ jberger: hence https://metacpan.org/pod/Mojo::JSON::MaybeXS#Object-Conversion
22:01 Grinnz_ (uses convert_blessed)
22:01 jberger yeah
22:02 jberger that's a fairly sizable difference
22:02 Grinnz_ only if you json-encode things with objects in them (other than bools)
22:02 Grinnz_ which i don't tend to
22:03 jberger { some_key => $c->render_to_string('intermediate_thing') }
22:03 Grinnz_ this change would make Mojo::Collection more arrayref-ish in that context though
22:03 Grinnz_ if that returns a bytestream... yeah
22:03 jberger yrp
22:04 jberger yep
22:04 guru joined #mojo
22:05 guru joined #mojo
22:30 kopekru joined #mojo
22:31 sri i'm still very sceptical
22:32 sri also don't like adding something specifically for JSON::XS
22:33 Grinnz_ it would be for JSON::MaybeXS as well
22:33 Grinnz_ i.e. all those modules
22:34 sri quite the dilemma, add a method specifically for JSON::XS, or have Mojo::ByteStream and Mojo::Collection behave inconsistently
22:34 Grinnz_ inconsistently with what?
22:34 sri when passed to json encoders of course
22:35 Grinnz_ ah
22:35 sri i don't see a clean solution
22:35 sri and the value is questionable
22:35 sri so, strong -1 from me
22:36 sri explicit $bytestream->to_string and $collection->to_array seems like the cleanest choice
22:37 Grinnz_ i would agree, but as jberger pointed out sometimes you get those objects when you're expecting perl data structures
22:37 sri when?
22:38 sri render_to_string is specifically documented to return a bytestream object
22:38 Grinnz_ it is... but it's stringy
22:39 sri i don't agree with that
22:41 Grinnz_ i don't have a solid reason to do it, just convenience... but i don't see any reason it would be a problem either
22:41 kopekru joined #mojo
22:41 Grinnz_ these methods are only ever used by json encoders
22:44 zackiv31 joined #mojo
22:46 asarch In http://paste.scsys.co.uk/483220, is "$.ready(function() { ... }" jQuery code or Semantic-UI-specific code?
22:46 asarch Or is it pure JavaScript code?
22:47 Grinnz_ $.ready is jquery
22:48 asarch And "$('.ui.dropdown')" is Semantic-UI-specific code, isn't it?
22:48 Grinnz_ or possibly some other library that created the dollar var, but not bare js
22:48 Grinnz_ that would also be created by jquery or some other library
22:49 asarch Thank you Grinnz_
22:49 Grinnz_ those are both probably jquery
22:49 asarch Thank you very much :-)
22:49 asarch Thank you
22:49 lluad .ui.dropdown is probably selecting semantic-ui specific CSS.
22:49 * sri voted
22:50 asarch I see
22:50 asarch Thank you guys :-)
22:51 kopekru joined #mojo
22:52 asarch Now I have an starting point :-)
22:52 asarch See you later
22:57 sri quick reminder https://github.com/kraih/mojo/pull/801#issuecomment-105691683
22:57 sri that's 3 big screwups
22:57 sri so think carefully before voting
22:58 buu joined #mojo
23:03 jberger I'm off two minds
23:03 jberger *of
23:03 jberger I like the utility of it
23:04 jberger but I'm way too, especially since I was a major driver of one of those screw ups
23:05 jberger (I still actually like my reason on that one, but I get that it is inconsistent with expectations in perl)
23:14 good_news_everyon joined #mojo
23:14 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/vkIcH
23:14 good_news_everyon mojo/master 1300205 Sebastian Riedel: better descriptions for object checks
23:14 good_news_everyon left #mojo
23:15 polettix joined #mojo
23:41 inokenty joined #mojo

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