Camelia, the Perl 6 bug

IRC log for #mojo, 2013-03-22

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

All times shown according to UTC.

Time Nick Message
00:22 preflex_ joined #mojo
00:30 preflex joined #mojo
00:34 mattastrophe joined #mojo
00:40 preflex_ joined #mojo
00:44 preflex joined #mojo
00:49 dhg joined #mojo
01:05 mattastrophe_ joined #mojo
01:10 hlin joined #mojo
01:13 egopro joined #mojo
01:27 ka2u joined #mojo
01:31 d4rkie joined #mojo
01:51 l3l1p joined #mojo
01:55 hesperaux_ joined #mojo
02:00 hesperaux joined #mojo
02:04 preflex_ joined #mojo
02:32 preflex_ joined #mojo
02:35 mattastrophe_ joined #mojo
02:46 egopro_ joined #mojo
02:48 egopro_ joined #mojo
02:49 Akron joined #mojo
03:04 preflex_ joined #mojo
03:26 preflex_ joined #mojo
03:28 beyondcreed joined #mojo
03:29 rem_lex| joined #mojo
03:35 preflex joined #mojo
03:41 preflex_ joined #mojo
03:47 btyler joined #mojo
04:03 preflex joined #mojo
04:12 preflex_ joined #mojo
04:36 preflex_ joined #mojo
04:46 preflex_ joined #mojo
04:58 zacts joined #mojo
05:05 hesperaux_ joined #mojo
05:07 ka2u joined #mojo
05:28 preflex joined #mojo
05:34 basiliscos1 joined #mojo
05:58 Admin joined #mojo
06:13 preflex joined #mojo
06:18 suy joined #mojo
06:25 preflex joined #mojo
06:33 marcus CGI :Z
06:43 dod joined #mojo
06:51 preflex_ joined #mojo
06:51 coff joined #mojo
06:53 Averna joined #mojo
06:58 dod joined #mojo
07:08 yakudza joined #mojo
07:10 Vandal joined #mojo
07:30 ka2u joined #mojo
07:38 baton8 joined #mojo
07:39 dod joined #mojo
07:50 preflex joined #mojo
08:02 dpetrov_ joined #mojo
08:11 nicolaas joined #mojo
08:12 suy joined #mojo
08:17 nicolaas hi all
08:22 dbr joined #mojo
08:30 fhelmber_ joined #mojo
08:41 ObseLeTe joined #mojo
08:42 nbezzala joined #mojo
08:44 maxhq joined #mojo
08:49 trmjoa joined #mojo
08:49 preflex_ joined #mojo
09:01 preflex_ joined #mojo
09:07 preflex_ joined #mojo
09:11 hrupp joined #mojo
09:20 podz joined #mojo
09:20 podz hi
09:21 podz quick question (just getting started with mojo): in the example code on the front page of mojolicio.us, how do I call the code "get '/list/:offset' => sub {"  as an URL from my browser?
09:22 podz I tried http://localhost:3000/list/30   and it doesn't work
09:25 suy what doesn't work? Look at the output of morbo. Are you using "render" properly?
09:26 suy I mean, what do you get in the browser at that URL.
09:27 podz in the browser at that URL, it just shows "Hello World!"
09:27 podz output of morbo:   [Fri Mar 22 11:26:56 2013] [debug] GET /list/30 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/536.28.10 (KHTML, like Gecko) Version/6.0.3 Safari/536.28.10).
09:27 podz [Fri Mar 22 11:26:56 2013] [debug] Routing to a callback.
09:27 podz [Fri Mar 22 11:26:56 2013] [debug] 204 No Content (0.002337s, 427.899/s).
09:28 suy podz: and what do you have in the subroutine?
09:28 suy (and probably you should post the output to some website, not the channel ;-) )
09:28 podz it is exactly as it is on http://mojolico.us front page, just copy pasted the example
09:28 d4rkie joined #mojo
09:29 podz i just don't understand the browser interface how to execute the methods, that was my only question really
09:29 suy So what did you expect to get? the Hello world example just prints hello world.
09:30 podz if i call  http://localhost:3000/list/30  I expected to get a list from 1 to 30
09:30 suy no, not at all
09:31 suy With `get '/list/:offset'` what you define is the following:
09:32 suy 1. That you want your application to respond to a URL that begins with '/list/', and is followed by some text, that is captured in a variable
09:32 suy 2. That when such thing happens, a subroutine will be called. That's what you have to write.
09:32 suy If you want to list from 1 to 30, you will have to create the loop yourself.
09:33 suy (that's more or less, quite informally speaking, I'm new to mojo too)
09:33 podz ok thanks. how about that /echo service?
09:33 suy I suggest you start watching the mojocasts, are quite informative, and you see how everything works.
09:33 podz yeah, ok, thanks!
09:35 suy About "echo", more or less the same thing. When a websocket comunicates by the /echo uRL, a subroutine is called, and it seems it writes to the websocket the ssame it receives
09:36 podz the /echo/foo gives "page not found"
09:36 suy exactly
09:36 podz alright, i am off to watch the mojocasts ;-)
09:36 suy because the url is /echo, not /echo/foo, nor /echo/:placeholder
09:37 jpn joined #mojo
09:37 suy good choice :)
09:41 nicolaas is it possible to run multiple mojolicious instances (with morbo, hypnotoad or other) without losing the session from one to another ? I only tried with morbo (run two morbo at the same time) but maybe is it just with it
09:41 podz you want distributed session management?
09:42 nicolaas well .. i don't know, i want each webapp to manage its own session
09:42 nicolaas for example, host many web apps on a same server
09:42 nicolaas on different ports
09:42 Averna joined #mojo
09:43 nicolaas (but users of one app can't access another)
09:43 nicolaas must not
09:44 podz each app sends it's own cookies to the browser
09:45 nicolaas podz: doesn't matter what server is used ?
09:46 podz no
09:47 nicolaas podz: weird then, because i observed that when i login with one app, i get logged out from the other one
09:47 nicolaas maybe it's just morbo
09:53 nbezzala joined #mojo
09:53 nicolaas another question : is it possible to send very (like, more than 50 or 500Mo) with a simple http post request ?
09:54 nicolaas i've seen the Mojo::UserAgent class but I don't think it's made for that, is it ?
09:55 dhg joined #mojo
09:57 suy you mean very large files?
09:59 nicolaas yes
09:59 nicolaas well, i mean "a file of any size between 1ko to 1Go" ..
10:00 berov joined #mojo
10:00 nicolaas is it just a js and server timeout setting ?
10:00 nicolaas or are there other methods that can be run from a web browser ?
10:01 nbezzala_ joined #mojo
10:01 berov Hello . I have implemented some custom commands in one of my Mojo Apps.
10:01 berov I want some commands to borrow functionality from other "friends" commands
10:01 berov I tryed the "cannonical" way
10:02 berov use Exporter qw( import );
10:02 berov but I receive "Subroutine description redefined at..."
10:03 berov seems the attributes get always exported by Mojo::Base
10:03 berov some advice on how to work around this?
10:04 berov Note that using subroutine aliases gives the same result
10:06 berov should I fallback to use base "Mojolicious::Command"; in my commands
10:06 berov ?
10:10 preflex joined #mojo
10:15 nicolaas berov: i think "subroutine redefined" is not a problem
10:15 snuffles joined #mojo
10:16 nicolaas i made a command to generate app in a custom way, I just used : "use Mojo::Base 'Mojolicious::Command';"
10:16 nicolaas and redefined the "run" method
10:16 nicolaas (well, don't know if it helps ..)
10:17 nbezzala joined #mojo
10:19 Vandal is there a way to get the current route name?
10:19 preflex_ joined #mojo
10:20 nbezzala_ joined #mojo
10:20 nicolaas suy: you have an idea for very large files ? even with small files i get a "413 request entity too large" .. but the upload happens anyway
10:21 suy nicolaas: no idea
10:21 nic Vandal: ->current_route
10:21 nicolaas suy: ok thanks
10:22 berov nicolaas: it wil be a problem whne the amount of warnings feels my screen on each run :)
10:23 Vandal nic, thank you
10:23 berov *when
10:24 berov My app also uses custom namespace for commands
10:24 berov where I put my common functionality
10:24 berov still there is functionality I want to share anly among sertain commands
10:24 berov *only
10:26 nbezzala_ joined #mojo
10:28 nic berov: if you just want the warnings to shut up, you can use "no warnings 'redefine'"
10:30 nbezzala__ joined #mojo
10:30 preflex joined #mojo
10:33 nbezzala__ joined #mojo
10:35 berov yes i know, I just found my mistake :)
10:35 nic :)
10:35 berov sorry . I had copy/pasted the old command package name  in my new command
10:36 lukep joined #mojo
10:36 berov I received an error at the end: Unknown command "$name", maybe you need to install it?
10:37 berov this led me to the idea I am doing something wrong
10:37 bowtie joined #mojo
10:38 nic It always makes me smile how polite that message is
10:39 preflex joined #mojo
10:39 Britzel joined #mojo
10:40 nbezzala joined #mojo
10:40 nic In my own re-implementation of perl that message is replaced by "WTF! WHERE AM I SUPPOSED TO FIND $name? DON'T LEAVE ME GUESSING! MORON!"
10:43 berov :)))
10:43 berov This message comes from Mojolicious::Commands
10:51 mugenken joined #mojo
10:54 good_news_everyone joined #mojo
10:54 good_news_everyone [mojo] marcusramberg created ojo_fatal_exceptions (+1 new commit): http://git.io/FPfsgA
10:54 good_news_everyone mojo/ojo_fatal_exceptions 3887d86 Marcus Ramberg: Make j throw exceptions on invalid JSON
10:54 good_news_everyone left #mojo
10:54 preflex joined #mojo
10:55 travis-ci joined #mojo
10:55 travis-ci [travis-ci] kraih/mojo#387 (ojo_fatal_exceptions - 3887d86 : Marcus Ramberg): The build passed.
10:55 travis-ci [travis-ci] Change view : https://github.com/kraih/mojo/commit/3887d86b095e
10:55 travis-ci [travis-ci] Build details : http://travis-ci.org/kraih/mojo/builds/5712085
10:55 travis-ci left #mojo
10:56 marcus sri: there you go. Didn't actually break any existing tests either.
11:05 podz i just want to say thanks to the devs: mojo installation is dead simple and the guides kick ass. Just finished with Growing, and I learned a lot.
11:06 marcus podz: \o/
11:06 marcus We are glad you like it.
11:07 podz i am planning to build some json credit-based web services and chose mojo because i am a longtime perl hacker
11:07 podz not much of a web programmer, though, so learning is in order
11:10 marcus podz: sounds fun :)
11:11 marcus Who's killing the frenchman with Mojolicious? https://twitter.com/tuxicati​on/status/315029739154853888
11:14 marcus oh, probably Tobi - http://act.perl-workshop.ch/spw2013/talk/4580 :)
11:17 l3l1p joined #mojo
11:21 jpn joined #mojo
11:34 preflex joined #mojo
11:36 mire joined #mojo
11:44 preflex joined #mojo
12:05 preflex joined #mojo
12:11 preflex_ joined #mojo
12:12 denisboyun joined #mojo
12:23 preflex joined #mojo
12:31 Vandal have any one send mail by Mojolicious::Plugin::Mail via SMTP?
12:39 mire joined #mojo
12:43 preflex joined #mojo
12:45 michaelfung joined #mojo
12:46 Averna joined #mojo
12:47 Fremean joined #mojo
12:50 michaelfung Whether to write a helper or plugin? If I need to access a non blocking message queue?
12:50 SmokeMachine joined #mojo
12:50 d4rkie joined #mojo
12:51 moltar joined #mojo
12:51 nbezzala joined #mojo
13:18 bluescreen joined #mojo
13:23 preflex_ joined #mojo
13:30 dhg joined #mojo
13:30 rihegher joined #mojo
13:33 nbezzala joined #mojo
13:42 D4RK-PH0ENiX joined #mojo
13:51 jpn joined #mojo
13:56 btyler joined #mojo
13:59 gryphon joined #mojo
14:02 preflex joined #mojo
14:19 preflex joined #mojo
14:24 preflex_ joined #mojo
14:28 preflex joined #mojo
14:30 sri marcus++
14:30 sri how odd that no tests break
14:32 sri marcus: btw. encode doesn't produce errors
14:32 ObseLeTe joined #mojo
14:35 preflex_ joined #mojo
14:36 sri marcus: http://pastie.org/7067393
14:46 preflex joined #mojo
14:54 jpn left #mojo
15:02 jpn joined #mojo
15:02 podz left #mojo
15:17 good_news_everyone joined #mojo
15:17 good_news_everyone [mojo] kraih pushed 1 new commit to ojo_fatal_exceptions: http://git.io/S1CjVw
15:17 good_news_everyone mojo/ojo_fatal_exceptions b79a780 Sebastian Riedel: simplified j function
15:17 good_news_everyone left #mojo
15:17 sri or i could just fix it myself ;p
15:22 jpn joined #mojo
15:28 newbie joined #mojo
15:36 preflex joined #mojo
15:36 toebu joined #mojo
15:41 btyler joined #mojo
15:56 avkhozov joined #mojo
16:02 xaka joined #mojo
16:05 davido joined #mojo
16:23 basiliscos joined #mojo
16:27 batman is it possible to access the $template variable inside a layout ?
16:31 batman oh. the template seems to be deleted from the stash on render..?
16:34 batman why is that..?
16:35 sri crab: looks like you might be the deciding vote on #472
16:49 denisboyun joined #mojo
16:51 preflex joined #mojo
16:59 mattastrophe_ joined #mojo
17:15 mire joined #mojo
17:17 sh4 joined #mojo
17:24 sri jberger: you're a bit fast with the +1s
17:26 eugen joined #mojo
17:29 heytrav joined #mojo
17:30 rihegher left #mojo
17:33 Vandal where can I find client's user agent?
17:34 sri http://www.kickstarter.com/projects/and​rewgodwin/schema-migrations-for-django # wow, i wonder if this would work for perl projects too
17:37 d4rkie joined #mojo
17:38 dod joined #mojo
17:45 nicolaas joined #mojo
17:45 nicolaas hello
17:45 berov left #mojo
17:46 nicolaas can't we make something like $self->render(template=>'my/template', my_var1 = $var1, my_var2 = $var2, partial=>1); ?!
17:46 nicolaas I get an error in my template "$my_var2" requires explicit package name when i try to do something with it
17:48 nicolaas my_var1=>$var1 of course
17:48 nicolaas but it isn't working
17:48 nicolaas please save my week end ...
17:52 mire joined #mojo
17:58 preflex joined #mojo
18:00 xaka joined #mojo
18:04 preflex_ joined #mojo
18:07 basic6 joined #mojo
18:12 suy joined #mojo
18:16 btyler joined #mojo
18:17 preflex_ joined #mojo
18:18 newbie joined #mojo
18:24 preflex joined #mojo
18:45 marty Adria Richards makes yahoo front page.   A dubious achievement of grand proportion.
18:55 preflex_ joined #mojo
18:58 preflex joined #mojo
18:59 btyler joined #mojo
19:00 jberger_ joined #mojo
19:00 jberger_ sri: I guess I should reserve that for end of voting
19:00 jberger_ I should say "I'm leaning for it" or something
19:01 jberger_ I tried to say that with "Before hearing other arguments", but I think I didn't make myself clear
19:01 basic6 joined #mojo
19:02 * sri defaults to -1 until he knows all the facts and has been convinced
19:02 preflex_ joined #mojo
19:04 jberger_ sri: probably a good position, especially for you being the fearless leader
19:04 jberger_ I just need to be more careful with my phrasing
19:09 riche marty: that's probably the most pure form of a career-limiting-move i've seen
19:15 sri jberger_: hope my answer is clear enough https://github.com/kraih/mojo/​pull/472#issuecomment-15316113
19:19 sri non-blocking is hard, lets go shopping
19:19 d4rkie joined #mojo
19:22 labrown joined #mojo
19:24 preflex_ joined #mojo
19:31 jberger_ sri: understood. buy something sparkley for me :-)
19:31 marcus http://www.quickmeme.com/meme/3thijt/
19:33 jberger_ marcus: Need a Perl-shell from which to run your mojolicious app? why not Zoidberg?! https://metacpan.org/module/Zoidberg
19:37 mattastrophe_ joined #mojo
19:43 preflex joined #mojo
19:48 good_news_everyone joined #mojo
19:48 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/8HlWiQ
19:48 good_news_everyone mojo/master af03d95 Sebastian Riedel: better Mojo::JSON tests
19:48 good_news_everyone left #mojo
19:49 Caelum the TtRenderer plugin docs say the controller instance can be accessed as 'c', however I get nothing
19:49 Caelum oh well, I'm overriding it anyway, easy to fix
19:49 preflex_ joined #mojo
19:55 marcus jberger_: because zsh ;)
19:56 Caelum zoidberg has been dead for like a decade
19:56 Caelum unless someone picked it up again
19:58 preflex joined #mojo
19:58 Caelum no c is there, so why can't I call anything from it
20:00 Caelum oh dear god, this shitty templates overwrites it
20:04 jberger_ joined #mojo
20:05 jberger_ Caelum, did you look?
20:06 jberger_ (at Zoidberg I mean)
20:06 Caelum yeah years ago
20:06 Caelum oh hey, you're maintaining it, cool
20:07 jberger_ there was one little broken test that needed fixing
20:07 jberger_ I found a few nits and fixed them, and updated the build system to be a little more sane
20:07 jberger_ its cool stuff
20:08 Caelum I guess I'll alias 'c' to 'ctx' in the templates, I hate this
20:10 Caelum jberger_: I'm not sure I'd use a shell without posix bourne compatibility, just wouldn't feel natural
20:10 jberger_ the problem was the most mysterious thing, some undocumented behavior changed from 5.8.9 to 5.10: http://stackoverflow.com/questions/4045467/p​erl-match-outside-if-doesnt-reset-1-on-loop
20:10 preflex_ joined #mojo
20:11 jberger_ Jaap's goal was full posix compliance, he got close, I doubt you would find much difference
20:11 jberger_ (Jaap == original author)
20:11 perlite_ joined #mojo
20:12 Caelum oh seriously? I can use sh code in zoidberg?
20:12 Caelum I thought it had its own syntax
20:13 Caelum yeah I've seen lots of weird perl bugs
20:13 jberger_ oh, hmmmm
20:13 jberger_ sorry, I only saw the posix note
20:13 jberger_ no its not a bourne clone, there are difference there
20:14 jberger_ I haven't tried that too much, but I don't expect that shell scripts will work out of the box
20:14 jberger_ sry
20:15 * jberger_ is curious
20:15 jberger_ (note to reader, install Bundle::Zoidberg) (note to self, create Task::Zoidberg or just make things properly dependent!)
20:17 jberger_ yeah, no, control stuff is more Perl syntax, not bourne
20:17 jberger_ sorry
20:17 preflex_ joined #mojo
20:22 preflex joined #mojo
20:26 Caelum how do you pass multiple path parts to url_with?
20:27 Caelum c.url_with('part') works, but if I want part1 and part2?
20:29 Caelum I'm just doing ctx.url_with(foo _ '/' _ 'bar')
20:31 preflex_ joined #mojo
20:36 preflex joined #mojo
20:54 preflex joined #mojo
21:05 preflex joined #mojo
21:14 hesperaux_ joined #mojo
21:15 jberger joined #mojo
21:17 user_1479 joined #mojo
21:19 preflex_ joined #mojo
21:36 mattastrophe_ joined #mojo
21:37 preflex joined #mojo
21:47 preflex joined #mojo
21:50 komodo joined #mojo
21:51 BeDa joined #mojo
22:08 GabrielVieira joined #mojo
22:38 ispy_ joined #mojo
22:40 riche http://support.activestate.​com/node/9602#comment-25031
22:43 riche bug report has interesting comments, maybe something to consider, esp. the Mojo::Cookie comment
22:43 sri riche: please elaborate
22:46 riche sorry, the support link is for that junk I was talking about w perlapp/perlsvc and the entities.txt
22:46 riche in support's response, there is a link to the bug report support submitted to dev
22:46 sri you said "maybe something to consider", consider for what?
22:46 riche Jan worked the tix, she has comments there
22:47 riche it is just about module loading
22:47 riche I don't know your code but i think it might be lazy module loading or something, and perlapp can't determine deps correctly
22:47 riche anyways, there are workarounds
22:48 riche yes, plural
22:48 sri you're misunderstanding
22:48 sri PerlApp apparently scans the source, and doesn't know the "use Mojo::Base <module>;" syntax
22:49 Caelum I thought Jan was a he
22:49 sri it's just not being smart enough, nothing we have to worry about
22:49 sri jdb++ # btw.
22:50 sri looks like you have enough rope to hang yourself many times over now :)
22:51 riche sighs
23:26 ka2u joined #mojo
23:41 ka2u joined #mojo
23:53 mattastrophe_ joined #mojo
23:57 Akron joined #mojo

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