Camelia, the Perl 6 bug

IRC log for #mojo, 2011-10-20

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

All times shown according to UTC.

Time Nick Message
00:02 GitHub178 joined #mojo
00:02 GitHub178 [mojo] kraih pushed 1 new commit to master: http://git.io/9doZtQ
00:02 GitHub178 [mojo/master] a few new event examples - Sebastian Riedel
00:02 GitHub178 left #mojo
00:03 sri i think the progress one is fun
00:05 sri oh wait
00:05 sri there'sa bug
00:12 gshank joined #mojo
00:13 GitHub190 joined #mojo
00:13 GitHub190 [mojo] kraih pushed 1 new commit to master: http://git.io/XFZCzw
00:13 GitHub190 [mojo/master] fixed small bug in upload_lite_app.t - Sebastian Riedel
00:13 GitHub190 left #mojo
00:19 tempire hmm
00:20 tempire so theoretically, if the on(part) callbacks are completed immediately, then you could have two renders
00:20 tempire but I suppose that doesn't hurt much of anything.
00:20 sri please elaborate
00:21 tempire well, let's say the first processing of /upload/:id fires off the part event and they all finish before it gets to "return unless $self->req->is_done"
00:22 sri that's not how it works
00:22 memowe joined #mojo
00:22 sri nothing happens before you reach is_done
00:23 sri the event loop would have to be in control again for new data to arrive, and that would require the ->emit call to return
00:23 tempire oh, is_done is when the parsing is complete.
00:23 * sri nods
00:24 tempire I was thinking it was when all data was received.
00:24 tempire and connection was closed
00:24 sri that wouldn't make much sense ;p
00:25 tempire am I the only one who thinks ->is_done is misleading, then?
00:26 sri what else should it be called?
00:26 tempire ->is_parsed
00:26 sri would have been an option i guess
00:26 sri the whole done thing has a very long history though
00:27 sri back in the days when there was a more formalized state machine
00:27 tempire state machines are the devil
00:27 tempire this I have learned
00:27 sri heh
00:28 sri actually i don't think it is misleading
00:28 sri since it is called on the request
00:28 tempire contextually, it's not misleading.
00:28 sri "the request message is done"
00:29 tempire it's just that "done" doesn't mean anything explicitely.
00:29 tempire I'm not complaining about it.
00:30 Alias_ left #mojo
00:30 tempire just voicing my initial confusion in case someone else had a similar issue.
00:30 sri i think today i would call it something else too
00:30 tempire *explicitly
00:31 sri especially since we also use the term "finish" a lot
00:32 tempire sheesh
00:32 tempire another ruby tutorial site
00:32 tempire there's one released every week, it seems
00:32 sri but i don't feel strongly enough about it to go through the whole deprecation process ;p
00:36 sri at some point i guess the inconsistency between ->is_done and ->on(finish => …) needs to be addressed
00:37 tempire synonym and deprecate
00:38 sri rename to what?
00:39 tempire well, I was assuming choosing either finish or done
00:39 sri finish is the less painful choice
00:39 tempire but it might make sense to list them all out, maybe naming them explicitly, so they wouldn't rely on contextual clues would make sense.
00:40 sri i think is_done is used exclusively by parsers
00:41 sri while finish has many uses, like the end of a websocket connection
00:41 MojoGuest908 joined #mojo
00:42 MojoGuest908 ALL GLORY TO THE HYPNOTOAD!
00:50 sri in the end i guess it will be is_finished
00:50 sri then again
00:51 sri we also have a "close" event
00:51 sri close, done, finish… we use them all
00:53 sri anyway, sleep :)
00:53 sri nn
01:00 oxxi joined #mojo
01:01 oxxi Hi! Is it possible to access the request url in templates?
01:03 perlrocks Twitter: "Mojolicious 2.0: Modern Perl For the Web: http://t.co/BiYa6zUU" --igortech http://twitter.com/igortech​/status/126825716338786304
01:07 tempire oxxi: $self->req is a Mojo::Message::Request object
01:08 oxxi tempire: wow, I have $self? great! :)
01:09 tempire though you might want to consider putting the information you want in the stash from the controller action
01:09 oxxi yep
01:10 oxxi thank you! :)
01:10 tempire np
01:30 crab hi tempire.
01:30 tempire HOWDY
02:01 gabriel joined #mojo
02:11 GabrielVieira joined #mojo
02:21 GabrielVieira joined #mojo
03:10 noganex_ joined #mojo
04:21 jmmills sri, holy cow long event chain! :) if I'm getting this right it's: on the "content body" on the "upgrade" of a body from "single" to "multipart" on the "parts" "body's" "read" event...
04:24 jmmills and I'm assuming undef returned event handlers get delegated down the chain to the next/normal handler
04:38 perlrocks Twitter: "[Perl Notes] Mojolicious the board written in PHP:: try to write in a Lite - http://t.co/L3fdOfFi" (ja) --kuma_type http://twitter.com/kuma_typ​e/status/126879893664440320
04:41 tempire jmmills: there's an updated test example that doesn't use that embedded chain
04:42 jmmills Well, I was actually interested in that chain
04:42 jmmills All of this getting it wrong and questioning is good, I'm starting to pick up on how mojo really works
04:42 jmmills I want to grab uploaded data and put it somewhere off system
04:42 jmmills so that's kind of what I want
04:43 jmmills I haven't had a lot of time to hack around with new stuff recently though thanks to a work and school
04:48 perlrocks Twitter: "Today: More #mojolicious fun. Writing #nagios plugins for web content checks. Mojo::DOM is your friend." --rabenfeder http://twitter.com/rabenfede​r/status/126882487459778560
05:05 gabriel joined #mojo
05:20 MojoGuest279 joined #mojo
05:20 MojoGuest279 From: http://www.google.com/url?sa=t&rct=j&amp​;q=mojolicious%20extjs&source=web&cd​=3&ved=0CDMQFjAC&url=http%3A%2F%2Fde​v.xantus.org%2F&ei=R6-fTvLzHq3diAKo_PUy&​amp;usg=AFQjCNGw6nZv0wO42uzUnHhWcD0vcKNULg (1 hits)
05:32 MojoGuest685 joined #mojo
05:32 MojoGuest685 From: http://www.google.com.au/url?sa=t&rct=j&a​mp;q=html5%20irc&source=web&cd=4&​ved=0CDgQFjAD&url=http%3A%2F%2Fdev.xantus​.org%2F&ei=ZK-fTp_iLImniQLrj7E3&usg=A​FQjCNGw6nZv0wO42uzUnHhWcD0vcKNULg&cad=rja (1 hits)
05:45 omega joined #mojo
05:52 preflex joined #mojo
05:52 xaka joined #mojo
05:52 Vandal joined #mojo
05:55 preflex joined #mojo
06:00 batman joined #mojo
06:04 arpadszasz joined #mojo
06:04 MojoGuest606 joined #mojo
06:04 MojoGuest606 From: http://www.google.com/url?sa=t&rct=j&​q=websocket%20irc&source=web&cd=4&amp​;sqi=2&ved=0CDEQFjAD&url=http%3A%2F%2​Fdev.xantus.org%2F&ei=8LmfTvC1PLDKiAKJ97B​P&usg=AFQjCNGw6nZv0wO42uzUnHhWcD0vcKNULg (1 hits)
06:06 koban joined #mojo
06:21 MojoGuest235 joined #mojo
06:21 MojoGuest235 From: http://www.google.com/url?sa=t&rct=j&​q=websocket%20irc&source=web&cd=4&amp​;sqi=2&ved=0CDEQFjAD&url=http%3A%2F%2​Fdev.xantus.org%2F&ei=8LmfTvC1PLDKiAKJ97B​P&usg=AFQjCNGw6nZv0wO42uzUnHhWcD0vcKNULg (2 hits)
06:22 Foxcool joined #mojo
06:42 ispy_ joined #mojo
07:10 smpb_ joined #mojo
07:18 migo joined #mojo
07:29 batman joined #mojo
07:38 sugar joined #mojo
07:43 arpadszasz joined #mojo
07:52 marcus sri: is $c->match->endpoint->name the most efficient way to get the current route name?
07:53 judofyr joined #mojo
08:07 dolmen joined #mojo
08:09 smpb joined #mojo
08:30 marcus sri: is it on purpose that bridge has a different controller instance from the endpoint even if they're int the same controller class?
08:30 marcus sri: and if so, where do you suggest the parallol request should store it's per-request data? stash?
08:34 judofyr stash it is!
08:38 crab paral-lol?
08:39 cosmincx joined #mojo
08:40 judofyr crab: parallol
08:41 judofyr crab: because parallell requests should be as fun as parallololololol
08:43 geira joined #mojo
08:47 metaperl|2 joined #mojo
08:51 perlrocks Twitter: "Mojolicious 2.0: "The project has its Mojolicious Perl-based web framework in version 2.0 with many innovations ... http://t.co/W9fmITTW" (de) --cibis http://twitter.com/cibis/status/126943711014813696
08:56 MisterHatt howdy, just updated to 2.02 and running some old code to see what's up with it, it's quite minimal as far as what it's supposed to do, but having some sort of hashref error that I can't pin down?
08:56 MisterHatt Processing request failed: Can't use string ("Site::List") as a HASH ref while "strict refs" in use at /home/test/.perl5/lib/perl5​/Mojolicious/Controller.pm line 557.
08:56 MisterHatt ^drom the log
08:56 MisterHatt any idea what's up?
09:04 marcus hey mister hatt
09:06 spleenjack joined #mojo
09:13 crab misterhatt: sounds approximately like someone calls Site::List->object_method instead of $site_list_object->object_method
09:19 Eugene joined #mojo
09:32 sri someone calls Site::List->stash
09:32 sri punch that one on the nose please
09:33 geira joined #mojo
09:34 sri marcus: you ask all the stranges things, i have no idea
09:34 sri *+t
09:37 MisterHatt dunno, the call to it is route->('/')->to->('site#list');
09:38 crab to->('site#list')? wtf?
09:39 crab should be to('site#list')
09:40 marcus sri: that's because I'm a power user ;-)
09:50 batman joined #mojo
09:51 * marcus gets his power tools.
09:54 marty joined #mojo
09:56 GitHub65 joined #mojo
09:56 GitHub65 [mojo] kraih pushed 1 new commit to master: http://git.io/HFcmHA
09:56 GitHub65 [mojo/master] added experimental support for new HTTP status codes from draft-nottingham-http-new-status - Sebastian Riedel
09:56 GitHub65 left #mojo
09:56 sri very useful codes
09:59 MisterHatt crab: probablyme typing it wrong
10:00 MisterHatt yeah just me typing it wrong there, code has it as to()
10:13 spleenjack joined #mojo
10:39 andrefs joined #mojo
11:00 perlrocks Twitter: "Mojolicious 2.0 released: Perl real-time web framework #perl /via YC http://t.co/fcvoPzCD" --FGRibreau http://twitter.com/FGRibrea​u/status/126975960716296192
11:02 sri still not sure what to do about is_done
11:02 sri deprecating it for is_finished seems like the best solution
11:03 marcus Too many requests, not enough MCs
11:06 azawawi joined #mojo
11:15 ispy_ joined #mojo
11:17 mire joined #mojo
11:26 Shaeto joined #mojo
11:28 marcus KITTENS GIVE MORBO GAS
11:31 spleenjack joined #mojo
12:08 ysyrota joined #mojo
12:20 GitHub184 joined #mojo
12:20 GitHub184 [mojo] kraih pushed 1 new commit to master: http://git.io/PR-_Eg
12:20 GitHub184 [mojo/master] deprecated all is_done methods in favor of is_finished - Sebastian Riedel
12:20 GitHub184 left #mojo
12:20 sri better to do it now, while it still affects only few users
12:21 sri once events get used heavily those methods will get used a lot more too
12:21 MisterHatt so, is route('/')->to('site#list'); incorrect syntax?
12:23 MisterHatt going to the subroutine index in site.pm
12:24 sri pushing a quick 2.03 release with only the deprecation
12:24 Shaeto MisterHatt check it there http://search.cpan.org/~sri/Mojolicious-​2.02/lib/Mojolicious/Guides/Routing.pod
12:24 sri then the examples won't be out of sync with the cpan release
12:24 MisterHatt sure, thanks
12:25 sri if something goes wrong i'll blame tempire :)
12:25 perlrocks Twitter: "Mojolicious 2:03 by SRI - http://t.co/qlUYu0gy" (ms) --cpan_new http://twitter.com/cpan_new​/status/126997472370360321
12:28 MisterHatt Shaeto: I'm still not seeing my problem, the code is syntax identical to eveyr other working mojo app I have, as well as the docu, but still getting invalid hash ref?
12:28 MisterHatt er sri
12:29 Shaeto think you have problem in site::index method
12:29 Shaeto not with route
12:29 Shaeto or site::list
12:30 MisterHatt could be, but given it's just $self = shift; $self->render;, I think that is unlikely...
12:36 spleenjack joined #mojo
12:36 * marty waves
12:37 sri ok, now everything uses the term "finish", except for the low level "close" events, but i think that's ok
12:37 marty MisterHatt:  I'm assuming route('/')->to('site#list'); is psudocode right?
12:37 sri since "close" emitting classes are all connection oriented
12:37 MisterHatt marty: yes but it's essentially what I have
12:38 MisterHatt exact code goes more like $r->route('/')->to(controller => 'ClientName', action => 'index');
12:39 MisterHatt faster to shorthand it tho
12:39 MisterHatt the index subroutine tho is literally just rendering a template, although will later have shit added
12:40 marty That route looks fine to me.  Assuming that $r is defined as my $r = $self->routes;
12:40 MisterHatt yes
12:40 marty You can always pastebin your subroutine if you want
12:41 Shaeto check package name and "use" section
12:41 * marty nods
12:42 abra joined #mojo
12:42 Shaeto also check if you have 1; at end of pm
12:42 alnewkirk joined #mojo
12:42 Alias joined #mojo
12:42 MisterHatt Shaeto: which pm, all of them?
12:43 Shaeto site.pm
12:43 MisterHatt seems they all do
12:44 MisterHatt looks like I dont have a use Namespace::Site; tho, although i wasnt aware I needed to use it implicitly
12:44 MisterHatt or explicitly rather
12:44 Shaeto depends on your site structure
12:44 MisterHatt I guess
12:44 * MisterHatt gives it a shot
12:45 MisterHatt actually it shouldnt make a difference
12:46 MisterHatt given the daemon script is calling the whole lib dir...
12:46 MisterHatt that or I misunderstand how it works and for whatever magic reason my stuff works on other projects
12:49 Shaeto where is located your site.pm, in ./lib or ./lib/MySite/Controller/ ?
12:52 andrefs joined #mojo
12:52 MisterHatt Shaeto: ./lib/MySite/
12:53 MisterHatt the application class is in ./lib
12:55 perlrocks Twitter: "Looking at the #mojolicious video tutorials. Well done, simple, and completely sensible web dev. When's e4 done? :) http://t.co/bZQIhWax" --sjoshuan http://twitter.com/sjoshuan​/status/127004997715107841
12:55 Shaeto for example my root namespace my $r = $self->routes->namespace('MySite::Controller')
12:55 sjn hm
12:56 Shaeto so, think you have to use my $r = $self->routes->namespace('MySite');
12:56 sjn is the code for the perlrocks bot publicly available somewhere?
12:56 MisterHatt I'll give that a try
12:56 MisterHatt I thought it might be decided based on the package name at the start of my application/controller
12:56 MisterHatt as it seems to be calling the correct module at least, it just says the namespace string is an invalid hashref
12:59 Shaeto correct syntax can be also: ->to('site#list', namespace => 'MySite')
12:59 sri sjn: https://github.com/kraih/mojoli​cio.us/blob/master/perlrocks.pl
12:59 Shaeto if you want to use different namespaces for every route path
13:03 marcus sri: perlrocks could probably use AnyEvent::IRC?
13:04 sjn sri: sri thanks! ^^
13:04 sri marcus: it could
13:04 purl if you patch it
13:04 * sri hugs purl
13:04 * purl nibbles sri's elbow
13:04 marcus botvert!
13:05 * elb0w_ hugs purl
13:05 purl elb0w_: get off me, you botvert!
13:05 elb0w_ LOL
13:05 elb0w_ wanted it to say elb0w's elbow
13:05 elb0w_ :(
13:06 sjn heheh
13:07 sri perlrocks will die in a few days anyway
13:07 elb0w_ wtf y
13:07 elb0w_ o
13:07 elb0w_ rofl
13:07 * elb0w_ parts
13:07 sri when google turns off the translate api
13:07 elb0w_ I cant believe they arent replacing it
13:09 elb0w_ sri: does google translate limit your requests?
13:09 sri no idea
13:10 elb0w_ was gonna say should abuse it now build a dictionary
13:10 azawawi elb0w_: yup
13:10 elb0w_ :P
13:10 elb0w_ Request full languages
13:10 crab will the translate api go away but translate.google.com continue to work? or are the both going away?
13:10 azawawi they limit it quite a bit
13:10 crab s/the/they/2
13:12 elb0w_ http://www.microsoft.com/web/post/u​sing-the-free-bing-translation-apis
13:12 elb0w_ Wonder if it could hook into that
13:13 elb0w_ ya
13:14 elb0w_ although I wouldnt put it past microsoft to just be piggy backing on googles api haha
13:19 tabbi joined #mojo
13:19 tabbi left #mojo
13:20 MojoGuest5 joined #mojo
13:20 MojoGuest5 From: http://www.google.cz/url?sa=t&rct=j&q=webs​ocket%20extjs&source=web&cd=7&ved=0CGM​QFjAG&url=http%3A%2F%2Fdev.xantus.org%2F&e​i=GhygTquHE4nHsgaXqciAAw&usg=AFQjCNGw6nZv0wO42​uzUnHhWcD0vcKNULg&sig2=_cdTHfVZEy_mEvOfAUQjQw (1 hits)
13:21 MojoGuest5 asdasd
13:21 MojoGuest5 asdads
13:21 MojoGuest5 asdqerqre
13:21 MojoGuest5 qwreqwre
13:31 MojoGuest474 joined #mojo
13:31 MojoGuest474 From: http://www.xydo.com/toolbar/32347902 (1 hits)
13:32 MojoGuest938 joined #mojo
13:32 MojoGuest938 From: http://www.xydo.com/articles/32347902-​mojo_websocket_demo_-_extjs_irc_client (1 hits)
13:32 MojoGuest296 joined #mojo
13:32 MojoGuest296 From: http://xantus.tumblr.com/page/2 (5 hits)
13:34 sugar joined #mojo
13:43 geira joined #mojo
13:44 marcus sri: Undefined subroutine &Mojo::IOWatcher::EV::timer called at /Users/marcus/perl5/perlbrew/perls/perl-5​.14.1/lib/site_perl/5.14.1/Mojo/IOLoop.pm line 298. ?
13:52 kaare joined #mojo
13:52 sri marcus: no idea
13:52 GitHub187 joined #mojo
13:52 GitHub187 [mojo] kraih pushed 1 new commit to master: http://git.io/P1Obow
13:52 GitHub187 [mojo/master] fixed small typo in changes - Sebastian Riedel
13:52 GitHub187 left #mojo
14:02 spleenjack joined #mojo
14:10 GitHub128 joined #mojo
14:10 GitHub128 [mojo] kraih pushed 1 new commit to master: http://git.io/g9OVtA
14:10 GitHub128 [mojo/master] a few more content event examples - Sebastian Riedel
14:10 GitHub128 left #mojo
14:17 judofyr joined #mojo
14:26 mire joined #mojo
14:32 koban left #mojo
15:07 yakudza joined #mojo
15:07 yakudza left #mojo
15:32 sri http://mojolicio.us/perldoc/​Mojo/Content/Single#upgrade # are examples like this one helpful at all?
15:32 sri it's more like a simple debug hack
15:38 crab sri: i like it
15:38 GabrielVieira joined #mojo
15:47 xaka joined #mojo
15:54 sri ok, guess i'll keep them then :)
16:03 arpadszasz joined #mojo
16:07 Foxcool joined #mojo
16:12 Eugene joined #mojo
16:19 mattastrophe joined #mojo
16:40 met joined #mojo
16:40 met hi there
16:40 purl niihau, met.
16:51 mojobot14361 joined #mojo
16:54 mojobot14411 joined #mojo
16:55 mojobot14422 joined #mojo
16:58 mojobot14467 joined #mojo
16:58 rdesfo joined #mojo
16:59 rdesfo hello
17:00 * marty waves
17:01 mojobot14502 joined #mojo
17:03 mojobot14510 joined #mojo
17:03 marty sri: I do not have enough experience with content events to have an informed opinion about the examples.  sorry. :(
17:04 sri marty: then you're actually the perfect guinea pig :)
17:04 sri does the example help you in any way?
17:06 marty lemme have another look....
17:10 rdesfo left #mojo
17:11 sromanov joined #mojo
17:14 metaperl joined #mojo
17:15 marty sri:  Yes, it makes sense now.  I made the mistake of skipping to example soon.
17:16 marty Once I *read* that Mojo::Content::Single was a container for HTTP 1.1
17:16 sri \o/
17:16 marty and: Mojo::Content::Single inherits from Mojo::Content and emits the following new events...
17:16 marty It stated to make more sense. I'm sure when I get more time to play with the events it will become even more clear.
17:33 elb0w_ I never get people
17:33 elb0w_ er
17:50 sri do we have any windows users here?
17:55 sri http://www.cpantesters.org/cpan/report​/9a59731f-6bf7-1014-bf63-c3fe11cd2d3c
17:55 sri there appears to be a bug i can't fix
17:57 sri well, i'll leave this to the community
18:08 Eugene joined #mojo
18:08 sri think i'll post it to the list
18:09 sugar joined #mojo
18:10 batman joined #mojo
18:17 amoore joined #mojo
18:22 iana joined #mojo
19:01 tempire lulz
19:01 tempire sri, someone's thinking of you: http://people.gnome.org/~michael/d​ata/2011-10-13-new-developers.pdf
19:01 tempire <3
19:02 sri lol
19:03 arpadszasz joined #mojo
19:06 tempire what was your problem with any event again?
19:10 sri tempire: see last changes entry for the 6.1 release
19:11 sri he didn't like how someone embedded anyevent into another event system, so he hardcoded an exception to prevent anyevent from working when that particular module is loaded
19:12 tempire I've heard that, but you didn't like it long before oct 4
19:12 tempire that's what I'm curious about
19:13 sri it's a hoax
19:14 sri http://search.cpan.org/~mlehmann/AnyEvent-6.1/l​ib/AnyEvent.pm#WHY_YOU_SHOULD_USE_THIS_MODULE_(OR_NOT)
19:15 sri other event loops have had multiple backends for ages
19:16 sri i'm a bit tired of discussing this though
19:16 sri these days politics alone make anyevent a no-go for projects like us
19:19 sri for the same reason the EV backend will never be able to leave experimental stage
19:20 sjn hm. I kinda liked the thought of having access to an event loop...
19:20 sjn so, what are the options?
19:20 sri you can plug any event loop you like into mojolicious
19:21 sri we have a compatibility layer in place
19:21 sjn so, which one is the one "with a future" then?
19:21 sri https://gist.github.com/1239684 # here's a native anyevent example
19:21 Grauwolf hm. how would one make a simple tail like mojo-app? are websockets the right tool (haven't read much about it yet)
19:22 sri sjn: that's the big question ;p
19:22 sjn (sorry about asking questions that might have been asked before :-/)
19:22 sri it's a good question, but one without an answer
19:22 Grauwolf i'm thinking of doing something like http://loganalyzer.adiscon.com/
19:24 sri Grauwolf: i think crab has a blog post for you
19:25 sri web frontend for tail is becoming a FAQ :D
19:27 Grauwolf crab, sri said you had a blog post for me? about a something tail-like?
19:27 MojoGuest194 joined #mojo
19:27 MojoGuest194 From: http://blog.kraih.com/perl-is-ready-for-html5 (8 hits)
19:27 sri crab: i told Grauwolf you had a blog post for him!
19:30 metaperl joined #mojo
19:30 Grauwolf hm. can't find it with $searchengine
19:34 metaperl joined #mojo
19:42 GitHub161 joined #mojo
19:42 GitHub161 [mojo] kraih pushed 1 new commit to master: http://git.io/OutE1Q
19:42 GitHub161 [mojo/master] fixed small HTTP response parser bug - Sebastian Riedel
19:42 GitHub161 left #mojo
19:43 sri this might actually solve the windows bug
19:44 sri we are almost at 8000 unit tests now :)
19:44 marty joined #mojo
19:47 metaperl|2 joined #mojo
19:58 Ilyuhan joined #mojo
20:04 metaperl joined #mojo
20:29 kvorg joined #mojo
20:55 metaperl joined #mojo
21:03 grim_fandango joined #mojo
21:07 marcus Grauwolf: http://toroid.org/ams/etc/​mojolicious-http-streaming you fail at google :)
21:07 marcus first hit for mojolicious log tail here
21:09 tempire in soviet russia, google fails you
21:24 perlite_ joined #mojo
21:40 bosphorus joined #mojo
21:44 marcus ooh, nice redis example (in ruby) https://github.com/antirez/lamernews
21:47 sri why does he open a new connection on every request?
21:48 marcus hmm, not sure. antirez is the guy behind redis tho, so I assume he knows how it works.
21:49 sri guess he just doesn't care
21:50 sri oh wait
21:51 sri he checks if it's already initialized
21:53 sri so rare you see someone use global variables in ruby
21:56 marcus it works for a simple onefile script like this tho
21:57 sri i'm sure an instance variable would have worked too
22:07 MojoGuest735 joined #mojo
22:07 MojoGuest735 From: http://news.ycombinator.com/item?id=1277067 (40 hits)
22:08 sri oh funny
22:08 sri "foo"->CORE::ucfirst
22:08 sri that works in 5.15
22:09 marcus cute
22:09 marcus hmm, not sure why Mojo keeps thinking I want to use the EV iowatcher
22:09 marcus specially since it doesn't work
22:10 sri if it didn't work it wouldn't use it
22:10 marcus setting MOJO_IOWATCHER=Mojo::IOWatcher makes it behave
22:10 marcus uh
22:10 marcus sri: I'm getting that error I pasted you earlier
22:10 sri perl -MEV -e1
22:10 marcus yeah, that works
22:11 sri i don't care furster than that
22:11 sri if you screw up your EV it's your thing
22:11 marcus http://paste.scsys.co.uk/152223
22:11 sri yea, don't care
22:11 sri bet you force installed
22:12 marcus possible
22:12 purl ANYTHING is possible with perl!
22:12 sri on lion you have to manually patch EV to make it work
22:12 sri do not *ever* force install it
22:13 marcus http://www.lionev.com/
22:13 marcus :D
22:13 sri AAAAAAH
22:16 sri the patch is known for months now i think, but mlehmann doesn't want to patch because it's a gcc bug apple doesn't want to fix
22:25 sri hmm, so the google translate api is becoming a paid service
22:26 sri $20 per million characters
22:27 sri december 1 it's over with perlrocks
22:34 tempire :(
22:35 * sri hugs perlrocks
22:35 tempire that's our only connection with the japanese
22:36 xantus[] moo
22:36 tempire what about the bing translation api?
22:36 sri no idea
22:37 xantus[] probably some unusable soap api :p
22:41 tempire there's soap
22:41 tempire apparently there's also an http api that lets you do simple posts
22:41 tempire http://msdn.microsoft.com/e​n-us/library/ff512419.aspx
22:42 tempire and this too: http://msdn.microsoft.com/e​n-us/library/ff512404.aspx
22:42 xantus[] thats surprising
22:54 tempire mojo get "http://api.microsofttranslator.com/V1/Htt​p.svc/Translate?appId=02913709E8D4648168E​6CEDB8C4C631B3F03F08D&amp;text=Ponycorns are the best because they\'re like ponies and unicorns&from=en&to=de&contentType=text%2Fplain"
22:56 sri \o/
22:56 sri what about language detection?
22:56 tempire V1/Http.svc/Detect
22:56 sri separate?
22:56 tempire yes
22:56 sri :S
22:57 tempire oooh, they have a speak method, that returns a wave file
22:58 sri DO NOT WANT!
22:59 tempire that's freaking awesome.
22:59 tempire not sure what I'd use it for.
22:59 tempire but it's neat
23:02 sri looks like this could work as a replacement
23:08 gshank_ joined #mojo

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