Camelia, the Perl 6 bug

IRC log for #mojo, 2012-08-30

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

All times shown according to UTC.

Time Nick Message
00:07 arthas joined #mojo
00:16 mojocasts joined #mojo
00:16 mojocasts test
00:16 tempire tested
00:25 kthakore how do I turn of the default 404?
00:26 daniel__ joined #mojo
00:26 kthakore hi tempire
00:27 tempire howdy!
00:27 kthakore tempire: Guess what! I am making Scratchd (mobile app on android/iphone/mobile web) with mojolicious as backend
00:27 kthakore :D
00:28 kthakore also how the heck do I turn of default 404?
00:28 kthakore with the documentation and showing of all the other routes .... not want in production plzthx
00:29 tempire when in production, run in production mode
00:30 kthakore woah
00:30 kthakore http://mojolicio.us/perldoc/Mojolicious#mode
00:30 kthakore how the heck didn't I see that?
00:32 mandreacchio joined #mojo
00:33 kthakore tempire: how are things with you?
00:34 tempire they remain acceptable
00:34 tempire though I'm unhappy with the cost of fresh salad
00:46 laouji joined #mojo
00:55 good_news_everyone joined #mojo
00:55 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/MoxMyw
00:55 good_news_everyone [mojo/master] bring back a few quotes - Sebastian Riedel
00:55 good_news_everyone left #mojo
00:56 scott joined #mojo
00:57 sri lets just start with a few harmless ones :)
01:40 jnap joined #mojo
01:54 d4rkie joined #mojo
02:04 zivester_ joined #mojo
02:17 memowe sri: any idea what I'm doing wrong here? https://gist.github.com/3521730
02:18 sri memowe: don't ever use the MOJO_APP environment variable
02:18 sri just do what the synopsis says http://mojolicio.us/perldoc/Test/Mojo#SYNOPSIS
02:19 memowe OK, thanks. :)
02:19 memowe (I need to fix old Contenticious tests)
02:20 sri MOJO_APP is only around for backwards compatibility and will be gone in 4.0
02:21 memowe good to know, thanks.
02:21 purl good to know, thanks. is there a free version of that I can install (linux or win32) to play with?
02:22 sri hmm, a hackernews alternative that's trending in my twitter stream atm https://lobste.rs
02:37 noganex_ joined #mojo
02:51 hide joined #mojo
03:06 bluescreen joined #mojo
03:18 mandreacchio joined #mojo
03:44 memowe_ joined #mojo
04:07 xaka joined #mojo
05:00 tempire Mojolicious job! http://jobs.perl.org/job/16402
05:00 tempire Let's all move to Denmark!
05:01 tempire Oh it's telecommute
05:01 tempire Let's all stay at home!
05:03 bluescreen joined #mojo
05:05 hide joined #mojo
05:08 laouji_rouge joined #mojo
05:29 mandreacchio joined #mojo
05:31 spleenjack joined #mojo
05:47 hide joined #mojo
06:20 mandreacchio joined #mojo
06:33 Vandal joined #mojo
06:56 bobkare joined #mojo
06:59 mandreacchio joined #mojo
07:00 mandreacchio joined #mojo
07:39 mandreacchio_ joined #mojo
07:39 jontaylor joined #mojo
07:47 pau4o joined #mojo
07:59 amirite joined #mojo
07:59 amirite what plugin should i be using for authentication
08:06 fhelmber_ joined #mojo
08:16 amirite hmm
08:16 amirite is mojolicious a dying framework?
08:18 nicomen I would think the opposite
08:19 amirite just wondering
08:19 purl The answer is no.
08:19 amirite nico whats the best setup for mojo auth, do you know? i used mojo plug authentication in the past and it was horribly weak
08:20 buu What made it weak?
08:21 amirite i remember the first thing that turned me off is that it would throw errors about the documented is_user_authenticated routine not existing
08:22 amirite so fell back to seemingly deprecated user_exists method
08:22 amirite second is that it's just a shell
08:27 davido_ joined #mojo
08:28 daxim joined #mojo
08:28 * amirite tries again, maybe author fixed the bugs
08:29 davido_ amirite: I'm using it in an application right now, and find it to be exactly what it says it is.
08:29 davido_ You provide the plugins, it provides the helpers.
08:30 preflex_ joined #mojo
08:31 davido_ I use it alongside M::P::Authorization so that I get simplified authentication and rbac.
08:32 buu Hrm. What's the coolest way for a bridge action to pass values into its "child" handlers?
08:35 davido_ A minor quirk which is to be expected given M::P::Author and M::P::Authen come from different authors:  $self->plugin('Authentication'); $self->plugin('authorization').  The title-casing mismatch bugs me for no good reason. :)
08:35 buu Bastards!
08:35 * purl kills kenny
08:37 amirite davido y 4 u not fully-qualified use $self->plugin( 'Mojolicious::Plugin::Authorization' ...
08:40 davido May have to do that just to stop annoying myself whenever I look at the application class.
09:03 buu davido: Any idea how a bridge can pass on information?
09:04 davido The bridge's cb sub lives in a controller class, so you've got the stash and flash available to you.
09:05 davido stash.
09:05 davido flash would be for the redirect.
09:05 buu oh
09:05 buu OH
09:05 buu Of course.
09:05 purl Indubitably.
09:06 nicomen familiar error? Can't write to log: Bad file descriptor at /usr/local/share/perl/5.10.1/Mojolicious.pm line 175
09:15 marcus good morning hackers
09:25 Kwa buu: and if you want to use matched placeholders in the bridge (taken from the route) you can access them using $self->match->captures.
09:26 buu Kwa: Oh, cool.
09:32 marcus nicomen: no, never seen that.
09:32 marcus nicomen: maybe you're out of open file or something?
09:33 nicomen yeah I guess, wonder if someone is restarting shit badly a lot
09:33 nicomen seem to remember some ipcs related stuff with apache in another universe
09:41 andrefs joined #mojo
09:45 mire_ joined #mojo
09:52 asarch joined #mojo
09:52 spleenjack joined #mojo
10:36 Lucas1 joined #mojo
10:43 batman_ joined #mojo
10:45 zpmorgan There's a task that has to be done in the background. I'd like to have my controller fork, and have the child process render something & exit. Bad idea?
10:57 marcus zpmorgan: yes
11:00 zpmorgan er, I shouldn't've said render; it would prepare a document for later retrieval. still a bad idea?
11:11 nicomen perhaps use a daemon in the background?
11:13 nicomen like gearman, hopkins or theschwartz?
11:13 zpmorgan I'd rather not; 2 apps in a 128mb server.. Forking seems easier & straightforward and I was wondering what the downsides are, if any
11:14 zpmorgan I'll look into those, thanks nicomen
11:16 cosimo nicomen: hopkins?
11:16 purl hopkins is, like, great.  But often wasted
11:20 nicomen cosimo: http://search.cpan.org/~diz/​Hopkins-0.9.2/lib/Hopkins.pm ?
11:21 cosimo yeah, but...
11:21 purl Yeah. Butt.
11:23 nicomen butt butt
11:23 nicomen what what
11:58 ghandmann joined #mojo
12:31 * nic wonders whether Hopkins development has died
12:36 vervain sri: websocket.t 54k+ Good; 0 Bad
12:36 vervain I'll go ahead an stop the script now. ;-)
12:39 marcus what what in the butt?
12:53 nic omega: The problem we were talking about with perl on 'squeeze' has been fixed
12:53 nic so if you have the option of apt-get upgrade then you'll get v5.10.1 in a matter of seconds :)
12:53 nic (5.10.1-17squeeze3)
12:57 mandreacchio joined #mojo
13:11 cosmincx joined #mojo
13:16 jnap joined #mojo
13:17 Antisoche joined #mojo
13:19 nic Is it possible that Mojolicious imagery is putting pressure on young horses to get forehead enhancement surgery?
13:24 mandreacchio lol wut
13:39 CromeDome joined #mojo
13:47 bluescreen joined #mojo
13:47 mandreacchio joined #mojo
13:47 crab we have to consider what unintended effects our marketing may have on the world
13:48 crab i for one am all for the promotion of a healthy self-image among our equine colleagues.
13:48 gryphon joined #mojo
13:51 mandreacchio joined #mojo
13:58 Htbaa joined #mojo
14:01 sri vervain++ # :D
14:03 Lucas1 joined #mojo
14:04 sri davido: i don't think there's any reason for Authentication and Authorization to use different notation
14:04 sri just because the docs say lower case doesn't mean you can't use title case
14:08 sri amirite: be nice
14:11 amirite u r
14:22 crab u r?
14:22 purl hmmm... r is a variant of lisp optimised for statistical computing, or http://www.r-project.org or good for graphics (once you struggle with the syntax) http://addictedtor.free.fr/graphiques/
14:25 Britzel_ joined #mojo
14:45 knshaum joined #mojo
14:50 amirite no u
14:50 amirite purl?
14:50 purl yes, amirite?
14:50 amirite do you love me?
14:50 amirite what is love?
14:50 purl stinks.
14:50 amirite can we be friends?
14:50 amirite what is purl?
14:50 purl well, i am a happy little infobot or a fumblebot
14:51 amirite what is perl?
14:51 purl Perl certainly is.
14:51 amirite what is amirite?
14:51 memowe sri: sri completely removed MOJO_APP from contenticious (tests). :)
14:51 memowe s/sri //
14:58 crab poor old MOJO_APP
15:04 trone joined #mojo
15:04 amirite i think the rainbow on mojolic.io.us needs to go
15:04 amirite it strikes of gay
15:05 Lucas1 joined #mojo
15:07 amirite what is gay ?
15:07 purl gay is http://xrl.us/vayy or http://images.salon.com/comics/​boll/2007/10/25/boll/story.gif
15:15 vervain purl: Those links are stale.
15:15 purl OK, vervain.
15:18 vervain However a cover story & photo of Ryan the Liar in response to 'What is gay' has a certain flair to it. :-)
15:18 sri amirite: there is nothing wrong with being gay
15:18 sri now, please be nice
15:18 d4rkie joined #mojo
15:28 amirite nothing wrong with it except that it's disgusting and god hates you
15:29 vervain I though we were eating sarcasm... but now I see that nothing short of a kick can be expected.
15:29 amirite haha you silly westerners are so brainwashed you even say nothing wrong with being a homo
15:29 crab amirite: stop being tiresome.
15:40 urite can someone give me an example of flash usage
15:40 urite was kicked by sri: urite
15:40 urite joined #mojo
15:41 urite was kicked by sri: urite
15:41 vervain sigh... as they say... it doesn't take all kinds... there just are all kinds. :-)
15:43 sri interesting, his ip traces back to egypt
15:44 inokenty joined #mojo
15:44 crab sri: pretty sure based on history that he was just trying to be cool or edgy or something, but he was low-level annoying for a long time.
15:46 tolid_air joined #mojo
15:58 vervain Anyone read and have feedback on O'Reilly RESTful Web Services?
16:01 gryphon joined #mojo
16:01 * sri prefers the RESTful Web Services Cookbook
16:04 sri but it sure doesn't hurt to read both
16:05 sri just take everything with a grain of salt, a lot will be outdated already
16:05 labrown joined #mojo
16:07 xaka joined #mojo
16:11 vervain That was my concern.. .in this day of the web 5 years is _way_ out of date in a lot of respects. <shrug>
16:13 nic sri: I'm wondering if there are any plans towards adding index page(s) to the Mojolicious docn?
16:14 sri nic: like?
16:14 nic The obvious ponderings are (a) could something useful be auto-generated, and (b) how could it be maintained
16:14 nic for example, I was going to build a list of all env vars mentioned in the docs with a list of links to where they're mentioned
16:15 sri ah, no plans to have that stuff in core, it's a pita to keep up to date
16:15 nic yeah, thought so
16:16 nic I might have a go (after my holidays) to see if anything useful can be generated
16:16 sri even just auto generating a list of all classes with titles is insanely hard
16:17 nic oh
16:17 nic even the special case of just env vars was looking a bit tricky :)
16:17 sri you don't know which classes belong to mojolicious core and which are just from other distributions
16:17 nic ah, that brings me to another query...
16:18 sri metacpan can do it because they keep the distribution isolated for indexing
16:18 nic if mojolicio.us stopped hosting non-Mojolicious docs, google searching would be more fruitful than it is currently
16:18 sri it's not intentional :)
16:19 sri it's just side effects of the toolchain we use https://github.com/kraih/mojo/blob/master/​lib/Mojolicious/Plugin/PODRenderer.pm#L45
16:20 nic ah, it makes sense now :D
16:22 nic I supposed there's nothing stopping someone else hosting a more specialised collection of docs
16:22 nic I'd also like a link to the source code
16:23 nic and I suppose a filtered/specialised search box wouldn't hurt
16:23 sri all stuff the toolchain makes really hard atm ;p
16:23 angelixd left #mojo
16:24 nic yeah, I was thinking of adding a thin layer on top of PODRenderer
16:24 nic (just for that particular site, not for core code)
16:26 sri i think you're better off with a more metacpan-ish solution
16:27 sri take the whole distribution, unpack it isolated, index everything and store it in a database
16:27 nic I was reading http://calv.info/what-10gen-nailed-with-mongodb/ earlier, and it reminded me of my docn wishlist
16:27 nic yeah, that makes sense
16:28 nic I'm sure somebody on here would be happy to do that as a mini project/prototype
16:28 sri well, the mongodb docs are just a wiki
16:29 sri they don't have to ship it with the database
16:29 nic yeah, those notes talk about redis being a better example for docn
16:29 sri same for redis :)
16:29 BlueT_ joined #mojo
16:29 sri but yea, i love the redis docs
16:30 sri don't let me discourage you from finding a way to index docs with the Pod::Simple tools though
16:30 sri maybe there is something and i just missed it
16:36 Leandr joined #mojo
16:52 vervain joined #mojo
16:52 mgrimes joined #mojo
16:54 mire_ joined #mojo
17:00 mgrimes I'm sure this is obvious, but how do I turn off access logging? I'm running my app proxied behind apache, and apache is taking care of it for me.
17:06 jnap joined #mojo
17:19 estrai hi, what's the highest version of Mojolicious that will work with perl 5.8.8 if anyone knows off the hand? (or when the requirement on 5.10 has been added)
17:20 estrai oh, 1.99, nevermind
17:20 sri estrai: https://github.com/jamadam/mojo-legacy
17:21 sri mgrimes: increase the log level (which you should always do in production anyway)
17:25 estrai sri: do you know is it stable/production ready?
17:25 sri it beats having to use 1.99
17:26 sri which is full of serious bugs
17:26 estrai fair enough, thanks
17:27 sri perl 5.8.x itself is not exactly production ready ;p
17:28 estrai I don't need to convinced I just need my app deployed :)
17:29 sri it's rather trivial to make the 5.8.x regex engine segfault with some carefully crafted input data
17:30 mollusk joined #mojo
17:32 estrai I'd be happier if Centos 5 would just die in fire
17:55 vel joined #mojo
18:04 njlg joined #mojo
18:20 mgrimes sri: i confirmed we are running at info. the logs are being dumped to stderr (not log/production.log).
18:21 mollusk this is probably a stupid question, but I am using Mojolicious to present a front end to a server that spits out random updates in the form of a graphic and a short list and takes occasional commands, so I'm wondering if there is a favored mechanism for doing this?  The server can be changed to support whatever, but WebSocket and EventSource and even nearly raw xmlHttpRequest call all seem possible so I'm a bit lost
18:24 mgrimes sri: i figured it out. it was plack. just needed to add the --env production flag for plack (in addition to MOJO_MODE=production for mojo).
18:24 mgrimes sri: thanks!
18:24 dk joined #mojo
18:40 njlg joined #mojo
18:50 andrefs joined #mojo
18:51 njlg joined #mojo
18:55 mib_qa846f joined #mojo
18:59 mollusk joined #mojo
19:07 njlg joined #mojo
19:10 fhelmber_ joined #mojo
19:13 njlg joined #mojo
19:15 mire_ joined #mojo
19:18 njlg joined #mojo
19:20 njlg joined #mojo
19:40 * sri likes the new metacpan author profiles with favorite list https://metacpan.org/author/SRI
19:52 davido_ joined #mojo
19:57 Antisoche joined #mojo
20:03 Lucas11 joined #mojo
20:19 sawtooth joined #mojo
21:46 lukep joined #mojo
21:46 rem_lex|pivo joined #mojo
22:18 good_news_everyone joined #mojo
22:18 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/9dPDyA
22:18 good_news_everyone [mojo/master] updated jQuery to version 1.8.1 - Sebastian Riedel
22:18 good_news_everyone left #mojo
22:36 GabrielVieira joined #mojo
22:38 GabrielVieira hey there, I have many dynamic paths, so I use get '/*parameters' => sub {}; buuut /public directory don't work as expected anymore... how could I keep /public working?
23:01 jzawodn joined #mojo
23:30 nicomen joined #mojo

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