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

IRC log for #mojo, 2016-10-30

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

All times shown according to UTC.

Time Nick Message
00:16 kaare joined #mojo
00:29 bpmedley suede : What are you talking about?  What's OVH and TOTP?
00:29 suede OVH is a host
00:29 suede TOTP is time based two factor authentication
00:30 suede which, in an ideal world, would have proved that i am who i say i am
00:30 suede but it does not
00:31 bpmedley Interesting, so you couldn't login to your hosting provider or somesuch?
00:31 suede no, i logged in, and tried to spin up a server, and they are asking me to verify my identity because i'm out of the country
00:31 suede and they are asking me for a proof-of-address thing like an internet bill or phone bill or something from where i used to live
00:32 bpmedley I see.  Gaw, some providers are overly cautious.
00:32 suede but i'm not currently living there since it's my parents house and don't have any active services from this month because i cancelled them
00:32 suede well
00:32 suede it's better than being under-cautious like digital ocean
00:32 suede i'm pretty sure they have people using stolen credit cards on them all the time
00:46 lluad joined #mojo
00:56 irqq_ joined #mojo
00:56 disputin joined #mojo
01:09 aborazmeh joined #mojo
01:16 lluad joined #mojo
01:29 aborazmeh joined #mojo
01:34 aborazmeh joined #mojo
01:41 lluad joined #mojo
02:02 disputin joined #mojo
02:12 disputin joined #mojo
02:16 disputin joined #mojo
03:02 noganex_ joined #mojo
05:57 polettix joined #mojo
07:08 Vandal joined #mojo
07:29 polettix joined #mojo
08:31 rshadow joined #mojo
09:23 zivester joined #mojo
09:53 dod joined #mojo
10:10 rshadow joined #mojo
11:39 dotan_convos joined #mojo
11:42 rshadow joined #mojo
11:47 dotan_convos joined #mojo
11:58 user_4828 joined #mojo
11:59 user_4828 curl -X GET 'http://user:pass@host.com:3000/ident.json' -d 'firstname=Michael'
11:59 user_4828 doesnt work
11:59 purl please add an apostrophe, user_4828, and see: doesn't work
12:00 user_4828 http://user:pass@host.com:3000/ident.json?firstname=michael
12:00 user_4828 works
12:00 user_4828 so what's the problem with the cURL request?
12:02 user_4828 {"Errors":[{"Error":"Paramter 'firstname' is missing or empty.","
12:02 user_4828 for cURL request
12:02 user_4828 opening it in browser all is fine
12:03 polettix joined #mojo
12:06 mishanti1 user_4828: I thought -d as argument to curl was only taken into consideration when you were doing a POST.
12:07 mishanti1 user_4828: Have you dumped the request data coming in to you application to see what is sent and received?
12:07 user_4828 yes, i used requestbin
12:07 user_4828 to dump the request
12:07 user_4828 it's GET and the parameters are fine
12:08 user_4828 but mojo doesn't accept it somehow
12:12 user_4828 writing it like this work: curl -X GET "host?firstname=blabla" once -d is used request will fail
12:12 user_4828 perhaps its incompatible
12:13 mishanti1 user_4828: And how does the incoming request look when your app recieves it called with curl .. -d? You can use pastebin or something to share the dump.
12:15 user_4828 -d, --data DATA     HTTP POST data (H)
12:16 user_4828 it looks fine on RequestBin.io, but I just saw the parameters are treated as POST while the request is GET (/???)
12:16 user_4828 weird
12:16 mishanti1 user_4828: Yeah, it was my impression that -d is used for POST only.
12:18 mishanti1 So your app is probably just fine. :)
12:19 user_4828 Look what i found
12:20 user_4828 -G, --get           Send the -d data with a HTTP GET (H)
12:20 user_4828 now it works
12:21 user_4828 curl -G 'http://user:pass@host.com:3000/ident.json' -d 'firstname=Michael'
12:21 mishanti1 Glad to hear.
12:24 polettix joined #mojo
12:38 user_4828 GET is unreliable somehow. It needs --data-urlencode one each parameter if special characters or # is included
12:39 user_4828 I rather use post+json
12:43 aborazmeh joined #mojo
12:56 parv joined #mojo
13:09 rshadow joined #mojo
13:38 suede i'm making an html5 game with phaser and mojolicious :>
13:55 dod joined #mojo
14:09 parv suede, let's know when we could test it.
14:10 suede haha, sure
14:11 suede i'm not going to be using mojolicious websockets though
14:11 suede i have a websocket library that i've written myself for this kind of thing already
14:11 suede in Python
14:13 parv how would you call python code, via FFI (https://metacpan.org/pod/FFI)?
14:14 suede parv: just a separate process
14:14 suede for the server
14:14 suede https://github.com/systocrat/orbit
14:14 parv ok
14:15 suede i'll just make an nginx configuration that passes through everything not websockets to the mojolicious app
14:15 suede so like
14:15 suede location /ws/ { proxy_pass whatever
14:41 lluad joined #mojo
14:41 zivester joined #mojo
15:14 lluad joined #mojo
15:42 kaare joined #mojo
15:47 sri ouch, the new macbook pro keys have the exact same travel as the 12" macbook keys, apple just made them click when pressed -.-
15:47 sri 0.5mm
15:48 sri (finally some detailed reviews are out)
15:56 sri guess you can go too far with event loop abstraction pretty easily http://lucumr.pocoo.org/2016/10/30/i-dont-understand-asyncio/
15:59 jberger when guido first gave the talk about "yield from" (was the talk called "tulip") I was actively working in python at $work and async as mojo core and it still took a LOT of thinking about things before it made any sense
16:00 bpmedley sri : I have no idea what I will buy for my next computer.  I can't type on the new hardware for the OS that I want, and I'm not sure how spoiled I am for a System76 laptop.  I hope we have a resurgence of OS/2 and BeOS.. ;)
16:01 suede aww no
16:02 suede my websocket library doesn't work on the latest version of Twisted
16:02 suede i think it has to do with http/2 changes to twisted.web
16:02 suede i can't hijack the transport from the request anymore
16:02 suede :|
16:05 bpmedley suede : Perhaps an ideal time for a Mojolicious websocket port?
16:05 suede nooooooooo
16:05 purl ┻━┻︵ (°□°)/ ︵ ┻━┻
16:06 suede i'm just going to ask glyph or hawkowl to take a look at it for me
16:06 bpmedley that's a bummer, hope you get things working
16:06 suede thanks
16:08 suede i'm dead set on using my own websocket library because the way protocols are abstracted, you can have N websocket connections associated with a transaction, and the transaction doesn't end you kill it. the reason why that is important is because you can create transactions associated with a specific ID (maybe a user ID, a session ID, whatever) and whenever a user comes back and you associate that websocket transaction with their connection again, you
16:08 suede can relay any previously interrupted long-running tasks to them
16:09 suede end until*
16:09 suede also, i already have a game engine type of thing built on it from previous projects
16:18 stryx` joined #mojo
16:51 jberger_ joined #mojo
16:52 lluad joined #mojo
17:19 jberger_ joined #mojo
17:19 jberger_ o/
17:44 suede hi jberger_
17:50 lluad joined #mojo
17:50 dod joined #mojo
17:55 dod joined #mojo
18:05 lluad joined #mojo
18:11 trwww joined #mojo
18:25 jberger ok, switching over to new convos
18:27 PryMar56 joined #mojo
18:33 jberger_ joined #mojo
18:50 lluad joined #mojo
18:50 sri it's so sad linux desktops are not ready
18:51 sri this could have been the moment for linux to take over the desktop for developers
18:51 sri https://www.tbray.org/ongoing/When/201x/2016/10/29/Post-Mac
18:51 sri everybody is desperate for alternatives
18:54 irqq joined #mojo
19:00 jberger sri: I mean, it's close
19:00 jberger and in some sense, it might actually be, just hosted by a Windows environment
19:00 bpmedley I'm looking forward for when Microsoft releases a Linux distribution.
19:01 jberger bpmedley: that will be interesting
19:02 sri you two are really not paying attention are you? ;p
19:02 bpmedley Just a wild guess at this point, I haven't read or seen anything..
19:02 jberger heh
19:02 sri they already have for azure stuff
19:02 jberger oh true
19:02 jberger so why did they pair with ubuntu for the initial WSL?
19:03 jberger also, convos without avatars is so odd
19:03 sri they also paired up with canonical for their linux
19:03 jberger ah
19:04 sri honestly wouldn't be surprised if canonical got bought by microsoft
19:04 jberger :o
19:04 bpmedley I see.  While I did forget about that, I'm hoping for a desktop focused linux distro from them.
19:04 sri they are pretty close
19:04 jberger finally windows would come with drivers that work (bah-dum chee)
19:27 lluad joined #mojo
19:37 sri i'm at the point where i'm ready jump on the windows 10 bandwagon
19:38 sri microsoft just needs to clean up LSW a bit and there needs to a pretty and powerful terminal app
19:40 sri *+be
19:42 bpmedley Isn't that a strange and wonderful concept.  Windows 10 + LSW as competition for the Linux desktop?  That's probably a more viable future than a Linux distro from Microsoft.  And, if that happens, y'all click keyboard enthusiasts would have boundless options..
19:45 sri wtf
19:45 sri the new macbooks actually boot automatically when you open the lid Oo
19:46 suede sri: wtf
19:46 suede that's so awful
19:53 sri guess i can see a surface book on my horizon
19:54 sri bizarro world
19:55 bpmedley Did you see that Ubuntu 16.04 is available for Windows Insiders (I think that's the group)?
19:55 sri what about it?
19:56 bpmedley They're making good progress.  Hopefully will be out of Beta soon.
20:38 stryx` joined #mojo
20:51 suede wow
20:51 suede hypnotoad is so nice
20:51 suede and i can just configure it rom within the mojolicious config
20:52 suede from*
21:19 sri interesting veertu is now open source https://veertu.com
21:20 suede :(((((
21:20 suede my macbook is from 2009
21:20 sri wonder how performance compares to vmware
22:18 stryx` joined #mojo
22:19 kaare_ joined #mojo
22:54 blonewolfs joined #mojo
22:57 blonewolfs does anybody know if it is possible to give the helper function a reference to a function rather than an inline anonymous function?
23:00 mishanti1 blonewolfs: something along the lines `->helpers(foo => \&_foo);` should work.
23:00 mishanti1 Untested and probably invalid syntax. But you'll figure it out. :)
23:01 pink_mist sure, a reference to a named sub should work the same (barring closures) as an anonymous sub ref
23:01 pink_mist and yeah, you get one by doing \&subname
23:03 blonewolfs okay, great,  thanks.
23:17 stryx` joined #mojo
23:23 lluad joined #mojo

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