Camelia, the Perl 6 bug

IRC log for #mojo, 2011-09-28

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

All times shown according to UTC.

Time Nick Message
00:14 Hinrik http://blog.kraih.com/mojolic​ious-hack-of-the-day-anyevent
00:14 Hinrik the only thing this code does on my system is to print a Mojolicious usage message to the terminal
00:15 Hinrik Debian Lenny system running Perl 5.12.4, Mojolicious 1.98, libev4-4.04-1, and AnyEvent::IRC 0.96
00:42 ashleydev joined #mojo
01:05 mojobot88624 joined #mojo
01:06 tempire test
01:06 tempire test 2
01:07 tempire test 3
01:07 tempire test 4
01:07 tempire Hinrik: works for me
01:14 Alias_ joined #mojo
01:15 Hinrik :(
01:24 mojobot91806 joined #mojo
01:24 tempire test 5
01:25 mojobot92796 joined #mojo
01:26 tempire test 6
01:26 grim_fandango I'm using Mojo to interface with a payment gateway.  The results come back as a URL encoded string.  Should I be using Mojo::Util::url_decode to get at those or is there a better way?
01:27 tempire Hinrik: are you going to localhost:3000/?
01:27 tempire or directly to /events
01:27 MojoGuest139 joined #mojo
01:27 MojoGuest139 From: http://www.google.com/url?sa=t&source=web&​cd=4&ved=0CDoQFjAD&url=http%3A%2F%2Fdev.xa​ntus.org%2F&rct=j&q=websocket%20irc&ei​=uneCTtD9JIbXiAL96fGMDQ&usg=AFQjCNGw6nZv0wO42u​zUnHhWcD0vcKNULg&sig2=s0oDFnL1DGumaHBXXOPTvg (1 hits)
01:27 Hinrik tempire: I'm running the code as is, and the program prints a usage message and then immediately exits
01:28 tempire how are you starting the lite app?
01:28 Hinrik perl code_from_blog_post.pl
01:28 tempire ah.  you need to use the development server
01:28 tempire morbo code_from_blog_post.pl
01:28 MojoGuest967 joined #mojo
01:28 MojoGuest967 From: http://www.google.com/url?sa=t&source=​web&cd=1&ved=0CC0QFjAA&url=htt​p%3A%2F%2Fdev.xantus.org%2F&rct=j&​q=ExtJS%20IRC%20Client&ei=P3iCTt-HNeSf​mQXV86gz&usg=AFQjCNGw6nZv0wO42uzUnHhWc​D0vcKNULg&sig2=R-_NjcQiHSR4Jtk6MuyE5A (1 hits)
01:28 Hinrik oh, right
01:29 Hinrik that does the trick
01:29 tempire excellent
01:31 crab http://www.basho.com/news_riak_v1_0.php => "Error establishing database connection"
01:31 crab such sweet irony
01:31 Hinrik or, hm, maybe not
01:31 tempire lulz
01:31 tempire that's what they get for using php.
01:32 Hinrik "morbo code_from_blog_post.pl" runs, but outputs nothing
01:32 Hinrik and there's nothing on localhost:3000
01:32 Hinrik gah
01:32 Hinrik oops
01:33 tempire there's either something wrong with code_from_blog_post.pl or with your mojolicious installation
01:33 Hinrik hm, thought I was using the wrong morbo binary, but no
01:34 Hinrik there's a pebkac in there somewhere
01:34 Hinrik just gotta find it
01:35 tempire at least the basho site is just timing out now.  better than a database error message.
01:45 shonorio joined #mojo
02:13 ispy_ joined #mojo
02:15 cfedde joined #mojo
02:17 cfedde should I expect the example in the http://mojolicio.us/ "Getting Started" section to work?
02:22 tempire you should
02:26 cfedde I must have made some mistake.  second cut-n-paste try works as expected.
02:27 crab hi cfedde.
02:27 cfedde hey crab.
02:43 MojoGuest287 joined #mojo
02:43 MojoGuest287 From: http://www.google.com.hk/search?gcx=w&sour​ceid=chrome&ie=UTF-8&q=extjs+websocket (1 hits)
02:50 crab joined #mojo
04:02 MojoGuest10 joined #mojo
04:02 MojoGuest10 From: http://www.google.com.hk/search?hl=zh-CN&amp​;newwindow=1&safe=strict&q=extjs++we​bsocket&oq=extjs++websocket&aq=f&amp​;aqi=&aql=&gs_sm=e&gs_upl=494741​4l4949590l0l4949750l7l6l0l0l0l0l0l0ll0l0 (1 hits)
04:19 MojoGuest177 joined #mojo
04:19 MojoGuest177 From: http://archfinch.com/item/2275e/html5-irc-clie​nt-built-with-mojolicious-extjs-and-websockets (1 hits)
04:19 MojoGuest177 hmvbmb
04:49 smpb joined #mojo
04:57 k-man joined #mojo
05:12 koban joined #mojo
05:17 Eugene joined #mojo
05:41 MojoGuest160 joined #mojo
05:41 MojoGuest160 From: http://www.google.de/url?sa=t&source=web​&cd=5&ved=0CEgQFjAE&url=http%3A%​2F%2Fdev.xantus.org%2F&rct=j&q=webso​cket%20demo&ei=eLOCTtbbFKWr0QXG7smqAQ&am​p;usg=AFQjCNGw6nZv0wO42uzUnHhWcD0vcKNULg (1 hits)
06:08 sromanov joined #mojo
06:27 Vandal joined #mojo
06:57 preflex_ joined #mojo
07:13 arthas joined #mojo
07:13 abra joined #mojo
07:29 cosmincx joined #mojo
07:29 cosmincx joined #mojo
08:06 Vandal joined #mojo
08:15 * sri yawns
08:34 Eugene joined #mojo
09:14 spleenjack joined #mojo
09:25 preflex_ joined #mojo
09:40 judofyr joined #mojo
09:59 Eugene1 joined #mojo
10:32 andrefs joined #mojo
10:49 shonorio joined #mojo
12:06 random left #mojo
12:12 spleenjack1 joined #mojo
12:31 andrefs joined #mojo
12:38 tabbi joined #mojo
12:38 tabbi left #mojo
12:59 chorny joined #mojo
13:01 random joined #mojo
13:07 ispy_ joined #mojo
13:19 shonorio joined #mojo
13:30 MojoGuest765 joined #mojo
13:30 MojoGuest765 From: http://news.ycombinator.com/item?id=1277067 (9 hits)
13:32 MojoGuest765 left #mojo
13:47 MojoGuest785 joined #mojo
13:47 MojoGuest785 From: http://blog.kraih.com/perl-is-ready-for-html5 (1 hits)
13:47 MojoGuest785 /j caca
13:53 MojoGuest20 joined #mojo
13:53 MojoGuest20 From: http://blog.kraih.com/perl-is-ready-for-html5 (2 hits)
14:01 koban left #mojo
14:04 KayT3 joined #mojo
14:04 MojoGuest967 joined #mojo
14:04 MojoGuest967 From: http://www.google.com/url?sa=t&source=​web&cd=1&ved=0CC0QFjAA&url=htt​p%3A%2F%2Fdev.xantus.org%2F&rct=j&​q=ExtJS%20IRC%20Client&ei=P3iCTt-HNeSf​mQXV86gz&usg=AFQjCNGw6nZv0wO42uzUnHhWc​D0vcKNULg&sig2=R-_NjcQiHSR4Jtk6MuyE5A (3 hits)
14:04 MojoGuest912 joined #mojo
14:04 MojoGuest912 From: http://www.google.com/url?sa=t&source=​web&cd=1&ved=0CC0QFjAA&url=htt​p%3A%2F%2Fdev.xantus.org%2F&rct=j&​q=ExtJS%20IRC%20Client&ei=P3iCTt-HNeSf​mQXV86gz&usg=AFQjCNGw6nZv0wO42uzUnHhWc​D0vcKNULg&sig2=R-_NjcQiHSR4Jtk6MuyE5A (4 hits)
14:05 MojoGuest186 joined #mojo
14:05 MojoGuest186 From: http://www.google.com/url?sa=t&source=​web&cd=1&ved=0CC0QFjAA&url=htt​p%3A%2F%2Fdev.xantus.org%2F&rct=j&​q=ExtJS%20IRC%20Client&ei=P3iCTt-HNeSf​mQXV86gz&usg=AFQjCNGw6nZv0wO42uzUnHhWc​D0vcKNULg&sig2=R-_NjcQiHSR4Jtk6MuyE5A (5 hits)
14:06 MojoGuest704 joined #mojo
14:06 sri wow, kindle fire for just $199
14:07 sri guess amazon expects to make most money with content
14:08 MojoGuest704 left #mojo
14:21 MojoGuest407 joined #mojo
14:29 fmerges joined #mojo
14:38 judofyr sri: any reason the session cookie isn't HttpOnly?
14:39 sri judofyr: not that i know of
14:44 Grauwolf joined #mojo
14:56 metaperl joined #mojo
14:57 abra joined #mojo
15:25 sri wtf
15:26 metaperl joined #mojo
15:26 sri you can only preorder the non touchscreen kindle for 99 euro in germany… what a ripoff
15:26 judofyr that's probably the one without "Special Offers"
15:26 sri it's the one that costs $79
15:27 judofyr hm
15:27 judofyr :(
15:27 sri same in the uk store
15:28 cosmincx joined #mojo
15:57 amoore joined #mojo
15:59 crab hi
15:59 purl hi, crab.
16:00 * sri waves
16:02 metaperl I think my smartphone has kindle functionality
16:03 metaperl do you support a soccer team sri?
16:04 sri nope
16:08 jmmills anyone know of any examples/snippets of implementing chunked transfers in mojo?
16:08 jmmills i.e. file uploads larger than what you would want to keep in memory?
16:09 crab what do chunked transfers have to do with file uploads larger than what you would want to keep in memory?
16:09 jmmills I'm assuming you would attack it via overloading the asset class in ::Upload
16:09 crab mojo writes file-uploaded data to disk if it exceeds a certain size.
16:09 jmmills sometimes you don't want to write it to disk
16:09 jmmills sometimes you want to pass it to another system like mogilefs or gridfs
16:10 jmmills in high utilization systems writing to disk cause major disk churn iowait
16:10 jmmills ^ not sure if that makes sense, just got up and having first cup of coffee :)
16:10 crab ok, so yeah, create a new asset class. (but what does that have to do with chunked transfers?)
16:11 jmmills If my knowledge of http is sound (debatable) chunked transfers via POST && PUT allow one to read a chunk of data do something with it and the flush in memory data -> repeat
16:11 jmmills there by keeping memory utilization low
16:12 sromanov joined #mojo
16:12 crab what do you want to do if the client sends a non-chunked lump of data?
16:13 jmmills I've got some devs at work who are working on a web upload dohicky that needs to write to mogile and they are using python-tornado (tornado doesn't support chunked transfers out of the box)...
16:13 jmmills I wanted to do a quick proof implementation in mojo to show them how it's done
16:14 jmmills crab, explain?
16:14 jmmills it could be that I'm thinking "chunked" means something different than it does
16:17 crab "chunked" is an HTTP transfer-coding where the entity body is sent as chunks of pre-declared size and terminated by a 0.
16:17 jmmills ah
16:17 PerlNinja joined #mojo
16:18 crab but whether that (or any other) transfer coding is used or not, your mojo app can read the data in pieces and do whatever it wants with it.
16:18 PerlNinja evening mojoistas
16:20 grim_fandango joined #mojo
16:20 jmmills crab, awesome - I'll write up a snippet and probably blog it
16:21 crab sounds good.
16:21 jmmills this seems to be a scaling issue that some people don't get
16:21 jmmills writing uploads to disk doesn't not scale very well :)
16:22 jmmills at least when you are using some "cloud" storage system
16:24 PerlNinja depends, I do it for my app but then again there's a file size limit of 5Mb - and it's not often used so that works... buuuuuut... if you come up with a direct-to-gridfs kind of deal... do bloggerize that because I'll be using it :D
16:25 sri i think what you meant to say was streaming, not chunked
16:26 jmmills PerlNinja, in my case it's mogilefs which the perl client api supports writing to as IO::Handle - I've never really used mongodb for that so I'm not sure exactly how it works
16:26 jmmills although I've been thinking about it a lot recently since there are times in which I don't really need relations but do need to store some data
16:26 sri and it's not yet a core feature of mojolicious, can be done, but is hard and there are no examples
16:27 jmmills sri, is exploring using a custom asset class for Mojo::Upload the right path to take?
16:27 sri the closest you will get to an example it prolly the upload progress tests
16:27 sri jmmills: dunno, not tried it
16:27 MojoGuest396 joined #mojo
16:27 MojoGuest396 From: http://www.google.com/url?sa=t&source=web&​amp;cd=1&ved=0CBoQFjAA&url=http%3A%2F%​2Fdev.xantus.org%2F&rct=j&q=websockets​%20irc%20client&ei=okWDToi2BMyjsQK95qX3Dg&​amp;usg=AFQjCNGw6nZv0wO42uzUnHhWcD0vcKNULg (1 hits)
16:27 MojoGuest305 joined #mojo
16:27 MojoGuest305 From: http://www.google.com/url?sa=t&source=web&​amp;cd=1&ved=0CBoQFjAA&url=http%3A%2F%​2Fdev.xantus.org%2F&rct=j&q=websockets​%20irc%20client&ei=okWDToi2BMyjsQK95qX3Dg&​amp;usg=AFQjCNGw6nZv0wO42uzUnHhWcD0vcKNULg (2 hits)
16:27 MojoGuest396 /part
16:27 MojoGuest396 left #mojo
16:27 jmmills errg
16:28 sri i'm open for core enhancements to make it easier though
16:28 sri in theory we have the infrastructure
16:28 sri just not the api
16:28 jmmills ^ I was errging about the mojoguest thingy I clicked the link and it opened the web irc client
16:28 PerlNinja jmmills: mongodb's gridfs basically works like any other collection, instead of get_collection you get_gridfs and insert - using a file handle :/ (drawback of the perl driver), but there's ways around it. Also going to actually require some additions to the mongodb driver to be able to store a file in sections, not as one big lump
16:29 jmmills PerlNinja, I've played with it a bit and set it up (some devs at work use it) but I haven't actually implemented anything yet that uses it
16:29 PerlNinja then again the mongo perl driver is all sorts of suck ... *eyes sri* .. how's yours coming? :P
16:29 jmmills which is why I know next to nothing about it's support in perl
16:30 jmmills although mongooose looks like a cool ORM for it
16:30 sri PerlNinja: i keep getting distracted by stuff like streaming uploads ;p
16:30 jmmills since the way I look at simple collections like that is more of an overgrown object serialization system
16:31 sri streaming uploads are a very hard problem, don't be fooled
16:31 PerlNinja jmmills: it is in a way, since mongodb itself doesn't enforce any relational integrity, and it's basically the exact way i'm using it. the advantage of mongo though is that when you start getting huge data sets, it's easy to mangle
16:32 MojoGuest708 joined #mojo
16:32 MojoGuest708 From: http://dev.xantus.org/ (1 hits)
16:32 PerlNinja sri: i might get around to doing an eventsource plugin by the way, been breaking my head over doing some real-time stuff in my app since we have to support IE but i'm going to tell TPTB that they can shove their IE support... so going to eventsource for a lot of stuff
16:33 sri jmmills: https://github.com/kraih/mojo/blob/mast​er/t/mojolicious/upload_lite_app.t#L24
16:33 sri that's the closest you'll get with examples
16:33 sri from then on it's new territory
16:35 PerlNinja cue the twilight zone music...
16:35 sri once a multipart parser enters the picure it should get pretty messy
16:35 PerlNinja messy can be good
16:36 sri but i better stop now, before i scare you away from trying :)
16:37 sri with a body callback you can get individual chunks of data, but thats before multipart parsing
16:38 PerlNinja hey sri, suppose i have an incoming request that i dispatch into my controller, if i want the controller to then sit and wait for $external_event before rendering output, do i just go render_later and from an AnyEvent callback do the render?
16:38 sri no idea how a custom asset class would work, but with a few core extensions it could be an elegant solution i suppose
16:38 sri PerlNinja: see my recent blog posts ;)
16:39 PerlNinja already :P
16:39 sri render_later is only necessary when you have to disable auto rendering
16:40 sri otherwise you can just do nothing and wait until the callback fires
16:40 PerlNinja woo, that solves my problem
16:40 sri https://gist.github.com/1105705
16:41 sri more gists about the topic
16:41 PerlNinja okay i was under the impression that you had to render_later in order to get things to work - didn't know you could just hook the callback and wait around for something
16:42 sri render_later is never wrong
16:42 jmmills sri, I sort of see what you mean - a tx hook is a pretty cool solution to data progress though
16:42 PerlNinja yum, ok that at least gets me one step closer to my being able to do rpc calls from the browser over rabbitmq .... then again since i decided IE can get bent, I might as well do it with event source :D
16:42 jmmills I'm thinking that I'm going to "trick" mojo into handing me control of the write
16:43 sri jmmills: i can imagine there are many solutions
16:43 kaare joined #mojo
16:44 sri having a clean standard way to handle streaming uploads would be nice, let me know if you need any additional parser hooks or so
16:45 jmmills Well do
16:45 jmmills If I find that I have to write something that may be useful to include in the dist I'll fork on github
16:46 sri jmmills: http://mojolicio.us/perldoc/Mojolicio​us/Guides/Cookbook#Streaming_response
16:46 sri for the client side there are recipes
16:47 sri same message objects, so it should be useful
16:47 sri the problem is much easier on the client side though
16:47 D4RK-PH0ENiX joined #mojo
16:50 jmmills Actually I'm going to fork the thing anyways
16:50 jmmills I need to follow the use of the file asset all the way back
16:50 jmmills but I'm thinking it may be as simple as handing it a different IO::Handle
16:51 sri don't forget the multipart problem
16:51 sri a parsed multipart message is a collection of asset objects
16:52 jmmills hmm
16:52 sri http://mojolicio.us/perldoc/​Mojo/Content/MultiPart#parts
16:53 sri not to scare you further, but in theory multipart can be even nested :D
16:54 sri in practice it doesn't really happen, like chunked request content...
16:54 sri http is fun!
16:57 noganex joined #mojo
16:57 ispy_ joined #mojo
16:58 jmmills yeah, I remember getting headaches when dealing with multi-part mime encoded data when dealing with email
17:00 sri the real problem i see is streaming multipart uploads
17:02 sri plain old content is rather easy, you just might have to slurp the first chunk out of an in-memory asset when using a body callback for streaming
17:02 sri since end of headers and start of body usually overlap
17:03 sri https://github.com/kraih/mojo/bl​ob/master/t/mojo/message.t#L2144
17:03 sri good example
17:03 purl NO IT IS NOT!
17:04 sri purl: yes it is!
17:04 purl Oh no it isn't!
17:04 sri purl: oh yes it is!
17:04 purl Oh No It Isn't!
17:04 * sri bites purl
17:04 * purl bites sri back
17:57 PerlNinja attempt to free unreferenced scalar... onoes... *sigh* time to go gdb'ing again
17:57 MojoGuest430 joined #mojo
17:57 MojoGuest632 joined #mojo
17:58 grim_fandango How do I extend Mojo's built-in session cookie lifetime?
18:00 tempire amazon is great.  they seem to be the only ones that know the only way to be a relevant tablet is social proof
18:00 tempire regular people don't even know there are tablets other than the ipad
18:00 tempire but they'll know about this
18:00 PerlNinja grim_fandango, $self->sessions->default_expiration()
18:01 grim_fandango Thanks PerlNinja
18:01 PerlNinja or $app->sessions if you are so inclined
18:01 tempire and they don't even mention android, which I think is smart
18:01 PerlNinja feed it a number in seconds
18:02 PerlNinja tempire: I hate Amazon, they ony sell overpriced outdated tablets down here, and I cant actually purchase the books I want to read because of where I live... I'm good for Indonesian language books but I can't read Indonesian so... yeah :P
18:03 tempire take a boat over to singapore.
18:03 tempire they'll have everything you need :)
18:12 PerlNinja s/boat/plane/ :P
18:12 PerlNinja the state of passenger ferries down here is so shitty your chances of surviving the trip are about as likely as winning the lottery :P
18:18 sri tempire: only americans get the new tablet and touch kindles...
18:18 MojoGuest462 joined #mojo
18:20 josh joined #mojo
18:22 perlrocks Twitter: "#mojolicious is amazing, just made an app to manage 60 #cloud9 instance for students to make development fun:-)" --oroce http://twitter.com/oroce/status/119114754282369024
18:23 andrefs joined #mojo
18:26 xantus2 hi
18:31 * PerlNinja is moving to the USA next year most likely so.. who knows, maybe I'll get to fondle a kindle after all
18:50 Eugene joined #mojo
18:52 Akron joined #mojo
19:22 andrefs joined #mojo
19:43 preflex_ joined #mojo
19:55 MojoGuest920 joined #mojo
19:55 MojoGuest920 From: http://www.google.com/url?sa=D&amp​;q=http://dev.xantus.org&usg=A​FQjCNF_rM6vpg9DT3eh4McOgWqn8mn5Xw (1 hits)
19:56 MojoGuest43 joined #mojo
19:59 MojoGuest839 joined #mojo
20:44 KayT2 joined #mojo
20:50 grim_fandango joined #mojo
21:25 GitHub56 joined #mojo
21:25 GitHub56 [mojo] kraih pushed 1 new commit to master: http://git.io/YhxFBQ
21:25 GitHub56 [mojo/master] we support the ietf-16 WebSocket spec - Sebastian Riedel
21:25 GitHub56 left #mojo
21:52 marcus hmm
21:53 marcus I think I've spent a sick amount of time on glitch today :-/
21:53 metaperl joined #mojo
21:58 sri i better not try it :S
22:13 elb0w` joined #mojo
22:14 shonorio joined #mojo
22:14 andrefs joined #mojo
22:34 marcus still playing, should be sleeping
22:35 marcus soo cute :-/
22:47 elb0w` joined #mojo
22:55 tempire "Velociraptor are well known for their role as vicious and cunning killers in the 1990 novel Jurassic Park by Michael Crichton and its 1993 film adaptation, directed by Steven Spielberg, in which they served as the main antagonists. The "raptors" portrayed in Jurassic Park were modeled after a larger relative, Deinonychus."
22:55 tempire raptor scale: http://en.wikipedia.org/wi​ki/File:Vraptor-scale.png
22:56 tempire deinonychus: http://upload.wikimedia.org/wikipedia​/commons/thumb/7/77/Deinonychus_Scale​.svg/719px-Deinonychus_Scale.svg.png
22:58 tempire That is, if you believe the Paleontologists.  They're always retroactively changing their minds.
23:56 noganex joined #mojo

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