The web in a box - a next generation web framework for the Perl programming language

IRC log for #mojo, 2013-12-25

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

All times shown according to UTC.

Time Nick Message
00:12 mire_ joined #mojo
01:24 ka2u joined #mojo
01:45 d4rkie joined #mojo
01:54 laouji joined #mojo
02:11 klapperl_ joined #mojo
04:27 rem_lex|pivo joined #mojo
04:47 webart joined #mojo
04:49 webart joined #mojo
04:51 preflex_ joined #mojo
04:53 laouji joined #mojo
05:09 ka2u joined #mojo
05:25 zivester joined #mojo
05:27 d4rkie joined #mojo
05:30 Lucas1 joined #mojo
05:33 amirite_ joined #mojo
05:35 laouji joined #mojo
05:43 amirite joined #mojo
06:05 russum joined #mojo
06:27 Vandal joined #mojo
06:30 ka2u joined #mojo
06:33 russum left #mojo
07:54 beyondcreed joined #mojo
08:14 laouji joined #mojo
09:02 alnewkirk joined #mojo
09:06 d4rkie joined #mojo
09:17 amirite joined #mojo
09:22 amirite_ joined #mojo
09:33 amirite joined #mojo
09:48 rem_lex joined #mojo
09:51 avb joined #mojo
10:01 marcus damaya: <3
10:04 mire_ joined #mojo
10:18 zivester joined #mojo
10:52 meshl joined #mojo
10:59 meshl May the light of Christmas inspire our lives. May it let us realize how short they are and how important it is to focus on the essential... So let us all focus on Mojolicious! :D
11:10 ver joined #mojo
11:15 denisboyun joined #mojo
11:37 marcus sri: seen the silver searcher? Insanely quick search. Faster than tm2, has vim integration.
11:44 hrupp joined #mojo
11:46 rem_lex joined #mojo
11:47 maxhq joined #mojo
11:49 amirite joined #mojo
11:59 denisboyun joined #mojo
12:08 batman sri: why is "my ($package, $method) = split /::(\w+)$/, our $AUTOLOAD;" better?
12:16 batman https://twitter.com/iamdevloper/status/415564015298170880 :)
12:16 alnewkirk batman: that code isn't even valid
12:17 batman which code?
12:17 alnewkirk that code
12:17 purl i guess that code is migrating between versions
12:17 batman the split//? it's valid.
12:18 marcus alnewkirk: yes it is, we switched to that in mojo master
12:18 marcus batman: there was an example of something that failed in the issue that caused the change.
12:19 batman oh. that's super weird :)
12:19 batman alnewkirk: why don't you think it's valid?
12:20 rem_lex joined #mojo
12:44 alnewkirk well, it is valid, what I meant was that it's seems inefficient
12:44 alnewkirk ... and I'm not sure why the autoload variable is declare with our that way
12:45 alnewkirk ... nor do I see a reason to use split with captures over a basic regex match
12:46 alnewkirk (though I could be missing some things) :/
12:46 dod joined #mojo
12:47 batman alnewkirk: that's why i asked. i believe marcus' response, but i would like to see the case
12:48 batman alnewkirk: and why wouldn't you declare the $AUTOLOAD variable that way? it's not used anywhere else, and the declaration is done on compile time so there's no drawback
12:48 marcus batman: https://github.com/kraih/mojo/pull/574
12:49 batman ?!?
12:50 batman that's superweird *testing*
12:53 alnewkirk brb (kids opening gifts)
12:55 batman alnewkirk: https://gist.github.com/jhthorsen/8123011
12:56 batman *updated gist*
13:13 elvis joined #mojo
13:13 batman joined #mojo
13:14 elvis joined #mojo
13:14 batman joined #mojo
13:14 elvis joined #mojo
13:14 batman joined #mojo
13:21 dod joined #mojo
13:36 elvis joined #mojo
13:36 batman joined #mojo
13:42 alnewkirk batman: not sure I follow the problem?
13:42 alnewkirk https://eval.in/82784
13:43 alnewkirk which part of the output is problematic?
14:00 sh4 joined #mojo
14:08 denisboyun joined #mojo
14:16 ka2u joined #mojo
14:22 avb left #mojo
14:42 Drossel joined #mojo
14:44 mire_ joined #mojo
14:54 denis_boyun_ joined #mojo
15:11 Tiger Guys, "$r->get('/:id/:type/', type => [qw(view dash)])->to('screen#fetch');" is valid route define? i need to parse url as http://examplr.com/my_id/view/
15:21 d4rkie joined #mojo
15:28 amirite joined #mojo
15:31 crab is not valid route define.
15:31 crab use ->route() and ->via('get'), i think.
16:02 meshl joined #mojo
16:08 ka2u joined #mojo
16:18 ka2u joined #mojo
16:24 sh4 joined #mojo
16:33 amirite_ joined #mojo
16:42 batman joined #mojo
16:42 elvis joined #mojo
16:45 basiliscos joined #mojo
17:04 jberger joined #mojo
17:05 jberger crab, why wouldn't you use get method
17:08 mire_ joined #mojo
17:08 ka2u joined #mojo
17:12 amirite joined #mojo
17:21 KindTwo joined #mojo
17:29 jberger_ joined #mojo
17:31 rem_lex joined #mojo
17:42 ka2u joined #mojo
17:54 ka2u joined #mojo
18:11 amirite joined #mojo
18:19 denisboyun joined #mojo
18:21 amirite joined #mojo
18:22 drift joined #mojo
18:31 amirite joined #mojo
18:33 crab because it doesn't take restricted placeholders the same way
18:39 punter joined #mojo
18:41 russum joined #mojo
18:59 amirite joined #mojo
19:09 ka2u joined #mojo
19:17 dod joined #mojo
19:20 batman alnewkirk: the problem is that i don't get why $1 can be modified by the caller. it *should* be isolated to the current closure imo
19:32 alnewkirk batman: I didn't see where $1 was being modified, can you point-out the line specifically?
19:38 batman line 14: i would expect it to print "f=f (b b)" not "f=f (f b)"
19:38 batman same on line 19
19:38 batman the AUTOLOAD does not matter btw...
19:39 mire_ joined #mojo
19:46 alnewkirk batman: I can see why you would expect it to print (b b) ... but I don't think I would
19:46 batman ok.
19:47 alnewkirk (f b) is what I would expect given that $_[1] a new scalar
19:47 alnewkirk in that $1 is interpolated
19:47 batman is "interpolated" the same as aliased?
19:49 alnewkirk I'm not sure ... but I'd assume it's creating a temp variable to hold the string with $1 interpolated
19:49 batman ah
19:49 batman i get $_[1], i'm curious about $_[0]
19:50 alnewkirk yeah, it's simply passing the alias all over the place
19:50 batman right
19:51 alnewkirk imho it makes sense semantically but at-a-glance I see how one might think (b b) as opposed to (f b)
19:51 alnewkirk ... and situations like this is why I always unpack @_ (one way or another)
19:52 batman @_ is also not the real issue here, it's the $1 being able to modify the caller $1, which i haven't experienced before
19:52 purl okay, batman.
19:56 alnewkirk is that happening? ... I didn't see that
19:57 batman ah. sorry!
19:57 batman i've misread my own output
19:58 alnewkirk np, it confused me too
19:58 batman :)
20:01 batman does it make sense to serve an image and 404?
20:06 alnewkirk depends on the context
20:07 alnewkirk for a site or api?
20:07 alnewkirk what kind of image are we talking about?
20:07 alnewkirk :)
20:08 marcus batman is the next anthony wiener
20:08 batman marcus?
20:08 purl marcus is pretty sure lisp adoption is being hampered by being named after a speech defect. or http://picasaweb.google.com/olga.ramberg/Lisboa#5240395957801479314 or a moose farmer?
20:09 batman i'm asking for /some/picture.jpg and i want to answer back with a picture even on 404
20:09 marcus batman: I forgot you don't follow current events =]
20:09 batman marcus: i don't follow any events :/
20:09 marcus batman: I think a 404 with an image is ok http, but what do I know.
20:10 marcus batman: wiener is an american politician who got caught posting dick picks on twitter or smth.
20:10 alnewkirk marcus++
20:10 batman marcus: right. no idea how that's related to 404 :(
20:11 alnewkirk he also gave "don't be a weiner" a whole new meaning
20:11 marcus batman: was just being funny because alnewkirk asked you what kind of image.
20:11 alnewkirk it's related to a 404 in that anthony weiner is "Not Found" anymore
20:11 batman hehe, ok :)
20:12 batman i need to pay more attention... don't think it's going to happen though
20:13 alnewkirk I'm curious now ....
20:13 batman about what?
20:14 alnewkirk ... can you describe in-what-context returning an image and a 404 makes sense?
20:14 batman i'm serving avatars, and i want to return a image no matter what you ask for
20:15 batman so the default would be 404.jpg or something like that
20:16 alnewkirk oh, yeah that make sense to me
20:22 * marcus smashes laptop into bits in frusteration over internet connectivity.
20:22 marcus oh well, at least I can send irc messages...
20:22 batman marcus: no cellphone coverage..?
20:23 batman when are you back in oslo?
20:23 marcus batman: it is bad too.
20:23 marcus batman: 27th
20:23 batman wanna go for a beer on 29th?
20:24 marcus I leave for copenhagen on the 29th
20:24 marcus gone until 31th
20:25 batman ah. ok.
20:27 elvis joined #mojo
20:27 batman joined #mojo
20:29 marcus I think batman restarted his backend
20:30 marcus_ joined #mojo
20:32 marcus_ left #mojo
20:33 marcus_ joined #mojo
20:36 marcus_ joined #mojo
21:23 tempire joined #mojo
22:10 testing joined #mojo
22:10 testing joined #mojo
22:10 testing joined #mojo
22:47 denis_boyun joined #mojo
22:49 diegok Hi!, is anyone using some method to extract localized strings from EP templates?.. just asking before create Locale::Maketext::Extract::Plugin::EP ;-)
22:51 testing joined #mojo
22:54 diegok batman: I have an image resize service that returns a transparent pixel on 404 :-)
23:09 testing joined #mojo
23:12 testing_ joined #mojo
23:14 testing__ joined #mojo
23:16 testing___ joined #mojo
23:16 testing____ joined #mojo
23:23 marcus diegok: yes, hold on
23:23 diegok marcus: :)
23:24 marcus hmm, no, I was wrong, we were using TT on that project
23:25 marcus sorry, diegok
23:26 diegok ooooh!.. thank you anyway.
23:27 diegok looks easy using Mojo::Template::tree() but I lost track of context... I think I will just pick some regexp from there... :)
23:29 diegok hm.. tree() looks like a good option :)

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