Camelia, the Perl 6 bug

IRC log for #mojo, 2011-06-21

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

All times shown according to UTC.

Time Nick Message
00:00 D4RK-PH0ENiX left #mojo
00:01 bosphorus left #mojo
00:11 Akron left #mojo
00:12 D4RK-PH0ENiX joined #mojo
00:15 d4rkie left #mojo
00:31 fmerges left #mojo
00:38 perlrocks Twitter: "perlrocks 0.01 by GUGOD - http://metacpan.org/release/GUGOD/perlrocks-0.01/" --cpan_new http://twitter.com/cpan_ne​w/status/82970701623074816
00:41 shonorio joined #mojo
00:44 d4rkie joined #mojo
00:47 D4RK-PH0ENiX left #mojo
00:47 Alias joined #mojo
01:10 sri alnewkirk|com: nopaste?
01:10 purl nopaste is http://paste.scsys.co.uk/
01:16 D4RK-PH0ENiX joined #mojo
01:18 d4rkie left #mojo
01:24 perlrocks Twitter: "perlrocks 0.02 by GUGOD - http://metacpan.org/release/GUGOD/perlrocks-0.02/" --cpan_new http://twitter.com/cpan_ne​w/status/82982156590252032
02:30 perlrocks Twitter: "perlrocks value approach is ambitious." (ja) --__gfx__ http://twitter.com/__gfx__​/status/82998842403987456
02:44 sri argh
02:44 sri gugod made a module named perlrocks :S
02:46 perlrocks left #mojo
02:46 perlrocks joined #mojo
02:47 sri hmm, looks like gnu screen is dead and the new hipness it tmux
02:47 crab so i've heard. but i found no compelling reason to switch yet.
02:47 crab not least because screen keybindings seem to have burned themselves some new pathways in my brain.
02:48 sri the screen code is so horrible that nobody can maintain it anymore
02:48 sri basically no patches go in anymore
02:48 sri while tmux is clean and happily moving forward
02:48 crab i know all that. maybe if i encountered some bad screen bug, i would feel differently.
02:49 sri http://www.techrepublic.com/blog/openso​urce/is-tmux-the-gnu-screen-killer/1901
02:52 d4rkie joined #mojo
02:55 D4RK-PH0ENiX left #mojo
02:57 jsadam joined #mojo
02:58 crab is Strg-C german for Ctrl-C?
02:58 sri yes
02:58 sri "Steuerung"-C
03:01 sri guess we'll see 1.46 today
03:01 sri unless there are really tests failing consistently on windows
03:01 D4RK-PH0ENiX joined #mojo
03:02 Alias left #mojo
03:03 alnewkirk|com .. back
03:04 d4rkie left #mojo
03:06 crab what do you get if you pipe alnewkirk to a com?
03:06 alnewkirk|com crab, my version of the interwbez
03:12 sri alnewkirk|com: if tests still fail for you please nopaste
03:12 alnewkirk|com lemme try
03:19 alnewkirk|com sri, http://scsys.co.uk:8002/114754
03:20 jsadam left #mojo
03:20 sri oh, line ending issues
03:20 sri thanks, those are easy to fix
03:20 sri the websocket test is prolly unfixable on windows
03:23 alnewkirk|com prolly, for now
03:23 alnewkirk|com unless ($^O =~ /Win32/) {...}
03:24 sri http://www.cpantesters.org/distro​/M/Mojolicious.html#Mojolicious-1.45 # the test actually works with some versions
03:24 sri prolly just your perl version
03:25 sri as long as it passes on some windows versions i'm not too worried... long time users prolly know that they should install without running tests
03:25 alnewkirk|com which is newer than most, .... sad day for Perl
03:27 sri that exact websocket test actually fails a lot randomly, i'll keep it active so there's a chance someone finds out why
03:27 sri i have a hunch it is a 32 vs 64 bit thing
03:27 d4rkie joined #mojo
03:29 alnewkirk|com im completely obliviously to the intricacies of Web-Sockets, if its not cross-platform I tend to not use it
03:29 alnewkirk|com maybe which is why i always the last to adopt something
03:30 D4RK-PH0ENiX left #mojo
03:36 sri huh, why would you assume that websockets are not cross platform?
03:36 GitHub153 joined #mojo
03:36 GitHub153 [mojo] kraih pushed 1 new commit to master: http://bit.ly/iJvL6M
03:36 GitHub153 [mojo/master] fixed small Windows line ending issue in Mojo::Template - Sebastian Riedel
03:36 GitHub153 left #mojo
03:36 D4RK-PH0ENiX joined #mojo
03:37 sri alnewkirk|com: please try tests again
03:37 alnewkirk|com sure
03:39 d4rkie left #mojo
03:40 sri the issue is prolly there https://github.com/kraih/mojo/blob/maste​r/lib/Mojo/Transaction/WebSocket.pm#L231
03:41 alnewkirk|com sri, http://scsys.co.uk:8002/114755
03:41 sri alnewkirk|com: wait, exact same result?
03:42 alnewkirk|com sri, ... brb
03:43 d4rkie joined #mojo
03:45 alnewkirk|com sri, looks that way
03:45 alnewkirk|com ran again, pasting results
03:45 sri ok, then it's just your perl that's broken
03:45 alnewkirk|com http://scsys.co.uk:8002/114756
03:45 D4RK-PH0ENiX left #mojo
03:46 sri the failing tests pass on cpantesters for various versions
03:46 alnewkirk|com also, .... morbo continuously prints errors to console if you startup an app with syntax errors
03:49 sri what else should it do?
03:50 alnewkirk|com it should kill the watcher processes also
03:51 sri why?
03:51 alnewkirk|com instead of printing the same error in a loop, idk, something less gross
03:51 sri you are supposed to fix the typo
03:52 sri in which case everything would just work again
03:52 alnewkirk|com you're right, the dev should be smart enough to kill the process if that what he/she wants or fix it
03:53 alnewkirk|com ... and ignore the many lines of repetitive error messgae in their console
03:53 sri it's clearly the better user experience
03:53 alnewkirk|com :)
03:54 sri you switch between browser and editor, if the manager dies you would have to switch between all 3
03:54 sri it would be stupid
03:54 sri the whole point of morbo is to have it working perfectly again once you fix a bug
03:55 alnewkirk|com sri, i see, ok i'll agree
03:55 alnewkirk|com btw, the server are all nice
03:55 * alnewkirk|com can't ait to use hypnotoad
03:56 alnewkirk|com can i have hypnotoad watch a domain, say, *.mydomain.com:80?
03:57 D4RK-PH0ENiX joined #mojo
03:59 perlrocks Twitter: "I met with Mojolicious http://goo.gl/fb/Ut9oj" (ru) --afiskon http://twitter.com/afiskon​/status/83021148597665792
04:00 d4rkie left #mojo
04:05 perlrocks Twitter: "Notes Programmer - Perl: How I met Mojolicious http://ff.im/GeMWP" (ru) --planetperlru http://twitter.com/planetper​lru/status/83022750830182400
04:09 sri alnewkirk|com: i have a good dolution though
04:10 alnewkirk|com to what?
04:10 purl somebody said to was Tonga Islands
04:10 sri i'll only let the manager start a new worker when a file changes
04:10 sri to the spam
04:10 alnewkirk|com oh, thats sounds cool
04:10 alnewkirk|com pratical
04:10 alnewkirk|com practical
04:10 purl Works for me.
04:14 GitHub113 joined #mojo
04:14 GitHub113 [mojo] kraih pushed 1 new commit to master: http://bit.ly/itL85N
04:14 GitHub113 [mojo/master] improved Morbo to only attempt restarting applications after a file change has been detected - Sebastian Riedel
04:14 GitHub113 left #mojo
04:14 sri ok, experience should be rather pleasant now
04:14 alnewkirk|com tryinf
04:14 alnewkirk|com trying
04:14 alnewkirk|com shit, my typing is off tonight
04:16 sri oh damn
04:16 sri need to fix a small issue again -.-
04:16 alnewkirk|com np
04:21 GitHub164 joined #mojo
04:21 GitHub164 [mojo] kraih pushed 1 new commit to master: http://bit.ly/mFUjWt
04:21 GitHub164 [mojo/master] fixed a few small issues in the new restart code - Sebastian Riedel
04:21 GitHub164 left #mojo
04:22 sri ok, now we have it
04:24 alnewkirk|com ! Testing . failed but installing it anyway.
04:25 alnewkirk|com :}
04:33 shonorio left #mojo
04:35 d4rkie joined #mojo
04:35 GitHub102 joined #mojo
04:35 GitHub102 [mojo] kraih pushed 1 new commit to master: http://bit.ly/jAAMYP
04:35 GitHub102 [mojo/master] fixed Morbo tests - Sebastian Riedel
04:35 GitHub102 left #mojo
04:35 sri alnewkirk|com: ok, please try morbo one last time (hopefully)
04:35 sri with a bit of luck this is the final commit for 1.46
04:35 alnewkirk|com ok, i have to intentionally break some code
04:35 alnewkirk|com lets see
04:37 D4RK-PH0ENiX left #mojo
04:41 GitHub189 joined #mojo
04:41 GitHub189 [mojo] kraih pushed 1 new commit to master: http://bit.ly/mPGvCl
04:41 GitHub189 [mojo/master] manager should not die before the worker if possible - Sebastian Riedel
04:41 GitHub189 left #mojo
04:41 sri ok, now i really need breakfast :)
04:42 alnewkirk|com sri, because of some broken code elswhere, it may take me awhile
04:42 sri can't you try with a hello world?
04:42 sri mojo generate lite_app and remove something
04:42 alnewkirk|com mmmm, ok
04:43 sri even ./script/mojo generate lite_app from within the checkout works
04:43 sri and ./script/morbo myapp.pl
04:45 sri fingers crossed
04:45 sri hope the small signal change in my last commit doesn't break everything
04:46 * alnewkirk|com kisses sri
04:46 * sri faints
04:46 alnewkirk|com that is just fucking amazing
04:46 alnewkirk|com this is what web app development should be
04:47 sri :)
04:47 sri does that mean i can tag and release?
04:48 alnewkirk|com sri, yes please (looks good to me)
04:48 sri \o/
04:55 D4RK-PH0ENiX joined #mojo
04:56 d4rkie left #mojo
04:57 perlrocks Twitter: "Mojolicious 1.46 by KRAIH - http://metacpan.org/releas​e/KRAIH/Mojolicious-1.46/" --cpan_new http://twitter.com/cpan_ne​w/status/83035793752473600
04:57 perlrocks Twitter: "Released #mojolicious 1.46 with a few important bugfixes for the Morbo development web server. http://t.co/YZ7CJea #perl" --kraih http://twitter.com/kraih/status/83035902804369408
05:06 koban joined #mojo
05:10 perlrocks Twitter: "♺ @kraih: Released #mojolicious 1.46 with a few important bugfixes for the #Morbo development web server. http://t.co/YZ7CJea #perl" --Metztli_IT http://twitter.com/Metztli_​IT/status/83039051954921473
05:12 crab i like hjow mojo version tells me i am awesome
05:13 sri =)
05:21 sri btw. it looks like someone figured out why implicit return is faster than return
05:21 sri https://gist.github.com/1037210
05:21 sri it's list vs scalar
05:26 kaare joined #mojo
05:32 alnewkirk|com nice, now we can save a ms :)
05:38 perlrocks Twitter: "I met with Mojolicious: Mojolicious (pronounced "modzholishes") - a new and rapidly developing ve ... http://bit.ly/m4qh79" (ru) --linuxesrf http://twitter.com/linuxesr​f/status/83046097089601536
05:39 sri alnewkirk|com: for mojolicious it was an overall gain of 2-3%
05:40 GitHub68 joined #mojo
05:40 GitHub68 [mojo] kraih pushed 1 new commit to master: http://bit.ly/mTxnoB
05:40 GitHub68 [mojo/master] micro optimizations - Sebastian Riedel
05:40 GitHub68 left #mojo
05:40 alnewkirk|com nice ... i was just joking tho, any gain isa +
05:40 sri generally i agree it's not important
05:40 alnewkirk|com im having some untracable issues with morbo tho ... atm
05:40 sri but for accessors it can actually make a difference
05:41 alnewkirk|com an app loading a shit-ton of resouces (which was working speedily) is now loading at-a-crawl if at all
05:42 sri doesn't sound like something morbo could affect
05:42 sri it just restarts the whole process, it's a fresh app
05:43 alnewkirk|com sri, your right, im being dumb, its something to do with chrome because ff is lighting fast ....
05:44 sri lol
05:44 alnewkirk|com lightning
05:44 purl it has been said that lightning is the #1 cause of spinal fracture with attendant spinal cord damage.
05:44 sri if in doubt MORBO_DEBUG=1
05:45 sri maybe a bit more diagnostics data would be good, like when the app has actually been started
05:46 alnewkirk|com cool, i didn't know you could do that
05:46 alnewkirk|com sri, also ...
05:47 alnewkirk|com can i make hypnotoad listen to a domain?
05:47 alnewkirk|com host+port
05:47 sri you can't listen to domains
05:47 sri just addresses and ports
05:47 sri domains are a higher level concept
05:48 perlrocks Twitter: ""How I met Mojolicious" http://eax.me/mojolicious/ # perl # mojo # mojolicious" (ru) --xomaa http://twitter.com/xomaa/status/83048499507240960
05:48 sri we only know for which domain a request is from the Host header
05:48 alnewkirk|com sri, exactly
05:48 alnewkirk|com which is what apache does
05:49 alnewkirk|com or any webserver for that matter
05:49 alnewkirk|com header pre-processing
05:49 sri we would handle domains in routes
05:49 sri hmm
05:50 sri maybe simple domain support would be a good addition to the mount plugin
05:50 alnewkirk|com im willing to take a whack at it, i could fork mojo and go nuts
05:51 sri make it a separate plugin for now, i'm not sure what the best way to do it would be
05:51 sri maybe we have to explore multiple solutions
05:52 sri plugin mount => {'foo.com' => './myapp.pl'};
05:52 sri plugin mount => {'foo.com/myapp' => './myapp.pl'};
05:52 sri could work like that
05:53 alnewkirk|com that would be awesome
05:53 sri can be done in 2 or 3 lines i think
05:53 alnewkirk|com what, the plugin?
05:54 sri ye
05:54 alnewkirk|com .... testing that is gonna be a B!_@#
05:54 sri https://github.com/kraih/mojo/blob/ma​ster/lib/Mojolicious/Plugin/Mount.pm
05:54 sri mount is already tiny
05:55 sri you just need to parse the pattern a bit more and add a Host header condition, for which we also already have a plugin
05:55 sri https://github.com/kraih/mojo/blob/master/​lib/Mojolicious/Plugin/HeaderCondition.pm
05:57 sri actually, testing should be easy
05:57 alnewkirk|com now its seems that we're creating a web-server to mount apps onto which is cool and ... well what we want
05:57 sri you can fake the Host header in Test::Mojo
05:57 alnewkirk|com but i think it should happen at the existing-server-level
05:57 sri that's of course up to you
05:57 sri it can happen at all layers
05:58 alnewkirk|com sri, actually, i got it, thanks
05:58 sri handling domains fits well into app logic though
05:58 sri you could have domain lists in a database
05:58 alnewkirk|com one more question, does hypnotoad have managers and workers like morbo
05:59 sri yes, just much better
05:59 alnewkirk|com very very great stuff
05:59 sri hypnotoad is the real thing, morbo is a portable hack
05:59 alnewkirk|com im planning on rolling out a few SaaS products using mojo
06:00 alnewkirk|com hypnotoad domains.pl :}
06:00 sri wait till you try zero downtime, great experience
06:00 alnewkirk|com mount the domains based on database records
06:00 alnewkirk|com this is awesome
06:00 sri sudo kill -s 'USR2' `cat hypnotoad.pid`
06:01 sri and it restarts the server without losing a single incoming connection
06:01 alnewkirk|com how did youcome up with all this?
06:02 sri experience, i develop what i want to use :)
06:02 sri the idea for effortless zero downtime restarts for example i got from rubys unicorn
06:03 sri they require a lot of setup, i wanted it to just work
06:03 alnewkirk|com cool, i was thinking during your hiatus in ruby land you saw this there
06:03 alnewkirk|com the whole mojolicious concept that is
06:03 sri i keep watching all web frameworks these days too, got an eye on Scala Lift atm. actors are hot!
06:04 alnewkirk|com actors? you know you got me there
06:04 sri you heard of erlang and how it scales right?
06:05 alnewkirk|com no, im a lame
06:05 sri http://akka.io # the best way to do massive concurrency you will ever see
06:06 sri actors are the secret sauce that make erlang scale so well
06:06 alnewkirk|com message queue for web apps?
06:06 purl Sorry, I've never seen queue before.
06:06 sri and Scala folks have stolen it for Akka
06:07 sri lower level, it is an alternative to threads
06:08 alnewkirk|com I get it, that where Node.js web rfameworks are (and why all the hype)
06:08 sri naah, node.js doesn't scale
06:09 alnewkirk|com it could if you configured it properly
06:09 sri it is primarily a single process event loop, if you want to scale out you use multiple instances of ot
06:09 sri node.js can out of the box only use one cpu core
06:10 sri the point of actors is to scale out to thousands
06:10 sri without even thinking about it
06:11 alnewkirk|com thats just fucking awesome
06:11 alnewkirk|com we would need to re-implment poe which is massive
06:12 alnewkirk|com after i commit changes to the two projects I was working on, I am going to attack mouting domains
06:24 fhelmber_ joined #mojo
06:26 AmeliePoulain joined #mojo
06:32 perlrocks Twitter: "Notes programmer - How I met Mojolicious http://bit.ly/lbAusT" (ru) --unixtalks_ru http://twitter.com/unixtalks​_ru/status/83059808332288000
06:53 bosphorus joined #mojo
06:54 crab tx->res->dom can return undef, right?
06:58 crab maybe not.
07:07 cosmincx joined #mojo
07:08 sri don't think so
07:13 bosphorus left #mojo
07:16 perlrocks Twitter: "Now I'm ready to conquer Mojolicious" (ru) --akamrv http://twitter.com/akamrv/status/83070654437539841
07:28 sugar joined #mojo
07:44 crab conquer!
07:44 purl conquer is a boy who dunno anything about perl but happened to install UBB.. but i got into a trouble that it says it cannot find required files... but it is in the dir.. so.. i wonder anyone knows how to solve this problem.
07:47 crab purl: no, conquer is <reply>
07:47 purl okay, crab.
07:56 alnewkirk|com ummm Test::Mojo get_notok? what gives
08:08 crab huh? what is get_notok? i've never heard of it
08:10 alnewkirk|com crab,
08:10 alnewkirk|com exactly
08:13 crab ok.
08:16 alnewkirk|com calling it quites for the night
08:17 alnewkirk|com day
08:17 alnewkirk|com wateva
08:17 alnewkirk|com sri, fyi, concept flaw in our little virtual-host  server experiment
08:18 alnewkirk|com multiple domains that mount to '/' fail
08:18 alnewkirk|com push code for revew
08:18 alnewkirk|com review
08:24 alnewkirk|com http://goo.gl/YGV9q
08:31 perlrocks Twitter: "Dancer http://t.co/spwjI2I, Mojolicious http://t.co/CxttsaZ, Catalyst http://t.co/RGkQmb0 — all at YAPC::Europe in Riga #ye2011 #perl" --yapcrussia http://twitter.com/yapcruss​ia/status/83089593381027840
08:35 sri alnewkirk|com: your experiment actually works
08:36 sri you just didn't load the header condition plugin
08:37 d4rkie joined #mojo
08:37 alnewkirk|com sri, i loaded it in the mount plugin but not the test
08:37 sri no you didn't
08:37 sri use it not enough
08:37 sri $app->plugin('header_condition');
08:37 sri that's what you need
08:38 Akron joined #mojo
08:38 alnewkirk|com oh, shyte, thats right
08:38 sri the *. is also wrong, but i guess you're just not finished with it yet
08:39 alnewkirk|com sri, how so?
08:39 alnewkirk|com that part is finished
08:39 alnewkirk|com .. i thought
08:39 D4RK-PH0ENiX left #mojo
08:40 sri i've not looked closer, but the generated regex didn't seem to work
08:40 alnewkirk|com *.google.com == .*\.google\.com
08:40 Akron I got the same template errors with WinXP (32-Bit) strawberry like alnewkirk|com (I thought, I just f**ked up my git repo, but maybe not.) Seems to be fine with Win7 though (don't know, if I run 64-Bit version there).
08:41 alnewkirk|com Akron, that was random ... start from the top :)
08:41 sri Akron: feel free to fix
08:41 sri nothing i could do
08:43 Akron Okay. It works when I install from CPAN on the shell. It just don't work from the git-repo. Maybe CPAN.pm has better line-ending-healing.
08:43 sri Oo
08:43 alnewkirk|com sri, yes the wildcard example fails but i don't think its the regex, testing further now
08:43 sri alnewkirk|com: it passes if you remove the *. prefix
08:44 sri so i would bet on the regex
08:44 alnewkirk|com :)
08:44 alnewkirk|com noooooo, say it aint so
08:44 crab it ain't necessarily so
08:46 sri well, as long as it installs from cpan i don't really care :)
08:49 Akron sri: That was my position! Well ... I'll have a look.
08:52 alnewkirk|com oh shit, stupid stupid stupid
08:52 alnewkirk|com its late, sri, we both missed this one
08:53 alnewkirk|com .*\.futurama\.com shoudl have been (.*\.)?futurama\.com but i need refactoring
08:56 crab surely it should be /\bfuturama\.com$/
08:56 alnewkirk|com (\b)?
08:58 crab huh?
08:59 crab no.
08:59 crab \b doesn't work that way.
08:59 moritz \b is a zero-width assertion (word boundary)
08:59 alnewkirk|com yeah, beginning of a word
08:59 alnewkirk|com or end
09:00 alnewkirk|com ^\bfuturama\.com$ wont match www.futurama.com
09:00 crab i didn't say ^
09:01 crab but, i don't actually know what you're doing, so i'd best shut up.
09:06 perlrocks Twitter: "Mojolicious Web Framework - Join the Perl revolution!: Http://bit.ly/ktQoCi" (ja) --javascriptalert http://twitter.com/javascripta​lert/status/83098469761421313
09:11 Akron left #mojo
09:18 sri alnewkirk|com: please no pull requests until you're really done
09:21 toebu joined #mojo
09:26 crab hi toebu.
09:27 sri alnewkirk|com: i've not taken a closer look yet, but a few first points, 1) no documentation example 2) * in the middle and end of a domain is untested 3) komodo file (wtf?) 4) script path is not portable 5) you still use the plugin for no reason at all
09:29 sri and i think the domain to regex code is broken too
09:29 spleenjack joined #mojo
09:29 sri at least it doesn't look like it would handle foo-bar.com properly
09:29 sri and the like
09:31 spleenjack1 joined #mojo
09:32 alnewkirk|com noted
09:32 sri can't really review atm though
09:32 sri last part is just a hunch
09:36 spleenjack left #mojo
09:40 spleenjack joined #mojo
09:45 spleenjack1 left #mojo
10:04 Drossel left #mojo
10:04 Kulag joined #mojo
10:11 Kulag left #mojo
10:11 Kulag joined #mojo
10:13 cosmincx1 joined #mojo
10:13 sri alnewkirk|com: btw. you also broke tests
10:16 cosmincx left #mojo
10:26 sri alnewkirk|com: domain names are also case insensitive
10:26 purl okay, sri.
10:28 GabrielVieira left #mojo
10:33 fmerges joined #mojo
11:23 sri hmm, mount based on domain is a huge can of worms
11:23 sri it can go wrong quite easy
11:24 sri due to routes caching
11:24 toebu hi crab ?
11:24 sri if there's a route without host condition that responds to the same path, and it gets requested first the result will be cached
11:25 sri in which case followup requests will never reach the mount route with condition
11:32 sri we need the ability to disable routes caching
11:37 crab toebu: don't be alarmed, i was just saying hello.
11:37 crab i have no hidden agenda and/or nefarious purpose.
11:38 sri he's a friendly crustacean
11:40 cosmincx joined #mojo
11:45 sri alnewkirk|com: i'll take over, the routes cache problem is a bit tricky
11:46 cosmincx1 left #mojo
11:53 moritz sri: what's the correct way to parse an XML document with missing encoding directive?
11:53 moritz sri: simply Mojo::DOM->new($bytestring), and it will assume UTF-8 as default?
11:54 sri we actually ignore the encoding directive i think
11:55 sri you set it manually or it tries to guess
11:56 sri i've looked at the official mozilla way to figure out the encoding... it's insane
11:56 sri like a dozen different ways it tries one after another
11:57 moritz iirc it has a clever state machine that allows both parsing and charset detection at once, more or less
11:58 sri it's quite complicated
12:07 shonorio joined #mojo
12:09 y0j_ left #mojo
12:10 marcus chansen: did you send me some mms or something on sunday? Seems my phone didn't download it because I was still in sweden.
12:11 marcus crab: you really should get a hidden agenda, it's pretty useful!
12:13 crab marcus: of course i have one, i was just trying to be reassuring.
12:14 marcus crab: Sorry to ruin it for you :-/
12:16 GitHub31 joined #mojo
12:16 GitHub31 [mojo] kraih pushed 1 new commit to master: http://bit.ly/lFzZAR
12:16 GitHub31 [mojo/master] added support for domains to Mojolicious::Plugin::Mount - Sebastian Riedel
12:16 GitHub31 left #mojo
12:17 sri 5741 tests, we are making progress :)
12:20 sri hmm
12:20 sri i wonder if subdomains should be implicit
12:21 sri if you mount an application to foo.com don't you want to support bar.foo.com too?
12:21 stephan48 i would make a config var for that
12:21 sri after all, if you have a more specific application for that subdomain you could always mount it earlier
12:21 sri stephan48: ?
12:21 stephan48 mount?
12:21 purl "Are you DONE yet?  I'm getting tired mounting drives all day." or http://www.userfriendly.org/carto​ons/archives/99may/19990531.html
12:22 sri stephan48: example
12:22 stephan48 for example i have an application which should only have a cookie for test.de cause the subdomain abc.test.de is not controlled by me...
12:23 sri i see, so you are in favor of the current implementation
12:24 sri http://mojolicio.us/perldoc/Moj​olicious/Plugin/Mount#SYNOPSIS
12:28 stephan48 cool
12:33 trone_ is now known as trone
12:34 GitHub9 joined #mojo
12:34 GitHub9 [mojo] kraih pushed 1 new commit to master: http://bit.ly/lJHM5s
12:34 GitHub9 [mojo/master] documentation tweaks - Sebastian Riedel
12:34 GitHub9 left #mojo
12:47 sugar left #mojo
12:47 [R] joined #mojo
12:49 sugar joined #mojo
12:49 elb0w ooo mount looks cool, never seen this
12:50 elb0w wow thats really nice
12:52 elb0w mojo honestly makes me want to get a twitter account
12:52 sri :)
12:52 * elb0w dreams of a day when he can convince his boss to stop using mod_perl and swap to mojo
12:53 sri twitter is the one social network i can't live without anymore
12:53 elb0w I want to create a open source dev/facebook
12:53 elb0w like github but for social networking
12:53 elb0w github + reddit + facebook
12:54 elb0w would be awesome
12:54 sri these days i get almost all my news from twitter
12:54 elb0w yeah I just use HN
12:54 sri HN twitter feed is rather good
12:54 sri you never miss the highlights of the day
12:55 elb0w I refresh it almost constantly lol
12:55 elb0w wrapped my big project last week
12:55 elb0w sort of slow now
12:55 elb0w think im going to deploy a redis cluster for fun
12:57 [R] Q: is it possible to use dbic together with mojo or are there any snares?
12:58 elb0w Wow CEO of Groupon only got paid 184k last year
12:59 crab [R]: course it's possible.
12:59 [R] elb0w: that guy must be starving.. just 184k.. hell that's not a lot
12:59 [R] crab: thank you :-)
13:00 elb0w For what the company is "valuated" for it is most certainly not a lot
13:00 arpadszasz joined #mojo
13:01 [R] Q: why are there weird packages like MojoX::Session out there? do I need to use such things? I thought session just works out of the box in mojo?
13:02 [R] sorry, I just started looking into mojo
13:02 moritz sessions just work, but that hasn't always been the case
13:02 [R] ok, so that stuff is simply deprecated
13:02 moritz so (as always), "hysterical raisins", erm, historical reasons
13:02 [R] hehe :-)
13:10 crab and mojox::session is broken abandonware now.
13:16 koban left #mojo
13:23 sri ye
13:23 sri always be careful with modules using the mojox namespace
13:23 sri http://mojolicio.us/perldoc/Mojolic​ious/Guides/FAQ#Which_namespace_sho​uld_i_use_for_Mojolicious_plugins3F
13:24 sri they tend to be from a time when the project had entirely different goals
13:35 AmeliePoulain left #mojo
13:41 y0j_ joined #mojo
13:41 d4rkie left #mojo
13:43 d4rkie joined #mojo
13:55 alnewkirk|com sri, i'd like to learn tho
13:57 sri alnewkirk|com: then study the patch :)
13:58 alnewkirk|com you patched M::P::Mount?
13:58 sri ye, it's all done
13:59 sri https://github.com/kraih/mojo/commit/08​5424e36a7b45fe331ec41095e1817e0ec35e1a
13:59 sri i went with wildcard only at the beginning for now
14:00 alnewkirk|com sri, okay coool, is the wildcard still optional?
14:00 sri ye
14:00 alnewkirk|com also, and this is gonna be a b@#()@, if the request is SSL
14:01 ph1g joined #mojo
14:01 alnewkirk|com i always wanted to lean about how that works inside
14:01 sri actually that would be easy to support too
14:02 sri $self->req->is_secure or so
14:02 crab b@#()@?
14:02 crab alnewkirk: i understand only about one in five things you say
14:03 sri also $self->req->url->base->scheme is set to https
14:06 sri ssl really sucks to test though
14:07 sri or maybe not anymore
14:07 sri we now support X-Forwarded-HTTPS
14:12 d4rkie left #mojo
14:15 d4rkie joined #mojo
14:18 D4RK-PH0ENiX joined #mojo
14:21 d4rkie left #mojo
14:22 d4rkie joined #mojo
14:22 ph1g ps aux
14:24 D4RK-PH0ENiX left #mojo
14:41 d4rkie left #mojo
14:42 d4rkie joined #mojo
14:48 crab what is X-Forwarded-HTTPS?
14:48 crab aha
14:50 crab i didn't know there was some convention, i use X-Forwarded-Protocol or something in my config
14:51 stephan48 ye
14:51 stephan48 i use that too
14:51 stephan48 i set it to http/https depending on the protocol
14:57 GabrielVieira joined #mojo
14:57 perlrocks Twitter: "Blogs written by # mojolicious / jamadam weblog2 http://htn.to/3Ph7uX" (ja) --jamadam http://twitter.com/jamadam​/status/83186759059521536
14:57 sh9 joined #mojo
14:58 perlrocks Twitter: "Blog writing. Wrong. Koch was. # Mojolicious / MojoX:: Setup Tusu Apps - jamadam weblog2 http://htn.to/6EF3fd" (ja) --jamadam http://twitter.com/jamadam​/status/83187041298432000
14:59 tholen left #mojo
14:59 tholen joined #mojo
15:02 D4RK-PH0ENiX joined #mojo
15:05 d4rkie left #mojo
15:07 GitHub98 joined #mojo
15:07 GitHub98 [mojo] kraih pushed 1 new commit to master: http://bit.ly/lz91mn
15:07 GitHub98 [mojo/master] fixed file permission - Sebastian Riedel
15:07 GitHub98 left #mojo
15:09 SergeyAndreev joined #mojo
15:16 Akron joined #mojo
15:21 toebu left #mojo
15:26 SergeyAndreev left #mojo
15:30 kaare left #mojo
15:38 sugar left #mojo
15:41 sugar joined #mojo
15:56 amoore joined #mojo
15:56 GitHub142 joined #mojo
15:56 GitHub142 [mojo] kraih pushed 1 new commit to master: http://bit.ly/knr8EE
15:56 GitHub142 [mojo/master] added experimental callback condition plugin - Sebastian Riedel
15:56 GitHub142 left #mojo
15:57 GitHub31 joined #mojo
15:57 GitHub31 [mojo] kraih pushed 1 new commit to master: http://bit.ly/lLHbnU
15:57 GitHub31 [mojo/master] add actual plugin - Sebastian Riedel
15:57 GitHub31 left #mojo
15:59 sri might come in handy some time
16:02 GitHub186 joined #mojo
16:02 GitHub186 [mojo] kraih pushed 1 new commit to master: http://bit.ly/krNAhu
16:02 GitHub186 [mojo/master] refer to callback condition from plugin list - Sebastian Riedel
16:02 GitHub186 left #mojo
16:03 arpadszasz left #mojo
16:04 metaperl joined #mojo
16:06 sh9 left #mojo
16:08 d4rkie joined #mojo
16:11 D4RK-PH0ENiX left #mojo
16:12 alnewkirk|com back, sorry guys, had a meeting
16:12 alnewkirk|com sri, crab, stephan48, i was talking more about support the certificate
16:13 alnewkirk|com this way we can cut out a higher-level webserver altogether
16:13 sri that has already been done
16:13 alnewkirk|com i dont know if i understand this correctly tho
16:13 sri tempire has a plugin i think
16:13 alnewkirk|com ... where I can specify the cert to use on a request?
16:25 alnewkirk|com funny how a lil sleep clean make everything clear
16:28 cosmincx left #mojo
16:30 Akron sri: Are there plans yet to implement shortcuts for M::Lite?
16:38 alnewkirk|com interesting, ... /login.api resolves to loginapi.api.ep when no action is supplied
16:38 alnewkirk|com i would think it would resolve to login.api.ep
16:39 alnewkirk|com e.g. /start.html == start.html.ep
16:41 Kulag left #mojo
16:41 Kulag joined #mojo
16:49 perlrocks Twitter: "dragged mojolicious-project with utf8 to cp1251. base and the old web ui in this encoding ... escaped with slight shock:)" (ru) --dolbanavt http://twitter.com/dolbanav​t/status/83215032753729538
16:55 sugar left #mojo
17:16 fmerges left #mojo
17:30 ph1g left #mojo
17:34 spleenjack left #mojo
17:46 fmerges joined #mojo
17:47 stephen left #mojo
17:55 stephen joined #mojo
18:07 tempire I have a plugin!
18:07 tempire for something, I'm sure.
18:12 alnewkirk|com :}
18:12 alnewkirk|com let hear it
19:26 s0va left #mojo
19:31 robinsmidsrod left #mojo
19:38 ysyrota joined #mojo
19:42 xaka joined #mojo
19:43 xaka is there any way to easy server public/index.html when user requests "/"? Something like $app->routes->route("/")->static("index.html")?
19:43 robinsmidsrod joined #mojo
19:46 mateu_ joined #mojo
19:47 mateu left #mojo
19:47 tempire xaka: http://mojolicio.us/perldoc/Mojo​licious/Controller#render_static
19:48 xaka so, i have to do it via "cb", right?
19:49 tempire yes
19:52 tempire $app->routes->route('/' => sub { shift->render_static('hello.html') });
19:52 tempire would be the shortest way
19:52 tempire er
19:53 tempire I mean: $app->routes->get('/' => sub { shift->render_static('hello.html') });
19:53 xaka ah, i've done it, works great, thx! btw: something like route("/")->static("sadsad") would be really usefull
19:54 xaka i mean more mojolicious way :)
19:54 tempire actually...both of those aren't a very good idea
19:54 xaka what the problem?
19:54 purl In 1972 a crack commando unit was sent to prison for a crime thry didn't commit. These men promptly escaped from a maximum security stockade to the Los Angeles underground. Today, they survive as soldiers of fortune. If you have a problem, if no one else can help, and if you can find them, maybe you can hire... the A Team.
19:55 tempire This is better: $app->routes->get('/' => sub { shift->redirect_to('hello.html') });
19:55 tempire it's not a good idea to hide things in the application unless there's a really good reason
19:55 tempire hard to debug
19:55 tempire redirecting is more restful, since the client knows what's going on
19:55 tempire and you can determine what's going on from headers & firebug output
20:00 xaka left #mojo
20:22 amoore left #mojo
20:51 moritz sri: when I kill morbo with Ctrl+C, I get the help messabe before it exists. Is that by design? if yes, why?
21:26 Akron left #mojo
21:34 ysyrota left #mojo
22:11 curtis_ I have a subroutine I need to call for every request. Is there an easier way to accomplish that besides putting it in every model's subroutine? Mojo::Lite had a thing called 'under', where did that go in Mojolicious?
22:13 metaperl left #mojo
22:18 tempire curtis_: under is a wrapper for bridge
22:18 tempire http://mojolicio.us/perldoc/Moj​olicious/Guides/Routing#Bridges
22:18 curtis_ thanks :) I was just concluding thats what I wanted after a bit more hunting through the docs
22:31 d4rkie left #mojo
22:45 ndiewald joined #mojo
23:04 fmerges left #mojo
23:28 ndiewald left #mojo
23:36 ndiewald joined #mojo
23:57 sri tempire: you should have told xaka to turn the static thing into a shortcut, then he could have his $r->static(...)
23:57 sri moritz: not
23:58 sri s/t//
23:58 sri akron: no plans
23:58 purl it has been said that no plans is ok with us.

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