Camelia, the Perl 6 bug

IRC log for #mojo, 2013-08-03

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

All times shown according to UTC.

Time Nick Message
00:36 buu cfedde: Uh, $tx->res->json ?
01:26 cooper joined #mojo
01:49 buu Why is this channel so dead =[
01:53 dqw joined #mojo
02:21 dsteinbrunner joined #mojo
03:09 asarch joined #mojo
03:30 basic6 joined #mojo
03:45 preflex_ joined #mojo
04:14 denis_boyun joined #mojo
05:17 buu Helloooooooo!
05:32 zacts .
05:34 Adurah joined #mojo
06:06 Britzel_ joined #mojo
06:08 cfedde buu: One of the things I struggle with on mojo is finding doc,
06:09 cfedde there is lots of it but I can never seem to find what I am looking for.
06:15 Vandal joined #mojo
06:39 buu cfedde: I have the exact same problem
06:39 buu Most of it seems to be hidden in the guides section
06:39 buu But lots of modules don't have all their methods actually documented =[
06:44 sh4 joined #mojo
07:03 cfedde eg Mojo::UA::post doc points to Mojo::Transaction::HTTP.  In turn points to the super class Mojo::Transaction. Following up on ->res takes us to Mojo::Message::Response. goes to the super class Mojo::Message which documents ->json.  so the doc is there  I'm just not smart enough to find it on the first try.
07:17 batman buu: try setting the https://metacpan.org/module/Mojo::UserAgent#app attribute to your test app
07:21 buu batman: I tried that, it gives me an error about IOLoop already being active
07:22 batman are you doing any $delay->wait or Mojo::IOLoop->start in your code?
07:22 buu Nope
07:22 batman are you using any modules which might do that?
07:22 buu Nope
07:22 buu It only happens when I use $ua->app
07:22 buu To set it to my test app
07:23 buu I mean its pretty obvious why it happens, I think, because I'm trying to perform a http request "inside" another http request
07:23 batman then you need to paste some code. add some comments as well to where things go wrong.
07:23 buu So it calls IOLoop->start
07:23 batman is the request inside the app blocking?
07:23 buu Yes
07:24 batman oh.
07:24 batman you should fix that. do you know how?
07:24 buu batman: Its a non-trivial case to replicate in a test script, but basically I'm doing: $testapp->get_ok("/url"); sub url { $ua->app($testapp); $ua->get("/otherurl") }
07:24 buu Uh, pass a callback?
07:24 batman yes + some more
07:27 buu I see the example specifies a $delay->begin
07:27 batman https://gist.github.com/6145589
07:28 buu Thanks
07:28 batman don't do blocking stuff. it makes life harder :(
07:29 batman if you're just running hypnotoad or morbo, then you don't need the $delay stuff.
07:29 buu Yeah
07:29 buu but I'm trying to do it inside a testapp
07:29 buu =]
07:30 buu So if its nonblocking, does that mean, in practice, that the request will actually be executed after the first one returns?
07:31 batman i don't know which one "the request" is.
07:31 buu Sorry, I meant the second, internal request
07:31 buu the recursive one, as it were
07:31 batman you got sooo much info in your head, that you're not telling me
07:31 buu =/
07:31 buu Sorry, I'll try to clarify
07:34 buu I have an 'external' request via the $test object that hits a mojo handler
07:34 buu that internal mojo handler then attempts to perform another http request
07:34 buu against the same app
07:35 batman the $test request will finish after the internal request
07:35 batman i'll update the gist
07:36 batman https://gist.github.com/jhthorsen/6145589 <-- buu
07:39 buu ok
07:39 buu thanks
08:02 yko joined #mojo
08:14 d4rkie joined #mojo
08:19 batman buu: does it work?
08:27 dotandimet joined #mojo
08:30 buu batman: Just testing now =]
08:30 batman ok. i have to run.
08:31 batman good luch
08:31 batman *luck
08:32 buu Thanks!
08:50 dhg joined #mojo
08:58 jzawodn joined #mojo
09:12 KindTwo joined #mojo
09:16 rem_lex joined #mojo
09:30 basiliscos joined #mojo
09:32 denisboyun joined #mojo
09:36 dotandimet joined #mojo
10:00 basiliscos joined #mojo
10:06 dsteinbrunner joined #mojo
10:11 KindTwo joined #mojo
10:19 marcus joined #mojo
10:19 batman joined #mojo
10:19 wsri joined #mojo
10:20 marcus hmm
10:34 denisboyun joined #mojo
10:38 marcus Hrm, I have a problem with irc connections sometimes dying and not reconnecting. Think I need a plugin to inspect the state of the ioloop...
10:55 jpn joined #mojo
11:07 ilbot2 joined #mojo
11:07 Topic for #mojo is now 🎩, indubitably | http://mojolicio.us | http://irclog.perlgeek.de/mojo/today
11:07 marcus Mojolicious::Plugin::IOLoop::Inspect or some such.
11:15 caeles joined #mojo
11:15 stokachu joined #mojo
11:33 denis_boyun joined #mojo
12:04 allan joined #mojo
12:07 dotandimet joined #mojo
12:12 dotandimet1 joined #mojo
12:14 dqw joined #mojo
12:32 denisboyun joined #mojo
13:23 rem_lex|pivo joined #mojo
13:51 dvinciguerra_ joined #mojo
14:14 mire joined #mojo
14:34 D4RK-PH0ENiX joined #mojo
14:41 dotandimet joined #mojo
15:06 dotandimet joined #mojo
15:18 bowtie_ joined #mojo
15:23 dqw joined #mojo
15:27 dotandimet1 joined #mojo
15:37 basiliscos joined #mojo
15:43 dsteinbrunner joined #mojo
15:52 KindOne joined #mojo
16:13 Britzel joined #mojo
16:47 d4rkie joined #mojo
17:13 Moataz-E joined #mojo
17:14 Moataz-E hello everyone
17:15 Moataz-E i just finished my first mojo website and i am looking for a hosting service
17:15 Moataz-E it is just a 500 line Mojolicious::Lite file with around 12 template files
17:15 Moataz-E what hosting providers do you guys recommend?
17:25 marcus Moataz-E: What's your requirements?
17:30 Moataz-E marcus: not much, just want a VPS were i can run my mojo server from
17:30 Moataz-E marcus: i've been looking at Amazon's EC2 service, what's your opinion about it?
17:36 dsteinbrunner joined #mojo
18:22 marcus Moataz-E: ec2 is a fine choice
18:22 marcus Moataz-E: digital ocean or linode should be fine too.
18:26 daemonic +1 linode for being cheap and awesome
18:26 denisboyun joined #mojo
18:31 dotandimet joined #mojo
18:32 Moataz-E currently experimenting with Amazon EC2, i heard about both digital ocean and linode from reddit. So far enjoying the zero cost of using EC2 but will be keeping the other two in mind
18:32 Moataz-E thanks for the help :D
18:37 marcus isn't the free ec2 for a limited time only?
18:38 daemonic a year i think
18:45 jast ec2 is pretty expensive after the free years, at least if you keep your instance(s) up 24/7
18:45 Moataz-E marcus: yeh, it is for a year. nevertheless, looking at the spot instances scheme, it appears to be pretty cheap compared to the others.
18:45 jast *free year
18:46 jast spot instances will be shut down when the price goes up beyone what you've set
18:46 jast *beyond. jeez.
18:46 daemonic yeah, i think the cheapest tier is still around $60/mo ?
18:46 daemonic non-spot
18:46 jast you can go below that with reserved instances, I think
18:47 jast but considering digital ocean gives you something usable for a small app for $5/month...
18:47 Moataz-E as jast said, cheapest instance is for $61
18:47 Moataz-E $61 a year
18:48 jast that's without storage, though
18:48 jast $61 is just the upfront cost, you still pay per-hour on top of that
18:49 jast that's an extra $297 per year
18:50 jast which is very close to what I thought I remembered :)
18:50 Moataz-E wooh that's a lot
18:50 jast oh, there are "tiny" instances, too
18:51 jast $23 up front + $105
18:51 Moataz-E better enjoy my free EC2 while it lasts
18:51 jast yeah :)
18:52 jast to be fair, AWS gives you pretty good I/O performance (which is the thing most shared hosting solutions screw up the most)... but at a premium
18:52 jast for small apps it's not worth it IMO
18:54 Moataz-E my website is pretty small, so EC2 is too much. Nevertheless, i am enjoying the console and all the Amazon functionalities so far
18:54 jast yeah, that stuff is nifty
18:56 jast my primary hosting provider recently lowered traffic costs so far below amazon's that they don't really compare anymore... AWS: $.10 per GB (first 10 TB) vs ~$2.64 per TB
18:57 jast not that I've ever needed more than a few hundred gigs in a month (and that was unusually high in the first place)
19:00 jast anyway... different topic. I'm currently building a web app from scratch for the first time in forever, and I'd like to do most of the work on the client and duplicate as little logic as possible. I've found a few interesting approaches to presenting data with HTML/JS, but I haven't figured out a clever way yet to structure the data transmission between client and server. just getting lists of objects seems suboptimal for building composite views based on non-trivial
19:03 jast I'd like to be able to update views in real time, so there'd have to be some mechanism for getting updates from the server but using some degree of client-side caching. basically, when a view composed out of 2+ tables get updated, I want to be able to get the updates from a websocket and apply them without having to specify model logic a bajillion times. it's not really a Mojo question, but I don't really know where else to ask, and I figure you guys probably know mo
19:04 Moataz-E jast: may i ask who is your primary hosting provider?
19:04 jast Hetzner, a German provider mainly for dedicated servers
19:05 jast their VPS offers aren't _that_ good, so if you want to minmize costs it's probably not for you
19:06 Moataz-E jast: no problem, i will bookmark for later when my EC2 trial is over. thanks!
19:15 allan joined #mojo
19:40 basiliscos joined #mojo
19:40 zivester joined #mojo
19:53 dsteinbrunner joined #mojo
20:03 dsteinbrunner_ joined #mojo
20:05 punter joined #mojo
20:26 denis_boyun joined #mojo
20:50 amirite joined #mojo
21:19 basiliscos joined #mojo
22:24 asarch joined #mojo
22:37 espent joined #mojo
22:40 dsteinbrunner joined #mojo
23:10 dqw2 joined #mojo

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