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

IRC log for #mojo, 2014-06-23

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

All times shown according to UTC.

Time Nick Message
00:14 d4rkie joined #mojo
00:14 d4rkie joined #mojo
00:21 sri http://pastie.org/9315195 # wonder if this patch would make morbo work on windows with installed EV
00:23 sri guess it would work but inconsistently...
00:23 sri better to die so people have to look up and read about what's actually wrong
00:27 Ptolemarch joined #mojo
00:33 * sri slaps jberger
00:35 sri jberger: this is just one phase of the worldcup, and not really part of the sport!
00:35 Ptolemarch joined #mojo
00:37 sri knockout stage has no draws
00:39 nishttal2 joined #mojo
00:40 zivester joined #mojo
00:49 Averna joined #mojo
00:58 laouji joined #mojo
01:17 klapperl_ joined #mojo
01:22 mattastrophe joined #mojo
01:29 jberger But hey, at least i watched the match
01:29 jberger ????
01:37 Ptolemarch joined #mojo
01:43 btyler joined #mojo
01:45 Ptolemarch joined #mojo
01:52 nishttal2 joined #mojo
02:00 meshl joined #mojo
02:14 Ptolemarch joined #mojo
02:23 laouji joined #mojo
02:26 laouji joined #mojo
02:30 laouji joined #mojo
02:31 callumgare joined #mojo
03:09 basic6 joined #mojo
04:41 Ptolemarch joined #mojo
04:41 sri jberger: i think the $self/$c change is a good example for something vim totally sucks for
04:42 irq joined #mojo
04:45 preaction not even with :%s/$self/$c/gc
04:45 preaction ?
04:55 sri especially not
04:55 laouji joined #mojo
04:56 sri you need to search the whole repo for certain snippets like "->hook", "hook ", "use Mojolicious::Lite;" and then manually jump through every file and check all mentions of $self manually
04:56 sri s/hook/helper/
04:57 sri with Atom that's actually not too bad
04:58 sri think it's doable in an hour
05:02 sri "use Mojolicious::Lite;" alone is 50 files, and i bet they all need at least a few changes
05:04 sri i'm actually surprised nobody has stolen the task yet, easy way to plaster your name on half of the files in the mojo repo :)
05:09 laouji joined #mojo
05:17 crab what is this task?
05:45 jwang joined #mojo
05:46 Insane joined #mojo
05:48 Insane hi all, I have Mojo::Lite application, but it already have about 30 routes and 10+ templates/layouts. As for today all my routes are in one file - main Mojo::Lite script and I need to implement new routes. Is there any guide or how-to about moving from Lite to Mojolicious?
05:48 preaction there's Mojolicious::Guides::Growing i think
05:56 sujithm joined #mojo
06:12 denis_boyun joined #mojo
06:22 kyshtynbai joined #mojo
06:40 cpan_mojo Business-Payment-SwissESR 0.6.0 by Tobias Oetiker - http://metacpan.org/release/OETIKER/Business-Payment-SwissESR-0.6.0 (depends on Mojolicious)
06:45 cpan_mojo Business-Payment-SwissESR 0.6.1 by Tobias Oetiker - http://metacpan.org/release/OETIKER/Business-Payment-SwissESR-0.6.1 (depends on Mojolicious)
06:55 dod joined #mojo
07:08 eseyman joined #mojo
07:15 fhelmber_ joined #mojo
07:17 kyshtynbai If I want to send a specific header to each route I have, should I call method which sends headers manualy in routes' decalaration blocks, or is there a better way?
07:28 rawler joined #mojo
07:33 odc joined #mojo
07:36 sujithm joined #mojo
07:39 trone joined #mojo
07:48 basiliscos joined #mojo
08:11 crab kyshtynbai: use a hook
08:13 HtbaaPi joined #mojo
08:25 kyshtynbai thanks I'll try.
08:25 kyshtynbai joined #mojo
08:56 nic Pleeeeeeeez someone see if they can get Mojolicious serving pages on Android 4.4 and write a blog about it
08:57 nicomen isn't the most useless thing you can do to have a web server on a cellphone?
08:57 nic who mentioned cellphone?
09:05 irq joined #mojo
09:09 nicomen hehe ok
09:20 dabudabu Isn't Android a toy OS?
09:22 * dabudabu can't imagine what it would be like to run Android on a real computer
09:27 babl joined #mojo
09:29 sujithm joined #mojo
09:35 denis_boyun joined #mojo
09:40 nic *cough*tablet!*cough*
09:40 mire joined #mojo
09:51 batman jberger: the reason is a bad .json file. (convos)
09:51 batman will look at it before the next release
10:00 batman i'm thinking about callbacks... does it really make sense to send ($err, $res) to the callbacks? i kind of like the ($tx) object, since it has ->error() and ->res()
10:01 batman is it because it's faster just sending data back, instead of objects?
10:02 batman sri: you here?
10:02 purl SPEAK UP, SONNY!
10:05 mire joined #mojo
10:06 sujithm joined #mojo
10:16 suy nicomen: FWIW, a web server on a cell phone/tablet/whatever is what some apps provide to show/change files on a phone remotely without wires. A convenient hack for some use cases
10:27 nicomen ok
10:28 nicomen btw. I do see the use cases, but I did also participate in Opera Unite, seeing it crash and burn
10:28 nicomen (web server built-in in browser, rendered useless the moment a user closed his laptop lid)
10:32 Jonis I don't understand how perltv.org can have such horrible design in this day and age.
10:35 sujithm_ joined #mojo
10:40 d4rkie joined #mojo
10:47 nicomen Jonis: you mean like the ironman blog aggregator?
10:51 Jonis nicomen: hand me the bleach, I need to clean my eyes.
10:58 babl left #mojo
11:00 nicomen luckily blogs.perl.org has picked up and looks semi-professional
11:04 mire joined #mojo
11:04 mishantil joined #mojo
11:05 d4rkie joined #mojo
11:18 mire joined #mojo
11:20 batman can anyone explain to me how the non-blocking request in Mojo::UserAgent is done? i don't get how the Mojo::IOLoop->new object gets started, since it's not shared with the ioloop for Mojo::IOLoop->delay
11:21 batman https://metacpan.org/pod/Mojo::UserAgent#SYNOPSIS <--- i'm thinking about the non-blocking example in the SYNOPSIS
11:22 batman oh. it's the other way around.
11:22 batman get it now :)
11:31 sujithm joined #mojo
11:36 abra joined #mojo
11:37 sujithm joined #mojo
11:52 rem_lex|pivo joined #mojo
11:59 dod joined #mojo
12:14 sujithm joined #mojo
12:18 dod joined #mojo
12:23 neilhwatson joined #mojo
13:15 zivester joined #mojo
13:27 gryphon joined #mojo
13:28 sujithm_ joined #mojo
13:29 punter joined #mojo
13:30 Ptolemarch joined #mojo
13:37 rem_lex joined #mojo
13:40 Jonneh joined #mojo
13:45 btyler joined #mojo
13:46 Ptolemar_ joined #mojo
13:52 bluescreen joined #mojo
13:54 batman marcus: i'm trying to make Mojo::Redis2: https://gist.github.com/jhthorsen/d490ec86d5c6c8ead133
14:03 btyler batman: what are the problems with Mojo::Redis that are motivating Mojo::Redis2?
14:05 batman btyler: mostly error handling
14:05 batman btyler: but also that it's somehow buggy when pushed to the limit.
14:07 batman i don't think the subscribe and blpop "hacks" was the best idea...
14:07 batman i want to do almost the same, but with a smarter api. i think i can pull it off with some help.
14:08 btyler batman: cool
14:08 batman btyler: got any comments on the new api i drafted?
14:08 d4rkie joined #mojo
14:08 abhishekisnot joined #mojo
14:15 dotandimet joined #mojo
14:20 cmcgarvey joined #mojo
14:25 nicomen any of you at YAPC::NA ?
14:26 nicomen would be nice to promote: http://www.mojoconf.org/mojo2014/news/1201
14:31 basiliscos joined #mojo
14:37 d4rkie joined #mojo
14:44 dotandimet nicomen: maybe someone can announce it during the lightning talks?
14:45 nicomen dotandimet: would be awesome
14:46 nicomen I would like to go to Mojoconf in the US
14:46 basiliscos1 joined #mojo
14:46 mire joined #mojo
14:47 btyler batman: I haven't messed with IOLoop->delay, so that part looks a little foreign, but ultimately nice. the chaining portion looks good, clear enough distinction regarding when it'll die()
14:48 genio Larry's talk is kind of putting me to sleep
14:49 sh4 joined #mojo
14:54 disputin joined #mojo
14:54 mattastrophe joined #mojo
14:54 sh4 joined #mojo
14:55 bjoernfan nicomen: I bet we can all stay in jberger's basement!
14:56 bjoernfan I bet he's the kind of guy who has lots of coaches.
14:56 sh4 joined #mojo
14:57 sri lets have a mojoconf in jberger's basement!
14:58 sri soo, since nobody stole the $self/$c task.... i just finished it in 30 minutes (sorry jberger)
14:58 denis_boyun joined #mojo
14:59 good_news_everyon joined #mojo
14:59 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/kVSzEQ
14:59 good_news_everyon mojo/master 6560294 Sebastian Riedel: use $c and $app instead of $self in many places
14:59 good_news_everyon left #mojo
14:59 sri that could have been your patch
15:05 sri i do wonder if that convention results in less confusion
15:07 sri https://atom.io/packages/ask-stack # hahahaha
15:08 sri a new kind of ide
15:11 bjoernfan ... wow
15:12 sujithm joined #mojo
15:12 bjoernfan StackSort is next then. :)
15:12 nicomen bjoernfan: or the kind of guy that has a basement that fits people...
15:13 bjoernfan Just integrate http://gkoberger.github.io/stacksort/ I guess :D
15:13 sri i hope it automatically copies code examples, so you only have to paste!
15:13 bjoernfan nicomen: I'm sure he'd take care of us. :)
15:14 Ptolemarch joined #mojo
15:15 bjoernfan sri: Not sure if it would work at all in practice but it would be cool for it to instead of searching StackOverflow maybe searching all cpan modules that use Mojo... for when you do mojo development that is.
15:24 tempire Larry is not so good of a speaker. That's just part of Perl culture. Accept it!
15:24 Ptolemarch joined #mojo
15:25 Ptolemarch joined #mojo
15:26 * tempire wonders if there's a way to gauge Mojolicious' relative popularity in countries/cities
15:27 sri google analytics?
15:27 purl google analytics is neat
15:29 sri 30% us, 8% russia, 7% uk, 6% germany, 5% japan, 4% canada, 3% australia, 3% china, 2.5% france, 2.5% india
15:32 sri us cities... new york 6%, san francisco 3%, chicago 2%, la 1.5%, seattle 1.5%, sunnyvale 1.5%, austin 1.5%
15:33 sri russia cities... moscow 50%, saint petersburg 8%
15:36 sri world cities... moscow 3.15%, london 2.15%, new york 1.79%, oslo 1.24%, beijing 1.03%, melbourne 1%, toronto 0.9%, bangalore 0.86%, san francisco 0.83%
15:36 * sri pokes tempire
15:43 bjoernfan nice stats
15:43 mire joined #mojo
15:44 basiliscos joined #mojo
15:45 alnewkirk joined #mojo
15:50 neyasov joined #mojo
15:58 * batman likes https://app.gistboxapp.com/
16:01 tempire those are installs, I presume?
16:01 tempire oh, google
16:01 tempire nm
16:01 tempire well, we had it in oslo, the most expensive city in europe
16:01 tempire we might as well have it in new york, the most expensive city in the US
16:02 tempire ooh
16:02 tempire gistbox is neat
16:03 Adura A black bar and a white rectangle?
16:03 Ptolemarch joined #mojo
16:05 Mikey i'm going to use minion in production, and marry it with zeromq so i can fix my dbix/pgsql blocking problems
16:05 Mikey (for some queries)
16:05 Mikey i'm excited about all of this and will report back with findings.
16:06 disputin joined #mojo
16:15 batman Mikey++
16:17 batman sri: would you mind looking over the new Redis2 API once I got some more details?
16:17 sri sure
16:18 batman Cool. Did you look at the direction I'm moving to now?
16:18 sri yea, looks good, just didn't like the ->start
16:19 sujithm joined #mojo
16:19 batman I will try not to write too much code until things make sense...
16:19 sri that name is usually used in different contexts
16:19 sri i'd call it ->execute or so
16:20 batman Ok. The reason for start() is to return multiple statements in one @$res
16:20 sri i know
16:20 sri i've done that stuff in mango
16:21 batman Ok. But did you like the idea about @$res, apart from the actual method name?
16:21 ua joined #mojo
16:21 batman You have? I thought mango was one command and one callback..?
16:21 sri http://mojolicio.us/perldoc/Mango/Collection#bulk
16:22 sri http://mojolicio.us/perldoc/Mango/Bulk#execute
16:22 batman Of course!
16:22 batman Awesome!
16:22 batman More ideas :)
16:23 sri :)
16:24 batman Maybe I should do bulk() as well...
16:24 punter joined #mojo
16:25 batman I'm doing implicit bulk() now... Kind of...
16:25 batman Wonder if that is a bad thing...
16:25 neyasov_ joined #mojo
16:27 neyasov_ joined #mojo
16:28 batman sri: does bulk() make a new connection, or does it use one of the connections from the pool?
16:28 sri from the pool, there is nothing special about bulk operations really
16:28 batman I'm on the bus, so It's a bit tricky to check :(
16:28 batman Excellent.
17:00 davido_ joined #mojo
17:01 disputin joined #mojo
17:34 dod joined #mojo
17:50 basiliscos joined #mojo
17:52 fhelmber_ joined #mojo
18:18 dotandimet1 joined #mojo
18:22 dotandimet joined #mojo
18:25 disputin joined #mojo
18:48 bowtie joined #mojo
18:55 irq joined #mojo
18:55 oetiker joined #mojo
18:55 tempire awesome!
18:55 tempire A new ruby framework!
18:55 tempire Just what I was hoping for.
18:55 davido__ joined #mojo
18:59 lb ?
18:59 lb lotus?
18:59 purl lotus is a ball of illness.
19:00 Ptolemarch joined #mojo
19:00 meshl joined #mojo
19:02 lb i do like having a view object seperate from the model and template, but i haven't really seen a good pattern for it yet
19:12 neilhwatson You are causing Lotus Notes flashbacks, please stop it :)
19:19 lb i didn't start the fire
19:20 lb i assume this is what tempire was talkin' 'bout,  http://lotusrb.org/
19:20 lb though it was announced in jan.
19:20 sri too bad we are not better represented at yapc, would be the perfect place to find a mojoconf 2015 location :/
19:21 neilhwatson Why would they choose Lotus as the name? So badly marred by IBM.
19:21 lb not to volunteer at all, but i'm sure copenhagen can fit a mojoconf
19:22 * lb prefers to volunteer other people
19:23 sri well volunteered!
19:23 purl you da /(wo)?man/!
19:23 lb erik and jonas are much appreciative of your support
19:38 marcus lb: copenhagen would be most excellent. Slightly cheaper beer too :)
19:39 marcus lb: We did donate some money from this year’s Mojoconf to kickstart next year
19:40 * marcus is up to his elbows in old xen.
19:42 lb copenhagen thanks oslo for the rare opportunity to be cheaper at something
19:43 lb how many was at mojoconf this year?
19:43 marcus btw, next year I think we should just use #mojoconf as the hash tag - year prefixes are just silly and wasteful.
19:43 marcus lb just under 50 I think
19:44 marcus But we were quite late at everything and not good at PR ;) I think it’s bound to be more people next year just from the marketing efforts of this year.
19:45 lb outgrowing 1 track 1 day too?
19:46 Ptolemarch joined #mojo
19:54 neyasov_ joined #mojo
19:55 mad_hatter joined #mojo
19:57 mad_hatter hey folks I'm having a bit of trouble using javascript in mojolicious can someone give me some clues as to what I might be doing wrong?
19:58 mad_hatter http://pastie.org/9317778
19:58 tempire There's a good chance YAPC will be in Utah next year.
19:58 tempire If that's the case, I'd like to put together a Mojolicious track.
19:59 lb marcus: 213             % foreach my $key (sort %{$today_feed}) {
19:59 lb oops
19:59 lb mad_hatter: 213             % foreach my $key (sort %{$today_feed}) {
19:59 lb that's wrong
19:59 purl lb is channeling thoth!
20:00 tempire Maybe even getting some people out from Norway
20:00 tempire jberger: That means you have to come to YAPC next year.
20:00 lb tempire: madness
20:00 mad_hatter lb: how so?
20:00 * tempire will host Mojolicious people at his house
20:00 marcus lb: I think 1 day is good, but maybe two tracks would be ok, we had an ambition to do it this year, but had to drop it. I would really like to have a ‘related technologies’ track with javascript-frameworks/databases/virtualization/whatever
20:00 lb makes sense
20:01 lb mad_hatter: how much perl experience do you have?
20:01 mad_hatter pretty good
20:01 lb "foreach my $key (sort %{$today_feed}) {" is not idiomatic
20:01 lb since there's no "keys" in there
20:01 tempire marcus: I'm going to be putting together a couple of theoretical talks for next year. The type of things you hear at JS conferences.
20:02 mad_hatter oh yeah
20:02 mad_hatter it used to be keys()
20:02 mad_hatter instead of sort
20:02 mad_hatter but...i changed it
20:02 lb it can be both
20:02 mad_hatter gotcha..fixed
20:03 lb you're not closing div#today_feeds
20:03 lb otherwise, i can't see it without running it, and i'm not gonna ;)
20:03 marcus tempire: sounds interesting.
20:03 tempire I want mojoconf to be something that everyone can be interested in
20:04 marcus tempire: I’ve been pondering a mojo port to swift a lot lately. Wonder if it would be doable without using any Apple  SDKs.
20:04 tempire Like the talks at JSConf are usually pretty interesting.
20:04 tempire marcus: I've been wondering that same thing, actually.
20:04 tempire We'll see what sort of runtimes Apple provides when they release it.
20:04 lb slow ones
20:04 purl slow ones are better, they don't make aeroplane noises.
20:04 lb hth
20:05 marcus well, once it’s open source, and runs on linux too, it’ll be more interesting imo
20:05 marcus but of course now it has no libraries other than what it steals from obj-c
20:05 btyler joined #mojo
20:05 lb marcus: i'm not averse to helping host mojoconf in copenhagen, i'll see what always stressed out jonas thinks about when he gets back to work friday
20:06 marcus lb: Cool. Me and batman would totally be willing to help out with the organizing too.
20:06 * tempire wants to go back to Norway
20:06 lb getting my mojo-contract extended would probably help with my commitment ;)
20:06 marcus lb: Who should I talk to about that? ;)
20:06 tempire but would be ok with copenhagen
20:07 lb marcus: jonas' boss
20:07 marcus tempire: we can do a road trip to norway via sweden afterwards ;-)
20:07 lb they did pay me to do open source last couple of weeks, that's unusual
20:07 tempire woo!
20:08 marcus lb: that is pretty neat, yes!
20:11 kyshtynbai joined #mojo
20:12 mad_hatter hey folks I'm having a bit of trouble using javascript in mojolicious can someone give me some clues as to what I might be doing wrong?
20:12 tempire mad_hatter: don't ask to ask. just ask.
20:12 preaction you just asked that
20:13 mad_hatter http://pastie.org/9317778
20:13 preaction that's the same code from before, which you said you changed
20:13 mad_hatter Not sure if im doing the javascript wrong or im not using it properly with mojolicious
20:13 preaction and then: <lb> you're not closing div#today_feeds
20:14 lb that was incorrect
20:14 lb i just didn't expect him to put the js inside the div
20:14 preaction ah, my bad
20:14 lb mad_hatter: does the html look correct?
20:14 preaction and then it was mentioned that we'll need a live site to debug javascript, which we will
20:14 lb then the problem is the javascript, and completely unrelated to mojo
20:15 lb after doing a bit of Petal::Tiny, I'm kinda allergic to the whole php-thing with ep
20:27 disputin joined #mojo
20:28 batman marcus++ # putting words in my mouth
20:29 lb batman: careful with those, marcus is a bit of a perv
20:29 punter joined #mojo
20:30 batman ;)
20:36 tempire oooh
20:36 tempire https://laracasts.com/
20:36 tempire nice
20:38 marcus batman: It’s not like you would have volunteered.  :)
20:48 bluescreen_ joined #mojo
20:49 bluescreen__ joined #mojo
21:08 disputin joined #mojo
21:53 fhelmber_ joined #mojo
21:53 disputin joined #mojo
22:35 disputin joined #mojo
23:14 cpan_mojo MojoX-JSONRPC2-HTTP 1.0.1 by Alex Efros - http://metacpan.org/release/POWERMAN/MojoX-JSONRPC2-HTTP-1.0.1
23:26 d4rkie joined #mojo
23:38 neyasov__ joined #mojo
23:44 laouji joined #mojo
23:46 punter joined #mojo
23:48 nishttal2 joined #mojo
23:52 meshl joined #mojo
23:57 neyasov___ joined #mojo

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