Camelia, the Perl 6 bug

IRC log for #mojo, 2012-10-31

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

All times shown according to UTC.

Time Nick Message
00:07 sri http://shopify.github.com/dashing/ # that is one pretty dashboard :o
00:19 amirite joined #mojo
00:25 abhishekisnot joined #mojo
00:26 GabrielVieira joined #mojo
00:26 SmokeMa__ joined #mojo
00:31 jpn joined #mojo
00:37 marty joined #mojo
00:48 marty_ joined #mojo
00:55 laouji joined #mojo
01:04 tempire what
01:04 * tempire prays that lucas has nothing to do with the script or dialog
01:05 tempire oh dear
01:05 jberger tempire: if so it might be a blessing in disguise
01:05 sri darth bings
01:05 tempire "Lucas says he has written story treatments for Episodes 7, 8 and 9"
01:05 sri s/g/k/
01:06 tempire I don't know what story treatments are
01:06 tempire but it can't be anything but bad.
01:06 jberger the basic story of 1-3 isn't actually bad, its just everything else thats aweful
01:06 jberger awful
01:06 sri http://i723.photobucket.com/albums/ww231/USS-F​earnow/darth-darth-binks-jar-jar-binks-tur.jpg
01:06 tempire jberger: are you referring to the prequels?
01:07 jberger yes, but remember I'm talking about the essential story, not ANYTHING ELSE
01:07 jberger sri: hahaha
01:07 tempire We must mean something very different when we use the word story.
01:08 tempire or one of us is just crazy.
01:08 tempire CRAZY!
01:08 jberger who the emperor is, how he was playing both sides of a war to gain power
01:08 jberger that the jedi found a powerful child, tried to train him, failed
01:08 jberger thats about it
01:09 tempire ok. I'll give you that.
01:09 tempire but just that.
01:09 jberger agreed
01:09 jberger actually the "playing both sides of a war to gain power" is a really interesting idea, they just botched the movies so badly that no one noticed
01:10 tempire the prequels would have been better if they were just 90 minutes of consecutive k-pop videos.
01:10 jberger have you seen the south park about speilberg and lucas raping indiana jones
01:10 jberger ?
01:11 tempire no.  from the description, I don't think I ever will.
01:11 jberger suit yourself
01:12 jberger and how could lucas pick a canadian soap kid to be vadar?? ack!
01:12 jberger worst actor ever!
01:19 marty joined #mojo
01:20 Mike-PerlRecruiter_ joined #mojo
01:21 stocks joined #mojo
01:25 xaka joined #mojo
01:30 jamesw joined #mojo
01:53 d4rkie joined #mojo
02:00 marty joined #mojo
02:31 good_news_everyone joined #mojo
02:31 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/xMOALA
02:31 good_news_everyone mojo/master 9354ce2 Sebastian Riedel: more boundary tests
02:31 good_news_everyone left #mojo
02:35 asarch joined #mojo
02:41 marty joined #mojo
02:46 gryphon joined #mojo
02:53 vervain joined #mojo
03:10 stocks joined #mojo
03:22 marty joined #mojo
03:45 noganex_ joined #mojo
04:03 marty joined #mojo
04:46 stocks joined #mojo
04:57 marty joined #mojo
05:18 Foxcool_ joined #mojo
05:38 marty joined #mojo
05:55 Vandal joined #mojo
06:07 vishwanathms joined #mojo
06:09 vishwanathms_ joined #mojo
06:17 ovnimancer joined #mojo
06:20 marty joined #mojo
06:34 vishwanathms_ joined #mojo
06:36 vishwanathms joined #mojo
06:41 davido joined #mojo
06:46 memowe joined #mojo
06:55 dpetrov_ joined #mojo
07:01 marty joined #mojo
07:15 spleenjack joined #mojo
07:43 marty joined #mojo
08:09 pierrick joined #mojo
08:12 duncanthrax_work joined #mojo
08:19 michaelfung joined #mojo
08:20 batman joined #mojo
08:25 marty joined #mojo
08:41 michaelfung Greetings everyone.
08:41 michaelfung How to render a static html file in public folder?
08:44 ver joined #mojo
08:44 pau4o joined #mojo
08:45 ObseLeTe joined #mojo
08:47 pau4o left #mojo
08:50 michaelfung Alright, I got it in the Mojolicious::Static module.
09:05 GnomeStoleMyBike joined #mojo
09:06 judofyr joined #mojo
09:07 marty joined #mojo
09:16 ObseLeTe joined #mojo
09:29 daxim joined #mojo
09:43 dpetrov_ joined #mojo
09:45 Britzel joined #mojo
09:49 marty joined #mojo
10:05 Polarn joined #mojo
10:15 chesti joined #mojo
10:15 chesti hi
10:16 chesti i`ve got mojo and perl (new one) in non statnard location, is that ok to change #!/usr/bin/env perl header of mojo scripts or it should be done other way?
10:19 chesti i prefer to change it inscripts rather than change PATH settings
10:21 chesti how do you set mojo to use different perl versions than default?
10:25 jpn joined #mojo
10:26 chesti anybody alive?
10:27 bjoernfan chesti: You might want to look into perlbrew.
10:28 bjoernfan Haven't used it much myself though, so can't promise it's what you really want.
10:28 bjoernfan Can't really comment on the shebang.
10:30 chesti hmm nice to know thing
10:30 chesti thanks
10:30 vishwanathms joined #mojo
10:30 vishwanathms_ joined #mojo
10:31 bjoernfan If it's only for development I think perlbrew would be a good fit, I don't know enough about perlbrew to say if it's something you use in production.
10:31 chesti but i just want do advice what option use with mojo, change PATH variable (that require additional wrapper) or change script to use #!/my/perl/version
10:31 chesti i`m closer to second option but i`m not sure if ther won`t be any complications
10:32 marty joined #mojo
10:32 chesti this is for prod
10:33 chesti #!/usr/bin/env perl points to standard system perl and i want to stay that way
10:34 ObseLeTe joined #mojo
10:36 michaelfung joined #mojo
11:07 kitt_vl joined #mojo
11:12 chesti joined #mojo
11:14 marty joined #mojo
11:17 ObseLeTe joined #mojo
11:36 GnomeStoleMyBike joined #mojo
11:36 GnomeStoleMyBike Guys big question because i'm going crazy
11:37 GnomeStoleMyBike i have something like this in router
11:37 GnomeStoleMyBike $router->post("/v1/queue_errors/:id​/retry")->to("queue_errors#retry");
11:37 GnomeStoleMyBike when i try
11:37 GnomeStoleMyBike /v1/queue_errors/11/retry
11:37 GnomeStoleMyBike it complains "None of these routes matched your GET request for /v1/queue_errors/11/retry"
11:37 stephan48 post <-
11:37 GnomeStoleMyBike anyone can enlighten me here
11:38 GnomeStoleMyBike oh freak
11:38 GnomeStoleMyBike i tricked my self
11:38 GnomeStoleMyBike thanks
11:38 GnomeStoleMyBike lol
11:38 stephan48 :)
11:38 GnomeStoleMyBike that was retarded
11:38 GnomeStoleMyBike self trolling
11:38 GnomeStoleMyBike for the win
11:38 stephan48 ah dont worry
11:38 GnomeStoleMyBike sorry for this
11:38 stephan48 happens from time to time
11:50 marcus ohhay
11:51 spleenjack joined #mojo
11:57 SmokeMac_ joined #mojo
11:57 marty joined #mojo
12:10 marty_ joined #mojo
13:05 asarch joined #mojo
13:17 bobishh left #mojo
13:19 Mike-PerlRecruiter_ joined #mojo
13:23 mpgutta joined #mojo
13:25 bluescreen joined #mojo
13:27 rem_lex| joined #mojo
13:28 d4rkie joined #mojo
13:44 gryphon joined #mojo
13:56 marty joined #mojo
13:57 marty joined #mojo
14:16 alester joined #mojo
14:17 * sri yawns
14:18 alester I'm doing a maintenance release of Carp::Assert::More.  Anyone got assertion convenience functions they need to have added?
14:18 alester Does anyone even use assertions any more?
14:18 alester Or are they so 2005?
14:20 * sri has never used them
14:20 sh4 joined #mojo
14:29 cosimo alester: they aren't
14:35 arthas joined #mojo
14:42 knshaum joined #mojo
14:57 marty joined #mojo
14:59 sh4 joined #mojo
15:02 dch joined #mojo
15:05 dch "squish" is not exported by the Mojo::Util module. Do you want to fix it or is that intentional?
15:06 dch or is my install out of date.
15:09 dch sorry for noise, just bumped my mojo & it's all good again.
15:09 dpetrov_ joined #mojo
15:25 fhelmber_ joined #mojo
15:27 labrown joined #mojo
15:41 derp joined #mojo
15:42 marty joined #mojo
15:44 derp Hi! If have a problem with generating absolute URLs. I call $self->url_for('route_name')->to_abs in an action and the result is just a path like /foo/bar. I analized the URL object before to_abs and the base has no scheme too. Only the base of the base has scheme and port information. What am I doing wrong?
16:07 xaka joined #mojo
16:15 nicomen $self->url_for->base ?
16:19 amirite joined #mojo
16:25 marty joined #mojo
16:30 inokenty joined #mojo
16:37 judofyr joined #mojo
16:38 sri memowe: "temporarily disabled the (not so important) mount test because FindBin dies in Mojo::Server" wut?
16:39 sri i thought we fixed FindBin
16:44 * sri wonders if cpantesters is dead again... no results for almost two weeks http://www.cpantesters.org/distro​/M/Mojolicious.html#Mojolicious-3.53
16:50 inokenty joined #mojo
16:50 scottw joined #mojo
16:53 scottw good morning! Anyone have advice for mixing blocking and non-blocking Mojo::UserAgent requests? I'm getting "Non-blocking requests in progress" errors, and I'm wondering if I need to convert all of my blocking requests to be non-blocking.
16:54 sri use separate user agents
16:58 scottw when I use a separate agent, I get "premature connection close"; is there something I need to do to wait for that agent? This is in a helper()
16:59 scottw I feel I'm missing something, maybe with IO::Loop?
17:02 scottw here's the gist:
17:02 scottw get '/' => sub {
17:02 scottw my $self = shift;
17:02 scottw my $results = $self->ua->get('foo');
17:02 scottw $self->do_async_thing();
17:02 scottw $self->render($results);
17:02 scottw };
17:02 scottw helper do_async_thing => sub {
17:02 scottw my $self = shift;
17:02 scottw my $ua = new Mojo::UserAgent;
17:02 scottw $ua->get('bar');
17:02 scottw }
17:02 sri please don't paste into the channel
17:03 scottw (sorry!)
17:03 scottw (are there channel rules somewhere? I hardly ever use IRC)
17:03 sri it's considered extremely rude pretty much everywhere on irc
17:04 scottw good to know :)
17:05 sri your code doesn't appear to contain anything async
17:05 sri you may want to look into the cookbook
17:05 scottw er, that do_async_thing() should have a callback
17:05 scottw I typed this from memory. Should be like $ua->get('bar', sub { … });
17:06 scottw the sub does some logging, etc. but nothing that renders.
17:06 sri ok, then you may be misunderstanding async
17:06 sri http://mojolicio.us/perldoc/Mojoliciou​s/Guides/Cookbook#Backend_web_services
17:06 sri that shows how it's done right
17:07 marty joined #mojo
17:07 scottw yeah, I've been reading and re-reading that… does an async request necessarily mean it will render?
17:08 scottw All I really want is to get the client their response, and then make another UA request that may take a while without holding things up.
17:12 k0xa joined #mojo
17:34 scottw So am I just going about it wrong? An async UA call seemed to be the mojo way to go. In another life I'd fork() + exec().
17:35 sri i was just guessing based on the information provided
17:36 sri odds are i have no clue what you meant
17:36 scottw heh
17:36 scottw maybe I'll explain what I'm trying to do better, rather than ask about the solution.
17:38 scottw I have a handler that makes a synchronous call to another service and returns that data to the client. When that synchronous call is made, I want to also make another call to a much slower web service. The results of that call are never returned to the client.
17:39 scottw I don't want to hold up other client requests because of this slow call. That's the nutshell version.
17:41 sri mixing blocking and non-blocking can be annoying, i would just make everything non-blocking
17:41 sri blocking request could block so long that the non-blocking one times out and stuff like that...
17:42 scottw yeah… I think that's the general direction I was going… but I'm not looking forward to rewriting everything in continuation style :)
17:43 scottw thanks for the advice
17:49 marty joined #mojo
17:57 Leandr joined #mojo
18:16 sri hmmmm
18:17 * sri wonders if we want next_sibling/previous_sibling in Mojo::DOM
18:17 sri i happen to have an implementation
18:18 jberger http://stackoverflow.com/questions/10671857/how-​to-match-a-particular-tag-value-and-the-get-the-​result-from-the-previous-tag/10675597#10675597
18:19 jberger case example?
18:19 * sri doesn't follow
18:19 sri i'm talking about tree walking
18:20 jberger oh, not on the collection but on the tree, nm
18:20 sri $dom->at('foo > bar > baz')->next_sibling->next_sibling->tag
18:20 sri yea
18:28 sri http://hastebin.com/raw/vabavomoqe # prototype patch if there is interest
18:29 sri perhaps it should just be ->next and ->previous
18:30 sri as usual, if there is no feedback the patch gets thrown away
18:31 marty joined #mojo
18:35 bjoernfan sri: I think I could make use of that. I use that with jquery for other stuff. If that's what you wanted to hear.
18:36 sri bjoernfan: it's a good start :)
18:36 bjoernfan I use that for "next table row" in jquery, where a "forearch row" doesn't really fit.
18:37 bjoernfan Can't remember the exact use case now though.
18:38 sri hmm, jquery just calls it .prev and .next
18:40 bjoernfan But they probably don't have steps and allt those other scary Mojo features. :)
18:40 bjoernfan But maybe you get "next what" from context anyway.
18:40 scottw I'm a fan of the new methods (I use jQuery all the time for stuff like this). The names aren't important to me.
18:41 sri well, jquery serves a different purpose than Mojo::DOM
18:41 sri Mojo::DOM is mostly for data extraction, while jquery is mostly used for rewriting
18:43 scottw "stuff like this" => walking the DOM for some purpose
18:43 scottw sorry
18:55 memowe joined #mojo
19:03 fhelmber_ joined #mojo
19:03 sri hmm
19:03 sri perl -Ilib -Mojo -E 'g("mojolicio.us")->dom->find("h1, h2, h3")->pluck("previous")->grep(sub { !!$_ })->pluck("type")->join("\n")->say'
19:04 sri elements that appear before a h1, h2 or h3
19:05 sri then again, i guess stuff like that is better solved with css4 selector subject support
19:05 sri in case that ever gets released
19:11 jberger actually, back to my so answer: $dom->find('TR TD')->first(qr/sample/)->previous would work then, I just have to drop out from the collection back to a/the dom object
19:12 memowe joined #mojo
19:14 marty joined #mojo
19:19 batman this is really strange... i'm running the mojo app on localhost, and when i connect to it from a browser on the same computer it can read and set session cookie
19:20 batman but there's no cookie set when visiting the page from a browser inside windows inside virtualbox :S
19:20 batman i don't get it...
19:20 batman i tried chrome, ie and opera in windows on virtualbox, but none read/write cookies...
19:44 sri marcus, tempire, crab: thoughts on next/previous?
19:50 jberger in chrome, open dev tools and look at the resources tab -> cookies
19:50 jberger ?
19:50 jberger but you probably knew that
19:56 marty joined #mojo
19:57 good_news_everyone joined #mojo
19:57 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/Pd1I4Q
19:57 good_news_everyone mojo/master f6305c5 Sebastian Riedel: added next and previous methods to Mojo::DOM
19:57 good_news_everyone left #mojo
19:58 sri try it!
20:03 jberger sri: works for my SO question and aforementioned new code
20:03 marcus sri: +1 from me, seems convenient.
20:03 sri \o/
20:03 * sri gives it a +1 too
20:04 jberger I don't get a vote, but I think it looks handy
20:04 marcus jberger: we still value your opinions :)
20:04 jberger marcus: thanks
20:05 jberger marcus: have you tried galileo since I enabled the non-sanitizing editor?
20:05 marcus jberger: yes, it worked, and now shows the google maps embed :)
20:05 jberger perfect
20:06 marcus I now need to hunt down my designer to make a template for mojocon, and to secure the lease for our newer office, and I'm ready to go live with a galileo based site :)
20:07 good_news_everyone joined #mojo
20:07 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/hutP_A
20:07 good_news_everyone mojo/master d3f92df Sebastian Riedel: added examples for next and previous methods in Mojo::DOM
20:07 good_news_everyone left #mojo
20:07 jberger holy poop, I didn't expect that! wow, let me know how it goes
20:08 jberger I'm all self concious all of a sudden
20:10 marcus jberger: don't worry, I still have a few hurdles to jump
20:10 marcus like figuring out how to run it with hypnotoad :)
20:10 jberger I always do hypnotoad `which galileo`
20:11 jberger I was poking sri, trying to allow something like galileo start hypnotoad, but he has convinced me that its a much bigger problem than I had thought
20:11 marcus I guess that will work
20:14 xaka joined #mojo
20:14 marcus jberger: there's no easy way to make galileo load an additional css stylesheet from the static folder?
20:14 marcus or is there?
20:17 jberger the latest release added support for a static files directory
20:17 marcus yes, I saw that.
20:17 jberger I had intended it more for images
20:17 jberger I guess you need some way to access the header
20:18 jberger for a stopgap, the file header "header_common.html.ep" gets added to every page
20:19 jberger its not technically user accessible, but you could drop a line in there while I think of how to expose something nicely
20:19 jberger I also need to add some way to have footers soon
20:20 * jberger suddenly feels that way you get when a guest is coming over and you haven't vacuumed in a while
20:21 marcus haha
20:22 marcus jberger: everything would be great if it wasn't for the damn users.
20:22 jberger exactly!
20:22 jberger no, actually just like for Alien::Base
20:22 jberger I'm not going to be able to find all those places where users need flexibility, please keep letting me know
20:26 sri buu: i think you were asking about sibling methods, now they exist!
20:34 lukep joined #mojo
20:35 jberger marcus: what about configuration keys like "extra_css" and "extra_js"
20:35 jberger which add those files to "header_common.html.ep" if designated
20:37 jberger and they would do so after loading everything else, so it allow you to override things
20:38 marty joined #mojo
20:45 memowe sri: had no time to investigate
20:49 memowe BTW: is Mojo::Facebook's author jhthorsen@github here?
20:53 scottw left #mojo
20:55 batman memowe: yes
20:55 batman but you will never see him and batman in the same room ;)
20:56 memowe Cool. :)
20:56 batman memowe: any feedback or question?
20:58 memowe Not yet.
20:58 memowe But cool to know that you're here.
20:59 batman ok. have you used it?
21:00 memowe just cloning, making test and installing it.
21:00 batman ok. you can install it from cpan as well...
21:01 batman https://metacpan.org/module/Mojo::Facebook
21:01 batman and it's only async...
21:03 memowe I wondered if it's possible to use it as a good readable alternative for Facebook::Graph
21:03 batman i'm using it, so i would answer "yes" :)
21:03 batman no idea why Facebook::Graph is so big and clumsy...
21:04 batman could be because of over-moose-ifying. (like i've done sooooo many times before :( )
21:05 memowe I'll try to get some stuff to work and will report how it worked for me. :)
21:05 batman cool.
21:05 batman btw: i've only implemented the things i use. if you need anything else, then let me know and i'll see if i can fix it
21:05 batman or even better: fix it yourself and send me a pull request
21:05 buu sri: Zomg! Siblings!
21:06 memowe batman: eh eh
21:07 batman memowe: things i haven't implemented "by design" is apprequest stuff, since there's almost nothing exiting i can do on the server side
21:08 batman memowe: i really need to go home now... been too long at work
21:08 memowe I basically want to start with a simple facebook login in my app. So I don't know how to get the access_token for the constructor call.
21:08 memowe OK, no problem.
21:08 batman memowe: won't be in #mojo until tomorrow morning. (about 12H from now)
21:08 memowe Enjoy your evening! :)
21:09 memowe Good night and thanks for existing! :)
21:09 batman memowe: ah! facebook login: then you need to use marcus' module Mojolicious::Plugin::Outh2
21:09 memowe OK, thanks
21:09 batman Mojolicious::Plugin::OAuth2 even
21:09 memowe I knew it, it felt OAuthy from the beginning. :P
21:10 batman Mojolicious::Plugin::OAuth2 is used to retrieve the access_token
21:10 marcus jberger: that sounds sensible
21:10 batman then afterwards, you load in my module and do stuff like: $self->facebook($access_token)->fetch({}, sub { ... });
21:11 batman memowe: good luck. see you around.
21:20 marty joined #mojo
21:26 vervain joined #mojo
21:43 good_news_everyone joined #mojo
21:43 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/GENFuQ
21:43 good_news_everyone mojo/master be8cfc7 Sebastian Riedel: a few more sibling tests
21:43 good_news_everyone left #mojo
22:02 marty joined #mojo
22:08 bluescreen joined #mojo
22:09 jberger marcus: as kids come trick-or-treating, this was an easy one to knock out
22:10 jberger see Galileo v0.011
22:10 jberger hot off the presses
22:10 marcus jberger++ # karma knight
22:10 marcus oh, enopurl :(
22:11 jberger what should it have done?
22:11 jberger I know about ALL GLORY TO THE HYPNOTOAD
22:36 sri purl!!! :,(
22:37 alnewkirk I believe i'm getting weird behavior rendering static files suddenly
22:38 alnewkirk I'm now getting an intermittent response "404 Not Found (from cache)"
22:38 alnewkirk which is very weird
22:39 alnewkirk why would a static file return 404 intermittently?
22:41 xaka what happened to purl btw?
22:41 marcus 23:41:04 purl ~ jberger has neutral karma
22:41 marcus xaka: she keeps forgetting this place somehow
22:41 sri so much wasted karma
22:41 marcus when she's rebooted or whatever.
22:42 xaka woot, i though purl is he, oh my...
22:42 marcus purl's a gurl
22:42 xaka what size?
22:43 marcus bot-sized
22:44 marty joined #mojo
22:44 jzawodn joined #mojo
22:47 alnewkirk hello?
22:47 sri this is dog
22:47 sri http://i2.kym-cdn.com/entries/icons/origi​nal/000/007/447/hello-yes-this-is-dog.png
22:49 * sri is a very bad temp purl
22:51 alnewkirk can anyone see this message?
22:52 xaka which one?
22:53 avenj alnewkirk: no
22:55 davido joined #mojo
22:57 alnewkirk hrmmm, well this sucks
22:57 jnbek^dt joined #mojo
22:57 davido sri: Yes, CPAN testers is down "temporarily."  Andreas told me that Barbie is feverishly working on getting things back on their feet again.  Furthermore, reports *are* still being generated, and she's still capturing them, so once it gets resolved all of the reports will be indexed into the cpan testers site again.
23:01 stocks joined #mojo
23:13 janus joined #mojo
23:14 janus ALL GLORY TO THE HYPNOTOAD!
23:16 alnewkirk BOOM -- http://paste.scsys.co.uk/212392
23:16 alnewkirk shit just keeps blowing up
23:17 alnewkirk in case you were wondering, Anaio::Router line 3 is "use Mojo::Base 'Mojolicious';"
23:17 alnewkirk which cause a chain-reaction is foobar
23:19 sri davido: oh noes!
23:22 * sri loves done_testing()
23:25 marty joined #mojo
23:31 vervain joined #mojo
23:35 jpn joined #mojo
23:36 Britzel Hi. SOmehow I can't access flash values in XSlate templates. What am I missing?
23:38 Britzel nvm
23:48 rem_lex|pivo joined #mojo
23:54 dabudabu joined #mojo

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