Camelia, the Perl 6 bug

IRC log for #mojo, 2012-08-18

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

All times shown according to UTC.

Time Nick Message
00:13 o_o can anyone point me towards how to make a hash suitable for passing to json result in mojo?
00:14 o_o i need to be able to build a structure
00:17 o_o i am struggling to make a structure i can pass to the controller's result method
00:17 o_o https://github.com/RAM9/pin_yin_clo​ud/blob/master/lib/CCDictionary.pm
00:17 o_o my perl is rusty by 10 years
00:18 o_o line 25 is not perl
00:18 o_o I'm trying to figure out how to make it perl
00:19 o_o diagnostic is awesome
00:20 o_o but it is not telling me about CODE
00:21 o_o is there a way to modify an object scalar i made? ?
00:28 o_o ok i discovered that my $data = {}; $data->{one} = 1;
00:54 o_o yay!
00:54 o_o now i am back to my UTF8 problem but it is dynamic :D
02:14 jeen joined #mojo
02:51 noganex joined #mojo
03:01 l3l1p joined #mojo
03:17 lukep joined #mojo
03:58 davido joined #mojo
04:09 tempire ->perl seems wierd
04:09 tempire in the context of ->json it kind of makes sense
04:09 tempire but I'm not a fan
04:10 tempire davido: how's your python?
04:14 davido tempire: Well, this might be motivation to spend some time with it (which is to say, not good).
04:14 davido It doesn't look unreachable though.
04:14 davido (I browsed the repo a bit.)
04:16 tempire python really bugs me.
04:17 tempire if you have some motivation to figure out some of the calls, it would be great.
04:17 tempire http request libraries that have no RESTCLIENT_LOG or MOJO_USERAGENT_DEBUG get no patience from me
04:17 davido I was planning on looking at it more closely this weekend.
04:17 tempire davido++
04:18 davido It's not like it's PHP.  I get physically ill whenever I have to spend more than five minutes with PHP.
04:18 tempire I tried php once
04:18 tempire it was the mysqli_connect that killed me
04:19 tempire because that's obviously better than mysql_connect
04:19 tempire :/
04:19 davido goofy names, even if you ignore the mixture of camel casing and underscore casing.
04:20 davido It just makes me want to scream when I think there must be tens of thousands of users who picked it instead of Perl for some reason that I will never understand.
04:21 tempire let's just stop this conversation before anyone picks up on it
04:21 * tempire declares temporary martial law
04:21 davido :) I'll have a look at the API and see wht I can do.
04:23 davido I think his comment about using a Perl Worker to avoid the nginx/uWSGI stack makes sense.
04:23 tempire yep.  it's close enough to heroku from a user perspective.
04:24 tempire I looked into stackato as well.
04:24 tempire there's no comparison to heroku, though, in my opinion.
04:24 tempire they're the clear leader
04:24 tempire you can tell from the pretty web site
04:24 tempire and all the purple
04:26 davido I haven't deployed to heroku yet.
04:26 davido Stackatto seems pricey.
04:28 tempire activestate always targets the enterprise market
04:28 tempire hence the website full of whitepapers and nonsense getting in the way of real docs
04:28 tempire seems to be designed to convince managers of...something.
04:29 tempire I don't understand the draw of dotcloud, to be honest
04:29 tempire except for the websockets.
04:39 xaka joined #mojo
05:42 noganex joined #mojo
06:07 mattp joined #mojo
06:08 davido tempire: For me it's familiar tools: A .yml file to pull together configuration.  Plack, whatever database I want, etc.  But I'm probably just not familiar enough with heroku.  Perhaps next week I'll play with it a bit to get a better feel.
06:11 davido One thing I am unclear on is whether multiple heroku dynos assures me of multiple ec2 availability zones.
06:59 sri tempire: ->perl is from perl6, every object there has .perl()
07:12 jontaylor joined #mojo
07:18 good_news_everyone joined #mojo
07:18 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/ovPf1A
07:18 good_news_everyone [mojo/master] relaxed Mojo::URL test in url_for - Sebastian Riedel
07:18 good_news_everyone left #mojo
07:28 Vandal joined #mojo
07:33 davido I followed http://blog.kraih.com/mojolici​ous-in-the-cloud-hello-heroku and successfully pushed a small app.  I had to modify the heroku command a bit:  heroku apps:create myapp -s cedar --buildpack ........ Maybe I just got it wrong the first time, but being explicit with the application name seemed necessary.
08:19 Psyche^ joined #mojo
08:37 inokenty Hi. What am I doing wrong? http://hastebin.com/xifidejiba - I'm trying to set session expiration to 1 year but it doesn't work (it set for 1 hour)
08:39 davido_ joined #mojo
09:02 good_news_everyone joined #mojo
09:02 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/dWjkOg
09:02 good_news_everyone [mojo/master] use k combinator more - Sebastian Riedel
09:02 good_news_everyone left #mojo
09:13 jontaylor joined #mojo
10:13 d4rkie joined #mojo
10:37 Leandr joined #mojo
11:34 chansen joined #mojo
11:34 phillipadsmith joined #mojo
11:35 chansen joined #mojo
12:01 Lucas1 joined #mojo
12:03 jeen joined #mojo
12:13 jeen joined #mojo
12:33 nic inokenty: I'm having similar problems
12:33 nic It's on my list to investigate, but that won't be till Wed now
12:34 nic (so if you find the problem/solution before then I'll be molto happy :) )
12:34 inokenty =)
12:34 inokenty Okay I'll try
13:08 marcus sri: I'm looking at the steps example, is render_later not needed when using IOLoop::Delay ?
13:09 sri marcus: render_later only disables auto rendering
13:09 sri it's situational
13:10 marcus sri: I know, that, but wouldn't your example trigger auto rendering?
13:10 sri it does, and it doesn't matter
13:10 marcus sri: why? You do render in the second step?
13:11 sri if there is nothing to render it won't render anything
13:11 sri it's a noop
13:11 marcus hmm, seems I'm doing something evil in my app - Can't call method "_step" on an undefined value at /Users/marcus/perl5/perlbrew/perls/perl-5.14​.1/lib/site_perl/5.14.1/Mojo/IOLoop/Delay.pm line 12 during global destruction.
13:14 jeen joined #mojo
13:20 jeen joined #mojo
13:23 jeen_ joined #mojo
13:24 good_news_everyone joined #mojo
13:24 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/esu7rw
13:24 good_news_everyone [mojo/master] small optimizations - Sebastian Riedel
13:24 good_news_everyone left #mojo
13:46 jeen joined #mojo
13:50 sri marcus: ->tap() or ->k()?
13:59 rem_lex|pivo joined #mojo
14:24 DaTa I'm for tap
14:51 sri ok, then we'll stick with tap :)
14:58 marcus I like tap too
15:03 jeen joined #mojo
15:04 jeen_ joined #mojo
15:23 * sri is starting to get used to ST2
15:37 andrefs joined #mojo
16:05 jeen joined #mojo
16:11 jeen_ joined #mojo
16:29 marcus sri: I'm having some trouble using steps in a unit test, I stop the ioloop first, but when I try starting it again it seems to be hanging forever - http://pastie.org/4544868
16:36 marcus hmm, worked without the start, not sure why I needed stop to make the delay work, seems like Test::Mojo isn't starting the ioloop...
16:39 sri marcus: i don't touch that kind of hack
16:39 marcus sri: What's hacky about it? I think the answer is I didn't need either start or stop. not sure how I confused myself into thinking I do. things work fine now.
16:41 sri stop and wait in the middle of normal tests, looks pretty hackish to me
16:41 marcus what about just stop?
16:41 marcus I mean just wait
16:42 marcus the ioloop isn't actually running is it?
16:43 sri the wait on its own can be ok i guess
16:43 crab joined #mojo
16:44 sri Mojo::IOLoop methods don't actually require ->singleton-> btw
16:45 jeen joined #mojo
16:46 vel joined #mojo
16:46 marcus good poiunt
16:46 marcus point
16:51 l3l1p joined #mojo
16:52 crab hi.
16:53 marcus hey crabster :)
17:01 Lucas1 joined #mojo
17:21 sri marcus: but your test reminds me of something
17:22 sri should we allow $delay->begin in the final step?
17:39 sri hmmm, the finish event kinda ruins it
17:41 sri yea, too much of a headache, i'll leave it out for now
17:46 jeen joined #mojo
17:50 good_news_everyone joined #mojo
17:50 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/N8V6Bw
17:50 good_news_everyone [mojo/master] removed duplicate tests - Sebastian Riedel
17:50 good_news_everyone left #mojo
17:51 xaka joined #mojo
18:07 davido joined #mojo
18:37 Leandr joined #mojo
18:38 davido_ joined #mojo
18:48 d4rkie joined #mojo
18:53 jeen joined #mojo
19:05 vel joined #mojo
19:07 Lucas1 joined #mojo
19:30 espent_ joined #mojo
19:50 d4rkie joined #mojo
20:00 jeen joined #mojo
20:00 good_news_everyone joined #mojo
20:00 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/xr61pQ
20:00 good_news_everyone [mojo/master] allow all steps to increase active event counter - Sebastian Riedel
20:00 good_news_everyone left #mojo
20:00 sri judofyr actually had that figured out yesterday already -.-
20:02 davido joined #mojo
20:16 good_news_everyone joined #mojo
20:16 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/T5X9zw
20:16 good_news_everyone [mojo/master] better delay tests - Sebastian Riedel
20:16 good_news_everyone left #mojo
20:37 mire joined #mojo
20:52 berov joined #mojo
21:03 jeen joined #mojo
21:18 vel joined #mojo
21:42 batman_ joined #mojo
22:04 jeen joined #mojo
22:36 SmokeMachine joined #mojo
23:04 jeen joined #mojo
23:16 Lucas1 joined #mojo
23:30 vel joined #mojo
23:59 SmokeMachine joined #mojo

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