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

IRC log for #mojo, 2015-10-05

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

All times shown according to UTC.

Time Nick Message
00:24 lb joined #mojo
00:53 aborazmeh joined #mojo
01:00 Kogurr joined #mojo
01:03 genio bpmedley: one quick typo fix on your main page.   "allows you to..."
01:15 bpmedley genio: Thanks
01:59 kaare joined #mojo
02:29 noganex joined #mojo
03:06 absolut__ joined #mojo
03:57 absolut_todd joined #mojo
04:02 absolut__ joined #mojo
04:13 absolut_todd joined #mojo
04:16 absolut__ joined #mojo
04:19 absolut__ joined #mojo
04:22 absolut_todd joined #mojo
04:28 absolut_todd joined #mojo
04:44 inokenty-w joined #mojo
05:09 cpan_mojo Mercury-0.004 by PREACTION https://metacpan.org/release/PREACTION/Mercury-0.004
05:16 absolut_todd joined #mojo
05:17 Martin90 joined #mojo
05:26 stephen joined #mojo
05:27 Martin90 joined #mojo
05:37 trone joined #mojo
05:39 asm35 joined #mojo
05:52 Martin90 hmm what's wrong with this -> http://paste.scsys.co.uk/499867 ?
05:52 Martin90 I end up with deep recursion
06:12 panshin joined #mojo
06:12 Lee joined #mojo
06:14 dod joined #mojo
06:15 cpan_mojo MojoX-Routes-AsGraph-0.05 by MELO https://metacpan.org/release/MELO/MojoX-Routes-AsGraph-0.05
06:20 dod joined #mojo
06:39 asm35 left #mojo
07:28 trone_ joined #mojo
07:35 cpan_mojo MojoX-Renderer-JSON-XS-0.05 by YOWCOW https://metacpan.org/release/YOWCOW/MojoX-Renderer-JSON-XS-0.05
07:40 eseyman joined #mojo
07:46 vanHoesel joined #mojo
07:48 vanHoesel1 joined #mojo
07:52 berov joined #mojo
07:53 panshin_ joined #mojo
07:55 ans joined #mojo
07:58 Vandal joined #mojo
08:02 bpmedley Martin90: May I ask what your trying to do?
08:04 panshin joined #mojo
08:06 Dada_is_crazy joined #mojo
08:15 bpmedley joined #mojo
08:20 odc joined #mojo
08:27 AndrewIsh joined #mojo
08:27 asm35 joined #mojo
08:28 asm35 left #mojo
08:35 McA joined #mojo
08:40 absolut_todd joined #mojo
08:47 panshin joined #mojo
08:48 nic bpmedley: You might consider adding a paid-for testing function on liveperl.us
08:49 bpmedley nic: Can you explain further?
08:49 nic eg You have a number of candidate tests (at different levels of ability) which a recruitment candidate carries out in-browser
08:49 nic The recruiter (eg me) pays
08:50 bpmedley nic: That is a _good_ idea.  Hrmm
08:50 nic time limits (soft & hard) would be needed
08:51 bpmedley_ joined #mojo
08:52 Martin90 bpmedley, starting app and add folders/files to be watched by morbo watch
08:52 nic If you had some way of proving who did the test (eg a video of their face in aguish) then they could do it from wherever
08:53 Martin90 no idea why it doesn't start properly
08:53 bpmedley_ Martin90: Do you want to add the -w argument programmatically?
08:54 Martin90 yes I think so
08:54 nic Martin90: How many top-level directories do you need to watch (ever)?
08:54 nic In a normal setup it's a max of about 6
08:55 Martin90 6 is enough
08:55 bpmedley_ push(@ARGV, "-w", "joy"); <-- Does something like this work when running with morbo, Martin90 ?
08:55 Martin90 I try to fit my program to those generated from "genarte app" command
08:56 * nic doesn't understand why you'd need to add them programmatically
08:56 bpmedley_ Martin90, I think those are watched by default.
08:56 bpmedley_ Martin90: Perhaps run morbo with -v so there is visible confirmation of the reload?
08:58 bpmedley_ Be back in a bit
09:00 Martin90 the doc says that those libs should be "watch" by ddefaults, in my case they are not
09:00 Martin90 next in case of lite app morbo prints out every request to console
09:00 Martin90 here that doesn't happen
09:01 Martin90 all goes to .log file
09:02 Martin90 but app files i.e *.pm are definitely not wached,
09:04 Martin90 yesterday I did syntax mistake like my shelf =.. instead of $self and no complains at all....took me a while to figure that mistake
09:04 meshl joined #mojo
09:05 Martin90 'morbo my_app -v' didn't help
09:05 nic Martin90: If morbo is genuinely not watching dirs, it's usually because it's being started in the wrong location
09:06 Martin90 I started it from script lib
09:06 nic common mistake
09:06 Martin90 I gues
09:06 Martin90 should be from main app lib right
09:06 nic yes
09:07 nic for a full app, that's the dir containing 'templates' and 'public' and 'lib'
09:07 Martin90 btw, how to terminate morbo quicky from command line ? ctr-c/d do the job but after w while...
09:07 Martin90 long while
09:08 nic the speed depends on your machine and what you're asking morbo to do
09:08 Martin90 ask to terminate :P
09:08 nic What OS are you on?
09:08 Martin90 Win 7
09:08 Martin90 is iddle so I suppose it should be instant
09:08 nic Things re startup & stop are noticeably slow on Win
09:09 nic actually, everything in between is also slow on Win :/
09:09 asm35 joined #mojo
09:09 Martin90 odd for task as simple as it is
09:10 nic Is this the first time you've run a perl event loop on Windows?
09:10 Martin90 yes
09:12 nic When I'm on Windows I always end up using a local or remote VM so I'm actually developing on linux
09:13 nic even if the app will ultimately be running on windows
09:13 Martin90 is it possible to get logging back to console in multi file app ?
09:14 nic btw, your line above should have been "morbo -v ..."
09:14 Martin90 nic, I was thinking about that but beside those several flaws all works correct
09:15 Martin90 I did "morbo script/my_app -v" and no loggs in console
09:16 Martin90 but files are watched correct now ;]
09:17 Martin90 I will try add mode option 'developement'
09:17 sue joined #mojo
09:20 berov joined #mojo
09:21 berov joined #mojo
09:22 nic Martin90: You still haven't fixed your commandline
09:23 Martin90 morbo /script/my_app -v -m development
09:23 Martin90 what's wrong ?
09:23 Martin90 ahh sorry
09:23 nic script/my_app at the end
09:27 Martin90 ok seems to work ok, thanks nic ;)
09:27 nic :)
09:30 bpmedley joined #mojo
09:32 gaunt_ joined #mojo
09:35 asm35 joined #mojo
09:37 asm35 left #mojo
09:39 melo joined #mojo
09:53 panshin joined #mojo
09:55 mattp joined #mojo
10:05 sri Martin90: if you hadn't started with an older version of mojolicious you'd have much less problems
10:06 sri it's not a mojolicious flaw, you just ran into old problems that have since been addressed
10:10 Martin90 sri, app works ok now so I dont know if it was because of older version or just my mistakes... but rather the second one ;)
10:10 sri the old version created a log directory
10:10 sri new ones do not
10:11 Martin90 I hope that cpna update I did yesterday went ok
10:11 Martin90 mhm
10:16 Martin90 btw, that .log file was a bad idea ?
10:17 Martin90 that you remove it
10:17 sri people don't read the docs and misunderstand it if it's there by default
10:17 sri now you have to read the docs and create it afterwards yourself
10:17 Martin90 ok
10:19 sri literally what you experienced here, you didn't read that section of the tutorial, and got confused
10:20 CandyAngel Silly people not reading the docs
10:20 CandyAngel >.>
10:20 CandyAngel <.<
10:23 Martin90 yes, I read a fragment of it and tried to do something around it.. I should have read to the end ;]
10:23 CandyAngel Martin90: And that was far more of a jab at myself than you :P
10:25 Martin90 heh, why ?
10:26 CandyAngel 90% of the answers to my questions here are "also, it's in the docs"
10:26 CandyAngel 50% of the time I've read that part and not had it click that that's the bit I wanted
10:28 ProphessorX joined #mojo
10:28 Martin90 :)
10:29 CandyAngel The rest of the time, I'm just trying to convince sri to get Mojo to do something for me
10:29 CandyAngel Because he comes up with better solutions than I do
10:29 Martin90 heh
10:31 Martin90 what are you using mojo for btw ?
10:31 CandyAngel My main Mojo project is a web crawler
10:32 Snelius for coffee making
10:32 Snelius hehe
10:32 CandyAngel But I use parts of it in random stuff
10:32 bpmedley Martin90: I've built http://liveperl.us and I'm working on a couple other apps.  One is a wifi calling app that uses twilio.
10:32 CandyAngel Like Mojo::Collection, I use that quite a bit
10:33 CandyAngel A friend of mine is going to implement his website using it soon
10:33 CandyAngel So i'll be able to help with that \o/
10:33 Martin90 very nice
10:33 bpmedley Martin90: What app are you making?
10:34 CandyAngel I don't think I will be using anything from Mojo in what I'm coding right now
10:34 Prophess_ joined #mojo
10:35 Martin90 want to write file-sharing app
10:35 CandyAngel Or.. trying to code, my mind is all bleh
10:35 bpmedley Nice.  Like dropbox/box or using webrtc?
10:35 Martin90 with shared folders, more like google drive
10:35 ProphessorX joined #mojo
10:36 bpmedley Martin90: Sweet.  CandyAngel , what's your crawler for?
10:37 CandyAngel bpmedley: For a forum, so I can implement a working search interface for it
10:37 CandyAngel Because the company flat out refuses to fix their broken search >.<
10:38 gorfel joined #mojo
10:38 bpmedley Well that's cool.
10:38 CandyAngel (and then they completely trashed the forum by renaming one of the subforums)
10:38 CandyAngel So now you can MITM any topic from before 2015
10:39 CandyAngel Because topic urls are like
10:39 CandyAngel example.com/forum/subforum/sanitised_topic_title
10:39 CandyAngel ANd they archived them so they are now
10:39 CandyAngel example.com/forum/subforum_archive/sanitised_topic_title
10:40 CandyAngel But none of the links in posts have changed..
10:40 CandyAngel So if you create a topic with the old title, all the links go to your topic instead of the archived one..
10:40 Martin90 liveperl.us is designed well, nice job, how many people use it just for curiosity ? ;P
10:41 bpmedley Martin90: I put it back online yesterday.  Thank you for the kudos.
10:43 ProphessorX joined #mojo
10:45 panshin joined #mojo
10:45 * CandyAngel flops
10:46 CandyAngel Not in any state to code today.. I have coding fog or whatever it is called
10:46 * CandyAngel would prefer to be at home coding her VR stuff
10:46 CandyAngel Or playing KSP :P
10:48 lluad joined #mojo
10:52 dvinciguerra joined #mojo
10:52 * sri plays some more hearthstone
10:57 Jonis it's all about Diablo 3 these days
11:01 neilhwatson joined #mojo
11:03 CandyAngel I wish I had like.. 5 grand
11:03 CandyAngel I'd pay someone to implement this code so I could see how someone else would do it
11:09 * CandyAngel is totally not abusing CHI
11:09 CandyAngel >.>
11:11 dod joined #mojo
11:15 sri Jonis: diablo 3 gets boring pretty quick, no good endgame content
11:21 Jonis true, unless you enjoy pushing rifts. It does get a little grind-y.
11:21 sri the same rifts over and over... no thanks
11:22 sri farming the first set was kinda fun, but then it's all just meh
11:23 asm35 joined #mojo
11:23 Snelius it's nice https://letsencrypt.org/about
11:24 sri did they start yet?
11:24 Snelius nop, waiting..
11:24 Zoffix ** 1000s of certificate companies are now bribing browser vendors to not mark LetsEncrypt certs as trusted **
11:24 sri someone posts a link every other week ;p
11:24 Snelius ))
11:25 CandyAngel I stepped away for a minute, now I have a want to implement this in a completely different way, using Mojolicious/Minion >.<
11:25 CandyAngel So I can have generated graphs and people can terminate tasks that aren't needed anymore -.-
11:25 nic Snelius: We need a perl client
11:27 CandyAngel (at the moment, it just takes a bunch of inputs and gives a report on the state of tasks that need to be done)
11:33 tencendur joined #mojo
11:33 asm35 left #mojo
11:44 bpmedley CandyAngel: https://github.com/brianmed/minion_ui <-- Are you using Minion currently?  Do you have time to try this?
11:47 CandyAngel Does it work with the File backend?
11:48 meshl joined #mojo
11:49 bpmedley CandyAngel: I think so.  The code may need a few tweaks for all features.
11:50 CandyAngel I'll try it out this evening :)
12:00 sugar joined #mojo
12:20 sri Martin90: oh and re everything being slow on windows... patches welcome
12:21 tcohen joined #mojo
12:22 Martin90 I bet it can be optimized but for dev purposes in not a big deal
12:23 Martin90 is*
12:25 sri i wouldn't bet on that
12:28 CandyAngel sri: Slow on windows..? Like morbo being slow to reload?
12:28 sri yes
12:28 dod1 joined #mojo
12:29 CandyAngel Ah, that explains it!
12:29 CandyAngel I thought it wasn't reloading at all
12:29 Martin90 reload is not that slow as terminate signal
12:29 Martin90 ctr+c/d takes about a minute to stop it
12:30 CandyAngel Oh, I just used errr Ctrl+Break
12:30 CandyAngel I think?
12:30 sri for the record, on os x ctrl+c takes less than 2 seconds
12:31 Martin90 ;)
12:32 Martin90 it remainds me mac vs pc ads -> https://www.youtube.com/watch?v=b_7PnVwc7Fs
12:32 vytas joined #mojo
12:32 dod2 joined #mojo
12:33 salva joined #mojo
12:33 sri same for linux
12:33 sri and i imagine any operating system other than windows
12:34 Martin90 speaking of linux, which distro for production do you recommend ?
12:35 Martin90 CentOS ?
12:36 bpmedley Martin90: I use CentOS 6/7
12:37 dod joined #mojo
12:37 Martin90 I consider centOS too
12:49 * nic wouldn't recommend CentOS for anything perl
12:49 * nic wouldn't recommend CentOS for anything
12:50 nic Ubuntu Server is my #1 choice
12:50 nic but for development, you can't beat debian
12:51 Martin90 nic, what's so special in dev in debian ?
12:51 * nicomen wonders too
12:51 nic absence of obstacles, distractions, and problems
12:52 nicomen at the moment debian jessie is actually ahead of Ubuntu LTS perl version-wise, but that's an actual first.
12:52 nic yeah, that's weird
12:52 nic but you shouldn't use distro perl for serious projects
12:53 nicomen I always did that
12:55 ajr_ joined #mojo
13:04 lluad CentOS is stable in production, unlike Ubuntu LTS which occasionally breaks things during minor upgrades.
13:04 lluad But RHEL is such an unpleasant environment I tend to use Ubuntu LTS for prod even though I know I shouldn't.
13:08 sri interesting, Mojo::Path::_parse and Mojolicious::Controller::rendered are currently the two bottlenecks in examples/hello-template.pl benchamrks
13:09 nic We only went for RHEL because it was cheaper than US for a large blade array (above a certain core-per-blade density)
13:09 sri maybe someone has an idea for optimizations? https://github.com/kraih/mojo/blob/master/lib/Mojo/Path.pm#L108-L123
13:10 CandyAngel Bleh, I'm going to code something else, I'm so not in the mood to code this thing >.<
13:10 * CandyAngel codes something to make a huge graph
13:16 CandyAngel ...
13:16 CandyAngel Stupid Windows
13:20 aborazmeh joined #mojo
13:22 hernan605 joined #mojo
13:26 Mikey i'm building a very tiny linux distro (based on OpenELEC's build scripts) inspired by the "unikernel" movement, that is pretty much the kernel, perl, and a couple deps.  no shells or anything like that, but i am implementing a management REST API in mojo that will come up on startup (unless disabled via kernel boot option)
13:26 gryphon joined #mojo
13:26 Mikey wondering if anyone here would have a use for something like this, and if so, how you'd use it.  i dont wanna bloat it but i wouldn't mind thinking of other use cases while i create it.
13:27 CandyAngel Sounds interesting
13:30 Mikey thanks :)  a lot of the work has already been done by the OpenELEC team, but as I'm using it for my Mojo app, i'm going to have an image build script that you can point at a mojo app, and it'll attempt to automatically create you a bootable disk image that starts your target app on boot
13:31 Mikey targeting amd64, i386, armv6, armv7
13:32 Mikey so it'd be ready to spin up on your favorite hypervisor or a raspberry pi
13:33 Martin90 $self->schema what is 'schema' method ? Can't find it anywhere in doc...
13:33 mattastrophe joined #mojo
13:34 lluad_ joined #mojo
13:34 Mikey schema isn't a method available in standard mojo.. it might be a part of an app though?
13:35 Martin90 that's right
13:35 Martin90 helper actually
13:37 jontaylor joined #mojo
13:37 Mattes joined #mojo
13:39 genio bpmedley: liveperl typo: (allows doesn't have an apostrophe) and one I'm never quite 100% on is whether the comma is needed before "or hit Start"
13:44 genio oh, I see it's on GitHub.  Should I provide a pull request instead of random sentences in IRC?
13:45 nic genio: the comma thing is just style
13:46 nic with the comma is the 'Cambridge comma', without it is the 'Oxford comma'
13:46 genio nic: Yea, the comma is one where I usually just put one where it feels like a natural pause.  However, I feel like I overuse it from time to time.
13:46 nic It's often said that prose benefits from the Oxford comma and technical writing benefits from the Cambridge comma
13:47 nic (the oc is from fluid, the cc is less ambiguous)
13:48 nic s/from/more/
13:49 jontaylor any of you guys know which perl shop this job advert is for? https://jobs.perl.org/job/18208 can only see the agency on there, its a place using mojolicious near me so looks interesting
13:51 * nic guesses they're not using Mojolicious
13:53 Grinnz nic, ctually the comma is called the oxford comma, "cambridge comma" appears to just be someone's april fool joke where they put the comma *after* the and
13:53 nic lol
13:54 Grinnz the oxford comma sometimes feels less fluid but: http://i.imgur.com/fycHx.jpg
13:57 nic ah yeah, I've mistakenly swapped them around in what I said
13:57 nic The Cambridge comma is the one people are used to from prose, while the Oxford comma is recommended for technical writing
14:04 nic I learned them both from an American professor teaching technical writing in the late Twentieth Century, so no April Fool was present
14:05 genio My technical writing course was a joke.
14:08 nic There must be a more uptodate equivalent of Strunk & White out there now
14:08 Martin90 https://github.com/kraih/mojo-pg/blob/master/examples/blog/lib/Blog/Controller/Posts.pm#L22-L25 -> is it autor rendered ?
14:08 Martin90 auto*
14:14 Martin90 I mean, the show method doesn't render anything 'officialy' :P
14:15 garu_ joined #mojo
14:32 CandyAngel So
14:32 CandyAngel graphviz doesn't like my 14K line graph file so much..
14:39 CandyAngel Hm.. Windows is now nagging me to close it
14:39 CandyAngel Methinks my plan is not going to work -.-
14:45 asarch joined #mojo
15:00 ajmrch joined #mojo
15:01 sugar joined #mojo
15:08 Dandre joined #mojo
15:23 meshl joined #mojo
15:24 Mattes joined #mojo
15:34 bpmedley genio: Thanks
15:42 bpmedley Mikey++
15:47 gryphon joined #mojo
15:55 bayashi_ joined #mojo
16:02 ZoffixWork joined #mojo
16:02 ZoffixWork Martin90, sure it does: https://github.com/kraih/mojo-pg/blob/master/examples/blog/lib/Blog.pm#L29 https://github.com/kraih/mojo-pg/blob/master/examples/blog/lib/Blog/Controller/Posts.pm#L35
16:08 asker joined #mojo
16:09 good_news_everyon joined #mojo
16:09 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/vc9cw
16:09 good_news_everyon mojo/master 4c13e33 Sebastian Riedel: fix bug in Mojo::Transaction::WebSocket where an unsupported protocol could be selected automatically
16:09 good_news_everyon left #mojo
16:09 sri that one was odd, no idea how that code got there
16:11 ZoffixWork Ghost in the machine... Haven't you seen iRobot!? :)
16:11 sh4 joined #mojo
16:11 ZoffixWork One day Mojo will have dreams! Secrets!
16:11 asker hello. Mojo newbie here. Came to this channel from the "DONT PANIC" chapter of your documentation. I've written a simple websocket server in Perl (using Net::WebSocket::Server not Mojo) and now want to implement an easy to program but good authentication mechanism to authenticate incoming client requests. I don't want to use basic auth. Any tips on a complete tutorial that shows how to accomplish this? The "client" is an
16:11 asker angular JS client that will connect to the Mojo srver. Thank you
16:11 sri ZoffixWork: you mean there's homicidal robots jumping through the windows any second now?
16:12 ZoffixWork You never know!
16:12 * ZoffixWork ducks
16:14 sri asker: just use whatever auth mechanism you would with http, i'd use a cookie
16:14 asker @sri: I am told we can't trust a cookie as anyone with firebug can edit/set it. Any other mechanisms?
16:15 ZoffixWork asker, encrypt it :)
16:15 Lee joined #mojo
16:15 lluad Cryptographically sign the cookie.
16:15 sri https is your friend
16:15 jontaylor its encrypted automatically with mojo isn’t it, isn’t that what it uses for session storage
16:15 lluad If you use the mojo session cookie, yeah.
16:16 sri mojolicious cookies can be cryptographically signed, and our session do use that mechanism
16:16 lluad jwt or oauth are some (of many) other options, if you want to get fancy, but if the only client is your own web page a signed cookie is easiest.
16:16 asker okay, so bear with me: I am reading http://mojolicio.us/perldoc/Mojolicious/Sessions
16:16 sri jontaylor: signed, not encrypted
16:16 asker now, my angular JS client sends a websocket connection request
16:16 PryMar56 joined #mojo
16:16 asker how do I use the Session cookie above to authenticate this client?
16:17 sri asker: http://mojolicio.us/perldoc/Mojolicious/Guides/Growing#Sessions
16:17 sri that entire guide is literally about the topic
16:18 sri http://mojolicio.us/perldoc/Mojolicious/Guides/Growing#State-keeping
16:19 asker okay, so the client does a GET the server returns a sessionid and the client does a GET again with that sessionID. good. But how did the server authenticate sebastian in the first place to send him that id?
16:19 Kogurr joined #mojo
16:19 asker aha
16:19 asker user&pass
16:20 asker so we should do this over HTTPS obviously
16:20 sri you could even use Basic auth over https and it would be reasonably secure
16:22 asker thank you. I'll start experimenting
16:25 asker left #mojo
16:31 PopeFelix So as most of you know, Mojo::UserAgent::Mockable uses an internal Mojolicious instance for playback.  And that's why using it on a local app (i.e. $mock->server->app($app)) won't work.
16:31 good_news_everyon joined #mojo
16:31 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/vc9EX
16:31 good_news_everyon mojo/master bfb3374 Sebastian Riedel: document boolean attributes consistently
16:31 good_news_everyon left #mojo
16:32 PopeFelix Is it a terrible idea to, when the module is put into playback mode, compare the reference in $mock->server->app and the internal reference?
16:33 PopeFelix I.E. if ($mock->server->app != $mock->_app) { ... }
16:33 PopeFelix Did that even make any sense?
16:34 sri you mean ne, not !=
16:34 PopeFelix Sure.
16:35 PopeFelix But is that a terrible idea?  It's not something I'd normally consider doing, but I've just discovered that as it stands, this module won't work with Test::Mojo in playback mode.
16:41 Martin90 joined #mojo
17:18 * sri installs marshmallow on his nexus 5
17:23 ZoffixWork joined #mojo
17:25 meshl joined #mojo
17:36 HtbaaPi joined #mojo
17:39 CandyAngel Marshmallow? Is that Android6?
17:41 sri ye
17:43 PopeFelix So I'm messing around with $ua->server->tap(), but when I do that, I get 'Mojo::Reactor::EV: I/O watcher failed: Can't call method "build_tx" on unblessed reference'
17:43 PopeFelix $ua->server->tap('app', sub { say 'something!' })
17:45 Grinnz_ not sure why you'd need tap() on a mojo setter, they usually return the object anyway
17:45 Grinnz_ and yep, that one does
17:45 Grinnz_ oh, you're trying to call a subref
17:45 Grinnz_ er... no, app is a method
17:45 Grinnz_ i think you're confusing the two uses of tap()
17:46 CandyAngel I still have 2.2 or 2.4 :(
17:47 CandyAngel Behold, the mighty Desire HD! *knocks down a wall with it* :P
17:47 PopeFelix Grinnz_, Oh, I see.  I was trying to intercept the call to $ua->server->app.
17:47 Grinnz_ intercept to do what?
17:47 Grinnz_ cause right now all you're doing is $ua->server->app(sub { .. }) which is why you end up calling methods on an unblessed reference
17:48 PopeFelix To see if the caller is trying to set the UA to use a local app.
17:48 Grinnz_ erm, you are the caller
17:48 PopeFelix Another caller.
17:48 Grinnz_ then you're going to need a method modifier or something
17:49 * CandyAngel facepalms
17:49 PopeFelix Grinnz_, yeah, I figured as much.
17:49 CandyAngel Someone has written Tetris for my oscilloscope!
17:49 PopeFelix CandyAngel, that's impressive if it's an analog scope.
17:49 Grinnz_ literally all tap() does is run either a subref or method and return the invocant
17:50 PopeFelix Less so for digital.
17:50 CandyAngel PopeFelix: No, it's a digital one
17:50 PopeFelix Grinnz_, OK, thanks.
17:50 CandyAngel I haveeeeeeee a DS203H
17:50 * PopeFelix had an old Tek scope that didn't work.  He gave it away.
17:51 dod joined #mojo
18:09 mattp joined #mojo
18:11 jberger the very first videogame was written for an oscilloscope
18:13 ZoffixWork Is there where "Resistance if futile" comes from? :)
18:14 ZoffixWork s/there/that/;
18:14 ZoffixWork s/if/is/; # Curse these hands!
18:14 jberger https://en.wikipedia.org/wiki/Tennis_for_Two
18:16 ZoffixWork We've come a long way....
18:26 berov1 joined #mojo
18:45 CandyAngel That's amazing and awesome
18:48 Martin90 yeah, but what amazes me even more is what you can do with $3 microcontroller :P
18:52 Martin90 and mojolicious of course =)
19:01 amon joined #mojo
19:01 dave joined #mojo
19:03 dave joined #mojo
19:03 dave hello :)
19:04 ZoffixWork \o
19:06 CandyAngel Hello Dave
19:07 disputin joined #mojo
19:07 pink_mist I can't let you do that, Dave
19:07 dave open the pod bay doors HAL
19:08 dave I swear my name is more common than "john" :/
19:08 CandyAngel :P
19:08 CandyAngel Dave is John
19:10 sri this is dave http://howtodrawdat.com/wp-content/uploads/2014/01/1st-pic-Dave-Minion-from-despicable-me.png
19:11 dave that looks nothing like me ... but if it did I'd have a lot of fun at client shops :)
19:20 good_news_everyon joined #mojo
19:20 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/vcHgG
19:20 good_news_everyon mojo/master a61b516 Sebastian Riedel: a few more comments
19:20 good_news_everyon left #mojo
19:24 Martin90 one more step to even better doc ;)
19:34 panshin joined #mojo
19:37 disputin joined #mojo
19:39 vanHoesel joined #mojo
19:41 Kogurr joined #mojo
19:47 panshin joined #mojo
20:02 Martin90 hmm, how the http request is actually send to mojolicious ? In case of CGI it was just right dirs and API, sri how does it work :D ?
20:03 ZoffixWork :/
20:03 ZoffixWork Martin90, what are you trying to do?
20:04 sri TCP/IP
20:04 Martin90 nothing to do, just curious what happend between http request received by server and mojolicious execution of it
20:05 Martin90 sri, few layer bellow that ok ;p
20:05 sri http://mojolicio.us/perldoc/Mojolicious/Guides/Growing#A-birds-eye-view
20:06 Martin90 heh, the fun thing is I ask right after reading that part
20:07 Martin90 "Once the request has been received by the web server through the event loop, it will be passed on to Mojolicious"
20:07 Martin90 and here is the question what passes that request to mojolicious
20:07 sri the server
20:07 sri there is nothing more
20:08 Martin90 but how does it know where to send it
20:08 sri it appears you might want to read the code
20:08 sri it's in Mojo::Server::Daemon
20:09 Grinnz_ Martin90: i think we have some conflict of terms, also; "the web server" in this case *is* mojolicious
20:09 Grinnz_ it doesn't need to pass it because it already has it
20:10 jberger Mojolcious does both the job that apache did as well as the job that CGI.pm did
20:10 Martin90 Grinnz, good point! I was literally thinking about machine with ip when sri said "web server"
20:11 jberger the Mojolicious web server listens on the socket, just as apache would have
20:11 Grinnz_ well, the way it gets from the TCP/IP to the web server is by going to the port that mojo is listening on :)
20:11 Martin90 Mojo::Server::Daemon listen to http port
20:11 jberger (I hope socket is the right word, port might be better)
20:11 Grinnz_ yes
20:12 ZoffixWork .oO( and all this time I thought this stuff was run by unicorns and rainbows... )
20:12 jberger ummmm, it is
20:12 ZoffixWork Ah! Good! :D
20:12 jberger what do you think runs Mojo::Server::Daemon?
20:13 Grinnz_ TCP unicorns over IP rainbows
20:13 Martin90 thank you guys ;)
20:13 ZoffixWork jberger, back long ago you told me to blog about XTaTIK.... is there a good place to "write programming blogs" or do I need to have my own place?
20:13 * genio keeps his eyes peeled for raptors
20:14 Grinnz_ jberger: i'd say it's just an incomplete description, it listens on a socket but it creates new ones to accept connections
20:14 ZoffixWork zoffix.com hasn't been updated for ages and has some questionable posts...... also, I totally forgot the login/pass to it lol
20:14 jberger ZoffixWork: many of us use blogs.perl.org
20:14 jberger if not that then I would suggest something on tumblr
20:14 ZoffixWork K. Thanks.
20:14 pink_mist has registration on that finally been fixed, jberger?
20:16 Grinnz_ tumblr is... questionable :P
20:16 ZoffixWork heh
20:16 ZoffixWork I think I'll roll my own eventually, but will use tumblr for now :)
20:17 ZoffixWork zoffix.com still runs on App::ZofCMS :O
20:17 sri just use the Mojo::Pg example app ;p
20:17 ZoffixWork :D
20:17 Grinnz_ maybe with a liiiittle bit of CSS
20:17 Martin90 xD
20:17 Grinnz_ and you know... some kind of auth :P
20:18 Martin90 you have a sense of humor Grinnz_
20:20 jberger there is also statocles which ships with a blog app
20:21 jberger then just deploy it on github pages
20:21 ZoffixWork statocles made my head hurt last time I tried to use it :P
20:21 jberger I suggest adding its output feed to ironman though, so people can see it
20:21 ZoffixWork (though, in all fairness, I might have been drunk :P)
20:21 jberger ZoffixWork: how long ago was that, its getting pretty simple
20:22 jberger ?
20:22 ZoffixWork jberger, ages.
20:22 jberger learning a static blogging engine drunk is probably a bad idea (though possible required in many systems)
20:22 ZoffixWork jberger, what's "ironman"? (googling that term is unhelpful)
20:23 jberger ZoffixWork: you might find this helpful, its the chicago.pm site: https://github.com/ChicagoPM/ChicagoPM.github.io/tree/statocles
20:23 jberger the source is on the statocles branch
20:24 jberger and ironman is: http://ironman.enlightenedperl.org/
20:24 jberger though I read it through perlr.com
20:35 mattastrophe joined #mojo
20:49 junior_ joined #mojo
20:57 mattastrophe joined #mojo
21:12 bpmedley https://github.com/brianmed/minion_ui <-- Anyone able to try this?
21:17 gryphon joined #mojo
22:00 dvinciguerra joined #mojo
22:02 disputin joined #mojo
22:18 panshin joined #mojo
22:25 mattastrophe joined #mojo
22:34 mattastrophe joined #mojo
22:37 meshl joined #mojo
22:55 sri what is perl -0?
22:56 bpmedley sri: Isn't that useful in find and xargs commands?  It parses lines with a null terminate rather than "\n".
22:56 sri ah, input record separator
22:56 sri https://github.com/kraih/mojo/issues/849
22:57 sri how is that our bug?
22:58 sri is that even a bug report?
22:58 sri or just a list of observations?
23:02 Grinnz_ seems to be that it's double-HTML encoding when that's specified
23:03 ajr_ joined #mojo
23:03 Grinnz_ don't see why it would...
23:04 Grinnz_ -0 means it's the null character, -0777 means it slurps
23:07 sri ok, so there appears to be a bug where changing the input record separator makes Mojo::DOM not parse HTML correctly
23:07 sri perl -Ilib -0 -Mojo -E 'say Mojo::DOM->new("&amp;")'
23:07 CandyAngel Globally changing the input record separator breaks everything? Sayitaintso
23:07 sri be specific with your bug reports if you want stuff to get fixed!
23:07 bpmedley sri: Isn't there a "\n" on the end of "&amp;"?
23:07 sri bpmedley: wat?
23:08 CandyAngel If the IRS is \0, there would be a newline at the end
23:08 CandyAngel Because it wouldn't be separated on it
23:09 bpmedley sri: https://bitbucket.org/snippets/bpmedley/xLyeK <-- line 13 and 14
23:10 sri bpmedley: what is that supposed to tell me?
23:10 bpmedley That there is a newline after the ";".
23:11 sri and what does that have to do with anything here?
23:12 sri i can't read minds, please try explaining it in more detail
23:12 bpmedley One sec.  Let me do some reading.
23:16 bpmedley while ($html =~ /\G$TOKEN_RE/gcso) {  <-- Given a newline at the end of $html, then what is the expected behaviour of the loop?
23:17 sri it appears you've misunderstood something
23:17 sri perl -Ilib -0 -Mojo -E 'say Mojo::Util::xml_escape("&amp;")'
23:17 sri that's enough to demonstrate the problem
23:17 sri or i have now
23:17 sri wait a minute
23:18 sri ok, too much confusing information... it's late and i'm out
23:21 sri for the record
23:21 sri perl -Ilib -0 -Mojo -E 'say Mojo::Util::html_unescape("&amp;")'
23:21 sri that was the actual one-liner
23:24 meshl joined #mojo
23:30 mattastrophe joined #mojo
23:38 Zoffix sri, I found the bug. I'll submit a PR
23:49 Zoffix https://github.com/kraih/mojo/pull/850
23:49 Zoffix Kinda meh, with the extra test file just for that issue, but... that's my take on it
23:53 sri Zoffix++
23:54 good_news_everyon joined #mojo
23:54 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/vcQdk
23:54 good_news_everyon mojo/master eaf239f Sebastian Riedel: do not depend on the input record separator
23:54 good_news_everyon left #mojo
23:54 Zoffix Ah! :)
23:54 Zoffix sri++
23:54 sri that replicates the Mojo::Loader behavior
23:54 vanHoesel joined #mojo
23:57 sri and yea, testing that is messy
23:58 sri not depending on the IRS is a good idea in general though

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