Camelia, the Perl 6 bug

IRC log for #mojo, 2011-07-15

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

All times shown according to UTC.

Time Nick Message
00:05 chansen sri: will you attend yapc riga?
00:10 Kulag joined #mojo
00:11 Drossel left #mojo
00:19 Kulag left #mojo
00:19 Kulag joined #mojo
00:21 mpgutta joined #mojo
00:25 alnewkirk joined #mojo
00:28 Kulag left #mojo
00:29 Kulag joined #mojo
00:29 sri chansen: nope
00:30 chansen ok
00:40 Kulag left #mojo
00:42 xaka left #mojo
00:43 Kulag joined #mojo
00:51 Kulag left #mojo
00:51 Kulag joined #mojo
01:01 amoore joined #mojo
01:32 Kulag left #mojo
01:32 Kulag joined #mojo
01:34 Alias joined #mojo
02:01 amoore left #mojo
02:02 xaka joined #mojo
02:03 preflex left #mojo
02:04 alnewkirk|com left #mojo
02:06 preflex joined #mojo
02:14 tempire sri: where is it?
02:14 purl it's it!
02:16 sri tempire: http://www.youtube.com/watch?v=aB90XVLWyYk
02:16 sri yours is still way ahead, but he seems to be getting better
02:17 tempire much less clutter
02:17 tempire I have the second one almost done.  In the process of moving, so I can't do the audio.
02:17 sri \o/
02:18 tempire I commandeered a mic as well
02:18 tempire though I don't hear much difference, honestly
02:18 tempire I spent 3 hours trying to detect differences in different setups
02:18 sri haha
02:19 tempire and discovered that I could spent 1000 hours trying to get it perfect, and it will still have issues.
02:19 tempire I think it's the nature of voiceover work.
02:20 tempire I decided not to use any presentation views like peepcode does.
02:20 tempire It looks neat, but it takes away from the simplicity of the presentation
02:20 tempire but there are some textual hints
02:21 sri cool, can't wait :)
02:21 tempire is tuesday a holiday?
02:21 tempire :)
02:21 sri lol
02:21 sri better not ask me
02:22 tempire I figure I can coordinate at least 10 scheduled upvotes immediately
02:22 tempire though I don't know if that's acceptable community behavior
02:23 sri why wouldn't it?
02:23 tempire I don't know.  hax0rs are picky little shmucks.
02:23 sri social hacks are cool
02:24 tempire hmm
02:24 tempire gabor takes 3-4 per screencast.
02:24 tempire I spend too much time playing with cool new toys
02:25 tempire I'm betting it will pay off down the rode
02:25 tempire *road
02:25 sri he also pays no attention to detail
02:25 sri that browser is cluttered, vim theme is a mess
02:25 Alias tempire: Just make sure you record audio while standing up
02:25 Alias It changes the timbre of your voice
02:25 tempire seriously?
02:25 purl is that for real?
02:25 Alias Yup
02:26 sri interesting
02:26 tempire that sounds like a practical joke some kid would start at recess
02:26 Alias Ever seen recordings of when actors are doing voice tracks for movies and stuff? Always standing
02:26 tempire "make sure you record while pooping, it adds base"
02:26 Alias Ever called someone and they say "Are you in bed"?
02:26 tempire I can't spell today
02:26 Alias It's because when you are lying down it changes the tone of your voice
02:26 tempire hmm
02:26 sri radio moderators are never standing though
02:26 Alias Ditto sitting
02:26 tempire Ok.  I'll stand up.
02:26 Alias sri: They are doing radio for hours and hours
02:27 tempire radio is different, too
02:27 tempire it's off the cuff, lots of ums
02:27 Alias right
02:27 Alias Just try it and see
02:27 tempire I'm going for the apple look&feel
02:28 tempire I showed mojocast #1 to a friend, and when it was done, they said, "I feel like something awesome just happened, but I don't have any idea what it was"
02:29 tempire I read something today that without professional sound studio, a blanket in the closet works really well
02:29 amoore joined #mojo
02:30 Alias Well yeah, but standing will make a bigger difference
02:30 Alias Try that first
02:31 amoore left #mojo
02:32 crab stand under a blanket in the closet
02:32 amoore joined #mojo
02:33 crab or get alias to record the audio. everyone loves a good australian accent.
02:33 tempire I thought Alias was a girl
02:34 tempire In my mind, Alias looks like jennifer garner
02:35 mattastrophe joined #mojo
02:36 amoore left #mojo
02:40 amoore joined #mojo
02:41 Alias Fuck I hate that show, stealing my fucking nick
02:44 tempire well
02:44 tempire better that than her rendition of elektra
02:44 crab tempire: so what if alias was a girl?
02:44 amoore left #mojo
02:52 sri jennifer garner can't act her way out of a paper bag, but i wouldn't mind watching her beat up shit all day long anyway
02:56 amoore joined #mojo
02:58 sri i'm sure there's an xkcd for that
02:58 sri http://xkcd.com/311/ # of course there is
03:00 amoore left #mojo
03:03 Alias sri: Clearly you need to come watch a Roller Derby game :)
03:03 sri clearly
03:55 arpadszasz joined #mojo
04:20 alnewkirk|com joined #mojo
04:26 kaare joined #mojo
04:38 preflex left #mojo
04:39 Kulag left #mojo
04:40 Kulag joined #mojo
04:42 preflex joined #mojo
04:46 Kulag left #mojo
04:47 Kulag joined #mojo
04:48 mpgutta left #mojo
05:13 Kulag left #mojo
05:14 d4rkie joined #mojo
05:15 Kulag joined #mojo
05:17 D4RK-PH0ENiX left #mojo
05:21 Kulag left #mojo
05:27 Kulag joined #mojo
05:28 GabrielVieira joined #mojo
05:33 Drossel joined #mojo
05:33 Kulag left #mojo
05:37 cosmincx joined #mojo
05:38 Kulag joined #mojo
05:39 Drossel left #mojo
05:43 * sri wonders what apple is waiting for
05:44 Kulag left #mojo
05:50 Kulag joined #mojo
05:54 AmeliePoulain joined #mojo
05:57 xantus[] I realized that there were iowatcher tests
05:58 xantus[] so I will finish this test, etc and send a pull req
06:02 sri xantus: merging it in will be more complicated
06:02 sri i want to replace Mojo::IOWatcher::Epoll and Mojo::IOWatcher::KQueue with it
06:02 sri xantus: and you've not yet said if it works with multiple watchers in the same process
06:03 sri considering you're not instantiating EV my bet would be on no
06:04 sri which is a deal breaker for core that needs to be addressed first
06:04 sri the core iowatcher tests sadly don't cover it yet i think
06:09 sri xantus[]: actually, as long as multiple instances work a pull request would be fine
06:12 sri i'll try to add the necessary tests when i have some free time
06:12 sri unless you beat me to it
06:27 xaka left #mojo
06:32 xantus[] sri: I'm working on multiple watchers too
06:33 xantus[] ok, I'll work on the module, maybe you'll have time for the tests
07:07 preflex left #mojo
07:10 preflex joined #mojo
07:13 Alias left #mojo
07:16 alnewkirk left #mojo
07:27 Drossel joined #mojo
07:28 Kulag left #mojo
07:44 vishwanathms joined #mojo
07:52 Kulag joined #mojo
07:53 Drossel left #mojo
08:16 sugar joined #mojo
08:19 spleenjack joined #mojo
08:33 Kulag left #mojo
08:34 Kulag joined #mojo
08:40 Kulag left #mojo
08:45 Drossel joined #mojo
08:46 cosmincx left #mojo
08:51 Drossel left #mojo
08:56 Kulag joined #mojo
08:59 bitman joined #mojo
09:00 cosmincx joined #mojo
09:24 donks122_ joined #mojo
09:24 donks122_ join #android-dev
09:25 donks122_ left #mojo
09:26 cosmincx left #mojo
09:32 Kulag left #mojo
09:35 Kulag joined #mojo
09:52 vishwanathms left #mojo
09:53 vishwanathms joined #mojo
10:01 Kulag left #mojo
10:02 Kulag joined #mojo
10:27 Kulag left #mojo
10:29 Kulag joined #mojo
10:59 preflex left #mojo
11:02 preflex joined #mojo
11:04 bosphorus joined #mojo
11:05 perlrocks Twitter: "I want # mojolicious long-pooling example. Some links?" (ru) --korjavin http://twitter.com/korjavi​n/status/91825754442178560
11:20 baton8 joined #mojo
11:24 perlrocks Twitter: "I want to see the full information about the MySQL Perl tools like phpMyAdmin. Who do I make the MySQL Kurenai easy as plug-in viewer Mojolicious." (ja) --perlcodesample http://twitter.com/perlcodesa​mple/status/91830393791188992
11:46 crab maybe i should finish my mojolicious long-polling blog post too.
11:48 crab except what i did wasn't exactly long polling.
12:01 Akron joined #mojo
12:10 mohan joined #mojo
12:11 mmcleric left #mojo
12:14 vishwanathms left #mojo
12:16 mmcleric joined #mojo
12:20 mattp left #mojo
12:20 mattp joined #mojo
12:30 ZadYree joined #mojo
12:30 ZadYree Hello, I have a question: How to stash a variable to a default layout?
12:31 xxtjaxx_ Hmm Is there a way like layouts to include "blocks" of template code like a menu or included css files into a template file?
12:32 alnewkirk|com xxtjaxx_, see the include command
12:32 alnewkirk|com ZadYree, yes, see the stash method
12:33 ZadYree ah, thanks mates!
12:33 alnewkirk|com ZadYree, but if what you meant to say was, have a stash value always exist, create it in the setup function
12:34 ZadYree hum I see
12:34 xxtjaxx_ alnewkirk|com: in which Class is this?
12:34 arpadszasz hello
12:35 alnewkirk|com purl, rendering
12:35 purl rendering is a highly pipelinable process.
12:35 alnewkirk|com shyte
12:35 arpadszasz is there a nicer way to delete a (non-session) cookie than this? $self->res->cookies( { name => 'test_cookie', value => '1', expires => time - 100 } );
12:35 alnewkirk|com xxtjaxx_, http://mojolicio.us/perldoc/Mojolicious/Gu​ides/Rendering#Including_Partial_Templates
12:36 alnewkirk|com arpadszasz, what are you looking for
12:36 alnewkirk|com if thas to long-winded, create a helper
12:37 arpadszasz i was thinking more of a patch to Mojolicious::Controller to enable this $self->cookie('test_cookie')->expires
12:38 arpadszasz i'm creating the cookie client-side with JS so i must use a separate cookie, can't write to session cookie from JS
12:56 bitman_ joined #mojo
13:01 bitman left #mojo
13:01 bitman_ is now known as bitman
13:02 bosphoru_ joined #mojo
13:07 bosphorus left #mojo
13:17 GabrielVieira left #mojo
13:19 arpadszasz left #mojo
13:24 Akron left #mojo
13:42 sri arpadszasz: just use the hash argument for ->cookie(...)
13:46 AmeliePoulain left #mojo
13:47 tempire I'm moving to California today.
13:47 tempire I'm mildly excited.
13:47 tempire \o
13:47 tempire excited is maybe too strong a word
13:59 sri moving from?
14:04 sugar left #mojo
14:06 sugar joined #mojo
14:09 perlrocks Twitter: "Perlbuzz is such a failure... this time http://t.co/1QXqRCq is just missing from the news roundup. http://t.co/6VUZXd1 #perl #mojolicious" --kraih http://twitter.com/kraih/status/91871995528097792
14:14 perlrocks Twitter: "Mojolicious Mojocasts: http://mojocasts.com/" (ja) --gugod http://twitter.com/gugod/status/91873232830988288
14:39 sh9 joined #mojo
14:57 perlrocks Twitter: "Mojocast #1: Fun with clouds! - Create your first Mojolicious web app http://t.co/dcuqIzP" --idryman http://twitter.com/idryman​/status/91884003950465025
14:59 sri guess he's moving already
14:59 sri o/
15:05 bitman left #mojo
15:19 xaka joined #mojo
15:21 d4rkie left #mojo
15:22 crab did anyone read my mojo and static files post?
15:23 sri still havn't had time :/
15:24 xaka crab: what the url?
15:24 purl rumour has it the url is their database internal unique identifier
15:25 sri but i've got the building blocks for the new ioloop mostly done :)
15:25 stephan48 sri: any ideas what could make morbo fail to pickup a app which works fine running standalone? http://pastebin.com/zmVTf0Bb
15:26 stephan48 its a normal lite app
15:26 sri that error hints at the app->start return value
15:26 crab xaka: http://toroid.org/ams/etc/m​ojolicious-static-resources
15:26 sri you prolly borked it
15:27 stephan48 ...
15:27 stephan48 i had 1; after the app->start
15:36 crab server-sent events are so nice.
15:36 crab xaka: what do you think?
15:36 purl I think crab should try flossing more often!
15:36 xaka left #mojo
15:43 xaka joined #mojo
15:44 preflex left #mojo
15:44 metaperl joined #mojo
15:46 xaka left #mojo
15:47 preflex joined #mojo
15:51 d4rkie joined #mojo
15:53 sh9 left #mojo
15:55 mattastrophe left #mojo
16:03 bosphoru_ left #mojo
16:31 ajgb left #mojo
16:46 spleenjack left #mojo
16:53 newbie joined #mojo
16:55 sugar left #mojo
16:59 crab stephan48: still here?
16:59 stephan48 ye?
16:59 purl somebody said ye was the old objective case of 'you'. or YAPC::Europe
17:00 crab did you finally use javascript for your tail -f?
17:00 stephan48 ye
17:01 crab with jquery, as i did?
17:01 stephan48 ye
17:06 crab huh. i was hoping you did it in plain js, so i could steal it back and use it as an example. :-)
17:28 fbuchinger joined #mojo
17:29 fbuchinger hi! does anyone have a code snippet for adding a custom command to a mojolicious lite app?
17:44 bosphorus joined #mojo
17:59 arpadszasz joined #mojo
18:01 * arpadszasz is backloging
18:02 arpadszasz crab: i've read your post, crab++
18:07 arpadszasz crab: there's a recent commit to Mojo::Headers that adds expires and cache_control methods
18:10 crab arpadszasz: i know, i added them :-)
18:10 arpadszasz crab: nice
18:22 crab next up: http://toroid.org/ams/etc/​mojolicious-http-streaming
18:25 arpadszasz left #mojo
18:28 newbie wow, i just wrote the same log viewer yesterday ))
18:32 crab newbie: did you do it differently?
18:41 fbuchinger @crab... interesting stuff... i'm also experimenting with long-running background tasks in mojo
18:43 fbuchinger i wonder if socket.io could simplify things a bit
18:46 newbie is now known as xaka
18:47 xaka crab: i did it using open + ioloop + polling
18:47 xaka open(stream, "-|","tail", "-f", ...) -> ioloop -> buffering
18:47 xaka just to be sure that i have only one tail for many users
18:54 xaka does chunked works for all browsers the same? i mean if you sent <script> - browser parsed it right now, not when connection will be closed
18:57 crab it seems to work the right way in all the browsers i tried (ff, chrome, ie)
18:57 crab xaka: is your code anywhere i can see?
18:58 crab fbuchinger: oh, is it you trying to extract exif from images?
18:59 fbuchinger yes its me
19:00 crab i've never tried socket.io
19:00 xaka crab: nope, but i can send it private to u if u wish. I have LogReader which starts on startup and stops when application dies. URL handlers just uses the log reader via helper ($self->logger) to get last lines ($self->logger->get)
19:01 stephan48 xaka: ff,chrome,ie, work here
19:01 crab xaka: yes, please, i'd like to see.
19:01 xaka what i ur email?
19:01 stephan48 xaka: i think opera will too but i am refusing to install it :)
19:02 crab ams@toroid.org
19:03 ZadYree left #mojo
19:04 alnewkirk|com ... and so it seems the /activate/:login/:apikey params can't be found using $self->req->params->to_hash
19:04 alnewkirk|com can anyone confirm or deny this?
19:05 SmokeMachine joined #mojo
19:10 crab alnewkirk: yes, that makes sense, req->params is only request parameters, not captures
19:11 crab i never use param to access captures anyway
19:12 alnewkirk|com although you can so one would assume params->to_hash would include them
19:12 alnewkirk|com what is the best practice? alternative? or documented way to fetch captures?
19:19 crab i don't think there's a documented way to get all the captures.
19:20 xaka param without args returns all keys, so u need to iterate over the keys and make the hash by you self
19:21 xaka i was looking for solution too, but didn't find anything. mb we can fill it as the feature request for Mojolicious
19:23 xaka crab: let me know what do u think about it or is there the way to improve it
19:24 crab seems sensible enough.
19:26 alnewkirk|com xaka, seems like a bug, ... that param "with no args" would return a different list than keys %{ ...params->to_hash }
19:26 alnewkirk|com crab,^^ what do you think?
19:27 crab i think it's a bit unfortunate, but not a bug. it would be extraordinarily wrong to make req->params return captures.
19:27 alnewkirk|com okay, I'll try param(), if that return all keys it'll work for me
19:27 xaka http://mojolicio.us/perldoc/​Mojolicious/Controller#param says "Access GET/POST parameters and route captures that are not reserved stash values."
19:28 xaka alnewkirk|com: there is an example how to use param also
19:28 alnewkirk|com xaka, noted, thanks alot
19:30 xaka i think "params" method is what we're looking for (and expecting to be a part of mojolicious core)
19:34 xaka oh, now my KVirc looks like a MIrc, at last and for free
19:38 xantus[] btw, you can use EventSource in supported browsers
19:38 xantus[] to stream from mojo
19:42 xantus[] http://pastebin.com/YQ4L47bk
19:46 alnewkirk|com I also noticed that since my processing is being done in the before_dispatch hook, before the route dispatcher starts its work, it wouldnt know what the captures are anyway
19:46 alnewkirk|com ... maybe we can also include a before_route_execution hook
19:48 xaka what are u trying to do? may be there is another way
19:49 alnewkirk|com xaka, http://anainc.tumblr.com/post/6664138301/a​pplication-firewall-input-validation-as-a
19:49 alnewkirk|com works extremely well, doesn't work on captures
19:56 xaka actually, u can use perl's attributes technique to do the same
19:57 alnewkirk|com xaka,?
19:57 xaka alnewkirk|com: http://perldoc.perl.org/Attribute/Handlers.html
19:57 xaka it's in the perl core so u dont need CPAN
19:58 alnewkirk|com xaka, are you talking to me?
19:58 xaka sure )
19:59 alnewkirk|com about what exactly :}
19:59 xaka your problem with a captures and before_route_execution hook
19:59 xaka nope, i'm wrong? x_O
20:12 kaare left #mojo
20:27 crab i wouldn't do it that way.
20:28 crab i'd subclass Mojolicious::Controller and provide a ->valid_params() method or something like that.
20:28 crab or i would use bridges to protect some routes.
20:28 crab i wouldn't use hooks for it.
20:35 DaTa hmm.. why does app->mode("production") not work in a lite-app?
20:39 xaka DaTa: what did u expect doing it in a lite-app?
20:41 crab data: does setting $ENV{MOJO_MODE} in a BEGIN {} block work?
20:43 xaka lite-app doesn't have startup or <mode>_mode methods so mode doesn't make any sence in this case
20:43 xaka correct me if i'm wrong
20:43 SmokeMachine left #mojo
20:44 SmokeMachine joined #mojo
20:50 DaTa crab: yes, MOJO_MODE=production works
20:51 DaTa xaka: ok, i'm using app->log->level('warn') then
21:06 fbuchinger left #mojo
21:48 SmokeMachine left #mojo
22:04 metaperl left #mojo
22:08 mfridh left #mojo
22:08 mfridh joined #mojo
22:39 omega left #mojo
22:53 omega joined #mojo

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