Camelia, the Perl 6 bug

IRC log for #mojo, 2013-01-15

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

All times shown according to UTC.

Time Nick Message
00:11 Molaf_ joined #mojo
00:27 good_news_everyone joined #mojo
00:27 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/vu4hDg
00:27 good_news_everyone mojo/master 7615e0b Sebastian Riedel: changed comment style in tests
00:27 good_news_everyone left #mojo
00:38 dwery left #mojo
00:41 amirite joined #mojo
00:41 SmokeMachine joined #mojo
00:59 d4rkie joined #mojo
01:00 d4rkie joined #mojo
01:02 laouji joined #mojo
01:06 ka2u joined #mojo
01:07 jberger joined #mojo
01:08 jberger sri: I got it!
01:08 jberger my normal database connection was just fine, but in testing I was using an in-memory sqlite database, and had forgotten to throw the right switches for unicode
01:08 jberger it all passes now
01:09 jberger without any decode hacks!
01:09 jberger :-)
01:09 hlin joined #mojo
01:09 jberger thanks for the json/websocket testing work you did! it makes Galileo much better!
01:09 jberger sri++
01:11 Mike-PerlRecruiter_ joined #mojo
01:14 sri :)
01:19 sri i kind of wish the testing api was slightly different
01:19 SmokeMachine joined #mojo
01:20 sri $t->websocket_ok('/echo')->send_ok('hi​!')->message_ok->message_like(qr/hi/)-​>message_unlike(qr/bye/)->finish_ok;
01:21 sri where message_ok receives one message and stores it for the actual test methods
01:21 sri perhaps a breaking change for 4.0
01:24 bluescreen joined #mojo
01:25 jnbek joined #mojo
01:28 tl joined #mojo
01:44 SmokeMachine joined #mojo
01:58 jberger is there any way that calling 'message_like' without first having called 'message_ok' would implicitly call it?
01:59 jberger then you could add it in place
01:59 jberger sri: ping
02:00 sri the implementation would not be very pretty i guess
02:00 sri i guess it could be a deprecation path though
02:01 sri "Calling $method without calling message_ok before is DEPRECATED!!!"
02:05 sri hmm
02:05 sri might actually be easier than expected
02:05 sri just add support for it to _next
02:12 sri jberger: btw. the finish_ok will always stay, since a closing handshake is part of the protocol
02:24 sri i don't see a clean deprecation path though :/
02:31 bsinger joined #mojo
02:35 sri hmm, the patch is pretty simple though
02:40 xaka joined #mojo
02:40 rem_lex|pivo joined #mojo
02:50 kryptonite joined #mojo
02:51 SmokeMachine joined #mojo
02:51 sri positive side effect, we can have ->json_message_has and ->json_message_hasnt
03:01 sri jberger: http://pastie.org/5686362
03:01 sri it's so consistent
03:03 jberger looks good to me
03:07 buu Oh no methods names without apostrophes =[
03:09 jberger buu, you could put one in there, but it REEAAALLY won't do what you mean!
03:10 noganex joined #mojo
03:10 buu No.. I'm pretty sure it would be awesome.
03:12 jberger aaah, just what I expected: "Can't locate object method "t" via package "json_message_hasn" (perhaps you forgot to load "json_message_hasn"?)"
03:12 buu Duh, load json_message_hasn first.
03:12 jberger gotta love perl4
03:15 good_news_everyone joined #mojo
03:15 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/DyE6bA
03:15 good_news_everyone mojo/master 50a639b Sebastian Riedel: redesigned WebSocket message testing
03:15 good_news_everyone left #mojo
03:18 sri we are at 9910 tests now :o
03:34 good_news_everyone joined #mojo
03:34 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/k_EV_A
03:34 good_news_everyone mojo/master decd0fd Sebastian Riedel: tweaked WebSocket example
03:34 good_news_everyone left #mojo
03:41 SmokeMachine joined #mojo
03:44 _xaka_ joined #mojo
04:34 SmokeMachine joined #mojo
04:35 travis-ci joined #mojo
04:35 travis-ci [travis-ci] kraih/mojo#151 (master - decd0fd : Sebastian Riedel): The build was broken.
04:35 travis-ci [travis-ci] Change view : https://github.com/kraih/mojo/com​pare/50a639bdeb31...decd0fd85349
04:35 travis-ci [travis-ci] Build details : http://travis-ci.org/kraih/mojo/builds/4157577
04:35 travis-ci left #mojo
04:36 * sri wonders if multibyte entities is really the correct term for ∾̳ = U+0223E U+00333
04:37 asarch joined #mojo
04:40 sri ah, could be multiple character replacements
04:50 amirite joined #mojo
04:57 good_news_everyone joined #mojo
04:57 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/idR7iQ
04:57 good_news_everyone mojo/master 0ee981b Sebastian Riedel: added message_ok example
04:57 good_news_everyone left #mojo
05:01 good_news_everyone joined #mojo
05:01 good_news_everyone [mojo] kraih tagged v3.80 at c399050: http://git.io/V1qIHA
05:01 good_news_everyone left #mojo
05:03 Molaf joined #mojo
05:23 SmokeMachine joined #mojo
05:29 travis-ci joined #mojo
05:29 travis-ci [travis-ci] kraih/mojo#152 (master - 0ee981b : Sebastian Riedel): The build was fixed.
05:29 travis-ci [travis-ci] Change view : https://github.com/kraih/mojo/com​pare/decd0fd85349...0ee981b9d00a
05:29 travis-ci [travis-ci] Build details : http://travis-ci.org/kraih/mojo/builds/4158296
05:29 travis-ci left #mojo
05:29 egopro joined #mojo
05:31 amirite joined #mojo
05:39 ka2u joined #mojo
05:42 ver joined #mojo
05:46 ka2u joined #mojo
06:01 amirite joined #mojo
06:02 good_news_everyone joined #mojo
06:02 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/nl09BQ
06:02 good_news_everyone mojo/master da9c22a Sebastian Riedel: fixed message_ok example
06:02 good_news_everyone left #mojo
06:04 trmjoa joined #mojo
06:18 amirite joined #mojo
06:24 spleenjack joined #mojo
06:41 PanzerBjorn joined #mojo
06:43 PanzerBjorn So how do you guys go about getting your Morbo and Hypnotoad servers up and running via system boot and such? I've noticed that Morbo doesn't like to be run outside of the command line and quits if you try to fork it with &, and Hypnotoad didn't install a /etc/init.d/ file.
06:43 PanzerBjorn Oh, and how do you guys deal with restarts to load updated classes/templates?
06:44 jberger PanzerBjorn, remember that morbo is the development server, and really only intended as such
06:44 jberger for init.d file, try one of the Perl modules for init file management
06:45 jberger thats beyond the scope of Mojolicious as every platform is different in that regard
06:45 PanzerBjorn Yeah, I'm using it for staging, though. Seems reasonable to me to use the development server for pre-production to work out the bugs.
06:45 jberger thats a question for sri
06:48 PanzerBjorn Alright. I just wasn't sure if there were already built-in tips/tricks for managing restarts via a browser or getting things up and running via runlevels et al. I guess since it installed via mincpan or whatever it wouldn't know how to hook Debian, etc.
06:49 jberger as to init, there are several modules
06:49 jberger I have read about this one: https://metacpan.org/module/Daemon::Control
06:51 jberger anyway I'm off to bed
06:51 PanzerBjorn Night!
06:51 * jberger thinks Galileo might get a release tomorrow!
06:51 jberger o/
07:05 _xaka_ PanzerBjorn: well, if you're on debian/ubuntu, they have upstart that is awsome and much easier than old style init.d and it does all the daemonic for you. i guess systemd is good as well
07:05 Vandal joined #mojo
07:05 PanzerBjorn Oh? Where can I find out more info about that?
07:05 PanzerBjorn I'm running Ubuntu 11 I think.,
07:06 PanzerBjorn Ah, Ubuntu 12.04.1 LTS actually.
07:06 _xaka_ just google "upstart"
07:07 tempire Ok, sri.  Your country wins today.  Hands down.
07:07 tempire http://www.bbc.co.uk/news/10333211
07:07 _xaka_ PanzerBjorn: https://gist.github.com/7aba913629658cf19642 super simple, isn't?
07:08 PanzerBjorn Yep, can't beat that for simple, but where does that file go and how do you manually restart it? ;D
07:08 _xaka_ PanzerBjorn: no need to write start/stop/status/restart/daemonize/... anymore
07:09 _xaka_ you put it into /etc/init and then use commands: start, stop, restart, status. each command accepts service name (file name inside /etc/init)
07:10 PanzerBjorn Is this installed in Ubuntu 12 by default?
07:10 _xaka_ yeap
07:10 PanzerBjorn Huh, okay
07:10 _xaka_ it's been default init service for a while
07:10 _xaka_ check /etc/init for examples and google it to learn about other options of usage
07:10 dpetrov_ joined #mojo
07:11 PanzerBjorn Wow, sweet!
07:11 PanzerBjorn So assuming I named the file you posted as /etc/init/morbo.conf I'd just issue "start morbo" or "restart morbo", etc?
07:12 _xaka_ exactly
07:12 PanzerBjorn Hella simple, I like when things get better. =)
07:14 PanzerBjorn What should the line ". /etc/deafult/morbo" actually be pointing at?
07:16 _xaka_ i keep LISTEN_HOST and LISTEN_PORT variables in that file
07:16 PanzerBjorn Ahhhh, got it.
07:16 _xaka_ you can call it whatever you want or remove it, doesn't matter
07:16 PanzerBjorn So if I just hard-code those, then I can remove that line. Even simpler. ;D
07:17 _xaka_ and the "respawn" option means if your service dies, it'll be respawned
07:18 PanzerBjorn Yeah, that's a nice feature too. Well, mine's giving me an error, sadly. =/
07:18 PanzerBjorn start: Rejected send message
07:18 PanzerBjorn (And then a bunch of detailed debug info, etc.)
07:20 PanzerBjorn Doh... I don't see in the conf file where it's being told which morbo to run...
07:21 _xaka_ mojolicious generates the project and puts your main script under scripts dir. this is what you need
07:21 PanzerBjorn Yep. Reading up on what upstart expects too.
07:22 _xaka_ don't forget to run it as root. that might be the reason of that error
07:23 PanzerBjorn Ahhh, okay.
07:23 PanzerBjorn Yeah, I didn't sudo to run it.
07:24 PanzerBjorn So in your example, what's actually calling morbo?
07:25 PanzerBjorn The only place I see morbo mentioned is in the description.
07:28 _xaka_ i just called it for example, you call it as your app is
07:29 _xaka_ <app> daemon is starting morbo
07:29 PanzerBjorn Is daemon another way to call morbo?
07:30 rem_lex| joined #mojo
07:30 _xaka_ i'd say it's more appropriate way to call it, imho
07:31 PanzerBjorn Oh, it is sort of an aggregate then that calls either morbo or hypnotad based on the --mode parameter?
07:33 nicomen jberger: nice, and it feels nice to have had right ;)
07:35 cosmincx joined #mojo
07:41 PanzerBjorn Hmmm, I don't have a command 'daemon' on my Ubuntu server.
07:45 _xaka_ PanzerBjorn: do you know how to start your app without init.d or whatever? just to start it
07:45 PanzerBjorn Yeah, I usually start it with: morbo -l "http://localhost:8080" /path/to/script/file
07:46 _xaka_ well, that's the way too, but you also could "/path/to/script/file daemon"
07:46 PanzerBjorn OHHH
07:47 * PanzerBjorn facepalms
07:47 PanzerBjorn Your <app> was meant to be replaced by my path, lol.
07:47 PanzerBjorn I thought that was a magic code for startup, lol
07:47 _xaka_ anyway, if you like your way you can go for it, it's still correct
07:48 PanzerBjorn Okay, that did it, lol. Thanks, I'm pretty spacey tonight.
07:49 PanzerBjorn Thanks for the help, that's a very cool new feature (to me) in Ubuntu. =)
07:50 _xaka_ it should have been there like 10 years go :)
07:50 PanzerBjorn I agree, init.d always seemed a little gross to me.
07:55 ka2u joined #mojo
07:56 dotan joined #mojo
08:00 cosmincx joined #mojo
08:07 dod joined #mojo
08:12 amirite joined #mojo
08:23 dod joined #mojo
08:32 amirite joined #mojo
08:35 suy joined #mojo
08:43 amirite joined #mojo
08:50 amirite hi
08:51 amirite anyone around
08:51 * amirite frowns
08:54 kitt_vl joined #mojo
09:17 suy joined #mojo
09:20 dpetrov_ joined #mojo
09:28 egopro joined #mojo
09:49 ka2u joined #mojo
09:58 ObseLeTe joined #mojo
10:05 amirite i'm trying to fix a problem that occurs in chrome because my application is returning a 200 response code for a websocket connection when it should be returning 101
10:05 berov joined #mojo
10:06 amirite how can i fix it? i've tried setting $self->tx->res->code( 101 ), $self->res->code( 101 ), etc.
10:12 ObseLeTe joined #mojo
10:17 SmokeMachine joined #mojo
10:20 SmokeMa__ joined #mojo
10:34 SmokeMachine joined #mojo
11:01 dhg joined #mojo
11:22 jamesstanley joined #mojo
11:29 SmokeMachine joined #mojo
11:34 SmokeMac_ joined #mojo
11:42 bizam joined #mojo
12:05 SmokeMachine joined #mojo
12:05 arthas joined #mojo
12:06 suy joined #mojo
13:04 ObseLeTe joined #mojo
13:06 ObseLeTe joined #mojo
13:11 Mike-PerlRecruiter_ joined #mojo
13:28 ladnaV joined #mojo
13:32 Vandal joined #mojo
13:48 squiggy123 joined #mojo
13:48 squiggy123 Hi can anyone tel me how to run Mojolicious (hypnotoad) under the perl debugger ?
13:49 squiggy123 I start it like "perl -d /usr/local/bin/hypnotoad -f script/myapp"
13:49 squiggy123 in the startup is put $DB::single=1
13:49 squiggy123 but it does not stop as I would expect
13:50 squiggy123 under ::lite I think it works ok
13:52 squiggy123 I also tried #!/usr/bin/env perl -d in the script/myapp but that does not work eitehr
14:02 jberger squiggy123, is there some reason to run under hypnotoad? that sounds unnecessarily difficult
14:02 jberger why not perl -d script/myapp daemon
14:05 squiggy123 hey, that worked
14:06 squiggy123 but I wont to run it in the forground
14:08 squiggy123 Actually that does work, thank you, I dont need to run it in the forground
14:08 sri marcus, tempire, crab: any thoughts on the new websocket testing code?
14:29 rihegher joined #mojo
14:30 jberger sri: I have added message_ok to my testing architecture and am getting close to releasing Galileo
14:30 jberger do you see any changes coming to the testing code? should I wait?
14:30 sri it's already on cpan as 3.80 :)
14:30 jberger (also I have bumped requirement on mojo to 3.80)
14:31 sri i'm just asking in case i overlooked something
14:31 jberger I just don't want to have to have a patch release if you envision a change
14:31 jberger ok
14:31 * sri likes the new way of testing messages
14:31 mattastrophe joined #mojo
14:31 * jberger does too
14:32 jberger now all my websocket traffic sends structured data
14:33 jberger with a message for the user, but also a success/fail state for the browser, so now I can have browser side success/fail callbacks on websocket send calls
14:33 jberger like "delete page x and if successful remove it from the table below"
14:34 d4rkie joined #mojo
14:35 jberger plus I have integrated DBIx::Class::DeploymentHandler, so Galileo::Command::setup can now upgrade a deployed database schema
14:35 * jberger thinks commands are awesome
14:36 sri \o/
14:36 jberger coming soon to a cpan mirror near you!
14:38 labrown joined #mojo
15:06 bluescreen joined #mojo
15:09 jberger Galileo 0.012 released!
15:13 dod joined #mojo
15:14 nicomen so, we have an nginx in front of hpynotoad, and nginx is reporting request_times higher than what we want. we use access.log request_time to measure request time, but that might include the actual sending of the data to the client. so we would like to log time spent in mojolicious to see wether we really do have slow clients (the site is bangladeshi based), or if we are actually doing slow stupid things in the mojo backend. does anyone have any suggest
15:16 Britzel_ joined #mojo
15:18 Miked joined #mojo
15:25 ryozi joined #mojo
15:34 jberger I smell a pull rejection
15:35 sri https://github.com/kraih/mojo/pull/444 # anyone understand this?
15:37 sri if putenv was a problem then it would only affect Perl 5.17.3+
15:51 sri and this does not look good for the pull request http://search.cpan.org/~flora/perl​-5.17.4/INSTALL#Environment_access
15:53 jberger http://blogs.perl.org/users/joel_berg​er/2013/01/galileo-0012-released.html
15:53 sri \o/
15:54 sri thanks for pushing me in the right direction :)
15:55 jberger thanks for doing great work, and bonus for so quickly
15:56 jberger and yeah, as I read that message from the Perl docs, I don't think there is any reason to worry about putenv
15:56 jberger how often is mojolicious/hypnotoad going to be running on an embedded perl?
15:58 * sri shrugs
15:58 jberger so under rare circumstances there is the possibility of a (probably slow) leak
15:58 sri lets wait and see what he has to say
15:59 sri i guess the only controversial part of the new websocket tests is that we expose the last message http://mojolicio.us/perldoc/Test::Mojo#message
15:59 sri but that should make subclassing Test::Mojo for new tests a lot easier
16:00 sri (or monkey patching)
16:00 sri $t->message_ok->my_message_test->...
16:01 jberger remember that that functionality was essentially what I needed in the first place
16:01 sri yea, you were pretty close
16:01 jberger maybe someone needs to read XML from the websocket message
16:01 sri i hope not :)
16:02 jberger its nice to be able to access the actual message
16:02 * jberger prays for the soul of the (wo)man who does
16:02 sri but yea, websockets are convenient for sending any kind of message
16:03 jberger IMO JSON makes the most sense, but without some way to access the message, they can only test in very specific ways
16:03 dhg joined #mojo
16:04 sri yea
16:05 sri of course JSON is not ideal when you want to send binary data
16:06 sri i wonder if text and binary frames will be used for some clever ftp-ish hacks with a separate control channel :)
16:06 jberger sending pictures via websockets?
16:06 nic live porn!!!
16:07 sri websocket messages can be fragmented into multiple small frames
16:07 sri no wait, you can't interleave text/binary messages without an extension... :/
16:08 sri you could have two connections though
16:09 sri or you build a higher level file transfer protocol, splitting up the binary file in your app into smaller binary messages, which then can interleave with text messages :)
16:10 jzawodn joined #mojo
16:10 sri base64 binary files in JSON would be rather inefficient
16:13 asarch joined #mojo
16:14 sri oh, apparently perl on opensolaris is built with -DDPERL_USE_SAFE_PUTENV
16:16 bluescreen joined #mojo
16:17 davehorner joined #mojo
16:18 bluescreen joined #mojo
16:18 marty After watching the first season of bsg I have come to the inevitable conclusion that people in space have a lot of sex.
16:19 sri it's the end of the world too
16:19 bluescreen joined #mojo
16:19 marty yep, no better time I suppose.  :)
16:20 marty Personally, I think the cylon babes are the hottest.  :P
16:21 jberger the show was a little odd for me because I started in season 3
16:21 sri https://github.com/kraih/mojo/​pull/444#issuecomment-12274672 # compelling explanation
16:21 jberger they had a "catch me up" special
16:21 bluescreen joined #mojo
16:21 marty I had a hard getting into it at first but then I watched the mini series and that helped me put things in context
16:21 jberger by then several people have other partners, so I have all the relationships backwards
16:22 jberger the mini-series should be counted as the first few episodes
16:22 * marty nods
16:22 jberger actually bsg has a lot of that, a side movie here some webisodes there
16:23 marty I'm in the middle of season 2 now.  Some episodes are pretty good, others, no so much.
16:23 jberger you probably could find a list of "watch all these things in this order" somewhere
16:23 marty ya, Just found a chronology of how to watch it.   http://thunderpeel2001.blogspot.com/2010/0​2/battlestar-galactica-viewing-order.html
16:23 jberger bsg has a few throwaway episodes (kinda old-school freak-of-the-week)
16:23 jberger but those are few
16:23 bluescreen joined #mojo
16:24 mattastrophe joined #mojo
16:25 jberger good link marty
16:26 bluescreen joined #mojo
16:26 nicomen jberger: is there a demo of it running somewhere?
16:26 nicomen jberger: would be nice to link to that in docs
16:26 jberger there is a crippled version on heroku
16:26 jberger http://galileo-cms.herokuapp.com/
16:27 good_news_everyone joined #mojo
16:27 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/ZRLXzA
16:27 good_news_everyone mojo/master 7276c08 Sebastian Riedel: fixed small memory leak in Hypnotoad that only shows when Perl is compiled with -DPERL_USE_SAFE_PUTENV (closes #444)
16:27 good_news_everyone left #mojo
16:28 jberger haha I can't even remember the login credentials for it
16:29 bluescreen joined #mojo
16:30 jberger nicomen, I can host a quick real version on my server at work if you would like
16:30 jberger I would need some proper hosting to have a real demo
16:30 nicomen nah, I can probably set one up myself
16:30 jberger you can, its easy!
16:30 nicomen but thanks ;)
16:31 jberger I didn't publish the demo anywhere because heroku does (did?) odd things
16:31 jberger certainly with heroku I can't use sqlite and there are/were some problems with websockets
16:39 good_news_everyone joined #mojo
16:39 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/pYXG8g
16:39 good_news_everyone mojo/master 4b0cf05 Sebastian Riedel: updated jQuery to version 1.9
16:39 good_news_everyone left #mojo
16:44 anaio joined #mojo
16:47 xaka joined #mojo
17:00 inokenty joined #mojo
17:03 berov left #mojo
17:19 dod joined #mojo
17:39 ObseLeTe joined #mojo
17:47 mattastrophe joined #mojo
17:49 mib_3yh3bv joined #mojo
17:50 sri jberger: websockets don't work with cgi or psgi
17:50 mib_3yh3bv Hello, How can I create template variable from with code, e.g. $self->render(message => 'Welcome'); creates message, how can I create additional variables e.g. $self->render(bye => 'Good Bye');
17:55 mib_3yh3bv Also, within a  template should I use $message or message ?, <%= $message %> seems to work but I don't understand how this is scoped
17:56 sri mib_3yh3bv: http://mojolicio.us/perldoc/​Mojolicious/Guides/Rendering
17:57 sri but read them in order http://mojolicio.us/perldoc
17:58 mib_3yh3bv thanks.
17:58 ObseLeTe joined #mojo
18:04 mib_3yh3bv so it looks like you could create in stash like $self->stash(name => 'tester'); then use <%= $name %>
18:12 dhg joined #mojo
18:19 RegexAll joined #mojo
18:26 mib_3yh3bv ok, that does not make sense what I just said, but partually works, but it escapes the text
18:27 mib_3yh3bv what I don't understand is where these constants come from?
18:27 mib_3yh3bv for example, in Guides/Redering it gives and example <body><%= content %></body>
18:27 sri those are helper functions, you'll read about them later on or in the lite tutorial
18:27 mib_3yh3bv but what is content, how was it created and why is it a constant  (i.e. not $constant)
18:28 sri it's not a constant, constants are uppercase by convention
18:29 mib_3yh3bv so these are functions?, how does ep know the difference?
18:30 sri difference?
18:30 mib_3yh3bv actually nat the difference, but what they are at all
18:31 sri you should perhaps start with the lite tutorial
18:31 mib_3yh3bv I did that, been reading them for 2 days, some things just don't make sense (noobie pain)
18:32 sri http://mojolicio.us/perldoc/Mojolici​ous/Guides/Rendering#Adding_helpers
18:32 sri perhaps that explains it
18:35 sri actually, forget everything i said :)
18:35 sri mib_3yh3bv: just watch the mojocasts http://mojocasts.com
18:35 mib_3yh3bv do all helpers have to be defined in startup ?
18:35 mib_3yh3bv within the main app
18:36 sri http://mojocasts.com/e1 # way better for beginners
18:38 L23231231 yer, those videos don't play for me, the flasg player loads, then it just says "read .,,," but they never actually start
18:39 L23231231 L23231231 = mib_3yh3bv
18:39 L23231231 that's probably part of my problem, too many windows open :(
18:45 mib_3yh3bv :) yep video e1 answers my questions, thanks sri
18:45 ObseLeTe joined #mojo
18:46 sri tempire++
18:47 sri i wonder if the documentation overview should link to the screencasts before the tutorial
18:48 mib_3yh3bv That would be good idea
18:49 sri hmmm... now i need a phrase to describe the screencasts
18:49 sri something that fits between LEARNING PERL and TUTORIAL
18:50 SmokeMachine joined #mojo
18:52 sri "Before starting with the tutorial and guides below, you should take a look at the excellent L<Mojocasts|http://mojocasts.com/>, to get a general overview of what L<Mojolicious> is all about."
18:52 sri maybe something like that
18:54 mib_3yh3bv Well' I watch a bit of the first one last week and within minutes I know it was what I wanted to use
18:54 mib_3yh3bv but for me, the videos are about examples, when you see it has a better impact; thinks are clearer because it has context
18:55 mib_3yh3bv e.g. I was trying to understand what/where is the content item, when infact that does not matter, but I did not know that until i seen how/why it is used
18:56 good_news_everyone joined #mojo
18:56 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/hMtaUw
18:56 good_news_everyone mojo/master 5d7cfbd Sebastian Riedel: link to Mojocasts from documentation overview
18:56 good_news_everyone left #mojo
18:57 sri http://mojolicio.us/perldoc#SCREENCASTS
18:57 sri ideas for better text welcome ;)
18:58 sri maybe i should link to /e1
18:58 good_news_everyone joined #mojo
18:58 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/trulcg
18:58 good_news_everyone mojo/master 05ec68b Sebastian Riedel: link to episode 1
18:58 good_news_everyone left #mojo
19:07 good_news_everyone joined #mojo
19:07 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/pslO4g
19:07 good_news_everyone mojo/master d3ef44a Sebastian Riedel: documentation tweaks
19:07 good_news_everyone left #mojo
19:15 ka2u joined #mojo
19:17 Britzel joined #mojo
19:18 tempire \o/
19:19 tempire The site will suggest beginning with e1 using a dropdown, so it doesn't much matter.
20:01 mib_3yh3bv is it possible to redirect a controler::action to a different controller:action from within an action ? - or do I just sound like an idiot at this stage?
20:21 Britzel mib_3yh3bv: Sure, just use $self->redirect_to('/another/page');
20:26 dod joined #mojo
20:27 bluescreen_ joined #mojo
20:29 mib_3yh3bv cool thanks.
20:30 ka2u joined #mojo
20:31 mib_3yh3bv ahh, that implies controller:action, but can I do $self->redirect_to('/'); such that it is captured by the get "/" =>sub
20:31 Britzel Yes, you can.
20:31 mib_3yh3bv so that would work in both senses?
20:31 Britzel YOu can redirect whereever you want to. If you have a route for that is another question.
20:32 Britzel Try redirection to google.com :)
20:32 mib_3yh3bv I want this to be local to the server, not to send a client redirect
20:34 lukep joined #mojo
20:40 spleenjack joined #mojo
20:41 perlite_ joined #mojo
20:42 mike_ joined #mojo
20:42 lukep joined #mojo
21:09 xaka joined #mojo
21:24 spleenjack joined #mojo
21:36 Shaeto joined #mojo
21:37 Shaeto is it possible to PUT file to mojo using curl ? to get it there using req->uploads
21:38 Shaeto ahh it supports only multipart, okay thank you :)
21:40 Shaeto so answer is "yes" using -F "file=@file"
21:40 mattastrophe joined #mojo
21:43 BeDa joined #mojo
22:08 Shaeto1 joined #mojo
23:09 davehorner joined #mojo
23:10 Averna joined #mojo
23:14 mattastrophe joined #mojo
23:30 mattastrophe joined #mojo
23:44 Miked joined #mojo
23:56 jzawodn joined #mojo
23:59 vervain joined #mojo

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