Camelia, the Perl 6 bug

IRC log for #mojo, 2012-11-27

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

All times shown according to UTC.

Time Nick Message
00:01 dwierenga joined #mojo
00:17 zivester joined #mojo
01:10 bpmedley_ joined #mojo
01:15 hlin joined #mojo
01:16 Mike-PerlRecruiter_ joined #mojo
01:24 sri or we just call it something boring, like ->listener
01:25 sri or a pretentious ->acceptor
01:28 sri hmm, ->acceptor looks actually not bad in context :)
01:36 sri "Get L<Mojo::IOLoop::Server> object for id or turn object into an acceptor."
01:40 sawtooth joined #mojo
01:42 lukep joined #mojo
01:49 good_news_everyone joined #mojo
01:49 good_news_everyone [mojo] kraih pushed 1 new commit to smooth_morbo: http://git.io/D66jzQ
01:49 good_news_everyone mojo/smooth_morbo 3150e6a Sebastian Riedel: renamed accepting method to acceptor
01:49 good_news_everyone left #mojo
01:49 sri ok, i like that version more
01:50 Britzel_ sounds a little bit like dementor :)
01:50 Britzel_ But ok...
01:57 d4rkie joined #mojo
01:57 d4rkie joined #mojo
02:02 b2b joined #mojo
02:11 sri the IO::Socket::IP warnings thing seems to be a bug in IO::Socket::IP
02:11 sri don't see a way to avoid it without very ugly hacks
02:12 sri we still need windows testers though :/
02:40 zivester joined #mojo
02:42 xaka joined #mojo
02:48 marty joined #mojo
03:04 sri https://github.com/kraih/mojo/pull/421
03:11 noganex_ joined #mojo
03:38 rem_lex|pivo joined #mojo
05:28 atz joined #mojo
05:55 jwang joined #mojo
06:13 egopro joined #mojo
06:14 jwang joined #mojo
06:16 Molaf joined #mojo
06:19 ovnimancer joined #mojo
06:22 hlin joined #mojo
06:44 dpetrov_ joined #mojo
07:03 dod joined #mojo
07:09 hlin joined #mojo
07:11 dod joined #mojo
07:29 yakudza joined #mojo
07:30 hlin joined #mojo
07:41 Vandal joined #mojo
07:46 dod joined #mojo
07:55 dod joined #mojo
07:57 sinkovsky joined #mojo
08:12 batman joined #mojo
08:25 alexeiras joined #mojo
08:37 arthas joined #mojo
08:38 cosmincx joined #mojo
08:48 sri tempire, crab: opinions on Mojo::IOLoop->acceptor?
08:50 cosmincx joined #mojo
08:53 good_news_everyone joined #mojo
08:53 good_news_everyone [mojo] kraih pushed 1 new commit to smooth_morbo: http://git.io/i3xFoQ
08:53 good_news_everyone mojo/smooth_morbo 75c2fee Sebastian Riedel: better acceptor tests
08:53 good_news_everyone left #mojo
09:02 fhelmber_ joined #mojo
09:29 egopro joined #mojo
09:34 sinkovsky joined #mojo
09:39 sunson joined #mojo
09:41 hoodoo_wrk joined #mojo
09:41 hoodoo_wrk Hello there!
09:41 dpetrov_ hello
09:43 hoodoo_wrk I'd like to quickly test twitter bootstrap with Mojolicious::Lite (I like the quick prototyping there). I've downloaded the file and wrote a template according to the bootstrap's docs, but it seems like the app does not see the dirs with css and all. How do I point it to them?
09:44 hoodoo_wrk The dirs go like myapp/bootstrap/css, myapp/bootstrap/img etc.
09:44 nic check you have a 'public' dir
09:44 nic the most common solution is to put your 'css', 'js', 'img', etc at the top of 'public'
09:45 hoodoo_wrk Made a dir and moved bootstrap there.
09:45 Britzel joined #mojo
09:45 nic working now?
09:45 hoodoo_wrk Nope.
09:46 hoodoo_wrk Should I take them to the top dir? Wouldn't like to - I might need some other libs and css files, would be a mess.
09:46 nic within your html check that the css file is referenced as "/bootstap/...cs" and similar for the others
09:46 nic no, you don't need (and probably don't want) _everything_ at the top dir
09:46 hoodoo_wrk <script src="/bootstrap/js/bootstrap.min.js"></script>
09:46 nic keeping them grouped like you've done is usually the best
09:46 nic check that the file(s) and all dirs above them are readable by the user your app server runs as
09:47 hoodoo_wrk Is it necessary with morbo and mojolicious::lite?
09:47 nic necessary with everything
09:48 nic (a mistake I made in the past was to have one of my ancestor dirs not readable by the app server; took me far too long to track it down)
09:48 hoodoo_wrk Damn, I'm a moron! It was in another app's dir, what made me put it there? Thanks anyway, it now works.
09:49 nic \o/
09:49 hoodoo_wrk nic: Had hard times making Dancer work with sqlite once. Needed the dir to be executable or something.
09:50 hoodoo_wrk Cool framework, way easier to start with than Catalyst.
09:50 nic much easier to read
09:50 nic much smaller footprint
09:50 nic much easier to understand
09:50 nic much easier to play with
09:50 nic much quicker to prototype with
09:50 nic much... fun
09:51 hoodoo_wrk Hell yeah, inline templates and inline Perl. Not like I hate template::toolkit, but it seems to be easier to write.
09:56 BlueT_ joined #mojo
09:58 dpetrov_ Catalyst make things easier if you want to scale later
09:59 dpetrov_ all 3 frameworks are actually different :)
09:59 dpetrov_ and I like all 3 of them
09:59 dpetrov_ Mojolicious/Dancer are definitely a lot lot easier to start
10:00 BlueT_ dpetrov_: have any experience with Tatsumaki?
10:00 dpetrov_ nope, never heard if before actually
10:01 dpetrov_ but seeing who the author is
10:01 dpetrov_ probably should take a look :)
10:01 BlueT_ hahaha
10:01 BlueT_ it's damn fast
10:02 BlueT_ the benchmark of Feersum + Tatsumaki, has 2 times faster then node.js
10:12 sunson silly question: if I had a file handle named the 'classic' way (i.e., open (F, "<", $file_name)) will it be a problem? I'm wondering because its the same perl process within which multiple requests will be handled...
10:18 dod joined #mojo
10:19 mire joined #mojo
10:21 b2b joined #mojo
10:30 ladnaV joined #mojo
10:30 ladnaV joined #mojo
10:31 ladnaV joined #mojo
10:38 trone joined #mojo
10:39 Vandal joined #mojo
10:44 sinkovsky joined #mojo
10:49 Averna joined #mojo
10:51 sunson route bridging question: I'd like to bridge /file/.../*placeholder to a file#default - in which I'd like to extract 'placeholder' and do something with it and then further route this based on the "..." (ex: /file/md5/*placeholder should route to file#md5 and /file/get/*placeholder should roue to file#download). How to do this?
10:53 sunson This bridging is doable if it was a :placeholder by moving the placeholder up (ex: /file/:placeholder/md5, /file/:placeholder/get, etc.,). but *placeholder makes it difficult. help please!
10:53 michaelfung joined #mojo
10:57 dpetrov_ BlueT_: sorry I was not around :)
10:58 dpetrov_ sadly that miyagawa doesn't do much perl lately :)
10:58 sri https://github.com/kraih/mojo/pull/421 # we still need testing!
11:00 * sri wonders why marcus is so silent
11:08 alexeiras joined #mojo
11:08 dotan joined #mojo
11:09 marcus sri: I'm using smooth_morbo for development now. I can't help with windows testing tho
11:10 sri marcus: but you can help with Mojo::IOLoop->acceptor ;)
11:11 marcus acceptinator
11:11 marcus YOU WILL BE ACCEPTED
11:11 sri i'm actually not too worried about windows, worst case we add a unless $^O eq 'MSWin32' to that one line in Morbo.pm
11:11 marcus wasn't that helpful?
11:11 ver joined #mojo
11:11 sri biggest problem is the name, it can still prevent everything!
11:14 marcus THIS PREVENTS EVERYTHING! AGAIN!
11:14 marcus hmm
11:14 marcus accepting => acceptor => acceptance
11:15 * sri thinks acceptor is fine
11:16 sri well, if nobody really cares i'll just dictate ->acceptor!
11:17 * sri waits for batman to complain
11:19 good_news_everyone joined #mojo
11:19 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/ZXA4Hg
11:19 good_news_everyone mojo/master 426428e Sebastian Riedel: Merge pull request #421 from kraih/smooth_morbo...
11:19 good_news_everyone left #mojo
11:19 sri FUCK IT WE'LL DO IT LIVE
11:23 * sjn likes acceptinator
11:24 good_news_everyone joined #mojo
11:24 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/H9gJyA
11:24 good_news_everyone mojo/master 7306d46 Sebastian Riedel: updated Changes file
11:24 good_news_everyone left #mojo
11:25 keedi joined #mojo
11:31 sri windows testers can now just download master btw.
11:31 sri you don't even have to install
11:32 sri just ./script/mojo generate lite_app; ./script/morbo -v myapp.pl and edit away
11:39 b2b joined #mojo
11:40 sri if anyone thinks this does not fit in, say it now! http://mojolicio.us/perldoc/Mojo/IOLoop#acceptor
11:43 sri especially tempire and crab
11:45 yakubori joined #mojo
11:49 yakubori hello, all
11:53 good_news_everyone joined #mojo
11:53 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/vDMtYw
11:53 good_news_everyone mojo/master 24dfa65 Sebastian Riedel: silence first daemon
11:53 good_news_everyone left #mojo
12:09 good_news_everyone joined #mojo
12:09 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/2eqxjw
12:09 good_news_everyone mojo/master 2ab4689 Sebastian Riedel: small Mojo::IOLoop tweaks
12:09 good_news_everyone left #mojo
12:16 trone Can I stop the dispatching at bridge level?
12:18 trone I have a bridge ($c->init) that fill stash values useful in other actions ($c->index, $c->other). But I could give a 404 if a param is wrong at $c->init level and I don't want that flux arrive in controller endpoint.
12:19 trone Is possibile truncate the dispatch or is better put the check in every endpoints?
12:19 trone *each
12:29 dod joined #mojo
12:31 dod joined #mojo
12:32 d4rkie joined #mojo
12:32 D4RK-PH0ENiX joined #mojo
12:38 crab trone: call $self->render(status => 404, ...) in the bridge and return 0
12:39 mire joined #mojo
12:40 yakubori joined #mojo
12:46 d4rkie joined #mojo
12:49 ObseLeTe joined #mojo
12:56 trone crab: arrrr. ok. (I made return $self->render( .... ) and it don't close it...) Thanks!
12:58 ryozi joined #mojo
13:01 d4rkie joined #mojo
13:06 spleenjack joined #mojo
13:11 spleenjack joined #mojo
13:17 Mike-PerlRecruiter_ joined #mojo
13:23 sinkovsky joined #mojo
13:35 spleenjack joined #mojo
13:49 ladnaV joined #mojo
13:51 darutoko joined #mojo
13:52 Vanda joined #mojo
14:14 bluescreen joined #mojo
14:18 ObseLeTe_ joined #mojo
14:52 rem_lex joined #mojo
14:57 CountryG- joined #mojo
15:00 alexeiras joined #mojo
15:20 mire joined #mojo
15:29 yakudza joined #mojo
15:33 marty_ joined #mojo
15:34 gryphon joined #mojo
15:39 dabudabu joined #mojo
15:47 trone hypnotoad accept -listen option?
15:48 trone I mean by cmdline
15:51 knshaum joined #mojo
16:00 marty joined #mojo
16:01 batman joined #mojo
16:10 sinkovsky joined #mojo
16:27 yakubori joined #mojo
16:38 jnbek^dt joined #mojo
16:52 sinkovsky joined #mojo
16:56 ObseLeTe joined #mojo
17:03 xaka joined #mojo
17:05 mfontani trone: see Mojolicious::Guides::Cookbook section 'Hypnotoad': you can configure the listening via app->config({ hypnotoad => { listen => ['http://*:1234']}}) or via the .conf file
17:06 dpetrov_ joined #mojo
17:07 trone mfontani: yep. I'm using conf file. I think to cmdline option as morbo or daemon.
17:11 mfontani trone: nope, only by config's "listen" parameter, either via .conf or via app->config
17:17 yakubori joined #mojo
17:24 yakubori joined #mojo
17:29 dod joined #mojo
17:46 sinkovsky joined #mojo
17:47 dod joined #mojo
18:08 sinkovsky joined #mojo
18:10 xaka joined #mojo
18:17 marty joined #mojo
18:20 baton8 joined #mojo
18:20 * tempire doesn't have any problem with acceptor
18:21 tempire though I'm on vacation and admit it's mostly because I trust sri
18:29 inokenty joined #mojo
18:37 mire joined #mojo
19:23 yakudza_ joined #mojo
20:06 labrown joined #mojo
20:17 buu joined #mojo
20:17 buu Hey, can anyone help me address a Maximum buffer size exceeded error from UserAgent?
20:18 buu It seems like an odd error to be thrown from trying to fetch a webpage
20:18 buu I mean, what exactly is the buffer size, 413?
20:20 buu Specifically how Can I get past this error to download the page, which works fine in wget?
20:21 buu sri: Ping!
20:26 buu Oh, it's an FAQ
20:26 buu How wacky.
20:36 lukep joined #mojo
20:53 b2b joined #mojo
21:14 sinkovsky joined #mojo
21:22 mire joined #mojo
21:47 rhaen hep!
21:51 rhaen hm, the first exp mit Morbo was quite bad.
21:51 rhaen morbo crashes when using EV
21:54 rhaen hm, what has changed - the behavior of morbo seems to be the same on windows
21:54 rhaen it still complains about the locked file and you have to use a certain editor to overwrite the lock
21:55 sinkovsky joined #mojo
21:58 rhaen Use of uninitialized value in numeric eq (==) at C:/Toolchain/Perl64/site/b​in/../lib/IO/Socket/IP.pm line 651.
21:58 rhaen hm, this seems to be new
22:09 batman joined #mojo
22:53 Averna joined #mojo
23:09 jzawodn joined #mojo
23:34 sinkovsky joined #mojo

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