Camelia, the Perl 6 bug

IRC log for #mojo, 2011-06-14

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

All times shown according to UTC.

Time Nick Message
00:16 ndiewald left #mojo
00:27 perlrocks Twitter: "Mojolicious-Plugin-SslAuth 0.05 by TEMPIRE - http://metacpan.org/release/TEMPIR​E/Mojolicious-Plugin-SslAuth-0.05/" --cpan_new http://twitter.com/cpan_ne​w/status/80431252645220354
00:29 arpadszasz left #mojo
00:35 mattastrophe left #mojo
00:53 yakudzo joined #mojo
01:42 GabrielVieira2 joined #mojo
01:46 GabrielVieira left #mojo
01:48 gshank_ joined #mojo
01:53 gshank left #mojo
02:01 perlrocks Twitter: "Mojolicious were being updated. I really" (ja) --shiba_yu36 http://twitter.com/shiba_yu​36/status/80454725060923392
02:07 bangbang joined #mojo
02:15 bangbang left #mojo
02:16 perlrocks Twitter: "mojolicious" (ja) --d_tsuru http://twitter.com/d_tsuru​/status/80458605308022785
02:19 shonorio left #mojo
02:19 shonorio joined #mojo
03:07 dhw left #mojo
04:07 Alias joined #mojo
04:10 perlrocks Twitter: "Perl MVC web framework http://t.co/x7YDvnt" --tobyhede http://twitter.com/tobyhed​e/status/80487276806799360
04:25 alnewkirk joined #mojo
04:29 alnewkirk|com left #mojo
04:29 alnewkirk is now known as alnewkirk|com
05:01 dekimsey joined #mojo
05:06 dekimsey1 left #mojo
05:13 koban joined #mojo
05:25 dvinciguerra left #mojo
05:26 dvinciguerra joined #mojo
05:45 kaare joined #mojo
06:11 GabrielVieira2 left #mojo
06:25 metaperl left #mojo
06:25 metaperl joined #mojo
06:26 AmeliePoulain joined #mojo
06:31 bosphorus joined #mojo
06:51 arpadszasz joined #mojo
06:56 alnewkirk|com how do you set the env mode programmatically, i want to set the mode using my config
06:56 alnewkirk|com file
06:57 perlrocks Twitter: "Teen sells Perl cloud startup to ActiveState: Mojolicious Phenona. Meet Daniil Kulchenko. He was an HTML programmer … http://reg.cx/1Pxb" --regvulture http://twitter.com/regvultu​re/status/80529212087345153
06:58 marcus oooh
06:58 moritz alnewkirk|com: in your hypnotoad.conf or what?
06:59 marcus nice plug for mojolicious in that phenona article
06:59 alnewkirk|com no, in my mojolicious::plugin::config file
06:59 alnewkirk|com thats f--- awesome
06:59 moritz no idea then
07:01 alnewkirk|com i suppose $ENV{MOJO_MODE} might work
07:01 marcus Added it to HN - http://news.ycombinator.com/item?id=2652063
07:01 perlrocks Twitter: "Teen sells cloud startups to ActiveState Perl: Meet Daniil Kulchenko Mojolicious phenone. He Was an HTML programm ... http://bit.ly/m0hav0" (fr) --hadopiland http://twitter.com/hadopila​nd/status/80530380767248384
07:01 perlrocks Twitter: "Teen sells cloud startups to ActiveState Perl: Meet Daniil Kulchenko Mojolicious phenone. He Was an HTML programm ... http://bit.ly/m0hav0" (fr) --hadopiland http://twitter.com/hadopila​nd/status/80530380721094656
07:02 alnewkirk|com cool, i just upchucked it
07:11 perlrocks Twitter: "Teen sells Perl cloud startup to ActiveState: Mojolicious Phenona Meet Daniil Kulchenko. He was an HTML programm... http://bit.ly/l3uCiB" --ElReg http://twitter.com/ElReg/status/80532769469513729
07:11 perlrocks Twitter: "Teen sells Perl cloud startup to ActiveState: Mojolicious Phenona Meet Daniil Kulchenko. He was an HTML programm... http://bit.ly/m0hav0" --drpete7 http://twitter.com/drpete7​/status/80532771201744897
07:14 D4RK-PH0ENiX joined #mojo
07:18 shonorio left #mojo
07:19 d4rkie left #mojo
07:24 arthas joined #mojo
07:25 perlrocks Twitter: "Teen sells Perl cloud startup to ActiveState: Mojolicious Phenona Meet Daniil Kulchenko. He was an HTML programm... http://bit.ly/lqWqHu" --dimitrimckay http://twitter.com/dimitrimc​kay/status/80536430102843392
07:36 D4RK-PH0ENiX left #mojo
07:37 d4rkie joined #mojo
07:37 d4rkie left #mojo
07:37 perlrocks Twitter: "Teen sells Perl cloud startup to ActiveState: Mojolicious Phenona Meet Daniil Kulchenko. He was an HTML programm... http://bit.ly/mgEqIG" --garytijuana http://twitter.com/garytijua​na/status/80539426077409280
07:42 Sugar joined #mojo
07:48 bosphorus left #mojo
07:55 jwang joined #mojo
07:57 perlrocks Twitter: "Teen sells Perl cloud startup to ActiveState: Mojolicious Phenona Meet Daniil Kulchenko. He was an HTML programm... http://bit.ly/l3uCiB" --obsequens http://twitter.com/obsequen​s/status/80544382331256832
07:58 shonorio joined #mojo
07:59 perlrocks Twitter: "#mojolicious got some press: http://t.co/LEqZZyU  #perl" --oyvindsk http://twitter.com/oyvinds​k/status/80544957798162433
08:02 mateu left #mojo
08:02 mateu joined #mojo
08:07 k-man left #mojo
08:15 spleenjack joined #mojo
08:19 mateu left #mojo
08:19 mateu joined #mojo
08:20 perlrocks Twitter: "Teen sells #Phenona — #Perl #cloud startup based on #Mojolicious framewk & runs on #EC2 —to #ActiveState http://bit.ly/l3uCiB {♺ @obsequens}" --Metztli_IT http://twitter.com/Metztli_​IT/status/80550186610466816
08:26 perlrocks Twitter: "Teen sells Perl cloud startup to ActiveState: Mojolicious Phenona Meet Daniil Kulchenko. He was an HTML programm... http://bit.ly/m0hav0" --JensDatingTips http://twitter.com/JensDating​Tips/status/80551554117152769
08:33 k-man joined #mojo
08:59 spleenjack1 joined #mojo
09:01 spleenjack1 left #mojo
09:03 spleenjack left #mojo
09:07 perlrocks Twitter: "Mojolicious-Plugin-Authentication 1.17 by MADCAT - http://metacpan.org/release/MADCAT/Mo​jolicious-Plugin-Authentication-1.17/" --cpan_new http://twitter.com/cpan_ne​w/status/80562070902407168
09:08 bc5042 joined #mojo
09:08 bc5042 left #mojo
09:12 bc5042 joined #mojo
09:18 bc5042 left #mojo
09:23 shonorio left #mojo
09:24 sh9 joined #mojo
09:24 crab http://www.trottercashion.com/20​11/06/13/introducing-chloe.html
09:33 shonorio joined #mojo
09:33 fmerges joined #mojo
10:06 AmeliePoulain left #mojo
11:14 spleenjack joined #mojo
11:24 perlrocks Twitter: "@kraih Seen This? http://t.co/EotOnmL Mojolicious getting a bit of mainstream press. (though indirectly)" --LoonyPandora http://twitter.com/LoonyPand​ora/status/80596450471456768
11:59 GabrielVieira2 joined #mojo
12:32 Foxcool joined #mojo
12:38 mattastrophe joined #mojo
12:42 sri oh, that's exciting
12:46 SmokeMachine joined #mojo
12:48 perlrocks Twitter: "Fun to see #mojolicious mentioned in the mainstream press, congrats @phenona and @activestate! :) http://t.co/TFFMKoj #perl" --kraih http://twitter.com/kraih/status/80617545085886465
12:52 arpadszasz left #mojo
12:56 perlrocks Twitter: "@kraih Well, since theregister has reported it, maybe I'll check #mojolicious out ;)" --atrodo http://twitter.com/atrodo/status/80619603495100416
12:58 crab i only use software that's been mentioned in the mainstream press
13:04 Foxcool left #mojo
13:07 sri !
13:13 mattastrophe left #mojo
13:18 perlrocks Twitter: "Mojolicious Web #Framework - Join the #Perl revolution! http://goo.gl/fb/P69eS #webdev" --readelicious http://twitter.com/readelici​ous/status/80625174369669120
13:25 perlrocks Twitter: "There is also a great article about #mojolicious and #dropbox in the latest issue of the german Linux Magazin. :) http://t.co/Lqw5Ujs #perl" --kraih http://twitter.com/kraih/status/80626816649400320
13:34 metaperl left #mojo
13:36 Akron joined #mojo
13:37 sri bit weird how the story got buried on hackernews
13:37 sri normally they are crazy for teens selling companies
13:38 d4rkie joined #mojo
13:38 sri http://hackerne.ws/item?id=2652063
13:39 amoore joined #mojo
13:54 sh9 left #mojo
14:00 bangbang joined #mojo
14:03 metaperl joined #mojo
14:10 perlrocks Twitter: "Teen sells Perl cloud startup to ActiveState http://t.co/86o9ttH - Mojolicious Phenona" --szabgab http://twitter.com/szabgab​/status/80638182097563648
14:10 metaperl I have some code that takes the URL of the request and changes the port # $self->req->url->clone->to_abs->port(3001); # But I dont know how to set the path part of that URL to nothing. I know it takes another line of code. But I cant figure out how to do it.
14:10 sri Oo
14:10 moritz like ->path('') ?
14:11 metaperl yes but path returns a Mojo::Path instance
14:11 metaperl not a Mojo::URL instance
14:11 sri umm
14:11 sri actually in moritz case it does
14:12 sri ->clone->to_abs->path('/')->port(3001)
14:12 sri it's even documented
14:13 sri if you just want to set a whole new path it stays a oneliner
14:18 GitHub25 joined #mojo
14:18 GitHub25 [mojo] kraih pushed 1 new commit to master: http://bit.ly/l55bmS
14:18 GitHub25 [mojo/master] improved streaming examples - Sebastian Riedel
14:18 GitHub25 left #mojo
14:20 SmokeMachine left #mojo
14:22 sri (last time you talked about modifying the path)
14:23 sri only that requires a second line
14:37 koban left #mojo
14:41 GitHub163 joined #mojo
14:41 GitHub163 [mojo] kraih pushed 1 new commit to master: http://bit.ly/ij26F3
14:41 GitHub163 [mojo/master] use more verbose examples for streaming - Sebastian Riedel
14:41 GitHub163 left #mojo
14:41 sri really not the right place to count bytes :)
14:43 D4RK-PH0ENiX joined #mojo
14:46 d4rkie left #mojo
14:48 crab it's annoying me more and more than nginx uses http 1.0 without keepalive to proxy.
14:48 crab and i suspect i'm going to do something about that soon.
14:50 sri well, nginx is about performance, not features
14:50 d4rkie joined #mojo
14:50 sri http 1.0 makes sense there
14:51 sri connect is also a good test to see if a backend is still alive
14:51 purl okay, sri.
14:51 sri botsnack
14:51 purl :)
14:52 D4RK-PH0ENiX left #mojo
14:57 stephan48 a lite app should work together with App::Daemon or?
14:57 sri what's app daemon?
14:57 stephan48 http://search.cpan.org/~mschi​lli/App-Daemon-0.11/Daemon.pm
14:58 stephan48 deamonizing with possibilities to control it
14:59 sri could work
14:59 perlrocks Twitter: "Mojolicious perl and tried to use the reference sequence. What little Takeshi Shigeru Sata." (ja) --ya0716 http://twitter.com/ya0716/status/80650468514209792
14:59 stephan48 i will try :)
15:00 sri any reason you're not using hypnotoad?
15:00 stephan48 i just thought that you maybe heard something about it, or know some portential problems
15:00 sri it can daemonize out of the box
15:01 stephan48 oh, i need to launch them and then they should run... best is some thing what boots them on system start
15:01 stephan48 they are small apps
15:02 D4RK-PH0ENiX joined #mojo
15:02 * sri wonders why nobody has built a general purpose embedding app yet
15:02 sri one that loads other apps and allows multiple to share the same server
15:02 sri we have all the tools built in now
15:02 stephan48 :)
15:03 stephan48 ye that would be cool
15:03 sri plugin embed => {'/foo' => '/Users/sri/fooapp.pl'};
15:03 sri totally possible
15:03 stephan48 ye
15:04 perlrocks Twitter: "@ Afiskon Mojolicious:: Plugin:: Mail by Onotole?" (ru) --olegwant http://twitter.com/olegwan​t/status/80651733528870912
15:04 d4rkie left #mojo
15:04 metaperl yes, that's what I need. I'm running tempire's static file serving app on port 3001 and my normal app on 3000 ... I guess the issue is the look and feel or mounted apps ... John Beppu developed a web framework inspired by ruby mountable apps
15:18 sri i would consider such a plugin for core if the limitations had been investigated completely
15:19 d4rkie joined #mojo
15:21 sri like exclusive hooks
15:21 sri after_build_tx from the main app will be used and after_dispatch/before_rendering from the embedded one
15:22 D4RK-PH0ENiX left #mojo
15:22 sri that stuff would have to be formalized first with test cases
15:37 mattastrophe joined #mojo
15:39 SmokeMachine joined #mojo
15:40 * crab considers how expires/cache-control and 304 responses should work together
16:54 sri https://spreadsheets.google.com/spread​sheet/viewform?hl=en_US&formkey=dG​U3dUZtVElZYUNYU3Jsa2VVT3NlbHc6MQ#gid=0
16:55 sri make sure to fill out the survey
16:55 sri mojolicious needs you!
17:02 dekimsey1 joined #mojo
17:06 dekimsey left #mojo
17:14 sh9 joined #mojo
17:15 GabrielVieira2 is now known as GabrielVieira
17:16 Sugar left #mojo
17:21 spleenjack left #mojo
17:24 perlrocks Twitter: "A walk down memory lane: http://www.mojolicious.org/" --iamleppert http://twitter.com/iamleppe​rt/status/80687062554128384
17:44 marcus uh, memory lane?
17:45 sri i think it refers to the CGI.pm part
17:49 kaare left #mojo
17:53 Akron left #mojo
17:54 stephen left #mojo
17:55 stephen joined #mojo
17:57 Foxcool joined #mojo
18:13 mattastrophe left #mojo
18:16 mattastrophe joined #mojo
18:22 arpadszasz joined #mojo
18:31 GabrielVieira2 joined #mojo
18:36 GabrielVieira left #mojo
18:42 shonorio left #mojo
19:00 SmokeMachine left #mojo
19:07 SmokeMachine joined #mojo
19:24 mattastrophe left #mojo
19:30 sri hmm
19:30 sri embedding scares me
19:32 D4RK-PH0ENiX joined #mojo
19:34 d4rkie left #mojo
19:36 marty but sri, you're our fealess leader.  Kick embedding's ass!
19:37 * sri hides under table
19:43 GitHub143 joined #mojo
19:43 GitHub143 [mojo] kraih pushed 1 new commit to master: http://bit.ly/lra0kS
19:43 GitHub143 [mojo/master] added experimental application embedding plugin - Sebastian Riedel
19:43 GitHub143 left #mojo
19:46 d4rkie joined #mojo
19:47 perlrocks Twitter: "This new #mojolicious plugin is so experimental it might just explode, handle with care. http://t.co/DdA4UE0 #perl" --kraih http://twitter.com/kraih/status/80723008179806208
19:49 sh9 left #mojo
19:49 D4RK-PH0ENiX left #mojo
19:53 * marcus looks at plugin, head splodes.
19:53 sri warned you
19:55 GitHub25 joined #mojo
19:55 GitHub25 [mojo] kraih pushed 1 new commit to master: http://bit.ly/ivoGfE
19:55 GitHub25 [mojo/master] updated documentation for embed plugin - Sebastian Riedel
19:55 GitHub25 left #mojo
19:55 marcus ....
19:56 memowe left #mojo
19:56 DaTa left #mojo
19:56 DaTa joined #mojo
19:58 memowe joined #mojo
20:03 chansen left #mojo
20:04 perlrocks Twitter: "App mounting! RT @kraih: This new #mojolicious plugin is so experimental it might just explode, handle with care. http://t.co/DdA4UE0 #perl" --obfuscurity http://twitter.com/obfuscuri​ty/status/80727252509270017
20:07 fish_ left #mojo
20:08 bangbang very fucking evil sri
20:08 bangbang i like it alot
20:09 bangbang is /Users/sri/testapp.pl any web app or specifically a Mojolicious web app?
20:09 sri a mojolicious app
20:09 bangbang nice
20:12 D4RK-PH0ENiX joined #mojo
20:12 alnewkirk|com whpped this up this morning Mojolicious DBIx-Class Plugin - https://gist.github.com/1025760
20:13 fish_ joined #mojo
20:14 sri alnewkirk|com: any examples?
20:14 marcus needs docs :)
20:14 GitHub128 joined #mojo
20:14 GitHub128 [mojo] kraih pushed 1 new commit to master: http://bit.ly/lHo2nn
20:14 GitHub128 [mojo/master] fixed another small application embedding bug and added more tests - Sebastian Riedel
20:14 GitHub128 left #mojo
20:15 d4rkie left #mojo
20:16 Foxcool left #mojo
20:16 marcus alnewkirk|com: why is it better than just returning your schema in a helper?
20:17 amoore left #mojo
20:18 bangbang package Mojolicious::Plugin::Dbic;
20:18 bangbang use Mojo::Base 'Mojolicious::Plugin';
20:18 bangbang use DBIx::Class;
20:18 bangbang use DBIx::Class::Schema::Loader;
20:18 bangbang DBIx::Class::Schema::Loader->naming('v7');
20:18 bangbang use constant DEBUG => $ENV{MOJO_CONFIG_DEBUG} || 0;
20:18 bangbang my  $schemas = {};
20:18 bangbang # quote pending ...
20:18 bangbang sub register {
20:18 bangbang my ($self, $app, $cfg) = @_;
20:18 bangbang sorry
20:18 bangbang brb
20:18 sri AAAAAH!!1
20:18 marcus bangbang: nopaste!
20:18 purl i think nopaste is http://paste.scsys.co.uk/
20:19 * sri runs against wall
20:19 fhelmbe__ left #mojo
20:19 bangbang https://gist.github.com/1025760
20:19 bangbang usage there
20:19 bangbang marcus, load multiple schemas, etc
20:21 marcus bangbang: and how do you query the various schemas? Actually, seems like you are passing the setup to the plugin line rather than to ->schema like in your example.
20:21 fhelmberger joined #mojo
20:22 sri hmm
20:22 marcus so rather then $self->db->find I would do $self->schema('MyApp::Foo')->find(...) ?
20:22 sri maybe Mojolicious::Plugin::Mount is a better name
20:23 marcus sri: more manly!
20:23 marcus :)
20:23 sri :D
20:23 * marcus is updating his presentation from LPW2011
20:23 marcus Mojolicious is moving so fast!
20:23 * sri slows down for marcus
20:24 marcus sri: yeah, more nitpicking instead ;)
20:25 marcus sri: srsrly, mount seems pretty cool.
20:25 sri lets do this
20:25 marcus I should write a simple mongodb admin to use as a mount in your app for development
20:25 marcus wish I had some good driver...
20:25 marcus ;)
20:26 sri -.-
20:30 GitHub170 joined #mojo
20:30 GitHub170 [mojo] kraih pushed 1 new commit to master: http://bit.ly/lNhbid
20:30 GitHub170 [mojo/master] renamed Mojolicious::Plugin::Embed to Mojolicious::Plugin::Mount - Sebastian Riedel
20:30 GitHub170 left #mojo
20:31 sri ok, more manly
20:32 sri the drawbacks need to be documented
20:33 sri like some hooks working differently for embedded apps
20:33 sri but i'll do that when the actual problem pops up or someone sends patches ;p
20:36 bangbang marcus, if only one schema exists, $self->schema->find works
20:36 bangbang $self->helper( db => sub { return shift->schema } ); if it suits you
20:36 marcus bangbang: right, then instantly breaks when you add another.
20:37 bangbang marcus, sorry what?
20:38 sri actually $self->schema->find always works
20:38 sri it selects the first without name
20:38 sri as far as i can see
20:38 bangbang exactly
20:38 bangbang actually, the plugin is just a port of the widely used dancer plugin i did a while back
20:39 sri reminds me of the catalyst thingy
20:40 bangbang sri, but marcus is right also and is a known bug in the dancer version that because its passed a hashref and uses keys to auto-select, theres no gaurentee which one you'll get
20:40 marcus uhm, values returns a random value
20:40 bangbang though keys() and values() is not completely random so .... yada
20:40 sri that's true
20:40 marcus bangbang: perldoc -f values
20:40 purl perldoc -f values is very clear indeed
20:41 sri if you added a sort it would be more sane
20:41 marcus still pretty evil
20:42 sri is it?
20:42 purl it's it!
20:42 bangbang all true but it was never of much import to most people though it is an issue
20:43 sri then again, single one is rare in real apps
20:43 marcus I think it's better to just do $self->attr(foo => sub { DBIx::Class::Schema->connect($config->{dsn}) }); or so
20:43 marcus and just return that as a helper.
20:44 marcus and repeat with bar if you want another schema.
20:44 bangbang marcus, the plugin also auto-loads using SchemaLoader if the physical files dont exist
20:45 marcus bangbang: you could just as easily do that instead in your attribute?
20:46 marcus I usually know if I want to use loader or load a schema...
20:48 * marcus is a grass widower tonight. $spouse on business trip to north norway.
20:51 chansen joined #mojo
21:10 bangbang left #mojo
21:15 SmokeMachine left #mojo
21:24 tempire http://www.gameshot.org/?id=5942
21:35 marcus tempire: evil!
21:36 tempire http://ponycorns.com/
21:36 marcus also, 16690 :p
21:36 tempire Ha!  25642
21:36 tempire pwnage
21:36 marcus could not take the music any more and suicided.
21:37 tempire did you get the nyancrack pill?
21:38 dvinciguerra left #mojo
21:39 * tempire could listen to the nyan cat forever
21:40 sri oh noes
21:40 perlite_ joined #mojo
21:43 perlite left #mojo
21:43 perlite_ is now known as perlite
21:46 dvinciguerra joined #mojo
21:59 marty ALL GLORY TO THE HYPNOTOAD!
22:00 sri what do... ALL GLORY TO THE HYPNOTOAD!
22:09 marcus Hey! Why are you... ALL GLORY TO THE HYPNOTOAD!
22:22 arpadszasz left #mojo
22:23 metaperl left #mojo
22:36 perlrocks Twitter: "Is there a preferred ORM for #mojolicious ?  #perl" --henq http://twitter.com/henq/status/80765529912131584
22:44 tempire yes.  linked lists in 1st order form.  we do it old school.
22:49 fmerges left #mojo
23:06 xantus joined #mojo
23:06 * xantus humps sri
23:07 tempire oO
23:09 * xantus humps tempire
23:09 * tempire runs
23:09 xantus sri: I like the new mount feature
23:09 xantus hotness
23:10 * sri hides under table again
23:11 * tempire pushes sri out of his hiding place
23:13 * sri crawls under bed
23:14 * xantus grabs sri by the legs
23:14 * sri kicks
23:15 xantus ah shit, my nose!
23:15 sri \o/
23:24 GitHub109 joined #mojo
23:24 GitHub109 [mojo] kraih pushed 1 new commit to master: http://bit.ly/jnZ3SY
23:24 GitHub109 [mojo/master] added another mount example - Sebastian Riedel
23:24 GitHub109 left #mojo

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