Camelia, the Perl 6 bug

IRC log for #mojo, 2011-03-03

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

All times shown according to UTC.

Time Nick Message
00:27 xris left #mojo
01:09 dekimsey left #mojo
01:10 dekimsey joined #mojo
01:13 tempire hrm
01:13 tempire I want to override the embedded templates in the pod_renderer plugin
01:15 sri crab: over 3 hours without problem
01:15 sri i think we can assume it's platform specific
01:42 grim_fandango left #mojo
01:42 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya http://htn.to/LDrHMb Hatena Diary" (ja) --equinox79 http://twitter.com/equinox7​9/status/43123982433656832
01:43 tempire That almost sounds dirty
01:53 perlrocks Twitter: "# Perl # mojolicious "script file directly ..." in the script use Mojolicious:: Lite; before BEGIN {$ ENV {'MOJO_HOME'}='/ foo / bar'} if any ... http:// htn.to / sZRKzX" (ja) --kits_ http://twitter.com/kits_/status/43126732097720320
01:54 perlrocks Twitter: "# Perl # mojolicious "script file directly ..." in the script use Mojolicious:: Lite; before BEGIN {$ ENV {'MOJO_HOME'}='/ foo / bar'} if any ... http://htn .to / sZRKzX" (ja) --kits_ http://twitter.com/kits_/status/43126948007915520
03:03 stephen left #mojo
03:11 yakudzo joined #mojo
04:04 tl joined #mojo
04:05 tholen42 left #mojo
04:34 sigue left #mojo
04:47 sigue joined #mojo
05:06 crab sri: okay
05:06 crab s0va: (yes, i'm running the latest io::socket::ssl)
05:18 perlrocks Twitter: "Word on the street says @dot_cloud is working on #perl support! :) http://t.co/1ET7uLk #mojolicious" --kraih http://twitter.com/kraih/status/43178442660913152
05:54 kaare_ joined #mojo
05:58 Kulag left #mojo
05:58 Kulag joined #mojo
06:05 Kulag left #mojo
06:05 Kulag joined #mojo
06:08 fhelmber_ joined #mojo
06:31 minimalist Can you use blocks from imported templates?
06:34 koban joined #mojo
06:48 crab what do you mean?
06:52 minimalist say you have a block like this:
06:52 minimalist <% my $func = begin %> something <% end %>
06:53 minimalist if this block is defined in a file, how can you use it from another file?
06:53 ysyrota joined #mojo
06:53 su-bzero joined #mojo
06:55 crab i don't know. but you can use <% content_for 'x' => begin %> ... <% end %> and then elsewhere <%= content 'x' %>
06:56 minimalist I know but using this construct you can't pass varaibles.
06:57 minimalist Or at least not the way you can with begin ... end blocks.
06:57 crab so separate your block out into a file by itself and include it
06:57 minimalist doesn't work. all blocks are local for the file they are in
06:58 minimalist DefaultHelpers needs a new helper 'insert' which just inserts whatever you pass verbatim
06:59 minimalist so you can have libraries of blocks written in ep.
07:00 crab i have a "widget" helper that does approximately that.
07:01 crab $app->helper(widget => sub {my $self = shift;my $file = shift;if (ref $_[-1] && ref $_[-1] eq 'CODE') {my $block = pop;push @_, content => b($block->());}$self->rende​r_partial("widgets/$file", @_);});
07:02 marcus Sri: did you see http://www.modernperlbooks.com/mt/2011/02/roc​k-paper-scissors-butterfly-velociraptor.html?
07:02 minimalist it wont work in my case, because what I'm inserting is actually perl code that needs to get compiled. You widget inserts html.
07:04 crab wtf?
07:04 crab minimalist: nonsense
07:04 purl nonsense is http://stopgeek.com/wp-conte​nt/uploads/2007/07/sense.jpg or http://www.ratemyeverything.net/post/121​9/Bunny_with_a_Pancake_on_Its_Head.aspx
07:05 minimalist crab, ok let me give it a try
07:10 minimalist crab, negative. at least in my case.
07:11 minimalist this is the kind of blocks I'm talking about http://search.cpan.org/~kraih/Mojoli​cious-1.11/lib/Mojolicious/Guides/Re​ndering.pod#Reusable_Template_Blocks
07:11 minimalist have a bunch of those in a file, then include that file anywhere you need it and use the blocks.
07:13 crab i don't understand. if that's what you want, then why can't you do exactly that: have a bunch of those in a file and include that file anywhere you need it?
07:14 crab oh, ok. i guess i can see why that won't work.
07:14 crab well, i don't know what you tried with my helper, but it's approximately what i do with it, except each of those things is in a separate file.
07:15 crab widgets/hello would contain e.g. Hello <%= $name %>, <%= $content %>
07:16 crab and i'd say <%= widget 'hello' => (name => "minimalist") => begin %>whatever<% end >
07:16 crab s/>$/%>/
07:16 crab and either "whatever" or widgets/hello can contain whatever mixture of code and html any ep template can.
07:16 minimalist what happens if you don't specify name => 'whatever' ?
07:18 minimalist the widget will die
07:19 crab er, well, yes. but if you want to deal with that, you can write instead: stash 'name' || "unnammed person"
07:19 minimalist I know that, but that's not always comvenient.
07:20 minimalist *convenient
07:21 crab well, then don't leave out the name => 'whatever'
07:21 crab what else can i say?
07:21 minimalist thanks for trying to help, man. You don't have to solve my problem. I was just asking if this was available.
07:23 Kulag left #mojo
07:23 Kulag joined #mojo
07:23 crab :-)
07:30 perlrocks Twitter: "http://is.gd/GfUNbp http://is.gd/3J6iRj http://is.gd/ESx5wq Comparisn betwn #Mojolicious and #Dancer #perl framewrks. There’s no abs winner" --shoorick77 http://twitter.com/shoorick​77/status/43211711653744640
07:36 Christian joined #mojo
07:36 Christian morning
07:37 cxreg once a day
07:37 purl rumour has it once a day is usually okay
07:40 crab i'm glad it's not morning more often than once a day.
07:46 Kulag left #mojo
07:58 breaker313 joined #mojo
08:12 perlrocks Twitter: "@vtivti Objective criticism would be where you comment on Mojolicious without your personal feelings showing through in every sentence?" --perlninja http://twitter.com/perlninj​a/status/43222289071882240
08:21 snearch joined #mojo
08:28 AmeliePoulain joined #mojo
08:35 minimalist left #mojo
08:43 breaker313 left #mojo
08:43 breaker313 joined #mojo
08:52 yko joined #mojo
08:52 * yko waves
08:53 koban hi yko!
08:53 yko guys, you are great
08:53 * yko spreads love
08:54 snearch left #mojo
08:57 sigue left #mojo
08:59 yko left #mojo
09:03 sigue joined #mojo
09:09 Quai left #mojo
09:09 espent_ joined #mojo
09:13 espent left #mojo
09:13 perlrocks Twitter: "@perlninja: I lost the point of this conversation. If you use Mojolicious and think that what I write is subjective, good luck." --vtivti http://twitter.com/vtivti/status/43237622230953984
09:16 perlrocks Twitter: "@vtivti Sorry if you fail to understand the point, but oh well. Keep sniping at #mojolicious then :)" --perlninja http://twitter.com/perlninj​a/status/43238248054652928
09:17 crab it's so entertaining to have this little drama dumped upon irc
09:33 espent joined #mojo
09:33 espent left #mojo
09:36 sigue left #mojo
09:36 sigue joined #mojo
09:59 otaviof joined #mojo
10:53 spleenjack joined #mojo
11:20 breaker313 left #mojo
11:41 Quai joined #mojo
11:49 fmerges joined #mojo
12:17 breaker313 joined #mojo
12:20 koban left #mojo
12:20 koban joined #mojo
12:34 mattastrophe left #mojo
12:34 perlrocks Twitter: "Great news for #perl ! -> RT @kraih: Word on the street says @dot_cloud is working on #perl support! :) http://bit.ly/dZ3cHj #mojolicious" --freekey http://twitter.com/freekey​/status/43288200357216257
12:39 giwi joined #mojo
12:50 perlrocks Twitter: "Japanese translation of documents Mojolicious - Github Perl is a wonderful Japanese-made framework for Web document Mojolicious. Mojolicious early and called the Perl CGI from a web of fantastic ... http://bit.ly/g4MLTN" (ja) --webdesignStatio http://twitter.com/webdesignSt​atio/status/43292109842808832
13:06 fmerges left #mojo
13:13 koban left #mojo
13:14 mtths left #mojo
13:15 koban joined #mojo
13:21 Kulag joined #mojo
13:32 tl left #mojo
13:37 tholen joined #mojo
13:42 ispy_ joined #mojo
13:54 su-bzero is now known as su-bzero[off]
13:55 su-bzero[off] is now known as su-bzero
13:59 ver joined #mojo
13:59 AmeliePoulain left #mojo
14:00 su-bzero is now known as su-bzero[off]
14:01 tempire Neat.  sri, I thought you were just guerilla marketing regarding dotcloud, but their response is quite positive.
14:12 crab how does one find their response?
14:23 espent_ is now known as espent
14:25 kaare_ left #mojo
14:31 mattastrophe joined #mojo
14:36 koban left #mojo
14:36 koban joined #mojo
14:37 hoelzro joined #mojo
14:53 fmerges joined #mojo
15:04 koban left #mojo
15:07 breaker313 left #mojo
15:16 daviddelikat1 left #mojo
15:18 giwi left #mojo
15:35 tholen_ joined #mojo
15:38 giwi joined #mojo
15:42 ver left #mojo
15:47 Christian cu all
15:58 spleenjack1 joined #mojo
16:01 spleenjack left #mojo
16:12 su-bzero_ left #mojo
16:13 su-bzero joined #mojo
16:13 Christian left #mojo
16:14 sri crab: minimalist should have used helpers
16:24 GitHub42 joined #mojo
16:24 GitHub42 mojo: master Sebastian Riedel * 7078441 (2 files in 2 dirs): fixed small Mojo::DOM bug - http://bit.ly/fp8bfW
16:24 GitHub42 left #mojo
16:34 esskar left #mojo
16:42 spleenjack joined #mojo
16:45 tempire I created a customized version of M::P::PodRenderer, M::P::MyPod.  Customizing the templates is easy, but it doesn't pick up base64 encoded images.
16:48 spleenjack1 left #mojo
16:49 otaviof left #mojo
16:54 ysyrota left #mojo
17:16 minimalist joined #mojo
17:19 sri tempire: it was not designed for customization
17:42 minimalist sri, can you have a bunch of begin ... end blocks in a template and include them for use in another template?
17:42 sri that's what helpers are for
17:43 sri or partial templates
17:43 sri passing blocks is just wrong, breaks error reporting horribly
17:44 minimalist it would be nice to have a little library of blocks written in ep
17:45 sri make a tag helper plugin then
17:54 xris joined #mojo
18:01 perlrocks Twitter: "Task 39772 for sisyphus by crux DONE perl-Mojolicious.git=1.11-alt1" --girar_builder http://twitter.com/girar_buil​der/status/43370344697970688
18:10 giwi left #mojo
18:11 giwi joined #mojo
18:15 fmerges left #mojo
18:22 stephan48 what is the favorite way of connecting a app to f.e. apache2?
18:23 stephan48 still mod_proxy?
18:23 purl mod_proxy is probably nice
18:28 mateu stephan48: fastcgi seems to be a popular choice.
18:31 perlrocks Twitter: "@kraih sorry to bother again :P is there anything against using standard dbd::mysql in mojolicious? can it be persistent?" --f055 http://twitter.com/f055/status/43377912858152960
18:31 sri mod_proxy for sure
18:32 sri but only if you know what you're doing
18:32 sri fastcgi is prolly easier to get right
18:35 stephan48 really?
18:37 fhelmber_ left #mojo
18:39 stephan48 seems like fastcgi doesnt work so nice here, but proxy does(atleast it seem to work fairly nice...)
18:41 mateu got with what works for you
18:42 sri well, with proxy you might have to rewrite the base url sometimes
18:42 sri otherwise it is indeed easier
18:43 sri while fastcgi usually causes problems on the apache config side
18:44 sri i guess proxy problems are more pleasant to solve for perl programmers and fastcgi ones for sysadmins :)
18:45 stephan48 fastcgi and catalyst... caused me some headaches back in time ;)
18:46 stephan48 when the cat guys blamed the server implementation and the mod_fastcgi/fcgi guys the FCGI.pm guys and all together they blamed mod_deflate
18:46 crab poor mod_deflate.
18:46 * sri hates mod_deflate
18:46 crab by which i mean: what a lousy pile of junk it is.
18:46 crab heh :-)
18:47 stephan48 ;)
18:47 sri actually i hate all kinds of gzip modules
18:47 sri they ask for trouble
18:47 stephan48 tend to break some stuff sometimes
18:47 stephan48 27
18:48 sri of course they are useful for static files, but buffering the whole response too often ends bad
18:48 stephan48 ye
18:49 stephen joined #mojo
19:05 josh joined #mojo
19:13 mateu the cat guys told me to disable mod_deflate and everything was hunky-dory
19:20 moritz with latest mojolicious from github, line numbers in error messages are one off
19:20 moritz an error reported at line 5, where the text of the error message comes from line 6
19:21 moritz on, and it just says "at template", not which template
19:23 su-bzero[off] left #mojo
19:23 sri moritz: it's not off my one in my tests
19:24 sri feel free to improve the template name thing, i've not found a way to do it yet
19:24 su-bzero[off] joined #mojo
19:35 sri lets see if dotcloud can solve the deployment problem
19:36 sri btw.
19:36 sri http://www.dotcloud.com/contact # please tell them that you specifically want mojolicious support :)
19:37 sri the revolution need you!
19:37 sri *+s
19:43 spleenjack left #mojo
19:54 crab sri: what did dotcloud say in response to your message?
19:55 sri they did not answer me
19:55 sri just others
19:55 purl just others are better ;)
19:56 crab ah
20:06 sri while i hope phenona will succeed dotcloud seems a lot more promising
20:18 perlrocks Twitter: "Getting to do a #perl #mojolicious passion project at a company on the Dow as a Sr Engr is nice! Can't disclose the project, though. :(" --ericrost http://twitter.com/ericros​t/status/43404804961210368
20:21 AndroUser joined #mojo
20:22 AndroUser is now known as weestrom
20:23 weestrom just wanted to be sure i could get to the server from my wifi on my fon
20:24 * weestrom == @ericrost on twitter
20:28 crab hi weestrom.
20:34 weestrom howdy crab. getting my projects mysql slice up this afternoon
20:34 tholen_ left #mojo
20:35 crab no new-fangled nosql for you, then?
20:36 * sri removes weestroms hipster badge
20:43 weestrom nope, i LIKE writing SQL queries
20:44 weestrom plus long term it has to deploy to oracle
20:44 weestrom bigiron in an existing site
20:44 * sri faints
20:45 weestrom glad to know i can get ahold of you as i put this through its numerical analysis paces aoa0
20:45 weestrom :)
20:45 weestrom s/aoa0/:)/
20:46 weestrom stupid lg ally thumboard
20:47 weestrom can wolfram alpha connect to local db's?
20:51 mattastrophe left #mojo
20:52 crab i like writing SQL queries too.
20:53 sri where have all the hipsters gone?
20:55 minimalist sql is hip
20:55 minimalist i'm looking for a nice web framework for the assembly language
20:56 minimalist doesn't get any more bad ass than that
20:57 sri :)
21:04 crab i think i've seen a cgi program written in assembly
21:04 minimalist let me see
21:06 crab that's how we should speed up mojolicious: rewrite the renderer in assembly!
21:14 sri !
21:22 weestrom left #mojo
21:40 punytan left #mojo
22:02 su-bzero_ joined #mojo
22:07 su-bzero left #mojo
22:24 jamesw joined #mojo
22:51 tempire sql is the devil
22:55 tempire sri: from dotcloud: "Hi, Yes, it's very seriously on the roadmap. Out of curiosity, which kind of framework/application do you use/plan to deploy?"
22:55 sri :)
23:00 xris left #mojo
23:01 tardisx joined #mojo
23:40 hoelzro left #mojo

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