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

IRC log for #mojo, 2016-09-15

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

All times shown according to UTC.

Time Nick Message
00:01 disputin joined #mojo
00:03 sri oh cool, now there's more linux distributions for windows https://github.com/turbo/alwsl/tree/dev
00:04 sri guess everyone will join the party sooner or later
00:04 disputin joined #mojo
00:05 disputin joined #mojo
00:07 Grinnz neat, now if i just wanted to use windows 10 to begin with :D
00:10 sri i still like windows 10
00:25 Lee joined #mojo
00:26 zivester joined #mojo
00:35 disputin joined #mojo
01:02 Pierre joined #mojo
01:22 itaipu joined #mojo
01:41 genio they just did a forced update on me when I went to go get food.  win10--
01:42 jberger genio: it's for your own good, anyway I'm sure it was careful
01:46 genio my tabs that were open in Chrome better come back up!
01:46 genio well, CTRL+shift+T saves the day there, but 3 files I had partial updates in to fix some tests are now undone.
01:47 genio not too bad in the grand scheme, I uess
01:47 genio guess
01:53 Grinnz aaand that's why i don't want to use windows 10
02:23 noganex joined #mojo
02:25 Lee joined #mojo
02:39 itaipu joined #mojo
03:02 ningu joined #mojo
03:03 ningu why does Mojo::Parameters to_string not use the default url_escape list of unsafe characters?
03:03 ningu it uses '^A-Za-z0-9\-._~%!$&\'()*+,;=:@/?' instead of url_escape's default '^A-Za-z0-9\-._~'
03:07 ningu it seems that according to RFC 3986, the default list is more appropriate
03:08 ningu oh, hrm
03:16 Pierre joined #mojo
03:50 Pierre joined #mojo
04:15 Pierre joined #mojo
04:24 inokenty-w joined #mojo
04:26 Lee joined #mojo
04:49 Pierre joined #mojo
04:59 Pierre joined #mojo
05:08 Pierre joined #mojo
05:09 mib_ec9spy joined #mojo
05:25 dod joined #mojo
05:25 laidback_01 joined #mojo
05:26 Pierre joined #mojo
05:44 Pierre joined #mojo
05:47 Lee joined #mojo
05:54 dod joined #mojo
06:02 Pierre joined #mojo
06:10 alilles joined #mojo
06:15 ivi joined #mojo
06:19 Pierre joined #mojo
06:38 Pierre joined #mojo
06:39 mbudde joined #mojo
06:49 Vandal joined #mojo
07:13 AndrewIsh joined #mojo
07:24 Pierre joined #mojo
07:34 trone joined #mojo
07:42 Pierre joined #mojo
07:43 CW2 joined #mojo
07:57 che-quest joined #mojo
07:58 cuechan joined #mojo
08:03 osfabibisi joined #mojo
08:13 rshadow joined #mojo
08:15 rubin joined #mojo
09:04 ningu left #mojo
09:18 irqq joined #mojo
09:22 kes joined #mojo
09:42 sri genio: don't you have restarts scheduled for off hours?
09:43 sri have not had any trouble with forced updates yet
09:43 sri think i give it a restart window from 1am-6am or so
09:45 sri and it always asks if i'm currently using the laptop
09:45 sri so i usually end up manually telling it when to install the update
09:46 * sri is now running macOS, Windows and Linux on his macbook :)
09:47 sri before windows 10, the last windows i've actually used was windows 2000 i think
09:48 sri and i find windows 10 pretty comfortable
09:49 sri it's interesting to see how the different operating systems handle hidpi displays actually
09:51 sri honestly, i expected linux to do worse than it did
09:51 sri both kde and gnome are mostly usable with a scaling factor of 2
09:52 sri although gnome seems much better optimized
09:53 sri on windows i had to install without a scaling factor, that was rather annoying and i needed a magnifying glass to read instructions, but afterwards everything pretty much just worked
09:54 sri did i mention how much i love hidpi displays? :)
09:57 sri it's crazy how i've dismissed them for so long because i thought i wouldn't be able to get much use out of them with my bad eyesight
10:26 Pierre joined #mojo
10:57 Pierre joined #mojo
11:01 diegok sri: are you using refind for the triple boot?
11:02 pink_mist I thought he was using virtual machines
11:02 sri windows with bootcamp and linux in vmware
11:03 sri 3 finger swiping between a full screen linux and macos is pretty cool actually
11:12 Pierre joined #mojo
11:23 diegok sri: sure, it is. I'm using vbox but I was wondering on going "native" with linux as I am unable to have direct access to the sd-card reader from the VM on my current setup.
11:23 sri i tried vbox, but it's so much slower than vmware
11:25 diegok do you know if vmware solves the sd access issue?
11:26 sri don't think direct access works, you can only make it a shared folder
11:27 diegok right... I guess I need to collect lot more tuits and do a complete re-install adding refind to the mix :-/
11:29 diegok having access to a real win10 seems a nice thing too...
11:38 sri i can't believe just how bad the apps are that twitter makes themselves
11:39 sri you'd think they would have understood by now that people want to sync their timeline between devices
11:41 sri and their web app is like the worst, every time you reload the page it jumps to the top of your timeline and you have no clue where you left off last time
11:42 sri every other web service i use, i can just use the web app instead of a desktop client, just twitter requires a 3rd party client
11:52 Jonis tweetdeck is fairly decent
11:52 ptolemarch joined #mojo
11:52 Jonis tweetdeck.twitter.com
11:54 kaare_ joined #mojo
11:55 sri no android app anymore
11:55 sri and i think it also jumps to the top of the timeline when you reopen the site
11:56 sri yea, definitely jumps to the top
11:56 sri so no way to know where you left off with tweetdeck
11:59 Pierre joined #mojo
12:00 itaipu joined #mojo
12:01 dantti_laptop joined #mojo
12:12 anton joined #mojo
12:21 rubin1 joined #mojo
12:28 coolo joined #mojo
12:57 cuechan joined #mojo
12:57 zivester joined #mojo
13:03 gizmomathboy joined #mojo
13:03 ramortegui joined #mojo
13:08 rubin joined #mojo
13:11 jacoby joined #mojo
13:21 geira newsblur can handle twitter, not tried it but it's great for normal feeds:
13:21 geira http://blog.newsblur.com/post/145256277160/twitters-back-baby
13:24 sri looks like node.js will be getting native http/2 support soon
13:24 sri they will be bundling nghttp2
13:30 sri really too bad we couldn't get that sponsored, we are slowly falling behind
13:32 jberger :(
13:32 jberger in other news, almost up to issue/PR # 1000
13:34 kes joined #mojo
13:38 ashimema_ joined #mojo
13:50 gizmomathboy joined #mojo
13:59 ramortegui left #mojo
13:59 ramortegui joined #mojo
14:16 sri suppose this one can be closed now https://github.com/kraih/mojo/issues/988
14:23 jberger re twitter, yeah they are pretty bad
14:23 jberger their site is the only one I know for sure will make Chrome show up in "Apps using significant energy" in the mac dashboard
14:24 jberger I keep google inbox, office 365 webmail, convos (old version), and slack up all the time
14:24 jberger all of them update in real time
14:24 jberger twitter's page just might or might not tell me that I have new tweets or new notifications
14:34 arthas joined #mojo
14:36 gizmomathboy joined #mojo
14:48 lluad joined #mojo
15:11 mr_wibble joined #mojo
15:12 laidback_01 joined #mojo
15:32 zivester joined #mojo
15:42 png joined #mojo
15:45 png hi all... I'm having a weird error that I don't know how to diagnose.
15:46 png I'm using Mojo::SlackRTM and after some time the connection seems to die, even though I'm using an auto_reconnect option in the slack client. There is this error (repeated every second or so):
15:47 png Mojo::Reactor::Poll: Timer failed: Can't call method "write" on an undefined value at /opt/perl5/perls/perl-5.16.2/lib/site_perl/5.16.2/Mojo/UserAgent.pm line 328.
15:48 png I don't know which kind of problem on my side (firewalls? oldish kernel? old libs?) can be causing this, so I'm looking for some ideas on what to try next :-/
15:52 PryMar56 joined #mojo
15:53 mcsnolte joined #mojo
15:57 jberger sri: that error ^^ looks a lot like the UserAgent conjugate to the one I've seen too
15:58 jberger png: just for my own benefit, can you try rolling back your Mojolicious to 7.03 (I'm assuming you are at 7.04 or higher, but don't NEED 7.04 or higher)
15:58 png no, I don't *need* any particular version, only whichever Mojo::SlackRTM requires (if any)
15:59 png and yes, I'm at Mojo 7.05
16:01 png ok, will try on 7.03 and see what happens... be back in a few hours, bc I'm afraid I can't retry until tomorrow :(
16:04 jberger for the record, I suspect this change, though I can't pin down why: https://github.com/kraih/mojo/commit/0dd25840d43efef9e165bde13d1a6189b0bd2288#diff-3587917d9d4bc5d7a4a3be6a8fa21982L11
16:04 jberger and my version of this bug is too intermittent to get a good read on it
16:10 sri still need a minimal test case
16:20 jberger yeah
16:25 mpapec joined #mojo
16:33 disputin joined #mojo
16:52 disputin joined #mojo
17:02 disputin joined #mojo
18:07 khfeng joined #mojo
18:20 cuechan_ joined #mojo
18:29 laidback_01 joined #mojo
18:30 irqq joined #mojo
18:55 itaipu joined #mojo
19:03 sri well, that's disappointing
19:03 sri png could have tested the issue, but just left
19:04 sri guess it's not important, i won't put any more thought into it either
19:08 dave he said he'd be back in a few hours
19:41 disputin joined #mojo
21:43 jberger who wants a fun postgres trick of the day?
21:44 jberger say you have an array of foreign keys and you want to expand those into a json array of rows (as objects)
21:44 jberger but keep the order
21:46 jberger select json_agg(other.* order by array_position(this.fk_array, other.id)) from this
21:46 jberger order by array_postition is the thing I'm trying to highlight there
21:47 jberger oh, and I forgot the where clause
21:47 jberger but you know what I'm getting at
21:47 purl somebody said getting was one thing, but when setting, i want to avoid the type constraint checking
21:47 jberger purl that's a really dumb idea
21:47 purl jberger: what?
21:47 jberger you know
21:56 meshl joined #mojo
21:57 toddr joined #mojo
21:59 toddr I'd like to instantiate my Mojo app in a helper script and then call model methods to do maintenance
21:59 toddr Is there an easy way to do that?
21:59 Grinnz commands, usually
22:00 Grinnz https://metacpan.org/pod/Mojolicious::Guides::Cookbook#Adding-commands-to-Mojolicious
22:01 jberger I second Grinnz, commands are great
22:01 Grinnz i need to use them more, but keep forgetting to
22:01 jberger that said if you need to use them in a script that isn't condusive to being a command then do this:
22:02 toddr ok so I see how to create a command. What I don't see how how I get access to the model object from $self
22:02 Grinnz $self->app
22:02 jberger http://mojolicious.org/perldoc/Mojolicious/Guides/Cookbook#Application-embedding
22:02 Grinnz then you can use any of your helper methods and whatnot from there
22:02 jberger I love the command system, I use it all the time
22:04 toddr so I have to do $app->build_controller->db  to get to the model?
22:05 toddr OIC db is a helper in my app
22:06 toddr got it thanks
22:08 aaannz joined #mojo
22:14 aaannz joined #mojo
22:50 jberger Right
22:51 jberger And this is why helpers are highly recommended when possible
22:51 jberger Suddenly your code is even more reusable
22:51 jberger \o/
23:15 toddr left #mojo
23:22 PryMar56 joined #mojo

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