Camelia, the Perl 6 bug

IRC log for #mojo, 2012-05-29

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

All times shown according to UTC.

Time Nick Message
01:08 scott joined #mojo
02:01 d4rkie joined #mojo
02:31 perlite_ joined #mojo
02:48 jnap joined #mojo
03:56 tempire sri: lines of code/lines of tests ratio?
04:34 lukep joined #mojo
04:34 Debolaz joined #mojo
04:34 Gedge joined #mojo
04:34 tempire joined #mojo
04:34 stephan48 joined #mojo
04:34 crab joined #mojo
04:34 kthakore joined #mojo
04:34 atrodo joined #mojo
04:34 kenjiskywalker joined #mojo
04:34 predgtr1 joined #mojo
04:34 charsbar__ joined #mojo
04:34 kmx joined #mojo
04:34 jmmills joined #mojo
04:34 robinsmidsrod joined #mojo
04:34 nicomen joined #mojo
04:34 burk joined #mojo
04:45 lukep joined #mojo
04:45 Debolaz joined #mojo
04:45 Gedge joined #mojo
04:45 tempire joined #mojo
04:45 stephan48 joined #mojo
04:45 crab joined #mojo
04:45 kthakore joined #mojo
04:45 atrodo joined #mojo
04:45 kenjiskywalker joined #mojo
04:45 predgtr1 joined #mojo
04:45 charsbar__ joined #mojo
04:45 kmx joined #mojo
04:45 jmmills joined #mojo
04:45 robinsmidsrod joined #mojo
04:45 nicomen joined #mojo
04:45 burk joined #mojo
04:53 GabrielVieira joined #mojo
04:54 GabrielVieira joined #mojo
04:54 perlite joined #mojo
04:54 d4rkie joined #mojo
04:54 Patterner joined #mojo
04:54 amirite joined #mojo
04:54 ryanc joined #mojo
04:54 alnewkirk joined #mojo
04:54 nuba joined #mojo
04:54 bobkare joined #mojo
04:54 DaTa joined #mojo
04:54 keedi joined #mojo
04:54 mikegrb joined #mojo
04:56 Leandr joined #mojo
04:58 GabrielVieira joined #mojo
04:58 perlite joined #mojo
04:58 d4rkie joined #mojo
04:58 Patterner joined #mojo
04:58 amirite joined #mojo
04:58 ryanc joined #mojo
04:58 alnewkirk joined #mojo
04:58 nuba joined #mojo
04:58 bobkare joined #mojo
04:58 DaTa joined #mojo
04:58 keedi joined #mojo
04:58 mikegrb joined #mojo
05:01 GabrielVieira hey there... anyone running mojolicious+perlbrew on dreamhost? which is the perl and mojolicious versions?
05:03 ovnimancer joined #mojo
05:08 ovnimancer joined #mojo
05:08 mikegrb joined #mojo
05:08 keedi joined #mojo
05:08 DaTa joined #mojo
05:08 bobkare joined #mojo
05:08 nuba joined #mojo
05:08 alnewkirk joined #mojo
05:08 ryanc joined #mojo
05:08 amirite joined #mojo
05:08 Patterner joined #mojo
05:08 d4rkie joined #mojo
05:08 perlite joined #mojo
05:08 GabrielVieira joined #mojo
05:08 Leandr joined #mojo
05:08 burk joined #mojo
05:08 nicomen joined #mojo
05:08 robinsmidsrod joined #mojo
05:08 jmmills joined #mojo
05:08 kmx joined #mojo
05:08 charsbar__ joined #mojo
05:08 predgtr1 joined #mojo
05:08 kenjiskywalker joined #mojo
05:08 atrodo joined #mojo
05:08 kthakore joined #mojo
05:08 crab joined #mojo
05:08 stephan48 joined #mojo
05:08 tempire joined #mojo
05:08 Gedge joined #mojo
05:08 Debolaz joined #mojo
05:08 lukep joined #mojo
05:08 mire joined #mojo
05:08 hide joined #mojo
05:08 pinupgeek joined #mojo
05:08 rem_lex|pivo joined #mojo
05:08 tomi-ru joined #mojo
05:08 brambles joined #mojo
05:08 xxtjaxx_ joined #mojo
05:08 preflex joined #mojo
05:08 gizzlon joined #mojo
05:08 nic joined #mojo
05:08 mattp_ joined #mojo
05:08 jzawodn joined #mojo
05:08 xantus[] joined #mojo
05:08 avenj joined #mojo
05:08 marty joined #mojo
05:08 plu joined #mojo
05:08 memowe joined #mojo
05:08 sri joined #mojo
05:08 chansen joined #mojo
05:08 janus joined #mojo
05:08 rhaen joined #mojo
05:08 ask joined #mojo
05:08 [R] joined #mojo
05:08 jwang joined #mojo
05:08 Liam` joined #mojo
05:08 phillipadsmith joined #mojo
05:08 diegok joined #mojo
05:08 tardisx joined #mojo
05:08 geira joined #mojo
05:08 gabiruh joined #mojo
05:08 maluco joined #mojo
05:08 ruz joined #mojo
05:08 estrai joined #mojo
05:08 BlueT_ joined #mojo
05:08 al joined #mojo
05:08 tinx joined #mojo
05:08 y0j_ joined #mojo
05:08 rafl joined #mojo
05:08 phips joined #mojo
05:08 rwstauner joined #mojo
05:08 angelixd joined #mojo
05:08 MisterHatt joined #mojo
05:08 Kovensky joined #mojo
05:08 bzero joined #mojo
05:08 k-man joined #mojo
05:08 dmn001 joined #mojo
05:08 purl joined #mojo
05:10 GabrielVieira hey there... anyone running mojolicious+perlbrew on dreamhost? which is the perl and mojolicious versions?
05:10 ovnimancer joined #mojo
05:10 mikegrb joined #mojo
05:10 keedi joined #mojo
05:10 DaTa joined #mojo
05:10 bobkare joined #mojo
05:10 nuba joined #mojo
05:10 alnewkirk joined #mojo
05:10 ryanc joined #mojo
05:10 amirite joined #mojo
05:10 Patterner joined #mojo
05:10 d4rkie joined #mojo
05:10 perlite joined #mojo
05:10 GabrielVieira joined #mojo
05:10 Leandr joined #mojo
05:10 burk joined #mojo
05:10 nicomen joined #mojo
05:10 robinsmidsrod joined #mojo
05:10 jmmills joined #mojo
05:10 kmx joined #mojo
05:10 charsbar__ joined #mojo
05:10 predgtr1 joined #mojo
05:10 kenjiskywalker joined #mojo
05:10 atrodo joined #mojo
05:10 kthakore joined #mojo
05:10 crab joined #mojo
05:10 stephan48 joined #mojo
05:10 tempire joined #mojo
05:10 Gedge joined #mojo
05:10 Debolaz joined #mojo
05:10 lukep joined #mojo
05:10 mire joined #mojo
05:10 hide joined #mojo
05:10 pinupgeek joined #mojo
05:10 rem_lex|pivo joined #mojo
05:10 tomi-ru joined #mojo
05:10 brambles joined #mojo
05:10 xxtjaxx_ joined #mojo
05:10 preflex joined #mojo
05:10 gizzlon joined #mojo
05:10 nic joined #mojo
05:10 mattp_ joined #mojo
05:10 jzawodn joined #mojo
05:10 xantus[] joined #mojo
05:10 avenj joined #mojo
05:10 marty joined #mojo
05:10 plu joined #mojo
05:10 memowe joined #mojo
05:10 sri joined #mojo
05:10 chansen joined #mojo
05:10 janus joined #mojo
05:10 rhaen joined #mojo
05:10 ask joined #mojo
05:10 [R] joined #mojo
05:10 jwang joined #mojo
05:10 Liam` joined #mojo
05:10 phillipadsmith joined #mojo
05:10 diegok joined #mojo
05:10 tardisx joined #mojo
05:10 geira joined #mojo
05:10 gabiruh joined #mojo
05:10 maluco joined #mojo
05:10 ruz joined #mojo
05:10 estrai joined #mojo
05:10 purl joined #mojo
05:10 dmn001 joined #mojo
05:10 k-man joined #mojo
05:10 bzero joined #mojo
05:10 Kovensky joined #mojo
05:10 MisterHatt joined #mojo
05:10 angelixd joined #mojo
05:10 rwstauner joined #mojo
05:10 BlueT_ joined #mojo
05:10 al joined #mojo
05:10 tinx joined #mojo
05:10 y0j_ joined #mojo
05:10 rafl joined #mojo
05:10 phips joined #mojo
05:12 ovnimancer joined #mojo
05:12 tomi-ru joined #mojo
05:12 brambles joined #mojo
05:12 xxtjaxx_ joined #mojo
05:12 preflex joined #mojo
05:12 jzawodn joined #mojo
05:12 plu joined #mojo
05:12 sri joined #mojo
05:12 rhaen joined #mojo
05:12 ask joined #mojo
05:12 [R] joined #mojo
05:12 diegok joined #mojo
05:12 geira joined #mojo
05:12 dmn001 joined #mojo
05:12 k-man joined #mojo
05:12 bzero joined #mojo
05:12 Kovensky joined #mojo
05:12 MisterHatt joined #mojo
05:16 GabrielVieira joined #mojo
05:16 perlite joined #mojo
05:16 d4rkie joined #mojo
05:16 Patterner joined #mojo
05:16 amirite joined #mojo
05:16 ryanc joined #mojo
05:16 alnewkirk joined #mojo
05:16 nuba joined #mojo
05:16 bobkare joined #mojo
05:16 DaTa joined #mojo
05:16 keedi joined #mojo
05:16 mikegrb joined #mojo
05:19 Leandr joined #mojo
05:19 lukep joined #mojo
05:19 Debolaz joined #mojo
05:19 Gedge joined #mojo
05:19 tempire joined #mojo
05:19 stephan48 joined #mojo
05:19 crab joined #mojo
05:19 kthakore joined #mojo
05:19 atrodo joined #mojo
05:19 kenjiskywalker joined #mojo
05:19 predgtr1 joined #mojo
05:19 charsbar__ joined #mojo
05:19 kmx joined #mojo
05:19 jmmills joined #mojo
05:19 robinsmidsrod joined #mojo
05:19 nicomen joined #mojo
05:19 burk joined #mojo
05:20 GabrielVieira joined #mojo
05:20 perlite joined #mojo
05:20 d4rkie joined #mojo
05:20 Patterner joined #mojo
05:20 amirite joined #mojo
05:20 ryanc joined #mojo
05:20 alnewkirk joined #mojo
05:20 nuba joined #mojo
05:20 bobkare joined #mojo
05:20 DaTa joined #mojo
05:20 keedi joined #mojo
05:20 mikegrb joined #mojo
05:31 GabrielVieira hey there... anyone running mojolicious+perlbrew on dreamhost? which is the perl and mojolicious versions?
05:57 Foxcool joined #mojo
05:59 Vandal joined #mojo
06:01 ysyrota joined #mojo
06:44 tempire don't know of anyone using dreamhost
06:44 tempire is there a particular reason you're using shared hosting?
06:51 GabrielVieira I have an account there
06:51 rem_lex| joined #mojo
06:51 GabrielVieira but I'm comparing vps companies now
06:54 GabrielVieira vr.org (good start price and have opensuse), dreamhost.com (unlimited things), linode.com (has opensuse) and mediatemple.com (good features for the price and is 20% off)
07:07 pau4o joined #mojo
07:08 fhelmber_ joined #mojo
07:14 tempire just use heroku
07:14 tempire it's free
07:28 * sri yawns
07:36 d4rkie joined #mojo
07:48 d4rkie joined #mojo
07:48 spleenjack joined #mojo
07:49 marcus good morning, sirs
07:49 * marcus just came out of a long weekend slumber.
08:00 cosmincx joined #mojo
08:09 sri http://www.dogpictures.co/​pictures/Good_Day_Sir.jpg
08:10 sri hmm, our ipv6 code still needs some work, we don't support multi-homing yet
08:15 batman joined #mojo
08:16 sri implementation is trivial, but i can't think of a test case
08:16 sri guess i'll just wait until someone needs it :)
08:19 amirite poo
08:22 sri you're welcome to work on it, i won't reject a good patch
08:24 hugh joined #mojo
08:25 alexeiras joined #mojo
08:30 alexeira1 joined #mojo
08:33 spleenjack1 joined #mojo
08:35 alexeiras joined #mojo
08:43 baton8 joined #mojo
09:12 tempire sri: current lines of code / lines of tests ratio?
09:13 sri tempire: dunno
09:13 tempire what tool did you use to calculate it?
09:13 sri guessing 1:1.7
09:14 sri my head ;p
09:14 tempire lulz.  I meant to ask for counts, not the ratio
09:14 sri sloccount
09:14 purl sloccount is by that other David Wheeler or "SLOC Count" or at http://www.dwheeler.com/sloccount/ or of the opinion that MojoMojo as of 2009-Nov has less than 7k LOC
09:20 tempire either I don't know how to use it, or sloccount is broken.
09:25 amirite how do i start a mojo server for fastcgi
09:26 amirite help plz
09:26 amirite before i move back to catalyst
09:29 sri tempire: tests?
09:29 purl hmmm... tests is what I don't have tuits for
09:29 sri tempire: you have to add shebang lines yourself ;p
09:29 sri it doesn't recognize .t files
09:30 sri think i did s/use Mojo::Base -strict;/#!/usr/bin/perl/ or so
09:33 kvorg amirite: FastCGI support was removed in 1.98. You can't try http://search.cpan.org/~arpi/Mojo-Server-FastCGI/, but sane people just use hypnotoad these days.
09:33 kvorg Of course, if you move back to catalyst, we wish you much enjoment and happy FastCGI.
09:46 rem_lex joined #mojo
09:51 spleenjack joined #mojo
09:59 sri hmm
09:59 amirite hypnotoad is mojo's server right
10:00 amirite isn't it a bit ridiculous to bind a server with a framework
10:00 sri http://ipv6-test.cns.vt.edu/ # we seem to pass all those test cases with mojolicious atm
10:02 amirite what about psgi
10:02 amirite mojo psgi doesn't do anything
10:03 * sri is running out of ipv6 test sites :)
10:42 daxim joined #mojo
10:43 Akron joined #mojo
10:45 amirite hypnotoad really sucks
10:45 stephan48 why?
10:45 amirite because the documentation is meaningless
10:45 Akron amirite: kvorg meant: "you can try". In fact, FastCGI support works pretty well with Mojo. The reason for the removal was just the problematic test coverage. Bundling servers wit Frameworks is pretty standard nowadays. I think, PHP as a language bundles itself now with a server. PSGI support should also be there, but I didn't play with it yet.
10:48 Akron amirite: http://mojolicio.us/perldoc/Mojol​icious/Guides/Cookbook#Hypnotoad should be all you have to know to get things started.
10:49 stephan48 amirite: if documentation sucks, go and improve it or tell sri what could be made better
10:49 stephan48 instead of meaninglessly ranting around
10:54 Akron stephan48: It wouldn't be the internetz we love, if noone would rant!
10:55 sri and if rants were meaningful
11:56 stephan48 ye sry thats true
12:07 spleenjack joined #mojo
12:09 GabrielVieira2 joined #mojo
12:33 amirite how do i set a namespace for where mojolicious should look for controllers
12:33 amirite i.e. i don't like the messy practice of dumping all my controllers in the root application package directory
12:33 amirite so i put them in App/Controller
12:36 amirite anyone
12:56 nicomen re: http://search.cpan.org/~sri/Mojolicious​-2.96/lib/Mojolicious/Guides/Cookbook.p​od#Making_your_application_installable <-- shouldn't templates/public go into some usr/share thing?
13:00 sri nicomen: that wouldn't be so easy
13:07 Psyche^ joined #mojo
13:09 nicomen sri: according to a co-worker, catalyst does it "right", we use Module::Install which has a Module::Install::Catalyst module that uses File::Sharedir and stuff ends up in /usr/local/share/perl5.10/My/App/...
13:10 nicomen maybe worth a look
13:10 nicomen apparently stuffing templates and such in lib isn't that popular
13:13 stephan48 nicomen: so write a Module::Install::Mojo
13:14 nicomen heh, yeah considering that, just asking around
13:15 stephan48 reminds me to put my own Plugin into cpan :)
13:18 d4rkie joined #mojo
13:24 sri nicomen: i originally wrote Module::Install::Catalyst ;)
13:25 sri the recipe is a hack, a quick and dirty way to do it that just works everywhere
13:29 andrefs joined #mojo
13:32 sri but i'm not sure it actually uses /usr/local/share
13:33 sri maybe things changed, but /usr/local/share seems to be rather unreliable
13:34 sri the two hacks i know of that are portable would be installing it with the .pm files directly or into the auto/share directory
13:35 sri which then would be /usr/local/perl5.10/site_lib/auto/​share/MyApp/templates/foo.html.ep
13:36 sri not that much better than /usr/local/perl5.10/site_perl​/MyApp/templates/foo.html.ep
13:36 sri but a lot harder to implement, considering you need a custom installer
13:37 sri you might like Module::Install::Share
13:38 sri the main point of the cookbook recipe is to show you that you can just add arbitrary search paths for templates and static files ;)
13:39 jnap joined #mojo
13:44 pau4o joined #mojo
13:52 Akron joined #mojo
13:53 GabrielVieira2 tempire: it`s free for 1 worker dyno, right?
13:54 Akron amirite: http://search.cpan.org/~sri/Mojolicious-​2.97/lib/Mojolicious/Routes.pm#namespace
13:57 Leandr joined #mojo
13:58 sri oh, since when does README.pod not work on github?
14:00 sri weird, now it does again -.-
14:03 andrefs joined #mojo
14:09 inokenty joined #mojo
14:18 pau4o joined #mojo
14:20 AmeliePoulain joined #mojo
14:24 mire joined #mojo
14:32 andrefs joined #mojo
14:53 nic GabrielVieira2: For free you either get 1 web dyno or 1 worker dyno
14:54 GabrielVieira2 when I select 1 web dyno it charges me 35us$
15:14 spleenjack joined #mojo
15:19 asarch joined #mojo
15:45 GabrielVieira joined #mojo
16:15 xaka joined #mojo
16:29 nic The only explanation is they've heard you're trouble and they're charging you extra to compensate
16:30 pau4o left #mojo
16:31 nic I suppose there could be an alternative explanation -- that you're not reading the totaller correctly
16:31 nic (Look at 'Total')
16:39 pau4o joined #mojo
16:51 andrefs joined #mojo
16:52 pau4o left #mojo
17:09 andrefs joined #mojo
17:10 batman joined #mojo
17:14 fhelmber_ joined #mojo
17:33 kthakore hey
17:35 kthakore I am doing $r->websocket('/jobs')->to('root#update_jobs');
17:38 kthakore but wehn I use the javascript to poll it
17:39 kthakore it says Wrong url scheme for WebSocket http://127.0.0.1:5000/jobs
17:39 batman are you sure you're doing ws:// and not http:// ?
17:42 kthakore my javscript is var ws = new WebSocket('<%= url_for('/jobs')->to_abs %>');
17:42 kthakore as it says in the cookbook
17:44 kthakore and when I type it in manually I get a 404
17:44 kthakore wtf?
17:47 sri it certaily doesn't say url_for('/jobs')
17:48 sri '/jobs' is a random path, you prolly want the name of the route
17:48 kthakore what is the name pff the route?
17:48 kthakore $r->websocket('/jobs')->to('root#update_jobs');
17:48 kthakore is what I used
17:53 kthakore It is so weird
17:54 kthakore http://i.imgur.com/dMaU3.png
17:54 kthakore sri ^^ ?
17:56 sri there is absolutely nothing weird about that, the websocket handshake is a GET request
17:58 kthakore so why am I getting 404?
17:59 tempire the browser request is not a websocket request
17:59 kthakore ah
17:59 kthakore but I am getting 404
17:59 kthakore in console too
17:59 batman probably because you're doing GET ?
18:00 batman have you tried this:
18:00 batman $r->websocket('/jobs')->to('root​#update_jobs')->name('ws_jobs');
18:00 batman var ws = new WebSocket('<%= url_for('ws_jobs')->to_abs %>');
18:00 kthakore ah ok
18:03 kthakore It is expanding too var ws = new WebSocket('ws://127.0.0.1:5000/jobs');
18:03 kthakore and then I am having unexpected response code
18:03 kthakore 404
18:03 kthakore in javascript console
18:06 kthakore I run it in the console
18:06 kthakore var ws = new WebSocket('ws://127.0.0.1:5000/jobs');
18:06 kthakore undefined
18:06 purl somebody said undefined was false, but so are some defined values
18:06 kthakore I dunno what is the problem
18:10 Leandr joined #mojo
18:37 sri damn, i could swear most of the people on hackernews these days don't even know how to code
18:41 Akron joined #mojo
19:24 andrefs joined #mojo
19:28 mattastrophe joined #mojo
19:34 Debolaz joined #mojo
19:35 Debolaz sri: How much memory usage do you think it's reasonable for the Mojolicious::Lite Hello world example to have running as daemon?
19:35 Debolaz 12 MB or so?
19:36 sri Debolaz: don't think i care
19:37 xaka wow, mongodb has raised another $42 million of funding, that is just great
19:37 Debolaz sri: I'm not implying that would be bad in any way.
19:38 sri Debolaz: yea, you asked what's reasonable, and i don't have an opinion :)
19:39 sri and 10gen is profitable on top of that, lets hope they invest in R&D
19:46 xaka what i really like about mongodb and 10gen is that you can come over to their office every week and ask developers for help right here and right now...or troll them :)
19:53 tempire cpanm Mojolicious or curl get.mojolicio.us | sh ?
19:53 andrefs joined #mojo
19:54 sri same thing
19:54 tempire aesthetically
19:54 * sri shrugs
19:55 tempire I'm asking opinions for which is a better presentation
19:55 tempire guess I'll stick with cpanm
19:55 sri makes sense for a perl audience
19:56 tempire I wish cpanm supported -j9
19:57 sri HARNESS_OPTIONS=j9 is not too bad
19:58 sri you can recommend -n :)
19:58 tempire I'm going to be pushing how many tests are involved.  15s with tests is too good of a thing to skip
19:59 sri btw. what's the code/test ratio now?
19:59 tempire I don't know, running sloccount with lib tells me there's 106 lines of code.
20:00 jnap joined #mojo
20:02 sri 9490 SLOC in lib and 16890 SLOC in t
20:04 sri 9130 unit tests total, of which 8555 are not optional
20:05 kthakore any help for the websocket stuff :( ?
20:05 * kthakore huggles sri
20:06 sri kthakore: copypasta the examples and move on from there
20:06 kthakore but they are in m::lite
20:06 kthakore my thing is an app now :(
20:06 sri start with lite and grow it into your normal app
20:07 kthakore lol I did that before
20:07 kthakore doh
20:07 kthakore I would have to go back
20:07 kthakore and undo all the rest of the stuff
20:07 kthakore I even made a daemon back job runner!
20:07 sri websockets are rather advanced, i'm not sure you should be playing with them yet, at least not before you've finished the growing stuff
20:07 kthakore ok
20:07 sri hmm
20:08 kthakore so eventsoucre?
20:08 kthakore and I jsut have a while loop in javascript poll it?
20:09 xaka joined #mojo
20:09 sri you don't have to go back, just make websockets work in a lite app so you get a feeling for how they work
20:09 sri after all, lite apps and normal apps are just the same
20:12 * tempire is sad that his mojolicious only has 106 lines of code
20:14 kthakore ah ok
20:18 marcus joined #mojo
20:21 tempire does anyone remember the name of the webservice that displays a bunch of keywords in various patterns?
20:41 kthakore crap
20:41 kthakore sri: as soon as I grow the route to $r->websocket('/jobs')->to( controller => 'Root', action => 'update_jobs' )->name('ws_jobs');
20:41 kthakore it gives me a 404
20:41 kthakore on the websocket
20:48 tempire Root?
20:48 purl hmmm... Root is passw0rd or used by TT for its templates.. or the worst library ever at http://root.cern.ch
20:48 tempire try root
20:50 kthakore tempire: that is my controller
20:50 kthakore lib/MyApp/Root.pm
20:50 kthakore oh ok
20:51 kthakore same eroor
20:52 kthakore but the console is showing
20:52 kthakore jobs as pending
20:52 kthakore err
20:52 kthakore I dunno why?
20:54 kthakore nope ... still 404
20:54 kthakore on the server I am seeing it look for [Tue May 29 16:55:09 2012] [debug] GET /jobs (Anonymojo).
20:55 kthakore [Tue May 29 16:55:09 2012] [debug] GET /jobs (Anonymojo).
20:55 kthakore err sorry
20:55 kthakore and then it goes notfound
20:55 kthakore but that thing exists!
21:05 jnap joined #mojo
21:16 kthakore ARGH WHY IS IT 404'
21:16 kthakore WHY 404?
21:16 kthakore BLARGH
21:22 kthakore sri: how can I debug this as a test case?
21:32 kthakore OHMYGAWD!
21:32 kthakore Found the problem
21:33 kthakore I am getting this Can't locate object method "on_finish" via package "MyApp::Root"
21:33 kthakore MyApp is a Mojolicious::Controller
21:33 kthakore where do I get those methods? send_message and so on ?
21:34 sri didn't you say it worked in a lite app?
21:35 sri those methods do not exist
21:36 kthakore yeah
21:36 kthakore it is $self->on (
21:36 * kthakore facepalms
21:36 purl facepalms are certainly another important measure
21:36 kthakore sri: I am rtard
21:37 kthakore and this only works with daemon
21:37 kthakore not with starman
21:37 kthakore I am assuming I have to do a psgi middleware thingy
21:38 sri i doubt that is possible, websockets are way beyond the scope of psgi
21:39 kthakore ah ok
21:39 kthakore so when I am deploying this what should I do? nginx and fastcgi?
21:39 sri websockets are way beyond the scope of fastcgi :)
21:39 sri and nginx for the time being
21:40 sri (last one not by design though)
21:40 kthakore okie
21:40 kthakore so what can I do for long polling for now?
21:40 sri http://mojolicio.us/perldoc/Mojolic​ious/Guides/Cookbook#REAL2DTIME_WEB
21:41 sri you may find that enlightening
21:42 kthakore Thanks
21:43 sri eventsource might be possible with psgi, but our binding doesn't do psgi.streaming, since the psgi spec is still broken
21:43 kthakore How does morbo compare to this?
21:43 sri to what?
21:43 purl i think to is Tonga Islands
21:44 kthakore morbo + websocket and ajax polling /get + psgi + nginx stack
21:44 sri you can't do websockets with nginx+psgi
21:45 kthakore oh no I meant doing a javascript while(1) and polling a /get
21:45 sri i don't know
21:45 sri try it for yourself
21:45 sri it always depends on the exact use case
21:45 kthakore okie
21:46 kthakore maybe I can run just the websocket on hypnotoad
21:52 kthakore can i make hypnotoad system load aware and have it load balance accross workers?
21:55 lukep joined #mojo
22:58 hugh joined #mojo
23:10 batman joined #mojo
23:31 xaka joined #mojo
23:31 Patterner joined #mojo
23:31 perlite joined #mojo
23:31 amirite joined #mojo
23:31 ryanc joined #mojo
23:31 alnewkirk joined #mojo
23:31 nuba joined #mojo
23:31 bobkare joined #mojo
23:31 DaTa joined #mojo
23:31 keedi joined #mojo
23:31 mikegrb joined #mojo
23:33 Debolaz joined #mojo
23:33 mattastrophe joined #mojo
23:33 Gedge joined #mojo
23:33 tempire joined #mojo
23:33 stephan48 joined #mojo
23:33 crab joined #mojo
23:33 kthakore joined #mojo
23:33 atrodo joined #mojo
23:33 kenjiskywalker joined #mojo
23:33 predgtr1 joined #mojo
23:33 charsbar__ joined #mojo
23:33 kmx joined #mojo
23:33 jmmills joined #mojo
23:33 robinsmidsrod joined #mojo
23:33 burk joined #mojo
23:34 burk joined #mojo
23:34 robinsmidsrod joined #mojo
23:34 jmmills joined #mojo
23:34 kmx joined #mojo
23:34 charsbar__ joined #mojo
23:34 predgtr1 joined #mojo
23:34 kenjiskywalker joined #mojo
23:34 atrodo joined #mojo
23:34 kthakore joined #mojo
23:34 crab joined #mojo
23:34 stephan48 joined #mojo
23:34 tempire joined #mojo
23:34 Gedge joined #mojo
23:34 mattastrophe joined #mojo
23:34 Debolaz joined #mojo
23:34 mikegrb joined #mojo
23:34 keedi joined #mojo
23:34 DaTa joined #mojo
23:34 bobkare joined #mojo
23:34 nuba joined #mojo
23:34 alnewkirk joined #mojo
23:34 ryanc joined #mojo
23:34 amirite joined #mojo
23:34 perlite joined #mojo
23:34 Patterner joined #mojo
23:34 xaka joined #mojo
23:34 purl joined #mojo

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