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

IRC log for #mojo, 2015-09-07

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

All times shown according to UTC.

Time Nick Message
00:01 iloveyou joined #mojo
00:24 absolut_todd joined #mojo
00:41 mattastrophe joined #mojo
01:32 DaTa joined #mojo
02:04 noganex joined #mojo
02:46 jberger joined #mojo
02:47 jberger my hello world for mojolicious is actually usually:
02:48 jberger any '/*any' => { any => ''} => sub { die };
02:48 jberger http://failraptor.jberger.pl # my new cool domain name
03:02 kaare joined #mojo
03:06 asarch joined #mojo
03:47 iloveyou joined #mojo
04:10 iloveyou joined #mojo
04:27 sri hmm, #839 looks sloppy
04:28 iloveyou joined #mojo
04:30 sri i don't know english well enough to judge the actual changes, but will give it a -1 for formatting flaws
04:38 inokenty-w joined #mojo
04:48 iloveyou joined #mojo
05:09 iloveyou joined #mojo
06:07 sri the http/2 world is odd
06:08 sri pretty much everything depends on a single C implementation now
06:16 sri this is going to turn into the next openssl
06:17 * sri wonders when nghttp2 will pop up on cpan
06:20 iloveyou joined #mojo
07:02 eseyman joined #mojo
07:07 AndrewIsh joined #mojo
07:11 salva joined #mojo
07:11 melo joined #mojo
07:18 kmx joined #mojo
07:18 trone joined #mojo
07:24 HtbaaPi joined #mojo
07:25 mattastrophe joined #mojo
07:38 melo joined #mojo
07:42 stephen joined #mojo
08:03 berov joined #mojo
08:04 Vandal joined #mojo
08:09 trone joined #mojo
08:14 iloveyou joined #mojo
08:21 mtths joined #mojo
08:27 asm35 joined #mojo
08:31 odc joined #mojo
08:45 akhasanov joined #mojo
08:48 KCL_ joined #mojo
08:51 berov joined #mojo
09:04 berov left #mojo
09:21 berov joined #mojo
09:24 KindOne joined #mojo
09:27 dod joined #mojo
09:35 asm35 joined #mojo
09:41 asm35 joined #mojo
10:40 jontaylor joined #mojo
10:42 iloveyou joined #mojo
10:44 jontaylor joined #mojo
10:47 jontaylor joined #mojo
10:53 jontaylor joined #mojo
11:01 dod joined #mojo
11:11 asarch joined #mojo
11:16 dod joined #mojo
11:24 jontaylor joined #mojo
11:29 jontaylor joined #mojo
11:34 jontaylor joined #mojo
11:35 meshl joined #mojo
11:46 jontaylor joined #mojo
11:54 jontaylor joined #mojo
12:11 jontaylor joined #mojo
12:15 jontaylor joined #mojo
12:45 ajr_ joined #mojo
12:57 jontaylor joined #mojo
13:00 jontaylor joined #mojo
13:12 lluad joined #mojo
13:20 bpmedley Anyone run Mojo on Solaris 11.x?
13:42 iloveyou joined #mojo
13:57 dysfun joined #mojo
14:03 cpan_mojo Mojo-IRC-Server-1.7.2 by SJDY https://metacpan.org/release/SJDY/Mojo-IRC-Server-1.7.2
14:04 dotan joined #mojo
14:18 bpmedley I wonder if I'm doing something wrong.  I get around 1/2 of the requests with ab in Solaris 11.2 that I do with CentOS 6.7.  This is with VMWare Fusion 8 on older Mac Pro.
14:21 nicomen bpmedley: you mean performance-wise?
14:21 bpmedley Yes
14:23 Adura But, shouldn't you be using wg...?!
14:23 bpmedley Adura: There's a better way to bechmark, I'm sure.  ab was easily installed on both boxes
14:26 nicomen bpmedley: I would test from a third box
14:26 bpmedley What do you mean?
14:26 nicomen oh wait VMWare
14:26 bpmedley Yip, sorry for the confusion.
14:26 nicomen bpmedley: I thought you were testing performance on two operating systems
14:27 nicomen while you are actually eteting performance on two OS running on VMWare that might have varying support in everything form chipset support to different ways of doing VM etc?
14:28 bpmedley Could be.  I have no real hardware to test Solaris on.. hrmm.
14:28 nicomen nevertheless would run apbench from a different computer to not skew tests even further
14:28 nicomen alhthoug 1/2 sounds like a lot
14:29 nicomen dumping two nytprof dumps would be interesting I guess ;)
14:30 nicomen if you can't be bothered to do truss/strace stuff
14:32 bpmedley I'll try nytprof in a bit
14:37 asarch joined #mojo
14:58 jontaylor joined #mojo
15:04 jontaylor joined #mojo
15:12 jontaylor joined #mojo
15:16 mrp joined #mojo
15:18 mrp Hi, whats the best way to disable httponly ?
15:52 berov joined #mojo
16:02 mattastrophe joined #mojo
16:04 mrp main cookie not allowed to httponly => 0 ?
16:04 pink_mist what are you talking about?
16:04 pink_mist I've no idea what you mean by "disable httponly"
16:04 pink_mist and no clue what it has to do with cookies
16:05 mrp https://github.com/kraih/mojo/blob/master/lib/Mojolicious/Sessions.pm#L56
16:05 mrp let me do a test
16:06 pink_mist oh, it's specifically a cookie thing?
16:06 mrp yes, i want to pass 0 to it
16:06 mrp to test something
16:07 pink_mist well clearly you can't; that 1 is hardcoded right there where you linked
16:07 pink_mist use some other cookie for that instead
16:08 mrp ok
16:08 mrp tks
16:10 iloveyou joined #mojo
16:13 mattastrophe joined #mojo
16:17 tianon joined #mojo
16:22 jontaylor joined #mojo
16:25 iloveyou joined #mojo
17:22 mattastrophe joined #mojo
17:23 gryphon joined #mojo
17:24 mattastrophe_ joined #mojo
17:38 berov1 joined #mojo
17:42 trone joined #mojo
17:52 akhasanov joined #mojo
17:57 PryMar56 joined #mojo
18:30 sri \o\
18:30 sri /o/
18:33 bpmedley mrp: http://mojolicio.us/perldoc/Mojo/Cookie/Response#httponly <-- maybe?
18:44 pink_mist bpmedley: he seemed to be talking specifically about the session cookie
18:44 bpmedley Gotcha
18:45 pink_mist thus I suggested using a different cookie :P
18:45 iloveyou joined #mojo
18:54 amon joined #mojo
18:54 dod joined #mojo
19:01 iloveyou joined #mojo
19:02 Kogurr joined #mojo
19:23 thowe joined #mojo
19:31 mattastrophe joined #mojo
19:39 henq joined #mojo
19:41 jberger I'm building up my demo host very pedantically codifying everything with ansible as I go
19:42 jberger does anyone have a suggestion of where I should store application data/files (think app.pl) in the file tree?
19:42 jberger probably not in root's home directory
19:42 jberger but there are no other users with home directories
19:42 stephan48 create one?
19:42 jberger /usr/local?
19:43 stephan48 mh. yea would be the next logical step
19:43 stephan48 or /opt/
19:43 jberger it will run as www-data (think nobody) but www-data doesn't have a home directory
19:43 stephan48 /opt might make more sense when you get a fullapp or lots of additional files
19:44 stephan48 ok
19:44 pink_mist /srv/www-data?
19:44 * thowe thinks he needs to look at this ansible thing
19:44 jberger I would make a full path under /usr/local
19:44 jberger like /usr/local/failraptor or something
19:44 jberger failraptor is my test app :-P
19:45 stephan48 mh. just a appfile to /usr/local/bin/ or a fullapp to /opt or /srv would be my preferences
19:45 stephan48 because /usr/local/* follows a sort of order
19:45 jberger thowe: as mst likes to say, (if I may put words in his mouth), it might not be the best, but it is recommended for developers forced to be devops
19:45 jberger which is me
19:46 stephan48 i played a bit with rexify lately
19:46 henq hi, newby here; does flash automagically create a session?  my flash message does not survive a redirect_to. (I am using Controllers).
19:46 stephan48 still being lazy throu..
19:46 jberger stephan48: ok now "follows a sort of order" is an interesting point
19:47 jberger I wonder if there is a nice description of the file heirarchy somewhere
19:47 stephan48 like /usr/local/bin/ -> binaries /usr/local/lib/ -> libs /usr/local/share/ -> additionals
19:47 jberger (back of my mind seems to suggest yes)
19:47 pink_mist henq: it should
19:47 jberger then I would probably have dumped it all in /usr/local/share
19:48 stephan48 /usr/local/etc/ -> local configs /usr/local/man/ -> local docs /usr/local/src/ -> sources
19:48 jberger henq: show us a minimal example, there are usually reasons why flash messages don't show up
19:48 jberger (or try Mojolicious::Plugin::Humane, for easy popup dialogs)
19:48 stephan48 mh. sounds better than just /usr/local/
19:49 thowe I'm probably devops since I'm everything else technical at $dayjob
19:49 jberger you might be right about /opt yet somehow /opt feels very "old school"
19:49 bpmedley jberger: I use a systematic /opt tree.  /opt/hostname.com/sql /opt/hostname.com/bin /opt/hostname.com/docroot,etc
19:49 stephan48 concidering php apps end up in /usr/share/ quite often
19:49 thowe Reminds me, I need to get my DNS syncher thingy to github
19:49 stephan48 then use /srv? :)
19:50 bpmedley mkdir /jberger
19:50 stephan48 thowe: link please :)
19:50 * thowe is also reminded he needs to figure out minion
19:50 thowe stephan, link to what?
19:50 bpmedley thowe: I have a blog post about minion you might like.
19:50 jberger bpmedley: oh, I do too! don't beat me to it!
19:50 thowe bpmedley, OK, where's your blog?
19:50 stephan48 i got annoyed about my dns setup just yesterday and if i can prevent having to writing my own DNS manager that would be cool!
19:50 thowe I'll read them both
19:50 jberger hahah
19:50 stephan48 thowe: "DNS syncher"
19:51 bpmedley thowe: http://blogs.perl.org/users/brian_medley/2014/11/using-minion-with-a-rest-api.html
19:51 jberger DNS sinker, well there go the intertoobs
19:51 thowe stephan, Well, OK.  It works for both bind and unbound.  You need to configure a config file for what you want it to do, and it runs a script on the master server to get the list of stuff it should synch.  I have examples of that for bind on cPanel and for pdns
19:52 stephan48 and then syncs that to slaves?
19:52 stephan48 U
19:52 stephan48 -U
19:52 thowe runs the script via SSH.  You run it on the slave, and it connects to the master, runs a script via ssh, then decides if anything has changed.
19:52 stephan48 ah cool
19:52 thowe I just run in chron
19:53 thowe needs config::general IIRC
19:53 stephan48 that is okey
19:53 thowe If someone else is going to use it I'll make it more user friendly
19:53 thowe :)
19:53 thowe and write a doc
19:54 stephan48 i will gladly inspect it and if i find it usefull i won't hesitate to help with that :)
19:54 thowe I should probably take the config output and make it a template, but it just wasn't complex enough
19:54 shadowpaste "henq" at 217.168.150.38 pasted "flash" (15 lines) at http://paste.scsys.co.uk/498299
19:54 thowe stephan48, OK
19:54 jberger bpmedley: hmmmm, my post is very similar, at least in spirit
19:54 bpmedley Does it send email?
19:55 jberger bpmedley: are jobs supposed to call finish from within their own task subref?
19:55 thowe my github is https://github.com/thowe, so I'll try to clean it up and get it there this week.
19:55 jberger bpmedley: https://gist.github.com/jberger/91a853ee223737c1a1d1
19:55 stephan48 thowe: sounds already good throu
19:55 bpmedley jberger: I'm not sure it's required.  I wanted to pass back arguments.  I _think_ that's acceptable.
19:55 jberger bpmedley: the post: https://gist.github.com/jberger/df58fbbafdc964d9cbf3
19:56 jberger I need to finish it up and post it
19:56 bpmedley Awesomeness.
19:56 thowe stephan48, well, it's pretty small and simple, so should be easy to make nicer or customize.
19:56 stephan48 i will see :)
19:57 thowe I need t find it.  I wrote it a while ago and it's been running well on my tertiary server for a couple of years now, but I need to deploy to main server
19:58 thowe Oh, I have a copy here...  I'll have to check to see if it is latest...
19:58 elik joined #mojo
19:58 thowe hm, uses Config::Any.  I should probably change that.
19:59 stephan48 heh
19:59 thowe hm, this copy doesn't have all my Pod::Usage docs....
19:59 thowe probably latest on my Seattle server.....
20:00 elik left #mojo
20:01 thowe I'll throw this up for you to look at, but it will change somewhat soon so I don't embarrass myself with my baby Perl.
20:01 cpan_mojo XTaTIK-0.003001 by ZOFFIX https://metacpan.org/release/ZOFFIX/XTaTIK-0.003001
20:01 stephan48 np
20:01 stephan48 thanks!
20:03 thowe also, don't have example scripts for zone lists here....  soon
20:03 stephan48 i will just read the code :)
20:04 thowe Oh, yeah...  It may seem confusing, but you can set priorities...  That way if the same zone is found on two servers (like if you are moving them) you can identify which server should win.
20:05 thowe That was really why I replaced our old one...  cPanel likes to create zone files at every turn, so I had to make sure we didn't screw ourselves up.
20:06 stephan48 okey
20:06 stephan48 never used any major control panel
20:08 thowe https://github.com/thowe/sync_zones
20:08 dod joined #mojo
20:10 thowe hm, I meant nsd before when I said unbound
20:11 sri jberger: why do you like to the jwt draft instead of the rfc?
20:11 jberger sri: what do you mean?
20:12 sri in your gist
20:12 sri no wait, i mean Mojo::JWT
20:12 jberger oh, you mean to jwt.io? because there's a live demo
20:12 sri https://tools.ietf.org/html/rfc7519
20:12 jberger oh, let me look at the JWT doc, its been a while
20:12 sri vs https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32
20:13 sri not that i understand what jwt is about
20:13 jberger oh, yeah, I should use the rfc
20:13 thowe stephan48, anyway, gotta walk the dog.  I'll add an example script to that soon so you can see what it expects.  I'm going to deploy to a couple of other servers, so I'll write the procedure as I go.  You need ssh keys and stuff...
20:13 jberger thanks, I'll fix it in git and maybe something will pop up to make me release it
20:13 stephan48 thanks!
20:14 jberger jwt is just like Mojo::Sessions except where cookies aren't useful
20:14 jberger specifically it makes a url-safe string
20:14 sri now i understand
20:21 jberger fixed in git, sri+_
20:22 jberger sri++ # not that we have a karma bot atm
20:22 * jberger misses purl :'(
20:23 stephan48 who robbed purl?
20:25 pink_mist the butler, in the living room, with the fire place poker
20:25 pink_mist oh wait, you said robbed
20:30 KCL joined #mojo
21:12 akhasanov joined #mojo
21:18 henq joined #mojo
21:45 PopeFelix joined #mojo
21:45 sri hmm, web scraping with python is still a bestseller at o'reilly :o
21:47 iloveyou joined #mojo
22:15 sri another attempt at websocket routing https://github.com/hapijs/nes
22:31 sri lol, some of those are pretty bad https://kev.inburke.com/kevin/dont-use-sails-or-waterline/
22:33 sri "lets just sleep for 50ms on every request... because... whatever"
22:38 PryMar56 joined #mojo
22:38 meshl joined #mojo
22:57 bpmedley jberger: Did you settle on a layout for your app / data files?
22:59 mattastrophe joined #mojo
23:23 jberger bpmedley: I'm trying /opt/appname
23:31 asarch joined #mojo
23:32 iloveyou joined #mojo
23:49 jberger nes does look interesting
23:50 jberger Though I start humming the NES Legend of Zelda theme every time I think of it

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