Camelia, the Perl 6 bug

IRC log for #mojo, 2011-11-07

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

All times shown according to UTC.

Time Nick Message
00:13 newbie1 joined #mojo
00:23 batman joined #mojo
00:57 cfs joined #mojo
01:00 mwp joined #mojo
01:13 MojoGuest582 joined #mojo
01:42 vel joined #mojo
01:45 MojoGuest557 joined #mojo
01:45 MojoGuest557 From: http://news.ycombinator.com/item?id=1277067 (80 hits)
01:53 Sjors joined #mojo
01:53 Sjors hmm
01:53 Sjors trim() is a little too active here
01:53 Sjors sjors@smbp:~$ perl -MData::Dumper -Mojo -le '$s = "foo"; print Dumper([Mojo::Util::trim($s), $s]);'
01:53 Sjors $VAR1 = [
01:53 Sjors '',
01:53 Sjors 'foo'
01:53 Sjors ];
02:01 Sjors ah hehe. it's been fixed. the implementation in my version simply doesn't return anything
02:02 Sjors as in, this version of Mojolicious doesn't return anything, but in later versions, it's been fixed
02:07 jzawodn joined #mojo
02:58 MojoGuest736 joined #mojo
02:58 MojoGuest736 From: http://news.ycombinator.com/item?id=1277067 (81 hits)
03:10 Eugene joined #mojo
03:59 arpadszasz joined #mojo
04:02 plenum joined #mojo
04:23 mire joined #mojo
04:30 MojoGuest610 joined #mojo
04:30 MojoGuest610 From: http://www.google.ca/url?sa=t&rct=j&​q=websocket%20demo&source=web&cd=10&​amp;sqi=2&ved=0CF0QFjAJ&url=http%3A%​2F%2Fdev.xantus.org%2F&ei=wl23TvnQMYiA2w​Wbt4XNDQ&usg=AFQjCNGw6nZv0wO42uzUnHhWcD0​vcKNULg&sig2=x2VtR1gxu3iSJclfE85jBg (1 hits)
06:02 xoma joined #mojo
06:28 Foxcool joined #mojo
06:42 mwp joined #mojo
07:03 Vandal joined #mojo
07:11 koban joined #mojo
07:14 cosmincx joined #mojo
07:26 migo joined #mojo
07:28 arthas_ joined #mojo
07:29 * sri yawns
07:30 tholen_ joined #mojo
07:55 sugar joined #mojo
08:12 batman joined #mojo
08:35 judofyr joined #mojo
08:37 MojoGuest448 joined #mojo
08:37 MojoGuest448 From: http://blog.kraih.com/perl-is-ready-for-html5 (22 hits)
08:39 Eugene joined #mojo
09:02 esskar joined #mojo
09:17 perlrocks joined #mojo
09:48 preflex_ joined #mojo
09:48 smpb joined #mojo
10:01 MojoGuest900 joined #mojo
10:01 MojoGuest900 From: http://www.google.it/url?sa=t&rct=j&​q=websocket%20demo&source=web&cd=4&a​mp;ved=0CEoQFjAD&url=http%3A%2F%2Fdev.xa​ntus.org%2F&ei=JKy3TurRMsvZ4QSm3PX_BQ&am​p;usg=AFQjCNGw6nZv0wO42uzUnHhWcD0vcKNULg&amp​;sig2=JXnF5tY4xaxDfcf8eguwIw&cad=rja (1 hits)
10:07 MojoGuest806 joined #mojo
10:07 MojoGuest806 From: http://news.ycombinator.com/item?id=1277067 (82 hits)
10:22 Eugene joined #mojo
10:23 jsleao joined #mojo
10:33 batman joined #mojo
11:05 Foxcool joined #mojo
11:08 cosmincx joined #mojo
11:08 Kovensky joined #mojo
11:31 arpadszasz joined #mojo
11:47 arpadszasz_ joined #mojo
12:07 ispy_ joined #mojo
12:11 Psyche^ joined #mojo
12:21 abra joined #mojo
12:28 smpb joined #mojo
12:36 alnewkirk joined #mojo
12:40 judofyr sri: you're using Vim right?
12:40 judofyr I'm having trouble with "$self->helper(foo => {<ENTER>" causing wrong indentation on the next line
12:48 alnewkirk http://paste.scsys.co.uk/157742
12:51 judofyr alnewkirk: "Perl v5.10.1 required--this is only v5.10.0"
12:51 alnewkirk yup
12:51 alnewkirk is that right?
12:54 MojoGuest414 joined #mojo
12:54 MojoGuest414 From: http://news.ycombinator.com/item?id=1277067 (84 hits)
13:02 noganex_ joined #mojo
13:07 sri judofyr: yes i am
13:08 sri at least sometimes
13:09 sri mostly TextMate though
13:10 judofyr sri: hm… do you have the same issue with indentation?
13:10 judofyr $self->helper(foo => {
13:10 judofyr causes the next line to be indented twice
13:11 sri that doesn't look like valid perl
13:11 judofyr oops
13:11 judofyr I meant
13:11 judofyr $self->helper(foo => sub {
13:11 judofyr when I press enter (or use "o") after that line
13:12 judofyr it puts me at "    <cursor>"
13:12 sri yes, same
13:12 judofyr instead of "  <cursor>"
13:12 judofyr :/
13:12 judofyr so you just deal with it?
13:12 judofyr as in, <BS><BS>
13:12 sri think i've gotten used to brokenness in vim :/
13:13 sri i barely notice how often indentation is off
13:20 sri judofyr: actually, i mostly don't care about proper indentation, since i always run perltidy over it
13:20 sri nnoremap <Leader>p mz:%!perltidy -q<CR>'z:delmarks z<CR>
13:23 judofyr sri: woah, that ended up crappy formatted :/
13:24 sri l2perltidyrc
13:24 sri the one i use is shipped with mojolicious
14:06 fmerges joined #mojo
14:13 Eugene joined #mojo
14:13 tempire joined #mojo
14:13 sugar joined #mojo
14:14 robinsmidsrod joined #mojo
14:16 Vandal joined #mojo
14:16 noganex joined #mojo
14:17 abra joined #mojo
14:18 perlite joined #mojo
14:20 fmerges joined #mojo
14:23 metaperl joined #mojo
14:24 maluco joined #mojo
14:24 sri hmm, these mongodb rants are getting rather confusing now
14:24 sri http://www.reddit.com/r/programming/comm​ents/m3f9r/the_mongodb_story_was_a_hoax/
14:27 sri "What the hell? I just purchased $50,000 in Oracle licenses because of that story!!!"
14:27 gshank joined #mojo
14:28 marty joined #mojo
14:30 metaperl|2 joined #mojo
14:31 jmmills joined #mojo
14:45 Eugene joined #mojo
14:51 Eugene joined #mojo
15:02 giwi joined #mojo
15:02 giwi joined #mojo
15:05 abra joined #mojo
15:24 marty Any ideas on the best way to implement "templace cascading" (for lack fo a better term)
15:24 marty I'm thinking of situations where you want a Mojolicous application to be theme-able
15:24 marty ie: Check for template file in theme directory, if not found, check in default directory.  That sort of thing.
15:26 marty s/templace/template/
15:32 amoore joined #mojo
15:44 sri hmm, the only alternative to mongodb as general purpose database for quick web apps would be postgresql i think
15:45 sri and it would require a whole new mogrations toolchain
15:45 sri *migrations
15:45 metaperl joined #mojo
15:49 sri non-blocking postgresql is trivial though
15:59 marcus joined #mojo
16:01 mire joined #mojo
16:07 judofyr sri: why are you ditching MongnDB?
16:08 sri i'm not, just evaluating alternatives
16:08 judofyr ah
16:08 sri want to make an educated decision, since i'll prolly put a lot of effort into the whole initiative once it is rolling
16:09 mercutioviz joined #mojo
16:11 sri postgresql actually has many advantages
16:12 sromanov joined #mojo
16:12 sri table schemas being the biggest disadvantage imo
16:13 judofyr well, I don't really have anything against table schemas…
16:13 judofyr there's always a schema; the question is if it's in the db or in the code
16:13 judofyr but I wish more databases would support gradual migrations
16:15 sri quite nice that you can alter/create/drop tables in transactions
16:15 Eugene joined #mojo
16:18 marty Postgres also has a JSON column type if I recall
16:19 marty So theoretically you could mix and match document storage and relational data all under the same engine
16:21 marty But I'm not sure how much you would gain from that
16:22 marty I am really liking the mongodb insert/update/query syntax.   Very easy to get at objects.
16:25 sromanov joined #mojo
16:30 marty OK.  I think I answered my "template cascading" question.  And I think I figured this out once and forgot. :(  Template inheritance seems to be the key.  http://mojolicio.us/perldoc/Mojolicious​/Guides/Rendering#Template_inheritance
16:31 marty Man, the whole "getting old and forgetting things"  really sucks sometimes.  facepalm!
16:31 sri yea, totally
16:36 marty If I had to choose an RDBMS I would definitely go with Postgresql.  Lots of good things happening in that camp.
16:50 newbie1 joined #mojo
16:56 driller_work joined #mojo
16:56 driller_work hi everyone
16:56 purl Howdy, driller_work, you fantastic person you.
16:58 driller_work I have done this: $r->route('add/item/:item1/:item2​/:item3')->to('itemhandler#add'); -- but if I only pass 2 items the request does not go through since there are 3 in the uri; is there a way around this? Reason for this is that sometimes I will be passing one item and sometimes three
16:59 driller_work I guess I could just pass one item at a time but that would result in a rather heavy work-around later on for what I am trying to do :/
17:09 marty driller_work:  You could do $r->route('add/item/*items and then loop through the stash variable $items
17:11 tadzik joined #mojo
17:12 tadzik hello
17:12 * marty waves
17:15 * tadzik came here with a Mojolicious::Plugin::Authentication problem, but noticed a stupid typo in the code which caused it
17:15 marty driller_work: you could also place less restrictive routes first.  ie.  /item/:item1   --   /item/:item1/:item2   --    /item/:item1/:Item2/:Item3
17:17 tadzik anyway, I still think I'm doing something wrong. Now, I'm doing all the $self->plugin('authentication => { ... }) in my main App.pm, and the App/Auth.pm controller uses its capabilities like $self->app->authenticate(...). I think that the initialization part could perhaps live in the App/Auth.pm too?
17:24 hitz joined #mojo
17:27 driller_work marty: didn't think of that, thanks!
17:27 hitz general morbo question:
17:27 hitz I am thinking that I should not fork() while running it.
17:27 hitz but maybe it would be OK if I kill the process.
17:28 hitz or maybe there is some other way... I need to have a url spawn a long running process that will persist even if the browser is closed
17:28 hitz or maybe there is some HTML5/sockety way to do this.
17:45 hitz UGH, I know that is wrong.
17:45 hitz because the server itself is forking.
17:46 plenum joined #mojo
17:48 batman joined #mojo
17:52 hitz $r->dispatch()???
17:53 smpb joined #mojo
17:55 metaperl joined #mojo
18:14 grim_fandango joined #mojo
18:23 jsanchesleao joined #mojo
18:47 newbie joined #mojo
18:57 sri think i'll continue with mongodb
18:58 sri developer experience outweights the risks
18:58 smpb joined #mojo
18:58 sromanov joined #mojo
19:01 marty \o\
19:01 marty /o/
19:01 marty \o/
19:01 sri /o\
19:02 * sri waits for a shark from marcus
19:02 * marty nods
19:03 marcus /*\
19:03 sri Oo
19:07 marcus first order logic uses syntax foo($self,$arg)
19:14 ivkosh joined #mojo
19:21 tempire hitz: you likely want an external job server
19:21 tempire like gearman
19:23 hitz hmmm... that's not a bad idea
19:24 hitz so essentially the mojo webapp dispatches a job to Gearman
19:25 hitz the job is just sql queries though...it only takes a long time if you give it lots of input
19:25 hitz the use case goes from 1 input to 1M inputs
19:26 hitz so I easily whipped it up to deal with up to a few K inputs... but at some point user gets bored and wants to comeback later
19:27 hitz oh, I see that I can define a coderef for a Gearman task it looks like...
19:29 jefersonleao joined #mojo
19:30 marcus Big ⇓ Dumb   ¬ (¬ Big ⇒ ¬ Dumb)
19:32 tholen_ joined #mojo
19:33 sromanov joined #mojo
19:35 * sri wonders why marcus is more weird than usual today
19:35 marcus ai-class.com is to blame
19:36 sri i see
19:37 * tempire raises marcus a complete gate
19:39 marcus http://www.youtube.com/watch?v=​rV8vxIoI0yc&amp;feature=related
19:41 tempire that was painful
19:42 marcus yeah
19:43 marty that makes rick roll look hip
19:44 marcus http://www.youtube.com/watch?v=​AFA-rOls8YA&amp;feature=relmfu is much better.
19:47 marty not!  :p
19:47 marty wow, I watched part of the ai-class.com video on you tube and I think I am paralyzed from the neck up,  good stuff
19:47 marcus marty: which lectures? :)
19:48 metaperl joined #mojo
19:48 marty http://www.youtube.com/knowitvideos
19:50 marty marcus:  What level are you in Glitch?
19:51 metaperl joined #mojo
19:55 metaperl|2 joined #mojo
19:57 rdesfo joined #mojo
20:03 mercutioviz joined #mojo
20:09 jsanchesleao joined #mojo
20:17 MojoGuest400 joined #mojo
20:17 MojoGuest400 From: http://www.google.com/url?sa=t&amp;rct=j&am​p;q=&amp;esrc=s&amp;source=web&amp;cd=9&amp​;ved=0CFoQFjAI&amp;url=http%3A%2F%2Fdev.xan​tus.org%2F&amp;ei=ZTy4Tp3AKsLf0gGvq5DSBw&am​p;usg=AFQjCNGw6nZv0wO42uzUnHhWcD0vcKNULg (1 hits)
20:46 mojobot17752 joined #mojo
21:01 amoore joined #mojo
21:04 Alias joined #mojo
21:15 MojoGuest494 joined #mojo
21:15 MojoGuest494 From: http://www.google.com/url?sa=t&amp;rct=j&am​p;q=&amp;esrc=s&amp;source=web&amp;cd=9&amp​;ved=0CFoQFjAI&amp;url=http%3A%2F%2Fdev.xan​tus.org%2F&amp;ei=ZTy4Tp3AKsLf0gGvq5DSBw&am​p;usg=AFQjCNGw6nZv0wO42uzUnHhWcD0vcKNULg (2 hits)
21:15 marcus marty: 26 or something
21:16 marcus marty: you?
21:16 purl you is probably what you am
21:16 marcus 25 it seems
21:16 marcus last thing I did in glitch was make no-no powder and die
21:16 marty 19  :(
21:17 marty hehehe.   Have you dealt with many rooks?
21:17 marty If you die you got to hell, and squish a lot of grapes.  :)
21:18 marcus well, you get out of hell on the start of each days
21:18 marcus I've helped with a couple of rook attacks
21:18 marty ahhh, did not know that
21:18 marty I think I'll go visit the rook areas and see what it's all about
21:19 marcus you need skillz
21:19 marcus to fight the rook
21:19 marcus martial imagination and piety
21:19 marty hmmm, do not have those. Think I'll wait until I get em
21:20 marcus first you stun it with martial imagination, then you get rid of it with piety and sacrifices
21:20 marcus usually there's a bunch of glitchen there tho
21:20 marty what happens if you loose the attack?
21:21 marcus dunno
21:21 marcus the rook kills everything I suppose
21:21 marty sounds bad
21:22 marcus do you have a house?
21:23 marty Yep.  5448 Khoul Bheens Quarter
21:23 rdesfo left #mojo
21:23 hide joined #mojo
21:23 marcus ah, not so far from me, I'm in Alakol
21:24 marcus Stora Rede
21:24 marty ahhh, ya we are like neighbors.  I think you are close the mines and good stuff if I recall
21:24 marcus Most of the time I'm mining in Callopee :)
21:25 marcus marty: you're close to the plains tho. I like them
21:26 marty Ya, me too.   I wander them often.
21:29 marcus Added Mad Martigan to buddy list.
21:32 * sri just created his first glitch character
21:33 marcus oh oh
21:41 sri hmm, i just reached level 2 by pleasuring pigs…
21:42 xaka joined #mojo
21:42 marty Just added George Glum as a buddy!
21:43 marty sri++   The pigs love you!!!
21:47 marcus Eesti Life Catalog Page 17
21:48 marcus think sri isn't in the real world yet.
21:49 sri i think i am, but i got ported somewhere after clicking on something
21:49 sri so i decided to change my look a bit first
21:56 perlite_ joined #mojo
21:59 tempire pleasured pigs?
21:59 tempire http://www.youtube.com/watch?v=51qftniyHa0#t=3m32s
22:02 marcus sri: quit already?
22:05 sri nono, still changing my character ;p
22:06 marcus blue duduidudud
22:07 mattastrophe joined #mojo
22:07 sri why won't it show my evil horns!!!?
22:07 * marcus is on the subway towards Salatu
22:08 marcus I see horns!
22:08 sri \o/
22:13 sri i have no clue what i'm doing :)
22:14 marcus you're following me
22:14 sri i think i got an achievement for stalking ;p
22:14 marcus nice
22:24 mercutioviz joined #mojo
22:27 marcus wow sri just left for  The Gold Hatted, Bouncing, High Jumping Memory Place
22:28 marty ha!  Where is that at?
22:28 * marty just send sri a n00b welcome gift
22:28 marty s/send/sent/
22:29 marcus no idea where that is at
22:29 * marty shrugs
22:29 marcus I just gave sri at my gems
22:29 marcus all mye
22:29 marty I sent him some beer
22:29 marcus nice
22:29 * sri has no idea what that all means :(
22:29 * marty nods
22:29 marty Wait till I send him a flaming Humbuba!
22:30 marcus sri: the gems I gave you are worth a lot, you can sell them at a vendor
22:31 marty I've got all the block making and fuel making equipment but there does not seem to be the ability to do much with it.
22:31 * marty wants to build big stuff
22:31 sri thanks
22:31 sri what can i do to have fun?
22:32 marty Milk a butterfly?
22:33 sri wait, you gave me guano? :S
22:35 marcus yupp
22:35 marcus and I just gave you some no-no powder
22:35 marcus except you haven't picked it up.
22:35 sri can't
22:35 marcus you suck :)
22:35 marcus now you have it.
22:38 mire joined #mojo
22:38 sri heh
22:38 sri i sniffed it
22:38 marcus now you will die :D
22:39 marcus http://www.glitch-strategy.com/wiki/No-No_Powder
22:40 sri oh noes
22:48 sri ohoh
22:50 * sri really needs to sleep though
22:51 sri just spent an hour in that game without noticing :S
22:51 sri brings back WoW memories
22:52 marcus yeah, it happens
22:52 * marcus is exploring hell
22:53 marcus there's a lot of tomatoes here!
22:55 mercutioviz joined #mojo
22:55 marcus yay, hell completionist badge!
22:56 marcus http://nordaaker.com/docs/skitch/G​ame_%7C_Glitch-20111107-235644.jpg
22:59 Alias left #mojo
23:00 marty joined #mojo
23:04 marty lol. Poor Kraih died. Must have been the nono powder.  :)
23:05 metaperl joined #mojo
23:07 marcus he was asking how to be evil in the game
23:07 marcus so I showed him.
23:07 marcus then I went to hell on purpose to get the hell completionist badge
23:07 marcus hell is much cooler now
23:08 marty I'll have to go vist next time I play
23:16 preflex_ joined #mojo
23:24 ispy_ joined #mojo
23:37 elb0w_ joined #mojo
23:38 elb0w_ Question, if I use a before hook to validate if the user has access to a route can I pass a value to the route it was calling? Ie, if someone does /del/user5 first I want to validate their session id and get the userid of the person requesting and pass that to the del/ sub
23:38 elb0w_ Possible?
23:38 purl FOOL!  There is nothing Perl cannot do!  NOTHING!
23:53 alnewkirk joined #mojo

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