Camelia, the Perl 6 bug

IRC log for #mojo, 2012-12-04

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

All times shown according to UTC.

Time Nick Message
00:01 xaka joined #mojo
00:04 mattastrophe joined #mojo
00:38 b2b joined #mojo
00:57 laouji joined #mojo
01:14 hlin joined #mojo
01:15 Mike-PerlRecruiter_ joined #mojo
01:59 d4rkie joined #mojo
02:16 hlin_laptop joined #mojo
02:55 b2b joined #mojo
03:17 xaka joined #mojo
03:29 anewkirk hello
04:02 noganex_ joined #mojo
04:08 jayallen left #mojo
04:12 hlin joined #mojo
04:36 Molaf joined #mojo
04:39 amirite joined #mojo
04:39 amirite is it possible to render json in pretty mode
04:39 amirite possible, yes
04:39 amirite is it simple?
04:46 anewkirk amirite, you can with JSON
05:12 crab amirite: mojo won't do it for you.
05:18 mattastrophe joined #mojo
05:24 mattastrophe joined #mojo
05:40 spleenjack joined #mojo
05:43 laouji joined #mojo
06:09 ver joined #mojo
06:40 dpetrov_ joined #mojo
06:54 l3l1p joined #mojo
07:28 Vandal joined #mojo
07:52 Fuzzy joined #mojo
07:53 Fuzzy Hi all.
07:54 Fuzzy I'm fairly new to mojo coding, though been a perl hacker for over a decade now.
07:55 Fuzzy No doubt I'll have some dumb n00b questions to bother you all with. Hope that's ok. :)
07:57 dpetrov_ morning :)
07:57 anewkirk thats totally fine
07:58 * Fuzzy smiles
07:58 anewkirk we're all nice people here
07:58 Fuzzy I'm just scanning through the IRC logs to see if what I'm about to ask hasn't already been answered recently - it's such an obvious question I presume so. (Though since it's obvious I have to wonder why I couldn't find it in the FAQ...)
07:59 anewkirk you should probably just ask
07:59 dpetrov_ you can ask even it has been asked already
07:59 dpetrov_ :)
07:59 Fuzzy Basically I've a server which already has a valid certificate for HTTPS, and I'd like mojo to use that instead of it's own 'localhost' self-signed one...
08:00 Fuzzy All I've found so far is a note that you shuold be able to do this with environment variables... but that's not too pleasent.
08:02 dpetrov_ how do you deploy your application?
08:03 Fuzzy Currently with morbo, it
08:03 dpetrov_ I usually put a nginx in front of
08:03 Fuzzy *it'll use it's builting server for production.
08:03 dpetrov_ and just specify the cert over there
08:03 Fuzzy *built-in
08:03 Fuzzy Damn my typing, I need more coffee... it's too early. :)
08:04 Fuzzy Well... I do have an apache server on there using the cert already so I could pop it behind there as a cgi-script...
08:04 dod joined #mojo
08:04 Fuzzy but I was hoping there'd be a nice way to do it more portably - so I could pick my app up and drop it anywhere, feed it the certs for the box it's on and away it goes.
08:13 Fuzzy Ah. Think I might have found the answer: http://mojolicio.us/perldoc​/Mojo/Server/Daemon#listen
08:14 Fuzzy Don't know how I missed that before :)
08:16 yakudza joined #mojo
08:17 spleenjack joined #mojo
08:19 batman joined #mojo
08:26 suy joined #mojo
08:27 dod joined #mojo
08:28 Fuzzy For the record: it was as simple as adding the key details to the https:// specifier on the command line for morbo
08:29 Fuzzy ie: morbo -l 'https://*:3000?cert=/path/to/cert​/foo.pem&key=/path/to/key/foo.key' foo.pl
08:29 Fuzzy (just so that if others were searching the logs for it they can see it here)
08:30 Vandal joined #mojo
08:35 dpetrov_ :)
08:40 Fuzzy Simple when you know how. :P
08:48 Fuzzy Right. Now that's fixed I'm going to go get a well-earned coffee ;)  I'll stick around in here though, I'll most likely have more questions later - and, who knows, I might just be able to help someone else too :)
08:55 alexeiras joined #mojo
08:58 dpetrov_ Fuzzy++ :)
08:59 mire__ joined #mojo
09:09 Nom- joined #mojo
09:13 Nom- Hey guys... was wondering how one would tackle the issue of blocking database calls and other libraries which don't have a non-blocking set of functionality?  Do you simply crank the workers up, and the concurrent requests down?
09:13 Adura What I did...!
09:15 Nom- I guess that works, but doesn't feel very clean to me :)
09:15 Adura Code non-blocking alternatives to said libraries.
09:16 Nom- Yeah, except the two libraries I have the most problems with are closed source :)
09:16 Nom- All good...cranking up the workers it is!
09:17 Adura Closed source Perl code...
09:17 Adura Now that's odd.
09:17 Nom- Nah it's XS
09:17 Adura Oh.
09:17 Nom- Closed source C Libraries which are wrapped by Perl code
09:17 Adura B'oh.
09:18 Nom- DBD::DB2 doesn't seem to support async at first glance either... I recall seeing explicit support mentioned in the MySQL and Pg libraries
09:19 Vandal joined #mojo
09:19 suy joined #mojo
09:19 batman joined #mojo
09:19 spleenjack joined #mojo
09:19 ver joined #mojo
09:19 Molaf joined #mojo
09:19 d4rkie joined #mojo
09:19 Mike-PerlRecruiter_ joined #mojo
09:19 baton8 joined #mojo
09:19 jnbek^dt joined #mojo
09:19 alester joined #mojo
09:19 Foxcool joined #mojo
09:19 migo joined #mojo
09:19 Britzel_ joined #mojo
09:19 perlite joined #mojo
09:19 t[R]oll joined #mojo
09:19 jwang joined #mojo
09:19 bc547 joined #mojo
09:19 marcus joined #mojo
09:19 bpmedley joined #mojo
09:19 HtbaaPi joined #mojo
09:19 kmx joined #mojo
09:19 nic joined #mojo
09:19 memowe joined #mojo
09:19 ruz joined #mojo
09:19 espent joined #mojo
09:19 sawtooth joined #mojo
09:19 janus joined #mojo
09:19 tl joined #mojo
09:19 rafl joined #mojo
09:19 mtths joined #mojo
09:19 smpb joined #mojo
09:19 heytrav joined #mojo
09:19 wheee joined #mojo
09:19 jmaister joined #mojo
09:19 bobkare joined #mojo
09:19 mikegrb joined #mojo
09:19 JiYu joined #mojo
09:19 robinsmidsrod joined #mojo
09:19 Mithaldu joined #mojo
09:19 Mikey joined #mojo
09:19 chansen joined #mojo
09:19 rwstauner joined #mojo
09:19 charsbar__ joined #mojo
09:19 sri joined #mojo
09:19 romel joined #mojo
09:19 ZadYree joined #mojo
09:19 diegok joined #mojo
09:19 avenj joined #mojo
09:19 tomi-ru joined #mojo
09:19 ashleydev joined #mojo
09:19 allison joined #mojo
09:19 tokuhirom joined #mojo
09:19 xxtjaxx_ joined #mojo
09:19 gabiruh joined #mojo
09:19 jmmills joined #mojo
09:29 Nom- left #mojo
09:30 cosmincx joined #mojo
09:33 trone joined #mojo
09:33 Vandal joined #mojo
09:33 suy joined #mojo
09:33 batman joined #mojo
09:33 spleenjack joined #mojo
09:33 ver joined #mojo
09:33 Molaf joined #mojo
09:33 d4rkie joined #mojo
09:33 Mike-PerlRecruiter_ joined #mojo
09:33 baton8 joined #mojo
09:33 jnbek^dt joined #mojo
09:33 alester joined #mojo
09:33 Foxcool joined #mojo
09:33 migo joined #mojo
09:33 Britzel_ joined #mojo
09:33 perlite joined #mojo
09:33 t[R]oll joined #mojo
09:33 jwang joined #mojo
09:33 bc547 joined #mojo
09:33 marcus joined #mojo
09:33 bpmedley joined #mojo
09:33 HtbaaPi joined #mojo
09:33 kmx joined #mojo
09:33 nic joined #mojo
09:33 memowe joined #mojo
09:33 ruz joined #mojo
09:33 espent joined #mojo
09:33 sawtooth joined #mojo
09:33 janus joined #mojo
09:33 tl joined #mojo
09:33 rafl joined #mojo
09:33 mtths joined #mojo
09:33 smpb joined #mojo
09:33 heytrav joined #mojo
09:33 wheee joined #mojo
09:33 jmaister joined #mojo
09:33 bobkare joined #mojo
09:33 mikegrb joined #mojo
09:33 JiYu joined #mojo
09:33 robinsmidsrod joined #mojo
09:33 Mithaldu joined #mojo
09:33 Mikey joined #mojo
09:33 chansen joined #mojo
09:33 rwstauner joined #mojo
09:33 charsbar__ joined #mojo
09:33 sri joined #mojo
09:33 romel joined #mojo
09:33 ZadYree joined #mojo
09:33 diegok joined #mojo
09:33 avenj joined #mojo
09:33 tomi-ru joined #mojo
09:33 ashleydev joined #mojo
09:33 allison joined #mojo
09:33 tokuhirom joined #mojo
09:33 xxtjaxx_ joined #mojo
09:33 gabiruh joined #mojo
09:33 jmmills joined #mojo
09:33 fhelmber_ joined #mojo
09:48 fhelmber_ joined #mojo
10:08 good_news_everyone joined #mojo
10:08 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/LanH6g
10:08 good_news_everyone mojo/master f755ae2 Sebastian Riedel: added HTTPS example to Hypnotoad recipe
10:08 good_news_everyone left #mojo
10:14 dpetrov_ Fuzzy: ^^
10:15 dotan joined #mojo
10:16 sri that should make it easier to find in the future
10:41 nic using 'ojo' and a(), is there a compact way of telling it to listen on a specific port?
10:41 nic (I'd like to be able to use it when the default port is already occupied)
10:49 dpetrov_ probably: daemon -l http://*:1234
10:49 dpetrov_ nic: something like that probably?
10:50 nic ta, I'll try
10:50 memowe \o/
10:51 nic dpetrov_: thank you, it worked.  I feel silly now -- didn't occur to me I could put more options on the commandline
10:52 nic on a separate note, I'm loving the "say r(g(.." one liners
10:56 nic a() is awesome; for UI design we have dirs of static files and I've been wanting an easier way of (temporarily) publishing them for collaboration
10:56 nic ojo makes it too easy
11:10 dod joined #mojo
11:10 SmokeMachine joined #mojo
11:18 Fuzzy Nice one dpetrov_ :)
11:22 rem_lex|pivo joined #mojo
11:41 alexeiras joined #mojo
11:47 good_news_everyone joined #mojo
11:47 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/OQ-TyA
11:47 good_news_everyone mojo/master 71fabed Sebastian Riedel: fixed parameter replacement bug in Mojo::Parameters (closes #424)
11:47 good_news_everyone left #mojo
11:52 dpetrov_ Fuzzy: it's all sri's fault, not mine :)
11:53 good_news_everyone joined #mojo
11:53 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/AHB6Pw
11:53 good_news_everyone mojo/master 4e0b549 Sebastian Riedel: a few more Mojo::URL tests
11:53 good_news_everyone left #mojo
11:54 * sri blames solar storms
12:11 SmokeMachine joined #mojo
12:11 Fuzzy Ah, fair enough then :)
12:12 Fuzzy Right... nw it's time to squish mojo, MongoDB and dojo together... wish me luck ;)
12:20 anewkirk good luck
12:24 dod joined #mojo
12:34 ryozi joined #mojo
12:44 mire__ joined #mojo
13:02 ObseLeTe joined #mojo
13:15 Mike-PerlRecruiter_ joined #mojo
13:39 batman is there a simple cache plugin i can use? i'm generating graph data from a database, but would like to cache the json for a minute before calculating the same data again
14:05 batman (fixed it with 10 lines of code)
14:09 dod joined #mojo
14:12 amirite joined #mojo
14:27 Britzel joined #mojo
14:32 bluescreen joined #mojo
14:34 Akron joined #mojo
14:39 Akron batman: I published Mojolicious::Plugin::CHI some time ago. Probably simple enough.
14:41 batman not exactly what i wanted, but very close to what i'm doing :)
14:46 Akron batman: I am happy for suggestions to improve the usability! ;)
14:47 batman Akron: what i wanted was https://metacpan.org/module​/Mojolicious::Plugin::Cache
14:48 batman Akron: i can't see anything wrong with your plugin
14:50 gryphon joined #mojo
14:54 Akron Ah, okay. Yes - M::P::CHI is more general purpose than Cache - but less appropriate for your task.
15:03 nicomen CHI++
15:03 arthas joined #mojo
15:14 Britzel joined #mojo
15:31 mire__ joined #mojo
15:32 knshaum joined #mojo
15:35 mattastrophe joined #mojo
15:57 nathariel joined #mojo
16:00 nathariel Hey guys. I have a big problem trying to use the Mojolitious user agent with CouchDB. I need to pass an escaped URL, however all requests leave the server as unescaped so I have the feeling this is happening internally. Any hints how can I change that ?
16:02 d4rkie joined #mojo
16:06 Vandal joined #mojo
16:41 inokenty joined #mojo
16:57 mattastrophe joined #mojo
17:03 xaka joined #mojo
17:07 kitt_vl joined #mojo
17:09 dod joined #mojo
17:16 mire joined #mojo
17:19 mire joined #mojo
17:49 cosmincx joined #mojo
17:53 mire joined #mojo
18:13 yakudza joined #mojo
18:13 dpetrov_ joined #mojo
18:29 mire_ joined #mojo
18:34 batman joined #mojo
18:43 dabudabu joined #mojo
19:33 mire_ joined #mojo
19:36 SmokeMac_ joined #mojo
19:55 xaka joined #mojo
20:04 sinkovsky joined #mojo
20:05 sergeysinkovsky joined #mojo
20:12 heytrav joined #mojo
20:32 lukep joined #mojo
21:07 mire__ joined #mojo
21:11 dotan1 joined #mojo
21:12 xaka joined #mojo
21:16 SmokeMachine joined #mojo
21:19 freman joined #mojo
21:21 freman so, I have a very specialised application, it services 1... to maybe 4 clients simultaniously, this will never change so performance isn't high on my agenda - now... it works great for the most part, except for when it has to wait for the dial on demand modem to kick in to send it's report (which is done via a ua->post) hypnotoad goes a bit mental and starts complaining about heartbeats and killing things
21:21 freman any way to improve hypnotoads behaviour? or make the daemon/morbo setup a better background daemon?
21:22 anewkirk that process sounds like it it should exist outside of your web app
21:23 anewkirk webapp -> send msg to queue -> queue processes request in the background
21:23 freman except the client is watching what the server is doing in real time
21:24 bannaN joined #mojo
21:24 anewkirk sla
21:24 freman the process works fine when run as daemon
21:24 freman not the human client but the ui client
21:25 freman 3 level app, ui, ui daemon, backend daemon - backend is the one making the calls
21:25 freman but the ui has demanded it be so and is expecting to be updated (and because this is a port of an old application, "everything must be the same as it was")
21:26 anewkirk there are many options
21:26 anewkirk websockets, long-polling, etc
21:27 freman these are pretty much what we're doing - but it's hypnotoad going spastic waiting for the useragent to finish that's my problem
21:27 anewkirk ... but I would opt for background processing
21:27 freman you would, I would, but the requirement that nothing change bites me
21:28 anewkirk look into the ENV, I'm sure there are settings to prolong the timer, etc
21:30 freman also at this point, the project is plenty delayed and I'm over it - thanks to the CPO - so please excuse  my attitude :D
21:30 freman (cpo - chief procrastination officer)
21:31 anewkirk that prestigious
21:31 anewkirk thats*
21:32 atz anewkirk: just keep telling yourself you'll get there someday... *but not today*!
21:34 anewkirk hey, a man can dream can't he?
22:14 SmokeMachine joined #mojo
22:24 freman Thank you anewkirk, while the problem wasn't solved with env, it was solved with app->config, but I wouldn't have found it without your pointer
22:26 sinkovsky joined #mojo
22:27 dotan joined #mojo
22:28 mire__ joined #mojo
22:37 sri you'd think the answer to a common question like that would be in the FAQ ;)
23:15 jzawodn joined #mojo

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