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

IRC log for #mojo, 2013-11-05

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

All times shown according to UTC.

Time Nick Message
00:26 sugama joined #mojo
00:48 laouji joined #mojo
00:55 toebu joined #mojo
00:57 asarch joined #mojo
01:26 punter joined #mojo
01:48 powerman joined #mojo
01:58 d4rkie joined #mojo
02:03 basic6_ joined #mojo
02:30 mire joined #mojo
02:40 kanishka joined #mojo
02:52 duncanthrax joined #mojo
02:53 hesperaux joined #mojo
03:00 kanishka joined #mojo
03:09 johnny5_ joined #mojo
03:25 phillipadsmith_ joined #mojo
03:25 bpmedley_ joined #mojo
03:25 russum1 joined #mojo
03:25 abra joined #mojo
03:27 johnny5_ joined #mojo
03:28 Lee joined #mojo
03:29 whatitdo joined #mojo
03:31 avkhozov joined #mojo
03:32 johnny5_ joined #mojo
03:47 johnny5_ joined #mojo
03:49 johnny5_ joined #mojo
03:52 johnny5_ joined #mojo
03:54 johnny5_ joined #mojo
04:13 Phil21 joined #mojo
04:28 preflex_ joined #mojo
04:41 johnny5_ joined #mojo
04:57 avkhozov_ joined #mojo
05:00 avkhozov__ joined #mojo
06:03 johnny5_ joined #mojo
06:06 johnny5_ joined #mojo
06:10 rem_lex|pivo joined #mojo
06:20 Vandal joined #mojo
06:55 KindOne joined #mojo
07:11 basiliscos joined #mojo
07:25 highflying joined #mojo
07:26 dpetrov_ joined #mojo
07:47 ladnaV joined #mojo
08:05 Vandal joined #mojo
08:08 dod joined #mojo
08:15 dod joined #mojo
08:17 Dandre hello,
08:23 hrupp joined #mojo
08:24 Dandre please see this: http://pastebin.fr/31542
08:29 moritz try include 'foo' ?
08:30 trone joined #mojo
08:30 moritz 'include' and all the other helpers are really just perl subroutines, and you have to call them with valid perl syntax
08:30 Dandre I have the quotes in my template
08:31 moritz you wrote
08:31 moritz but if I do:
08:31 moritz % include foo
08:31 moritz I get '$foo requires explicit package name at template '
08:31 moritz so either you don't have the quotes, or you wrote bullshit
08:31 Dandre oups sorry
08:31 Dandre $bar requires ...
08:32 batman Dandre: don't bother. you lost us.
08:32 moritz Dandre: <%= $bar %>
08:32 batman Dandre: you either paste what's going on or don't do anything at all. it's super confusing.
08:32 moritz that's a variable. Yes, you need to pass a parameter named bar, otherwise it's not declared
08:33 Dandre batman: sorry I wanted to cut the whole template
08:33 n0n joined #mojo
08:35 Dandre moritz: can I directly access to the stash from my template?
08:36 marcos <%= stash('foo') %>
08:36 Dandre ok I'll try, thanks
08:41 ladnaV joined #mojo
08:41 kwa joined #mojo
08:51 Vandal joined #mojo
08:52 Dandre ok this works fine. I have modified my template like this: http://pastebin.fr/31543
08:56 kwa What's the best way to check if a named path exists? Can't seem to find the appropriate method in ->match.
09:02 ladnaV joined #mojo
09:05 dch joined #mojo
09:16 abra joined #mojo
09:17 odc left #mojo
09:17 odc joined #mojo
09:47 n0n joined #mojo
09:55 maxhq joined #mojo
10:07 dod joined #mojo
10:20 fhelmber_ joined #mojo
10:33 toebu joined #mojo
11:08 dch joined #mojo
11:20 rem_lex| joined #mojo
11:55 d4rkie joined #mojo
12:07 d4rkie joined #mojo
12:51 russum joined #mojo
13:26 d4rkie joined #mojo
13:27 D4RK-PH0ENiX joined #mojo
13:49 toebu joined #mojo
14:01 nicolaas joined #mojo
14:02 gryphon joined #mojo
14:12 sugama joined #mojo
14:13 punter joined #mojo
14:43 bzero joined #mojo
14:43 bluescreen joined #mojo
14:45 russum joined #mojo
14:56 sh4 joined #mojo
15:02 n0n joined #mojo
15:10 btyler joined #mojo
15:10 bzero joined #mojo
15:12 humhump joined #mojo
15:23 humhump joined #mojo
15:24 Vandal joined #mojo
15:24 humhump join
15:24 sh4 joined #mojo
15:24 gryphon_ joined #mojo
15:25 * gtodd tried to make a mojo/redis backend for backbonejs "employee directory" SPA .... https://github.com/ccoenraets/directory-backbone-bootstrap
15:25 gtodd TL:DW :)
15:54 gtodd hmm  http://apiary.io/ and its http://apiblueprint.org/ "Web API language" .... this seems like something a framework like mojo practically has built in  ...
15:54 russum1 joined #mojo
15:58 dod joined #mojo
16:04 asarch joined #mojo
16:07 gtodd or maybe I'm mixing up WebAPI language with "perl"
16:13 beyondcreed joined #mojo
16:24 toebu joined #mojo
16:36 sri nexus 5 display is amazing :o
16:36 marcus sri: bought one?
16:36 btyler joined #mojo
16:36 sri yea, just unboxed :)
16:37 sri so much bigger than the 4s i had before
16:45 fhelmbe__ joined #mojo
16:54 punter joined #mojo
17:32 n0n joined #mojo
17:44 fhelmber_ joined #mojo
18:17 Britzel_ joined #mojo
18:27 fhelmber_ joined #mojo
18:41 DaTa joined #mojo
18:44 Britzel joined #mojo
18:57 dvinciguerra joined #mojo
19:02 Fatalnix left #mojo
19:05 coff joined #mojo
19:13 Mike-PerlRecruiter_ joined #mojo
20:07 thomason joined #mojo
20:11 thomason Does mojo have any built in handy shortcuts to directly invoke a route w/o doing another http hit?
20:12 thomason Say I have a route /bar which exposes some computation on the backend. When I'm inside the invocation of /foo, can I directly run whatever is sitting behind /bar?
20:12 thomason Something like $controller->route('/bar')->invoke()?
20:13 thomason Alternatively, I can get at the data via another http hit (either via lwp or ajax on the frontend), or by accessing the behind-the-scenes controller directly. But I'd like to skip the web hit and behind-the-curtain magic if I can.
20:15 powerman thomason: such shortcut may exists (I don't know mojo good enough yet)
20:16 powerman at least you can always do $ua->get('/bar')
20:16 powerman but you don't need it
20:17 powerman what you need is split handler for /bar into two parts - one which handle /bar, call some func, and render result returned by that func
20:18 powerman this way your handler for /foo will be able to also just call that func and get results without needless (emulation of) http request
20:19 thomason yeah, but that still requires inside knowledge of where the dispatch actually ends up. I'd like to just be able to say "call /bar and embed it" other than "call /bar and embed sometimes, or if you're in the server then call Mojo::SomeControllerSomewhere->bar()"
20:19 thomason it's pure syntactic sugar, admittedly.
20:27 powerman thomason: "if you're in the server" - where else it can be?
20:28 thomason It's still just a matter of needing to know/have two different ways to access the same functionality. If I could point to a way to invoke the same thing but only need to know that it's whatever's behind "/bar", I think that'd be simpler from a docs standpoint.
20:28 thomason I just don't know if there's a way to directly invoke that w/o knowing the controller/action or using a redundant web request.
20:28 bowtie_ joined #mojo
20:30 trone joined #mojo
20:39 lukep joined #mojo
20:48 basiliscos1 joined #mojo
21:02 delias joined #mojo
21:06 delias joined #mojo
21:07 Zx3 joined #mojo
21:11 delias joined #mojo
21:11 gtodd thomason: can you do that on the "frontend" (i.e. javascript)
21:11 gtodd thomason: or is it a server only kind of thing
21:13 thomason I think I can, but may run into issues if an embedded call contains additional javascript calls. Some browsers won't run javascript pulled in via ajax requests, but I don't know the exact rules offhand. So I'm a little leery of that, since it's an interactive tidbit.
21:13 thomason Otherwise, as long as it's not gonna affect usage too much, that's certainly a viable way to go if it can't be done server side.
21:18 gtodd good point
21:18 purl nice and sharp
21:25 punter joined #mojo
21:26 zackiv31 joined #mojo
22:23 sri Hmm, androirc is not bad
22:23 * jzawodn uses AndChat for IRC on android
22:30 sri gonna have to try that one too i guess :)
22:31 sri but first i need to figure out how to transfer files between android and os x
22:31 sri (without installing new drivers on os x)
22:32 tianon Google has that really funky MTP application for doing so
22:32 tianon http://www.android.com/filetransfer/
22:33 sri which requires kernel extensions as far as i can see
22:33 sri not gonna go there
22:33 tianon it makes for really sad pandas, because it's so closely related to the horror that is MTP itself
22:33 tianon it does?
22:33 * purl stays quiet
22:33 tianon I guess I never looked too closely :(
22:33 tianon MTP just sucks, though :(
22:34 tianon they never should have killed the USB Mass Storage mode, imo, despite all the problems that had
22:34 sri i was expecting usb mass storage mode, this is the only thing so far i hate about android
22:35 tianon yeah, old versions had USB Mass Storage mode, but it required that the phone give up the storage completely to the computer, which caused issues on the phone side
22:35 sri a few more command line tools would have been nice too
22:36 tianon but I think they were so much more bearable issues than the awful that is MTP
22:36 sri i'd be fine with scp being available :S
22:37 tianon my personal solution is to connect through to the phone with adb shell, run rsyncd there, port forward with adb forward the rsync port, then use rsync://localhost:port from my local machine
22:37 tianon it's so many steps it makes me sick, but it works pretty reasonably
22:37 tianon but also assumes your phone has rsync, or that you've got an arm binary of it around somewhere to run the daemon
22:53 sri atm i use google drive to transfer files -.-
22:53 hummeleBop joined #mojo
22:54 tianon ouch :(
22:56 sri juicessh seems pretty nice, apparently there is scp support planned... lets hope they deliver
23:50 btyler joined #mojo

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