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

IRC log for #mojo, 2016-07-07

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

All times shown according to UTC.

Time Nick Message
00:06 orev joined #mojo
00:35 sri this is so weird, i got a notification that the macbook shipped 16 hours ago, but tracking is still unavailable
00:44 jberger no part of this can just be easy :s
00:45 sri seriously
00:45 sri it's like someone at apple is trolling me
00:46 sri also waiting for over a week for the refund now, which was supposed to take no longer than 7 days
00:46 * jberger (creepy voice) "SEVEN DAYS..."
00:55 genio sri: did you ever watch Killjoys?  (a silly sci-fi show)
00:55 genio season 2 of that just started if you're bored
00:55 sri yes, dark matter too
00:55 sri enjoy both
00:56 sri silly fun
00:56 genio I don't think I've tried dark matter
00:56 sri they are both produced concurrently in the same studio :)
00:56 genio oh, I did watch that one
00:56 genio season 2 started?  yay
00:57 genio thank you for reminding me of dark matter.  I'd completely forgotten about that one
00:57 sri think they always air together too
00:58 sri wayward pines was good too
01:03 genio I didn't try that due to M. Night Shyamalan.  I haven't been a fan of his stuff, but maybe I shouldn't count it out
01:03 sri season 1 was awesome
01:04 preaction it was indeed. i was surprised. still pretty obviously one of M. Night's works, but it works better as a series
01:05 sri apparently it was very close to the book, so not really shamalama...whatever work
01:06 sri if he wrote the story the twist wouldn't have been revealed so early ;p
01:06 preaction true. though now that i know that, what's season 2 going to be about then?
01:07 sri nazis basically
01:07 sri season 2 is a bit meh
01:08 preaction eh. i've apparently decided to re-watch The Wire, so i've got a few weeks before i get to the new seasons of wayward pines and 12 Monkeys
01:08 jberger M Night Shyamalan is so frustating (no I haven't seen the show) but he had such a bang start and then kept tailing off
01:09 sri 12 monkeys was a huge disappointment too
01:09 sri loved season 1, but season 2 jumped the shark with metaphysics nonsense
01:10 jberger isn't 12 Monkeys the movie just a vehicle for Brad Pitt to be awesome?
01:12 sri hmm, maybe i should watch the show utopia
01:43 PryMar56 joined #mojo
02:02 noganex joined #mojo
02:59 noganex_ joined #mojo
04:07 inokenty-w joined #mojo
04:32 lluad joined #mojo
06:47 dod joined #mojo
06:51 dod joined #mojo
06:59 AndrewIsh joined #mojo
07:09 Jonis sri: utopia is pretty good :D
07:09 Jonis I love dystiopian TV
07:09 Jonis The Lobster is really weird, but fun
07:19 Vandal joined #mojo
07:35 punter joined #mojo
07:36 trone joined #mojo
07:40 osfabibisi joined #mojo
07:42 trone joined #mojo
07:57 cpan_mojo Mojo-Webqq-1.8.3 by SJDY https://metacpan.org/release/SJDY/Mojo-Webqq-1.8.3
09:35 punter joined #mojo
10:23 sri hmm, 24 hours since i got the shipping notification, and still no tracking data Oo
10:48 Jonis :/
10:48 Jonis I've experienced that before, with bulk shipping. the container'll get picked up and then they'll scan it at the terminal
11:00 tchaves joined #mojo
11:15 tchaves joined #mojo
11:53 kaare joined #mojo
12:04 osfabibisi joined #mojo
12:06 kid51 joined #mojo
12:31 Kripton joined #mojo
12:33 sri seems weird that apple would let laptops just standing around for over a day at the factory
12:53 neilhwatson joined #mojo
12:54 sri interesting idea, but very work intensive https://github.com/kraih/minion/issues/37
12:55 sri (meaning i'd like to see it happen, but it won't)
13:13 cuechan joined #mojo
13:25 dabudabu I once worked at a company handling most of Apple's logistics for an entire country
13:27 dabudabu I wouldn't be too surprised at any weirdness for shipments in that country anyway :p
13:28 dabudabu Also Apple really doesn't like it when their subcontracted companies say that Apple is their customer
13:29 human39 joined #mojo
13:47 ptolemarch joined #mojo
14:46 sri aah
14:46 sri it was my fault this time
14:46 sri so, dhl and dhl express have separate tracking sites on the same domain
14:46 * sri shrugs
14:47 sri macbook is in the netherlands already, guess that means delivery tomorrow \o/
14:51 Zen gefeliciteerd
15:02 zivester joined #mojo
15:19 PryMar56 joined #mojo
15:19 lluad joined #mojo
15:33 disputin joined #mojo
15:39 tchaves joined #mojo
15:44 dvinciguerra joined #mojo
16:17 gizmomathboy joined #mojo
16:20 tchaves joined #mojo
16:23 bwf joined #mojo
16:42 dvinciguerra_ joined #mojo
16:50 marty_ joined #mojo
16:52 marty joined #mojo
16:53 disputin joined #mojo
16:53 marty joined #mojo
16:58 marty joined #mojo
17:01 disputin joined #mojo
17:04 Kripton joined #mojo
18:05 sri argh
18:06 sri planned delivery is now july 13 Oo
18:06 sri and the package is only a 4 hour drive from me
18:06 Zen dhl is vreselijk
18:07 Zen waarom ga je niet gewoon naar de mac store?
18:07 sri i don't speak dutch
18:07 Zen oh my bad
18:07 Zen I thought you live in the Netherlands
18:07 sri germany
18:07 Zen ahh
18:08 Zen isn't it way quicker to buy a macbook in the apple store?
18:08 sri they don't have us keyboards
18:08 sri german ones suck for programming
18:08 Zen you dont type blind?
18:09 _dave_ cant you buy a us keyboard? :)
18:09 Zen or is the layout of german keyboards different?
18:09 sri very different layout http://i.stack.imgur.com/eBjhP.jpg
18:09 _dave_ good lord that would drive me nuts
18:09 preaction oh wow
18:10 Zen still same amount of buttons right
18:10 Zen just dont look at the keys :P
18:10 _dave_ haha I'd have to with that one
18:10 _dave_ no big enter key for one
18:10 preaction no curly/square brackets that i can see
18:10 _dave_ and that
18:11 nicomen mac keyboard seems to be nice for html programmers though ;)
18:11 _dave_ there would be # after every line of coude
18:11 nicomen but what's up with the hate for the enter/return button...
18:11 _dave_ well, it's your pinky that hits the button
18:11 nicomen hah, return? I think you meant "
18:11 _dave_ your pinky is the least accurate finger
18:11 nicomen #
18:12 neilhwatson #)
18:12 nicomen I like to end lines with the same amount of power as on a typewrite thank you very much ;)
18:12 _dave_ I haven't used a real typewriter in years
18:12 disputin joined #mojo
18:13 nicomen the right shift is probably very important on mac os ;D
18:13 nicomen (it's huuge on my lenovo too though... weird)
18:14 _dave_ I have difficulty coding on any laptop tho
18:14 _dave_ screen is too small
18:14 _dave_ if I were to use one for that, I'd buy an external keyboard and monitor
18:15 nicomen _dave_: ctrl/command + + ?
18:17 _dave_ eh?
18:17 _dave_ I make caps lock my control key
18:17 _dave_ much quicker than moving the pinky down to ctrl
18:18 _dave_ then (on macs) I can save command as an "alt" key
18:19 nicomen _dave_: I meant, you can zoom in your text if screen is small ;)
18:20 _dave_ ghod no ;)
18:20 _dave_ I read small fonts on a large screen
18:20 _dave_ more code per unit area
18:20 nicomen sign of complicated code :-P
18:20 _dave_ yeah I wind up debugging a lot of that
18:22 _dave_ it helps when some client gives me a PHP file that has 100s of pasted blocks of code because the person they hired before I got there didn't know what subroutines were
18:23 nicomen matrix-style ;)
18:24 _dave_ except I'm not "the one", I'm "it" ;)
18:24 _dave_ then there's trying to learn reactJS, that needs lots of screen real estate
18:25 AndrewIsh joined #mojo
18:30 disputin joined #mojo
18:33 punter joined #mojo
18:46 berov joined #mojo
18:47 bwf joined #mojo
18:54 webstrand joined #mojo
19:00 webstrand I'm migrating an app from mod_perl to mojo, and in the process I'm splitting the app into modules. Previously, various objects such as memcache and database handles were globally instantiated. I don't really want to pass cache and database handles through every subroutine call, and many of the modules will be used outside of mojo. Any recommendations?
19:01 webstrand I can change the api on a whim right now
19:02 Grinnz webstrand, helper methods can be used to store objects either "global" to the app or local to each request
19:02 Grinnz example of global to the app: https://metacpan.org/source/SRI/Mojo-Pg-2.28/examples/blog/lib/Blog.pm#L15
19:02 Grinnz "state $pg" can also be written as "my $pg;" on the line above that
19:03 webstrand Grinnz: That's what i've been using. But I can't use helper methods, if the module gets called from outside of mojo, like in a cron job
19:03 Grinnz then do the same thing, but with your own function, and have the helper method call that
19:03 Grinnz it's just a closure really
19:03 sri you could also make a command for the cron job
19:04 sri http://mojolicious.org/perldoc/Mojolicious/Guides/Cookbook#Adding-commands-to-Mojolicious
19:04 sri or use app embedding
19:04 sri http://mojolicious.org/perldoc/Mojolicious/Guides/Cookbook#Application-embedding
19:04 sri (depending on your reuse needs)
19:21 disputin joined #mojo
19:23 webstrand What if I just left the globals as global? Is there anything interesting mojo does that might cause issues? As far as I know, perl doesn't do threading.
19:24 neilhwatson joined #mojo
19:26 preaction global mutable state is a maintenance problem though. and perl can thread, but it's discouraged
19:37 webstrand Grinnz: Do you mean something like this? http://dpaste.com/0B82QPA
19:38 preaction that'd allow "cache" to be a helper, yes
19:40 webstrand And that'd be safe with a pre-forking server?
19:46 preaction processes don't share memory, so yes
19:47 preaction unless your cache thing shares memory, then that's up to your cache thing
19:48 sri or sockets
19:48 webstrand Great, thanks. I'd been avoiding using state, because I'd read that it might cause issue with some mojolicious configurations
19:48 sri (if you don't lazy initialize)
20:08 tchaves joined #mojo
20:29 dod joined #mojo
20:52 itaipu joined #mojo
21:34 sri genio, jberger: btw. one of you two using the windows license?
21:35 sri otherwise i guess i'll give calling microsoft another try to get it activated
21:36 genio sri: I'm definitely not.  jberger mentioned it, but I don't know if he ever got around to an actual installation.
21:36 sri if that doesn't work i guess i'll try my luck with one of those cheap licenses from ebay ;p
22:02 good_news_everyon joined #mojo
22:02 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/vKYPs
22:02 good_news_everyon mojo/master c4ff6bb Sebastian Riedel: update jQuery to version 3.1.0
22:02 good_news_everyon left #mojo
22:05 Adura joined #mojo
22:18 dvinciguerra_ joined #mojo
23:04 roosterfeast joined #mojo
23:07 roosterfeast I'm trying to figure out how to do a bunch of parallel requests before the start of request dispatch (for authorisation) and I don't quite understand the request cycle, what should I be reading for that?
23:09 roosterfeast Mojolicious::Plugin::Authorization looks like it would be willing to block waiting for the return of my callbacks :S
23:16 roosterfeast (Even if I disappear I'll be checking the logs tomorrow - web irc being what it is and all)

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