Camelia, the Perl 6 bug

IRC log for #mojo, 2013-07-29

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

All times shown according to UTC.

Time Nick Message
00:08 asarch joined #mojo
00:44 shmuel joined #mojo
01:55 bluescreen__ joined #mojo
01:58 bluescreen joined #mojo
02:03 d4rkie joined #mojo
02:06 bluescreen__ joined #mojo
02:06 bluescreen joined #mojo
02:14 espent joined #mojo
03:26 basic6_ joined #mojo
04:09 hesperaux joined #mojo
04:31 fhelmber_ joined #mojo
04:35 shmuel joined #mojo
05:18 Meiermann joined #mojo
06:13 denisboyun joined #mojo
06:26 Mike-PerlRecruiter_ joined #mojo
06:26 rem_lex| joined #mojo
06:45 basiliscos joined #mojo
06:51 rem_lex joined #mojo
07:11 trone joined #mojo
07:12 denisboyun joined #mojo
07:21 denisboyun joined #mojo
07:24 wk joined #mojo
07:24 olav joined #mojo
07:27 nicolaas joined #mojo
07:52 Vandal joined #mojo
08:10 denis_boyun joined #mojo
08:20 rem_lex|pivo joined #mojo
08:24 plu joined #mojo
08:29 jargan joined #mojo
08:52 jzawodn joined #mojo
08:52 Mad_Dud joined #mojo
09:03 aleksey joined #mojo
09:40 ver joined #mojo
09:49 good_news_everyone joined #mojo
09:49 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/Ys8-yA
09:49 good_news_everyone mojo/master 52990dc Sebastian Riedel: improved Mojo::Server to use FindBin more defensively (closes #518)
09:49 good_news_everyone left #mojo
09:54 bowtie_ joined #mojo
10:17 maxhq joined #mojo
11:06 denisboyun joined #mojo
11:12 good_news_everyone joined #mojo
11:12 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/UndHxg
11:12 good_news_everyone mojo/master f048068 Sebastian Riedel: reuse more code in Mojo::DOM
11:12 good_news_everyone left #mojo
11:24 trone joined #mojo
11:32 denis_boyun joined #mojo
11:39 Vandal there is a man can't install Mojolicious via CPAN: You tried to run a test without a plan at t/mojolicious/renderer.t line 9.
11:39 Vandal do you know why it can be?
11:49 dsteinbrunner joined #mojo
11:52 olav Hi guys.
11:54 olav I seem to be doing something, that trips up the Mojo router.
11:54 olav Sometimes routes work, sometimes they dont.
11:55 olav Any ideas how i can debug that?
11:58 batman how does your route look like? does it have any bridges?
11:59 olav It has detours
12:00 olav I have a litle longer explanation here: https://gist.github.com/phluks/6103066
12:00 olav 60'ish lines - not very dense
12:03 sri olav: why are you using detour?
12:04 olav I would like to have a way to manage the sub sections of the resources as somewhat separte stuff
12:05 olav than can be updated independently
12:06 olav Thats how Ive understood it.
12:08 olav Im not saying thats the right way.
12:12 good_news_everyone joined #mojo
12:12 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/cZjZxA
12:12 good_news_everyone mojo/master 6850250 Sebastian Riedel: fixed partial route handling in routes command
12:12 good_news_everyone left #mojo
12:13 sri at least you've found a small bug
12:13 olav Hum, I suppose I should get the latest update
12:14 sri it won't help you, i have no clue what your app actually does
12:14 sri it's just the route list
12:14 olav Oh, I see
12:15 sri side note... if i don't understand what your routes do, you might be in trouble
12:17 sri oh shit, you're actually using mod_perl too
12:17 sri you're really really screwed
12:17 olav Yes. You not like?
12:17 olav it should work out of the box :-)
12:17 sri i doubt very much that you'll find anyone able to help you with that
12:18 olav You suggest I run it stand-alone?
12:20 olav How would you do it?
12:23 olav My intention is to make something like this: <url>/<app>/<controller>/
12:26 marty o/
12:26 marty olav:  http://mojolicio.us/perldoc/Mojoliciou​s/Guides/Routing#Special_stash_values
12:28 olav Are you saying that the <app> part should be a Controller rather than a Mojolicious?
12:29 marty olav:  also this..   http://mojolicio.us/perldoc/Mojoliciou​s/Guides/Routing#Special_stash_values  and this.. http://mojolicio.us/perldoc/Mojolicious​/Guides/Routing#Embedding_applications
12:31 marty olav:  like sri said, it's hard to tell what you are trying to do.  But most certainly, getting rid of mod_perl will help.
12:31 mrphilov joined #mojo
12:31 * sri wonders if it would make sense to extract this code into a route method :S https://github.com/kraih/mojo/blob/maste​r/lib/Mojolicious/Command/routes.pm#L47
12:32 sri perhaps $route->explain; or so
12:32 sri that might be the most ugly code in all of mojolicious atm
12:33 sri trying to explain a route with a pseudo regex
12:33 olav Thanks. The guide mentions detour, which was what Ive tried.
12:34 marty haha, that looks like the majority of my code atm.   :)
12:35 jberger joined #mojo
12:35 sri advantage would be that $route->explain is easily testable... disadvantage is that i have no clue WTF the regex is actually supposed to mean...
12:37 olav Oh, dear. I wonder if it would make sense to dump the children of the routeses, Maybe they get currupted.
12:42 sri no clue how to illustrate how routes match differently though
12:46 btyler joined #mojo
12:50 ghandi|work joined #mojo
12:53 ghandi|work Hi There! When doing multipart streaming uploads (like in the cookbook) i can't access the param-Methods to get the Upload-Filename, but have to parse the content-disposition-Header of the Part myself?
13:09 crab a lot of people spell gandhi as ghandi
13:11 olav maybe this guys name is actually ghandi?
13:11 crab sure, maybe. i was just making a general observation.
13:15 ghandi|work i've chosen ghandi with the knowing of the real spelling to differentiate myself. ;)
13:16 ghandi|work espacially 10 years back when playing Counterstrike with this nickname, things were funny :D
13:17 olav Don't bring non-violence to a gun-fight ... or something :-)
13:20 asarch joined #mojo
13:22 d4rkie joined #mojo
13:30 jberger Hehe
13:33 SSPL joined #mojo
13:34 DMO joined #mojo
13:34 btyler joined #mojo
13:36 DMO Hi, can someone please explain the basic difference between Catalyst and Mojo? - I read the person who wrote Catalyst started Mojo, what was the reason?
13:36 batman basic difference to me is that mojo just works, while catalyst doesn't.
13:36 sri http://mojolicio.us/perldoc/Mojolici​ous/Guides/FAQ#How_does_Mojolicious_​compare_to_other_Perl_web_frameworks
13:37 batman at least catalyst was missing a lot of features (like session store) when i switched.
13:39 DMO It seems to be extremely similar - stash, context, params, routing, response (render) , I've built an app with Catalyst which includes sessions, must have been added since you last used it?
13:39 DMO I'm curious why the developer of catalyst dumped it and started Mojo?
13:40 sri because i couldn't change catalyst as much as i wanted to without upsetting people
13:41 DMO so the changes you wanted to make would have broken backwards compatibility so you started a new framework?
13:41 sh4 joined #mojo
13:42 DMO Mojo website claims to be fully Unicode supported, is it still based around DBI for DB access?
13:43 Vandal it doesn't have DB access
13:44 DMO so DBIC isn't integral to the framework like Catalyst appears to be
13:44 sri it's complicated, at the time there were also different opinions colliding, and i wasn't as confident about which direction to go as i am now
13:44 PerlJam DMO: DBIC isn't integral to Catalyst.  (I use Catalyst all the time without DBIC)
13:45 DMO Catalyst would like you to use DBIC , I know I get enough of a bashing from MST about it!
13:45 sri DMO: i'm also the author of Mango... go figure https://github.com/kraih/mango
13:45 marty Mango!
13:46 sri i don't really care what model layer you use, Mango is for myself! ;p
13:46 DMO The problem I have is I'd like to understand ORM/DBIC but I have found serious problem with DBI DBD::ODBC as I run on a windows platform MS SQL2008 R2
13:47 * sri runs away screaming
13:47 DMO DBI is corrupting Unicode chars when doing auto convert from UCS2 -> UTF16, I just wondered if Mojo didn't suffer from this Unicode issue?
13:47 doby joined #mojo
13:48 sri mojolicious doesn't magically make unicode problems go away, you still have to understand how unicode works in perl
13:48 PerlJam DMO: you did file bug reports on that, yes?
13:50 DMO I've wrote my own SQL wrapper using Win32::ODBC which solved the problem and wrapped it up in a Catalyst Model, - no didn't report a bug, not sure how or to whom
13:51 DMO OK thanks sri, appreciate your input
13:52 PerlJam .oO( "runs away screaming" had to have been the most useful input ;)
13:53 DMO I've gotten used to that response when I mention I run perl completely over Windows , along with MySQL / Worpress and anything else *nix ;-)
13:54 bobkare I had to work with mssql a few years ago, ended up with some really horrible hacks to get encoding through. I think I did some hack like hexencoding everything for transfer and decoding again on the server side, nothing else seemed to work
13:55 gryphon joined #mojo
13:56 DMO thanks bob, nice to know it's not just me then!  - I think I'll stick with Win32:: ODBC , as they say if it aint broke!
13:56 sri mongodb deserves praise there, never any encoding issues
13:57 olav Im off. Thnx guys
13:57 bobkare wouldn't have been an option for me anyway, the perl side of it ran on linux
13:57 bobkare but sure, if it works then it's probably a much nicer solution than my hack anyway
13:58 bobkare Getting encoding to work with dbi and postgresql isn't hard either
14:00 DMO sri have you ran mongo against MS SQL ?
14:00 DMO I assume it required Mojo to be installed?
14:01 sri http://www.mongodb.org
14:02 DMO OIC :  leading NoSQL database
14:03 bluescreen joined #mojo
14:22 denis_boyun joined #mojo
14:35 ryozi joined #mojo
14:58 jberger sri: btw my tiny mango odm is now powering my proof of concept site for my friend
14:59 jberger Alegendofsomesort.com
14:59 sri jberger: shut up and show us
14:59 jberger It needs lots of doc but that's coming soon
14:59 jberger ;-)
15:00 sri only async odm i know so far is mongoose
15:01 jberger Mine is blocking for now but non is always on my mind
15:01 sri :o
15:02 sri http://mongoosejs.com # in case you've not seen it yet
15:02 jberger I have heard of it but yeah I should look more closely
15:09 bluescreen joined #mojo
15:14 delias joined #mojo
15:29 Britzel joined #mojo
15:32 arthas joined #mojo
15:52 migo joined #mojo
16:06 good_news_everyone joined #mojo
16:06 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/J0VAiA
16:06 good_news_everyone mojo/master db1c60a Sebastian Riedel: show how to pluck attributes
16:06 good_news_everyone left #mojo
16:08 sri hmmmm
16:09 sri x('<p><b>test</b></p>')->at('b')->wrap('i')
16:09 sri wonder if something like that would make sense
16:11 sri i guess that operation is uncommon enough to be expensive
16:13 Britzel_ joined #mojo
16:44 maxhq joined #mojo
16:48 dhg joined #mojo
16:49 maxhq joined #mojo
16:54 maxhq joined #mojo
16:55 jankel joined #mojo
17:21 jast joined #mojo
17:23 bluescreen joined #mojo
17:50 batman is there a way to test ->element_exists('input[value=""]') ?
17:50 batman looks like "" is not supported...
17:59 sri batman: is that a valid selector?
17:59 batman not sure actually :/
17:59 sri you should make sure
18:02 batman does it help if it works in jquery? :)
18:02 batman sri: $('input[value=""]').length == 2 # with my dummy test
18:04 batman http://www.w3.org/TR/css3-selec​tors/#attribute-representation <-- not sure why it should't be valid...
18:07 PerlJam I don't know .... "Also if "val" is the empty string, it will never represent anything."  could be taken to mean that it never matches.
18:08 sri batman: ok
18:09 good_news_everyone joined #mojo
18:09 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/AJTxOg
18:09 good_news_everyone mojo/master 310a98a Sebastian Riedel: fixed empty attribute bug in Mojo::DOM::CSS
18:09 good_news_everyone left #mojo
18:09 batman PerlJam: huh? i think you're reading on the wrong bullet...
18:09 PerlJam oh!  I am indeedy
18:09 batman sri: thanks!
18:09 PerlJam sri++ for the quick fix.
18:36 marcus joined #mojo
18:37 marcus joined #mojo
18:37 marcus joined #mojo
18:59 PanzerBjorn joined #mojo
19:00 PanzerBjorn Is there a way with one config to run both a port 80 HTTP and port 443 HTTPS server?
19:02 PanzerBjorn If not, what's the simplest strategy for doing both?
19:06 PanzerBjorn Nevermind, found it. -1 for Google search, +1 for Mojo docs (which aren't being indexed right or something?)
19:12 good_news_everyone joined #mojo
19:12 good_news_everyone [mojo] kraih tagged v4.22 at fca0099: http://git.io/b4ls2g
19:12 good_news_everyone left #mojo
19:13 PanzerBjorn Multiple listeners was a brilliant notion, kudos to whoever thought of that!
19:18 hesperaux_ joined #mojo
19:20 good_news_everyone joined #mojo
19:20 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/3IioKg
19:20 good_news_everyone mojo/master 5c37fa9 Sebastian Riedel: documentation tweak
19:20 good_news_everyone left #mojo
19:43 dotandimet joined #mojo
19:49 KindTwo joined #mojo
19:55 arthas joined #mojo
20:02 mike_ how would i use a db model that lives outside of my mojo app tree?  I'm lost trying to figure out how to deal with it
20:03 punter joined #mojo
20:08 Britzel_ mike_: You could always puit it in $ENV{PERLLIB}
20:08 Britzel_ s/puit/put/
20:08 Britzel_ and even PERL5LIB
20:09 asarch joined #mojo
20:09 mike_ aha
20:10 mike_ damn muddled thinking from looking at chef all day, wasn't thinking clearly
20:10 mike_ thanks
20:23 batman mike_: PERL5LIB=../path/to/module morbo script/app # like that
20:23 batman is there a way to make mojo do an "internal" redirect? as in calling a method in another controller
20:24 sri batman: are you going to ask that question every other week now?
20:24 batman what? sorry... i thought i was only thinking about asking it :(
20:25 PanzerBjorn $self->redirect_to('controller', action => 'action')
20:26 batman sri: i seriously can't remember asking...
20:26 batman PanzerBjorn: that results in a 302
20:27 tianon batman: why not something like MyProject::OtherController::method(...) ?  or just make a helper/module for whatever common functionality you require?
20:28 batman tianon: what i'm doing now is bless $self, 'Other::Controller'; $self->some_action;
20:28 PanzerBjorn If you want to do internal redirects, you can just force your way into another controller by direct reference.
20:28 batman but ... how ugly isn't that?
20:28 PanzerBjorn It's ugly, but it works.
20:28 batman :P
20:28 PanzerBjorn Maybe you should move everything into one controller. ;)
20:29 tianon or move the useful stuff into helpers :)
20:29 PanzerBjorn Or create an aggregator class with subclasses to individual controllers.
20:29 batman tianon: i am.
20:30 PanzerBjorn It's a shame Mojo doesn't do that for you, but TAMWTDI.
20:30 sri it won't ever happen
20:31 PanzerBjorn It's not a real web framework without quirks ya know. ;)
20:32 batman sri: how come?
20:32 sri i've explaned that like a dozen times before, sorry, but not gonna do it again
20:32 tm joined #mojo
20:33 * batman checks the backlog
20:33 batman i might need to see a doctor as well to check my memory :/
20:33 PanzerBjorn He explained it to me at least once. And I forgot, so sorry.
20:33 * batman gets a beer
20:33 tm evening folks
20:33 sri bottom line is... if you really want it, make a plugin
20:34 PanzerBjorn Cuz I bitched up a storm about that in the past. I have found workarounds, and I am content.
21:06 jast joined #mojo
21:10 PanzerBjorn "Perl is a nightmare wrapped in a war strapped to a nuclear warhead buried under a metropolis." - My friend who is a sysadmin on trying to explain to him that I can't get IO::Socket::SSL version 1.75+ for Mojo HTTPS.
21:10 PanzerBjorn Which I can't, because I chose the wrong distro of Linux 4 years ago.
21:10 PanzerBjorn I guess Ubuntu is a failboat.
21:11 sri soo, he's not very good at his job
21:11 PanzerBjorn He said move to GenToo.
21:12 PanzerBjorn He's worked at Microsoft for 8 years, I doubt he'd be a good Linux sysadmin.
21:12 sri case in point
21:13 PanzerBjorn But really, I've been using Linux for over 15 years and I can't figure out how to get that package on my machine. If I go the CPAN route it breaks every OTHER implementation of SSL I'm using across my server. And the Ubuntu packages for 12.04 aren't up to date enough.
21:13 PanzerBjorn 12.04 is Current Stable.
21:13 PanzerBjorn For LTS anyway.
21:14 sri which reminds me, i might bump the IO::Socket::SSL requirement again ;p
21:15 PanzerBjorn May as well, CPAN has 1.95+ now, and 1.75 is already an impossible requirement.
21:19 batman do i always have to to $t->websocket_ok(...) before $t->send_ok(...) ? i would like to do this: $t->websocket_ok('/socket')->send_ok('​yikes')->message_ok->send_ok('other');
21:19 batman but it looks like it hangs
21:19 Moataz-E joined #mojo
21:28 jnbek joined #mojo
21:30 perlite joined #mojo
21:35 lukep joined #mojo
21:52 good_news_everyone joined #mojo
21:52 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/X29uiA
21:52 good_news_everyone mojo/master 3bfbf40 Sebastian Riedel: reuse a little more code in Mojo::DOM
21:52 good_news_everyone left #mojo
22:34 memowe joined #mojo
22:37 PanzerBjorn Alright, all of my libs for SSL are up to date now, 'script/myapp version' verifies that too. When I launch my hypnotoad it says it's listening on https://*:443 just fine, but all browser (and telnet) requests to 443 result in an immediate 'connection reset'. Any ideas?
22:38 PanzerBjorn The port 80 threads are responding properly in the same server/config.
22:38 PanzerBjorn Logs are showing nothing out of the ordinary.
22:58 batman PanzerBjorn: can you paste the actual listen array you got?
23:07 mtths joined #mojo
23:19 btyler joined #mojo
23:46 jberger_ joined #mojo
23:56 PanzerBjorn left #mojo

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