Camelia, the Perl 6 bug

IRC log for #mojo, 2013-10-08

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

All times shown according to UTC.

Time Nick Message
00:17 laouji joined #mojo
00:47 shmuel joined #mojo
01:14 _H33HaW joined #mojo
01:17 _H33HaW joined #mojo
01:27 lukep_ joined #mojo
01:47 hlin joined #mojo
02:01 d4rkie joined #mojo
02:59 hesco joined #mojo
03:09 laouji_ joined #mojo
03:46 hesco Writing my first ever mojoliciscious app from scratch.  I used carton to install Mojo to local/.  Now when I run: perl -Ilocal/lib/perl5 local/bin/mojo generate VolunteerOpportunities_Add , I get: 'Unknown command "VolunteerOpportunities_Add", maybe you need to install it?'
03:46 hesco any ideas how I would proceed here?
03:46 buu hesco: mojo generate app foo
03:47 hesco thanks buu.  though that is not what this page suggests:  http://mojolicio.us/perldoc/Mojolicious/Lite
03:47 hesco trying it now
03:47 hesco yep, that did the trick
03:47 hesco perl -Ilocal/lib/perl5 local/bin/mojo generate app VolunteerOpportunities_Add
03:55 preflex_ joined #mojo
03:57 hesco https://github.com/kraih/mojo/pull/543
03:58 buu hesco: oh
03:58 hesco thanks for pointing it out.
03:58 buu hesco: The documentation is slightly unclear but what it's trying to say is "mojo generate light_app foo'
03:59 buu generate takes a number of arguments
04:00 hesco so lite_app is a valid argument, and app is another one?
04:00 hesco ok, I misread that.
04:00 laouji joined #mojo
04:00 hesco perhaps I should hone further that pull request.
04:01 zivester joined #mojo
04:04 hesco ok, updated: https://github.com/kraih/mojo/pull/543
04:08 laouji_ joined #mojo
04:19 marty_ joined #mojo
04:32 jnbek joined #mojo
04:50 buu Hey, where are the arguments to perl -Mojo -le'' documented?
04:50 buu Not the functions in ojo, the stuff you pass in @ARGV
05:01 jnbek joined #mojo
05:03 dqw7 joined #mojo
05:05 dotandimet joined #mojo
05:26 laouji joined #mojo
05:36 dqw8 joined #mojo
05:38 laouji joined #mojo
05:41 good_news_everyone joined #mojo
05:41 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/gCJsBg
05:41 good_news_everyone mojo/master 170a0ce Sebastian Riedel: use custom names in generator examples
05:41 good_news_everyone left #mojo
06:05 dabudabu joined #mojo
06:11 good_news_everyone joined #mojo
06:11 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/JBSYAA
06:11 good_news_everyone mojo/master 1964fc1 Sebastian Riedel: changed default name for generated applications from MyMojoliciousApp to MyApp
06:11 good_news_everyone left #mojo
06:17 Vandal joined #mojo
06:18 marcus g00d m0r1ng
06:19 stephan48 hesco: werent you supposed to use carton exec  to execute commands in the local env? or did i read the dcos wrong?
06:20 hesco stephan48: I read that too, but have not adapted to that yet.  still kicking it old-school, I guess.  Going with what I know.  Need to test that and see how it works in this case.
06:23 hesco this worked:  perl -I/opt/local/carton/lib/perl5 /usr/bin/carton exec mojo generate app
06:29 marcus carton ftw
06:31 denisboyun joined #mojo
06:32 crab shouldn't just "carton exec ..." work?
06:32 dod joined #mojo
06:34 dpetrov_ joined #mojo
06:35 denisboyun joined #mojo
06:38 marcus crab: yes
06:43 dod joined #mojo
07:07 gedge joined #mojo
07:11 hesco In my installation, where I used cpanm to install carton in /opt/local/carton, without touching my site libs, attempts to run carton unadorned runs into conflicts between module versions when pulling from the site libs.  In order to specify the versions installed with carton, I have to invoke carton with perl, which means that perl has to be told the absolute path to carton.  Perhaps if I add the carton libraries to my default $PERL5LIB, I
07:11 hesco can avoid these back flips
07:13 crab or just don't use carton since you're specifying paths on the commandline :-)
07:15 hesco I want to use carton to install my dependency stack, though.
07:23 mire__ joined #mojo
07:36 trone joined #mojo
07:54 dod joined #mojo
08:07 dod joined #mojo
08:16 laouji_ joined #mojo
08:19 ver joined #mojo
08:22 laouji joined #mojo
08:27 laouji_ joined #mojo
08:31 gedge joined #mojo
08:31 laouji joined #mojo
08:40 laouji joined #mojo
08:41 batman joined #mojo
08:45 laouji_ joined #mojo
08:50 nicolaas joined #mojo
08:59 dod joined #mojo
09:01 fhelmber_ joined #mojo
09:06 good_news_everyone joined #mojo
09:06 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/cLEOaQ
09:06 good_news_everyone mojo/master f893ecd Sebastian Riedel: WHATWG is the authority on HTML, not W3C
09:06 good_news_everyone left #mojo
09:18 jpn joined #mojo
09:36 maxhq joined #mojo
09:43 dod joined #mojo
09:44 basic6_ joined #mojo
09:47 dolmen joined #mojo
09:47 dolmen Where can I find the documentation of $self->redirect_to in a Mojolicious::Lite app?
09:48 batman dolmen: what do you really want? the arguments are the same as https://metacpan.org/module/Mo​jolicious::Controller#url_for
09:48 batman https://metacpan.org/module/Mojo​licious::Controller#redirect_to <-- maybe here?
09:52 dolmen batman: the later, thanks
09:52 batman :)
10:06 mire__ joined #mojo
10:11 basiliscos joined #mojo
10:12 jpn joined #mojo
10:15 wsri joined #mojo
10:15 marcus joined #mojo
10:23 good_news_everyone joined #mojo
10:23 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/PAOaHw
10:23 good_news_everyone mojo/master 4a12818 Sebastian Riedel: improved HTML Living Standard compliance of Mojo::DOM::HTML
10:23 good_news_everyone left #mojo
10:27 mire_ joined #mojo
10:35 geira joined #mojo
11:02 punter joined #mojo
11:04 _sri batman: did you have any problems with mango yet?
11:04 sri all the database talk recently is quite refreshing, almost like we are going more full stack :)
11:06 batman sri: not really.
11:06 batman but i haven't really used it a lot either
11:06 sri \o/
11:06 sri enough to build an odm ;p
11:06 batman sri: it's working like i expect, but i really haven't had any time working on the backend of app-boutique these days, since i've been focusing a lot on mandel
11:06 batman that's true, hehe
11:07 batman uhm... did that sentence make any sense..?
11:07 sri think i'm covering all bases by adding a note for mango 1.0 that it only guarantees compatibility with the latest stable version of mongodb
11:10 batman sounds like a good plan
11:10 batman did you see my dbref commit in mandel?
11:10 sri think i did
11:10 sri didn't understand much though
11:11 sri (which is not a bad thing)
11:12 batman that's super weird (!)
11:12 theSmallAirline joined #mojo
11:12 batman the thing was that i'm not using your dereference() method, since i already *know* where to look for the doc
11:12 batman not sure if that's a bad thingf
11:13 * sri shrugs
11:13 batman https://github.com/jhthorsen/mandel/blob/​19b56e77b3324f5c221a75bbf6a798b44f829489/​lib/Mandel/Relationship/BelongsTo.pm#L54
11:14 batman https://github.com/jhthorsen/mandel/blob​/19b56e77b3324f5c221a75bbf6a798b44f82948​9/lib/Mandel/Relationship/HasOne.pm#L44
11:14 batman ^ maybe the last one is better
11:15 batman so i'm using dbref mainly to make the db consistent. not mandel... :/
11:15 batman it works the same, unless you got other apps doing evil things
11:15 batman but i think evil things will be inconsistent anyway
11:15 sri keeping the db consistent is important
11:17 sri not like dereference is rocket surgery :) https://github.com/kraih/mango/blo​b/master/lib/Mango/Database.pm#L57
11:18 sri btw. inline pod makes me want to strange you :o
11:18 sri *strangle
11:33 batman no, but i'm not sure if dereference() is worth it. i'm considering checking if $model->collection_name is the same as the collection name inside the $dbref
11:33 batman inline_pod++
11:33 batman i really like having documentation close.
11:33 batman if i was to consider pod at the end, i could just put it in a .pod file.
11:33 batman don't see why
11:42 human39 joined #mojo
11:58 Mike-PerlRecruiter_ joined #mojo
12:05 trone I've a mojoapp where all the routes are under authentication (Plugin::Authentication). I'd like some routes can be called by mojoserver that obviously havent session. Some advices/pointer about webapp that call itself routes?
12:06 trone *pointer to articles
12:10 denisboyun joined #mojo
12:10 dotandimet joined #mojo
12:20 themage joined #mojo
12:28 denisboyun joined #mojo
12:32 denis_boyun_ joined #mojo
12:59 bowtie_ joined #mojo
13:21 highflying joined #mojo
13:25 hummeleBop joined #mojo
13:39 bluescreen joined #mojo
14:00 mire_ joined #mojo
14:15 btyler joined #mojo
14:15 gryphon joined #mojo
14:34 denis_boyun joined #mojo
14:45 asarch joined #mojo
14:48 sh4 joined #mojo
14:55 tempire \o/
15:01 rem_lex|pivo joined #mojo
15:10 denis_boyun joined #mojo
15:33 mire_ joined #mojo
15:46 hrupp joined #mojo
15:51 batman i have multiple forms on the same page, with the same input names. is there a way to use the taghelpers, but -not- fill in the data from param() ?
15:59 batman guess i need to solve it some other way
16:04 denis_boyun_ joined #mojo
16:06 denis_boyun__ joined #mojo
16:12 d4rkie joined #mojo
16:13 D4RK-PH0ENiX joined #mojo
16:18 dod joined #mojo
16:35 d4rkie joined #mojo
16:36 dod1 joined #mojo
16:47 basiliscos joined #mojo
16:52 fhelmber_ joined #mojo
17:00 dotandimet joined #mojo
17:01 dvinciguerra joined #mojo
17:31 gedge_ joined #mojo
17:50 dod joined #mojo
18:02 denis_boyun joined #mojo
18:13 jnbek joined #mojo
18:34 dotandimet joined #mojo
18:53 punter joined #mojo
18:56 Daga3 joined #mojo
19:15 mire_ joined #mojo
20:07 tba joined #mojo
20:13 tempire heroku added websockets
20:38 lukep joined #mojo
20:50 winslow4 joined #mojo
21:07 marcus tempire: awesome!
21:16 btyler joined #mojo
21:30 dotandimet joined #mojo
21:42 hesco what might I be missing here, please?
21:42 hesco $ carton exec prove t/basic.t
21:42 hesco t/basic.t .. Couldn't find application class "MyApp"
21:42 hesco the class is in lib and appears to be well-formed.
21:43 hesco I used the mojo generate app MyApp command to get here
21:44 hesco tempire: hey Glen.  Finally got around to trying to build something with mojo.  Congrats on the new job!
22:10 rem_lex| joined #mojo
22:32 mibfawker joined #mojo
22:34 punter What's the best way to hot-update hypnotoad? Is it with a USR2 signal, or by executing hypnotoad again?
22:35 mibfawker how do I subclass Mojolicious::Renderer? the generic isn't working so well :/ package Snafu::Renderer2; use parent qw/ Mojolicious::Renderer /; ....... app->renderer( Snafu::Renderer2->new );
22:38 mibfawker joined #mojo
23:15 jberger_ punter, start hypnotoad again, USR2 is an implementation detail and is not guaranteed (if indeed that is even correct, I didn't look)
23:16 punter ok
23:21 jberger_ punter, I was just reading the backlog
23:21 jberger_ what is Ubic and what does it do for you?
23:22 jberger_ the reason I ask is that I'm going to guess that anything that's trying to make .pid files for you is probably trying to manage process for you, which is what hypnotoad does
23:23 jberger_ in which case you might want your manager tool to use the daemon directly
23:24 jberger_ batman, tba: ok so symlinking the README works until you try to distribute, then you have to deal with that
23:24 jberger_ for my purposes I just run: podselect lib/My/Main/Module.pm > README.pod
23:27 punter jberger_: I'm creating a plugin for Ubic that uses the daemon directly
23:27 punter jberger_: What Ubic does is automatic start, watchdog, start/stop/deploy commands, etc
23:28 punter automatic start on boot, I mean
23:29 punter jberger_: So I figured everything out. Just asking stuff to help me create the plugin
23:42 jberger_ punter, so to confirm: your plugin does not call hypnotoad then, correct?
23:42 punter jberger_: It does.
23:42 punter jberger_: Maybe I understood wrongly what you said before
23:42 jberger_ does the plugin/Ubic manage forking etc?
23:43 punter let me show you: https://github.com/akarelas/ubic-service-hypno​toad/blob/master/lib/Ubic/Service/Hypnotoad.pm
23:43 punter start_impl gets called when I type: ubic start hypno
23:43 nicomen joined #mojo
23:43 punter jberger_: neither ubic nor my plugin manages forking
23:44 jberger_ punter, ok, then in that case you are probably ok to use hypnotoad
23:44 punter ok
23:56 jberger Bender, spread the love
23:56 jberger Bender, share the love
23:56 jberger I will never figure Bender out
23:59 mibfawker Is it robot?

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