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

IRC log for #mojo, 2014-09-18

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

All times shown according to UTC.

Time Nick Message
00:02 good_news_everyon joined #mojo
00:02 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/Q3Z3oA
00:02 good_news_everyon mojo/master c091daf Sebastian Riedel: mention the growing process before the example
00:02 good_news_everyon left #mojo
00:10 mr-fooba_ joined #mojo
00:14 woz joined #mojo
00:28 sri batman: btw. i know how the gist scrolling problem happens, convos scrolls before the gist has finished loading, so when the gist finally finishes everything jumps
00:31 woz joined #mojo
00:47 bodgix left #mojo
00:51 preaction joined #mojo
01:00 laouji joined #mojo
01:07 Averna joined #mojo
02:44 noganex joined #mojo
03:06 * sri just noticed how hard it is to replicate that new example app with other web frameworks
03:06 woz joined #mojo
03:26 irq joined #mojo
03:27 dexteruk joined #mojo
03:37 woz joined #mojo
04:09 woz joined #mojo
04:17 woz joined #mojo
04:38 sri hmmm
04:38 sri i've not considered an app like this https://gist.github.com/anonymous/0d1f83195882279fe204
04:39 sri kinda big though
04:45 preaction joined #mojo
04:48 woz joined #mojo
05:19 woz joined #mojo
05:30 tempire It's not so bad
05:31 tempire You could have a download link and tell them how to run it.
05:31 tempire That's huge, actually, if someone is looking for a framework.
05:39 forke joined #mojo
05:56 woz joined #mojo
05:57 laouji joined #mojo
06:09 mr-foobar joined #mojo
06:14 dod joined #mojo
06:16 denis_boyun joined #mojo
06:19 laouji joined #mojo
06:29 batman sri: yeah, i just don't know how to say "after gist has loaded" (yet)
06:30 batman Or more like: "after embed has loaded".
06:31 batman We only have it for images.
06:31 batman We only have it for images.
06:33 laouji joined #mojo
06:40 laouji joined #mojo
06:41 mr-foobar joined #mojo
06:42 KCL joined #mojo
06:50 sujithm joined #mojo
06:54 ver joined #mojo
06:56 woz joined #mojo
07:00 dexteruk joined #mojo
07:02 markov marty: finally found the bug.  I had copied an around_action hook from production code, which did not return the value of $next->().  It seems that is only a problem in case of a bridge.  Or are there other ways it gets used?
07:23 dod joined #mojo
07:24 neyasov joined #mojo
07:32 basiliscos joined #mojo
07:32 Vandal joined #mojo
07:32 trone joined #mojo
07:40 Guest-quest joined #mojo
07:44 Guest-quest hello and sorry but I would like the: use Mojo::Parameters; print Mojo::Parameters->new('foo=bar')->to_hasharray->{foo}[0];
07:48 irq joined #mojo
07:48 neyasov joined #mojo
07:48 woz joined #mojo
07:48 Guest-quest okay, lets go myself
07:59 jamesaxl joined #mojo
08:03 preaction joined #mojo
08:12 fhelmber_ joined #mojo
08:14 Nei ???
08:15 preaction !!!
08:15 aleksey joined #mojo
08:16 Nei maybe he wants a method that always returns array
08:16 Nei instead of magic depending on parameters
08:16 Guest-quest yes but this bad
08:17 Nei what is bad
08:17 purl i guess bad is DCC SEND "LOLDICKS" 0 0 0 or badminton
08:17 Nei lol purl;)
08:18 preaction do routers still fall for that one?
08:18 Nei probably
08:20 Nei --> why not use $params->param("foo")
08:23 Guest-quest becuase scalar and array context
08:24 aleksey joined #mojo
08:25 Nei maybe it's because english is not your first language, but you're not making much sense
08:25 Nei my $bar = $params->param("foo"); my @bars = $params->param("foo")
08:28 Guest-quest угу
08:43 dod joined #mojo
08:50 aleksey joined #mojo
08:52 edestler joined #mojo
09:05 peco joined #mojo
09:12 sujithm joined #mojo
09:13 neyasov joined #mojo
09:17 two_tired joined #mojo
09:29 neyasov joined #mojo
09:44 jamesaxl joined #mojo
09:50 dod joined #mojo
09:53 neyasov joined #mojo
09:54 woz joined #mojo
10:08 gatitskiy joined #mojo
10:13 steven joined #mojo
10:17 d4rkie joined #mojo
10:19 lipizzan joined #mojo
10:24 gatitskiy joined #mojo
10:25 woz joined #mojo
10:29 d4rkie joined #mojo
10:34 dp_ joined #mojo
10:35 suy joined #mojo
10:57 woz joined #mojo
11:05 disco joined #mojo
11:05 woz joined #mojo
11:06 disco quit
11:06 disco oops
11:08 disco joined #mojo
11:13 D4RK-PH0ENiX joined #mojo
11:14 aleksey joined #mojo
11:36 Dandre joined #mojo
11:36 woz joined #mojo
11:37 nicomen batman: how would you preferably go on to add plugin support for Mojo::IRC?
11:37 nicomen I'm guessing allowing external modules to do $irc->on('foo') would overwrite existing event handlers?
11:46 jberger nicomen: i started a pluggable irc bot based on mojo irc
11:46 jberger https://github.com/jberger/Toastr
11:49 jberger My biggest problem was trying to mark that a message had been handled but i never really liked the result
11:57 dod joined #mojo
12:06 dod joined #mojo
12:07 woz joined #mojo
12:12 Dandre left #mojo
12:13 neilhwatson joined #mojo
12:16 batman nicomen: no. it's using Mojo::EventEmitter, so you can add as many on() hooks as you like
12:17 batman $irc->on(irc_privmsg => sub { warn $_[1] }); $irc->on(irc_privmsg => sub { $db->insert($_[1]); });  # this will work
12:17 batman though $_[1] is a hash-ref, and not a string though :)
12:19 batman jberger: i just do $message->{is_handled}++
12:23 dod joined #mojo
12:29 nicomen batman: how would you unsubscribe events? for intance reloading a plugin?
12:30 nicomen hm, I'm looking at Mojo::EventEmitter now, but I don't understand how it would understand which event that should be unsubcribed
12:30 nicomen perhaps the foo => sub method?
12:31 nicomen I was thinking "on" would return some uniq id of some sort
12:42 dod joined #mojo
12:45 dod joined #mojo
12:48 batman $irc->unsubscribe(irc_privmsg => \&plugin::callback);
12:49 batman you can unsubscribe if you have the callback reference
12:49 batman $my_cb = $self->on(irc_privmsg => sub { do_stuff() }); .... $self->unsubscribe(irc_privmsg => $my_cb);
12:49 nicomen ok, thanks ;)
12:50 nicomen jberger: will take a look
12:50 batman on() returns the sub ref given to on()
12:50 Dandre joined #mojo
12:56 woz joined #mojo
13:18 noganex joined #mojo
13:18 noganex joined #mojo
13:34 sri tempire: "not so bad" is not a description i would like for our frontpage example app -.-
13:34 sri the only acceptable description is "wow, i want to learn more about this framework!"
13:37 ignacio_ joined #mojo
13:41 genio sri++  # I'm still not sold on MongoDB, but you did a damn good job on Mango.
13:41 sri \o/
13:41 sri i'm not sold on it either yet, it's just that i like the alternatives less
13:56 woz joined #mojo
14:02 fhelmber_ joined #mojo
14:21 neyasov joined #mojo
14:24 aleksey joined #mojo
14:33 sh4 joined #mojo
14:41 sri what the hell is going on with cpantesters? why are we suddenly failing so much? http://www.cpantesters.org/distro/M/Mojolicious.html?oncpan=1&distmat=1&version=5.42
14:41 sri "Can't opendir(/srv/smoker/cpan/build/Mojolicious-5.42-uBaOfU/blib/lib/Mojo/../Mojolicious/templates): Permission denied"
14:41 sri everywhere
14:51 r0b3rt joined #mojo
14:51 marty moin
14:51 sri what makes it so odd is that only the templates directory is affected
14:52 sri o/
14:54 jamesaxl joined #mojo
14:56 woz joined #mojo
15:01 sujithm joined #mojo
15:13 tempire hmm
15:13 tempire Trying to remember how I would have responded to that in the beginning
15:13 tempire I think it's rough because I never cared about websockets.
15:14 tempire But I do like the idea of being able to download a simple program and run in on my own computer.
15:14 tempire I would have raved about any framework that provided that on the first page.
15:14 tempire Without a page or two of docs and such
15:14 sri dude, when you started there were no websockets
15:15 sri think of it like this, would you have liked seeing an ajax example app like that? :)
15:16 tempire Yes.
15:16 tempire Yes I think it would be amaz0rs
15:17 callumgare joined #mojo
15:18 marcus wow mom wow
15:22 good_news_everyon joined #mojo
15:22 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/d2By2A
15:22 good_news_everyon mojo/master d5faff0 Sebastian Riedel: link to IRC channel
15:22 good_news_everyon left #mojo
15:23 mr-foobar joined #mojo
15:25 sri apparently that gets you a chat link in the metacpan sidebar now https://metacpan.org/pod/Moo
15:25 cpan_mojo Mojolicious-Plugin-TagHelpers-MailToChiffre 0.04 by Nils Diewald - http://metacpan.org/release/AKRON/Mojolicious-Plugin-TagHelpers-MailToChiffre-0.04
15:27 nicomen just the ugliest web IRC client I've seen, but oh well
15:30 peco nicomen: I agreeyep, the ugliest...  but useful
15:32 D4RK-PH0ENiX joined #mojo
15:38 marcus Wow, that is ugly.
15:38 marcus Would be nice if we made convos work in that kind of mode, batman :)
15:38 marcus Guess that's the kind of kiosk mode we've been discussing before.
15:38 marcus I'll make an issue for it.
15:46 cfedde joined #mojo
15:54 preaction joined #mojo
15:56 woz joined #mojo
16:06 sri marcus: seems dangerous
16:06 sri mibbit only works because people have learned by now how to ban individual mibbit users and not the entire host
16:22 * batman is trying to fix http://timer.thorsen.pm/ :/
16:24 batman marcus: it's kiosk mode
16:24 batman no need for another issue
16:24 batman https://github.com/Nordaaker/convos/issues/21
16:24 batman maybe it needs a better description...
16:34 * sri opened a thread for discussing the frontpage example app https://groups.google.com/forum/#!topic/mojolicious/Oxg3ztlWJlQ
16:47 * genio wonders why he keeps trying to highlight URLs when he can easily command+click in iTerm2...
16:56 woz joined #mojo
17:13 Adurah joined #mojo
17:23 disputin joined #mojo
17:25 disputin joined #mojo
17:40 disputin joined #mojo
17:47 marcus sri: but mibbit works without logging in even?
17:47 good_news_everyon joined #mojo
17:47 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/ZhaPmw
17:47 good_news_everyon mojo/master b703a1a Sebastian Riedel: more consistent examples
17:47 good_news_everyon left #mojo
17:49 sri ok, that's consistent with the previous "get '/' => {text => '...'};" example
17:49 sri marcus: yes
17:50 irq joined #mojo
17:56 woz joined #mojo
18:03 basiliscos joined #mojo
18:06 dexteruk_ joined #mojo
18:06 batman marcus: https://github.com/Nordaaker/convos/pull/200
18:07 batman pull request #200! sweet :)
18:08 sri marcus/batman: mibbit hashes your ip address and uses that as your username so you're easier to ban
18:09 batman what if you and your friend is chatting from behind the same nat router?
18:09 sri then you're both banned
18:09 sri right now, all convos users would be banned ;p
18:12 batman yeah, that's true :/
18:13 sri and people are gonna get banned when you make anonymous irc easy ;p
18:14 batman hehe
18:14 batman marcus: i've updated the description of the pull request
18:15 batman now i need to get back to work...
18:15 d4rkie joined #mojo
18:17 suy joined #mojo
18:29 hacky_mibbit_user hyou all SUCK!!!
18:29 marty Just trying it out.  :)
18:40 * sri bans marty
18:41 dexteruk joined #mojo
18:42 KCL_ joined #mojo
18:56 woz joined #mojo
19:20 cpan_mojo Test-Mojo-Trim 0.08 by CSSON - http://metacpan.org/release/CSSON/Test-Mojo-Trim-0.08
19:21 good_news_everyon joined #mojo
19:21 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/s34wnw
19:21 good_news_everyon mojo/master 0cd7a44 Sebastian Riedel: better comments for example
19:21 good_news_everyon left #mojo
19:22 cpan_mojo Dist-Zilla-Plugin-Test-CreateFromMojoTemplates 0.06 by CSSON - http://metacpan.org/release/CSSON/Dist-Zilla-Plugin-Test-CreateFromMojoTemplates-0.06
19:23 cpan_mojo Dist-Zilla-Plugin-InsertExample-FromMojoTemplates 0.02.01 by CSSON - http://metacpan.org/release/CSSON/Dist-Zilla-Plugin-InsertExample-FromMojoTemplates-0.02.01
19:24 jamesaxl joined #mojo
19:33 sri should mojoconf 2015 happen, i guess i have a good talk already :)
19:34 sri i could explain the frontpage example in depth, from tokenizing the template to building websocket frames
19:35 sri "Everything you never wanted to know about Mojolicious"
19:43 peco :-)
19:48 genio MojoConf 2015 in Florida..... RIGHT!?!
19:52 genio crickets... it was worth a try, I guess.
19:56 sugar_ joined #mojo
19:56 woz joined #mojo
19:59 sri *alligators*
20:00 genio mojo talks AND an airboat tour to see alligators.  I mean, what else do you need?
20:12 woz joined #mojo
20:16 woz joined #mojo
20:37 r0b3rt left #mojo
20:37 r0b3rt_ joined #mojo
20:47 neyasov joined #mojo
20:49 good_news_everyon joined #mojo
20:49 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/ZbZXoQ
20:49 good_news_everyon mojo/master c96aa48 Sebastian Riedel: more specific comment
20:49 good_news_everyon left #mojo
21:04 disputin joined #mojo
21:13 disputin joined #mojo
21:14 sri maybe the frontpage shouldn't have such an advanced example
21:16 batman sri: does it work?
21:16 sri does what work?
21:17 batman "Duct tape for the HTML5 web" example
21:17 sri of course
21:17 disputin joined #mojo
21:17 batman i thought you actually needed a <body> tag
21:18 batman good to know
21:23 D4RK-PH0ENiX joined #mojo
21:24 sri i soooooo want to use signatures in all examples :(
21:39 disputin joined #mojo
21:41 andrefs joined #mojo
21:43 batman i so much want a lot of time to hack on convos :/
21:46 punter joined #mojo
21:47 droneone joined #mojo
22:11 andrefs joined #mojo
22:18 andrefs joined #mojo
22:24 good_news_everyon joined #mojo
22:24 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/Awjb1w
22:24 good_news_everyon mojo/master bd13f81 Sebastian Riedel: cleaner JavaScript formatting
22:24 good_news_everyon left #mojo
22:25 disputin joined #mojo
22:27 sri that looks neat
22:27 sri makes the script all minimalistic
23:13 tempire agreed
23:15 Nei such a pleasure to work with mojo+ws

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