Camelia, the Perl 6 bug

IRC log for #mojo, 2012-08-31

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

All times shown according to UTC.

Time Nick Message
00:32 mandreacchio joined #mojo
00:48 laouji joined #mojo
00:53 mandreacchio joined #mojo
00:57 mandreacchio joined #mojo
01:14 scott joined #mojo
02:00 d4rkie joined #mojo
02:23 d4rkie joined #mojo
02:23 d4rkie joined #mojo
02:34 noganex_ joined #mojo
03:55 mandreacchio joined #mojo
04:06 xaka joined #mojo
04:35 GabrielVieira How can I check why the public/ dir is not working as it should be?
04:38 crab if you write a wildcard route that matches everything, it's no surprise that it intercepts requests for static files too
04:38 xaka joined #mojo
04:41 GabrielVieira crab: there is no wildcard, I removed it
04:44 crab oh
04:50 sri crab: routes can't affect the static dispatcher
05:14 bpm Howdy.  What is the most popular PSGI/Plack web server?  Starman?
05:29 mandreacchio joined #mojo
05:34 mandreacchio joined #mojo
05:42 laouji joined #mojo
05:45 spleenjack joined #mojo
05:46 mandreacchio joined #mojo
06:03 ryozi joined #mojo
06:09 tolid_air joined #mojo
06:12 mandreacchio joined #mojo
06:15 mandreacchio_ joined #mojo
06:16 bpm Thanks everyone.  I just installed my first Mojolicioius / Plack / Apache / Starman web app; admittedly it's the default; however, it's working.
06:42 buu NEEDS MORE BUZZWORDS
06:46 Vandal joined #mojo
07:11 Kwa Buzzwords for mojolicious, or in general? If in general, get some temp work in an advertising agency - you'll get your fill there.
07:26 ryanc joined #mojo
07:29 marcus good morning
07:29 purl Lies!
07:29 * marcus gently stabs purl.
07:33 Kwa Gentle stabs will make it harder to prove self defence. :/
07:34 * marcus pushes purl down the stairs
07:34 * purl attaches herself to marcus using suction and a ham straw
07:34 marcus better?
07:35 Kwa heh
07:35 Kwa I prefer the prolonged murder.
07:35 * Kwa puts extra salt in purl's meals for the next 20-30 years
07:36 crab kwa: without a suitable control, that is no use
07:36 * marcus gives purl cigarettes whenever she wants them
07:37 marcus apparently salt is not unhealthy.
07:37 marcus http://www.nytimes.com/2012/06/03/opinio​n/sunday/we-only-think-we-know-the-truth​-about-salt.html?_r=1&pagewanted=all
07:37 crab tell that to lot's wife
07:37 Kwa I thought too much intefered with the kidneys? :/
07:38 marcus crab: well, yes, becoming a pilar of salt is probably unhealthy.
07:38 marcus pillar even
07:38 Kwa marcus: Does that mean I've been eating salt-free cashew nuts for nothing? I'm very mad.
07:39 mandreacchio joined #mojo
07:39 marcus Kwa: you should be.
07:39 purl who says?
07:39 marcus purl: the times.
07:39 purl the times is, like, return elapsed time for self and child processes
07:44 Kwa I suppose it depends how much you have still, like anything. A friend's son is 6, has higher functioning autism and was told by his mum that he shouldn't have too much salt. Upon questioning why, she responded with "it's bad for you". As any other high functioning autistic 6 year old would do, he experimented on his dog to see what happens.
07:44 marcus was it bad for the dog?
07:44 Kwa Very bad.
07:44 marcus I know sheep really loves salt.
07:45 Kwa Fortunately they caught it in time and took him to the vets.
07:45 marcus dogs are very frail animals.
07:45 marcus I also recently learned chocolate is poison to them.
07:46 Kwa Yeah, that's fucked up coz I always gave a dog outside our local shop white mice chocolate.
07:46 marcus http://pets.webmd.com/dogs/ss/slides​how-foods-your-dog-should-never-eat
07:46 Kwa But try telling that to my sister's dog. She had off two of my easter eggs last April.
07:47 marcus dark chocolate is the worst, apparently.
07:47 Kwa Guess because of the higher concentrations of cocoa.
07:48 marcus ok, this article is saying raw meat is dangerous to dogs. wth do wild dogs eat?
07:48 marcus do they cook their prey?
07:48 Kwa heh
07:48 Kwa I've seen pictures of them playing poker, so maybe?
07:49 buu marcus: Wild dogs live like 4 years
07:49 marcus ah, we should be giving them lean cuts of meat, vegetables and cooked rice.
07:50 buu Just like turtles!
07:50 Kwa "Alcohol" and "Coffee, tea, and other caffeine". Who's feeding them that shit to know it's not good for them?
07:50 Kwa buu: Everyone knows turtles eat pizza.
07:51 marcus turtles get really old tho.
07:52 marcus Mammal; Diet: Carnivore; Average life span in the wild: Up to 11 years
07:52 marcus buu: http://animals.nationalgeographic.com​/animals/mammals/african-hunting-dog/
07:53 buu What does "average" and "up to" mean?
07:53 marcus 10.5 maybe? :)
07:53 marcus it's a bit dizzying
07:54 buu All I was trying to say is that wild animals die a lot earlier than domestic pets
07:54 buu At least on average.
07:54 marcus Well, I'm sure the average is brought down by them being killed by other wild animals. doesn't happen as much to pets.
07:55 fhelmber_ joined #mojo
07:55 buu Probably doesn't help!
07:56 Kwa :)
07:58 pau4o joined #mojo
07:59 Kwa mojo question, why is 'include' giving my grief? I'm assuming it loads templates from ./templates - so % include 'messages/test'; tries ./templates/messages/test.format.language?
08:00 mandreacchio_ joined #mojo
08:00 cosmincx joined #mojo
08:02 crab what grief is it giving you?
08:02 Kwa Oh god, it's because I didn't do %= include 'messages/test';
08:03 * Kwa sighs
08:06 marcus https://gist.github.com/3549368 interesting
08:11 nic GabrielVieira: Have you used 'eval' to check your static path?
08:11 mandreacchio joined #mojo
08:11 nic In a Lite app, you could use "./myapp eval 'say join q{ : } @{app->static->paths}'
08:12 nic s/In/For/
08:12 Kwa marcus: Do you use redis for anything?
08:16 mandreacchio joined #mojo
08:18 buu Hey, if I'm using morbo in dev mode is there some way to make it output the incoming request?
08:19 daxim joined #mojo
08:20 Kwa Tail the log?
08:21 buu Well, it doesn't log GET params but I solved the problem via other methods
08:23 ghandi joined #mojo
08:25 Kwa Oh right, I get you. Did you log the request via a hook?
08:26 buu Yeah
08:26 buu Well I mean, I added a warn $res->to_string but yeah
08:28 Vandal joined #mojo
08:48 ghandi Can i simply "use MyApp;" to reuse the Config-Stuff in another script related to my Mojo-App?
08:52 ghandi Ohh...just found the answer in the cookbook myself ;)
08:59 mandreacchio joined #mojo
09:03 cosmincx joined #mojo
09:05 memowe \o
09:07 davido joined #mojo
09:16 tolid_air joined #mojo
09:47 marcus Kwa: yes
09:47 Kwa marcus: What do you use it for out of interest? (Is it a memcached replacement?)
09:49 marcus Kwa: I use it as a backend for my new irc proxy/web interface for one. It's a bit more than a memcached replacement. It has lists, hashes, sets, sorted sets, and various methods to interact with them.
09:49 buu Redis is pretty cool
09:49 buu And super fast
09:50 buu But relies heavily on available memory
09:50 marcus yeah
09:51 Kwa I guess it's better to use that rather than to hammer a database to get rolling data?
09:51 marcus yeah, the pubsub features are great.
09:53 Kwa Interesting, cheers. I am going to write a web wallboard for our call centre at some point, so might try it out.
09:53 Kwa (Do you use it with mojolicious?)
10:04 azawawi joined #mojo
10:19 tester367 joined #mojo
10:30 Lucas1 joined #mojo
10:36 tolid_air joined #mojo
10:36 mire_ joined #mojo
11:09 fhelmber_ joined #mojo
11:30 estrai long time ago there was a method called root in Mojolicious::Static, how can I access it now?
11:31 estrai that's my code that stopped working after an upgrade: app->static->root($config->{data_dir});
11:32 estrai oh, could it be the same if I replace $static->paths with my path?
11:32 mandreacchio joined #mojo
11:33 azawawi im not a mojo expert but what's the version that you have upgraded from?
11:33 azawawi and hi :)
11:34 estrai 2.something, I wrote the thing a year ago so I expect the lower parts of 2, hi :)
11:35 azawawi https://metacpan.org/source/SRI​/Mojolicious-3.36/Changes#L735
11:35 azawawi it should be it
11:36 estrai oh, great, thanks alot
11:36 azawawi np
11:49 mandreacchio joined #mojo
12:08 nicomen re: the bad file description error I pasted earlier, it's seems that $self->log->path is empty. Is that correct? Does it mean it writes to stderr?
12:11 nicomen (Can't write to log: Bad file descriptor at /usr/local/share/perl/5.10.1/Mojolicious.pm line 175)
12:23 jontaylor joined #mojo
12:26 vervain http://www.barfworld.com/
12:27 nicomen hm seems so, but can't understand why it compains about bad file descriptor, maybe something closes stderr?
12:27 Kwa My dog eats his own barf, thanks.
12:41 vervain When I first heard about BARF it was 'Bones And Raw Food'... my friends who were experimenting had a regular circuit of butcher shops that would give them all the scraps they could carry for free ( or pennies on the pound ).  Free food and the dogs seemed ok... they had great teeth.
12:44 crab what were your friends experimenting with?
12:48 vervain heh... just the barf diet.
12:57 Kwa http://pets.webmd.com/dogs/ss/slides​how-foods-your-dog-should-never-eat -> This slideshow from earlier seems to indicate they'd prefer a better diet. *Shrugs*
13:00 Kwa (The lady and the tramp were on to something.)
13:03 mandreacchio joined #mojo
13:06 jnap joined #mojo
13:12 azawawi joined #mojo
13:38 gryphon joined #mojo
13:45 * crab ponders configuration data in the environment
13:48 cosmincx joined #mojo
14:03 mandreacchio joined #mojo
14:22 mandreacchio joined #mojo
14:25 cosmincx joined #mojo
14:25 Britzel joined #mojo
14:27 Leandr joined #mojo
14:32 memowe joined #mojo
14:36 tolid_air joined #mojo
14:38 knshaum joined #mojo
14:38 sri \o\
14:38 sri /o/
14:40 bluescreen joined #mojo
14:45 azawawi sri: hi
14:45 azawawi sri: where can i find the mojolicious roadmap?
14:46 * sri waves
14:46 sri there is no roadmap
14:46 * azawawi waves back
14:47 vervain Come with me; and you'll be; in a world; of Pure Imagination. :-)
14:50 memowe \o/
14:51 azawawi i need a map for the road or a road for the map... :)
14:53 vervain Can we get purl to use GeoIP to recommend a Google Map url for the mention of 'roadmap' ;-)
14:53 sri purl: roadmap?
14:53 purl i think roadmap is to see parrot roadmap
14:53 sri purl: parrot roadmap?
14:53 purl hmmm... parrot roadmap is http://icanhaz.com/parrotroadmap or http://trac.parrot.org/parrot/roadmap
14:54 sri while there is no real roadmap, there are a few things i have planned
14:55 azawawi like?
14:55 vervain Looks like those links are stale.
14:55 sri like reorganizing UserAgent/Daemon/Transaction to allow support for multiplexing protocols (like SPDY and HTTP/2.0)
14:56 sri or the lonely future issue https://github.com/kraih/mojo/issues/236
14:57 azawawi sri: you mean the only Mojo bug :)
14:57 sri not a bug, a planned feature
14:58 azawawi https://metacpan.org/module/Mojolicious # Bugs (1)
14:58 sri that's a metacpan bug
14:59 labrown joined #mojo
16:07 xaka joined #mojo
16:09 gryphon joined #mojo
16:15 sri tempire, marcus, crab: we should talk about a strategy for PTokamak
16:15 sri which is a soon to be released PSGI for event loops
16:16 sri it can currently only be found at scgit@git.shadowcat.co.uk:PTokamak.git
16:23 sri i'm not sure if we should support it in addition to EV, deprecate EV, or just replace EV with it in 4.0
16:24 sri POE and IO::Async will support it natively
16:26 marcus sri: read access denied.
16:26 sri oh
16:36 williamt joined #mojo
16:39 williamt If I load PodRenderer in a mojolicious app should I be able to browse to /perldoc to get perl docs for my app ?
16:39 sri maybe, but it's not meant for that
16:40 sri its main purpose is to allow you to browse the mojolicious docs
16:41 williamt hmm its description was "Renderer for POD files and documentation browser." sorta seemed like it would do it?
16:42 williamt I'm writing an API and would like it to be self documenting via GET requests
16:43 sri that's not its description at all
16:43 sri "L<Mojolicious::Plugin::PODRenderer> is a renderer for true Perl hackers, rawr!"
16:44 williamt Well from here it is: http://search.cpan.org/~sri/Mojolic​ious-3.36/lib/Mojolicious.pm#plugin
16:47 sri you're interpreting too much into that, but i'll narrow it down
16:49 good_news_everyone joined #mojo
16:49 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/JjeeiQ
16:49 good_news_everyone [mojo/master] better description for Mojolicious::Plugin::PODRenderer - Sebastian Riedel
16:49 good_news_everyone left #mojo
16:50 williamt That makes sense :)
16:51 sri basically, knock yourself out with the POD to HTML part, but stay away from the browser :)
16:51 williamt Thanks for clearing that up. :)
16:59 good_news_everyone joined #mojo
16:59 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/5i01iw
16:59 good_news_everyone [mojo/master] document all default values for plugin options - Sebastian Riedel
16:59 good_news_everyone left #mojo
17:26 pau4o left #mojo
17:28 crab PSGI... for event loops?
17:32 sri crab: similar to how we use EV currently, but with multiple backends (including EV)
17:33 sri basically Mojo::Reactor with more features
17:36 sri that's actually what the whole thing started with, i explained to mst how we use EV to connect all event loops in mojolicious, he liked it, wrote a spec and brought everyone together, and now we have all major event loop authors working on it (except for mlehmann of course) :)
17:38 xaka is that spec in public access?
17:43 sri not yet, i've just started a discussion about making it public
17:44 sri but it is very very low level and end-user unfriendly
17:45 inokenty joined #mojo
17:45 crab ah
17:46 crab sri: btw, did i hear you say sometime ago that one is no longer supposed to replace the app->log object?
17:46 BlueT_ joined #mojo
17:47 sri crab: yea, you still can, but the message event is better
17:47 sri garu recently made me fix it, so it emits all log messages and your subscribers can filter out which ones they like
17:49 crab ah
17:50 mire_ joined #mojo
18:06 BlueT_ joined #mojo
18:16 BlueT_ joined #mojo
18:34 memowe_ joined #mojo
18:47 BlueT_ joined #mojo
18:47 d4rkie joined #mojo
18:50 davido joined #mojo
18:56 BlueT__ joined #mojo
19:06 sri hmm
19:06 tempire sass or less?
19:07 sri perl6 concurrency will be based on green threads :S
19:07 sri (at least with parrot)
19:13 BlueT_ joined #mojo
19:13 sri basically a mix of ithreads and Coro
19:13 sri there are real threads, but they are very expensive since they have to contain a full interpreter each
19:14 tempire how far along is PTokamak?
19:14 sri they want to make green threads work by automatically replacing blocking syscalls with non-blocking ones that yield to the next green thread
19:14 sri tempire: almost usable
19:15 sri just some smaller design decisions are open
19:15 sri everything we need already works
19:15 tempire pure perl only?
19:15 sri the core yes, backends are mostly XS
19:16 tempire interesting
19:16 sri it uses Moo and Role::Tiny, that's it afair
19:17 sri no wait
19:17 sri it has xs prereqs then
19:18 tempire ooh, less has the prettier web page by far
19:18 sri always choose the prettier website! :)
19:18 vervain My coinage is currently on less, but that has more to do with it's use in Bootstrap
19:19 tempire I'm all about bootstrap, so that settles it.
19:21 davido Bootstrap++
19:37 BlueT_ joined #mojo
19:56 zivester joined #mojo
20:02 alnewkirk joined #mojo
20:02 Netfeed if i have a command in lib/Mojolicious/Command/::mycommand, shouldn't it then be loaded automagically with "mojo mycommand"?
20:02 sri yes
20:02 avenj joined #mojo
20:03 Netfeed i'm getting a "unknown command mycommand" error
20:04 sri it should also be in the command list for "mojo"
20:05 Netfeed nope, not there either
20:06 sri is it in @INC?
20:07 Netfeed oh, ./lib isn't loaded into @INC automatically at mojo start?
20:07 sri no
20:07 Netfeed ah, that explains that
20:32 edenc joined #mojo
20:44 edenc joined #mojo
20:50 bpm_ joined #mojo
21:00 azawawi joined #mojo
21:05 ZadYree hey
21:08 ZadYree I don't understand: a script works under morbo, but not with hypnotoad
21:10 sri purl: doesn't work?
21:10 purl Look buddy, doesn't work is a strong statement. Does it sit on the couch all day? Is it making faces at you? Does it want more money? Is it screwing your cat? Please be specific!
21:10 ZadYree heheh I'm quite tired, excuse me :')
21:10 ZadYree well
21:11 vervain Things that are affected by forking are what you need to look at... DBI Connection handles are one such beast.
21:11 ZadYree I'm quite sure it's related to the rootpath they set, which may not be the same
21:12 ZadYree hum lemme try some diabolic things involving whores & death rays
21:19 ZadYree well, ofc... my mistake, hypnotoad -s myapp.pl hadn't properly stopped ^^
21:19 azawawi cpanm http://cpan.metacpan.org/authors/id/A/AZ/AZ​AWAWI/Mojolicious-Plugin-Pedro-0.04.tar.gz
21:22 gryphon joined #mojo
21:46 rem_lex| joined #mojo
22:01 nuba joined #mojo
22:06 azawawi cpanm http://cpan.metacpan.org/authors/id/A/AZ/AZ​AWAWI/Mojolicious-Plugin-Pedro-0.05.tar.gz
22:06 azawawi # pedro + run on perlito (run Perl as javascript inside your browser using perlito)
22:08 sri azawawi: i'm almost certain you want to tell us something exciting... but i'm having trouble understanding :/
22:09 azawawi or im half asleep
22:10 sri :)
22:10 azawawi basically pedro is using codemirror editing component to syntax highlight Perl code and you can run that code inside your browser using Perlito (fglock++)
22:10 sri neat
22:11 sri something like that should totally run on perl.org
22:12 sri "try perl, right here, in your browser"
22:12 azawawi and it is already being run on mojo :)
22:12 azawawi i have plans also for perldoc-system using X<>
22:12 azawawi did you install it?
22:13 sri nope, busy working on a mongodb driver again atm :)
22:14 sri but i would volunteer for clicking on a link and trying it in a browser window!
22:15 * azawawi time to sleep :)
22:17 avenj joined #mojo
22:18 whee joined #mojo
22:21 dross joined #mojo
22:21 dross :3
22:44 tempire huh
22:44 tempire the pedro plugin is neat
23:01 jzawodn joined #mojo
23:12 sri oh, the mongohq free plan is now 512mb :o
23:42 dross sri: umm, why not use openshift?
23:43 dross 3 "small gears"(1 small gear == 512MB Ram, 1GB Disk) free
23:43 dross you can put mongodb on a single gear
23:44 bpm Would someone be so kind as to critique my module: http://metacpan.org/release/BPMEDLEY/M​ojolicious-Plugin-ParamCondition-0.001 ?
23:52 vervain joined #mojo
23:56 Antisoche joined #mojo
23:58 sri dross: convenience
23:58 purl convenience is, like, you not having to write a little bit of code to generate the files, and the cost is me modifying Loader to do it for you
23:58 sri it's not for something serious, just testing my mongodb driver
23:59 dross you should've just said you're lazy from the start ;)
23:59 dross pretty sure each and every one of us have our own jenkins server :3

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