Camelia, the Perl 6 bug

IRC log for #mojo, 2011-06-10

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

All times shown according to UTC.

Time Nick Message
00:04 Akron left #mojo
00:14 shonorio left #mojo
00:47 perlrocks Twitter: "Sao Paulo Perl Mongers: Scraping with Mojolicious easy (and Atom feeds!): Http://disq.us/27l9r9 (@ _sppm)" (pt) --creaktive http://twitter.com/creaktiv​e/status/78986628869259264
00:49 Alias joined #mojo
01:55 j3nnn1 left #mojo
01:58 j3nnn1 joined #mojo
02:28 AigleNoi1 joined #mojo
02:33 AigleNoir left #mojo
02:43 shonorio joined #mojo
02:55 shonorio left #mojo
03:07 janus joined #mojo
03:53 mohan left #mojo
04:10 mohan joined #mojo
04:10 alnewkirk joined #mojo
04:21 perlrocks Twitter: "@ Danny_Fr Mojolicious: P" (fr) --perlninja http://twitter.com/perlninj​a/status/79040473037152256
04:23 perlrocks Twitter: "@Danny_Fr No unfortunately not really, but Mojolicious works fine for things like that and it scales like a dragon on crack :D (ho wordjoke)" --perlninja http://twitter.com/perlninj​a/status/79041063163142144
05:14 ysyrota joined #mojo
05:58 Foxcool joined #mojo
06:02 d4rkie left #mojo
06:23 marcus chansen: switching to ssd will make a huge performance change, but I agree, the 15" is better for coding. Switched back about a year ago as well
06:23 marcus I am tempted by the 13" mba tho
06:35 AmeliePoulain joined #mojo
06:46 Alias left #mojo
06:49 d4rkie joined #mojo
06:55 fhelmber_ joined #mojo
06:56 bosphoru_ left #mojo
07:05 cosmincx joined #mojo
07:22 arpadszasz joined #mojo
07:30 robinsmidsrod left #mojo
07:32 robinsmidsrod joined #mojo
07:34 Foxcool left #mojo
07:36 tabbi joined #mojo
07:52 Foxcool joined #mojo
07:59 AmeliePoulain left #mojo
08:00 zakame joined #mojo
08:07 tabbi left #mojo
08:09 Sugar joined #mojo
08:09 zakame left #mojo
08:17 AmeliePoulain joined #mojo
08:22 bosphorus joined #mojo
08:48 Sugar left #mojo
09:03 Foxcool left #mojo
09:22 Foxcool joined #mojo
09:34 preflex left #mojo
09:37 preflex joined #mojo
09:39 * sri yawns
09:41 cosmincx left #mojo
09:58 cosmincx joined #mojo
09:59 * crab uses Mojo::DOM to parse horrible XML responses from a web service that takes humongous XML blobs... as a GET query parameter.
10:29 koban joined #mojo
10:33 Sugar joined #mojo
10:34 Foxcool left #mojo
10:42 arpadszasz left #mojo
10:53 Foxcool joined #mojo
11:34 Akron joined #mojo
11:58 arpadszasz joined #mojo
12:05 Foxcool left #mojo
12:21 Foxcool joined #mojo
12:35 Foxcool left #mojo
12:39 SmokeMachine joined #mojo
12:40 dekimsey joined #mojo
12:45 j3nnn1 left #mojo
12:50 GitHub187 joined #mojo
12:50 GitHub187 mojo: master Sebastian Riedel * 5ee1b77 (13 files in 6 dirs): added test for broken session cookie - http://bit.ly/iod20Z
12:50 GitHub187 left #mojo
12:54 Foxcool joined #mojo
12:57 sh9 joined #mojo
12:59 sh9 left #mojo
13:04 preflex left #mojo
13:05 Foxcool left #mojo
13:06 preflex joined #mojo
13:13 koban left #mojo
13:14 sri oooh
13:14 sri the file browser in macvim got updated again
13:20 sri no more drawer, instead a cool splitview
13:26 mattastrophe left #mojo
13:31 SmokeMachine left #mojo
13:33 metaperl left #mojo
13:37 perlrocks Twitter: "The new MacVim sidebar looks awesome. #perl #mojolicious http://t.co/tcQXXz2" --kraih http://twitter.com/kraih/status/79180367738834944
13:39 SmokeMachine joined #mojo
13:46 perlrocks Twitter: "I want one like this on GVim. ♻ @ kraih MacVim The new sidebar looks awesome. Perl # # mojolicious twitpic.com/59jray" (pt) --demetrioneto http://twitter.com/demetrion​eto/status/79182648605552640
13:47 AmeliePoulain left #mojo
13:56 perlrocks Twitter: "Mojolicious going to be a believer" (ja) --Cside_ http://twitter.com/Cside_/status/79185155352297472
14:01 metaperl joined #mojo
14:04 GabrielVieira joined #mojo
14:05 perlrocks Twitter: "I think quite Mojolicious." (ja) --hisaichi5518 http://twitter.com/hisaichi5​518/status/79187531362603008
14:10 GabrielVieira2 left #mojo
14:11 Akron Damn. I'm not able to start my dotcloud app following sris recipe. Feeling stupid. :(
14:13 marcus sri: Nice, but it doesn't really behave like a project folder.
14:13 marcus sri: I would like to do something like 'open folder', and get a vim window with that project in the sidebar.
14:13 marcus rather than using that selector on the top there.
14:13 sri umm
14:13 sri use mvim?
14:14 sri does exactly that
14:14 marcus eh?
14:14 sri cd repo/myapp; mvim
14:15 marcus seems my mvim isn't the one that's tied to the sidebar thingie.
14:16 marcus hmm, MacVim is using node.js now? :o
14:17 marcus oh, n/m, just my nvm bash prompt
14:22 SmokeMachine left #mojo
14:31 SmokeMachine joined #mojo
14:31 GitHub166 joined #mojo
14:31 GitHub166 mojo: master Sebastian Riedel * 82c6d4a (20 files in 9 dirs): made dns roundtrip test more reliable - http://bit.ly/jI9RmX
14:31 GitHub166 left #mojo
14:41 Sugar hello
14:41 Sugar can i render some file from template to another file?
14:44 Akron Sugar: use partial rendering: http://search.cpan.org/~kraih/Mojolicio​us-1.42/lib/Mojolicious/Guides/Renderin​g.pod#Partial_Rendering_%28partial%29
14:45 Sugar ok thanx
14:45 Sugar but what is this doing?
14:45 Sugar http://search.cpan.org/~kraih/Mojolicious-1.​42/lib/Mojo/Template.pm#render_file_to_file
14:46 metaperl_ joined #mojo
14:47 metaperl left #mojo
14:49 Akron Maybe exactly what you want. ;) But it's another API layer. It depends on the use case, what fits better to your app. But it looks fine to me, using render_file_to_file.
14:49 bosphorus left #mojo
14:50 Sugar ok, thanks for helping, i'll try both methods and make decision
14:51 bosphorus joined #mojo
14:53 sri Mojo::Template is very low level, prolly not what you want
14:55 Sugar I want to generate config file for another app (not mojo and even Perl) from template
14:55 sri then it might be what you want
14:56 Sugar $self->render - it accesses to Mojo::Template class?
14:57 Sugar $self - is mojo-app
14:57 sri no
14:57 Sugar i might construct my own class Mojo::Template?
14:57 sri yes
14:58 Sugar ok, thanks
15:07 Akron sri: Do you know if dotcloud changed something in the way of deployment? Or should your recipe be up to date?
15:08 sri Akron: no idea
15:08 sri i would be surprised if they broke the few commands i used
15:09 Akron Yeah ... their irc is quite atm. Everything worked fine, but the uwsgi connection seems to be broken. Although I'm no nginx expert.
15:12 sri hmm, my tutorial is not linked from http://docs.dotcloud.com/components/perl/
15:12 sri weird
15:13 cosmincx left #mojo
15:14 sri anyway, just contact their support
15:15 Akron Yes - I did. I will notify you if they changed something. But I think, I did something wrong.
15:19 cosmincx joined #mojo
15:22 d4rkie left #mojo
15:25 ysyrota left #mojo
15:52 sri https://github.com/jtaby/waldo # interesting macvim addon
15:52 SmokeMachine left #mojo
15:59 Sugar how to give params to here http://search.cpan.org/~kraih/Mojolicious-1.​42/lib/Mojo/Template.pm#render_file_to_file ?
16:00 Sugar i wrote
16:00 Sugar $t->render_file_to_file( "net.html.ep", "tmp/config", struct => $struct    );
16:00 Sugar but get an error:  'message' => 'Global symbol "$struct" requires explicit package name at tmpl/setup/net.html.ep line 1,
16:01 sri that's right, Mojo::Template is low level
16:01 sri arguments go into @_
16:01 sri see documentation
16:01 Sugar ok thanks
16:01 Sugar i'll stop at partial-render
16:01 sri haha
16:03 SmokeMachine joined #mojo
16:03 Sugar hmm.. i'm understood
16:05 Sugar it warns about error: 'syntax error at tmpl/setup/net.html.ep line 2, near "NET_MASK[0] = "<%== $struct->{mask0} %>""
16:05 Sugar but i don't see any error
16:07 SmokeMachine left #mojo
16:08 fmerges joined #mojo
16:08 Sugar what is wring with it line?
16:09 Sugar *wrong
16:09 Akron left #mojo
16:10 Sugar left #mojo
16:13 marcus sri: waldo looks exactly like what I was looking for the other day.
16:13 marcus sri++
16:15 marcus at this pace I will be able to ditch textmate pretty soon
16:21 sri i still hate buffer management though :/
16:21 d4rkie joined #mojo
16:27 sri the fact that you can't reuse buffer numbers annoys the hell out of me
16:27 sri it would be so nice being able to bind the first 10 buffers to keys and just reuse those
16:28 sri buffers should also be tied to tabs
16:33 marcus mikegrb: is linode using mojolicious?
16:34 marcus sri: what would you say is the most impressive current mojolicious user?
16:34 marcus traffic/fame-wise
16:35 Foxcool joined #mojo
16:35 fmerges left #mojo
16:37 sri marcus: i'm not supposed to say :(
16:37 marcus well, that you are supposed to say then.
16:37 marcus also, msg me? :D
16:38 sri can't do, not sure about those that i can talk about...hmm
16:38 crab it kinda sucks that people want to hide what they're using.
16:38 sri big time
16:39 marcus yeah, get out of the closet, guys!
16:39 marcus join the mojolicious parade, already!
16:39 marcus I'd be surprised if the some of the big russian players aren't using mojolicious for something.
16:39 sri https://github.com/kraih/mojo/wiki/Pro​jects-and-companies-using-mojolicious # ADD YOURSELF ALREADY!!!!
16:42 sri i suppose the biggest user would be a telco or bank
16:42 sri or one of the big russian sites
16:45 * marty proudly stands up and shouts "I USE MOJOLICIOUS.  IT IS BETTER THAN SEX!"
16:46 marty oh wait, maybe I stumbled on why I dont get any sex.  hmmmmmm
16:46 sri ALL GLORY TO THE HYPNOTOAD!
16:46 marty get a grip sri, it's just... ALL GLORY TO THE HYPNOTOAD!
16:47 crab sex with hypnotoad?
16:50 D4RK-PH0ENiX joined #mojo
16:51 D4RK-PH0ENiX left #mojo
16:51 d4rkie left #mojo
16:51 d4rkie joined #mojo
16:55 mikegrb marcus: just internally :/
16:55 mikegrb the admin interface for the backups service is all mojo
16:56 sri add it to the wiki!
16:56 mikegrb k
16:56 * sri cracks the whip
16:56 sri \o/
17:03 mikegrb done <3
17:04 sri mikegrb++
17:06 sri sometimes i'm really tempted to add a little call home feature to Makefile.PL :)
17:06 sri and then turn the addresses into company names
17:07 crab suddenly a lot of big ISPs would become big mojo users!
17:07 sri those would get sorted out of course ;p
17:07 bosphorus left #mojo
17:08 sri but i imagine you could get a good list by looking for corporate proxy servers
17:09 sri i guess people wouldn't even notice if we made it a test that requests a site from mojolicio.us ;p
17:10 sugar joined #mojo
17:15 stephen joined #mojo
17:16 crab "Checking for more recent version..."
17:16 sri :D
17:17 mikegrb it could fork off an async get for every request to any mojolicious app :p
17:18 sri i think people would notice that ;p
17:18 mikegrb oh, we have two internal uses of mojo, forgot the thing a python dev wrote yesterday!
17:24 sri yay, t/ is growing more quickly than lib/ now... 609 lines of code difference already :)
17:29 D4RK-PH0ENiX joined #mojo
17:34 d4rkie left #mojo
17:39 D4RK-PH0ENiX left #mojo
17:39 d4rkie joined #mojo
17:42 amoore joined #mojo
17:49 sh9 joined #mojo
17:56 sugar left #mojo
17:56 abra left #mojo
18:08 abra joined #mojo
18:20 tempire left #mojo
18:27 arpadszasz left #mojo
18:50 Foxcool left #mojo
18:53 cybertron joined #mojo
18:58 jorol joined #mojo
19:05 Foxcool joined #mojo
19:07 SmokeMachine joined #mojo
19:11 jorol hi all
19:12 * marty waves
19:13 jorol how can I make a 303 redirect within a Mojolicious::Lite app?
19:14 marty http://mojolicio.us/perldoc/Mojolicio​us/Guides/Routing#Routing_Destination
19:15 sri that doesn't seem like the right answer
19:15 marty no?
19:16 marty oh ya.  You're right.  it wont set the header
19:16 jorol i put an example here https://gist.github.com/1019526 where I use redirect_to()
19:17 sri $self->render_text('Redirecting!', status => 302); $self->res->headers->location('http://mojolicio.us');
19:17 sri you want something like that
19:17 jorol thanx! I will try that
19:18 sri in this case a look at how redirect_to does it would have been a good idea too :)
19:18 sri https://github.com/kraih/mojo/blob/mas​ter/lib/Mojolicious/Controller.pm#L204
19:19 gbacon_ joined #mojo
19:19 sri it's rather simple
19:22 sri in case you want to add your own redirect_to_with_303 helper or so ;)
19:23 jorol ok, thanks for the hints!
19:24 SmokeMachine left #mojo
19:24 * sri just noticed how many futurama quotes there are in that file, damn!
19:27 jorol "Lick my frozen metal ass." :-)
19:29 sri :D
19:33 kaare joined #mojo
19:46 SmokeMachine joined #mojo
19:58 kaare left #mojo
19:58 cybertron is now known as cybertronian
20:12 jorol left #mojo
20:15 amoore left #mojo
20:45 Akron joined #mojo
20:48 tempire joined #mojo
20:56 sh9 left #mojo
21:05 cybertronian left #mojo
21:10 dekimsey left #mojo
21:22 tempire so
21:22 tempire where is this macvim sidebar?
21:23 sri over there ->
21:24 sri <- and now over there
21:24 tempire damn colloquy for hiding it from me
21:25 sri https://github.com/downloads/allo​y/macvim/MacVim.100620111030.zip
21:28 Akron sri: The dotcloud-thing was my fault. Your recipe works perfectly fine and should be added as a tut.
21:28 sri \o/
21:31 gbacon_ are content blocks always for literal text, i.e., is it an error to place HTML or call tag helpers inside one?
21:31 sri it's all fine
21:31 gbacon_ I meant reusable template blocks.. I ask because my HTML is being percent-encoded
21:31 sri quite sure the lite tutorial has many examples
21:32 sri blocks are all the same
21:32 gbacon_ I tried rewriting it as calls to tag helpers, but the result was percent-encoded too
21:33 sri i'll look into it
21:35 sri think i know what you mean
21:40 sri you get escaped html because you insert the result of the block with %=
21:40 sri instead of %==
21:41 sri not sure if this should be considered a bug or feature
21:45 gbacon_ is there an incantation that involves templatized HTML, or is %== my best bet?
21:45 gbacon_ oh
21:45 tempire I can see this sidebar would be great for textmate lovers.  doesn't beat nerdtree for usability, though.
21:45 gbacon_ you mean %== at the $block->("call")?
21:46 JonChisciotte joined #mojo
21:48 sri yes
21:48 sri hmm... i'm not sure what the right behavior is
21:50 shonorio joined #mojo
21:51 metaperl_ I need to create a URL that has the same IP number as the incoming request but I need to change the port to 3001 instead of the port 3000 that the incoming request came on.
21:52 moritz $c->req->url->clone->port(3000)
21:52 moritz or so
21:52 moritz erm, 3001
21:56 shonorio left #mojo
21:59 sri gbacon_: think we can consider this a bug
21:59 gbacon_ sri: glad to help out then!
22:00 metaperl_ moritz - when you print that out, all you get is the path, not the full URL including IP and port ....
22:04 GitHub120 joined #mojo
22:04 GitHub120 mojo: master Sebastian Riedel * a13e7e5 (7 files in 6 dirs): fixed a bug in Mojo::Template that caused template blocks to be auto escaped - http://bit.ly/ieTSgi
22:04 GitHub120 left #mojo
22:04 sri gbacon_: that should solve the issue
22:05 metaperl_ This is my controller code - http://pastebin.com/UQbKbSMg  ... and printing the new url only returns the path... is there any way to get the full URL?
22:06 sri metaperl_: ->to_abs
22:06 SmokeMachine left #mojo
22:07 sri we follow html semantics, so our URLs often have a hidden base part
22:08 gbacon_ left #mojo
22:14 metaperl_ sri  my $newurl = $self->req->url->clone->port(3001)->to_abs; warn $abs ... that prints the URL with port 3000
22:15 sri of course
22:15 sri you are merging in the base *after* assigning the port
22:16 metaperl_ "merging in the base" ... I dont what you mean by 'base' and what should I do to get the full URL to have port 3001?
22:17 sri perldoc Mojo::URL
22:19 GitHub194 joined #mojo
22:19 GitHub194 mojo: master Sebastian Riedel * 6c98fdc (2 files in 1 dirs): small optimization - http://bit.ly/iYvr1C
22:19 GitHub194 left #mojo
22:19 baton8 left #mojo
22:20 sri just read that and think about how URLs work in HTML
22:21 metaperl_ http://search.cpan.org/~kraih/Mojo​licious-1.42/lib/Mojo/URL.pm#clone  implies that ->clone returns a new URL and http://search.cpan.org/~kraih/Mojo​licious-1.42/lib/Mojo/URL.pm#port implies that my new URL gets set and returned so I dont see how it is referring to the old one ... 'base' in this document cannot be the base you meant in your above comment
22:21 metaperl_ I suppose I can do it manually like the SYNOPSIS
22:22 sri i mean exactly that base
22:23 sri the url you get is the absolute incoming url in its relative form with base part store in the base attribute
22:23 sri so you have to clone it, make it absolute and then adjust it to your needs
22:24 metaperl_ oh, so to_abs was not stringifying it... only to_string does that
22:25 sri dump the url object after clone
22:25 sri i think that will illustrate it best
22:25 perlrocks Twitter: "I  meant Mojolicious" --SharonLByrd http://twitter.com/SharonLBy​rd/status/79313353675247616
22:30 metaperl_ Ok taht works. thanks
22:36 JonChisciotte left #mojo
22:42 Akron left #mojo
22:53 gbacon_ joined #mojo
22:57 metaperl_ left #mojo
23:08 Drossel left #mojo
23:09 Kulag joined #mojo
23:22 metaperl_ joined #mojo
23:24 preflex left #mojo
23:27 preflex joined #mojo
23:50 marty left #mojo
23:57 marty joined #mojo

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