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

IRC log for #mojo, 2016-06-15

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

All times shown according to UTC.

Time Nick Message
00:03 sri looks like some folks have already found references to an oled touch bar api in the macos sierra beta
00:05 janus joined #mojo
00:10 punter joined #mojo
00:47 disputin joined #mojo
02:28 noganex joined #mojo
02:40 inokenty joined #mojo
02:52 tempire joined #mojo
02:53 kaare joined #mojo
02:57 jberger tempire: are you at WWDC this year?
02:57 tempire No, I didn't get in
02:57 jberger awwww
02:58 tempire It's fine. There's no pressing reason for me to be there.
02:58 jberger and seemingly no huge announcements
02:58 tempire There are.
02:58 jberger oh! new Zelda next year
02:58 jberger <3
02:58 tempire But the keynote is for reporters
02:58 tempire Not developers
02:59 jberger so there's news on the developer front?
02:59 tempire In the afternoon on the same day is the Platform State of the Union
02:59 tempire That's the talk that matters.
03:00 tempire No surprises, though. It's pretty easy to predict what's coming.
03:07 tempire biggest thing is probably dev access to siri
03:07 tempire That's a game changer
03:07 jberger oh that is interesting
03:08 tempire And the message platform is a big deal.
03:08 tempire Cloudkit detailed permissions. That will eliminate the need for external APIs
03:08 tempire That's huge for me
03:09 tempire WatchOS updates means 3rd party developers have a chance
03:10 tempire Some other things that we won't know until later on in the week, but the talk titles indicate as such
03:10 jberger not sure I know what any of that means
03:10 jberger message platform?
03:11 tempire all the time spent on messages in the keynote
03:12 tempire marketing stuff. But what it really means is that devs have access to create functionality within it.
03:12 tempire Kind of like facebook is doing with their messenger platform
03:12 jberger sounds like I have some reading to do
03:12 jberger :P
03:41 preaction i just got one of the new MacBooks, and i'm impressed. it's so tiny!
03:45 stigo like it? :)
03:54 preaction yeah. the keyboard took almost 0 time to get used to. the force-touch pad though i ended up disabling (it's got a lot of interesting settings). somehow Galaxy Wars 3 is smoother on this than on the 2012 MBP Retina i have...
03:55 preaction but it weighs less than my iPad + keyboard thing i've got... computers should not be this tiny
04:49 che-quest joined #mojo
05:14 Adurah joined #mojo
05:35 ashimema joined #mojo
05:56 inokenty-w joined #mojo
06:16 dod joined #mojo
06:20 dod joined #mojo
06:35 ivi joined #mojo
07:13 good_news_everyon joined #mojo
07:13 good_news_everyon [mojo] marcusramberg pushed 1 new commit to master: https://git.io/vo41e
07:13 good_news_everyon mojo/master 3394000 Marcus Ramberg: Fix test description
07:13 good_news_everyon left #mojo
07:18 Adurah joined #mojo
07:20 mpa joined #mojo
07:21 trone joined #mojo
07:25 Guest-questX joined #mojo
08:11 Jonis whats the URL to the mojo book someone in here was writing?
08:11 Jonis ah, found it
08:12 che-quest hi, how to $c->redirect_to('foo route') with additional query params?
08:16 che-quest oh,  $c->redirect_to($c->url_for('foo route')->query(foo=>56))
08:17 nic che-quest: look at url_with
08:26 icjs joined #mojo
09:21 cpan_mojo Mojolicious-Plugin-RoutesAuthDBI-0.705 by MCHE https://metacpan.org/release/MCHE/Mojolicious-Plugin-RoutesAuthDBI-0.705
09:21 Bender HATPIPE!
10:03 meshl joined #mojo
10:13 mishantil joined #mojo
10:18 mishanti1 joined #mojo
10:39 Kripton joined #mojo
10:56 dvinciguerra_ joined #mojo
10:59 tchaves joined #mojo
11:09 dp_ joined #mojo
11:11 sri preaction: yea, the weight and size are a bit of a game changer, you just want to take it everywhere with you
11:19 tchaves joined #mojo
11:28 meshl joined #mojo
11:44 blonewolfs joined #mojo
11:50 blonewolfs where are mojolicious apps generally installed for a production environment?  for example, /var/www/<app>, /home/mojo/<app>, etc.
11:51 sri there is no mojolicious specific place
11:52 blonewolfs okay, thanks.
11:54 sri now i'm really curious where apple will move the escape key on the new macbook pro http://www.macg.co/os-x/2016/06/macos-sierra-donne-des-indices-sur-les-macbook-pro-ruban-led-94544
11:55 sri that list of constants pretty much confirms most rumors
11:56 sri kHIDUsage_LED_PaperJam is funny
12:11 jabberwok PC LOAD LETTER
12:21 Jonis wait, they keep caps lock and remove escape?
12:33 neilhwatson joined #mojo
13:00 zivester joined #mojo
13:07 ramortegui joined #mojo
13:10 gizmomathboy joined #mojo
13:19 vytas joined #mojo
13:23 kes joined #mojo
13:30 che-quest joined #mojo
13:34 Vandal joined #mojo
13:39 bd_ Jonis: IT'S LIKE IMPORTANT!
13:46 Jonis bd_: hehe ;)
13:58 jberger You want to give Microsoft a chance to win back the developer market? Remove the escape key after they announce windows subsystem for Linux
14:15 Bean joined #mojo
14:27 Vandal what?
14:27 Vandal why?
14:42 Adrien joined #mojo
14:48 Adrien Hi everyone. I found this plugin: http://search.cpan.org/~shaw/Mojolicious-Plugin-DigestAuth-0.03/README.pod . But I have this error 'Can't locate object method "plugin" via package "Mojolicious::Controller"' when I write '$self->plugin('digest_auth');
14:50 Grinnz you apply it to the app in startup, not in a controller
14:52 Adrien in the BEGIN?
14:52 pink_mist no in the startup sub
14:53 pink_mist or if you're using Mojolicious::Lite, you just run the 'plugin' sub directly, not on any object
14:54 asarch joined #mojo
14:57 Adrien ok thanks! But then I should be able to call digest_auth in a controller no?
15:10 zivester joined #mojo
15:22 * sri wonders what's happening with the bitcoin price
15:23 sri up to almost $700 now
15:26 sri hmm, chinese are investing big?
15:31 lluad joined #mojo
15:31 Zen sri: yes
15:32 Zen maybe it has to do something with the halving
15:34 genio That's a thing I still don't understand. :/
15:35 Bean pretty good explanation http://www.coindesk.com/making-sense-bitcoins-halving/
15:35 mpapec http://www.zerohedge.com/news/2016-06-13/bitcoin-soars-above-700-chinese-buying-shows-no-signs-slowing
15:36 genio The halving thing I understand.  The concept of bitcoins is the thing I still don't quite get.
15:36 sri ah, chinese invest in bitcoin to avoid government controls
15:36 sri this is actually quite interesting
15:37 mpapec so it seems
15:37 sri sometimes i regret never getting into bitcoin, but then again i would prolly have lost everything with the crash of mtgox anyway :D
15:38 Vandal joined #mojo
15:39 mpapec mtgox has wrong concept from the beginning
15:39 mpapec had
15:40 mpapec as you have no control over your own bc wallet
15:40 Bean to be fair, bitcoin didn't really look  like a sound investment back in 2010-12
15:41 Bean to me at least
15:41 Zen I wish I mined at the start, a friend of mine did and sold his btc at the peak
15:41 Zen made some gooood money
15:42 mpapec at $1100?
15:43 Grinnz_ I made probably like $300, which is what i spent on GPUs, so.... it was pretty much a wash :P
15:44 Zen mpapec: yeah 1100 USD iirc
15:46 mpapec Zen: nice :)
15:47 mpapec here are some long term prospects for BT
15:47 mpapec https://medium.com/@octskyward/the-resolution-of-the-bitcoin-experiment-dabb30201f7#.am7r6657v
15:49 sri wow, so in 2013 it went from $13 in january to $1100 in december, that must have been an interesting year
15:51 Grinnz_ hah, yep
15:53 sri haha, i was looking at the coinbase chart for maybe 10 minutes, and during that time the price went up by $6 https://www.coinbase.com/charts
16:01 Adurah You've taken a look at a somewhat bullish run.
16:02 Adurah https://bitcoinwisdom.com/markets/bitstamp/btcusd Catching up to China.
16:03 PopeFelix joined #mojo
16:05 Adurah Hit the 6h periods and you can see the run.
16:09 jacoby joined #mojo
16:16 cfedde In a Mojo::Transaction I'm getting {res}{error} = "IO::Socket::SSL 1.94+ required for TLS support" yet I have 2.027 installed.  What am I doing wrong?
16:17 cfedde {res}{content}{error} even
16:17 cfedde wait.. Right the first time.. I can't read my debugger output.
16:17 tim joined #mojo
16:20 tim can someone give me a hint how to write tests for this proposal https://gist.github.com/tim-2/27baa4055c725e3bce57eb0ad589e609 in https://github.com/kraih/mojo/blob/master/t/mojo/user_agent_socks.t#L47 ?
16:34 nicomen tim: you could start by looking at the existing socks tests? t/mojo/user_agent_socks.t
16:39 tim could this be sufficient? https://gist.github.com/tim-2/91ebd04cadefa09967e2c9647b51a96b
16:40 jberger cfedde: I'm guessing you are using the wrong perlbrew/local::lib/library path/etc
16:41 sri tim: no, and don't focus on socks4, you've also added socks5:// which now needs to be tested too
16:42 sri in fact, i see a lot of edge cases that need new tests
16:42 sri also in t/mojo/transactor.t
16:43 sri the regex seems very sketchy, dirtysocks45:// is valid with that code
16:45 tim right, ^ and $ are missing. would be nice to have socks4 and socks5 support.
16:46 sri what is socks4 used for?
16:47 sri honestly, it seems like a pretty shitty protocol
16:47 tim some (old) proxy servers do not support socks5
16:47 jberger which version of socks is currently supported?
16:47 jberger 5?
16:47 tim IO::Socket::Socks uses v5 by default
16:47 sri yea, i added socks5 for Tor
16:48 sri didn't care for socks4 (shitty protocol)
16:48 jberger tim: if the idea is to support an older protocol, we have a history of not doing so, for example HTML4 is mostly unsupported by Mojo::DOM and HTTP 1.0 isn't a priority either (IIRC)
16:49 jberger we support just enough HTML4 to not horribly break when people do a few HTML4isms in HTML5
16:49 jberger but not much more
16:50 sri jberger: that sounds wrong
16:50 sri jberger: when did we ever omit parts of the html5 spec because it was for html4 backcompat?
16:50 jberger I could be wrong, /me digs
16:50 jberger I don't think we ever omitted any of the html5 spec
16:50 sri you don't mix html4 and html5 parsers
16:51 jberger it was allowing for some lax parsing of something tiny, let me see if I can find it
16:51 jberger I think it was this that I remember: https://github.com/kraih/mojo/blob/master/Changes#L1975
16:51 * jberger tries to find
16:52 jberger anyway, that just goes to prove my point, we don't put much care into supporting older protocols
16:52 jberger s/care/effort/
16:53 sri did we ever have an html4 parser?
16:53 good_news_everyon joined #mojo
16:53 good_news_everyon [mojo] jberger created v3.45 from master (+0 new commits): https://git.io/voBAp
16:53 good_news_everyon left #mojo
16:53 sri ?
16:54 tim unfortunately there is no possibility to add custom params to https://github.com/kraih/mojo/blob/master/lib/Mojo/IOLoop/Client.pm#L149 (so I can do SocksVersion => 4 and everything works :))
16:55 sri tim: i'm not saying no to the feature
16:55 good_news_everyon joined #mojo
16:55 good_news_everyon [mojo] jberger deleted v3.45 at 3394000: https://git.io/voBxB
16:55 good_news_everyon left #mojo
16:55 jberger that was wierd, github created a branch from my attempt to see tag v3.45
16:55 sri if it gets votes i'd merge it
16:55 dod joined #mojo
16:56 sri (if tests are fine and the code has been cleaned up)
16:57 tim ok, I will try my best to write some tests
17:00 jberger fyi, this is the commit I was remembering, and I have no idea how I remember this long ago: https://github.com/kraih/mojo/commit/1c5106aa71b75f91352062b239c507dd4018c877
17:12 sri anyway, are there actual reasons to use socks4 over socks5?
17:13 sri socks4 doesn't even do ipv6
17:13 sri or handle the dns lookup
17:14 sri really shitty
17:17 tim the only reason is when you rely on an old proxy server without v5 support
17:19 sri oh, that does seem a little weak
17:20 sri for the amount of testing required
17:28 PryMar56 joined #mojo
17:33 disputin joined #mojo
17:34 tempire joined #mojo
17:35 sri tim: i might end up voting no, if the cost is too high
17:35 sri (just saying so you're not too disappointed later)
17:37 tim sri: ok, no problem
17:47 disputin joined #mojo
17:51 mpa left #mojo
18:42 user_4378 joined #mojo
18:47 itaipu joined #mojo
18:48 user_4378 http://mojolicious.org/perldoc/Mojo/URL#password
18:48 user_4378 Question about this: it's part of the userinfo, right?
18:48 user_4378 $c->req->url->to_abs->userinfo->password
18:48 user_4378 Is not going to work?
18:52 pink_mist $c->req->url->to_abs->password is how you access it
18:56 user_4378 $self->app->log->debug("$self->req->url->to_abs->password");
18:56 user_4378 http://blab:blablal@127.0.0.1:3000/
18:56 user_4378 OK Mojolicious::Controller=HASH(0x51d6590)->req->url->to_abs->password
18:56 user_4378 It prints this
18:57 user_4378 Shouldn't it print just the password as plain?
18:57 Grinnz you can't interpolate method calls directly
18:58 Grinnz i.e. "$c->req->url->blah" will just print $c then ->req->url->blah
18:58 Grinnz either assign it to another variable to interpolate in the string, or use the "@{[$c->req->url->blah]}" trick
18:59 user_4378 I forgot about it.
18:59 user_4378 I store in a scalar, then print it.
18:59 user_4378 Now it works.
18:59 Grinnz in your above case there's no need for the quotes at all, since there's nothing else in the string
19:00 pink_mist yeah, just remove the ""
19:00 user_4378 I know! But I printed time as well
19:00 user_4378 i just didn't paste it here :)
19:03 user_4378 Great community here
19:03 user_4378 always fast answers to problems
19:04 sri pay it forward
19:11 mishanti1 user_4378: The mojo-crowd is a very friendly bunch indeed. :)
19:11 stephan48 user_4378: time." ".$self->req->url->to_abs->password or sprintf("%d %s", time, $self->req->url->to_abs->password); would also work
19:12 stephan48 and maybe be easier to read than "@{[$c->req->url->blah]}" which is a interesting way to solve the problem throu
19:21 dod joined #mojo
19:30 sivoais joined #mojo
19:33 disputin joined #mojo
20:23 disputin joined #mojo
20:29 orev joined #mojo
20:37 dod joined #mojo
20:38 meshl joined #mojo
20:53 disputin joined #mojo
20:56 mcsnolte joined #mojo
21:32 marty_ joined #mojo
21:49 pink_mist joined #mojo
21:50 itaipu joined #mojo
21:52 disputin joined #mojo
22:11 pink_mist joined #mojo
22:35 Riviera joined #mojo
23:09 disputin joined #mojo
23:10 disputin joined #mojo
23:27 PryMar56 joined #mojo
23:29 disputin joined #mojo
23:38 sri joined #mojo
23:53 * tempire has left libnet and pcap in the dust
23:54 * tempire moves on to kernel extension

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