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

IRC log for #mojo, 2016-02-03

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

All times shown according to UTC.

Time Nick Message
00:54 disputin joined #mojo
00:54 disputin joined #mojo
01:10 vaewyn joined #mojo
01:10 vaewyn left #mojo
01:14 asarch joined #mojo
02:09 disputin joined #mojo
02:28 mcsnolte joined #mojo
03:00 inokenty-w joined #mojo
03:32 noganex joined #mojo
03:36 disputin joined #mojo
04:33 PopeFelix joined #mojo
04:33 al_ joined #mojo
04:33 mikegrb joined #mojo
04:33 Lucas1 joined #mojo
04:33 bzero_ joined #mojo
04:33 mfontani_ joined #mojo
04:33 meredith joined #mojo
04:33 bobkare joined #mojo
04:33 avenj joined #mojo
04:33 phillipadsmith_ joined #mojo
04:33 Foxcoolm joined #mojo
04:33 mrEriksson joined #mojo
04:33 Mikey joined #mojo
04:33 SmokeMachine joined #mojo
04:33 janus joined #mojo
04:34 Andreas joined #mojo
04:34 charsbar joined #mojo
04:34 klapperl joined #mojo
04:34 chansen joined #mojo
04:34 lsm joined #mojo
04:34 esh joined #mojo
04:34 allison joined #mojo
04:34 isomorphismes joined #mojo
04:34 cfedde joined #mojo
04:34 elik joined #mojo
04:34 CandyAngel joined #mojo
04:34 pink_mist joined #mojo
04:34 rwp joined #mojo
04:34 mtj joined #mojo
04:34 FatalNIX joined #mojo
04:35 kwa joined #mojo
04:35 CHYC joined #mojo
04:35 upasana joined #mojo
04:35 osfameron joined #mojo
04:35 cpan_mojo joined #mojo
04:35 oliver joined #mojo
04:35 vytas joined #mojo
04:35 rakshasa joined #mojo
04:35 tempire joined #mojo
04:35 ashimema joined #mojo
04:36 inokenty joined #mojo
04:36 c--_ joined #mojo
04:37 upasana_ joined #mojo
04:37 disputin joined #mojo
04:39 nicomen joined #mojo
04:55 jberger joined #mojo
07:00 dod joined #mojo
07:05 dod joined #mojo
07:41 cpan_mojo Mojo-Weixin-1.0.2 by SJDY https://metacpan.org/release/SJDY/Mojo-Weixin-1.0.2
07:42 Vandal joined #mojo
07:50 abra joined #mojo
08:00 sugar__ joined #mojo
08:06 irqq joined #mojo
08:09 osfabibisi joined #mojo
08:32 trone joined #mojo
08:44 AndrewIsh joined #mojo
08:47 berov joined #mojo
09:15 Averna joined #mojo
09:42 berov joined #mojo
09:58 disputin joined #mojo
09:59 bayashi joined #mojo
10:11 c--__ joined #mojo
10:15 dvinci joined #mojo
10:35 oliver batman: for info, I'm using the (EXPERIMENTAL) websocket support in Swagger2. so far so good, thanks!
10:58 disputin joined #mojo
11:10 dod joined #mojo
11:48 batman oliver: join #swagger if you want to discuss/give feedback :)
11:48 batman got some questions for you.
11:49 batman but thanks for the feedback :)
12:02 CandyAngel sri: Why are all the donation items weird stuff like glitter and glow-in-the-dark?
12:03 nic It's the middle of winter in his country and he takes road safety _extremely_ seriously
12:03 CandyAngel :P
12:14 sri CandyAngel: started as a joke, for the first donation shirt i tried making the most ridiculous one possible, and then it turned into more normal glow in the dark and glitter shirts
12:15 CandyAngel Ah okies :P
12:15 sri think it was a pink shirt with green glitter or so, and someone out there actually has it!
12:15 CandyAngel Coolies ^_^
12:15 pink_mist ... I want that :P
12:15 sri i salute you fabulous stranger!
12:16 CandyAngel I might just get the glow one then.
12:17 taichi joined #mojo
12:18 pink_mist https://shop.spreadshirt.com/kraih/pirate+cloud-A100074818?department=1&amp;productType=491&amp;color=E47AA5&amp;appearance=256&amp;view=1 <-- this is the one? :P
12:20 CandyAngel No, this one: https://shop.spreadshirt.de/kraih/50+%E2%82%AC+donation+and+glow+in+the+dark+shirt+%28mojolicious+pirate+cloud%29-A103861639
12:21 pink_mist yeah but the EU shop doesn't carry the pink version =( that's the one I wanted
12:21 CandyAngel Aw
12:21 * CandyAngel buys pink_mist the pink one
12:22 pink_mist the 100€ donation one comes in pink, but that's too expensive :P
12:22 CandyAngel You have to wear it though! I want photo evidence! Untampered photo evidence!
12:22 pink_mist I promise :P
12:23 CandyAngel I have a collection of tshirts.. I need to sort out something to display them in because I'm not going to wear them
12:23 pink_mist mannequins :P
12:24 CandyAngel That would be cool, but I don't have the room
12:24 CandyAngel I also need to start working on my Mojolicious dress
12:25 pink_mist 0_o
12:25 disputin joined #mojo
12:25 CandyAngel I had a thought of having "perl -Mojo" above the cloud on the back
12:25 CandyAngel What?
12:28 CandyAngel Weren't you around when I was discussing it before? I don't wear tshirts and stuff, so I started planning out a Mojo-themed dress
12:29 pink_mist nope, if I was around, I wasn't paying attention :P
12:30 CandyAngel Fair enough :P
12:30 CandyAngel I think it will be cool if I can get it how I want, though I'm not sure where the colour scheme came from
12:30 CandyAngel Mojolicious has no association with dark brown, as far as I can recall
12:35 nic This is worse than people talking about food.  Every time I hear about this dress I WANT TO SEE IT
12:36 CandyAngel I will show you when its done! I'm not that mean!
12:36 asarch joined #mojo
12:37 sri dark brown?
12:38 nic Do you make pictures before getting out the scissors, or do you work from images in your head?
12:39 CandyAngel I just have ideas written down
12:39 mcsnolte joined #mojo
12:44 CandyAngel sri: Yes, I don't know why. Also, I keep thinking the mascot is a cartoon monkey head
12:45 CandyAngel Which probably has something to do with Mojo Jojo from Powerpuff Girls
12:47 sri btw. re us vs eu shop... today is the last day you can get free shipping in both shops with the code 2LOVE
12:48 CandyAngel Last day.. in which timezone?
12:48 sri feb 3
12:50 sri CandyAngel: funny thing, like 10 years ago i did draw a perl monkey mascot
12:50 sri think it got lost in time though
12:51 CandyAngel You do know it is already Feb 4th for some people and has only just started Feb 3rd for others, right?
12:51 CandyAngel I don't know if it will expire before I get home! :P
12:52 sri i'm sorry new zealand!
12:52 punter joined #mojo
12:52 sri australia still has 8 minutes
12:56 CandyAngel And then they are lost to us :(
13:18 kaare joined #mojo
13:56 plicease joined #mojo
14:10 hummeleBop joined #mojo
14:15 neilhwatson joined #mojo
14:22 melo joined #mojo
15:37 sri does anyone actually use hstore anymore? https://github.com/kraih/mojo-pg/issues/13
15:38 pink_mist I saw someone over in #perl on freenode (iirc) using it the other day
15:38 pink_mist but that was the first I had even heard of it :P
15:38 sri i mean by choice ;p
15:39 sri if you've got legacy stuff sure...
15:39 cpan_mojo Clustericious-1.16 by PLICEASE https://metacpan.org/release/PLICEASE/Clustericious-1.16
15:39 sri but why would you use it over jsonb?
15:45 punter joined #mojo
15:46 mcsnolte joined #mojo
16:02 * jberger buys another shirt + a mug!
16:09 disputin joined #mojo
16:20 disputin joined #mojo
16:22 vicash sri: i use hstore. it works on Postgres 9.1 which is in Debian 7 and in RHEL as well
16:22 vicash Json(b) has been introduced I believe in 9.2
16:22 sri 9.4
16:22 sri but legacy is not a concern for Mojo::Pg
16:23 vicash Mojo::Pg doesn't support hstore anyway
16:23 vicash so it doesn't matter.
16:23 sri what do you mean?
16:23 sri it's just DBD::Pg, hstore works as well as it does everywhere else
16:24 vicash DBD::Pg doesn't support hstore. One has to install DBD::Pg::hstore to use it or create special prepared queries dynamically
16:24 vicash i asked this question last week about hstore support. You cannot have a single '?' to allow an hstore insert for example. You need one '?' for each key and value to insert into a hstore
16:24 sri there is no DBD::Pg::hstore
16:25 sri so, what you mean is that there's no convenience functionality, but you can use hstore just fine
16:25 vicash yes.
16:26 sri that's not at all the same as "Mojo::Pg doesn't support hstore anyway"
16:26 vicash i think i should explicitly say that unlike Json native support there is no hstore native support
16:26 dvinciguerra joined #mojo
16:26 disputin joined #mojo
16:27 vicash if most people are not using hstore, then it doesn't need to be supported. special cases can be handled by the user themselves
16:30 genio I think he meant Pg::hstore  and not DBD::Pg::hstore
16:32 HtbaaPi joined #mojo
16:36 disputin joined #mojo
16:38 PryMar56 joined #mojo
16:39 berov1 joined #mojo
16:48 bradjm joined #mojo
17:11 Kogurr joined #mojo
17:18 Grinnz_ "However I just figured out that I can just cast the hstore column to ::json to get it expanded." well, that's that i guess :P
18:08 dod joined #mojo
18:21 disputin joined #mojo
18:26 patrickz joined #mojo
18:40 CandyAngel "Dishwasher-proof" "Tip: hand-washing will make it last even longer"
18:40 CandyAngel That's.. not really dishwasher proof then, is it?
18:41 preaction sounds more dishwasher-resistent
18:44 CandyAngel It resists 0.75 dishwashers
19:28 absolut_todd joined #mojo
19:30 c--_ joined #mojo
19:34 sri wow, 1.5 years later, and this is the status quo of concurrency with MongoDB http://www.dagolden.com/index.php/2602/a-parallel-mongodb-client-with-perl-and-fork/
19:35 sri poor doesn't even begin to describe it
19:35 genio /o\
19:37 genio Is Mango still being maintained by someone?
19:37 sri for some definition of ""maintained
19:54 dvinciguerra joined #mojo
19:58 disputin joined #mojo
20:05 Grinnz_ i guess depending on the operations, "overhead of checking $$" vs "making the programmer call something after forking" is a difficult decision
20:11 disputin joined #mojo
20:13 ribasushi I have no idea why he ended up doing that when Posix::AtFork exists (and I specifically pointed him this way)
20:14 ribasushi errr POSIX::AtFork
20:30 trone joined #mojo
21:22 disputin joined #mojo
21:41 Kogurr left #mojo
21:44 CHYC ~...
21:44 CHYC #
21:44 CHYC #
21:44 CHYC ...##
21:44 CHYC .#.
21:45 abra joined #mojo
21:50 jberger _/\___\0/__
21:54 CHYC jberger: Erm, yes, sorry about that.
21:55 wingfold joined #mojo
21:55 jberger you don't need to apologize, you just need to swim faster than that shark :-P
22:00 CandyAngel Which seems to be giving off smoke. Good luck!
22:03 sugar joined #mojo
22:03 CandyAngel jberger: Could I convince you do to a quick critique of my code.. like, to Mojo standards sort of thing?
22:05 CandyAngel I'm still not sure if I have the right mindset, if that makes sense. Would be really helpful to know where I need to look at things a different way
22:18 jberger CandyAngel: you can always post a link
22:18 jberger I'm at $work currently
22:18 sugar_ joined #mojo
22:19 CandyAngel Yeah, I didn't mean now, I need to finish the code first
22:19 CandyAngel Just let me know if there is anything I can do in return
22:20 disputin joined #mojo
22:21 CandyAngel It's pretty neat how it works, because 'has' lets me do all the setting up as required, if you want to get started quick, instead of creating a context, probing it, selecting a device, opening it.. you can just do 'my $device = OpenHMD::Deviec->new;' and when you go to use it, it'll Just Work(tm)
22:21 jberger I'd say buy a t-shirt, but I think we already covered that right?
22:21 jberger yeah, using lazy accessors for stuff like that can be really nice
22:21 CandyAngel Yeah, I have set some money aside, providing I don't need it by the time I get paid, I will be buying one of the donation ones :)
22:21 jberger I've started to push the limits of them a bit :-P
22:22 jberger :o
22:22 sri buy more stickers :)
22:22 jberger CandyAngel: maybe I'll poke you for testing my ACME client eventually
22:23 jberger my vnc article took up my free time lately, but I have only 10 (9?) days to renew my letsencrypt cert, so I'll get back to that soon
22:23 CandyAngel sri: Make more stickers
22:24 jberger it is really wierd that it limits you to 3 stickers (and 2 in this case)
22:24 jberger seems like a really odd business model
22:25 sri yea
22:25 CandyAngel Well, it'll 'Just Work' if you can type OpenHMD::Device->new correctly :P
22:25 CandyAngel Huh? That *is* odd
22:25 sri well, i can buy more slots for like $10 each
22:25 CandyAngel :|
22:26 CandyAngel You know, it's only just occured to me that I can stick all the stickers I have on my wardrobe
22:26 CandyAngel Be right back..
22:30 jberger sri: which is probably your entire profit on stickers so far, right?
22:30 sri little more, but not much ;p
22:33 sri no wait, i was wrong
22:33 sri looks like it costs $60
22:33 CandyAngel Per slot?
22:34 sri i need to make a custom order, and after that i can sell more of those
22:34 sri custom orders start at 50 stickers it seems
22:35 sri hmm, size makes a difference too
22:35 sri so, between $50-$100
22:35 sri and i have 50 stickers flying around
22:37 sri sucks so much that i wasted a slot
22:37 sri $100 wasted for testing...
22:39 sri failraptor and pirate cloud stickers would have been neat
22:39 jberger we should just buy a bunch to hand out at some conference
22:42 preaction i'm thinking about it, i'll be at DCBPW
22:44 jberger shoot, I keep meaning to ask at $work about sending me there and/or YAPC::EU
22:52 chansen sri: have you started to port Mojo to Perl6?
22:52 jberger chansen: that's been "deferred until futher notice" IIUC
22:54 jberger the performance concerns mean that p5-mojo is still better coupled with the fact that p6 already has all the primatives for non-blocking mean that a direct port isn't useful
22:57 sri chansen: don't care about perl6
22:58 chansen sri: Ahh, ok, you have changed your mind about p6? You where eager a couple of years ago!
22:58 sri yea, i just don't think it can be successful
22:59 jberger gods I wish they hadn't squandered the publicity value of the release like that
22:59 sri if there's ever money in perl6 i might give it a shot, but until then perl5+js is where i invest more
22:59 jberger (and their chance to pick a new language name (let perl6 have been a "codename")
23:00 Grinnz_ they're optimizing for fun, not publicity ~
23:00 jberger Grinnz_: then they're optimizing for their own amusement sadly
23:00 jberger Grinnz_: they could have done both
23:00 jberger it wouldn't have been hard
23:01 jberger nm, I don't need to do this all again
23:01 chansen sri: s/perl6/swift/ ;o)
23:01 Grinnz_ hah
23:01 sri yea, i said last time this came up that swift is a much better investment
23:03 chansen I'll invest more in Swift once it's better supported on other platforms than OS X
23:03 * sri even left #perl6
23:03 sri after the botched release i don't see how they could ever recover
23:04 sri prolly the most publicity perl6 will ever get
23:04 * jberger nods
23:04 meredith some of us were playing with `use Mojo::UserAgent:from<Perl5>` last night, it was fun
23:04 meredith i really wish they'd gone to a new name too
23:05 sri nobody talks about duke nukem forever anymore either... trolololo
23:05 * jberger buys an osborn
23:06 meredith community behavior also really turned me off of perl 6, tbh
23:08 Grinnz_ their goals are not in line with mine, aside from my annoyance at the name, that's all there is to it
23:09 chansen I like some of the features Perl6 brings, dynamic dispatch on named parameters, gradual typing, grammars and constraints. But the language is simply too large for my taste.
23:10 sri it's full of nice ideas
23:11 chansen Yeah, but they went overboard!
23:11 sri lost it when i learned about indirect object notation in perl6
23:11 Grinnz_ they kept that?!
23:12 sri http://www.troll.me/images/obi-wan-chosen-one/i-trusted-you-you-were-supposed-to-be-the-chosen-one-thumb.jpg
23:12 meredith there's a lot of cool stuff and i'll undoubtedly mess around with it, but yeah it's just all over the place
23:12 sri Grinnz_: not quite, they just made it different
23:12 sri doit $object: "a", "b", "c"
23:13 jberger ok so the thing I've never understood about "the chosen one" being the one that was supposed to "restore balance to the force"
23:13 Grinnz_ hm, if the syntax is less ambiguous thats better at least
23:13 meredith like i noticed someone was using $foo.somemethod: arg, arg, arg  and after not finding any documentation of that particular : bit he explained that it was a "precedence colon" and there are like 11 different uses of : out there
23:13 jberger in the prequels there were no known siths remaining
23:13 meredith sounds unbalanced
23:13 jberger so doesn't "restoring balance" mean bringing back the siths?
23:13 sri jberger: darth jarjar
23:14 Grinnz_ jberger: that explains everything! ... maybe
23:15 sri so, it's time for this again https://www.youtube.com/watch?v=8yy3q9f84EA
23:15 jberger the best thing in there is the force jump
23:17 genio I'd like to be able to force jump.  Think of the baskeball and tack+field winnings you could gather
23:22 jberger https://en.wikipedia.org/wiki/Bob_Beamon#1968_Summer_Olympics
23:24 pink_mist how did he have a career best of 8.33m but at the same time a world's best of 8.39? 0_o
23:25 pink_mist oh, it had too much wind assistance
23:25 pink_mist so it was invalid
23:25 pink_mist then don't mention it wikipedia :<
23:25 dvinciguerra joined #mojo
23:25 Grinnz_ patches welcome
23:25 Grinnz_ -ish
23:35 genio 8m?!?  man, that's a _long_ jump
23:39 jberger the point of the story is he beat the existing record by 55cm
23:39 jberger most sports go through continual improvement
23:39 genio I doubt I could jump 2m right now.
23:40 jberger then there are the rare cases where some technological or stylistic change ups the ante (clap skates, high jump form)
23:40 jberger this guy just force jumped
23:41 jberger he jumped past the observation system!
23:41 mitya joined #mojo
23:43 disputin joined #mojo
23:44 mitya Dear community! How can I use DBD::Pg's DBDPG_DEFAULT via Mojo::Pg to insert default values?
23:44 chansen re: still on the edge about "if length $foo" vs "if $foo ne ''", think i like the latter better, but not by much
23:44 chansen if the string does not have the SvUTF8 flag set, it's available using the macro SvCUR (which is stored in the SV struct) otherwise the length in code-points is stored using MAGIC and might be computed on demand (unless previously stored/computed in MAGIC).
23:44 chansen sri: ribasushi ^^
23:45 chansen Thats been the case since 5.8
23:46 Grinnz_ mitya: looks like $DBDPG_DEFAULT is just a global that can be imported from DBD::Pg
23:48 * chansen continues working through scrollback
23:48 mitya Grinnz, and then I have error: "DBD::Pg::DefaultValue=HASH(0x3568440)" at ......
23:49 mitya invalid value
23:49 pink_mist did you stringify a variable that shouldn't be stringified?
23:49 pink_mist i.e. did you pass     "$var"    instead of just    $var
23:53 mitya pink_mist, same error. Is there any easy way to insert default value in Mojo::Pg?
23:54 Grinnz_ mitya: "same error" as what?
23:54 orev I notice that the csrf token seems to change, but I'm not sure what causes it.  how does that change?
23:55 mitya Grinnz, invalid value: "DBD::Pg::DefaultValue=HASH(0x35684b0)"
23:55 Grinnz_ mitya: he was saying you should *not* be stringifying $DBDPG_DEFAULT
23:55 Grinnz_ it needs to be passed unaffected as a bind value
23:58 pink_mist mitya: until we get to see all of your code, I'm out of ideas to try to throw at your problem.
23:58 mitya Grinnz_, variable with or without quotes generates the same error

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