Camelia, the Perl 6 bug

IRC log for #mojo, 2013-10-01

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

All times shown according to UTC.

Time Nick Message
00:43 btyler joined #mojo
00:52 shmuel joined #mojo
01:03 laouji joined #mojo
01:05 hrupp joined #mojo
01:13 btyler joined #mojo
01:49 Adura joined #mojo
01:59 dqw6 joined #mojo
02:00 d4rkie joined #mojo
02:00 d4rkie joined #mojo
02:17 laouji joined #mojo
02:56 rem_lex joined #mojo
03:06 preflex_ joined #mojo
03:27 spacechicken joined #mojo
03:54 asarch joined #mojo
04:17 laouji joined #mojo
04:36 moltar joined #mojo
04:54 memowe joined #mojo
05:15 D4RK-PH0ENiX joined #mojo
05:16 basic6 joined #mojo
05:38 Guest-quest joined #mojo
05:48 yakudza joined #mojo
06:15 dod joined #mojo
06:19 dod joined #mojo
06:33 spacechicken2 joined #mojo
06:35 denisboyun joined #mojo
06:39 dpetrov_ joined #mojo
06:47 basiliscos joined #mojo
06:47 dod joined #mojo
06:54 denis_boyun__ joined #mojo
06:54 Liam` joined #mojo
07:42 trone joined #mojo
07:55 dotan joined #mojo
07:58 moritz heh, somebody asks on the Erlangen.pm mailing list how to extract some specific data from a website, and within 20 minutes there are three replies, all using Mojo::UserAgent and Mojo::DOM
08:00 basiliscos joined #mojo
08:13 dqw6 joined #mojo
08:16 nic :)
08:17 themage joined #mojo
08:27 laouji joined #mojo
08:36 laouji joined #mojo
08:44 arthas joined #mojo
08:58 moritz ... and a fourth solution based on Mojo::{UserAgent,DOM} has arrived :-)
09:10 laouji joined #mojo
09:12 crab are they all the same?
09:20 hrupp joined #mojo
09:23 fhelmber_ joined #mojo
09:24 moritz crab: not quite, but not too different either; the problem is simple enough that there's a bunch of similar, obvious solutions
09:28 mire__ joined #mojo
09:35 marcus We ownz the Erlangen!
09:41 rem_lex|pivo joined #mojo
09:48 ver joined #mojo
10:07 mire_ joined #mojo
10:10 maxhq joined #mojo
10:15 dqw6 joined #mojo
10:17 Lee_ joined #mojo
10:29 dod joined #mojo
10:32 Lee joined #mojo
10:37 henq joined #mojo
10:43 punter joined #mojo
10:55 ferminter joined #mojo
10:58 ferminter mojo guides growing says "since installable scripts can't use lib without breaking updated dual-life modules.", any link to more info?
11:10 henq [newby alert] I welcome the new validation functions in 4.42; Any thoughts on how to glue traits
11:11 henq (isa => Str and Number ; required => 1 ) from Moose (and family, also p5-mop-redux)
11:11 henq with Mojo's validations?
11:16 nicomen joined #mojo
11:23 dqw6 joined #mojo
11:35 harvested joined #mojo
12:22 sri moritz: :D
12:24 maxhq joined #mojo
12:28 mst henq: those aren't traits, and the Moose type system is crap
12:28 mst henq: trying to figure out how to make Type::Tiny work would be cool though
12:33 batman i got a problem with mandel+has_many: $doc->add_cat($cat_obj); # should that insert the $cat_obj + update $doc in database?
12:33 batman or just add the cat or leave the saving to the user?
12:33 mst why would that require $doc to be updated?
12:33 mst oh, I see what you mean
12:35 batman also, should it make $cat_obj holds a reference back to $doc or just one way from $doc -> $cat_obj
12:35 batman so many questions :)
12:37 batman what i'm thinking is: $doc is saved. $cat_obj is saved. $doc holds a ref to $cat_obj, but $cat_obj does not contain a ref to $doc
12:38 batman ...when i do ->add_cat()
12:38 batman mst: does that sound right? is it right in dbic? if so, i can just read the has_many doc again
12:39 mst that's what DBIC does
12:39 batman it makes sense, doesn't it..?
12:39 mst yes, basically
12:39 batman :)
12:40 mst it's not something I've tended to want to change very often
12:40 batman mongo doesn't have txn though. better cross fingers instead ;)
12:40 mst so I think it's almost certainly the principle of least surprise default behaviour
12:40 batman then i will implement!
12:41 batman i managed to release partial support earlier. good thing mandel is experimental :)
12:42 moltar joined #mojo
12:45 henq thx, i'll give type::tiny a look
12:53 henq but it all chains together : with tiny, i can no longer use LittleORM
13:05 good_news_everyone joined #mojo
13:05 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/JFoEsg
13:05 good_news_everyone mojo/master 8eb3965 Sebastian Riedel: better example for flash use with form validation
13:05 good_news_everyone left #mojo
13:07 asarch joined #mojo
13:08 d4rkie joined #mojo
13:15 hrupp joined #mojo
13:35 bluescreen joined #mojo
13:43 sh4 joined #mojo
13:43 btyler joined #mojo
13:51 dotan Yay! A source link in Mojolicious::Guides!
13:54 Dandre hello
13:55 Dandre I am trying to use Moo in one of my Mojolicious conrollers. I get this error: 'has redefined'
13:55 Adura What has been redefined?
13:55 moritz 'has'
13:55 Adura Has has been redefined?
13:55 moritz yes
13:56 Dandre What I am looking for is Role functionnality. Is there such thing in mojo?
13:56 moritz seems like both Mojo::Base and Moo export 'has'
13:56 Dandre moritz: yes
13:57 batman Dandre: no.
13:58 sri don't mix Mojo::Base and Moo, then everything should be fine
13:58 gryphon joined #mojo
13:59 Dandre so there is no way to import role in a mojolicious controller?
14:00 sri of course there is if you use the right modules
14:01 rem_lex joined #mojo
14:02 Dandre ok fine, what module do you recommend?
14:02 Dandre Role::Tiny?
14:02 sri Moo is just fine
14:04 Dandre so what must I do?
14:05 moritz 15:58 < sri> don't mix Mojo::Base and Moo, then everything should be fine
14:08 Dandre I understand I can't do this: http://pastebin.fr/28926
14:08 Dandre but I don't know how to get the right result using Moo
14:09 moritz Moo supports inheritance too, no?
14:09 moritz then use Moo's support for inheritance, and completely leave out Mojo::Base
14:09 batman moritz: Moo's attributes are not chained
14:09 batman *chainable
14:10 sri batman: that's not really relevant
14:10 batman sri: but still something that you need to watch out for in case you override *stuff*
14:11 dod joined #mojo
14:11 batman why won't this work: use Moo; extends 'Mojolicious::Controller'; ... ?
14:12 batman s/why//
14:13 Dandre I'll try in my code
14:16 batman Dandre: is it just me or do you often ask just before you're trying?
14:20 Dandre No but I hadn't the idea to not use Mojo::Base has I was using Mojolicious
14:23 ryozi joined #mojo
14:29 Adura Oh has, you rogue.
14:53 abhishekisnot joined #mojo
15:04 d4rkie joined #mojo
15:04 d4rkie joined #mojo
15:17 TheCrimsonRadish joined #mojo
15:54 * sri is surprised nobody has asked for more core validation checks yet
15:57 marty sri:  can you please add a core validation check for ->is_bender
15:58 sri \o/
16:08 dod joined #mojo
16:14 chansen joined #mojo
16:14 crab and ->is_bent
16:15 phillipadsmith joined #mojo
16:16 dvinciguerra joined #mojo
16:17 yakudza joined #mojo
16:35 dqw6 joined #mojo
16:58 bowtie_ joined #mojo
17:04 camel joined #mojo
17:38 batman where is the validation example?
17:40 batman ah! rendering
17:49 batman sri: my $success = $validation->has_error; <-- is this a typo?
17:49 batman https://metacpan.org/module/Mojolici​ous::Validator::Validation#has_error
17:50 sri batman: BE MORE SPECIFIC!
17:51 batman 1. click on the link i pasted
17:51 batman 2. look at the text in the top of your browser
17:51 batman 3. i think it says something like "my $success..."
17:51 sri BE MORE SPECIFIC FFS!
17:52 batman 4. is is supposed to be my $bool, my $error, ... = $validation->has_error?
17:52 * batman give up
17:52 sri well, then i'm going to ignore you
17:52 Adura Specifically, how have you given up?
17:52 marty github is having issues.  :(
17:53 batman sri: no idea which part you didn't understand. BE MORE SPECIFIC.
17:53 batman :P
17:53 * sri puts batman on ignore
17:56 Adura Next time, make sure you're being valid.
17:59 marty github is back up.  \o/
18:01 russum joined #mojo
18:02 marcus sri: I think he means it seems reversed.
18:03 marcus sri: if($success) { # now actually ->has_error
18:05 marcus crab: I'd rather have get_bent
18:14 basiliscos joined #mojo
18:27 good_news_everyone joined #mojo
18:27 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/hlKk6w
18:27 good_news_everyone mojo/master 307d6e1 Sebastian Riedel: documentation tweaks
18:27 good_news_everyone left #mojo
18:30 russum1 joined #mojo
18:37 * marty just got tls behind an nginx reverse proxy working.   ~o/~
18:39 batman sri: still ignoring me?
18:39 Adura He's ignoring you specifically.
18:40 batman Adura: i'm so glad you're here to educate me.
18:40 Adura Exactry.
18:55 marcus sri: forgot to take your pills today? ;)
18:56 batman mst: human has_many cats <-- should it be human->{cats} = [ ... ]; or $cat->{human_id} = ... ?
18:59 mst batman: I thought the 'usual' way in mongo was to either (a) inline the cats into the human document
18:59 mst or (b) store an arrayref of cat ids in the human, -and- a human id in the cat
18:59 batman ok. both. thanks.
19:00 batman but in dbic, it's the cat pointing back to human..? cat.id_owner = or something?
19:00 mst yes. but in dbic, the backend is significantly better at queries :)
19:01 batman yeahyeah.
19:01 mst mongodb always reminds me of mysql 3.23+MyISAM
19:01 batman :D
19:01 batman that's awsome. i don't think mysql 3.23 has gotten a bug report in ten years!
19:01 batman must be kick ass.
19:02 mst batman++ # nice comeback
19:02 * batman is copying mysql borat from twitter
19:02 batman mst: thanks :)
19:02 sri marcus: batman always gets snippy when asked to clarify what he meant... and since i hurt my leg from running earlier this week... my tolerance for bullshit is rather low atm
19:02 mst sri: I just shout at him until me makes sense
19:03 sri mst: THAT'S WHAT I DID!
19:03 batman sri: sorry. i sincerely wanted to clarify. i'm not used to talking with people above average, so whenever people ask me to clarify, i go super basic
19:05 batman tempire: i think i need to support inline documents again in mandel...
19:05 batman s/documents/objects/
19:05 mst batman: option (a) for a one-many is basically that, isn't it?
19:06 batman yeah. i suppose so. i just get confused when actually trying to figure out what dbic does.
19:06 batman i mostly set it (dbic) up and then just let it dwim
19:06 batman i still think it's a bit difficult to set it up - since i'm not doing it that often.
19:18 mst I ... did not have a normal experience of learning it, so can't really comment :)
19:39 maxhq joined #mojo
19:43 asarch joined #mojo
19:47 howitdo what module(s) are the best to use with mojo for form handling? redisplaying form with errors, form field validation, displaying submission confirmation page, etc.?
19:48 denisboyun joined #mojo
19:53 sri howitdo: you're funny https://github.com/kraih/mojo/blob/v4.42/Changes
19:54 sri http://mojolicio.us/perldoc/Mojolici​ous/Guides/Rendering#Form_validation
19:54 sri just be aware it's still experimental
20:03 gtodd I just cpanm RapidApp to take a look at it ... (I do the same with Dancer now and then)
20:03 gtodd I think RapidApp installed 79 dists and modules
20:04 gtodd that's a lot compared to Mojo ... !
20:05 cfedde documentation is like sex. Great when it is good but better than nothing when it is not.
20:09 marcus gtodd: never heard of rapidapp.
20:09 marcus gtodd: it seems to extend catalyst?
20:10 gtodd yeah
20:10 marcus and it has a shitload of modules. Are you sure this isn't a java project? ;)
20:10 gtodd heh
20:11 marcus gtodd: is it interesting?
20:11 marcus oh, I found videos \o/
20:13 gtodd sure .... not so much to me right now maybe to service providers or as an in house customizable CMS ...  deploying and the "apps" that it builds seems errm complicated ... compared to say mojo and carton
20:13 gtodd but it's a whole different beast
20:16 gtodd marcus:  mojolicious at least has a chance of running on perlito ;-)
20:41 tba_ joined #mojo
20:55 moltar joined #mojo
21:20 denisboyun joined #mojo
21:27 perlite_ joined #mojo
21:53 lukep joined #mojo
23:08 dqw6 joined #mojo
23:29 dvinciguerra joined #mojo

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