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

IRC log for #mojo, 2016-10-27

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

All times shown according to UTC.

Time Nick Message
00:03 disputin joined #mojo
00:26 lluad joined #mojo
00:54 irqq_ joined #mojo
00:59 aborazmeh joined #mojo
01:28 lluad joined #mojo
02:08 aborazmeh joined #mojo
02:35 mcsnolte joined #mojo
02:48 noganex_ joined #mojo
03:11 lluad joined #mojo
04:27 polettix joined #mojo
04:39 parv joined #mojo
04:45 xinming_1 joined #mojo
04:48 kryp joined #mojo
05:23 Vandal joined #mojo
05:57 inokenty-w joined #mojo
06:32 dod joined #mojo
06:37 dod joined #mojo
06:59 dod joined #mojo
07:07 mbudde joined #mojo
07:25 AndrewIsh joined #mojo
07:38 osfabibisi joined #mojo
07:52 salva joined #mojo
07:55 gregf_ joined #mojo
08:00 schelcj joined #mojo
08:00 rshadow joined #mojo
08:04 aborazmeh joined #mojo
08:23 polettix joined #mojo
08:30 salva joined #mojo
08:50 rshadow joined #mojo
09:05 trone joined #mojo
09:22 rshadow joined #mojo
09:25 irqq joined #mojo
10:12 bpmedley joined #mojo
11:01 kaare joined #mojo
11:04 salva joined #mojo
11:16 itaipu joined #mojo
11:30 blonewolfs joined #mojo
13:00 Janos joined #mojo
13:04 gizmomathboy joined #mojo
13:07 dod joined #mojo
13:13 ramortegui joined #mojo
13:33 rshadow joined #mojo
14:00 lluad joined #mojo
14:11 ivi_ joined #mojo
14:12 polettix joined #mojo
14:12 mcsnolte joined #mojo
14:16 tchaves joined #mojo
14:25 sivoais joined #mojo
14:26 Pyritic joined #mojo
14:42 lluad joined #mojo
14:49 bwf joined #mojo
14:51 rshadow joined #mojo
14:51 PryMar56 joined #mojo
14:55 lluad joined #mojo
14:56 Janos joined #mojo
14:57 FatalNIX joined #mojo
15:22 disputin joined #mojo
15:52 hrupp joined #mojo
15:53 disputin joined #mojo
15:53 lluad joined #mojo
15:53 dave joined #mojo
15:54 sri today is the day i regretted telling my boss at suse to sign me up for all possible trainings while i'm at suse hq :S
15:54 dave wont you be bored?
15:54 sri this presentation training is brutal
15:55 sri they make you watch videos of yourself presenting in the group an everyone gets to judge
15:55 dave kind of like toastmasters
15:55 dave that's good stuff, if brutal ... will help you give talks better
15:56 suede sri: do you think you'll be voted off the island?
15:56 dave lol
15:56 sri lol
15:56 dave Use of uninitialized value in delete at /usr/local/lib/perl5/site_perl/Mojo/Reactor/Poll.pm line 91.
15:56 dave is that something simple?
15:58 suede does the taghelpers plugin allow me to add extra attributes to a stylesheet call?
15:58 dave not sure I want to file an issue yet because I have too much code going on
15:58 suede say i'm trying to support IE or something and i need to add type="text/css"
16:03 VVelox joined #mojo
16:14 PryMar56 joined #mojo
16:31 dod joined #mojo
16:31 Janos joined #mojo
16:42 vicash suede yes
16:43 suede vicash: i tested doing , type => 'text/css' and it worked
16:43 suede thank you :>
16:46 Pyritic joined #mojo
16:55 sri lets see what the mac event brings
16:57 sri curious how they'll spin the removal of the escape key
17:11 marty courage!
17:11 purl courage is probably a man with diarrhea risking a fart.
17:12 Grinnz rofl
17:13 kaare_ joined #mojo
17:16 kaare joined #mojo
17:18 sri hahahaha, apple just invented the "TV"
17:21 tchaves joined #mojo
17:25 marty A demonstration of live tv with prerecorded content.   somehow, I find that ironic
17:25 Janos joined #mojo
17:30 marty ohh begeeezussss!  Loosen up Cook!
17:31 karjala hehe
17:54 karjala only usb-c ports
17:58 suede courage the cowardly fortune 100 company
17:58 perlpilot joined #mojo
17:59 Pyritic joined #mojo
18:02 juikuen joined #mojo
18:05 Janos_ joined #mojo
18:10 marty I want 11 touch inputs!
18:12 suede Hey guys, does anyone know how I can handle PostgreSQL having too many connections open with Mojo::Pg while doing asynchronous queries?
18:13 Grinnz only one query can be run at a time per connection, so async queries require a new connection
18:13 Grinnz that's a limitation of DBD::Pg
18:13 Grinnz and possibly the pg protocol
18:13 suede Well technically PostgreSQL too
18:13 suede one query per connection processed at a time
18:15 suede I'm just wondering how I should be dealing with that. I have a PostgreSQL ORM written in Python with Twisted, and it used a DeferredLock (for one connection) or a DeferredSemaphore (for multiple connections) in order to handle that
18:15 suede Basically ensures only X amount of queries are running at once
18:15 suede through X processes
18:19 sri oooh, a third macbook pro with escape key :o
18:19 suede sri at checkout "i want the escape key" +$500
18:19 sri guess it will only use 15w tdp cpu though
18:23 marty damn, no 27" 5k display
18:28 karjala you'll have an touchbar Esc key
18:29 karjala is that not good enough?
18:29 sri no feedback
18:29 sri i can see the touchbar being nice for sliders, but i wouldn't want to use it for keys
18:30 jberger karjala: for vim programmers, not having esc as an actual key is pretty horrific
18:30 jberger not sure if you use vim or not
18:30 karjala I do
18:30 preaction apparently if you want an escape key, it's -$300 to the price
18:30 jberger :o
18:30 suede preaction I PREDICTED IT
18:30 sri but it looks like the -$300 will also mean a weak cpu
18:31 jberger suede: almost
18:31 suede oh i predicted it backwards
18:32 sri but the butterfly keys should actually be the worst part of it
18:32 sri they are just not made for pro users, no matter how much they refined them
18:32 preaction yeah. getting stuff stuck under the keys is kind of terrible. i've got that 12" macbook
18:33 sri love my 2015 13" rMBP, just with i had ordered it with 16gb ram
18:34 sri s/with/wish/
18:39 rshadow joined #mojo
18:40 sri touchbar will also be nice for people like marcus, that install linux on macbooks ;p
18:41 preaction as long as it can play video, i'm fine with it
18:43 genio mark me down in the "meh" column
18:45 jberger purl: genio is also meh
18:45 purl okay, jberger.
18:45 jberger done
18:50 zivester joined #mojo
18:51 tyldis Lenovo had something like the touchbar and it sucked.
18:52 tyldis Used to replace the F-keys with random contextual keys based on apps
18:53 tyldis You would have to dedicate a really big chunk of time to fet it working in any meaningful way
18:55 pink_mist well, if lenovo were the main suppliers of the OS and apps used on the computer, it would likely work better
18:55 pink_mist like apple is
18:55 lluad Support at the OS level and dedicated support built in to apps vs a dodgy lenovo plugin ...
18:55 stryx` joined #mojo
19:28 kryp joined #mojo
19:29 irqq joined #mojo
19:33 arcanez purl: me?
19:33 purl you are probably wishing the bot was omniscient rather than actually fixing the bloody factoids or wishing he was still a pineapple or also the ctcp burglar or a mega blog slacker or a forgetster or packing jhannah's donkey or an evildoer or learning mysql or quick with the mouse or old or a contributor to DBIC or here from the past to give you good perl advice or Mr. Non-Sequitur
19:33 suede purl: do you enjoy cheese?
19:33 purl suede: bugger all, i dunno
19:33 arcanez oh come on, everyone enjoys cheese. even lactose intolerant folk like myself.
19:34 suede arcanez: i have a friend who gets very sick when he eats cheese
19:34 suede because of lactose intolerance
19:34 suede :<
19:34 arcanez mine isn't that severe. and has gotten 'better' with age
19:49 karjala milking animals harms them, and the environment, so in a way being lactose intolerant is the better, more ethical option.
19:50 karjala "the future of mankind"
19:51 suede cows like
19:51 suede need to be milked though
19:51 suede don't they?
19:51 suede or they get sick
19:51 suede and have health problems
19:51 karjala not sure. we could have fewer cows then.
19:52 stephan48 yes but usually the industry uses means which makes the problem way worse. i think cows usually only give milk around the birth of a calb. humans abused that and prolonged these times so they can maximise the output
19:52 jberger IIUC cattle was domesticated much later than other animals and as such humans haven't evolved the production of lactase (to process the unique sugar lactose in cow milk) as well as other enzymes
19:52 rshadow joined #mojo
19:52 stephan48 not exactly sure either, also lactose tollerance is the mutation
19:53 * pink_mist is very lactose tolerant =)
19:53 stephan48 which came after milk was getting more available as one of the basic food sources
20:07 rshadow1 joined #mojo
20:17 suede is there a way to explicitly handle http error codes in mojolicious?
20:17 suede in Flask you have @app.error_handler(404) and so on
20:17 suede i'm reading the docs and can't find anything in mojolicios
20:17 suede mojolicious*
20:29 itaipu joined #mojo
20:30 jberger suede: http://mojolicious.org/perldoc/Mojolicious/Guides/Rendering#Rendering-exception-and-not_found-pages
20:31 suede jberger: that's not *exactly* what i mean
20:31 suede in Flask, if an HTTP error happens in the application, you can handle it by creating a method to explicitly deal with it when it happens
20:32 suede i don't think mojolicious has that
20:32 jberger how does an HTTP error happen in the application?
20:32 suede a route can return an http response with an error code
20:32 suede actually now that i think of it
20:32 suede that's a pretty weird design for flask to have
20:32 jberger you can generate a 404 with a body
20:33 jberger $c->render(json => {error => 'not found'}, status => 404);
20:35 suede jberger: the error handlers in flask are more of a catch-all for any route that returns an error code (you can do it on any status code if you want but why would you?)
20:36 jberger there are times when I wish the application level error handler in mojo was a little more hackable, but I certainly wouldn't make that design decision :-P
20:36 sri be my guest
20:36 sri just keep in mind we do async
20:37 jberger it usually comes back to making https://github.com/kraih/mojo/blob/master/lib/Mojolicious.pm#L190 something more pluggable than reply->exception
20:37 jberger but then I remember that you can just overload reply->exception
20:38 jberger and just do that
20:38 jberger ie, there is already an error handler hook, it just is named 'reply.exception'
21:14 trwww joined #mojo
22:08 rshadow joined #mojo
22:17 itaipu joined #mojo
23:05 stryx` joined #mojo
23:35 salva joined #mojo

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