Camelia, the Perl 6 bug

IRC log for #mojo, 2012-07-07

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

All times shown according to UTC.

Time Nick Message
00:05 benthumb アドバイス・解答を求める方ですか?アドバイスを提供できるエクスパートの方ですか?
00:06 marty sri++  Thank you for the advice.
00:06 marty benthumb.  Yep, here
00:07 benthumb Hi, going through the routes tutorial and am confused out an error I'm getting...
00:10 benthumb I've got a simple app with a couple of controllers, but for some reason I'm getting a debug statement that says "Action not found in controller."
00:10 benthumb The controller is registering, just not the action which is there
00:11 marty what is the action name?
00:11 benthumb Uh-oh its the same name as the controller .... maybe that's the problem?
00:12 benthumb Bye -> controller, bye -> action
00:13 marty I don't think there is any restrictions on being the same name as the controller.  Can you pastie your app?
00:13 marty pastie.org or similar
00:13 benthumb # Application
00:13 benthumb package MyApp;
00:13 benthumb use Mojo::Base 'Mojolicious';
00:13 benthumb sub startup {
00:13 benthumb my $self = shift;
00:14 marty Oppps.  not in the chanel.  Using some paste service.
00:14 benthumb sorry
00:14 marty make your action lowecase
00:15 benthumb I see that now ... thank you.
00:16 marty No problem. Good luck.  Ask questions anytime.  Lots of people in here are happy to help.
00:16 benthumb Thanks!
00:16 human39 joined #mojo
01:36 ki0_ joined #mojo
02:11 noganex_ joined #mojo
02:15 benthumb joined #mojo
03:11 perlite joined #mojo
04:54 * tempire hackin ur romz http://hackertyper.net/
05:17 rem_lex|pivo joined #mojo
06:08 marcus mornin' geeks
06:16 benthumb left #mojo
06:17 benthumb joined #mojo
06:27 crab morning marcus
06:52 d4rkie joined #mojo
06:58 Vandal joined #mojo
07:06 ppriess joined #mojo
07:20 lammel2 joined #mojo
07:25 marcus hello my dear crab.
07:38 Foxcool joined #mojo
07:49 sh9 joined #mojo
08:33 dog_chocolate joined #mojo
09:15 Liam`` joined #mojo
09:19 xaka joined #mojo
09:50 sri moin
10:13 dog_chocolate_ joined #mojo
10:24 Psyche^ joined #mojo
10:25 ryozi joined #mojo
11:07 ZadYree hum, I wonder how to switch the hypnotoad mode to "production"
11:07 ZadYree How could I do?
11:11 GitHub9 joined #mojo
11:11 GitHub9 [mojo] kraih pushed 1 new commit to master: http://git.io/Rr7YDQ
11:11 GitHub9 [mojo/master] improved Mojo::IOLoop performance by reducing stream timeout precision from 0.025 seconds to 0.5 - Sebastian Riedel
11:11 GitHub9 left #mojo
11:14 crab hypnotoad is in production mode by default
11:15 ZadYree hum ok
11:17 ZadYree Well, I guess I have to craft logs myself, when in production mode
11:17 ZadYree ... or is there some magis stick?
11:27 GitHub15 joined #mojo
11:27 GitHub15 [mojo] kraih pushed 1 new commit to master: http://git.io/42Gvbw
11:27 GitHub15 [mojo/master] updated Changes file - Sebastian Riedel
11:27 GitHub15 left #mojo
11:55 zombie-tan joined #mojo
11:59 crab do you have a log directory?
12:13 ZadYree yup
12:14 ZadYree got launch & stop logs in the production logfile but nothing more
12:20 xaka ZadYree: that is correct, the default logging level is INFO so you shouldn't expect more than you see
12:22 xaka ZadYree: try "MOJO_LOG_LEVEL=debug hypnotoad ..."
12:23 ZadYree just like this in a shell?
12:23 xaka yeap
12:23 ZadYree I maybe should get documented on mojo env vars
12:24 xaka it depends on a module, there is no single place for all env vars
12:24 ZadYree ow ok
12:24 xaka sri: ^^^^ may be it makes sense to document it somewhere without walking all over the modules?
12:25 sri xaka: you're welcome to start a wiki page
12:25 ZadYree huhu
12:44 crab the cheatsheet already lists a bunch of them
12:46 sri cheatsheet is long gone
12:50 Leandr joined #mojo
12:51 crab oh
12:51 crab i feel cheated!
12:55 jamadam joined #mojo
13:06 dog_chocolate_ joined #mojo
13:07 dog_chocolate joined #mojo
13:10 GitHub199 joined #mojo
13:10 GitHub199 [mojo] kraih pushed 1 new commit to master: http://git.io/K5H5NQ
13:10 GitHub199 [mojo/master] better pluck examples - Sebastian Riedel
13:10 GitHub199 left #mojo
13:32 dog_chocolate_ joined #mojo
13:49 GitHub178 joined #mojo
13:49 GitHub178 [mojo] kraih pushed 1 new commit to master: http://git.io/CcSQDQ
13:49 GitHub178 [mojo/master] a few more pluck examples - Sebastian Riedel
13:49 GitHub178 left #mojo
13:53 sri ok, that should be enough pluck for now :)
13:56 mire joined #mojo
14:22 mirc7 joined #mojo
14:59 sri perl6-- # non-blocking socket support is absolutely terrible
15:01 sri https://github.com/rakudo/rakudo/b​lob/nom/src/core/IO/Socket.pm#L29
15:01 sri you poll every socket individually!!!
15:01 gryphon joined #mojo
15:02 sri http://images1.wikia.nocookie.net/__cb20120213055​636/uncyclopedia/images/5/52/Double-facepalm.jpg
15:07 sh9 joined #mojo
15:12 iamiwasaki joined #mojo
15:14 inokenty =)
15:20 inokenty Looks like the Perl 6 is not a Perl anymore
15:24 dog_chocolate joined #mojo
15:26 sri http://www.aosabook.org/en/index.html # this is so full of win!
15:56 sri btw. the opposite of slurp() in perl6 is spurt() :)
15:59 baton8 joined #mojo
16:01 jamadam joined #mojo
16:02 Debolaz[Lo] joined #mojo
16:08 vishwanathms joined #mojo
16:08 vishwanathms_ joined #mojo
16:25 jamadam joined #mojo
16:28 GitHub199 joined #mojo
16:28 GitHub199 [mojo] kraih pushed 1 new commit to master: http://git.io/ssH4Hg
16:28 GitHub199 [mojo/master] fixed small initialization bug in Mojo::IOLoop::Stream - Sebastian Riedel
16:28 GitHub199 left #mojo
16:38 zombie-tan do/blob/nom/src/core/IO/Socket.pm#L29                                              │ Annihitek
16:38 zombie-tan woops...
17:02 dog_chocolate_ joined #mojo
17:03 Debolaz[Lo] joined #mojo
17:03 human39 joined #mojo
17:04 human39_ joined #mojo
17:05 human39 joined #mojo
17:22 mire joined #mojo
18:05 * tempire puts architecture books in queue
18:15 vishwanathms joined #mojo
18:16 vishwanathms_ joined #mojo
18:28 vishwanathms_ joined #mojo
18:28 vishwanathms joined #mojo
18:29 Foxcool joined #mojo
18:35 dog_chocolate joined #mojo
18:41 mire joined #mojo
18:45 dog_chocolate joined #mojo
18:49 GitHub126 joined #mojo
18:49 GitHub126 [mojo] kraih pushed 1 new commit to master: http://git.io/Y8UJGg
18:49 GitHub126 [mojo/master] better Mojo::Util and Mojo::ByteStream tests - Sebastian Riedel
18:49 GitHub126 left #mojo
18:50 sri tempire: they are really really good
18:50 tempire it looks like amazing information
18:55 Debolaz[Lo] joined #mojo
19:11 * noganex sighs
19:12 noganex can't you guys think up some really lightweight markup language and ship it with mojo? ;P
19:12 noganex i'm tired of writing html...
19:13 sri i've actually considered doing that
19:13 Debolaz[Lo] noganex: That's a very hard thing to get right though.
19:14 sri not really
19:14 noganex actually i've hacked together a few lines that look a bit like the stuff from zen-coding.
19:15 sri there's consensus on what a good micro markup language should look like between most web frameworks
19:15 Debolaz[Lo] sri: And yet I don't see many successful attempts in that area.
19:15 Debolaz[Lo] sri: It's one of those problems people think are easy, but really aren't because there are so many details to it.
19:15 sri slim and jade are extremely successful
19:16 sri you just have to be into significant whitespace
19:16 noganex so? break it down into partials...
19:17 sri i have no doubt that i could make a slim/jade clone popular, i just don't want to :)
19:18 Debolaz[Lo] noganex: By all means, if someone wants to give it a go, I'm all for it. I just don't think it's going to be a smashing success. :-)
19:19 noganex Debolaz[Lo]: i bet that's what the makers of stylus/haml/sass/jade... heard all the time ;)
19:24 Debolaz[Lo] noganex: I don't deny the existence of such markup languages; What I'm saying is that they aren't widely adopted, and that's usually for a reason. Jade is mostly a node thing for instance; The fact that it exists does not mean that it solved the problem.
19:24 GitHub128 joined #mojo
19:24 GitHub128 [mojo] kraih pushed 1 new commit to master: http://git.io/bD1qgQ
19:24 GitHub128 [mojo/master] added clone tests - Sebastian Riedel
19:24 GitHub128 left #mojo
19:24 Debolaz[Lo] noganex: So I bet they still hear it all the time. :-)
19:25 noganex ive seen the craziest stuff on node apps..
19:26 noganex like rendering the template through some kind of blocking ruby thingy
19:26 sri http://slim-lang.com # just as popular as jade
19:26 Debolaz[Lo] For instance, when using such a minimal markup language, there has to be an overall gain in productivity. It can't be merely "20% less text", when you consider that you lose the ability to use all HTML editors that doesn't support it. There are disadventages that has to be made up for.
19:27 noganex html editors?
19:27 noganex you mean like a vim plugin?
19:27 noganex ;)
19:28 Debolaz[Lo] noganex: When you work in the real world, you tend to have to work with designers. Those designers doesn't use vim.
19:28 sri so what? let them use whatever template language they like
19:28 sri modern frameworks are polyglot
19:29 sri prototype in jade, switch design elements to TT
19:29 Debolaz[Lo] sri: Sure, they'll use HTML with some thin markup on top. And the minimal markup language gets thrown away and not used, and isn't a smashing success. WHICH IS MY POINT HERE! :)
19:29 noganex mh... sri: am i right in saying that Mojo::Template looks a bit like eruby?
19:29 * Debolaz[Lo] is starting to think people are being intentionally dense. :-P
19:30 sri noganex: yes, with a few important changes
19:30 noganex i might just come up with something like temple for perl...
19:30 Debolaz[Lo] Anyway, time to move to a different location, bbl.
19:31 sri Debolaz[Lo]: jade and friends are awesome for rapid prototyping, if you work with stupid people in a huge team you make things more verbose
19:32 d4rkie joined #mojo
19:32 sri noganex: haha, judofyr works for marcus
19:32 dog_chocolate joined #mojo
19:32 noganex small open source world ;)
19:32 sri indeed
19:33 dog_chocolate_ joined #mojo
19:36 sri btw. the difference to ERB i like most is indentable % lines
19:36 sri (in Mojo::Template)
19:38 sri at some point i also wanted to steal some magic from Microsoft Razor, but getting syntax highlighting for it working is horrible
19:38 marcus what did I do wrong now?
19:39 marcus judofyr is on interrail with his GF.
19:39 noganex razor? never heard of it.
19:39 sri http://weblogs.asp.net/scottgu/archi​ve/2010/07/02/introducing-razor.aspx
19:40 * marcus is testing cloudflare
19:40 sri it's pretty cool, no special tags for closing curly brackets
19:41 sri somehow everybody is testing cloudflare now :o
19:42 marcus batman convinced me last night while I was drunk.
19:42 noganex this razor thingy... do people actually use it?
19:43 sri microsoft people, it takes great advantage of visual studio
19:44 dog_chocolate__ joined #mojo
19:46 noganex nah
19:46 * noganex doesn't like it.
19:49 sri marcus: you think 30 seconds is too long for a graceful shutdown?
19:50 dog_chocolate joined #mojo
19:50 sri 20 seconds seems good for the heartbeat timeout, but together with the 30 seconds from the graceful timeout is does seem a bit much
19:51 batman marcus: do you follow them on twitter?
19:52 batman i think their (cloudflare) tweets are excellent
19:52 marcus sri: yeah, maybe a bit much.
19:52 sri inactivity timeout is 15 seconds, so maybe 20 seconds for graceful makes more sense
19:52 marcus batman: no, I got flack from crucially for not picking fastly  on twitter tho :)
19:52 sri 40 seconds would be the maximum delay for a worker restart
19:53 batman sorry?
19:53 batman flack? crucially? fastly?
19:53 marcus batman: http://twitter.com/#!/crucial​ly/status/221686437102358528 :)
19:53 sri Y U NO FASTLY?
19:53 batman no :/
19:54 batman uhm... their sellingpoint is "Configure and purge instantly" ? :S
19:55 batman it doesn't look like they care that much about security as cloudflare does
19:55 batman evil attacks on your website and such
19:56 marcus batman: I don't car as much either.
19:56 marcus care
19:56 marcus I've been running my site fine for many years without ddos protection :)
19:56 batman you don't care that they care about who visit your website...?
19:56 batman ok
19:56 marcus batman: I only care about my website staying up.
19:57 batman :)
19:57 batman "always on" is a nice feature: allows cloudflare to serve the pages even though your backend is down
19:58 marcus yeah, varnish does that too tho
19:58 marcus they call it 'grace'
19:58 GitHub113 joined #mojo
19:58 GitHub113 [mojo] kraih pushed 1 new commit to master: http://git.io/IRwASg
19:58 GitHub113 [mojo/master] reduced default graceful_timeout from 30 to 20 seconds in Mojo::Server::Hypnotoad - Sebastian Riedel
19:58 GitHub113 left #mojo
19:58 marcus I do agree fast.ly need some help with their copy/web design tho
19:58 batman ok. well, i don't have my own datacenter so varnish is not an alternative for me
20:00 marcus I already have a varnish in front of iusethis.com :)
20:01 marcus It's also what fastly uses tho
20:01 noganex argh... it happened again... is there a vimrc which matches mojos perltidyrc?
20:02 marcus batman: cloud flare seems really sleek tho
20:03 sri noganex: i think most have switched to sublime text 2 recently
20:04 noganex i've tried st2 yesterday and when i was done with the script i had to clean out all vim commands ;)
20:04 noganex there are some things that will never change.
20:04 sri :D
20:04 sri st2 has a vim mode though
20:05 noganex that vintage mode thingy?
20:05 marcus I use it with the vim mode
20:05 marcus yes
20:05 marcus there's also an ex addon
20:05 noganex tried it. but it confused me more than it did help me...
20:05 marcus important to turn on vintage_start_in_command_mode
20:05 marcus it's fubar to start in insert mode :)
20:06 marcus vintage_use_clipboard also rocks - yank that actually works with the system pasteboard
20:06 noganex nah.. i'm fine with vim. it has everything i need.
20:07 noganex and if there's something missing (like a config parser for perltidy) i shall hack myself together a few scripts ;)
20:10 batman sleek?
20:11 batman marcus^
20:12 marcus batman: Smooth and lustrous as if polished; glossy: brushed her hair until it was sleek.
20:12 batman ok. that's not my impression :P
20:12 marcus batman: of cloud flare?
20:12 batman i think the navigation sucks.
20:12 marcus damn you autocorrect...
20:12 batman yes. and there's no s p a c e in cloudflare :)
20:13 marcus batman: autocorrect
20:13 batman good
20:13 marcus I type cloud flare, the mac inserts a space
20:13 batman :D
20:14 batman i wonder if my new bed should be 150 or 180 wide...
20:14 marcus turned off autocorrect.cloudflare damnit. I do worry that the cloudflare site itself is a bit slow tho ;)
20:14 marcus batman: with bed, always go big
20:14 batman i think it might take up too much space in the bedroom. it will fit though
20:16 batman marcus: http://blog.cloudflare.com/
20:16 batman i like their blog
20:17 batman i also like that you can write plugins for cloudflare
20:17 sri supersize
20:18 batman :)
20:19 batman for getbetsy.com they save 50% of requests and 50% bandwidth
20:19 batman don't really care about the bandwidth, but the number of requests are very important to me
20:20 marcus batman: you don't have actual traffic yet tho, do you?
20:21 batman no. hehe
20:21 batman but i still don't care about bandwidth
20:21 batman cloudflare is fixed price and dotcloud charge by memory
20:21 batman *by used memory
20:22 Foxcool joined #mojo
20:23 batman macus: this was what i was talking about yesterday: http://blog.cloudflare.com/cacheing-the​-uncacheable-cloudflares-railgun-73454
20:23 batman pretty cool technology :)
20:26 batman "CloudFlare's Rocketship Growth: 100 Million Daily Active Users, 50 Billion Monthly Page Views..."
20:26 batman not too bad..
20:27 marcus batman: railgun isn't available on a pro account tho.
20:27 batman cool! haven't seen this until now: https://www.cloudflare.com/network-map
20:27 batman marcus: no. that's true.
20:27 batman i can understand that... $20 isn't that much :P
20:30 marcus using a binary diff for caching is pretty brilliant tho
20:30 marcus for a cdn
20:32 batman :)
20:32 batman think about all the bandwidth that is saved...
20:41 batman http://techcrunch.com/2012/05/25/clo​udflare-to-launch-service-for-sites-​dealing-with-tortuous-eu-cookie-law/ <-- are eu still going to make cookies illegal?
20:42 batman s/going/trying/
21:14 ryanc joined #mojo
21:17 marcus http://craphound.com/images/​cornunicornoriginal.png.jpg
21:57 marcus good news everyone!
21:59 marcus CloudFlare is planning on opening up their binary diff protocol.
22:26 markp joined #mojo
22:37 ZadYree I'm looking for the variable, in Mojolicious, which stores the current url. Does it exist?
22:50 perlite joined #mojo
22:52 marty ZadYree:   Maybe this....   $self->req->url->to_string
22:54 ZadYree oh yeah I start to like this one
22:54 ZadYree thanks
22:59 * tempire likes razor
22:59 * tempire doesn't know what cloudflare is
23:00 sri https://github.com/kraih/mojo/issues/350 # or am i wrong on this?
23:02 tempire raising it would break apps?
23:02 sri it would break Test::Mojo for example
23:02 tempire oh yes.  that could lead to unexpectedness.
23:03 sri if it was something else than 0 changing wouldn't be a problem
23:04 sri i agree that it would be a more sensible default, but i kinda wanted to start breaking things for a bit :(
23:04 sri umm
23:04 sri s/start/stop/
23:04 sri :D
23:04 tempire freudian!
23:05 sri indubitably
23:05 tempire huh.
23:06 tempire looks like I'm going to be testing cloudflare too.
23:08 tempire these features look like a listing of magic tricks.
23:09 tempire cloudflare gives you all the things!
23:50 benthumb joined #mojo
23:58 sawtooth joined #mojo

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