Camelia, the Perl 6 bug

IRC log for #mojo, 2013-03-10

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

All times shown according to UTC.

Time Nick Message
00:00 * jberger thinks the simcity game is just a time counter and someone is laughing at all the dummies with an open tab waiting!
00:00 sri jberger: that's the joke
00:00 sri i assume you don't read gaming news ;p
00:01 jberger no, I saw your message!
00:01 vel joined #mojo
00:01 sri sorry! xD
00:01 * jberger sends an alien and a tornado at sri
00:02 jberger (the earthquake will come when you least expect!)
00:02 * sri gets eaten by a grue
00:03 sri jberger: http://arstechnica.com/gaming/2013/03/clogged-st​reets-simcity-launch-plagued-by-server-problems/
00:03 sri jberger: on the plus side, you got the real simcity 2013 experience!
00:03 jberger I was really amazed that they could get through the copyright etc to have an HTML5 simcity on some guy's server!
00:03 jberger hahahha
00:04 * jberger guesses he can close this window now, but has become oddly attached to it
00:05 sri http://www.amazon.com/Electronic-Arts-41018​ted-Edition2-SimCity/product-reviews/B007VT​VRFA/ref=cm_cr_dp_qt_hist_five?ie=UTF8&​filterBy=addFiveStar&showViewpoints=0
00:05 sri you might enjoy the 5 star reviews :)
00:05 jberger there's no option to play offline?!?
00:06 * jberger loves fake amazon reviews
00:07 jberger http://www.amazon.com/Hutzler-5717-571-Banana-Sl​icer/dp/B0047E0EII/ref=sr_1_1?ie=UTF8&qid=13​62874008&sr=8-1&keywords=banana+slicer
00:07 sri :D
00:08 jberger the reviews on simcity are pretty classic
00:11 jberger "It may be looked down upon to use this as a megaphone to shout through but the fact is that people need to see this, that NO-ONE should EVER support always online DRM for a single player game,"
00:12 jberger hear hear!
00:16 jberger DRM always has this effect to some degree or another, its job is to prevent you from using it with the option to allow
00:17 jberger </soapbox>
00:17 sri marcus: one more thing, you'll have to make rather substantial changes to Mojolicious::Routes::Pattern, to encode / in placeholder values when rebuilding paths
00:18 sri or even add a new representation for paths
00:19 sri since we usually completely decode paths before matching them against routes
00:19 sri you'll need a half encoded representation, leaving only %2f
00:20 sri if we switch to matching encoded paths, there might be *a lot* of breakage
00:21 MeierM joined #mojo
00:22 * sri is neutral on the issue, but doubts it could work well with unicode routes
00:24 sri even if you ignore the breakage (which i'm ok with, if it's the right thing to do)
00:41 bpmedley https://metacpan.org/source/BPMEDLEY/Mojolici​ous-Plugin-FormValidator-0.01/eg/lite/script
00:41 bpmedley Any opinions on the Data::FormValidator usage?
00:42 ka2u joined #mojo
00:57 GabrielVieira2 joined #mojo
01:13 sri hmmm
01:14 sri i guess we could do the same for Mojo::Parameters for direct access to $params->params
01:14 sri push @$params, foo => 'bar';
01:22 good_news_everyone joined #mojo
01:22 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/GI43Lg
01:22 good_news_everyone mojo/master e368cfc Sebastian Riedel: added direct array access for parsed parameters to Mojo::Parameters
01:22 good_news_everyone left #mojo
01:22 sri consistency :)
01:30 asarch joined #mojo
01:30 Bender3 +1
01:33 ka2u joined #mojo
01:34 sri Bender3: botsnack!
01:34 * Bender3 gobbles
01:34 Bender3 but sri, I don't trust you in #mojo
01:34 mattastrophe joined #mojo
01:34 sri -.-
02:31 Bender3 I don't understand why a squaretag
02:52 geck ananananA
02:56 good_news_everyone joined #mojo
02:56 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/ZIidYg
02:56 good_news_everyone mojo/master 49a8e86 Sebastian Riedel: better Mojo::Path examples
02:56 good_news_everyone left #mojo
03:24 migo joined #mojo
03:25 salparadise joined #mojo
03:28 mattastrophe joined #mojo
03:41 ka2u joined #mojo
03:57 rem_lex|pivo joined #mojo
03:57 bpmedley joined #mojo
04:27 hesco joined #mojo
04:31 ka2u joined #mojo
04:51 preflex_ joined #mojo
04:58 mattastrophe joined #mojo
05:58 komodo joined #mojo
06:05 basiliscos joined #mojo
07:04 Mike-PerlRecruiter_ joined #mojo
07:16 wk joined #mojo
07:25 jzawodn_ joined #mojo
07:43 sh4 joined #mojo
07:56 d4rkie joined #mojo
08:12 d4rkie joined #mojo
09:00 coff joined #mojo
09:11 hrupp joined #mojo
09:12 coff What is the 'elegant' way of getting morbo / hypnotoad to pick up a custom 'lib/' directory? Guessing FindBin is out of the question since it would only see morbo / hypnotoads directory as bin-dir?
09:17 sawtooth joined #mojo
09:43 berov joined #mojo
10:06 mattastrophe joined #mojo
10:11 arpadszasz joined #mojo
10:15 Vandal joined #mojo
10:33 fhelmber_ joined #mojo
10:41 dpetrov_ joined #mojo
11:18 bobkare coff: I've used https://metacpan.org/module/Mojo#home
11:23 TitanOfOld joined #mojo
11:25 coff bobkare: Thanks. Often I find the things I'm looking for are right before my eyes. :)
11:29 basic6 joined #mojo
11:37 Netfeed joined #mojo
11:37 Netfeed hey, where is the hypnotoad-log saved?
11:46 wk joined #mojo
11:46 bjoernfan Netfeed: In log/ if you have created that directory.
11:49 Netfeed great, thank you
11:53 Netfeed i'm not sure if it's working as intended, but if you're running hypnotoad behind nginx and there's no template, then it just gives you a 502 and there's no error in the log or anything
12:04 avkhozov joined #mojo
12:04 bjoernfan Netfeed: What does the nginx log say?
12:16 mire joined #mojo
12:23 Netfeed something alike to "got bad response from server"
12:49 jberger coff, FindBin works. We fix $0 for you, http://mojolicio.us/perldoc/Moj​olicious/Guides/Growing#Script
12:54 coff jberger: Oh? Perhaps it's just my (older) version that doesn't work on..
12:55 jberger 3.40 --- https://github.com/kraih/mo​jo/blob/master/Changes#L379
12:56 coff jberger: Yeah, so it really is my older version not supporting it yet. Thanks for helping though. :)
12:59 jberger np :-)
13:00 jberger the __FILE__ token might work for you
13:00 jberger I still use that for Galileo since I'm paranoid
13:00 jberger https://github.com/jberger/Ga​lileo/blob/master/bin/galileo
13:17 coff jberger: $Paranoid eq 'good' :)
13:18 jberger sometimes :-)
13:56 mattastrophe joined #mojo
14:08 gryphon joined #mojo
14:25 dod joined #mojo
14:28 sh4 joined #mojo
14:34 mattastrophe joined #mojo
14:55 suy joined #mojo
15:00 bowtie joined #mojo
15:06 sh4|2 joined #mojo
15:16 Molaf__ joined #mojo
15:58 ruz joined #mojo
16:46 d4rkie joined #mojo
16:46 maxhq joined #mojo
16:57 bpmedley_ joined #mojo
17:14 asarch joined #mojo
17:42 mattastrophe joined #mojo
17:54 Bender3 Didn't Mojo::JSON fall back to JSON::XS at one point?
17:55 sri nope
18:02 jberger fyi, if you forget the {} in $ws->send({ text => j($data) }); you are in for a LOOONG and wierd debugging sesssion
18:02 sri muhahahahaha... the API method for checking the rate limit is rate limited... WTF?! https://dev.twitter.com/docs/api/1.​1/get/application/rate_limit_status
18:04 jberger "if your rate feels limited, you are probably rate limited"
18:04 jberger "or else you are playing simcity"
18:04 jberger :-)
18:21 sh4|2 joined #mojo
18:21 jwang joined #mojo
18:29 dpetrov_ joined #mojo
18:29 sri http://www.xray.mpe.mpg.de/mailing-lis​ts/perl5-porters/2013-03/msg00389.html # this would be so cool
18:48 vel joined #mojo
19:04 Mike-PerlRecruiter_ joined #mojo
19:11 Freman joined #mojo
19:12 Freman Good morning folks
19:12 Freman as a break from my regular stream of wtf I'm working on a project for a friend
19:12 Freman having some problems with websockets to an older device (hp touchpad)
19:13 Freman of course, getting logs out of the touchpad is rather difficult, I've managed to work out "onerror" isn't being called on frontend or backend
19:13 Freman and I've set MOJO_WEBSOCKET_DEBUG=1 to find no extra information
19:13 Freman any idea where to go from here?
19:14 bpmedley https://gist.github.com/brianmed/5129867
19:14 sri first make sure the device actually supports RFC 6455
19:14 bpmedley What's a better way to do the conditional logic for name?
19:14 sri if it's old it prolly just does some legacy version of the protocol
19:15 sri <%= stash('name') // '' %>?
19:17 Freman actually we might be deliberatly using an older version for earlier ios support
19:18 sri doubt you'll get much support for that
19:18 Freman hmmm perhaps not, seems we're running 3.47 - but not from intent just rather that's when we installed it
19:18 BeDa joined #mojo
19:19 sri everything after 2.0 is RFC 6455
19:19 bpmedley sri: Thanks; it basically worked.  I used <%= stash('name') ? ": " . stash('name') : '' %>  because I need a ": " in the output if the stash variable is used.
19:20 Freman websocketstest.com (how convenient) lists draft-76
19:22 sri way too old
19:22 sri the websocket protocol was still text based in that draft, only the next version was binary
19:24 GabrielVieira joined #mojo
19:24 * Freman ponders moving to node
19:27 sri won't help you much if you want to scale, reverse proxies only do rfc 6455
19:28 sri even if you can dig up some legacy module to make it work
19:28 Freman nah, once again a dedicated project - this one much simpler - real time photo upload from a camera with a flu-card allowing several other devices to see photos shortly after they're taken
19:29 Freman I could probably make long poll js work, just a matter of working out what browsers need it
19:29 Freman (ie: I'm not actually getting any errors, just dropped connections)
19:36 Freman 3 retries in 3 seconds might be a good metric
19:46 good_news_everyone joined #mojo
19:46 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/CnxLRA
19:46 good_news_everyone mojo/master 436144c Sebastian Riedel: documentation tweaks
19:46 good_news_everyone left #mojo
19:47 coff Freman: I bought a Nokia Lumia 920 for my new employee and that phone came with an app that did that. Pretty nifty.
19:47 berov joined #mojo
19:48 coff Freman: Also provided a webpage people could go to and it would display whatever photos you viewed on the phone. Including scaling, movind around etc.
19:48 coff s/movind/moving/
19:49 Freman hehe I don't have time to complete more features beyond "next page" "prev page" "a new photo is waiting to be viewed" and "download this photo"
19:50 * sri digs the wireless charging of the lumia
19:51 Freman like the pre?
19:54 Freman hmmm wonder if i should handle fallback inside the js for the websocket helper or just load a second js file... upshot of using the websocket helper is it has all the expected callbacks mapped already
19:57 GabrielVieira joined #mojo
19:59 coff sri: They've done quite a few things right with that phone.
20:04 marcus nexus 4 has wireless charging as well?
20:04 marcus seems like the best alternative to the iphone 5 atm.
20:08 coff The iPhones confuse the fsck out of me. So many weird multi-finger-hyper-gymnastic manouvers to get things done.
20:09 Freman I went back to my iphone3gs while my sgn was getting repaired... I am not sure how I ever managed to use the iphone
20:10 coff Freman: I've heard several people say that.
20:35 lukep joined #mojo
20:43 GabrielVieira joined #mojo
20:46 Freman ok, the fallback bit is basically working, time to take a couple of hours and have a nap (the way I'd wrapped up the websocket calls on both the client and the server side made that easier than it should have been lol)
20:49 lukep joined #mojo
20:55 marcus The Following is pretty great.
21:01 sri marcus: haha, i thought it's awful
21:02 basiliscos joined #mojo
21:05 GabrielVieira joined #mojo
21:06 perlite joined #mojo
21:17 sri really hope Defiance will be good
21:22 sri marcus: i'm actually enjoying Elementary now, you just shouldn't compare it to other sherlock holmes shows
21:33 dod joined #mojo
21:42 Freman actually comparing it to other sherlock holmes shows brings great laughs
21:46 mattastrophe joined #mojo
21:57 suy joined #mojo
22:02 phillipadsmith curious how to work around this poorly structured HTML: https://gist.github.com/philli​padsmith/f5416dfd0e90ee4b4775
22:03 Adurah_ It's odd that title would need to be part of the dom.
22:05 phillipadsmith Adurah_: well, pragmatically, I think it is, even though the HTML for that page is a mess
22:07 Freman hmmm so now I have a websocket workaround that works... arguably better than the websocket atm... any idea why Mojo::Redis isn't pub/subbing?
22:19 sri perl -Mojo -E 'say g("foxnews.com")->tap(sub { shift->headers->content_type("text/html") })->dom->at("title")->text'
22:21 GabrielVieira joined #mojo
22:57 Meiermann joined #mojo
23:01 marty joined #mojo
23:07 wk joined #mojo
23:09 * marty wonders if he should start playing starcraft
23:13 sri you should
23:18 rem_lex| joined #mojo
23:24 Averna joined #mojo
23:35 GabrielVieira joined #mojo
23:43 ka2u joined #mojo

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