Camelia, the Perl 6 bug

IRC log for #mojo, 2010-12-13

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

All times shown according to UTC.

Time Nick Message
00:00 Akron sri: In Cookbook, line 288 - porotocol -> protocol. It's regularly not THAT broken.
00:02 sri :)
00:02 GitHub167 joined #mojo
00:02 GitHub167 mojo: master Sebastian Riedel * c6dea43 (1 files in 1 dirs): fixed typo - http://bit.ly/ejWmYZ
00:02 GitHub167 left #mojo
00:13 MojoGuest589 joined #mojo
00:13 MojoGuest589 From: http://www.google.com/search?sourceid=c​hrome&ie=UTF-8&q=websockets+irc (1 hits)
00:13 MojoGuest589 left #mojo
00:15 MojoGuest802 joined #mojo
00:15 MojoGuest802 From: http://www.google.com/search?sourceid=c​hrome&ie=UTF-8&q=websockets+irc (2 hits)
00:15 MojoGuest802 left #mojo
00:29 perlrocks Twitter: "Shoutout to @kraih, I developed my first webapp over the last few days. I used #mojolicious. Not nearly done yet, but a lot of learning." --ericrost http://twitter.com/ericros​t/status/14114745430839296
00:54 chansen left #mojo
01:18 chansen joined #mojo
01:31 chansen left #mojo
01:37 GitHub110 joined #mojo
01:37 GitHub110 mojo: master Sebastian Riedel * fa88b8f (2 files in 1 dirs): no more black clouds - http://bit.ly/dMYIT7
01:37 GitHub110 left #mojo
01:37 sri :)
01:37 sri tempire: maybe thats more your style
01:41 sri maybe still a bit too grey
01:44 chansen joined #mojo
01:49 crab hmm, the exception template at head is seriously screwed up for me
01:51 GitHub50 joined #mojo
01:51 GitHub50 mojo: master Sebastian Riedel * d6ff3fa (1 files in 1 dirs): cleanup - http://bit.ly/gles1t
01:51 GitHub50 left #mojo
01:52 sri crab: browser?
01:54 Akron left #mojo
01:57 GitHub3 joined #mojo
01:57 GitHub3 mojo: master Sebastian Riedel * 2935854 (1 files in 1 dirs): more cleanup - http://bit.ly/dVWF4X
01:57 GitHub3 left #mojo
01:59 crab sri: firefox, it's ok in chrome i see
01:59 sri version?
02:00 crab 3.6.13
02:00 sri lol
02:00 sri ancient...
02:00 sri the page uses html5 tags
02:02 ispeak joined #mojo
02:02 sri thats means firefox 4
02:02 crab ancient? it's what's offered on mozilla's download page for firefox
02:02 sri *-s
02:02 sri get 4
02:03 sri firefox 3 sucks big time
02:03 sri supports nothing
02:04 sri really hope firefox 4 ships with chrome like auto update
02:05 sri such a big step forwards to force people to update
02:05 Alias Right up until every browser explodes :)
02:05 omega ff4 is still several betas away from release though
02:05 Alias Good for some, not always so good for everyone
02:06 sri ie6
02:06 * sri won
02:07 sri that problem should never ever happen again
02:09 marty I'm trying to figure out helpers.  Does anyone have a link to an example of how to write a helper?
02:10 sri see plugins
02:10 marty I've been examining bootylicous and others and I am close.
02:10 sri lots in there
02:10 marty Yep. I've been reading that.  Lemme go look again.
02:10 marty I just keep getting "Can't call method "test_helper" without a package or object reference"
02:10 marty so I'm sure it's just in my namesapace (i guess)
02:11 sri in your template?
02:11 marty Yep.
02:11 sri then you forgot to register it
02:12 sri app->helper(test_helper => sub { die 'eureka!' });
02:12 marty Ahhh, thank you, lemme go test
02:13 sri i should prolly kick the session example out of the tutorial and add a helper recipe
02:13 ispeak left #mojo
02:13 sri since sessions are covered very well by the growing guide
02:15 marty Most of the documentation is really really clear and easy to read.  The helpers and plugins were the first to confuse me.
02:15 marty <--- Is easily confused.  :)
02:15 sri plugins will always be tricky i guess
02:15 sri but helpers could really use a good recipe
02:17 marty Yes, I'm sure it's not that difficult but a recipie can sure do a lot.
02:18 marty app->helper(test_helper => sub { die 'eureka!' }); did not work so I must be doing something really wrong.  I'm going to go read the plugins doc again
02:19 sri did you add that to myapp.pl?
02:20 sri in a plugin it would use $app (from @_ inside sub register)
02:21 marty I actually added it to my myapp/helpers.pm    And I have a use myapp::helpers;  in myapp.pm
02:21 sri ohoh
02:21 sri very wrong
02:21 marty Ooppps
02:21 marty <------- shaking head
02:21 sri plugins are registered
02:22 sri app->plugin('fooplugin')
02:22 sri (for Mojolicious::Plugin::Fooplugin)
02:22 marty Ahhhhhh
02:22 marty Ok, the lights are starting to come on
02:22 sri :)
02:22 marty Thank you!  I'll go give it a try
02:22 sri that part is not well documented though :/
02:23 marty If I figure it out I'll write a recipe
02:24 sri \o/
02:43 ashleydev_logbot left #mojo
02:59 tempire I love the curl -L cpanmin.us | perl - http://latest.mojolicio.us one liner.
03:00 daviddelikat left #mojo
03:01 tempire light cloud is better.  seems happy.
03:01 tempire happy little cloud.
03:05 daviddelikat joined #mojo
03:06 tempire I'm a fan of the stack trace, if for no other reason than to help users know how mojolicious works.
03:06 tempire It might be neat to href to that line in the github source.
03:07 tempire I'm not entirely sure how practically useful that would be.
03:07 tempire But it would be neat.
03:14 sri heh
03:16 sri that would require a list of all core modules
03:17 tempire hard coded list!
03:17 tempire eck.
03:23 ashleydev_logbot joined #mojo
03:38 omega anyone know who ashleydev_logbot is?
03:39 ashleydev_logbot left #mojo
03:40 ashleydev_logbot joined #mojo
03:55 achromic left #mojo
04:03 tl joined #mojo
04:05 tholen42 left #mojo
04:26 GitHub180 joined #mojo
04:26 GitHub180 mojo: master Sebastian Riedel * 4edf209 (1 files in 1 dirs): removed second header - http://bit.ly/hfJES1
04:26 GitHub180 left #mojo
04:35 perlrocks Twitter: "Mojolicious Nau." (ja) --yukimura_anzu http://twitter.com/yukimura_a​nzu/status/14176552069636096
04:55 perlrocks Twitter: "Added mini logo and favicon to #mojolicious. :) http://bit.ly/fivwmz #perl" --kraih http://twitter.com/kraih/status/14181529982865409
05:29 yakudzo left #mojo
05:41 metaperl is there an auto-crud / REST app for Mojo? what ORM do mojo users use?
05:41 sri we are mostly nosql fans
05:42 metaperl is this competitive with ruby on rails in terms of speed of development?
05:42 sri always depends what you're doing
05:42 metaperl nosql... wow... i have issues with the lack of structure in nosql datastores ... all my years of relational training down the tubes :)
05:42 metaperl it scares me to not see a schema diagram
05:42 sri key/value stores forever!
05:42 metaperl sri: re nosql, which datastore? redis? mongodb?
05:43 sri for me it is riak
05:43 metaperl wow, never heard of it
05:43 * metaperl googles
05:43 sri but everybody has their own favorite around here
05:43 metaperl for large apps, i think referential integrity is essential
05:43 sri redis and couchdb are popular too
05:43 metaperl and they all lack referential integrity
05:44 metaperl right?
05:44 metaperl and I guess itwould be harder to find auto-CRUD for nosql databases
05:45 sri depends on your mindset
05:45 sri "large apps" is relative too
05:45 sri all the truly big apps run on nosql
05:47 sri facebook runs on cassandra
05:48 sri digg too
05:48 sri foursquare on mongodb
05:49 sri linkedin was voldemort i think
05:50 Alias But you need a truly stupendous app to really justify it most of the time
05:50 Alias By which time you've got the human resources to migrate from something more normal
05:50 sri "normal" is a relative term
05:50 Alias SQL, lets say
05:50 * metaperl watches a riak video - http://vimeo.com/6973519  ... I saw the word "risk" instead of "riak" as I watch watching it :)
05:55 sri mongodb is pretty much the mysql in the nosql world i think
05:59 metaperl I dont know what that statement implies - """mongodb is pretty much the mysql in the nosql world i think""" - there are a lot of things I can think about mysql ... why innodb is not the default storage engine, owned by oracle, most popular but not the best
06:01 sri most mainstream
06:04 metaperl http://en.wikipedia.org/wiki/NoSQL#Eventually.E2.80.90consistent_key.E2.80.90value_store   - "Eventually‐consistent key‐value store" - so they get acid transactions for things which must stay in sync but without transactions I take it... hmm
06:04 metaperl i better find a riak channel to chat on this stuff
06:11 kaare joined #mojo
06:15 koban joined #mojo
06:16 metaperl A catalyst-mojo comparison document would be nice --- for instance, how do you emulate chained paths in Mojo?
06:22 achromic joined #mojo
06:26 alnewkirk left #mojo
06:31 metaperl It looks like the line between content management framework (Drupal) and web app package (Mojo) will be thinner if a document-oriented database is easy to use from Perl .... fascinating
06:31 * metaperl heads to sleep
06:32 marcus I've been using mongodb lately
06:33 marcus I like it, partly because it has good perl drivers
06:33 marcus let's me hack together a simple webservice in a few lines of a lite app
06:34 marcus sri: starting to look very slick with the new exception template and faviocn! :)
06:35 sri :)
06:35 marcus of all the things I lost, I miss my mind the most.
06:36 * marcus turned 34 today.
06:36 arpadszasz left #mojo
06:48 sri congrats old man
06:55 sri btw. is catalyst still using my old horrible debug screen?
06:59 marcus sri: yes
07:00 sri lol
07:00 marcus and it's still hardcoded into the engine, iirc.
07:01 marcus http://cpansearch.perl.org/src/BOBTFISH/Cata​lyst-Runtime-5.80029/lib/Catalyst/Engine.pm
07:01 marcus there we go
07:01 marcus look at finalize_error :)
07:06 perlrocks Twitter: "And this is how stacktraces look now in #mojolicious. :) http://bit.ly/fedSqu #perl" --kraih http://twitter.com/kraih/status/14214442967367680
07:06 sri wow
07:09 marcus sexy time!
07:10 sri using the templates is actually more fun than watching, switching between normal template view and compiled perl is just awesome
07:10 sri s/the template/the exception template/
07:11 sri it needs a catchier name... like debug screen :S
07:11 omega "YOUR SHIT CRASHED, BUT DO NOT WORRY; CAPTAIN DEBUG TO THE RESCUE!"
07:11 omega bood name
07:11 omega good
07:12 * sri likes CAPTAIN DEBUG
07:12 marcus Almost like File Commander
07:12 marcus omega: back in the cold?
07:12 sri does he have a sidekick?
07:12 omega marcus: nah, flight leaves bangkok in 10 hours or so
07:12 sri STACKTRACE BOY maybe?
07:12 marcus sri: KERNEL PANIC
07:13 Alias_ left #mojo
07:13 omega no, KERNEL PANIC is the evil bad guy
07:13 sri that would be his nemesis
07:13 * sri nods
07:13 marcus MAJOR MALFUNCTION?
07:13 marcus more badguys
07:13 omega haha
07:13 omega should do a comic!
07:14 marcus sri: btw, the stack trace looks a bit fugly here
07:14 sri get a proper browser!
07:14 marcus I guess it's meant to look like that
07:14 marcus it's just it jumps all over the place
07:14 marcus I use chrome in full screen
07:15 sri that sounds intentional
07:15 marcus it probably is
07:15 marcus http://nordaaker.com/docs/skitch/Mojo​licious_Exception-20101213-081511.png
07:15 marcus just not very visually pleasing
07:15 marcus looks like a prison costume
07:15 sri :D
07:15 omega it's MAJOR MALFUNCTION behind bars AT LAST!
07:16 sri i think thats about as visually pleasing as it gets for stacktraces, but i'm open for suggestions
07:18 sri make mockup and prove that it can look better and i'll change it in a heartbeat ;)
07:18 omega TRACY STACKER could be the sie kick
07:19 sri !
07:19 omega or STACY TRACKRACE
07:20 marcus http://nordaaker.com/docs/skitch/Mojo​licious_Exception-20101213-082016.png SEXY TIME
07:20 marcus actually, this is pretty instructional
07:20 marcus in understanding .ep
07:21 marcus sri: I will use my minions once they arrive at our HQ.
07:21 marcus after all it's my birthday, they have to do my bidding.
07:24 sri especially since line numbers always match in both versions
07:24 marcus sri: yupp
07:25 marcus sri: planning on a prettier welcome to mojolicious template too?
07:25 sri working on it already
07:25 marcus also, how can I inflate the default templates into template/ ?
07:25 marcus templates/
07:25 sri which default templates?
07:26 marcus exception/notfound?
07:26 sri you can't yet
07:26 marcus ok
07:28 sri it's not hard to do though, since they are accessible via $Mojolicious::Controller::EXCEPTION or so
07:28 Christian joined #mojo
07:28 Christian morning
07:28 marcus cool
07:28 sri but i think most people won't touch them
07:28 marcus the default notfound template annoys me a bit, because chrome doesn't render it
07:28 marcus since it's so short
07:28 * sri waves
07:29 marcus and shows it's own built-in crap
07:29 marcus which leads me to think I forgot to start the server
07:29 sri the welcome template will replace not_found
07:29 marcus good idea
07:29 sri in development mode it will show a welcome message and suggest a route to add
07:29 sri and some links and stuff
07:29 marcus Oops! This link appears to be broken. is not very friendly
07:29 marcus that sounds perfect
07:30 sri then i'll remove the / routes from the generators
07:30 sri et voila :)
07:31 marcus yeah.
07:31 marcus it probably needs to behave differently for lite apps/normal apps then
07:31 sri ye
07:31 marcus sri++ # the man with the plan
07:32 sri world domination here i come!
07:32 marcus http://www.youtube.com/watch?v=​K4rorNwnHew&amp;feature=related # these guys played at our christmas party this year
07:32 marcus we have the best christmas parties ever
07:32 marcus the girls even
07:32 marcus I was completely ruined on saturday.
07:34 marcus sri: my proxy thing worked lovely as a prototype. I just need to make sure the headers are handled correctly now , and write tests/pod
07:35 und3f[A] is now known as und3f
07:37 sri haha
07:37 sri i would imagine so, after all santa is from norway, no?
07:40 marcus that is our story, and we're sticking to it.
07:40 marcus we actually have this great event company that we trade favors with
07:40 omega SANTA TRACE
07:41 marcus we make web pages for them, they arrange our christmas party - http://kraftbyraa.no
07:41 marcus theme for the party this year was bordwalk empire / 1920s prohibition.
07:41 marcus they actually had some guy crash the party and arrest Arne :)
07:42 sri lol
07:42 omega he probably deserved it
07:42 marcus yupp
07:44 sri http://pastebin.com/cpb7ndV8 # lol, don't taut 4chan
07:44 sri *taunt
07:44 marcus anonymous - none of us are as cruel as all of us
07:45 marcus so bad
07:45 marcus poor gawker
07:50 marcus 3200 users using password as password
07:50 sri brings back bad memories from the perlmonks hack :S
07:51 marcus yeah
07:52 marcus funniest 4chan since they took over live commenting of apple event and declared steve jobs was dead
07:53 crab i thought santa was in rovaniemi in .fi
07:53 marcus crab: those are fighting words!
07:53 marcus :)
07:54 sri http://www.imdb.com/title/tt1401143/ # guess we'll have to wait for this to solve this issue once and for all
07:57 marcus this.get('#/', function() {
07:57 marcus this.render('index.mustache')
07:57 koban left #mojo
07:57 marcus .replace('#main')
07:57 marcus .render('items.json')
07:57 marcus .renderEach('item.mustache')
07:57 marcus sorry about that, but I have to say.. too awesome
07:57 marcus I'm in love with sammy.js now
07:57 marcus http://swinger.quirkey.com/#/​preso/sammy-socal/display/22
07:59 und3f is now known as und3f[A]
08:05 * sri slaps marcus
08:07 ysyrota joined #mojo
08:07 koban joined #mojo
08:12 * xantus slaps marcus for fun
08:13 marcus I meant to say, sammy.js with mojolicious is awesome... :)
08:15 sri :p
08:16 marcus I put a route in your route, so you can route your routes, while your route routes.
08:22 sri in the end those client side frameworks might win i think
08:24 sri but thats still 10 years away at least
08:24 sri our generation loves old fashioned web sites too much
08:25 sri "apps" for everything does sound a bit boring though
08:26 sri then again the majority thinks facebook *is* the internet
08:29 Alias_ joined #mojo
08:31 omega are you tellingme its not?
08:34 sri thats not what i said
08:39 marcus single file html apps with json endpoints are very easy to turn into phonegap apps.
08:40 crab what is phonegap?
08:50 ashleydev_logbot left #mojo
09:17 szasenko joined #mojo
09:21 marcus chttp://www.phonegap.com/
09:21 marcus crab: http://www.phonegap.com/
09:30 crab yeah, i found it. looks interesting.
09:36 ajgb joined #mojo
09:54 otaviof joined #mojo
10:11 otaviof left #mojo
10:19 perlrocks Twitter: "working on Locale::TextDomain plugin for #mojolicious - http://goo.gl/ynQX2 - any suggestions are welcome :)" --nuclon http://twitter.com/nuclon/status/14263187507511296
11:20 spleenjack joined #mojo
12:00 metaperl thanks for linking to Sammy marcus - it is quite awesome ... this is funny: "ye olde application architecture" - http://swinger.quirkey.com/​#/preso/jqcon_09/display/45
12:38 perlrocks Twitter: "OAuth:: Lite Hatena Plack and towards the end of the document in OAuth seems like if I wrote a sample Mojolicious:: Lite using the same code that was included ...." (ja) --kga http://twitter.com/kga/status/14298169110175744
12:38 perlrocks Twitter: "RT @ kga: OAuth:: Lite Hatena Plack and towards the end of the document in OAuth seems like if I wrote a sample Mojolicious:: Lite using the same code that was included ...." (ja) --AE_PerlIsm http://twitter.com/AE_PerlI​sm/status/14298170922110976
12:40 perlrocks Twitter: "RT! Kga: OAuth:: Lite Hatena Plack and towards the end of the document in OAuth seems like if I wrote a sample Mojolicious:: Lite using the same code that was included ...." (ja) --perlism http://twitter.com/perlism​/status/14298506445459456
13:05 szasenko left #mojo
13:09 perlrocks Twitter: "Mojolicious::Plugin::Textdomain http://j.mp/hbZcJo" --shoorick77 http://twitter.com/shoorick​77/status/14305956473085954
13:12 perlrocks Twitter: "Shoor / нал: Mojolicious:: Plugin:: variable TEXTDOMAIN http://ff.im/v9Wqv" (af) --planetperlru http://twitter.com/planetper​lru/status/14306669471203328
13:59 fhelmber_ left #mojo
13:59 fhelmber_ joined #mojo
14:22 daviddelikat1 joined #mojo
14:26 daviddelikat left #mojo
14:31 kaare left #mojo
14:56 vel joined #mojo
15:25 jfuller left #mojo
15:38 al left #mojo
15:43 al joined #mojo
15:45 kk0 joined #mojo
15:47 perlrocks Twitter: "https://gist.github.com/739116 #Mojolicious::Lite with Mojolicious::Plugin::Textdomain example. #perl, #gettext, #i18n" --shoorick77 http://twitter.com/shoorick​77/status/14345742105714688
15:49 kk0 Hi all
15:51 und3f[A] is now known as und3f
15:51 kk0 Any ideas on how i can route something based on format?
15:55 Christian left #mojo
16:07 Alias_ left #mojo
16:11 koban left #mojo
16:13 a|newkirk[assoc] joined #mojo
16:36 a|newkirk[assoc] is now known as alnewkirk
17:00 ajgb left #mojo
17:12 otaviof joined #mojo
17:12 otaviof left #mojo
17:16 josh kk0, you could add a condition and check stash('format')
17:18 marcus sri: Been trying to find requirements for a http proxy server. seems it doesn't actually have to modify any of the response headers.
17:18 marcus there's just a bunch of them it's not allowed to modify
17:19 josh there arent any requirements to modify the headers... ive done a bit of work with proxies, and we call the ones who leave the headers intact 'anonymizing' proxies
17:20 marcus josh: thanks. I've written a simple Mojolicious plugin to do proxying
17:20 josh which is silly, imho... the ones that add the X-Forwarded-For header should be called 'de-anonymizing'
17:20 marcus the only reason I need it is to avoid XSS
17:21 josh ah yes
17:21 marcus (I have a JS app that needs to talk to a json service on another server)
17:21 josh are you using it as a real http proxy, or something like a GET-forwarder
17:22 josh eg, GET /proxy?url=http://xxxx
17:22 marcus get 'ws' => sub { shift->proxy_to('http://foo.com/bar') }
17:22 josh oh sexy
17:24 marcus yeah, should try to get docs and tests done for it and stuff it to cpan tonight.
17:25 josh the only thing i would suggest is you consider the situation of differentiating local errors from remote errors
17:27 josh normally, a 5xx error is a local error, everything else is remote. but if you want to expose local errors you may want to use a custom header
17:27 josh i've written proxy servers... and although there aren't always specs for things like that, users appreciate it ;)
17:27 josh at least, when i'm using proxies i want everything to work and when it doesn't i want to know why
17:28 marcus mm, the only error handling I have right now is a 500  'Failed to fetch data from backend' if the request fails.
17:29 marcus I guess I should include an explanation of the actual client error as well.
17:29 josh a nonstandard header like X-Remote-Status goes a long way :)
17:30 josh but thats just one man's opinion
17:30 marcus good idea, thanks
17:31 josh i look forward to seeing your module on cpan :)
17:32 jfuller joined #mojo
17:34 marcus $c->tx->res->headers->add('​X-Remote-Status',$error.': '.$msg); or so
17:34 kk0 josh: Thank you. I've already done that in the Controller classes, but i was looking for something more generic. I.e. to require authentication for some representations of a resource.
17:35 s0va joined #mojo
17:36 josh marcus, looks good :D
17:36 s0va sri: i'm interested about SSL client cert auth in mojo::server::daemon
17:37 s0va it looks that IOLoop should need some patching... i guess that there is no option to achieve this with plugins
17:37 josh kk0, the 'condition' i meant is part of the route, not the controller. see http://search.cpan.org/dist/Mojolicious/lib​/Mojolicious/Guides/Routing.pod#Conditions
17:37 marcus s0va: I thought https was already supported.
17:37 marcus through optional dependency
17:38 s0va marcus: it is :)
17:38 s0va i'd like to authenticate clients by their x509 certificates
17:39 marcus ah, pki
17:39 marcus sick :)
17:39 s0va yeah :)
17:39 kk0 josh: wow, i totally didn't read the condition part :S thanks!
17:39 josh :D
17:40 kk0 I've been all over Mojolicious for some days, i hope it starts to sink in finally...
17:40 josh kk0, theres a lot in there... i'm still learning a lot about it myself
17:41 s0va marcus: i'm having this strange idea to implement https client/server in the same app and i want both-way x509 cert auth; well i want to verify server authority and i want to send my cert to server while executing rest calls
17:42 su-bzero sri: When will you realize "resources" in Mojo routes?
17:42 kk0 Yes, indeed there is! But the latest edits on the wiki have been *very* enlightening. Kudos to the community ;)
17:43 marcus su-bzero: there's an extension
17:43 s0va right now there is also no option to detemine if SSL is used in app if some load balancer is sitting before mojo webapp
17:46 su-bzero marcus: Where? mojox-scaffold?
17:47 crab what does it mean, realise 'resources' in Mojo routes?
17:48 marcus mojolicious-plugin-resourceful_routes
17:49 marcus yeah, mojox-scaffold
17:54 su-bzero marcus: Thanks.
17:54 su-bzero crab:  http://guides.rubyonrails.org/routing.html like here I think.
17:56 ysyrota left #mojo
18:03 forwardever joined #mojo
18:09 forwardever there is https://github.com/forwardever/moj​ox-scaffold/blob/master/lib/Mojoli​cious/Plugin/ResourcefulRoutes.pm , some functionality is still missing, like removing "delete", or just using "show" and "update" e.g.
18:27 marty What is the consensus on the best way to parse config files?   json_config?
18:31 josh marty, that's probably a subject that will never have a consensus
18:31 josh but mojo does provide a json config parser
18:33 marty Ya, I saw the json_config plugin in Mojo.  Seemed like a good option to look at.
18:37 yko marty: as far as i remember you can load as many json configs as you need with json_config defining filename in plugin parameters. but also you can slurp your configs and parse with Mojo::JSON->new->decode($string)
18:39 marty yko, thank you.  That gives me plenty of options.  :)
18:41 yko there's more than bla bla bla...
18:54 perlrocks Twitter: "Mojolicious - Web framework for Perl http://www.findbestopensour​ce.com/product/mojolicious  #web-framework" --bestopensource http://twitter.com/bestopenso​urce/status/14392678011637760
18:58 pid joined #mojo
19:05 marcus ooh, best opensource
19:05 marcus :)
19:15 su-bzero In da Universe.
19:21 ok22_ joined #mojo
19:24 ok22 left #mojo
19:24 ok22_ is now known as ok22
19:25 rhaen hola!
19:25 rhaen puuh!
19:25 rhaen Mojo is so well documented compared to other stuff.
19:25 rhaen I am glad to be back in Mojo land.
19:26 rhaen marcus: what about London.pm? Was it a success for you?
19:26 marcus rhaen: it went ok. We've had at least one visit to this channel as a result of the talk :)
19:26 rhaen awesome! :)
19:26 rhaen That's at least a start
19:29 marcus yeah. Tim Bunce was talking in the main room at the same as my talk, so the aditorium was only half-full :)
19:29 rhaen bah! :)
19:29 marcus but still, it was ok, and the musical was great :)
19:30 * marcus is about ready to push https://github.com/marcusramb​erg/Mojolicious-Plugin-Proxy to cpan
19:30 rhaen btw, I will submit at least two talks about Mojo for the next conferences here.
19:30 marcus where is here?
19:30 marcus german perl workshop?
19:30 rhaen However, they deal more about OpenSource in general and I will take Mojo for the examples
19:31 rhaen marcus: yep, but there is no official cfp so far
19:31 marcus ok.
19:31 marcus sri: Alive?
19:31 rhaen One is a small German conference "LUGA" - which is a local thing but they usually have around 500 visitors on one day
19:33 marcus is it almost time for CCC again?
19:33 rhaen and the second is the GUUG FFG which is short for German Unix User Group - Fruehjahrsfachgespraech. A somewhat bigger conference
19:33 marcus would be cool to submit something there :D
19:33 rhaen CCC is close after xmas
19:33 marcus guess it's too late
19:33 rhaen however, they only accept security or hacking relaeted talks.
19:34 marcus mm
19:34 rhaen k, I am afk - looking for a job.
19:34 marcus could be possible to do a security related mojolicious talk tho.
19:34 rhaen Think I will apply at a company in Stockholm/Sweden
19:34 marcus like the http client cert stuff that was discussed here earlier
19:35 marcus claes' company?
19:35 rhaen oh - just kidding. I just read a book about someone who spent one year in Sweden and loved it
19:35 marcus Glue Finance AB
19:35 rhaen I know you are from Norway so I would apply in Oslo! :)
19:36 marcus :)
19:36 marcus I think startsiden is hiring
19:36 marcus I just hired the 6. employee for nordaaker
19:36 marcus but he's a obj-c / php guy
19:37 marcus actually, we seem to be doing a lot of html5+css+js stuff lately
19:37 marcus and I just glue together the backends in mojo :)
19:37 rhaen :) cool
19:38 rhaen ok - here is a secret, just let me have a look inside my script for the url
19:40 rhaen http://www.webkamerasinnorwegen.com/map/ here is my favourite webcam page
19:41 rhaen when I have a small break - I start to look at them.
19:41 rhaen every day
19:42 marcus funny :-)
19:43 marcus http://www.webkamerasinnorwege​n.com/webcams.php?viewcam=874
19:43 rhaen http://weather.cs.uit.no/
19:43 marcus this is the biggest open source consulting company in oslo
19:43 rhaen I love them.
19:43 rhaen I grab pictures every hour and place them on my Macbook as background!
19:43 rhaen WONDERFUL
19:44 rhaen maybe next year I will manage to travel to Norway with my motorcycle
19:45 marcus go to the west coast.
19:45 marcus the fjords are pretty awesome
19:48 moritz west side for life!
19:48 rhaen hm, Lofoten, Vesteralen it will be
19:49 rhaen I found a book about them, and I am looking at the pictures of it frequently
19:49 rhaen moritz: <de>alter Recke! Was machst du hier?</de>
19:51 rhaen omg! http://www.flickr.com/photos/larigan/1873933011/
20:01 marcus rhaen: it is frickin' far to Lofoten
20:01 marcus but I guess if you've already driven to norway...
20:01 marcus yeah, Geiranger is very nice
20:02 marcus http://picasaweb.google.com/olga.ramberg/Lofoten# our pics from Lofoten
20:03 rhaen marcus: I used a sailboat :)
20:03 rhaen we went up the Swedish west coast
20:03 marty You guys are in Germany?  Wow!  Your English is better than most Americans!
20:04 marty (disclaimer, I am in the US,  Portland, Oregon)
20:04 rhaen marty: *bows* - Marcus is our famous Marcus Ramberg from Norway
20:04 rhaen I am from Germany, moritz is from Germany, too
20:05 jfuller left #mojo
20:05 marcus rhaen: http://www.flickr.com/photos/marcu​sramberg/521988873/in/photostream/ - West coast
20:05 marcus hi marty. Nice to meet you.
20:05 marcus I want to visit portland. I hear you have a lot of good beer :)
20:06 marty Oh ya.  Portland is the home of Linus and the OSL.   Yep, lots of good Micro Breweries in the area.
20:07 rhaen I like this one: http://www.flickr.com/photo​s/marcusramberg/520551826/
20:07 marcus marty: I thought Linus was from Finland ;-)
20:07 marty I hear that those guys from the OSL spend some *time* in the Micro Breweries.  Discussing tech stuff I am sure.  :)
20:07 rhaen hahahaha!
20:08 marcus marty: obvously.
20:08 marcus that's where we have most tech meetups in Oslo too.
20:08 marty Well Linus also speaks better English than any of us here in Portland, so ya, He can pick either Finland or Portland as his base.  :)
20:09 vel left #mojo
20:10 spleenjack left #mojo
20:24 vel joined #mojo
20:35 kk0 left #mojo
20:49 MojoGuest66 joined #mojo
20:49 MojoGuest66 From: http://news.ycombinator.com/item?id=1277067 (102 hits)
20:49 MojoGuest66 left #mojo
20:50 MojoGuest506 joined #mojo
20:50 MojoGuest506 From: http://news.ycombinator.com/item?id=1277067 (103 hits)
20:54 MojoGuest506 /list
20:55 yko MojoGuest506: :p
20:55 yko MojoGuest506: /nick works. maybe few other very basic commands
20:56 MojoGuest506 looks like i have been proxied while looking at a websocket irc demo
20:56 MojoGuest506 pretty tight
20:56 MojoGuest506 is now known as jackinloadup
20:56 yko :)
20:56 yko when you are looking into websocket, websocket is looking into you
20:57 marty yko,  :)
21:04 fhelmber_ left #mojo
21:10 moritz in the Mojolicious::Session documentation, how do I get the $c cookie in ->load($c) ?
21:18 alnewkirk left #mojo
21:18 yko mortiz, you are not supposed to load cookie by yourself
21:20 moritz yko: then what should I learn from these lines in the documentation?
21:20 yko try to look there https://github.com/kraih/mojo/blob/mast​er/lib/Mojolicious/Controller.pm#L1285
21:20 yko just use $c->session->{'value'} from your actions
21:22 yko it works in transparant manner. like sub action { my $s = shift; $c->session->{value}++; }
21:22 yko and <%= session->{value} %> in action.html.ep
21:23 josh wow the new exception template looks very nice in chrome and very very very bad in firefox
21:23 yko there's no session example in guides yet
21:23 moritz yko: thanks
21:24 yko mortiz: you should understand that sessions are stored client-side. they can be read, but data in signed cookie can not be faked-up
21:25 yko if you are using data from sesion, you can be sure that it's data you previous set. until somebody knows your 'secret' word
21:25 moritz yko: that's good enough for now, for experimenting. Later I want to have sessions that can be accessed from multiple browser (via log in)
21:31 marcus I need a good freebsd init script for hypnotoad
21:37 rhaen what are the criteria for "good" (tm)?
21:38 rhaen hm, I should package Mojo for NetBSD, btw.
21:38 spleenjack joined #mojo
21:39 marcus for some reason, the one I have says $myapp not running?  (check /var/tmp/nho.pid)
21:39 marcus even tho /var/tmp/nho.pid contains the pid of the daemon
21:40 rhaen hm.
21:40 marcus it's using run_rc_command
21:41 stephen left #mojo
21:41 rhaen ok, that should work.
21:42 rhaen However, if you like I look into it - I am from the NetBSD side of the world
21:42 rhaen Most things NetBSD just work (TM)
21:44 rhaen :
21:44 rhaen :)
21:44 marcus hehe
21:44 marcus I am not a bsd fan. But I get free hosting on freebsd
21:44 marcus which means I am pragmatic :p
21:44 marcus if it was my servers, I would be running debian.
21:45 marcus or even GNU/kFreebsd :)
21:45 rhaen *coughs* - aha.
21:45 rhaen I like NetBSD. It's so nice
21:45 marcus I like the bsd kernel
21:45 marcus just not the userland
21:45 rhaen it's even documented!
21:45 marcus pkg_* is horrible compared to dpkg
21:46 marcus and the rc system is pretty primitive
21:46 rhaen baah. You should have a look at NetBSD things! :)
21:46 marcus I've used netbsd
21:46 marcus mostly for obscure hardware
21:46 marcus it's just another bsd imo
21:46 rhaen right - that's the problem. It doesn't run very well on "normal" or modern hardware
21:47 marcus I've also used openbsd and bsdi
21:47 marcus and of course, most of the time I use darwin  =)
21:47 rhaen oh yes, that's ok - same here :)
21:48 rhaen what system do you use for additional packages? fink? macports? brew?
21:48 marcus brew
21:48 marcus have used fink and macports in the past
21:48 rhaen :)
21:48 rhaen yep, switched to brew some time ago
21:48 marcus kind of liked fink for apt, but it was badly maintained
21:48 marcus and stuff like perl in fink was a pain
21:48 rhaen I don't like it, it feels very wrong but they have an active community
21:49 rhaen oh, I am using local::lib for my perl stuff
21:49 marcus I'm using perlbrew, actually :)
21:49 rhaen what's that?
21:49 marcus http://search.cpan.org/~gugod/App-perlbrew-0.15/
21:49 moritz a tool for maintaining perl installations
21:50 rhaen hm. Nice!
21:50 rhaen I thought it's not usuable till now
21:51 moritz works quite well here
21:51 rhaen ah, ok, I'll give it a try
21:51 rhaen do I have to install perl with it, too - or is that just a choice?
21:52 moritz you typically use it to install perl
21:52 moritz that's the core functionality
21:54 marcus :D
21:54 rhaen :)
21:55 rhaen ok ok ok ok - got it.
21:55 rhaen time to look at it ...
21:55 * marcus finishes the evening with american dad and beer
21:55 marcus just uploaded Mojolicious-Plugin-Proxy to CPAN
21:56 rhaen omg!
22:01 stephen joined #mojo
22:24 al left #mojo
22:26 vel left #mojo
22:28 marcus Lots of ugly frameworks out there  - http://mikehadlow.blogspot.com/2010/12/expl​osion-of-alternative-web-frameworks.html?ut​m_source=feedburner&amp;utm_medium=feed&amp​;utm_campaign=Feed:+CodeRant+(Code+rant)
22:28 marcus :)
22:34 ltriant joined #mojo
22:36 perlrocks Twitter: "Mojolicious-Plugin-Proxy 0.1 by Marcus Ramberg - http://frepan.64p.org/~mramberg​/Mojolicious-Plugin-Proxy-0.1/" --cpan_new http://twitter.com/cpan_ne​w/status/14448524108242944
22:38 marty marcus, wow - it's framework jungle out there.
22:46 spleenjack left #mojo
22:46 und3f is now known as und3f[A]
22:47 jackinloadup left #mojo
22:55 sri marcus: you should support async in M::P::Proxy
22:57 sri it's as easy as $client->async->get($url => sub {...})->start; and moving your if/else code into the callback
22:59 sri https://github.com/kraih/mojo/blob/​master/lib/Mojo/HelloWorld.pm#L185 # there's actually a test example for that :)
22:59 sri (thats raw mojo, but you get the idea)
23:06 pid left #mojo
23:39 al joined #mojo
23:40 su-bzero_ joined #mojo
23:44 su-bzero left #mojo
23:45 sri s0va: i wouldn't reject a patch if the implementation was clean and properly tested

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