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

IRC log for #mojo, 2016-06-07

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

All times shown according to UTC.

Time Nick Message
01:47 zivester joined #mojo
02:28 asarch joined #mojo
02:36 noganex joined #mojo
03:37 lluad joined #mojo
03:44 che-quest joined #mojo
04:08 lluad joined #mojo
04:35 inokenty-w joined #mojo
05:38 lluad joined #mojo
05:59 Vandal joined #mojo
06:08 bpmedley joined #mojo
06:10 ivi joined #mojo
06:36 dod joined #mojo
06:41 dod joined #mojo
06:46 andrew_ joined #mojo
07:05 Atog joined #mojo
07:21 trone joined #mojo
07:54 VVelox joined #mojo
08:04 dod joined #mojo
08:06 dod joined #mojo
08:16 nic jberger: (slightly off-topic, but) Did you track down any perl implementations of raft?
08:16 nic I got nothing
08:22 dod joined #mojo
08:23 icjs joined #mojo
08:42 osfabibisi joined #mojo
09:04 dod joined #mojo
09:26 punter joined #mojo
09:36 dod joined #mojo
10:05 punter joined #mojo
10:08 nic Anyone contemplating a rethinkdb backend for Minion?
10:08 nic s/contemplating/contemplating writing/
10:10 che-quest happiness! Mojolicious::Routes does allow utf "❤❤❤" actions )
10:14 meshl joined #mojo
10:31 Kripton joined #mojo
10:56 tchaves joined #mojo
11:31 jberger nic: nope
11:31 dvinciguerra joined #mojo
11:42 * sri is happy with postgres
11:42 sri and not keen on getting burned again by another mongodb
11:42 jberger sri: ?
11:42 jberger Oh rethinkdb
11:42 jberger Yeah
11:43 * jberger hugs postgres
11:44 jberger To be clear, my nope was about raft
11:44 jberger But it applies to rethinkdb as well
11:44 nic ah, cool
11:45 nic It made me a bit sad that so many langs have a raft impl avail, some having several goes at it, but not perl
11:46 pink_mist what is raft? aside of a floatation device I mean 0_o
11:46 nic raft.github.io
11:50 nic oh, jberger, while you're around...  did you get anywhere with Operational Transformation?
11:50 nic it's another thing that I could make lots of use of, but don't have the time to write
11:53 jberger nic: Oh man, OT was a mess
11:53 nic the algorithm(s)?
11:54 jberger But mostly because i was trying to copy from ot.js and the patterns just don't cross languages well
11:54 nic ah, yeah, I can imagine
11:54 jberger type checking really helps in that application
11:55 jberger I haven't really given up on that project but it is on the very back burner
11:56 jberger I think raft might be a lot easier
11:56 jberger But I was looking at it for a possible use case for work that i ended up not needing
11:57 nic My main hesitation with OT is that it doesn't guarantee troubles-free -- you can still find yourself in a merge corner no algorithm can dig you out of
11:57 jberger It would still be handy for minion scheduled jobs though so if someone feels like it ...
11:57 * nic happily mixes all the metaphors
11:57 sri i imagine in a language like perl there's little use for distributed consensus algorithms
11:57 jberger Hahaha
11:59 jberger Though as sri said at the time, pg is already the failure point so a worker running repair could cleanup a leader field and elect itself
11:59 jberger Since it isn't really distributed entirely
11:59 nic Yes, when you have a centralised resource locks and exclusions have simpler solutions
12:00 sri dictator election
12:00 jberger sri++
12:01 Kripton I am using varnish + mojo ( without apache or nginx) for a few days now, with great results ( one less thing to worrie about)
12:01 Kripton Does anyone has bad experience with this setup ?or would advice to not use  such setup  ?
12:03 jberger Feels like I remember someone using varnish but I can't remember who
12:06 nic I think mishanti1 uses it
12:11 Kripton Just to make sure that I am not doing anything stupid or a rookie mistake :)
12:13 rgrinberg joined #mojo
12:19 Zx3 joined #mojo
12:30 Jonis_ Kripton: we use it, but I don't stick my fingers in varnish
12:32 dvinciguerra_ joined #mojo
12:50 gizmomathboy joined #mojo
12:57 ramortegui joined #mojo
13:03 zivester joined #mojo
13:21 ramortegui joined #mojo
13:25 McA joined #mojo
13:30 bobkare Kripton: We use a setup like that with mojo prefork and varnish in front, everything duplicated and ucarp for failover. Works really well, only thing we've really had issues with is TLS. We're using pound but considering switching to something less buggy and more maintained
13:47 vytas joined #mojo
13:49 good_news_everyon joined #mojo
13:49 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/voIE7
13:49 good_news_everyon mojo/master 25877e8 Sebastian Riedel: find entities a little faster
13:49 good_news_everyon left #mojo
13:53 marty joined #mojo
14:05 andy joined #mojo
14:22 PryMar56 joined #mojo
14:29 a6502_ hm.. is there any way to get at the CN of the client certificate if you require client cerfiticates in Mojo::Server::Daemon?
14:30 a6502_ i'd like to base some authorization thingie on that.. if i can get at the CN
14:31 sri Mojo::IOLoop->stream($c->tx->connection)->handle
14:32 marty joined #mojo
14:33 marty_ joined #mojo
14:36 a6502_ sri: thx.. you saved me a couple of hours of digging..
14:50 a6502_ full incantation: Mojo::IOLoop->stream($c->tx->connection)->handle->peer_certificate('cn');
14:51 Bean joined #mojo
14:53 zivester joined #mojo
15:26 asarch joined #mojo
15:30 orev joined #mojo
15:31 zivester joined #mojo
15:35 lluad joined #mojo
16:12 itaipu joined #mojo
16:16 zivester joined #mojo
16:27 kaare joined #mojo
16:45 zivester joined #mojo
17:26 dod joined #mojo
17:56 andy joined #mojo
17:59 sri oooh
17:59 sri i got another sticker spot on stickermule
18:00 sri what should it be?
18:03 sri oh, looks like that was only a bug :(
18:03 mpapec sri: is there possibility for beer glass in the shop?
18:03 sri there already is one
18:04 mpapec yeah, but mug is for coffe
18:05 sri no, it's a beer mug
18:05 ribasushi Steinkrug?
18:05 sri http://www.towdistributing.com/media/Stock_Website_Images/Beer_Mug.JPG
18:05 sri this is called a beer mug too
18:06 genio sri: Do you mind a short conversation in PM?
18:06 sri genio: no
18:06 mpapec glass is ok
18:08 mpapec Steinkrug was more common before I believe
18:10 mpapec so I'll just take a sticker and put it on the glass :o
18:13 sri https://shop.spreadshirt.de/kraih/failraptor+beer+mug-A100081806
18:13 sri that's a real german beer mug
18:15 sri we call it a bierkrug
18:16 bpmedley What's a good german beer?  I wonder if they can be imported in the US..
18:17 sri i'm sure most good german beers are available in the us
18:18 mpapec Becks?
18:18 * sri drinks pretty mainstream beers... Beck's, Erdinger, Flensburger
18:18 genio Good beers are kind of hard to come by in the US. We're oppressed with the ubiquity of the US-based light beers.
18:20 mpapec I must confess, Czech beers are somewhat better
18:20 sri Beck's brewery is close to where i grew up
18:20 sri czech beers are fine
18:21 odc joined #mojo
18:21 genio Well, my area of the US is pretty bad anyway.  The west coast gets lots of good beer and the far north east get good beers.  The south east is basically lots of bud light type stuff.  Slowly getting better, but meh.
18:23 mpapec http://www.euro-goodies.com/images/Beverage/EGB0003_Budwar.jpg
18:23 mpapec bud is ok :)
18:23 coolo a "good beer" is pretty much subjective anyway :)
18:23 sri the czech budweiser is actually good, can confirm
18:24 mpapec sri++
18:24 mpapec it is not subjective
18:25 mpapec heineken is pretty bad
18:25 coolo yes, 'bad beer' is universal :)
18:26 coolo well, in bavaria they differ between Bier and Pils ;)
18:26 genio St. Bernardus Abt 12  is likely my favorite.
18:26 * coolo thought US is by now the country of the crafted beer
18:27 mpapec coolo: is Pils something like Lager?
18:27 genio coolo: over there on the west and up there in the north east, yea.
18:28 sri northern germany likes pils, the south likes weissbier
18:28 sri lager is a different type
18:28 chandwki joined #mojo
18:28 mpapec as for weissbier I've tried Erdinger
18:29 mpapec it is quite good
18:29 coolo mpapec: well, 'something like', yes. But a lager is stronger - a Pilsner (long word) is anything derived from the same receipe than the one brewed in Pilzen
18:30 coolo mpapec: let me put it this way: https://en.wikipedia.org/wiki/Category:Beer_styles knows 42 beer types, https://de.wikipedia.org/wiki/Kategorie:Biersorte knows 79
18:30 sri :)
18:30 coolo sri: you're heavily overgeneralizing ;)
18:30 chandwki hi, I've been working on a website using Mojolicious::Lite but it's growing to a point where I probably should be using Mojolicious instead of writing all my routes in one spot. Is there some example of something written in both Mojolicious::Lite and Mojolicious that I could compare between the two?
18:30 sri coolo: indeed
18:31 chandwki like... i guess I'm asking for any sort of documentation that would be helpful for transitioning to the next step. I understand the basics but I guess I'm lacking on how a good Mojolicious app should be laid out properly
18:31 coolo for the record: I prefer Zwickl - https://de.wikipedia.org/wiki/Zwickelbier
18:31 andy_ joined #mojo
18:32 coolo oh, it even has an english entry on https://en.wikipedia.org/wiki/Kellerbier
18:32 sri chandwki: growing guide
18:32 sri chandwki: you might also like the blog example in the Mojo::Pg dist as an example
18:32 mpapec coolo: scarce foam?
18:33 chandwki sri: growing guide looks like exactly what I was looking for, thanks :)
18:33 coolo mpapec: it's usually served in mugs - and you don't see the foam anyway :)
18:34 * coolo lives here: http://en.franken-bierland.de/rekord/hoechste_brauereiendichte_der_welt/
18:34 mpapec lol
18:34 coolo (not *exactly* there of course)
18:35 mpapec so, is https://upload.wikimedia.org/wikipedia/commons/8/89/Kellerbier-Landskron.JPG
18:35 mpapec close to real thing?
18:35 mpapec I'll try to find it
18:38 mpapec I was in Slovenien once,
18:38 mpapec can recommend their http://www.haler-sp.si/DE/bier-haler
18:40 coolo mpapec: I've seen german beer in bejing super markets, it can't be much harder to get in the US :)
18:41 mpapec can't tell, I'm from EU ;)
18:42 coolo mpapec: ah, right - it was genio complaining
18:42 mpapec ok, I'll try to find Landskron
18:43 mpapec did i write that correct?
18:44 mpapec "so echt wie das Leben" :)
18:44 * coolo does not know Landskron
18:45 mpapec coolo: https://upload.wikimedia.org/wikipedia/commons/8/89/Kellerbier-Landskron.JPG
18:45 coolo but they are very far in the south east of germany - so if you can get czech beer, it might be your best option ;)
18:47 mpapec Bavaria?
18:48 coolo no, saxony - https://en.wikipedia.org/wiki/G%C3%B6rlitz
18:49 mpapec oh, at the Granze
18:49 mpapec (Grenze)
18:54 plicease jberger: how do you feel about dong a release for Mojo-Phantom?
19:09 TheGrinnz joined #mojo
19:26 jberger plicease: sorry, I know you are looking forward to it
19:26 jberger I can cut one
19:27 jberger I was trying to wait until I could figure out the bug for that other guy's PR
19:27 jberger but it isn't fair to you
19:32 itaipu joined #mojo
19:35 cpan_mojo Mojo-Phantom-0.04 by JBERGER https://metacpan.org/release/JBERGER/Mojo-Phantom-0.04
19:37 disputin joined #mojo
19:42 jberger hmmmm, mbtiny overwrote the Build.PL again
19:42 chandwki what does "state" do, like for example helper users => sub { state $users = MyApp::Model::Users->new };
19:42 preaction chandwki: it runs the initializer once, and then remembers the value
19:43 preaction so it's kind of like: my $users; sub users { $users ||= MyApp::Model::Users->new; ... };
19:43 chandwki ah, so it's for lazy loading... I've been writing ||= for lazy loading in my code
19:43 chandwki neat
19:43 chandwki thanks
19:44 bpmedley chandwki: state is fun with non-blocking code .. :)
19:44 preaction i mean, that could be what it's for, but it's also for keeping state between invocations. like a counter
19:52 cpan_mojo Mojo-Phantom-0.05 by JBERGER https://metacpan.org/release/JBERGER/Mojo-Phantom-0.05
19:59 itaipu joined #mojo
20:01 bwf joined #mojo
20:13 bwf Anyone else wish "./script/app minion job" listed the jobs in reverse order?
20:34 jberger I often pipe it to head
20:42 punter joined #mojo
20:46 cpan_mojo Mojolicious-Plugin-CGI-0.33 by JHTHORSEN https://metacpan.org/release/JHTHORSEN/Mojolicious-Plugin-CGI-0.33
20:57 perlpilot bwf: pipe the output to tac
21:04 disputin joined #mojo
21:12 disputin joined #mojo
21:44 rgrinberg joined #mojo
22:17 dvinciguerra_ joined #mojo
22:33 jabberwok joined #mojo
22:34 jabberwok https://github.com/lindleyw/crud_example    possible presentation ?
23:00 disputin joined #mojo
23:18 disputin joined #mojo
23:43 jberger jabberwok: in the test, $resp is just $t
23:47 sri is it just me or is the latest chrome update terrible?
23:48 sri stuttering video on twitch, tabs not getting closed properly and reappearing in the next new window...
23:53 sri hmm, 600mb chrome helpers

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