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

IRC log for #mojo, 2014-05-18

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

All times shown according to UTC.

Time Nick Message
00:05 punter here's my line of code:  $app->plugin('PCore::Plugin::Auth',
00:06 punter sri ?
00:06 purl sri is A PONIE!!1! and a  or no more a javascript noob or evil or a spelling guerilla or the temporary channelclown or a snob now or the perl guerilla or a small mouse with a big head aiming for world domination or the evil sith or has no clue about fuzzy logic or no longer a real hacker :/ or a copycat or pimp to many children or a holy man or looks a lot like pitr or puny or making Mojolicious delicious
00:10 disputin joined #mojo
00:11 punter problem magically solved (I fixed some other problem, and this got solved by itself) Sorry
00:12 neyasov___ joined #mojo
00:16 fhelmber_ joined #mojo
00:27 beyondcreed joined #mojo
00:32 dj_goku_ joined #mojo
00:48 asarch joined #mojo
01:03 tempire huh
01:03 tempire http://www.pixelmator.com/blog/2013/05/14/introducing-vectormator/
01:03 tempire I didn't know about this.
01:08 root exit
01:08 root quit
01:08 d4rkie joined #mojo
01:08 tempire dd if=/dev/zero of=/dev/hda1 bs=1024 c=100000000
01:09 d4rkie joined #mojo
01:10 jberger tempire runs as root
01:11 klapperl_ joined #mojo
01:22 sri tempire: it's neat, but no replacement for Sketch
01:23 * tempire is using illustrator as we speak
01:23 * sri doesn't have any adobe software anymore
01:24 alnewkirk joined #mojo
01:53 Su-Shee_ joined #mojo
02:11 sri haha, funny nobody noticed how broken my signatures hack was
02:12 sri peek_sub returns a normal hash, so the order of keys is random
02:22 * sri wonders if permessage-deflate should be opt-in or opt-out on the server side
02:22 sri currently it's opt-out
02:23 sri $self->tx->no_compression to disable it
02:23 sri maybe $self->tx->negotiate_compression makes more sense
02:42 jberger btw, I would heartily support a breaking change to list-context behavior of params
02:42 jberger I almost make the mistake all the time, and I KNOW to look for it
03:07 neyasov___ joined #mojo
03:28 sri jberger: how would you change it?
03:31 sri if we remove the list context behavior, we still need a way to get multiple values back
03:45 irq joined #mojo
03:50 d4rkie joined #mojo
03:51 d4rkie_ joined #mojo
03:55 basic6_ joined #mojo
04:03 d4rkie joined #mojo
04:07 d4rkie joined #mojo
04:11 neyasov___ joined #mojo
04:16 fhelmber_ joined #mojo
04:20 Vandal joined #mojo
04:52 davido_ joined #mojo
05:06 stephan48 maybe make a seperate function to return params in list context?
05:06 davido_ joined #mojo
05:11 neyasov___ joined #mojo
05:33 irq joined #mojo
05:35 davido__ joined #mojo
05:37 Vandal joined #mojo
05:45 rem_lex|pivo joined #mojo
06:12 neyasov___ joined #mojo
06:15 davido_ joined #mojo
06:22 berov joined #mojo
06:32 davido_ joined #mojo
07:07 denis_boyun joined #mojo
07:13 neyasov___ joined #mojo
07:36 neyasov___ joined #mojo
07:42 sh4 joined #mojo
07:55 eugen joined #mojo
08:17 fhelmber_ joined #mojo
08:17 dod joined #mojo
08:21 punter joined #mojo
08:23 denis_boyun_ joined #mojo
08:34 d4rkie joined #mojo
08:35 punter I just finished my site... What do you think? https://www.perlmodules.net/
08:58 preaction I made the list!
09:02 punter which list?
09:02 purl which list is this ?
09:03 preaction your list!
09:04 punter my shopping list?
09:05 preaction your perl modules list!
09:06 punter But I thought I made it
09:10 punter show me the link to my list, so I can understand what you mean
09:12 preaction the list on the website you just posted. one of my modules is on that list
09:14 punter a
09:14 punter sorry
09:14 punter haha
09:18 punter preaction, why don't you become a member and test my site?
09:21 stephan48 punter: would you please so kind and add a noscript tag?
09:22 stephan48 please be*
09:23 punter Sure. What's the purpose of the noscript tag? (so I can understand what I should write in the noscript)
09:23 punter I should write something like This site needs JS?
09:24 punter I'll do it. But why is it needed?
09:24 stephan48 punter: it is displayed when javascript is disabled/not supported on the client
09:24 punter o ok
09:24 stephan48 "This site does not work without JavaScript" is perfectly fine
09:25 stephan48 i take it as a good practice to include this tag :)
09:25 punter ok
09:25 stephan48 even better would it be when its in bold red letters :)
09:25 stephan48 thanks
09:31 punter stephan48, <noscript> added.
09:31 stephan48 punter++
10:15 basiliscos joined #mojo
10:32 dotan joined #mojo
10:41 punter joined #mojo
10:45 dotan joined #mojo
10:46 laouji joined #mojo
10:47 denis_boyun joined #mojo
11:30 basic6 joined #mojo
11:32 laouji joined #mojo
11:33 sh4 joined #mojo
11:45 dexteruk joined #mojo
12:17 fhelmber_ joined #mojo
12:24 sri hmm, so we have no proposals for how to handle the list context problem :/
12:34 dod joined #mojo
12:42 stephan48 list context means to return all values as array instead of only a single value of a param?
12:42 abra joined #mojo
12:50 batman what about $self->param(\ "key"); ?
12:51 batman not super pretty....
13:10 jberger We talked about just using lower level methods
13:10 jberger http://irclog.perlgeek.de/mojo/2014-03-17#i_8446789
13:13 ryozi joined #mojo
13:21 sri jberger: yea, i was wrong
13:22 sri $c->param is also used for setting defaults now...so it has to support multiple values
13:23 sri for form helpers
13:23 jberger in looking for that, I think I have found my favorite quote
13:23 jberger http://irclog.perlgeek.de/mojo/2014-01-26#i_8178303
13:24 sri :)
13:27 sri only solution i can think of would be my ($foo_array, $bar_array) = $c->param(['foo', 'bar']);
13:27 sri you always get an array then, and all other forms only return the first value
13:29 jberger I think the current behavior is more perly than that :-/
13:30 sri yea :/
13:30 asarch joined #mojo
13:33 azawawi joined #mojo
13:33 azawawi hi
13:34 sri o/
13:35 azawawi here is an interesting idea for a mojo plugin http://rixth.github.io/jshintr/
13:36 shadowpaste "bowtie" at 217.168.150.38 pasted "morbo and ssl, what have I missed please" (2 lines) at http://paste.scsys.co.uk/377073
13:37 sri bowtie: 443 is below 1024
13:38 bowtie sri: thanks
13:40 jberger azawawi: I saw that you've been updating farabi, I can't wait to take a look!
13:44 bowtie farabi is cool :)
13:46 bowtie sri: would you please some more pod to morbo for ssl so that others in future can find, also use of local CA with morbo, thanks in adv.
13:51 btyler joined #mojo
13:52 laouji joined #mojo
14:19 azawawi thanks
14:19 azawawi i have away for a while
14:19 azawawi im still fixing here & there
14:19 azawawi sorry the late reply
14:20 ladnaV joined #mojo
14:24 meshl joined #mojo
14:27 azawawi jberger: ping
14:27 d4rkie joined #mojo
14:28 d4rkie_ joined #mojo
14:30 jberger azawawi: pong
14:35 sri the ACE editor on github is absolutely terrible
14:35 azawawi jberger: im thinking of implementing projects next
14:36 azawawi jberger: mojo gen, dancer, dzil new, ...etc as "new project"
14:36 sri can't wait for them to switch to the atom editor
14:36 azawawi codemirror is the best btw...
14:36 azawawi so far it is the most updated
14:37 azawawi and the commits/pull request on codemirror projects are mind boggling
14:38 irq joined #mojo
14:40 d4rkie joined #mojo
14:43 jberger azawawi: sounds useful, though I particularly would probably not use it. I am too picky about my boilerplate.
14:46 azawawi jberger: Farabi in current form is not useful... project workspace will be under ~/.farabi/projects
14:47 azawawi jberger: my main problem problem is that if you try to open system stuff... damn security
14:48 jberger meaning, not wanting the app to be web-facing
14:49 azawawi jberger: yeah somehow
14:50 jberger you could do a before_dispatch which checks that the request host is the same as the server, send 500 if not
14:51 azawawi i want it to be accessible from the same intranet
14:51 jberger so make the hook configurable
14:51 azawawi i see
14:52 jberger admittedly I haven't done anything like that, but it seems conceptually pretty easy
14:52 jberger might actually be a useful CPAN plugin
14:53 azawawi http://mojolicio.us/perldoc/Mojolicious#before_dispatch
14:53 jberger I can imagine wanting to limit access to internal users for lots of apps
14:53 jberger yep
14:54 azawawi .... sending this again :)
14:54 azawawi .... here is an interesting idea for a mojo plugin http://rixth.github.io/jshintr/ :)
14:54 azawawi yourscript.jshint => gets jshint to parse it and report back problems
14:55 sri jshint is better in the browser
14:55 azawawi yourscript.js => returns your JS script
14:55 sri https://atom.io/packages/jshint
14:56 azawawi sri: btw, jshint is not yet into debian because of the "The Software shall be used for Good, not Evil" clause license https://github.com/jshint/jshint/issues/1234
14:57 azawawi sri: so no binary package for jshint on debian...
14:58 azawawi sri: the problem of jshint on the client side... browser locking on big files
14:58 sri can't say i particularly care... would never use it outside of an editor
15:00 sri then again, i'm very conservative in general, i want my editor to be desktop app
15:00 sri *a
15:00 azawawi i know... i know ... :)
15:05 azawawi sri: thanks for just keeping Mojolicious  awesome...
15:05 azawawi sri: i tried moving to Dancer to dance but now im back...
15:06 azawawi sri: your framework just works as expected :)
15:07 jberger azawawi: I would love to see some notes of your comparison of the two
15:08 jberger in my mind, there is no comparison because of the built-in IOLoop/nonblocking and websockets, but I would be curious about other comparisons for when discussing with others
15:08 azawawi Dancer2... no documentation, documentation out of sync, legacy documentation
15:08 jberger (also the command system rocks)
15:08 azawawi Dancer2 has no working plugins... especially for websocket support
15:08 azawawi Dancer has websocket support but it is based on Twiggy and a plugin D::P::Websocket
15:09 azawawi basically documentation
15:10 azawawi sure you have Moo in Dancer2, but after a while that's it... nothing else... It depends on your project... does it really do Moo(se) or not
15:11 jberger you can use Moo in a Mojolicious project too fwiw
15:11 azawawi i know...
15:11 jberger there is no requirement that you use Mojo::Base
15:11 jberger right, I was just mentioning for completeness
15:11 azawawi that i didnt know :)
15:12 azawawi do we have that piece of info in the mojo cookbook?
15:12 jberger `extends 'Mojolicious::Controller'` should work correctly IIRC
15:12 sri Mojo::Base was required for some time due to a side effect... but Moo(se) should work just fine for everything now
15:12 azawawi and...
15:13 azawawi the most important thing
15:13 purl i heard the most important thing was to transfer all your files in *ascii* mode, not in binary.  this will make sure that you have the proper line endings for your files
15:13 azawawi Dancer2 depends on Plack
15:13 azawawi cool
15:13 azawawi but Plack is not working on win32...
15:13 sri azawawi: why would you need a recipe?
15:13 sri Mojo::Base is very precise about what it does in the documentation
15:13 azawawi let me read it
15:13 sri http://mojolicio.us/perldoc/Mojo/Base#DESCRIPTION
15:14 jberger Plack doesn't work on win32? that would really surprise me
15:15 azawawi jberger: btw i added markdown support in Farabi... with side-by-side editing/preview... same for pod (search.cpan.org,metacpan,...etc)
15:15 rem_lex| joined #mojo
15:15 sri Plack does work on windows http://www.cpantesters.org/distro/P/Plack.html?oncpan=1&amp;distmat=1&amp;version=1.0030
15:16 azawawi it hangs
15:16 azawawi while installing
15:16 azawawi at least on windows 7 ultimate 64-bit
15:16 azawawi 32-bit does not count these days :)
15:18 azawawi i just tried cpanm Plack...
15:18 azawawi and it is hanging
15:18 azawawi i always cpan-outdated|cpanm my modules every day and Plack always stalls
15:19 jberger anything useful in the install log? have you mentioned it to miyagawa?
15:19 azawawi not really... i have been hibernating :)
15:22 azawawi &
15:22 * azawawi thanks and going to be back in 2-3 hours
15:30 sri yea, i don't really see a solution for list context param
15:31 sri seven results for wantarray in mojolicious :S https://github.com/kraih/mojo/search?q=wantarray&amp;ref=cmdform
15:33 irq_ joined #mojo
15:33 sri the most awkward is prolly this one https://github.com/kraih/mojo/blob/1c86c3e9f44a5f84ee305a03e27ce9fec7b01e30/lib/Mojolicious/Routes/Match.pm#L33
15:34 sri i remember how that was added as a workaround
15:35 sri we needed a way to signal that a route belongs to a websocket to url_for without breaking backwards compatibility
15:35 Adura joined #mojo
15:58 Eke- joined #mojo
16:18 fhelmber_ joined #mojo
16:25 gryphon joined #mojo
17:01 Eke- joined #mojo
17:50 sh4 joined #mojo
17:54 babl joined #mojo
17:59 sugar joined #mojo
18:13 punter joined #mojo
18:27 sri interesting, looks like rails 4.2 will ship with job queue abstraction https://github.com/rails/activejob
19:04 eddy85br joined #mojo
19:04 eddy85br left #mojo
19:06 cpan_mojo Ado 0.42 by Krasimir Berov - http://metacpan.org/release/BEROV/Ado-0.42 (depends on Mojolicious::Plugin::DSC)
19:08 maxhq joined #mojo
19:15 rem_lex joined #mojo
19:25 dexteruk joined #mojo
19:42 denis_boyun joined #mojo
19:47 zackiv31 joined #mojo
20:19 fhelmber_ joined #mojo
20:36 meshl joined #mojo
21:12 mport joined #mojo
21:26 tianon joined #mojo
21:33 tianon joined #mojo
21:42 good_news_everyon joined #mojo
21:42 good_news_everyon [mojo] kraih pushed 2 new commits to master: http://git.io/FUs0RA
21:42 good_news_everyon mojo/master c4306e1 Rick Delaney: Fix verify param of Mojo::Server::Daemon::listen....
21:42 good_news_everyon mojo/master 9a9947f Sebastian Riedel: Merge pull request #625 from rick-delaney/SSL_verify_mode...
21:42 good_news_everyon left #mojo
21:51 dgikiller joined #mojo
21:56 dgikiller joined #mojo
22:08 sugar_ joined #mojo
22:11 good_news_everyon joined #mojo
22:11 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/rMy6wQ
22:11 good_news_everyon mojo/master 701d26e Sebastian Riedel: added test for verification bug
22:11 good_news_everyon left #mojo
22:23 sugar__ joined #mojo
22:33 KindOne joined #mojo
22:34 dgikiller joined #mojo
23:13 d4rkie joined #mojo
23:17 rwp joined #mojo
23:18 tempire sri: Was there a particular reason you set kern.maxfiles = 40960, as opposeds to something in the 20k range?
23:27 KindOne joined #mojo

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