Camelia, the Perl 6 bug

IRC log for #mojo, 2011-02-23

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

All times shown according to UTC.

Time Nick Message
01:02 ZadYree Q: How to add an image, using templates?
01:03 ZadYree on Mojolicious::Lite
01:19 tardisx ZadYree: do you mean like http://search.cpan.org/~kraih/Mojolic​ious-1.11/lib/Mojolicious/Guides/Rend​ering.pod#Base64_Encoded_DATA_Files ?
01:24 tardisx actual example here: https://github.com/kraih/mojo/blob/m​aster/lib/Mojolicious/Static.pm#L201
01:25 ZadYree left #mojo
01:36 ZadYree joined #mojo
01:36 ZadYree left #mojo
01:43 xris left #mojo
02:03 daviddelikat left #mojo
03:02 daviddelikat joined #mojo
03:24 stephen left #mojo
03:46 dekimsey1 joined #mojo
03:51 dekimsey left #mojo
03:54 MojoGuest180 joined #mojo
03:54 MojoGuest180 From: http://www.google.es/search?hl=es&q=extjs​+websocket&aq=f&aqi=&aql=&oq= (1 hits)
03:55 MojoGuest180 left #mojo
04:03 dekimsey1 left #mojo
04:04 tl joined #mojo
04:04 dekimsey joined #mojo
04:05 tholen42 left #mojo
04:11 hoelzro joined #mojo
04:11 hoelzro Does Mojolicious support the X-Forwarded-Proto header?
04:12 hoelzro I've got a Nginx set up to accept https connections and forward them to a Mojolicious app, but my redirect_tos result in http://, even if I set the header...
04:14 perlrocks Twitter: "@zedshaw Sinatra equivalent in perl is Dancer and Mojolicious. They both support PSGI and run on Plack, pretty much like wsgi and rack :)" --miyagawa http://twitter.com/miyagaw​a/status/40263114666541056
04:46 crab hoelzro: look at the cookbook, there is a recipe for reverse proxies.
04:53 hoelzro crab: I took a look, but it doesn't seem to work for https
04:53 hoelzro well, maybe if I have the server listen on https://...
04:53 hoelzro I'll try that
04:56 hoelzro yup, that did it!
04:57 hoelzro although that wasn't really clear in the reverse proxy example (when you're using HTTPS, that is)
05:04 hoelzro left #mojo
05:19 daviddelikat left #mojo
05:39 kaare joined #mojo
05:52 sherr_ joined #mojo
05:52 sherr_ left #mojo
05:56 MojoGuest706 joined #mojo
05:56 MojoGuest706 From: http://www.google.com/url?sa=t&source=web&amp​;cd=3&ved=0CCsQFjAC&url=http%3A%2F%2Fdev.​xantus.org%2F&rct=j&q=html5%20irc&ei=​fqFkTdL8GYqksQP_-4jPBA&usg=AFQjCNGw6nZv0wO42u​zUnHhWcD0vcKNULg&sig2=wxdC0LyD7xqGX6KjkQ8CjQ (1 hits)
05:57 MojoGuest706 left #mojo
06:10 ysyrota joined #mojo
06:23 fhelmber_ joined #mojo
06:55 crab heolzro: you must be doing something wrong
06:56 magnus left #mojo
06:56 tempire left #mojo
06:57 tardisx left #mojo
07:07 Alias__ left #mojo
07:14 MojoGuest146 joined #mojo
07:14 MojoGuest146 From: http://devwiki.xtone.co.jp/index.php (1 hits)
07:14 MojoGuest146 left #mojo
07:40 marcus joined #mojo
07:43 Christian joined #mojo
07:43 Christian morning
07:48 fhelmber_ left #mojo
07:51 marcus moin!
08:10 breaker313 joined #mojo
08:14 koban joined #mojo
08:17 tardisx joined #mojo
08:47 MojoGuest332 joined #mojo
08:47 MojoGuest332 left #mojo
09:00 crab hi marcus, christian.
09:02 Christian hi crab
09:08 otaviof joined #mojo
09:08 otaviof left #mojo
09:09 stephan48 just found a server with a really ancient mojo version ... it didnt even had a lite_app generator
09:17 tardisx left #mojo
09:19 tardisx joined #mojo
09:36 sherr left #mojo
10:02 memowe left #mojo
10:02 memowe joined #mojo
10:05 perlrocks left #mojo
10:16 crab what did you do with it?
10:17 stephan48 updated
10:28 marcus left #mojo
10:36 yegor joined #mojo
10:45 yegor left #mojo
10:49 perlrocks joined #mojo
11:04 yegor joined #mojo
11:14 sri good morning fellow mice with big heads, striving for world domination
11:15 yegor left #mojo
11:19 * moritz strives for world undermining, not domination
11:27 stephan48 mongodb or sql... i need to store results of server pings(workers ping a server and report back to a daemon which should store stuff in db) which happen once per minute
11:28 stephan48 what would be better?
11:28 tardisx nosql is a fad
11:28 tardisx I'm sure of it
11:28 tardisx :-P
11:28 stephan48 fad?
11:28 moritz stephan48: seems like your data follows a quite regular scheme
11:29 tardisx just a passing phase
11:29 moritz so there's nothing wrong with using a RDBMS for it
11:29 moritz ie SQL
11:31 yegor joined #mojo
11:31 * sri would use mongodb for everything
11:32 tardisx I was bitten by an NDBM database as a child
11:32 tardisx I get the shakes when I see key/value pairs now
11:32 tardisx flashbacks
11:32 purl flashbacks are strange buggers.
11:32 sri mongodb is a document database
11:32 sri with a query system not unlike sql
11:33 moritz so you store .doc files in it? :-)
11:33 * sri pushes moritz into the alligator pit
11:33 stephan48 ye
11:33 * moritz does a swim with the alligators... that was fun!
11:34 stephan48 what is if my app doesnt support .doc?
11:34 * sri pokes yko
11:34 moritz stephan48: I hear they plan an ODF extension... :-)
11:34 stephan48 cool, but sadly i also doesnt support that
11:35 moritz then you are on your own... try postgres instead
11:35 perlrocks left #mojo
11:35 perlrocks joined #mojo
11:35 stephan48 ye i will
11:35 tardisx postgresql++
11:35 tardisx but use sqlite if you really have to store no more than ping results
11:35 tardisx or a text file :-)
11:37 stephan48 basically i need to store server meta data(server and server contacts) and the ping results, and i fear that sqlite will be bit slow(also we need multiple apps access it on same time)
11:37 stephan48 so i think i will choose postgres after i established db layout
11:38 tardisx sqlite may surprise you
11:38 tardisx I use rose::db so it's easy to flick between them
11:42 stephan48 is it much different of dbic?
11:48 GitHub163 joined #mojo
11:48 GitHub163 mojo: master Sebastian Riedel * 543102d (1 files in 1 dirs): fixed typo - http://bit.ly/gkmJ2L
11:48 GitHub163 left #mojo
11:52 tardisx left #mojo
11:54 tardisx joined #mojo
12:32 tardisx left #mojo
12:41 yegor left #mojo
12:43 marcus joined #mojo
12:48 koban left #mojo
12:48 crab hm. doesn't xantus's irc client use websockets?
12:49 crab so how come people still connect using it? old browsers, or what?
12:55 daviddelikat joined #mojo
13:04 tholen joined #mojo
13:05 yegor joined #mojo
13:07 daviddelikat left #mojo
13:14 ZadYree joined #mojo
13:14 daviddelikat joined #mojo
13:14 marcus crab: flash callback
13:14 marcus fallback
13:15 ZadYree I definitely can't embed images in mojo :(
13:15 ZadYree any method, using another solution than b64?
13:16 marcus ZadYree: why not just store them in public/ ?
13:17 ZadYree hum, it's a solution.
13:21 crab why can you definitely not embed images in mojo?
13:22 ZadYree well, I was using it w/o generating files
13:22 ZadYree directly using the daemon
13:29 su-bzero is now known as su-bzero[off]
13:30 su-bzero[off] is now known as su-bzero
13:35 sri ZadYree: sounds like you just need to read more
13:35 ZadYree probably
13:36 perlrocks left #mojo
13:36 perlrocks joined #mojo
13:37 ZadYree well, I have the impression Mojolicious::Lite doesn't handle directories, etc.
13:37 sri we call those "static files"
13:38 sri there are sections about it in the guides and tutorial
13:39 ZadYree hum I got the impression in the Mojo::Lite guide, the image case is detailed only using b64 on tiny pics
13:39 sri http://mojolicio.us/perldoc?M​ojolicious/Lite#Static_Files
13:39 sri "mkdir public"
13:40 ZadYree well, does this public directory really exist?
13:40 sri not unless you create it
13:40 sri man mkdir
13:40 ZadYree yeah :D
13:41 ZadYree I think I understand anything unrelated to mojo xD
13:41 ZadYree gotta read more, thank you sri!
13:42 kaare left #mojo
13:56 yegor left #mojo
14:04 perlrocks Twitter: "Don't forget to test IPv6 support in the latest github version of #mojolicious, i'm almost certain it will break something. #perl" --kraih http://twitter.com/kraih/status/40411584614371330
14:08 yegor joined #mojo
14:16 su-bzero is now known as su-bzero[off]
14:31 oleber joined #mojo
14:31 aiglenoir left #mojo
14:31 oleber left #mojo
14:31 oleber joined #mojo
14:31 aiglenoir joined #mojo
14:32 oleber Hy all
14:32 MojoGuest341 joined #mojo
14:32 MojoGuest341 From: http://www.google.com/search?client=safari&rls​=en&q=irc+websocket&ie=UTF-8&oe=UTF-8 (1 hits)
14:32 maxim joined #mojo
14:33 MojoGuest341 left #mojo
14:34 hoelzro joined #mojo
14:34 oleber Is this technology robust to production?
14:36 maxim left #mojo
14:36 maxim joined #mojo
14:37 crab oleber: i'm using it in production.
14:37 crab so are a number of other people here.
14:38 oleber I'm starting a project with it, but with allot of afraid of the stability
14:49 sri oleber: what kind of stability?
14:50 oleber don't die without any reason, memory leaks, ...
14:51 oleber something that will prevent me to set the project in production after 9 month/men of development
14:51 sri no need to be afraid, we have very good test coverage
14:52 oleber Apart from this: since I'm loving this technology, I'm available to help
14:53 sri of course there are bugs in any software, but if there's a test case we can usually fix it in minutes
14:53 crab oleber: the only stability problems i've had are with listening on HTTPS.
14:53 sri crab: you did?
14:53 oleber I got that today
14:53 crab and i don't need to do that in production (because it's behind nginx), so i don't care.
14:54 crab sri: my daemon keeps dying with:
14:54 crab Use of uninitialized value $socket in hash element at /usr/local/share/perl/5.10.1/Mojo/IOLoop.pm line 875.
14:54 sri hmm
14:54 crab and then "can't call 'blocking' on undef at line 878"
14:54 oleber I set mine on the mailing list
14:54 sri of course issues have to be reported
14:55 crab sri: i mentioned the error the other day on irc (but you probably are saying that to oleber)
14:55 crab i investigated briefly, but it was a problem deeper in, in the SSL code
14:55 crab and i found no indication of what the problem might be
14:56 sri crab: no i don't remember you mentioning it
14:56 crab i don't have the time to investigate with tcpdump etc. right now, but i've got it on file to look at later
14:56 crab sri: well, here i am mentioning it :-)
14:56 sri make a test case and i'll fix it
14:56 crab i can't make a test case, it's a random thing.
14:57 crab happens when the server has been running for some hours, and i'll suddenly find it dead.
14:57 sri that makes it unfixable i'm afraid
14:57 crab yes, i know. i'm not making a big deal of it. if i ever find out more, i'll provide the info.
14:58 sri likely even a IO::Socket::SSL bug... or deeper
14:58 crab i assume most people don't use --listen https:... at all, which is why they don't run into it
14:58 su-bzero[off] is now known as su-bzero
14:58 sri oleber: ah, that was you on the list
14:59 sri oleber: you did not answer, does MOJO_NO_TLS work?
15:00 sri of course we sadly have no control over the xs modules we depend on for advanced functionality like SSL :(
15:01 sri crab: daemon or hypnotoad?
15:01 crab daemon
15:01 sri could be a leak in Net::SSLeay then
15:01 crab running with --reload --listen https://0:3001 for development
15:02 sri hypnotoad refreshes workers regularly and would not be affected
15:02 crab maybe, but anyway i don't care, i'm doing ssl with mojo only in development.
15:03 crab in production personally i wouldn't use server-side ssl in perl at all (not just with mojo)
15:03 crab IO::Socket::SSL has pretty much ALWAYS sucked.
15:03 sri true
15:04 sri you would use it with the client though
15:04 crab how is the in-core ssl in ruby, do you know? do they have similar problems?
15:04 mattastrophe left #mojo
15:04 sri never heard of any problems
15:05 sri perl bindings are all ugly hacks
15:05 crab yes, client-side is fine mostly because the brokenness is flushed down the toilet after each independent request
15:06 sri would be strange if it only affects server side
15:06 aiglenoir left #mojo
15:07 sri IO::Socket::SSL is reusing the same context i think
15:07 kaare joined #mojo
15:07 sri but no point guessing
15:07 crab yeah.
15:09 crab and now, i shall go downstairs and help with dinner.
15:10 aiglenoir joined #mojo
15:10 hoelzro is there a way to grab the originating IP from a Mojo::Message::Request? a quick scan of the docs and a Dumper($self->req) doesn't yield any useful information
15:11 hoelzro hmmm
15:12 hoelzro I see Mojo::Transaction has that information...
15:12 hoelzro ah ha!
15:12 hoelzro $self->tx
15:12 hoelzro nevermind, answered my own question =)
15:13 dekimsey heh
15:13 sri :)
15:13 hoelzro usually I search for docs, then ask, then someone points my to a page I hadn't thought to search
15:13 hoelzro this time I ack'd the Mojolicious source =)
15:20 Alias left #mojo
15:20 Alias joined #mojo
15:22 breaker313 left #mojo
15:26 oleber I'm also getting another problem, that seems an error
15:26 oleber I have something like
15:26 oleber my $message_reader_routes = $self->routes->under( sub { ... } );
15:26 oleber $message_reader_routes->route('/qu​eue_message/:message_id/get')->to( 'queue_message#call_get', 'pippo' => 'xpto');
15:27 ZadYree sri, another nooby question: how to pass an argument to @_ to a template?
15:27 ZadYree with Mojo::lite
15:27 oleber the :message_id and pippo appears inside the method call_get, but ot on the under
15:27 oleber is this normal?
15:31 sri oleber: that is by design
15:31 oleber What is the logic?
15:31 purl I'll listen to reason when it comes out on DVD.
15:32 sri both values are assigned later
15:32 sri under already happened
15:32 oleber maybe there is a better way of doing what I need.
15:32 sri most likely
15:32 purl I doubt it
15:33 * sri stabs purl
15:33 * purl falls on sri.
15:33 oleber I would like to have something done to all requests before I enter on the calls
15:33 oleber For example, access to a DB and do some queries, depending on the used $routes
15:34 oleber may I do that?
15:34 sri perhaps those actions should call a helper
15:34 sri there are many many ways
15:34 oleber but having it centralized in just one point
15:36 sri has anyone use camtasia for mac yet?
15:36 sri *+d
15:36 oleber In my point of view, the call handler shall be stupid. Let the security before doing the calls
15:45 diegok is now known as diegok__
15:45 diegok__ is now known as diegok
15:46 dekimsey1 joined #mojo
15:47 mattastrophe joined #mojo
15:50 dekimsey left #mojo
15:52 crab oleber: i don't even understand your problem
15:53 sri oleber: did MOJO_NO_TLS work or not?
15:53 crab oh, you want message and pippo in your stash ALREADY when the bridge callback sub is run?
15:53 oleber SRI, yes
15:54 oleber crab, yes
15:54 sri interesting
15:54 crab there's no sane way to do that, just make your bridge more specific. bridge from /queue_message/:message and inside that do ->route('/get')->to('call_get')
15:54 oleber more or less, I would configure like this my bridge
15:54 sri that means Net::SSLeay and Crypt::SSLeay can't be used together
15:57 oleber crab: Imagine that I have allot of calls over message, I would like for instant to return 404 without calling the to subs
15:57 crab i should write an ssl implementation and call it SSLeazy, pronounced sleazy of course.
15:57 crab oleber: so return 404 in your bridge
15:57 crab i do _exactly_ the same thing.
15:57 oleber but if I dont have the :message_id in there
15:57 crab either 403 or 404 in the bridge, and the to subs can assume that all is well and just do their work
15:57 crab oleber: did you see what i said above?
15:58 crab make a bridge on /messages/:message_id, not on /messages
16:00 oleber crab: I'm lost, I have all this path
16:00 oleber /messages/:message_id/get
16:00 oleber /messages/:message_id/lock
16:00 oleber /messages/:message_id/unlock
16:00 oleber /messages/:message_id/update
16:00 oleber crab: I'm lost, I have all this path
16:00 oleber /messages/:message_id/get, .../lock, .../unlock, ...update, ...
16:01 oleber How do I check all this in one single point
16:01 crab instead of doing $r->bridge->to(cb => sub ...), do $r->bridge('/messages/:message_id')->to(cb => sub ...)
16:01 crab and then create your get, lock, unlock, update routes under that
16:02 oleber let me look to bridg
16:03 crab oh, you're using ::lite. i don't know the syntax offhand. maybe you can say $x = $r->route('/foo/:foo_id'); and $y = $x->under(sub ...), and then create your routes under $y
16:03 crab but you can probably $x = $r->route('/foo/:foo_id')->under(sub ...)
16:03 crab then your bridge will have foo_id in the stash
16:05 crab of course, you can create the bridge exactly as i said before in lite too, nothing stops you.
16:08 bellaire joined #mojo
16:08 Christian nice evening to you all
16:09 Christian left #mojo
16:15 crab sri: do i understand correctly that the example of async just posted to the list doesn't need to be async at all? (well, at least from whatever is shown in the example)
16:15 aiglenoir left #mojo
16:16 aiglenoir joined #mojo
16:16 sri crab: depends on context that is not shown i think
16:20 crab ok
16:20 ZadYree Another wuestion i asted some hours ago: how passan argument, from the code to the template, using @_?
16:22 ZadYree something like $self->render("foo", "bar") ?
16:22 sri ZadYree: please read the documentation
16:22 ZadYree it's  ot written in ::Lite, dunno where to search in the global mojo papers
16:22 sri it is
16:22 sri http://mojolicio.us/perldoc?Mojolicious/Lite#Stash
16:23 ZadYree arguments won't use @_ :(
16:23 sri why would they?
16:23 crab no, you have to pass them through the stash
16:24 sri unrolling @_ in a template would be a horrible amount of boilerplate
16:25 ZadYree hum ok
16:25 ZadYree cause I have the impression my stashes are ignored
16:25 ZadYree anyway, gonna try w/o @_ :D
16:26 crab ignored?
16:29 ZadYree well, managed to build some things =). Back to it, please kick me if I keep asking stup questions.
16:40 fhelmber_ joined #mojo
16:55 aiglenoir left #mojo
16:55 aiglenoir joined #mojo
17:44 ysyrota left #mojo
17:49 crab blah.
18:01 crab and double-blah.
18:06 sri :S
18:06 sri oleber: why would that even matter now?
18:10 sri this is kinda funny and sad, we get mostly criticised for not having cpan dependencies and at the same time most bug reports are about optional dependencies failing
18:10 sri i'm sure there's a funny story for my blog hidden here somewhere
18:13 crab oleber: btw, why do you want to use LWP in a mojo application anyway?
18:20 xris joined #mojo
18:21 mattastrophe left #mojo
18:21 mattastrophe joined #mojo
18:24 otaviof joined #mojo
18:26 tempire_ LWP is for old people.
18:27 tempire_ GET OFF MY LAWN, Mojolicious!
18:27 sri :D
18:38 perlrocks Twitter: "Ivan Sokolov / Mojolicious-GroupedParams-Plugin-0.02 - search.cpan.org: Mojolicious-Plugin-0.01-GroupedParams --... http://bit.ly/gkBn94" (cs) --plugincome http://twitter.com/pluginco​me/status/40480531455942656
18:38 sherr joined #mojo
18:50 stephen joined #mojo
18:53 hoelzro is it possible to implement streaming responses when running Mojolicious on top of PSGI?
18:53 hoelzro I wrote a little test app, and it doesn't seem to like it very much...
18:55 hoelzro I see a streaming recipe using write_chunk, but combining write_chunk + AnyEvent + PSGI + Twitter doesn't respond
18:57 hoelzro here's my app.psgi: http://pastebin.com/U2JXnyuc
18:58 sri afair streaming was a special feature not all psgi servers support
18:58 sri we only cover the lowest common denominator
18:58 hoelzro it's not supported by all, no
18:59 hoelzro but Twiggy does, and that's what I'm using
18:59 sri then we don't do it either
18:59 hoelzro oh ok
18:59 hoelzro I was wondering if it was possible
18:59 sri we only support what the spec requires, no extensions
18:59 hoelzro what about http://search.cpan.org/~miyagawa/PSGI-1.03/P​SGI.pod#Delayed_Reponse_and_Streaming_Body?
18:59 sri optional
18:59 purl optional is implied otherwise, no?
19:00 hoelzro ah
19:00 hoelzro hmm...I guess I'll have to implement part of my app outside of Mojolicious =(
19:00 hoelzro either that, or not use PSGI
19:00 sri feel free to extend our psgi binding
19:01 sri but i would expect serious unit testing
19:01 hoelzro of course
19:01 hoelzro well, I'll take alook
19:01 hoelzro see if it's something that I could do without too much of a problem
19:01 crab serious unit testing? does that mean you quote something unfunny from the simpsons? yes, sounds difficult. ;-)
19:02 crab hoelzro: you just return a callback function instead of your response body, right?
19:02 * sri pushes crab into the alligator pit
19:03 * crab rubs the alligators
19:03 hoelzro crab: in my toy app, I just want to stream the numbers 1 through 10, with a second of time between them
19:04 hoelzro in my real-world app, I want to queue some jobs into Gearman, and set up a streaming response to say "hey, job #N is done!"
19:04 crab sri: http://toroid.org/misc/pit.jpeg
19:05 crab hoelzro: yes, ok, but from the PSGI point of view, you have to return a callback function instead of your response body, and the callback is supposed to retrn chunks of data or something, right?
19:05 hoelzro something like that
19:05 hoelzro I figured that doing chunking the Mojolicious way would "just work"
19:05 hoelzro which, to Mojolicious' credit, it does
19:05 hoelzro when I'm running the standalone Mojolicious server
19:06 charsbr left #mojo
19:06 sri you could blame psgi for not requiring it from servers ;p
19:06 hoelzro oh, I don't blame Mojolicious =)
19:06 hoelzro I think it's awesome!
19:07 sri :)
19:07 hoelzro but I wish that what I'm attempting were possible
19:07 hoelzro maybe it is
19:07 hoelzro but that's why I'm here
19:07 sri don't think streaming would be that hard to add
19:08 hoelzro probably not
19:09 * hoelzro knocks on wood
19:09 hoelzro but I could also implement the streaming stuff as a separate PSGI app, and mount it under a specific route
19:14 crab so you could.
19:15 crab sri: (but they're crocodiles)
19:15 sri oh noes
19:15 sri purl: yko is also maybe a crocodile
19:15 purl okay, sri.
19:30 gizzlon left #mojo
19:32 charsbar joined #mojo
19:32 charsbar left #mojo
19:33 charsbar joined #mojo
19:40 perlrocks Twitter: "@ADLConsulting Have you kicked tried mojolicious yet? Curious to hear what you think.." --pythondj http://twitter.com/pythond​j/status/40496174154649600
19:42 ZadYree sri, I need another advice, where to find a guide on complex perl  structures in templates? like loops
19:45 crab "kicked tried"
19:53 aiglenoir left #mojo
19:53 aiglenoir joined #mojo
19:54 GitHub177 joined #mojo
19:54 GitHub177 mojo: master Sebastian Riedel * d23f785 (1 files in 1 dirs): added some pattern tests - http://bit.ly/fCpHpj
19:54 GitHub177 left #mojo
19:55 aiglenoir left #mojo
19:56 GitHub42 joined #mojo
19:56 GitHub42 mojo: master Sebastian Riedel * 803a7ca (1 files in 1 dirs): added more pattern tests - http://bit.ly/eaWa6H
19:56 GitHub42 left #mojo
19:58 aiglenoir joined #mojo
19:59 aiglenoir left #mojo
20:00 sri ZadYree: please don't direct all questions to me
20:00 ZadYree sure
20:03 aiglenoir joined #mojo
20:22 tempire_ ZadYree: epl templates are just perl.  loops would be handled the same way you handle loops in any other situation.
20:27 crab tempire: until you get your new special loop syntax, that is ;-)
20:30 tempire_ I figure if you're reading the docs and you find that, you already know how to answer the question.
20:36 elb0w k goin for hypnotoad setup right now
20:36 elb0w im excited
20:36 elb0w :D
20:36 elb0w anything I should know?
20:36 tempire_ ALL GLORY TO THE HYPNOTOAD!!
20:36 tempire_ That about covers it.
20:36 elb0w whats the fastest way to get started
20:37 magnus joined #mojo
20:37 tempire joined #mojo
20:39 hoelzro elb0w: mojo generate lite_app?
20:39 hoelzro er, maybe mojo generate hypnotoad...
20:39 hoelzro if you're going with the 'toad
20:39 tempire_ mojo generate lite_app MyApp
20:40 crab you don't generate hypnotoad
20:40 tempire_ hypnotoad MyApp
20:40 elb0w there a reason it defaults to 8080?
20:41 hoelzro 8080's pretty standard; what's wrong with 8080?
20:41 tempire_ "MyApp generate hypnotoad" generates a config file, you can set the port as you please
20:41 elb0w Isnt 80 the default http port?
20:41 crab 80 is fine if you're root
20:41 elb0w :8080 would need to be explicit no?
20:41 tholen left #mojo
20:42 elb0w yeah its an ec2
20:43 hoelzro typically, one would test using 8080 (or 3000, or 5000, etc), and launch to production on 80
20:44 elb0w hmm I just launched it, it said server available at :80. But then its not showing when I do a ps aux | grep hypno
20:45 hoelzro said, or says?
20:45 hoelzro did you kill the server to run ps? =P
20:45 elb0w oh
20:45 elb0w no its my app
20:45 elb0w hrm
20:45 elb0w ah cool, working :D
20:45 elb0w yey
20:46 elb0w -9 proper way to stop it?
20:47 hoelzro -9? how barbaric!
20:47 elb0w :P
20:47 elb0w -2 then?
20:47 hoelzro I should think that TERM or INT would
20:47 tempire_ just normal kill
20:47 tempire_ kill `cat hypnotoad.pid`
20:47 elb0w ok ty
20:47 elb0w this is fun :D
20:49 elb0w I have to restart everytime I make changes eh?
20:50 tempire_ http://mojolicio.us/perldoc?Mojol​icious/Guides/Cookbook#Hypnotoad
20:50 elb0w yeah im there
20:50 tempire_ you can reload your app without bringing it down
20:50 tempire_ it's specifically for production.  for dev, use daemon
20:50 elb0w the USR2?
20:51 elb0w ok, didnt know if that was the proper way to do it
20:51 elb0w thanks
20:55 elb0w wow this is awesome, fought with apache2 for 3 hrs couldnt get it to work, I type one command and im ready to go :D
20:58 tempire_ apache is the devil
21:04 sri USR2 is actually really really cool
21:04 sri you can do that while running an ab benchmark without losing a single connections
21:04 sri *-s
21:05 sri upgrade perl at runtime, during a benchmark, with just a single signal
21:06 elb0w Which guide should I follow if I want to build a larger app?
21:06 elb0w the growing I guess?
21:06 * sri nods
21:09 crab there should be a shrinking guide
21:13 tempire_ there needs to be a deflate command
21:13 tempire_ to deploy a full app as a lite app
21:15 yegor left #mojo
21:18 * sri deflates tempire_
21:20 tardisx joined #mojo
21:20 tempire_ thank goodness I have two handles.
21:20 crab tempire == tardisx?
21:21 tardisx O_o
21:22 tempire_ dr who is too transient for me.
21:22 tempire_ tempire_ = tempire
21:22 crab tempire and tardisx both match /^t[[:vowel:]]..i../, must be the same person
21:24 sri crab holmes
21:25 tempire_ or watson?
21:25 purl watson is, like, in YKT
21:26 tempire_ http://i.imgur.com/lZd0q.jpg
21:26 sri purl: crab is also a famous detective and related to dr zoidberg
21:26 purl okay, sri.
21:28 crab is dr. zoidberg evil?
21:30 sri http://1.bp.blogspot.com/_owBroEksMaI/SUXYZFJhYYI​/AAAAAAAAANg/Z4ctDcxFdyk/s400/design_zoidberg.jpg
21:30 sri for sure
21:30 purl like totally!
21:32 * crab wonders why peacocks are yowling outside his bedroom window at 3AM
21:43 ispy_ left #mojo
21:44 tardisx left #mojo
21:46 ispy_ joined #mojo
21:48 mattastrophe left #mojo
21:49 tardisx joined #mojo
21:58 tardisx left #mojo
22:01 perlrocks Twitter: "Started tinkering with Mojolicious. It's pretty cool!" --mattbd http://twitter.com/mattbd/status/40531834064470016
22:03 elb0w wow i love mojo
22:03 elb0w authentication is so clean
22:06 sri :)
22:09 elb0w wish I had something to build now that needed auth :P
22:13 sri hmm
22:13 * sri might have just discovered a cool syntax alternative for blocks in ep templates
22:14 kaare left #mojo
22:17 sri or actually not :/
22:17 sri <%= cache: %>...<% end %>
22:18 sri : instead of begin could have been neat
22:20 sri problem is arguments though
22:20 sri <%= form_for foo =>: %>...
22:21 sri then again, how often do we actually use helpers without arguments
22:21 sri maybe <%= form_for 'foo': %>... is all we need
22:22 * sri pokes crab
22:22 sri since your block helper idea will never work
22:29 sri btw. it won't work because most block helpers are actually dual lived, they work with and without block
22:34 mattastrophe joined #mojo
22:39 ryanc left #mojo
22:47 ZadYree Damn, mojo is fkin awesome. Thank you!
22:50 ryanc joined #mojo
23:08 tempire_ has anyone used browser console loggers in plack?
23:08 tempire_ or any other framework?
23:09 tempire_ I wonder if log messages display if there's a language compilation error in any other frameworks.
23:25 hoelzro left #mojo
23:30 tardisx joined #mojo
23:31 tardisx left #mojo
23:45 maja left #mojo
23:51 maja joined #mojo

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