Camelia, the Perl 6 bug

IRC log for #mojo, 2012-03-28

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

All times shown according to UTC.

Time Nick Message
00:33 SmokeMachine joined #mojo
01:19 * sri wonders if a 6 months feature freeze would be a good idea to let things stabilize
01:20 scott joined #mojo
02:19 tempire ha
02:20 tempire I'll buy you a Rakfisk sammich if you can go that long without adding something new.
02:25 sri heh
02:36 sri but true :(
02:36 sri i'm already thinking about the css4 subject selector
02:42 GitHub34 joined #mojo
02:42 GitHub34 [mojo] kraih pushed 1 new commit to master: http://git.io/3pMV6g
02:42 GitHub34 [mojo/master] fixed small bug in Mojo::Command->get_all_data - Sebastian Riedel
02:42 GitHub34 left #mojo
02:44 sri on the other hand, i could use a break
02:55 tempire oh no
02:55 tempire I know what comes next.
02:56 tempire mojolicious has more than enough to keep the masses busy for quite a while.  and it's not like the core devs have kept up the pace anyway.
02:56 * tempire grants sri some leave
02:56 tempire not that you'll actually take it.
02:56 tempire :)
02:57 tempire go learn haskell so I have someone to talk to about it.
02:57 tempire or linear algebra.
02:57 purl i guess linear algebra is cool. or at http://ceee.rice.edu/Books/LA/
03:07 sri \o/
03:08 * sri flees
03:55 pooka_pook joined #mojo
03:56 pooka_pook joined #mojo
04:07 lbr_ joined #mojo
04:38 MisterHatt joined #mojo
05:02 * tempire wonders if the macupdate bundle is worth it
05:19 preflex_ joined #mojo
06:20 kart00n joined #mojo
06:32 taryk joined #mojo
06:38 spleenjack joined #mojo
06:56 random joined #mojo
07:17 ashleydev joined #mojo
07:17 batman joined #mojo
07:19 Oleg joined #mojo
07:26 Oleg left #mojo
07:46 judofyr joined #mojo
07:47 marcus wassup homies
07:53 cosmincx joined #mojo
07:56 ashleydev joined #mojo
08:02 cosmincx joined #mojo
08:07 tempire joined #mojo
08:12 random left #mojo
08:17 cosimo_ joined #mojo
08:32 ki0 joined #mojo
08:49 AmeliePoulain joined #mojo
08:59 judofyr how can I delete a cookie in Mojo?
09:11 marcus judofyr: just set a new one with expiry in the past?
09:13 daxim joined #mojo
09:14 batman how do i set up nginx if i got the application mounted under /my-app/ ?
09:18 judofyr marcus: $self->cookie(foo => '') is actually good enough for now
09:30 batman i managed to get my links working by modifying $c->req->url->base(), but static files still fail...
09:32 marcus batman: using reverse proxy?
09:32 batman yes
09:32 batman weird. static files inside public/css works, but not directly in public/ ...
09:33 marcus batman: https://metacpan.org/module/Mo​jolicious::Plugin::RequestBase
09:33 marcus use my plugin :)
09:33 batman thanks :)
09:54 * lbr tries again: it seems I need both get '/' and get '/*' to catch all get-urls, is there really no way to catch them with only one get? (Mojolicious::Lite)
10:08 batman marcus: do i need a rewrite rule as well?
10:08 marcus batman: you just need to set X-Request-Base header
10:08 batman i'm getting 404 all the time :/
10:09 marcus actually you do need a rewrite header, just checked my ngnix config
10:09 marcus batman: https://gist.github.com/91fdfa093bdb81d6b14e
10:11 batman :)
10:12 batman yey!
10:12 batman works like a charm
10:23 y0j_ joined #mojo
11:22 mire_ joined #mojo
11:41 ZadYree joined #mojo
12:11 spleenjack joined #mojo
12:19 TheAthlete joined #mojo
12:19 TheAthlete left #mojo
12:28 ZadYree joined #mojo
12:50 * sri yawns
12:58 ZadYree hai!
12:59 judofyr sri: why are you so tired these days? :(
13:00 marcus cause he's staying up all night
13:01 judofyr ah, good
13:02 judofyr I thought he was bored…
13:26 abra joined #mojo
13:29 xenu_ crap! Mojolicious::Plugin::Database fails tests under win32 + activeperl 5.14.2
13:34 xenu_ here's the log: http://xenu.tk/rozne/mojo_pl​ugin_database_build_log.txt
13:38 xenu_ okay, i have debugged it
13:38 xenu_ the problem lies in this line:
13:38 xenu_ my $dbname = "/tmp/mojolicious-plugin-database-test.$$.db";
13:39 xenu_ to make it work i have to create C:\tmp
13:39 xenu_ and tests will pass
13:43 sri marcus: also the weather
13:43 purl also the weather is probably an improvement there
14:25 GitHub24 joined #mojo
14:25 GitHub24 [mojo] kraih pushed 1 new commit to master: http://git.io/6L7M8A
14:25 GitHub24 [mojo/master] fixed handler detection precedence bug in Mojolicious::Renderer - Sebastian Riedel
14:25 GitHub24 left #mojo
14:33 random joined #mojo
14:36 asarch joined #mojo
14:41 kaare joined #mojo
15:04 atrodo Is there anything special I need to do for utf8 encoding in mojo? Like in catalyst i need to use the Unicode::Encoding plugin
15:18 d4rkie joined #mojo
15:22 inokenty joined #mojo
15:30 judofyr sri: here? does libev/uv use threads internally?
15:41 sri judofyr: don't think so
15:41 sri atrodo: no
15:42 atrodo sri>  That means I'm doing something wrong.  Thanks
15:47 Psyche^ joined #mojo
16:07 taryk joined #mojo
16:19 ExpFist joined #mojo
16:26 Akron joined #mojo
16:50 mercutioviz joined #mojo
16:52 tempire joined #mojo
17:01 Foxcool joined #mojo
17:18 d4rkie joined #mojo
17:47 Mrono What was the link to the mojo page that talked about escaping to another event handler
17:52 mire joined #mojo
18:40 asarch joined #mojo
18:54 taryk joined #mojo
18:58 asarch joined #mojo
19:06 Andrei666 joined #mojo
19:06 Andrei666 hey guys
19:06 Andrei666 why does morbo
19:06 Andrei666 keep telling me
19:07 Andrei666 Using a hash as a reference is deprecated at script/../lib/MyIMDB/Home.pm line 37.
19:07 Andrei666 the line 37 is:             %return_result->{search_result} = \@search_result;
19:08 Andrei666 i keep getting errors, and I was wondering if this has something to do with it
19:11 Mrono better written as $return_result->etcetcetc
19:12 GitHub105 joined #mojo
19:12 GitHub105 [mojo] kraih pushed 1 new commit to master: http://git.io/28wR2Q
19:12 GitHub105 [mojo/master] added a few more route examples - Sebastian Riedel
19:12 GitHub105 left #mojo
19:14 psimanx1 joined #mojo
19:16 batman joined #mojo
19:18 Andrei666 Mrono: hmm I've declared that hash like this %return_result = ( ... ); instead of a hash reference like this:$return_result = {...};
19:20 Mrono my first though is then why are you adressing it as a hashref
19:21 Andrei666 so how should it be written?
19:21 Andrei666 like this? %return_result{search_result} = .... ?
19:21 Mrono i believe so
19:21 Mrono yes actually
19:21 Andrei666 k thx...I'll try
19:21 Andrei666 :)
19:21 Andrei666 and also..one more question
19:21 Mrono hashres is $hash->{key} hash is $hash{key}
19:22 Andrei666 k :)
19:22 Andrei666 i put that hash in the stash
19:22 Andrei666 like this
19:22 purl i guess like this is ok?
19:22 Andrei666 $self->stash (return_result => \%return_result) ;
19:23 Andrei666 in the template, how I dereference it?
19:23 Andrei666 like this $return_result->{search_result} ?
19:23 Mrono http://www.perlmeme.org/howtos​/using_perl/dereferencing.html
19:24 Andrei666 yes, I know it's not a mojo question, but a more perl general question :)
19:24 Andrei666 thx
19:24 Mrono i was just pasting what I was reading
19:25 Mrono I don't know how to do the dereferencing so i gotta look it up
19:26 Andrei666 :)
19:27 Mrono the section on dereferencing may help you more than me
19:28 Andrei666 yup
19:28 Andrei666 i
19:28 Andrei666 i'm reading it :)
19:30 tabbi joined #mojo
19:30 tabbi left #mojo
19:36 Andrei666 now this is a nasty one
19:36 Andrei666 Use of inherited AUTOLOAD for non-method MyIMDB::Home::search() is deprecated at /usr/lib/perl5/site_perl/5.​14.2/Mojolicious/Routes.pm line 137.
19:36 Andrei666 :-?
19:36 Andrei666 :-??
19:37 Mrono no clue
19:38 Andrei666 mkay
19:43 psimanx1 Andrei666: does the sub 'search' exist in MyIMDB::Home ?
19:43 Andrei666 yes it does
19:44 Andrei666 but now I've modified everything back...like %return_result->{search_result}
19:44 Andrei666 and I don't get that error anymore
19:44 Andrei666 but I have others in the template..
19:45 Andrei666 Can't modify scalar in concatenation (.) or string at template "home/search.html.ep" line 10, near "% if ($return_result->{search_type} =~ /actors|movies/ ){ ".
19:46 psimanx1 How is return_result populated?
19:46 Andrei666 %return_result->{search_result} = \@search_result
19:46 Andrei666 and @search_result = MyIMDB::Models::Actors->search_like( name => "%$search_query%" );
19:47 Andrei666 and i stash the %return_result like this:      $self->stash ( return_result => \%return_result);
19:47 psimanx1 Should $return_result{search_result} = \@search_result if you declared %return_result
19:47 psimanx1 *should be
19:48 Andrei666 ok
19:48 Andrei666 i'll do that :)
19:48 Andrei666 and see what happens
19:48 psimanx1 :)
19:49 Andrei666 I've done that but I still get the same error
19:49 psimanx1 the inherited autoload one?
19:49 Andrei666 Can't modify scalar in concatenation (.) or string at template "home/search.html.ep" line 10, near "% if ($return_result->{search_type} =~ /actors|movies/ ){ ".
19:49 psimanx1 ah k
19:49 Andrei666 this ne ^^^
19:50 psimanx1 Best thing to do is to use Data::Dumper to dump the data structures to see what's in there.
19:50 Andrei666 I do that..
19:50 * tempire sprinkles glitter on Andrei666's code
19:50 Andrei666 but It look ok ...from my point of view :P
19:50 fR joined #mojo
19:51 Andrei666 thanks tempire :P
19:53 GitHub189 joined #mojo
19:53 GitHub189 [mojo] kraih pushed 1 new commit to master: http://git.io/N0yBVQ
19:53 GitHub189 [mojo/master] added WebSocket parser example - Sebastian Riedel
19:53 GitHub189 left #mojo
19:56 GitHub168 joined #mojo
19:56 GitHub168 [mojo] kraih pushed 1 new commit to master: http://git.io/WjmNeA
19:56 GitHub168 [mojo/master] fixed ability to disable inactivity timeout in Hypnotoad (closes #309) - Sebastian Riedel
19:56 GitHub168 left #mojo
19:58 GitHub193 joined #mojo
19:58 GitHub193 [mojo] kraih pushed 1 new commit to master: http://git.io/dhlkQw
19:58 GitHub193 [mojo/master] fixed ability to disable accepts limit in Hypnotoad - Sebastian Riedel
19:58 GitHub193 left #mojo
19:59 * sri curses at ||=
20:00 * sri hugs //=
20:01 psimanx1 sri: I'm afraid you have me to thank for that crappy bug report...
20:01 sri psimanx1++
20:21 Andrei666 the stuff that's placed in the stash...should it be referenced?
20:21 Andrei666 like $self->stash ( somthing => \%hash); ?
20:25 batman i think it's a bit weird that there's no core way of doing mkdir -p foo/bar/baz ...
20:25 batman nothing to do with mojo though :)
20:25 batman at least not directly... i want to move a file to a non-existing sub directory...
20:26 sri i'm pretty sure there is
20:26 sri File::Path::mkpath
20:26 batman is File-Path in core?
20:27 batman https://metacpan.org/release/perl <-- can't see it here...
20:27 sri "corelist File::Path"
20:27 sri "corelist -v 5.10.1"
20:27 tempire Andrei666: yes, you want to pass references.
20:27 batman oh. bummer.
20:28 batman thanks sri
20:28 tempire corelist is such a great command
20:28 Andrei666 tempire: i thought  so...
20:28 * tempire always forgets about it
20:28 GitHub192 joined #mojo
20:28 GitHub192 [mojo] kraih pushed 1 new commit to master: http://git.io/jkBAPw
20:28 GitHub192 [mojo/master] even more route examples - Sebastian Riedel
20:28 GitHub192 left #mojo
20:30 sri hmm, the hunger games was actually pretty good, maybe i should read the books :o
20:30 tempire KILL ALL THE CHILDREN
20:30 Andrei666 this is weird, I did a print Dumper ($return_result); and I don't get nothing...
20:42 Andrei666 :quit
20:42 Andrei666 left #mojo
20:42 Andrei666 joined #mojo
20:48 fR hi everyone, i'm trying to embed a mojolicious::lite server (websockets) into an existing perl app. is there an example of how to start the server in a non-blocking way?
21:32 mercutioviz_ joined #mojo
21:36 fR okay, simpler question: how can I stop a Mojo::Server::Morbo after calling run()?
21:36 jamesw joined #mojo
22:29 lukep joined #mojo
22:58 zivester joined #mojo
23:37 gwui joined #mojo
23:40 asarch joined #mojo
23:48 perlite_ joined #mojo

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