Camelia, the Perl 6 bug

IRC log for #mojo, 2010-09-02

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

All times shown according to UTC.

Time Nick Message
00:52 sri tempire: node.js doesn't make javascript any more enjoyable though, that could turn out to be a problem for converting people from more fun languages
00:53 tempire That is true.  It's only jquery that makes it enjoyable, but even that's only in relation to normal javascript.
00:54 tempire But I'll say this.  expressjs has a super pretty web page.
00:57 sri i have to disagree there, it's just the gradient lighting effect that makes it appealing
00:57 sri the jquery site is much better
00:58 tempire for information and usability, yes.
00:58 tempire no doubt.
00:58 tempire but pretty!
01:00 sri no really, i don't like it
01:02 sri no effort went into that design
01:02 sri it's a 10 minute job
01:05 sri when you take other minimalistic designs like the usual 37 signals stuff you can tell a lot of thought went into the little details
01:15 sri marcus: i don't think mojolicious in javascript would have worked, i can feel my brain rotting just playing around with it :)
01:15 jawnsy sri: o/
01:15 sri o/
01:16 jawnsy sri: how's libmojolicious-perl working out for you guys, have you heard complaints yet? :)
01:16 sri no complaints yet
01:16 sri people just keep whining about freebsd :)
01:17 jawnsy ha! can't help you with that
01:17 jawnsy but that's good news :)
01:17 sri jawnsy++
01:17 sri marcus: i think the glue keeping my apps together will always have to be a fun language
01:17 jawnsy wasn't me, looks like: 0.999926-1 to unstable: Chris Butler <chrisb@debian.org>
01:18 jawnsy ... took it over
01:18 sri 26 is horribly outdated!
01:18 jawnsy I stopped doing Debian Perl stuff shortly after I finished up libmojomojo-perl
01:18 jawnsy yeah, unstable has 29
01:18 sri ah
01:18 jawnsy but 26 was the first upload
01:29 awnstudio joined #mojo
02:22 jawnsy left #mojo
02:30 jawnsy joined #mojo
02:36 janus left #mojo
03:01 yakudzo joined #mojo
03:03 awnstudio left #mojo
03:04 awnstudio joined #mojo
03:14 sri hmm, itunes 10 is weird
03:22 Foxcool joined #mojo
03:26 janus joined #mojo
03:26 sri i don't like the new icon
03:28 sri sidebar and list with cover art look great though
03:58 ltriant left #mojo
03:58 ltriant joined #mojo
04:00 awnstudio left #mojo
04:00 stephen1 joined #mojo
04:01 awnstudio joined #mojo
04:03 tholen42 joined #mojo
04:05 tl left #mojo
04:06 Foxcool left #mojo
04:08 awnstudio left #mojo
04:45 GabrielVieira left #mojo
04:46 und3f[A] is now known as und3f
05:03 koban joined #mojo
05:15 ysyrota joined #mojo
05:33 marcus sri: clustering maybe? lots of tuning options for multicore? An apache like stats page to tell me what the daemon is doing?
05:33 marcus also, a unicorn pony
05:34 marcus http://simonwillison.net/2010/Jun/17/mongrel2/
05:45 sri marcus: define clustering
05:46 sri marcus: mojolicious.org has been self hosting for months
05:46 sri marcus: tuning options like?
05:47 sri diagnostics is on my wishlist too, but thats generally more of a framework feature, since i want details
05:50 marcus yeah, I want details too. re clustering, being able to check the load easily so that you could have dynamic weights in your load balancer maybe? built in health checks for load balancers?
05:51 marcus with regards to tuning, I was thinking of things like thresholds for how many forks to keep around.
05:51 marcus I agree that analytics is probably a framework feature
05:51 sri worker poll is of course configurable by default
05:52 sri *pool
05:52 sri which load balancer can react to server events?
05:52 koban left #mojo
05:52 sri which protocol is that?
05:53 sri marcus: it's a little smarter than you seem to expect
05:53 sri this is not the braindead catalust daemon xD
05:54 sri *catalyst
05:54 * sri needs coffee
05:56 sri marcus: http://github.com/kraih/mojo/blob/maste​r/lib/Mojo/Command/DaemonPrefork.pm#L18 # this is what we had from the start regarding configuration
05:57 sri only real difference is that hypnotoad works with a static worker pool (can be increased and decreased with signals)
05:58 sri marcus: tbh. sounds like you really just want a pony :)
05:59 marcus sri: I guess :)
05:59 marcus sri: I'm just saying hot deployment does not excite me much.
05:59 sri the killer feature here is really just that it's dead simple to use hot deplyment
06:00 sri thats ok
06:00 marcus I already use standalone fastcgi and do 'myapp graceful' to restart it
06:00 marcus rails boys manage to get me a bit jealous still with their fully automatic rollouts tho.
06:01 sri you mean database migrations?
06:02 marcus no, I mean capistrano
06:02 marcus their database migrations are nice too tho, best feature of their orm
06:02 sri perl people seem to use capistrano too
06:03 sri i prefer schema free databases ;p
06:03 marcus That's fine too
06:03 marcus I still have no schema free apps
06:03 marcus it breaks my brain the same way javascript breaks yours
06:04 sri Oo
06:04 marcus but I *will* rewrite iwatchthis to use couchdb
06:04 marcus and mojolicious.
06:04 sri so you enjoy sql?
06:05 marcus I wouldn't say that, but I know it well, and the query language is frigging powerful
06:06 sri well, the thing is couchdb uses javascript in the right way
06:06 marcus I think that would be the same problem with porting mojolicious to javascript.
06:06 sri i just don't want to use javascript as my everyday language
06:06 marcus It would be like joose, trying to force a class-based structure on a prototype based language
06:07 marcus I guess that'll be my hobby project for this fall. rewriting iwatchthis with mojolicious and couchdb, and setting it up with capistrano.
06:08 koban joined #mojo
06:08 sri you could also port capistrano while you are at it :)
06:08 sri perl ssh modules are not too bad i think
06:09 sri maybe with a Mojolicious::Lite like DSL for deployment scripts
06:11 sri oh btw. hypnotoad does websockets and long polling
06:11 sri so that should be a huge difference to fcgi deployment
06:13 sri i could also totally see a mongrel2 in front of mojolicious
06:14 sri in case it can act as a websocket proxy
06:15 sri high level languages like perl/python/ruby could totally use such a proxy, since tcp connections cost us quite a bit of memory
06:17 sri same for java i guess
06:19 koban left #mojo
06:19 koban joined #mojo
06:21 sri http://www.ibm.com/developerworks/lin​ux/library/l-perl-2-python/index.html # lol, wtf?
06:23 und3f is now known as und3f[A]
06:26 und3f[A] is now known as und3f
06:28 janus haha
06:30 janus i think the article isn't doing any harm to perl... rather indicates that python sucks wrt/ tests
06:31 janus the most useful information is to embed perl in python *eg*
06:32 esskar_ left #mojo
07:03 sri the new itunes icon gets annoying :/
07:08 marcus I thought it was pretty ugly
07:09 sri i liked the old one
07:27 marcus just signed up for ping
07:30 Alias left #mojo
07:33 ltriant left #mojo
07:44 marcus sri: http://mattiasekstrom.deviantart.c​om/art/iTunes-10-Revised-177699346
07:44 marcus less bugly
07:54 sri marcus: thats more what i expected
07:55 sri the ipod touch has a very nice logo for music
07:55 sri http://www.simplehelp.net/imag​es/flacoggiphone/IMG_0002.jpg
07:58 marcus plasma
08:00 und3f is now known as und3f[A]
08:04 jest joined #mojo
09:14 sri http://guides.macrumors.com/​images/8/81/ITunes1_logo.png # lol
09:15 sri http://guides.macrumors.com/​images/c/c8/ITunes_1_OS9.jpg
09:18 sri the ping thingy sucks too
09:22 sri the fact that i'm writing about an itunes release might be a good indicator that apple failed this time :o
09:22 sri (even though i like the sidebar icons)
09:28 koban left #mojo
09:29 marcus I like beer.
09:29 koban joined #mojo
09:29 sri beer like me.
09:30 sri *+s
10:33 cognominal left #mojo
10:34 cognominal joined #mojo
11:20 yakudzo left #mojo
12:42 perlrocks Twitter: "Mojo perl-e &#39;b (g (&quot;mojolicio.us&#39;) -&gt; dom-&gt; at (&#39; title &#39;) -&gt; text) -&gt; say&#39; Крутотень!!" (sv) --shirokoff http://twitter.com/shirokoff/status/22794550657
12:43 sri Oo
12:58 janus 99990ppoiioiiu7zjhgffhkll�#qqwertuip+uio�p+qwweer​tzuooiop�+asdfhjkl��#asdfhkl���#adgj��#qwertul++
13:00 janus oops
13:02 arthas joined #mojo
13:15 janus pfft, she could at least have written her name ;)
13:50 jest left #mojo
13:52 GabrielVieira joined #mojo
13:53 Foxcool joined #mojo
14:49 ash_ joined #mojo
14:50 ash_ sri: is there any input sanitizing routines? to escape javascript and things like that?
14:53 koban left #mojo
14:55 xantus_ joined #mojo
14:56 xantus_ hi hi
14:56 xantus_ sri: can we talk
15:06 yakudza left #mojo
15:20 koban joined #mojo
15:23 koban left #mojo
15:31 xantus__ joined #mojo
15:31 xantus_ left #mojo
15:32 janus hrhr, reading about ``neat'' java apps for ``hasslefree'' irc via browser... makes me believe mojo can gather a _lot_ of attention just with the irc client demo
15:32 janus meaning... using it actively for marketing purposes might be a good idea
15:40 arthas left #mojo
15:42 janus mojo - picks you up where java left you alone
15:42 GabrielVieira left #mojo
15:49 keith joined #mojo
15:51 ysyrota left #mojo
16:26 GabrielVieira joined #mojo
16:43 Foxcool left #mojo
16:57 keith left #mojo
17:14 spleenjack joined #mojo
17:41 arpadszasz joined #mojo
19:03 perlrocks Twitter: "perl Google::Voice module using Mojo::Client - http://bit.ly/c84N7A - Only two dependencies! #mojolicious" --tempiretech http://twitter.com/tempiretech/status/22822570927
19:28 xantus__ hows it going in here
19:36 xantus__ left #mojo
19:36 xantus_ joined #mojo
19:45 flu left #mojo
19:45 flu_ left #mojo
19:48 spleenjack1 joined #mojo
19:50 spleenjack left #mojo
19:51 xantus_ sri: would like to talk with you when you have a moment
19:54 janus pretty silent since the morning hours
19:57 ash_ left #mojo
19:57 janus maybe applied shut up and hack tactics ;)
20:00 * xantus_ deploys counter measures
20:09 su-bzero joined #mojo
20:13 su-bzero_ left #mojo
20:25 spleenjack1 left #mojo
20:27 arpadszasz left #mojo
20:30 mfontani joined #mojo
20:37 MojoGuest182 joined #mojo
20:37 MojoGuest182 From: http://www.google.com.br/search?sourceid=​chrome&amp;ie=UTF-8&amp;q=websockets+demo (1 hits)
20:37 esskar_ joined #mojo
20:37 MojoGuest182 left #mojo
20:53 mfontani Hi all; I'm having a wee issue with the "session" flash DWIW using the basic_auth plugin: https://gist.github.com/e6a0a60f39e41d0832b4
20:53 mfontani Basically without the auth the flash is shown to the user, whereas with basic auth on I can't seem to get to the flash
20:54 mfontani I wonder if I'm doing silly things or if it's something I could help fix in the basic_auth plugin (so it basically re-forwards the flash on a auth redirect or something)
21:34 Keiths joined #mojo
21:36 tempire mfontani: I'm not following you - what exactly is the problem?
21:44 mfontani Well, without basic auth I can show the flash after an upload, whereas with basic auth I cannot
21:45 mfontani I am wondering if there is a workaround, or if I should use the session rather than the flash for showing that "flash" to the user
21:46 mfontani try running it with the var set to 0 and upload a couple files, then set it to 1 and you see the message is not displayed with basic auth
21:46 [1]awnstudio joined #mojo
21:48 mfontani upload => redirect to /upload => unauthorized => correct basic auth => no flash
21:48 Keiths left #mojo
21:52 mfontani no flash either via session old flash
22:00 tempire what perl version are you using?
22:00 mfontani 5.12.1, could test others
22:01 tempire It passed make test?
22:01 mfontani yeah
22:01 tempire mojolicious from github or cpan?
22:02 mfontani cpan, reinstalling it now (can always git checkout to undo)
22:03 mfontani does it work for you with $use_auth = 1 ?
22:03 tempire I didn't have it installed - make test fails.  There's something fishy.
22:04 mfontani you mean ::BasicAuth?
22:04 tempire yes
22:05 mfontani Right, have 0.02 and it did reinstall w/tests all passed
22:05 mfontani hm, I do get a warning though: "We won't be doing any rendezvous publishing, please install a Net::Rendezvous::Publish::Backend:: module"
22:06 tempire that's normal
22:06 mfontani thanks for the reassurance
22:07 mfontani the dist does not have a test case for what I'm trying to do, mind you
22:07 mfontani hence my wondering whether I'm not doing something silly by wanting to use a flash for that scenario
22:09 mfontani (I just realised you are the author)
22:09 tempire I've never used flash myself, just stash, but I don't see that it would matter.
22:09 mfontani the flash only lasts one request, that is the key difference..
22:10 mfontani I guess the first 401 unauthorised "eats" it
22:11 mfontani I guess the _password_prompt could resend the flash if existing
22:14 mfontani yes looks like it
22:15 tempire I think I get what you're saying now - you're trying to access the flash value assigned in the post after it redirects to the get
22:15 tempire correct?
22:15 mfontani correct
22:16 mfontani preparing a patch for you :)
22:16 tempire You want to use session, then.
22:16 mfontani Right, you wouldn't want to re-"give" the flash in case of a _password_prompt then
22:16 tempire 'cause redirect isn't internal, it's a completely separate request made by the browser, ie, 302 status
22:16 mfontani roughly, $self->flash( %{ $self->session->{old_flash} } ) if $self->session->{old_flash}; # prior to the $plugin->_password_prompt
22:17 mfontani yes the flash is indeed used for 302 redirects, and they're not internal
22:17 mfontani the fact that the browser tries once to get the page without giving the basic auth "eats" the flash
22:18 mfontani then it sees auth is required, uses the right credentials, but at that point the flash is gone
22:19 mfontani adding the above line makes the flash DWIM even if pages are auth protected
22:23 ltriant joined #mojo
22:26 tempire If I'm understanding you correctly, adding to the module is unecessary, just don't use flash at all in the post action.
22:27 tempire instead, populate the flash with the session value in the get '/upload' action, right before render
22:27 mfontani let me try that :
22:27 tempire after adding to the session in post '/upload', of course
22:32 mfontani Yeah, a bit more code.. but work
22:32 mfontani works, even
22:34 mfontani Thanks :)
22:35 tempire just a line or two, but it makes the flow more readable - I don't want to hide forwarding of the flash in the module.
22:35 tempire no problem.
22:35 [1]awnstudio is now known as awnstudio_
22:35 tempire strange that it tests ok for you on 5.12.1
22:36 mfontani I understand; thanks for the pointers :)
22:36 tempire I'll have to track it down
22:36 mfontani what fails for you?
22:37 mfontani (changing pc)
22:50 xantus_ left #mojo
22:51 skaurus joined #mojo
22:53 skaurus hello again) Mm, if I redefine method redirect_to as sub redirect_to { shift->SUPER::redirect_to(@_); exit 0 } it will be ok?
22:53 skaurus don't want to write "return;" after each redirect_to call )
23:10 skaurus anyone?

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