Camelia, the Perl 6 bug

IRC log for #mojo, 2012-01-24

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

All times shown according to UTC.

Time Nick Message
00:00 kamu_ joined #mojo
00:20 noganex_ joined #mojo
00:57 d4rkie joined #mojo
01:20 j3nnn1 joined #mojo
01:23 kamu joined #mojo
01:25 d4rkie joined #mojo
01:27 noganex joined #mojo
01:49 mercutioviz joined #mojo
02:03 GabrielVieira joined #mojo
02:22 c joined #mojo
02:39 xaka joined #mojo
03:21 abra_ joined #mojo
03:35 noganex_ joined #mojo
03:38 Psyche^ joined #mojo
03:40 noganex joined #mojo
03:52 GitHub142 joined #mojo
03:52 GitHub142 [mojo] kraih pushed 1 new commit to master: http://git.io/iHLKWQ
03:52 GitHub142 [mojo/master] small documentation and template tweaks - Sebastian Riedel
03:52 GitHub142 left #mojo
03:52 noganex_ joined #mojo
04:31 c joined #mojo
04:37 mire joined #mojo
04:53 xaka joined #mojo
05:14 chansen joined #mojo
05:22 koban joined #mojo
05:48 lammel2 joined #mojo
06:45 AmeliePoulain joined #mojo
07:04 marcus haxxors
07:04 * marcus has turned up his font size.
07:05 marcus You can return to the host you were ssh'ed into and run "tmux -C attach" and the iTerm2 windows will reopen in the same state they were in before.
07:05 marcus this is pretty fuckin' groovy
07:17 Vandal joined #mojo
07:18 xaka marcus: screen?
07:18 purl i heard screen was at http://www.gnu.org/software/screen/screen.html or http://www.kuro5hin.org/story/2004/3/9/16838/14935 or best enjoyed wien compiled with -DHOLE or see also "screen bindings", "screen bash PS1", "screen for windows" or a bitch to use. The commandset was clearly designed to make accomplishing anything as hard as possible :) or see also tmux
07:20 xaka oh, didn't know that tmux is fork of screen
07:21 batman joined #mojo
07:29 batman joined #mojo
07:29 mire joined #mojo
07:37 batman left #mojo
07:40 batman joined #mojo
07:41 koban joined #mojo
07:56 marcus xaka: it's a screen rewrite, not a fork.
07:58 cosmincx joined #mojo
08:03 spleenjack joined #mojo
08:21 cosmincx joined #mojo
08:22 Foxcool joined #mojo
08:25 berov joined #mojo
08:35 kitt_vl joined #mojo
08:57 ki0_ joined #mojo
09:06 judofyr joined #mojo
09:12 dpetrov_ joined #mojo
09:12 dpetrov_ guys Mojo::UA is awesome!
09:13 memowe true words. :)
09:13 dpetrov_ :)
09:13 dpetrov_ no, it's really awesome
09:14 dpetrov_ Mojo::Dom++ as well
09:16 judofyr Mojo::*++ ?
09:17 dpetrov_ well that's what I've used to far
09:17 dpetrov_ but I guess
09:17 dpetrov_ :)
09:17 ki0_ joined #mojo
09:18 marcus judofyr: oh hai!
09:18 marcus judofyr: did you see your change landed last night?
09:19 judofyr yes!
09:19 marcus judofyr: also, I promised sri to force you to give feedback on request_timeout :-)
09:19 judofyr marcus: link?
09:19 purl rumour has it link is awesome
09:19 marcus to me promising? :)
09:20 judofyr to request_timeout? ;)
09:20 marcus I think this is a feature you requested just before the weekend
09:20 judofyr yeah, I see it's already in UserAgent.pm in master
09:21 marcus judofyr: http://mojolicio.us/perldoc/M​ojo/UserAgent#request_timeout
09:21 marcus yes
09:21 marcus we want to know if it works for us ;)
09:23 judofyr seems good
09:23 marcus \o/
09:23 marcus judofyr: airbrake looks great too
09:24 marcus would like a catalyst plugin as well, so I can use it with iusethis ;)
09:27 judofyr marcus: yeah, there's also an open-source alternative to Airbrake that uses the same API
09:27 judofyr errbit
09:27 judofyr runs on Heroku
09:27 judofyr although it does have some bugs :/
09:29 marcus the demo looks pretty good tho.
09:30 marcus and airbreak ain't exactly cheap ;)
09:30 judofyr exactly
09:52 niczero joined #mojo
09:56 judofyr marcus: also, I think I need to release my simple XML-tag generator
09:56 judofyr I've used it here too…
09:56 marcus :o
09:56 marcus time to register a cpan account? ;)
09:59 y0j_ joined #mojo
10:00 kitt_vl joined #mojo
10:15 bo joined #mojo
10:16 judofyr why would an exception be logged twice?
10:17 yko http://hackerne.ws/newest The Perl Foundation got $100,000 donation from the Craigslist Charitable Fund
10:18 bo Hello, I fail to follow the very first example on http://mojolicio.us/ .... I don't have any command with the name "morbo" and I don't find anything helpfull on Google about it. I am running Debian Squeeze. Can somebody give me a hint in this?
10:19 memowe bo: did you install Mojolicious?
10:19 yko bo, and which version?
10:19 bo memowe, yes! I was able to run the example by using the perl-command
10:21 bo yko, Perl is v5.10.1 ... Mojolicious I don't know... I'm using the Debian-Package
10:21 memowe Maybe the Debian package is old and doesn't contain morbo.
10:21 memowe I don't know. I installed it directly from github on my Debian.
10:21 memowe bo: how about that? It's a one-liner. :)
10:22 yko bo, you can get version of your Mojolicious by running `mojo version` in terminal
10:23 bo ahh...
10:23 bo Perl        (5.010001)       Mojolicious (0.999926, Snowman)
10:24 memowe OK, that's very old.
10:24 memowe 1.0 was ... christmas 2010?
10:25 bo damn :-P  Well it's debian stable. Ok, I will ask the guy hwo is going to teach me Mojolicious what version I need. Thank you guys for help
10:25 memowe bo: it's very easy to install the latest version!
10:26 bo memowe, but I think I then better also have Perl 5.12... so I need the replace the whole Perl!
10:26 memowe No, not really.
10:27 dpetrov_ use perlbrew if you go that way
10:27 memowe I think 5.10.1 is enough for the latest version.
10:28 dpetrov_ yep I got 5.10.1 as well
10:28 memowe $ cat code/mojo/Makefile.PL | grep 'requires.*perl' requires  => {perl => '5.010001'},
10:29 memowe You don't need to build a new perl now.
10:29 memowe But if you want to, look at 5.14 :)
10:29 bo mammamia :-P
10:30 bo dpetrov_, thx for the Tipp about perlbrew
10:30 memowe You could just use this onliner, which will install the latest CPAN version of Mojolicious and nothing else:
10:30 memowe $ sudo sh -c "curl -L cpanmin.us | perl - Mojolicious"
10:31 memowe Maybe you want to delete that Debian package first.
10:31 dpetrov_ I usually like to install them locally (using local::lib)
10:32 dpetrov_ so if you fuck up something you can always rm -rf ~/perl5
10:32 memowe :)
10:33 memowe My apache sometimes uses Mojolicious for CGI scripts, so I need it global.
10:33 dpetrov_ so making it one liner will be: curl -L http://cpanmin.us | perl - -l ~/perl5 App::cpanminus local::lib Mojolicious
10:33 * dpetrov_ now hides
10:33 dpetrov_ :p
10:33 bo I'm right now trying this: dh-make-perl --build --cpan Mojolicious
10:34 dpetrov_ memowe: yep in that case global is better
10:35 gabriel joined #mojo
10:35 bo dpetrov_, ok... I'll probably use your onwliner. That one seems very smart
10:36 robins joined #mojo
10:37 dpetrov_ memowe: niiianina :D
10:38 dpetrov_ bo: well you'll need one more after that: echo 'eval $(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)' >> ~/.bashrc
10:38 Debolaz joined #mojo
10:38 diegok joined #mojo
10:38 mmcleric_ joined #mojo
10:39 bo dpetrov_, I decided to use my approach:  "dh-make-perl --build --cpan Mojolicious" gives me a Debian package named "libmojolicious-perl_2.45-1_all.deb" which I can install with "sudo dpkg -i libmojolicious-perl_2.45-1_all.deb"
10:40 dpetrov_ if that works better for you :)
10:40 bo dpetrov_, it overwrites the stable package of version 1 system-wide... but if I want to reverse I just can unistall und reinstall with the package manager
10:40 bo thx anyways!
10:40 jzawodn_ joined #mojo
10:40 foomator_ joined #mojo
10:40 tty234_ joined #mojo
10:40 dpetrov_ sure you are welcome
10:41 spacebat_ joined #mojo
10:41 ccushing joined #mojo
10:41 _[R] joined #mojo
10:41 omega_ joined #mojo
10:41 auggy_ joined #mojo
10:41 mikegrb_ joined #mojo
10:42 memowe bo: have fun with mojolicious! :)
10:42 dpetrov_ btw i've nevered use mojolicious but mojocasts looks really helpful
10:43 sherr_ joined #mojo
10:43 dpetrov_ s/nevered/never/
10:43 reyjrar_ joined #mojo
10:43 kthakore_ joined #mojo
10:43 Quai_ joined #mojo
10:43 bo memowe and dpetrov_ , I will have a lecture next saturday about it from a Perl user group.... That is why I'm dealing with those installation issues
10:44 dpetrov_ really? thats awesome
10:44 memowe cool, where?
10:44 purl cool, is it a perl job?
10:44 bo well... morbo is working now... I can finally follow the first example on the website... yeeeeeeehaaa
10:44 memowe \o/
10:45 janus` joined #mojo
10:45 bo purl, memowe dpetrov_ - Yes I'm working for a guy close to Frankfurt (Germany) and the lecture will be in Hamburg... heard that it is a beautifull City, so I'm looking foreward to the weekend
10:45 purl OK, bo.
10:45 dpetrov_ bo: purl is bot :)
10:45 dpetrov_ awesome
10:46 dpetrov_ I've heard that also
10:46 bo purl, never mind....
10:46 purl bo: i'm not following you...
10:46 dpetrov_ (but never been there so far)
10:47 jwang joined #mojo
10:47 y0j_ joined #mojo
10:48 rafl joined #mojo
10:48 marcus joined #mojo
10:48 plu joined #mojo
10:51 bo well... this is strange now... how can this be?
10:51 bo $ perl --version | head -2 | tail -1 | cut -d\(  -f1 && mojo version | grep Perl
10:51 bo This is perl, v5.10.1
10:51 bo Perl        (5.010001, linux)
10:52 bo perl --version and mojo version tell me different versions of Perl!
10:52 j3nnn1 joined #mojo
10:52 memowe No.
10:52 memowe 5.010_001 is 5.10.1
10:53 bo autsch >_<
10:53 memowe For our non-german friends: "ouch" ;)
10:57 plu joined #mojo
10:57 memowe bo: see you on YAPC::EU?
11:04 bo in August this year in Frankfurt?
11:04 bo if my Boss is happy with me... probably yes :-)
11:05 bo (I'm kind of new to the community and I only work 10h per week in perl)
11:07 memowe Das wird schon klappen. :)
11:07 bo memowe, I will be in Erlangen in March... that is what I know for now
11:08 memowe Erlangen is too far away for me, but YAPC, I mean, ... I think it's a must.
11:08 bo memowe, I'm kind of sure that you know Renée... don't you?
11:08 memowe For what values of "know"? ;)
11:08 memowe I know his name and follow him on twitter.
11:08 memowe Query? :)
11:09 bo memowe, sry... I'm going for lunch soon I think
11:09 dpetrov_ mahlzeit
11:13 bo bb
11:16 spleenjack left #mojo
11:19 briang joined #mojo
11:40 spleenjack joined #mojo
12:55 berov joined #mojo
12:55 dpetrov_ why does Mojolicious require perl5.10.1?
12:55 dpetrov_ or better can I install Mojo::DOM on 5.8.8
12:58 judofyr modern software depends on modern software :)
12:58 dpetrov_ :)
12:58 dpetrov_ sure I don't argue with that
12:59 dpetrov_ but sometimes stupid hosting depends on old software
13:04 Akron joined #mojo
13:06 Akron dpetrov_: There should be now a smart matcher here and there - this won't run with perl 5.8 anymore.
13:06 dpetrov_ :)
13:06 dpetrov_ okey thanks for sharing
13:06 dpetrov_ I'll brew a 5.12 than
13:06 Akron Awesome how many new users come from the Mojocasts! tempire++
13:08 dpetrov_ I'm more catalyst user to be honest
13:08 cosmincx joined #mojo
13:08 dpetrov_ but the DOM and UA are awesome (as I already said) :D
13:09 Akron You are _still_ a Catalyst user.
13:10 dpetrov_ btw tempire++
13:10 dpetrov_ the casts are really cool
13:18 cosmincx joined #mojo
13:19 sri moin
13:36 judofyr sri: I think I'll release a Airbrake plugin for Mojolicious soon! http://airbrakeapp.com/pages/home
13:36 sri \o/
13:36 sri but first tell me about request_timeout!
13:36 jnap joined #mojo
13:37 judofyr it seems to solve my problem; well, other than it splits it up into connection_timeout and request_timeout while I really just care about "full request-response-timeout"…
13:39 dpetrov_ that looks a little bit like P::Middleware::Debug
13:40 sri judofyr: you're welcome to try and turn it into a full request timeout
13:53 r0b3rt Using Apache CGI, works OK and response type is text/html.  Using Apache mod_perl, response type changes to text/plain.  Need to investigate more...
13:53 judofyr sri: something like this? http://hastebin.com/duwonegato.diff
13:54 judofyr sri: I moved the timeout to the bottom of _start
13:54 judofyr not quite sure how I can test long connection delay…
13:55 cosmincx joined #mojo
13:55 sri judofyr: congratulations, you broke everything :)
13:55 judofyr I did? :(
13:55 judofyr nice
13:56 judofyr are you sure? the tests seem to run…
13:56 judofyr s/run/pass/
13:56 sri it works by closing the connection and hijacking the user agent teardown code… in your version the connection does not exist yet
13:56 sri it only works because you're not testing your new functionality
13:56 judofyr I thought so :)
13:57 sri there is pretty much no chance you can do it without knowing exactly what's going on in the whole module
13:58 sri there are many many complications
13:58 judofyr :(
13:59 sri if it was easy i would have done it
13:59 sri you're also ignoring redirects, for a full timeout they need to be included too
14:00 judofyr now you're talking like a guy who wants stable and consistent software
14:00 judofyr HAVE A LITTLE FAITH IN WEBSCALE PLEASE
14:01 judofyr IT'S OKAY IF THE WORLD BREAKS DOWN EVERY NOW AND THEN
14:01 * sri pokes judofyr in the eyes
14:26 amoore joined #mojo
14:35 koban left #mojo
14:42 gabriel joined #mojo
14:50 sri judofyr: i might be wrong
14:51 judofyr sri: SEE, WEBSCALE IS FUN!
14:51 judofyr okay?
14:51 purl Whatever you say, judofyr.
14:51 sri your version actually works
14:51 judofyr :D
14:52 judofyr did you manage to write a proper test for it?
14:52 sri nope, not sure it can be done portably
14:52 sri but _error() does work during connect too
14:53 sri i was still thinking about my previous version that used $loop->stream()...
14:53 judofyr so, patch accepted?
14:54 sri still thinking about it
14:54 purl thinking about it is the hard part, and I want to do that properly.
14:54 sri it does still reset for redirects
14:54 judofyr ah, true :/
14:54 judofyr oh, btw: is the weaken here correct?  http://hastebin.com/duwonegato.diff
14:54 sri it is
14:54 judofyr e.g. does the ref count increase on "sub { $foo } if 0"
14:56 sri oh that one
15:00 inokenty joined #mojo
15:00 sri that one needs to be fixed, but while looking at it i've found another leak :S
15:02 judofyr outside of my patch? :(
15:02 sri yes
15:03 judofyr well, that certainly isn't my fault…
15:03 judofyr I hope
15:03 sri i'll blame you anyway ;p
15:03 judofyr I bet you do, MR. HATES WEBSCALE
15:05 judofyr stupid Perl. LEARN 2 COLLECT GARBAGE
15:27 baton8_ joined #mojo
15:27 judofyr sri: what should I read to learn how to publish stuff on CPAN?
15:28 sri i think we had a section on mojolicious plugins that covers the essentials
15:29 sri for everything else just bug marcus :)
15:30 judofyr :)
15:30 diegok judofyr: there a tons of tools to help you... but probably "bug marcus" is a good advice :)
15:30 judofyr mental note: bug marcus
15:31 diegok judofyr: I'm using dzil and after some time of finding my optimal options I'm loving it.
15:43 kamu joined #mojo
15:45 olav joined #mojo
15:49 dpetrov_ joined #mojo
15:55 judofyr diegok: dzil certainly looks nice
15:56 diegok judofyr: I love Git::NextVersion plugin
15:56 diegok https://github.com/diegok/res​que-perl/blob/master/dist.ini
15:56 mercutioviz joined #mojo
15:58 vel joined #mojo
15:59 judofyr diegok: nice
16:04 crab i remember dzil. i remember having to install about a dozen plugins.
16:06 judofyr crab: sounds like anything on CPAN…
16:10 sri judofyr: it's another layer, you need to install a dozen modules so it can install to install another dozen :)
16:10 sri s/install/tell you/
16:10 judofyr :)
16:10 sri *brainlag*
16:10 judofyr sri: I think I'll stick with "whatever Mojo does"
16:12 GabrielVieira joined #mojo
16:12 judofyr sri: also, is it considered "bad" to depend on Mojo::Base for non-Mojolicious code (or in this case: Catalyst-plugin)
16:13 sri in the case of Catalyst, i think it would
16:13 judofyr well, I guess I won't need so much Mojo::Baseiness anyway
16:13 sri catalyst is moose based, so you might as well use that
16:13 judofyr ah, but I want to write something that works in both Mojo and Catalyst :)
16:14 judofyr i.e. some common stuff + two different plugins
16:14 judofyr (this is for Airbrake)
16:14 sri btw. in after_dospatch you won't be able to catch all exceptions
16:15 judofyr generating the XML to send to Airbrake is something that both plugins must do (e.g. turn a stack trace into the XML-structure)
16:15 judofyr sri: I'm listening to both app->log and after_dispatch
16:15 sri since we usually have an event loop there are some that happen outside any request/response transaction
16:15 sri ah good
16:16 sri error log should get all
16:16 judofyr and there's a 2-second timer on the app->log. so if it gets handled in after_dispatch, it's never handled in app->log
16:16 sri but watch out for recursion
16:16 sri user agent errors go to the error log too ;p
16:17 judofyr oh
16:17 judofyr good catch…
16:17 judofyr hm… how would I deal with that? :/
16:17 * sri has no idea
16:18 judofyr I can't turn of errors on a ua-object?
16:18 judofyr off*
16:18 judofyr an*
16:18 sri you can
16:18 sri remove the error event temporarily
16:19 sri or if you use a custom useragent, don't register one
16:19 sri https://github.com/kraih/mojo​/blob/master/lib/Mojo.pm#L19
16:19 judofyr ah, of course. using a new Mojo::UserAgent is probably best, yeah
16:19 sri that's where they are connected
16:20 judofyr no point of making the error-logging and real application more connected than necessary
16:24 judofyr sri: here's the current version of the plugin btw: http://hastebin.com/jenecejahi.pl
16:24 judofyr sri: 24 - 59 is a simple XML-tag-generator (which I plan on extracting out)
16:25 sri neds more sugar coating
16:26 judofyr what part?
16:26 purl part is to move as much of the "how much input string for unpacking do we need?" logic into 1 place
16:26 sri doctype 5 => sub {...};
16:26 judofyr XML. not HTML.
16:26 sri xml {…}
16:27 sri tag also seems a bit tedious
16:27 judofyr for XML it's the simplest solution
16:28 judofyr I want this to be just plain and simple
16:28 sri hmm
16:28 judofyr maybe I'll add some sugar on top (for HTML)
16:28 judofyr with auto-defining HTML5 tags: html => sub { }
16:28 judofyr or whatever is the best approach
16:29 judofyr sri: I've already implemented something very similar (but with more features) in Ruby: https://github.com/camping/mab
16:30 judofyr but the code I have now (in Perl) works at least
16:31 sri that looks a lot better
16:31 judofyr currently using it (in copy-paste form) in two projects…
16:32 judofyr yeah, I guess I could add prototypes to get "html { … }" to work too
16:32 sri it's annoying that AUTOLOAD in perl requires () after the sub name
16:32 judofyr I prefer to explicitly define the tags…
16:33 judofyr (I don't use method_missing in in Mab)
16:33 sri :o
16:33 judofyr sri: https://github.com/camping/mab/b​lob/master/lib/mab/mixin.rb#L180
16:34 d4rkie joined #mojo
16:34 judofyr (warning: the code in that file is extremely ugly and tricky to understand; mainly for performance reasons)
16:34 sri https://metacpan.org/module/Template::Declare
16:34 sri reminds me a lot of that
16:35 judofyr yeah
16:35 judofyr that's why I wanted to keep my tag-function very simple
16:35 judofyr maybe just implement indentation support
16:36 judofyr sri: suggestion for name?
16:36 sri Template::Mab
16:36 judofyr XML::Generate::Tag or something is probably the "correct name"
16:36 judofyr hm… does that imply I need to implement the other cool stuff in Mab.rb too? :P
16:36 * sri nods
16:37 judofyr sri: what does this little snippet provide over Template::Declare?
16:37 sri you tell me
16:38 judofyr sri: just wondering: why do you want Template::Mab when there's already Template::Declare?
16:38 sri i don't really
16:39 * sri is more of a real template person
16:39 GabrielVieira joined #mojo
16:40 judofyr Mab.rb is pretty cool because you can override the methods though. e.g. you can override "form" so that if the :method-attribute is PUT/DELETE, it inserts an <input name="_method">
16:40 judofyr example: https://gist.github.com/1311840
16:47 judofyr sri: I'm just trying to turn this away from a "template-ish language" and more like a "just generate some XML dammit"
16:48 xaka joined #mojo
16:49 sri GENERATE SOME COFFEE DAMMIT!
16:53 judofyr sri: considering it can only generate XML tags, is XML::Tag a fair name? I feel it might be a little too "wide"…
16:53 judofyr naming things is hard :(
16:55 sri you sure you're asking the right person?
16:55 d4rkie joined #mojo
16:55 sri i use cutesy names for all my stuff after all ;p
16:56 judofyr I came up with Parallol
16:56 judofyr can it be worse than that?
16:57 sri when i hear xml i always think tag soup
16:57 sri so my suggestion is Minestrone
16:58 sri Minestrone - It's tag soup basically
16:58 judofyr hm
16:59 judofyr never actually heard of Minestrone, but I like it :)
16:59 sri "judofyr: i should have asked marcus"
16:59 mire joined #mojo
16:59 sri WAT
16:59 sri everybody knows minestrone
17:00 judofyr heh
17:00 judofyr here we have beta soup: http://www.matvareguiden.no​/bilder/Toro_betasuppe.JPG
17:01 sri http://en.wikipedia.org/wiki/Minestrone # "Minestrone is one of the cornerstones of Italian cuisine, and is almost as common as pasta on Italian tables."
17:01 sri /o\
17:03 judofyr sri: feature request (might have mentioned this before): "@@ /foo.bar" marks a static file in Lite
17:04 judofyr regardless of the extension
17:04 judofyr right now it seems a little random (whether a file is a static file or a template)
17:04 sri one extension = static, double extension = template
17:05 judofyr does style/foo.css work?
17:05 sri i'd expect it to
17:06 judofyr okay
17:07 judofyr well, it just seemed cleaner; and easier to see what's static and what's template
17:08 sri http://news.cnet.com/8301-1001_3-57364563-92/sta​ndards-group-greases-the-skids-for-googles-spdy/ # ohoh, looks like we may have to consider spdy support after all
17:08 judofyr how does WebSocket over SPDY works?
17:09 judofyr I mean, SPDY already provides WebSocket-ish-features, but who do you use them from JS…
17:09 sri you don't
17:09 sri spdy is not used that way
17:09 judofyr hm? not?
17:10 sri it is a transparent acceleration layer for http
17:10 sri when the server pushes data it is to the browser, not javascript
17:10 sri you can push images and the like in advance, the browser caches it then
17:11 judofyr ah, so the SPDY-pushing is not like a WebSocket?
17:11 sri but it's all transparent from the browser apps perspective
17:11 sri nope
17:12 judofyr so, what's the use case for that? the server can send files it knows the client is interested in?
17:12 sri ye
17:12 sri elimiate roundtrips
17:12 judofyr ah
17:13 judofyr alright; gotta go
17:13 judofyr see ya later pirate
17:15 d4rkie joined #mojo
17:34 ccushing if respond to has a content type but a request has a different accept, why is the response 204, instead of 406 not acceptable?
17:40 batman joined #mojo
17:42 batman joined #mojo
17:56 grim_fandango joined #mojo
18:03 diegok ccushing: what?
18:05 diegok 406 is just that: we don't have nothing for your accept. 204 is just ok, but no content.
18:07 ccushing diegok mojo sends a 204 when using a respond_to when content-type in accept is not found in the respond_to
18:07 ccushing it would seem like it should send a 406
18:08 diegok ccushing: you can change that I think...
18:09 ccushing yeah I can override it
18:09 diegok just setting the any to generate a 406
18:10 diegok doing it by default... not sure why sri have chosen 204 instead... I think I've saw this same error somewere else.
18:10 tempire sri: over the years, have you encountered a noticeable response to yapc presentations for your frameworks?
18:11 sri tempire: not really
18:11 tempire I'm wondering whether talks really make all that much difference
18:11 sri i'm sure they do
18:11 diegok tempire: last YAPC::EU mojolicious presentation by marcus was crowded
18:12 * diegok my train has arrived barcelona. Bye!
18:12 * sri waves
18:12 tempire it seems strange to me that an intro talk would be useful at yapc
18:13 tempire And especially for mojolicious, since the mojocasts are available.
18:13 mattastrophe joined #mojo
18:13 * sri shrugs
18:13 tempire though maybe for raising awareness
18:13 * tempire tries to figure out whether giving a talk would be worth the time
18:14 sri it would certainly
18:14 sri about what… i do not know
18:15 tempire I wonder if it would be useful to show some mojocasts, followed by answering questions after each video.
18:15 sri don't think they like that
18:15 memowe I think it would be much more motivating if you demonstrate it live.
18:15 tempire or if that would even be accepted
18:15 tempire yeah
18:16 tempire I could give a talk, or put that time and effort into making more mojocasts
18:26 GabrielVieira joined #mojo
18:28 preflex joined #mojo
18:35 sri tempire: hard to say which will be more effective, but my guess would actually be on a talk that makes more people aware of the screencasts :)
18:36 gshank joined #mojo
18:46 sri hmm
18:46 sri tempire/marcus/crab: should request_timeout cover establishing the connection too, so it overlaps with connect_timeout?
18:58 batman joined #mojo
19:07 preflex_ joined #mojo
19:14 sri well, if nobody cares i'll just ignore the patch
19:18 tempire I haven't been paying attention to that conversation.
19:19 tempire where do I look?
19:19 r0b3rt Do file input form fields show up in $c->req->params?
19:21 sri tempire: conversation between me and judofyr earlier
19:21 sri http://hastebin.com/duwonegato.diff
19:22 sri wider scope for request_timeout
19:22 sri (connect timeout)(request timeout) vs ((connect timeout) request timeout)
19:24 sri the patch is not that important, it's broken anyway, but the decision about the scope of the timeout matters
19:24 * tempire is sad that the conversation is not consolidated into an issue
19:25 * sri too
19:25 sri my recent experiments with issues wasn't very successful though
19:25 sri weren't
19:27 sri https://github.com/kraih/mojo/issues/263 # one example
19:27 marcus Hey
19:27 sri i'll let someone else make the first step now when it comes to opening issues
19:29 sri we also have two open issues nobody touched in a week
19:35 tempire the issues thing can still work.  people just need to be reminded.
19:35 tempire until it becomes convention
19:37 * sri shrugs
19:37 * tempire shakes
19:40 marcus Sri: I think it should cover both.
19:41 sri WORD
19:41 * marcus is still waiting for github to release issues for ipad.
19:51 kitt_vl joined #mojo
19:51 GitHub83 joined #mojo
19:51 GitHub83 [mojo] kraih pushed 1 new commit to master: http://git.io/anuA-w
19:51 GitHub83 [mojo/master] extended request_timeout to also cover establishing a connection - Sebastian Riedel
19:51 GitHub83 left #mojo
19:53 tempire oh
19:53 tempire yes, I support it including the connection as well
19:54 marcus Sri: why were you unhappy with issue 263? Seemed like you got quite some feedback on it?
19:55 sri marcus: yes, but no core-dev participation
19:55 tempire I generally don't respond if the conversation is already going in a positive direction.
19:55 tempire unless I feel very strongly about it
19:56 sri i'm trying to find ways to open up the development process more
19:57 tempire fyi: a lot of my efforts are going into the studying of design patterns, and information theory.  At one point, you're going to see a deluge of contributions regarding everything I've learned.
19:57 marcus Sri: we tend to contribute here tho.
19:57 tempire I've already got some awesome ideas, but I'm not sharing until they're fully developed.
19:58 marcus I've got lots of halfbaked horrible ideas, but I am sharing them anyways.
19:58 batman joined #mojo
19:59 marcus Speak of the devil...
19:59 purl Chuck?
19:59 sri mmmmm…. halfbaked…
19:59 marcus Purl: no, batman.
19:59 purl marcus: sorry...
19:59 * sri goes to hunt for cookies
19:59 * tempire will not abandon sri
19:59 tempire HUGS
20:00 sri *puppy eyes*
20:00 * marcus will not abandon his cookies.
20:00 sri http://www.omgsocute.com/wp-content/u​ploads/2009/03/3298_00030262-copy.jpg
20:17 GabrielVieira Hey, can I have routes created from another file or route to another file using mojolicious::lite?
20:27 tempire GabrielVieira: you can embed other applications, if that's what you're asking
20:27 tempire http://mojolicio.us/perldoc/Mojolicious​/Guides/Routing#Embedding_applications
20:28 tempire or http://mojolicio.us/perldoc/Mojol​icious/Guides/Cookbook#Embedding
20:31 Foxcool joined #mojo
20:31 GabrielVieira i'm trying something like caller->get('/search' => sub {} ); in AppName::Search not in my app.pl which is Mojolicious::Lite
20:32 GabrielVieira opening the links
20:43 GabrielVieira tempire: i think can be it, but I have appl.pl (Mojolicious::Lite) and lib/AppName/Search.pm, how can I route?
20:43 GabrielVieira detour('appname::search#')?
20:47 lukep joined #mojo
20:50 kaare joined #mojo
21:03 marcus Bootstrap 2 ready for testing \m/
21:07 mateu joined #mojo
21:08 mateu left #mojo
21:13 kaare joined #mojo
21:21 kaare joined #mojo
21:22 kaare_ joined #mojo
21:26 xaocon joined #mojo
21:32 xaocon I'm a perl n00b and am trying to make a couple of changes to someone elses mojo code. I really just want check and see if a use has logged in to a php webapp on the same server. I have worked out that code but I haven't figgured out how to get mojo to run the check. I'm trying to use under inside the startup sub just above some routes.
21:35 xaocon getting some of the code to pastebin.
21:40 xaocon http://pastebin.com/p4XKt6uC
21:42 xaocon I've tried both under blocks seperate of each other with and without the my $self->shift; code.
21:49 alnewkirk joined #mojo
21:52 mire joined #mojo
22:05 marty xaocon: sounds like you are looking for bridge.  http://mojolicio.us/perldoc/Moj​olicious/Guides/Routing#Bridges
22:07 xaocon thanks marty, ill look there
22:18 baton8 joined #mojo
22:49 Fried joined #mojo
22:50 jnap joined #mojo
23:03 chansen joined #mojo

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