Camelia, the Perl 6 bug

IRC log for #mojo, 2012-10-02

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

All times shown according to UTC.

Time Nick Message
00:00 estrai joined #mojo
00:01 tempire buu: include template helper
00:02 tempire though often it's best to use a layout
00:04 ObseLeTe get, any and post method can be used on a .pm ?
00:05 ObseLeTe http://pastebin.com/1D1QQFH6
00:11 pierrick joined #mojo
00:29 buu nicomen: Oh, thanks
00:30 tempire ObseLeTe: routes are subroutine call statements.  end each statement wiht a semi-colon.
00:30 tempire *with
00:45 memowe_ joined #mojo
00:50 laouji joined #mojo
01:21 dvinciguerra joined #mojo
01:52 d4rkie joined #mojo
02:29 noganex joined #mojo
02:35 macae joined #mojo
02:57 xaka joined #mojo
03:19 Foxcool joined #mojo
03:23 kbenson joined #mojo
03:24 kbenson Anyone get a sec to help with a mojo/morbo question?
03:29 Foxcool joined #mojo
03:46 freman joined #mojo
03:47 freman Hi! I'm having a bit of trouble finding information on getting mojolicious to run on two ports - I want a very simple page and websockets on port 80 and more of the application running on ssl enabled 443
03:48 freman Any pointers?
03:48 purl it has been said that Any pointers is there any book which gives a description??
03:55 kbenson I need a way to test/debug what's going onin morbo when it's serving a request.  At a certain point in a route definition, if I call a specific function $self->render no longer works after that poing (although print statements do show up in the console).
03:55 kbenson any suggestions on how to figure out what's going on, or any ideas as to what it might be?
04:01 Adurah Check log/development.log for oddness?
04:02 kbenson nothing shows up there
04:02 tempire freman: listen accepts an arrayref
04:02 tempire http://mojolicio.us/perldoc/Mojol​icious/Guides/Cookbook#Hypnotoad
04:03 kbenson So, oddly enough, this ended up being a red-herring for the actual problem I was tracking down, ubt this isn't the first time I've seen this (morbo failing to response to specific requests)
04:03 kbenson That is, hypnotoad responds correctly, morbo does not
04:04 freman tempire, thanks I just found that, now trying to work out the best way to do it in mojo app :)
04:05 tempire kbenson: http://mojolicio.us/perldoc/​Mojo/Server/Daemon#DEBUGGING
04:05 freman and looking at redis or similar
04:08 kbenson Hmm, the console output shows the request as I expect it (json output), but the browser still gets no response whatsoever, and there's nothing beyong the response content on the console
04:10 tempire <3 Mojo::URL
05:05 davido joined #mojo
05:06 freman is there any simple way to specify the listen => [] so that both hypnotoad (production) and daemon/morbo (dev) get it from sub startup {}
05:08 laouji joined #mojo
05:23 freman setting $ENV{MOJO_LISTEN} feels hacky but it works
05:24 freman except I'm getting ssl connection errors when I try browsing there
05:30 Britzel joined #mojo
05:36 freman GnuTLS: A TLS packet with unexpected length was received. - hmmm
05:47 freman oh helps if your keey isn'
05:47 freman oh helps if your key isn't blank
05:57 freman cheers folks
06:03 davido joined #mojo
06:11 bpmedley left #mojo
06:13 ovnimancer joined #mojo
06:56 marcus I'd like to write an open source tent.io server # got 99 problems but lack of projects ain't one.
06:57 marcus I think that would be a great mojolicious reference as well.
06:57 Vandal joined #mojo
06:59 batman joined #mojo
07:04 spleenjack joined #mojo
07:04 marcus I'M STARTING WITH THE MAN IN THE MIRROR.
07:04 marcus I'M ASKING HIM TO CHANGE HIS WAYS.
07:06 jamesw joined #mojo
07:11 batman joined #mojo
07:17 ladnaV joined #mojo
07:49 pau4o joined #mojo
07:52 Vandal joined #mojo
07:58 cosmincx joined #mojo
07:59 tempire marcus: how's the irc service coming along?
08:00 tempire I've got 99 projects but that ain't one.
08:01 ladnaV joined #mojo
08:03 marcus tempire: it's getting close, the web interface can now talk to irc and the proxy bit can connect and authenticate the user.
08:03 marcus but of course there are a lot of minor details to sort out still like topic handling and joins/quits :)
08:04 marcus tempire: we've factored out the irc bits into a Mojo::IRC package, which we will probably open source soon.
08:05 tempire Just found out about grove.io the other day.
08:06 fhelmber_ joined #mojo
08:06 vishwanathms_ joined #mojo
08:07 marcus yeah, they've been aquired by revolution systems?
08:07 marcus so they might suck less in the future, but they are still a hosted service.
08:08 marcus grove does a lot of the same things we do.
08:09 tempire I thought that's what you were going for - providing a hosted service.
08:09 marcus No, we plan to sell the software.
08:11 marcus and support deploying to free heroku simply if you don't want to host your own.
08:28 tempire I think about writing a Mojolicious book every once in a while, but then I am reminded that the docs pretty much flow like a book.
08:29 * tempire wonders what purpose a book would serve
08:30 Adurah An app that uses every feature.
08:44 AmeliePoulain joined #mojo
08:45 AmeliePoulain joined #mojo
09:12 andrefs joined #mojo
09:27 ovnimancer left #mojo
09:39 ysyrota joined #mojo
09:43 jamesw joined #mojo
09:54 Coff joined #mojo
10:06 pau4o joined #mojo
10:06 daxim joined #mojo
10:36 Lucas1 joined #mojo
10:53 kitt_vl joined #mojo
11:28 d4rkie joined #mojo
11:35 ObseLeTe joined #mojo
11:52 diegok o hai!
11:54 diegok We are doing a deploy script that every deploy creates a timestamped dir and moves real deploy dir (with the mojo app) symlink to this new one. The problem is when it call hypnotoad to restart the app hypnotoad is 'too smart' and restart the old dir app :-/
11:55 diegok Is there any workaround for this?
12:43 nicomen let move, copy and delete instead?
12:43 nicomen hopefully any file descriptors are lost that way?
12:49 memowe joined #mojo
12:51 dpetrov_ joined #mojo
12:53 batman diegok: why not use git or something else?
12:53 batman s/ or sometihng else// ;)
13:18 jnap joined #mojo
13:25 jnap joined #mojo
13:32 jnap joined #mojo
13:35 diegok batman: we update on a box, install deps, run tests and if all goes well, we rsync to all boxes and then restart...
13:36 diegok batman: I was using just git with no problems...
13:37 batman ok
13:44 batman i would replace rsync with git as well
13:53 marcus o/ batman
13:54 batman :)
13:58 batman diegok: what i do @work is that i deploy new software on any machine and then sync it to the rest. the way i do that is that i push to an "incoming" branch in the remote repos and the do "git reset --hard incoming" in a post-receive hook
13:58 bluescreen joined #mojo
13:59 batman "on any machine" as in it doesn't mather from where i do this. it just works.
13:59 Coff joined #mojo
13:59 diegok batman: Like it -> I'll propose that!
13:59 batman :)
14:00 batman it allows multiple developers work on different machines and not worry about jumping through hoops to deply :)
14:00 diegok :)
14:00 Jason_ joined #mojo
14:01 batman the only limit is set by routing and firewalls of course...
14:23 inokenty joined #mojo
14:29 knshaum joined #mojo
14:29 nic batman: When you do that, how do you rollback?
14:30 gryphon joined #mojo
14:30 nic (trying to picture whether they're also using a master branch)
14:30 batman nic: there's only two branches. an icoming branch and a master branch, so we reset the incoming branch on to the master branch
14:31 batman ...since git cannot push to a checked out branch
14:31 batman about the rollback...
14:31 nic so once you're happy there's going to be no rollback, you push to master?
14:31 batman ...we just do "git revert"
14:32 nic ah, nice
14:32 batman yeah, git revert and then push again
14:32 batman works like a charm.
14:37 ObseLeTe joined #mojo
14:42 batman but... we don't work inside this "master" repository. we work in many repos and then install it to the "master" repo, which we again sync out
14:42 batman so if you have ten repos with a 1000 commits in each, there could be only a 100 commits in the master repo...
14:43 batman like each tag in every "dev repo" results in one commit in the central "master repo"
14:44 batman this again makes it very easy to do rollback, even though we never do :)
14:44 batman (we release often instead)
15:14 macae joined #mojo
15:33 Britzel joined #mojo
15:47 rem_lex| joined #mojo
16:03 ghandi joined #mojo
16:07 xaka joined #mojo
16:31 macae2 joined #mojo
16:44 macae joined #mojo
16:44 labrown joined #mojo
16:50 bluescreen joined #mojo
17:17 abhishekisnot joined #mojo
17:53 Vandal joined #mojo
18:04 davido joined #mojo
18:08 davido joined #mojo
18:11 tempire hmm
18:11 tempire maybe a book with mojolicious best practices
18:23 nic I've been thinking about that; there seems to be enough material
18:24 nic A chapter on ways to boost your productivity would be fun
18:26 nic i used to come out of design meetings with a bundle of bullet points and a photo of whiteboard sketches
18:26 nic now we sometimes leave the room with a working prototype
18:27 nic (I bet I know less than 25% of the techniques people here are using)
18:28 nic Let me know when it's available in .mobi format please
18:29 nic If the rumour "tempire has written a Mojolicious book" grows big enough, he'll need to write one just to keep face
18:29 * nic starts twittering "Wow, the preview copy of tempire's new book is awesome"
18:37 abra joined #mojo
19:05 tempire :)
19:11 vividsnow joined #mojo
19:18 rodrigotorres joined #mojo
19:19 rodrigotorres Hello ladies and gentlemen.
19:20 rodrigotorres I had this idea, to create a mojo shell. Much in the way WWW::Mechanize::Shell works.
19:35 tempire huh
19:35 tempire neat set of examples: https://github.com/norbu09/planet-express-ship
19:36 tempire odd directory structure.  but still neat.
19:46 rodrigotorres lots of dependencies...
19:53 henq_ joined #mojo
19:53 rodrigotorres really neat
20:18 xaka joined #mojo
21:01 timbunce_ joined #mojo
21:03 timbunce_ Hi. Using Mojolicious::Lite how can I tell it which dir to use to find static files?
21:10 rodrigotorres static files will be on dir public by default
21:14 timbunce_ robinsmidsrod: sure, but I'm running a script where the script and the static files are in different directories from the user.
21:17 timbunce_ (oops, wrong user. that was meant for rodrigotorres)
21:17 batman timbunce_: add a custom directory to @{ app->renderer->paths }
21:18 batman or check what's already there...
21:18 batman https://metacpan.org/module/Mojolicious::Renderer
21:19 davido joined #mojo
21:20 tempire timbunce_: more specifically, push @{$app->static->paths} => ...
21:21 batman oh. sorry. i didn't read the question properly :(
21:21 batman good thing tempire are here to save us all :)
21:21 batman s/are/is/
21:22 tempire http://images.tempi.re/behold-nyan.gif
21:22 batman :D
21:23 batman i need to get some sleep. trying to get well :P
21:23 batman good night
21:23 timbunce_ tempire: thanks, that worked.
21:37 lukep joined #mojo
21:42 andrefs joined #mojo
22:03 rem_lex joined #mojo
22:10 vervain joined #mojo
22:13 jzawodn joined #mojo
22:49 jnap joined #mojo
23:27 ObseLeTe joined #mojo

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