Camelia, the Perl 6 bug

IRC log for #mojo, 2011-07-06

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

All times shown according to UTC.

Time Nick Message
00:02 mateu what happened to perl ninja anyway?
00:04 * mateu laments the loss of a person who didn't automatically go defensive on "trolls" as can often be the case.
00:05 sri he doesn't like irc, but he has a blog you can troll
00:06 sri usually i don't mind playing with trolls, but atm i'm quite busy
00:07 * sri misses being bored
00:10 * anaio nice mojocast
00:12 mateu sri: usually I don't mind playing with trippers, but you're a special one ;)
00:13 mateu left #mojo
00:14 mateu joined #mojo
00:15 mateu left #mojo
00:20 marty I have a need to maintain the order of URI params.  Does mojo have a built in function or do I just need to split the string?
00:21 marty I'm using $self->req->params->to_hash  but, of course the has key order is unpredictable.
00:21 sri order is automatically maintained internally
00:21 marty s/has/hash/
00:21 marty really?
00:21 * marty looking closer
00:22 sri just don't use to_hash
00:23 marty Ahhh, ok, I get it.  Thank you, sri.  I appreciate the help.
00:52 Alias joined #mojo
00:58 anaio left #mojo
01:44 mateu joined #mojo
01:57 xaka joined #mojo
02:06 xantus[] "there are too many releases", "those damn kids won't stay off my lawn!", "who pooped my pants?"
02:16 tempire ok
02:17 tempire next mojocast: Wildcard, default, and restrictive placeholders.  header conditions and http methods.
02:17 tempire that's the plan
02:18 tempire I was really encouraged by someone saying they were new to perl and #1 was good fo rthem.
02:18 tempire new perls!
02:21 xantus[] tempire++
02:21 tempire :)
02:24 mateu how might one set this type of header with mojo sugar?
02:24 mateu http://paste.scsys.co.uk/119569
02:32 mattastrophe left #mojo
02:34 mateu me wants to serve up .epub docs generated on the fly
02:35 mateu correct that, I want to server up epub docs with Mojo like I'm doing with Web::Simple
02:36 tempire $self->res->headers gives you access to Mojo::Header of the response
02:36 mateu tempire: thanks.  I'm guessing if I call that with the write incantation before render I can get what I seek.
02:36 mateu right*
02:37 tempire yes
02:37 mateu is a data render then?
02:37 tempire not sure what you mean
02:37 mateu render( data => ... ) veruse render(text => ...)
02:41 tempire still not sure what you mean
02:41 tempire oooh, sketch addons
02:41 tempire neat
02:42 tempire well, maybe not so neat.  but good execution of making them available and easy to install
02:42 * mateu finds that ->response doesnt' exist
02:42 mateu yes ->res does.
02:43 crab sketch addons to what?
02:46 mattastrophe joined #mojo
02:46 tempire sketch, the vector graphics program
02:47 crab oh.
02:47 mateu tempire: http://paste.scsys.co.uk/119571
02:48 mattp_ joined #mojo
02:48 mateu that works with data => $output (last line), but not text => $output
02:48 crab mateu: $self->res->headers->content_type(...); ...->content_disposition(...)
02:48 mattp left #mojo
02:49 mateu crab: thanks for the shorter alternative. Can one just pass a hashref of headers?
02:49 mattp_ left #mojo
02:49 mattp joined #mojo
02:49 mateu or arrayef for that matter (with even number of entries)
02:50 crab not that i know of.
02:51 mateu ok, thanks
02:53 * mateu pimps his Mojo app: https://github.com/mateu/Moj​ito/blob/master/app/mojo.pl
02:58 crab what does it do?
03:00 mateu things to your ...  uh I mean it is a sort of "web notes" system.
03:02 mateu features: wiki, POD and raw HTML editing support;  edit source and (near) real-time view.  assign documents to an ordered collection; navigate, merge, publicize and epub collections
03:03 mateu for example: http://missoula.org/note/public/co​llection/4e0b2b35d668d75c41000000
03:07 crab nice.
03:11 abra left #mojo
03:18 xaka left #mojo
03:22 mateu crab: thanks.  If  one slaps a /epub in the collection URL above they can get an epub version.  You and tempire just helped me implement that route for the Mojolicious::Lite version of Mojito, thanks you guys.
03:23 * mateu finds calibre pretty nice for epub docs
03:55 tempire it's a great program
03:55 tempire except for how horribly ugly it is
04:03 mateu tempire: I guess I'm glad I haven't looked at the innards yet :P
04:12 * mateu notices the big tar file is mostly due to translations
04:13 mateu hmm.. translation list is impressive
04:40 garu sri++ # case sensitivity section
04:40 garu sri: I like it, but I think it'd be clearer if the examples showed what would work and what would fail
04:40 garu let me spawn a quick example
04:52 garu https://gist.github.com/1066587
04:52 garu sri: ^^ something like that (but not necessarily that :)
04:54 perlrocks Twitter: "@ Zumipon @ server where it can also be used in so if you just upload okmton80 Mojolicious" (ja) --perlcodesample http://twitter.com/perlcodesa​mple/status/88470864592502785
05:07 koban joined #mojo
05:35 Alias left #mojo
05:46 xantus[] .o/
06:19 non joined #mojo
06:19 non left #mojo
06:25 perlrocks Twitter: "It is a nice whiff of ruby ​​framework mojolicious." (ja) --sowawa http://twitter.com/sowawa/status/88493642771202048
06:25 perlrocks Twitter: "I just do not burn and my eyes and monja What I always look Makutsu mojolicious." (ja) --sowawa http://twitter.com/sowawa/status/88493732839694336
06:26 perlrocks Twitter: "... This is sick! RT @ sowawa: that I not only me but my eyes and monja much as I look Makutsu What mojolicious." (ja) --ukayare http://twitter.com/ukayare​/status/88494010800414720
06:36 cosmincx joined #mojo
06:52 fhelmber_ joined #mojo
06:52 mfridh joined #mojo
06:53 perlrocks Twitter: "/ Mojolicious reference to describe the submit button - http://t.co/tZFSqcs Introduction to Perl with sample code # perl # mojolicious" (ja) --perlcodesample http://twitter.com/perlcodesa​mple/status/88500774707011584
06:54 perlrocks Twitter: "Write submit button / Mojolicious Reference http://t.co/tZFSqcs # perl # mojolicious" (ja) --perlcodesample http://twitter.com/perlcodesa​mple/status/88500944077205504
06:55 perlrocks Twitter: "Mojolicious:: Guides:: Cookbook - GitHub http://htn.to/5vage8" (ja) --memememomo http://twitter.com/memememo​mo/status/88501262458437632
07:00 perlrocks Twitter: "mojolicious:: lite - super convenient framework. Now under development website - a real pleasure! ))" (ru) --F_ili_n http://twitter.com/F_ili_n​/status/88502561983823872
07:00 perlrocks Twitter: "/ Mojolicious reference that describes a text field - http://t.co/RqVIdYW Introduction to Perl with sample code # perl # mojolicious" (ja) --perlcodesample http://twitter.com/perlcodesa​mple/status/88502616581083136
07:01 perlrocks Twitter: "Wrtie text field / Mojolicious Referece http://t.co/RqVIdYW # perl # mojolicious" (ja) --perlcodesample http://twitter.com/perlcodesa​mple/status/88502790841835521
07:06 perlrocks Twitter: "/ Mojolicious reference to describe the text area - http://t.co/K5XNhsw Introduction to Perl with sample code # perl # mojolicious" (ja) --perlcodesample http://twitter.com/perlcodesa​mple/status/88504144939319296
07:07 perlrocks Twitter: "Write text area / Mojolicious Reference http://t.co/K5XNhsw # perl # mojolicious" (ja) --perlcodesample http://twitter.com/perlcodesa​mple/status/88504311516106752
07:10 perlrocks Twitter: "Perl's recent Mojolicious: I'm watching with the Lite, feels like and easy to use Flask of Python. In their going to be a definitive edition of WAF on Perl." (ja) --nyarla http://twitter.com/nyarla/status/88505136254697472
07:10 perlrocks Twitter: "Http://t.co/Ckj12Ud finished writing the part of the Tag Helper Mojolicious Reference # perl # mojolicious" (ja) --perlcodesample http://twitter.com/perlcodesa​mple/status/88505191770488832
07:24 Alias joined #mojo
07:30 * crab boggles at perlcodesample
07:34 plu left #mojo
07:36 plu joined #mojo
07:36 giwi joined #mojo
07:45 Foxcool joined #mojo
07:51 marcus I am so going to miss all the boggling the google translate goes away.
07:53 crab it's not the translation, in this case.
07:55 crab perlcodesample is systematically documenting what looks like every mojo tag helper with examples.
07:56 perlrocks Twitter: "perlcodesample: / Mojolicious reference to describe the submit button http://bit.ly/r8uJQ2" (ja) --perlironman http://twitter.com/perlironm​an/status/88516660935405569
07:56 perlrocks Twitter: "perlcodesample: / Mojolicious reference to describe the text field http://bit.ly/p6IwB4" (ja) --perlironman http://twitter.com/perlironm​an/status/88516663095468032
07:56 perlrocks Twitter: "perlcodesample: / Mojolicious http://bit.ly/q5TvxI reference to describe the text area" (ja) --perlironman http://twitter.com/perlironm​an/status/88516664177598464
08:03 xantus[] ugh, pointless?
08:08 arthas joined #mojo
08:12 crab xantus; well, i think it's a bit excessive in separate blog posts
08:12 crab but it's not a bad idea. there are many questions about how to use tag helpers.
08:13 sugar joined #mojo
08:19 Alias left #mojo
08:52 eugen joined #mojo
08:53 D4RK-PH0ENiX joined #mojo
08:55 d4rkie left #mojo
09:28 cosmincx left #mojo
09:29 cosmincx joined #mojo
09:32 fmerges joined #mojo
09:47 eugen left #mojo
09:52 jwang left #mojo
09:57 spleenjack joined #mojo
10:53 mikegrb is there any documentation on using hypnotoad with ssl and specifying the certs?
11:05 crab i don't know
11:06 crab but i would recommend against it, because of hard-to-track flakiness in IO::Socket::SSL. i run hypnotoad behind nginx and let the latter handle ssl for me.
11:08 anaio joined #mojo
11:09 crab if that's an option for you (substitute apache+mod_ssl or anything equivalent for nginx), it would be much nicer.
11:11 sri tempire: sounds good
11:16 sh9 joined #mojo
11:16 mikegrb crab: okay, but at that point, why hypnotoad, wouldn't fastcgi or some such be cleaner?
11:16 sri garu: i'm really not a fan of documenting what would fail :S
11:19 anaio left #mojo
11:23 GitHub77 joined #mojo
11:23 GitHub77 [mojo] kraih pushed 1 new commit to master: http://bit.ly/qRzG2R
11:23 GitHub77 [mojo/master] added --listen example for https with custom cert and key - Sebastian Riedel
11:23 GitHub77 left #mojo
11:23 sri mikegrb: that should help in the future
11:23 mikegrb <3
11:24 crab mikegrb: fastcgi is horrible, and most of the adapters suck
11:24 mikegrb ahh
11:24 crab using http is vastly nicer.
11:25 crab in theory you might save some ms by using fastcgi, but since the fastcgi adapters usually don't implement the full fastcgi spec including async/pipelined requests, it doesn't make any difference.
11:26 crab and whatever extra time it takes to transfer http requests is just noise compared to database accesses anyway.
11:26 mikegrb make sense
11:31 GitHub197 joined #mojo
11:31 GitHub197 [mojo] kraih pushed 1 new commit to master: http://bit.ly/pyglCZ
11:31 GitHub197 [mojo/master] better listen examples - Sebastian Riedel
11:31 GitHub197 left #mojo
11:32 sri that place is better though
11:33 sri and i agree with crab on fastcgi
12:20 vel joined #mojo
12:22 mattastrophe left #mojo
12:33 xaka joined #mojo
13:22 mattastrophe joined #mojo
13:28 sri tempire: maybe discussing helpers before conditions might be a good idea
13:32 anaio joined #mojo
13:32 sri but i guess you want to wrap up basic routing with this one
13:32 sri makes sense too
13:33 sri better ignore me and do your thing :)
13:33 elb0w sri you see this xoria theme?
13:33 elb0w pretty nice
13:33 sri nope, link?
13:34 elb0w http://www.vim.org/scripts​/script.php?script_id=2140
13:37 elb0w argh i cant find a theme i like right now
13:37 elb0w so obnoxious
13:43 sri not bad
13:43 * sri sticks with twilight though
13:45 elb0w yeah i dunno why Im so hellbent on changing it right now
13:46 sri i sometimes switch to monokai when i need a little change
13:46 elb0w http://www.vim.org/scripts​/script.php?script_id=2776
13:46 elb0w lol
13:46 sri http://www.monokai.nl/blog/200​6/07/15/textmate-color-theme/
13:47 elb0w yeah I use that sometimes
13:47 elb0w too many colors on perl though
13:48 sri but much more importantly... do we get lion today?
13:49 elb0w https://gist.github.com/1067260
13:49 elb0w not sure
13:50 elb0w scared to update due to all my pirated shit
13:50 elb0w haha
13:50 giwi left #mojo
13:51 tabbi joined #mojo
13:51 tabbi left #mojo
13:51 sri https://gist.github.com/1047738 # my twilight port
13:51 elb0w yeah I have it in my repo
13:51 elb0w haha
13:51 elb0w https://github.com/gtsafas/Vim/blob​/master/.vim/colors/kraihlight.vim
13:51 sri wonder where the more pastel one went
13:52 sri the one tempire used in the screencast
13:53 sri in case that is mine... i've not seen it for so long i barely remember :S
13:53 elb0w you gave me that like last month
13:53 elb0w lol
13:54 sri that's the new one
13:55 sri https://gist.github.com/918201 # this could be it
14:13 elb0w linkin this mustang theme
14:17 koban left #mojo
14:18 koban joined #mojo
14:31 abra joined #mojo
14:38 ispy_ joined #mojo
14:40 perlrocks Twitter: "Mojolicious Mojocasts: http://mojocasts.com/ <- Want more :)" --freekey http://twitter.com/freekey​/status/88618355665285122
14:42 kaare joined #mojo
14:42 * sri wonders if xantus made progress with the ev backend
14:44 elb0w did you submit mojocasts to HN?
14:44 sri yes, but the timing was awful
14:45 elb0w do it again
14:45 elb0w ill get my friends to upvote
14:45 elb0w what is morbo?
14:45 purl i guess morbo is the new, reloading development server for mojolicious
14:45 arpadszasz joined #mojo
14:45 elb0w got rid of hypno?
14:45 sri nono
14:45 sri morbo = dev, hypnotoad = production
14:46 elb0w ah ok
14:46 elb0w what does daemon run it as?
14:46 sri added it because --reload sucked
14:46 elb0w oh cool
14:46 elb0w I see whaat you did there
14:46 sri morbo is a real restarter, after every change you get a fresh process
14:46 elb0w yeah thats awesome
14:47 perlrocks Twitter: "+1 RT @freekey: Mojolicious Mojocasts: http://j.mp/r8wJgi <- Want more :)" --miquelruiz http://twitter.com/miquelru​iz/status/88620157882212352
14:47 elb0w wish there were more perl products like mojo
14:55 elb0w I dont get how HN works
14:55 elb0w how do some of these get to the top with like no votes
14:55 sri quite sure they are curated
14:55 sri and most get on the radar based on voting spikes
14:56 elb0w must be
14:56 sri usually on the first half of the new page
14:56 sri that's my observation at least
14:58 koban left #mojo
15:05 GabrielVieira joined #mojo
15:10 mattp left #mojo
15:11 mmp joined #mojo
15:12 mmp left #mojo
15:13 mmp joined #mojo
15:14 elb0w I like this theme, http://elbowrage.com/sc/mustang.png
15:14 elb0w very clean
15:15 sri too green
15:15 mmp left #mojo
15:16 elb0w GREEN WITH ENVY
15:16 elb0w purl: amirite?
15:16 purl elb0w: i haven't a clue
15:16 mmp joined #mojo
15:17 elb0w :(
15:21 tempire sri: I thought about doing helpers, but helpers are an uber powerful thing.  I'm going to wrap up basics and then do one on helpers, which will lead into plugins and authentication.
15:22 sri tempire: makes sense
15:22 purl makes sense is http://xrl.us/bjq3kq
15:22 tempire maybe the one on helpers will be a good one to submit to hackernews again.  Then we can coordinate an upvote spike.
15:23 * tempire iz hackin ur mediaz
15:23 sri all should be submitted, to improve the odds :)
15:23 tempire you don't think it would be too much?
15:23 sri you also need a bit of luck
15:24 sri not sure actually, i've not done a screencast series yet ;p
15:24 ispy_ left #mojo
15:25 xaka sri: is there any change to add "watch" to ioloop like a for iowatcher?
15:25 xaka very useful stuff especially in a tests
15:25 sri xaka: why?
15:25 xaka for the same reason why it's in a iowatcher
15:25 tempire I imagine that if railscasts submitted *every* episode to hackernews, people would stop caring and no longer click.
15:25 sri xaka: $ioloop->iowatcher->watch
15:26 tempire though maybe that's because railscasts are really popular, and it's just an accepted thing now.
15:26 sri it's one and the same
15:26 sri ioloop *is* iowatcher now
15:26 xaka oh, k
15:27 sri tempire: i have no idea how railscasts started
15:28 tempire I'm just speaking theoretically - to be sure, they started in a different era
15:28 tempire 5 years ago!
15:28 sri generally i tend towards Perl needs to be more visible though, and all publicity is good publicity
15:28 ispy_ joined #mojo
15:30 sri well, i will for sure submit every single one to reddit if you don't do it ;p
15:30 tempire I'm not a reddit user, so that's on you.
15:31 elb0w yeah I agree, I think every module on cpan needs a video
15:31 elb0w sad how perl is phasing out in startups
15:31 * tempire christens sri as the official mojocast reddit product marketer
15:31 elb0w all python/ruby/php ERLANG
15:31 * tempire sprinkles glitter
15:32 elb0w tired of erlang
15:32 sri tempire: not such a smart decision actually, i'm rather unpopular on reddit
15:32 tempire lulz
15:32 tempire you're not popular anywhere.  I still love you :)
15:32 sri \o/
15:32 * sri hugs tempire
15:32 * sri cries a little
15:33 sri reddit is special though
15:33 xaka left #mojo
15:33 tempire reddit makes my soul hurt
15:33 tempire the bulk of the comments make me wonder at the usefulness of humanity
15:34 sri haha
15:34 sri that's reddit
15:35 sri best to play an underdog on reddit
15:35 tempire hmm
15:35 tempire I do know a reddit user that rarely posts anything
15:36 tempire I could get him to do it
15:37 sri or you just create an alter ego and post yourself *cough*
15:37 alnewkirk joined #mojo
15:37 tempire ugh
15:37 diegok tempire++ your voice sounds really nice/pro on the video.
15:38 sri can you believe he recorded it with the built in macbook mic?
15:38 * tempire hugs diegok
15:38 anaio left #mojo
15:38 alnewkirk is now known as anaio
15:39 tempire Apple: making amateurs seem competent since 1998
15:39 * sri just noticed he doesn't even know where the mic actually is on his macbook
15:40 tempire I can't find it on the new one.  The docs say it's 'under the left speaker grill'
15:40 diegok tempire: just read the reddit comments and I can't disagree more with the one that criticizes the initial mixing. I loved it... way too newbie oriented for me, but I've recomended to a lot of rails friends!
15:40 tempire maybe it's actually *underneath* the aluminum
15:40 vel left #mojo
15:41 sri the 13" has some tiny holes near the display, maybe it's there
15:41 diegok tempire: it's on the left side just over the esc key
15:41 diegok ^ those
15:41 tempire there's no holes on the 2011 15"
15:41 diegok hm.. mine is 2011 13''
15:45 diegok sri: any plans on giving mojo::ua + mojo::dom form objects some method to fill & submit?
15:46 sri no plans
15:46 purl rumour has it no plans is ok with us
15:47 sri sounds more like a meta project combining the two
15:48 sri then again we now have the Mojo::Transactor abstraction
15:48 sri maybe if it fits in there...
15:49 diegok sri: yup, slowly I'm liking that idea. Now using this o several research scripts: http://pastebin.com/BQNVepjX
15:53 diegok I was thinking on something like: my $tx = $dom->at('form#id')->submit({ name => 'value', }) or $form->set( name => 'value' )->set( locale => 'es' )->submit
15:53 elb0w sri: do a websocket cast imo
15:54 diegok I'll check M:Transactor to pick ideas.
15:54 xaka joined #mojo
15:55 sri diegok: sounds more like a Mojo::Mechanize :)
15:56 diegok sri: yes!
15:56 diegok sri: I'm probably very used to mech :)
15:57 giwi joined #mojo
15:58 diegok sri: but a Mojo::Mechanize would be like a mech agent with tabs (in async mode) :-)
15:59 perlrocks Twitter: "Mojolicious Mojocasts http://htn.to/s6tsu8" (ja) --jamadam http://twitter.com/jamadam​/status/88638132504891392
15:59 diegok I just love too much Mojo::Dom :)
16:01 abra left #mojo
16:13 abra joined #mojo
16:21 anaio left #mojo
16:22 mmp left #mojo
16:27 sri oooh
16:27 sri a good comment on reddit
16:27 sri we should be recommending 5.12 now
16:28 sri since 5.10 is not supported since 5.14 either
16:30 tempire yeah, my wording was unclear
16:32 GitHub48 joined #mojo
16:32 GitHub48 [mojo] kraih pushed 1 new commit to master: http://bit.ly/n7Gqco
16:32 GitHub48 [mojo/master] recommend Perl 5.12+ - Sebastian Riedel
16:32 GitHub48 left #mojo
16:38 fmerges left #mojo
16:43 elb0w link to reddit?
16:43 sri http://www.reddit.com/r/perl/comment​s/igjrg/mojocast_1_fun_with_clouds/
16:45 elb0w funny
16:45 elb0w python has updates from hours ago
16:45 elb0w perl is like 2 days
16:45 elb0w 3 days
16:45 elb0w haha
16:47 sri python is huge on reddit
16:47 sri after all reddit is built with python
16:48 sugar left #mojo
16:50 elb0w yeah, so tempting to go full python
16:51 elb0w working in finance I can pretty much stay in perl
16:51 elb0w still pretty strong here
16:51 elb0w a lot of legacy
16:51 amoore joined #mojo
16:52 sri python is also quite boring
16:52 purl okay, sri.
16:52 elb0w hows MojoX::Redis ?
16:52 * sri pats purl
16:52 * purl stabs
16:53 sri i like my main language to enable my creativity, not to suppress it
16:53 tempire screw python
16:53 tempire go lisp
16:53 tempire perl is too mainstream
16:53 elb0w f that
16:53 elb0w haskell
16:53 tempire haskell is a poser
16:53 sri too many academics
16:53 tempire lisp is the one true language
16:54 tempire ALL HAIL MCCARTHY
16:54 elb0w I started doing it
16:54 elb0w then was like oh, I hate math
16:54 elb0w why am I learning this
16:54 elb0w haha
16:54 sri Scala has this Perl6 feel
16:55 tempire math!?
16:55 purl -1
16:55 tempire http://www.youtube.com/watch?v=9QBv2CFTSWU
16:56 perlrocks Twitter: "Mojolicious Mojocasts http://bit.ly/oXhtwc" (ja) --wPerlnews http://twitter.com/wPerlnew​s/status/88652442140549122
16:56 sri fake!
16:56 elb0w lol
16:56 sri i can tell by the pixels
16:57 elb0w haha miss vermonts the best
16:57 elb0w just so angry
16:59 elb0w what is it mobo?
16:59 tempire morbo?
16:59 purl morbo is the new, reloading development server for mojolicious
16:59 tempire purl++
16:59 elb0w oh hmm, thought I was up to date
17:00 elb0w bout to set a cron to just update mojo rate u guys go
17:07 sri should slow down a bit now
17:07 sri since i'll be spending more time on the mongodb driver
17:12 elb0w if I want to share something accross all the code what do I use again the stash?
17:12 elb0w nvm
17:16 perlrocks Twitter: "Author Mojo slowly moved from the "short and perl 5.8.8" to "recommend Perl 5.12 +". Looks hankering for 5.14ogo features ..." (ru) --gosha_bugov http://twitter.com/gosha_bug​ov/status/88657641278148608
17:24 perlrocks Twitter: "We are recommending #perl 5.12+ for #mojolicious now, since 5.10 is no longer getting updated by the community. http://t.co/Za0rLNO" --kraih http://twitter.com/kraih/status/88659574961348608
17:27 perlrocks Twitter: "Recommended changes to the above mojolicious Perl 5.12: kraih / mojo - GitHub http://bit.ly/o7Joeg" (ja) --deathgoraku http://twitter.com/deathgora​ku/status/88660266568515585
17:27 GabrielVieira left #mojo
17:27 GabrielVieira joined #mojo
17:28 cosmincx left #mojo
17:34 spleenjack left #mojo
17:40 tempire +1, fb like, tweet button
17:40 tempire is there anything else people expect these days?
17:42 elb0w deal sites?
17:49 mikegrb is the source for failraptor.png available? I'd love to make a derivative for our internal mojo app
17:52 sri mikegrb: https://github.com/kraih/perl-raptor
17:54 dekimsey joined #mojo
17:55 elb0w How do I execute a HSET with MojoX::Redis ?
17:57 elb0w mail <systemChrome>none</systemChrome>
17:57 elb0w whoops
17:57 elb0w ugh
17:57 dwierenga left #mojo
17:57 sh9 left #mojo
18:09 anaio joined #mojo
18:15 tempire hot deployment with hypnotoad is really awesome
18:15 tempire it just works
18:15 tempire sri: what's stopping you from making a hypnotoad appname reload command?
18:20 sri nothing i guess
18:23 sri after loading the configuration we would know the pid file
18:23 sri in fact it would be more secure since it makes sure that the application doesn't crash
18:24 sri no restart attempt if it doesn't load
18:24 sri what would the command be?
18:24 elb0w if I am storing a JSON strong in redis and pull it out with the intentions of printing it on Mojo, is there any reason to decode it then render it as json or can I just render it as text?
18:24 sri hypnotoad --hot myapp.pl
18:25 elb0w json string*
18:25 sri never render bytes as text
18:25 sri see documentation for render_text
18:26 tempire "hypnotoad appname reload"
18:26 sri needs to e a flag
18:26 sri *+b
18:26 tempire hypnotoad appname -r ?
18:27 sri it's like starting the app but allowing it to hot restart if possible
18:27 tempire ah
18:27 sri "start this and if possible with zero downtime"
18:27 tempire would it hurt to make that the default behavior?
18:28 sri hmm
18:28 sri interesting thought
18:28 tempire and you could make a "hypnotoad appname -s" for just reporting the status
18:28 sri we can kill 0 to check if the old process is still alive
18:28 metaperl joined #mojo
18:31 metaperl in /join #moose
18:32 * sri glues antlers to his head
18:32 tempire haz sri => (isa => 'Robot');
18:38 arpadszasz left #mojo
18:40 sri tempire++
18:40 sri really good idea
18:41 sri it's about 5 lines of code for automatic hot deployment if possible
18:42 ispy_ left #mojo
18:44 sri $ hypnotoad hello.pl
18:44 sri Initiating hot deployment for Hypnotoad server 31841.
18:44 sri if its not running a normal startup will go through
18:46 sri pid in message yes or no?
18:46 tempire yes
18:47 ispy_ joined #mojo
18:47 tempire I also suggest an ascii rendering of the hypnotoad if the -a switch is provided
19:09 dekimsey left #mojo
19:11 dekimsey joined #mojo
19:23 giwi left #mojo
19:24 GitHub134 joined #mojo
19:24 GitHub134 [mojo] kraih pushed 1 new commit to master: http://bit.ly/n3xxQT
19:24 GitHub134 [mojo/master] made hot deployment with Hypnotoad even easier - Sebastian Riedel
19:24 GitHub134 left #mojo
19:26 giwi joined #mojo
19:26 sri tempire: please test
19:37 perlrocks Twitter: "YAPP # 8: World News Perl for June http://j.mp/pUW3Iw # perl # yapp # perl6 # git # github # phenona # activestate # cpan # ubic # dropbox # Mojolicious" (ru) --yapp_ru http://twitter.com/yapp_ru​/status/88693109180997632
19:38 sri gonna rewrite the hypnotoad tests while i'm at it anyway :)
19:44 mikegrb sri: http://thegrebs.com/~micha​el/sshot/hungryraptor.png <3
19:46 sri lol
19:46 sri what have you done with his teeth? :O
19:47 mikegrb yeah I didn't see your link to the repo in time
19:47 mikegrb that's the failraptor.png
19:47 mikegrb he's displayed on the same blue though so looks okay
19:48 mikegrb will remake the image from the svg when I get some toits
19:52 amoore left #mojo
19:59 tempire linode broke the raptor's teeth
20:00 mikegrb ja
20:01 dekimsey left #mojo
20:02 tabbi joined #mojo
20:02 tabbi left #mojo
20:07 tempire works like a charm
20:07 tempire this is awesome
20:07 tempire small thing, but great stride in usability
20:07 mattp joined #mojo
20:16 GitHub62 joined #mojo
20:16 GitHub62 [mojo] kraih pushed 1 new commit to master: http://bit.ly/qBM1Pw
20:16 GitHub62 [mojo/master] new Hypnotoad tests - Sebastian Riedel
20:16 GitHub62 left #mojo
20:19 tempire anyone know the status of the parrot project?
20:24 perlrocks Twitter: "Hot deployment with #mojolicious and hypnotoad just got even easier. :) http://t.co/ElXncLO #perl" --kraih http://twitter.com/kraih/status/88704773435564032
20:28 anaio left #mojo
20:28 sri tempire: my bet would be on "currently being rewritten from scratch"
20:28 sri that's pretty much always true for perl6 projects
20:35 tempire it seems PIR is supported, and the embedded API
20:35 ispy_ left #mojo
20:35 tempire which I presume to mean don't mess with psdm
20:35 ispy_ joined #mojo
20:35 tempire *pasm
20:36 ispy_ left #mojo
20:38 ispy_ joined #mojo
20:42 bpaluch joined #mojo
20:43 bpaluch silly question: if I need to access the body of a http POST, how do I do that with with mojlicious lite? I tried $self->content to no avail?
20:44 bpaluch and if there is an easier way of dealing with json bodys, please let me know.
20:44 d4rkie joined #mojo
20:45 sri http://mojolicio.us/perldoc/Mojo/Message#body
20:45 sri http://mojolicio.us/perldoc/Mojo/Message#json
20:47 sri http://mojolicio.us/perldoc/Mojolicious/Lite#HTTP # and that one should have led you to the two above
20:47 D4RK-PH0ENiX left #mojo
20:47 sri http://mojolicio.us/perldo​c/Mojolicious/Lite#Routes # or this one
20:48 bpaluch got it
20:48 bpaluch so basically $self->res->json should give me the object I'm looking for
20:49 sri req not res
20:49 bpaluch I was missing where the Message object was in lite
20:49 bpaluch ah right
20:49 bpaluch thanks!
21:13 kaare left #mojo
21:33 ispy_ left #mojo
21:41 Foxcool left #mojo
21:47 amf joined #mojo
21:48 amf i have a plugin (before_render) that i'm stashing data in, but when it gets to my controller the stash does not contain the data. is there a better way to accomplish this?
21:53 perlrocks Twitter: "Funny, Michael Schilli, the author of the last #mojolicious article is also the author of the #perl book i started programming with. :)" --kraih http://twitter.com/kraih/status/88727276669255681
21:54 sri amf: first of all, why are you using before_render?
21:54 amf i need to alter some of the data before it gets sent off to different controllers
21:55 amf this seemed like the right way to do it (instead of having a common module that each controller would call one of its functions)
21:56 sri it's very wrong, that's why i'm interested in how you made that conclusion
21:56 sri did you read the lite tutorial?
21:57 amf yes. i may have thought that stash meant persistent data, but that is not the case
21:57 sri you might want to reread the lite tutorial
21:57 sri it should have all the information you need
21:58 amf and my thinking was "if you can save/alter header data, why cant you do that with arbitrary data"
21:58 sri i'm saying that because you've misunderstood a few fundamental concepts
21:58 sri before_render is a very experimental plugin hook for very advanced mojolicious extensions
21:59 sri what you want is prolly just "under"
21:59 amf i actually wasnt 100% sure what that was
21:59 sri don't use hooks unless you are absolutely certain it is the right thing to do
22:00 amf but the lite guide sheds light on it
22:00 sri their main use case are extensions to mojolicious
22:11 amf sri: moved all the common plugin code into the controller. things are working much better now. thanks for the help. even more thanks for such an awesome framework. youve saved me lots of frustration and unnecessary work :)
22:13 sri glad you like it :)
22:18 arthas left #mojo
22:25 marty left #mojo
22:26 marty joined #mojo
22:35 Foxcool joined #mojo
22:44 metaperl left #mojo
22:50 Foxcool left #mojo
23:14 perlrocks Twitter: "ort ... @ kraih: We are recommending # perl 5.12 + for # mojolicious now, since 5.10 is no longer getting updated by the community." (ja) --mnkz51 http://twitter.com/mnkz51/status/88747714862526464
23:17 perlrocks Twitter: "orz ... RT @ kraih: We are recommending # perl 5.12 + for # mojolicious now, since 5.10 is no longer getting updated by the community." (ja) --mnkz51 http://twitter.com/mnkz51/status/88748317797920768
23:20 d4rkie left #mojo
23:20 d4rkie joined #mojo
23:22 GitHub58 joined #mojo
23:22 GitHub58 [mojo] kraih pushed 1 new commit to master: http://bit.ly/mTDXf8
23:22 GitHub58 [mojo/master] added --stop option to Hypnotoad - Sebastian Riedel
23:22 GitHub58 left #mojo
23:23 sri it's in line with --test
23:25 tempire sweet
23:27 rhaen hep!
23:27 rhaen goot morning.
23:27 rhaen err good morning.
23:27 sri thought about "hypnotoad myapp.pl stop/test" but since we don't have start/restart...
23:28 sri o/
23:28 rhaen Any suggestions for a webload testing tool - (opensource)?
23:28 rhaen or should I try to build a testsuite based on Mojo::UserAgent?
23:28 sri many professionals like httperf
23:28 rhaen really? still httperf?
23:28 tempire are the hypnotoad tests supposed to take a long time?
23:29 sri simple minded folks still use ab
23:29 sri tempire: around 10 seconds yes
23:30 rhaen sri: and jmeter for user interaction simulations?
23:30 tempire been sitting for 20+ seconds
23:30 sri then something might have crashed
23:30 sri and you'll end up with zombie processes
23:31 sri better tests welcome, but i can't really think of anything
23:33 sri TEST_HYPNOTOAD=1 prove -l -v t/mojo/hypnotoad.t
23:33 sri that one takes 10 seconds here
23:39 tempire it's the HARNESS_OPTIONS=j5 that kills it during a make test
23:40 tempire the switches itself works like a charm
23:40 tempire new features tested on mojocasts.com!
23:41 sri actually, it works fine with j5 here
23:41 tempire with make test or prove?
23:41 tempire prove works ok for me with j5
23:41 tempire make test does not
23:41 sri make test
23:41 purl make test is, like, chugging along fine in OpenBSD
23:43 sri damn, found a bug
23:47 mattastrophe left #mojo

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