Camelia, the Perl 6 bug

IRC log for #mojo, 2012-07-06

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

All times shown according to UTC.

Time Nick Message
00:47 laouji joined #mojo
00:50 bird joined #mojo
01:03 scott_ joined #mojo
01:36 jnap_ joined #mojo
02:03 d4rkie joined #mojo
02:11 noganex_ joined #mojo
02:47 jwang joined #mojo
03:19 gryphon joined #mojo
04:43 Mad_Dud joined #mojo
05:17 rem_lex| joined #mojo
05:26 laouji joined #mojo
05:31 vishwanathms joined #mojo
05:31 vishwanathms_ joined #mojo
05:31 Foxcool joined #mojo
05:36 fhelmber_ joined #mojo
06:07 Leandr joined #mojo
06:10 ovnimancer joined #mojo
06:26 marcus sri: seems like a good fix, thanks.
06:29 migo joined #mojo
06:44 xaka joined #mojo
06:46 marcus http://nordaaker.no/docs/skitch/Redis.pm_—_mojo-redis-20120706-084257.jpg <- this really annoys me about sublime text 2 indenting.
06:58 crab what is that odd character after Redis.pm_?
07:00 xaka1 joined #mojo
07:03 marcus crab: in the filename?
07:05 Vandal joined #mojo
07:06 crab yes.
07:09 marcus probably an em dash?
07:09 marcus
07:10 marcus ­http://nordaaker.no/docs/skitch​/Characters-20120706-091027.jpg
07:10 marcus funny how all my screenshots gets enormous because of the retina screen
07:10 marcus guess skitch should probably fix that.
07:11 crab yep. ircII stuck a replacement character in there.
07:11 crab is your retina screen nice?
07:17 marcus very nice
07:21 laouji joined #mojo
07:29 laouji joined #mojo
07:30 spleenjack joined #mojo
07:36 negher joined #mojo
07:44 nic bpo
07:48 batman left #mojo
07:49 vishwanathms_ joined #mojo
07:49 batman joined #mojo
07:52 tempire bps
07:58 n joined #mojo
07:58 n hello
07:58 pau4o joined #mojo
07:58 n still need an advice to prevent websocket closing .. any idea ?
07:59 n for now, I made a javascript "ping" function, but is this really necessary ?
07:59 n i thought a websocket was made to keep a connection between the client & the server
08:10 crab i have no idea what you're talking about.
08:10 mire joined #mojo
08:12 n haha
08:12 n ok, sorry
08:12 n i want to set up a websocket between my client's javascript & the mojolicious server
08:13 n i have a route like "$r->websocket("/")->to ... "
08:13 n with a "onmessage" event that send a message back to the client
08:14 n but when it doesn't receive any message for a while, it closes the connection with the client
08:14 n and i want to know how to avoid this, I want the connection to be permanent
08:14 crab increase the inactivity timeout?
08:27 xaka1 negher: http://mojolicio.us/perldoc/Mojolicious​/Guides/Cookbook#WebSocket_web_service (there is an example how to change the timeout value, if you want to make it infinity set it to 0)
08:27 xaka1 n: ^^^ that was for you :)
08:46 batman is there any rule on when the $upload->asset will be memory or file?
08:47 batman and can i force it to be file?
08:49 batman ah. i found it now :)
08:51 n xaka1: thank you, i'll take a look
08:59 n xaka1: they do increase the timeout, but they also make a setInterval function so the client is never "inactive"
08:59 n so i guess it's necessary
08:59 crab that's just a demonstration.
09:00 crab don't guess. set the timeout to 0 and see if it fixes your problem.
09:08 lukep joined #mojo
09:38 memowe \o/
09:39 memowe all (Java) work and no (mojo) play makes memowe a dull boy.
09:44 batman $ua->start($tx, sub { ... }); # can i reuse $tx again later? looks like the another call to $ua->start($tx) inside the sub{} simply hangs
09:44 Ulti memowe: port Mojolicious to Java ;3
09:45 memowe Ulti: I already use it for minor web interface tasks to talk with our Java classes from the outer space.
09:45 memowe But Java changes my programming style and I don't like it.
09:45 memowe It's like a virus.
09:46 Ulti the only real thing I hate about Java is its verbosity in dealing with IO
09:46 Ulti and how people classafy literally everything if they have only ever been in Java land
09:46 memowe The only thing I love about Java is the small part of Eclipse I'm actually using.
09:46 Ulti like an application with at least 20 wrapper classes to String that add nothing
09:47 memowe :D
09:47 sri \o\
09:47 sri /o/
09:47 memowe o//
09:48 Ulti /o\
09:48 Ulti *pulls hair out*
09:48 sri looks more like a facepalm
09:48 memowe ////\\\\O////\\\\
09:48 memowe spiderman!
09:48 pau4o <o/
09:48 pau4o \o>
09:49 crab memowe: that's one head short of two spidermen
09:49 Ulti so is anyone else annoyed by MS not including the HTML5 form validation spec in IE9??
09:49 crab or, well, maybe the legs are just really long.
09:50 sri ie9 doesn't have websockets either
09:50 Ulti :[
09:50 sri but it looks like ie10 will be pretty good
09:50 Ulti why have they implemented all the hard stuff and ignored the bits interns could have coded up for them
09:51 * crab tries to make his brain parse Ulti differently than it does by default
09:51 Ulti is there a timeline for IE10 like is it going to be in Windows8 by default?
09:51 sri yes
09:51 Ulti cool
09:52 Ulti crab: you're reading it as Util?
09:52 memowe When I started HTML "programming" we were all glad that IE4 won the browser war. :D Later IE6 was a revolution and we all loved him for not fucking up the box model.
09:53 crab Ulti: in hindi, "ulti" means vomit
09:53 Ulti haha sounds perfect
09:53 memowe :D
09:54 sri i would have preferred not to know that
09:54 memowe crab: in Urdu, "crab" means "کیکڑے"
09:57 crab isn't that backwards?
10:00 memowe No, (yes,) you have to read it from rtl.
10:03 Foxcool joined #mojo
10:03 ppriess joined #mojo
10:19 Psyche^ joined #mojo
10:25 laouji joined #mojo
10:39 mire joined #mojo
10:40 laouji_rouge joined #mojo
10:43 ppriess left #mojo
11:20 * nic adopts "No (yes)" as default return value
11:35 GitHub114 joined #mojo
11:35 GitHub114 [mojo] kraih pushed 1 new commit to master: http://git.io/e1ZqtQ
11:35 GitHub114 [mojo/master] fixed default format handling bug in render_exception and render_not_found - Sebastian Riedel
11:35 GitHub114 left #mojo
11:38 sri bad idea (good idea)
11:55 Andrei666 joined #mojo
12:15 ryozi joined #mojo
12:17 tadamo joined #mojo
12:18 migo joined #mojo
12:19 jontaylor what is the best practise for sending emails? Should it be done from the controller, the model, or maybe something else entirely
12:19 andrefs joined #mojo
12:19 jontaylor I can't help but think I might want to spin through a list of users in a script and send emails out, in which case putting it in the controller might not be a good idea
12:19 jontaylor but then again models shouldn't know how to render things
12:20 Patterner So, only the View is left?
12:21 jontaylor I think I might need a Mailer class
12:21 Patterner P.S. http://cirw.in/blog/time-to-move-on :)
12:25 jontaylor Patterner: thats a good read, I agree with most of what it says
12:31 GitHub120 joined #mojo
12:31 GitHub120 [mojo] kraih pushed 1 new commit to master: http://git.io/vjre5w
12:31 GitHub120 [mojo/master] better content negotiation tests - Sebastian Riedel
12:31 GitHub120 left #mojo
12:35 sri Patterner: my bullshit detector is going haywire
12:36 sri "MVC is dead, here's some bullshit pattern i made up without any code whatsoever, but that's ok because i've only reinvented state machines"
12:37 ZadYree Hum do we have a documentation for using hypnotoad? the Mojo::Daemon::hypnotoad makes me fryish
12:46 gryphon joined #mojo
13:12 jnap joined #mojo
13:27 inokenty joined #mojo
13:29 CromeDome joined #mojo
13:39 Akron joined #mojo
13:39 Akron ZadYree: http://mojolicio.us/perldoc/Mojol​icious/Guides/Cookbook#Hypnotoad
13:39 ZadYree ah thanks!
13:46 GitHub192 joined #mojo
13:46 GitHub192 [mojo] kraih pushed 1 new commit to master: http://git.io/87rIlQ
13:46 GitHub192 [mojo/master] fixed Hypnotoad recipe - Sebastian Riedel
13:46 GitHub192 left #mojo
13:50 bjoernfan sri: I had a feeling you'd say something like that about MOVE, you did not disappoint. :)
13:50 sri \o/
13:51 ppriess joined #mojo
13:55 ppriess How do I add an attribute eg "content_range" to header of my (JSON-)result-output to send info to REST request?
14:05 jamadam joined #mojo
14:22 lammel2 joined #mojo
14:23 lammel2 joined #mojo
14:32 Vandal joined #mojo
14:58 mire joined #mojo
15:06 brambles joined #mojo
15:13 Mikey meh, no more render_to_file in Mojo::Template
15:14 sri hahahahaha
15:14 sri i would have bet money that nobody was using it!
15:14 Mikey hah!
15:14 Mikey a bet you'd have lost
15:15 Mikey is there a recommended new way of doing things?  just render to a scalar and write the file out myself?
15:15 asarch joined #mojo
15:15 sri yea, just write yourself
15:15 Mikey word
15:15 Mikey ty
15:16 sri render_to_file buffered the whole thing too, so no big difference
15:16 Mikey cool, just convenient
15:16 sri what are you using it for?
15:16 Mikey PATT... http://svn.mg2.org/projects​/pco/browser/trunk/net/patt
15:16 Mikey an anonymous data store
15:17 Mikey lets you write / set server response headers from client side javascript
15:17 Mikey and then throw the browser at the response you created
15:17 Mikey uses Mojo::Server::Daemon directly
15:17 sri look at that, you're using all the low level methods i thought nobody ever uses :)
15:18 Mikey hahahaha
15:18 marcus sri goes off and makes a full kit of lego pieces, then assumes nobody will play with it.
15:19 Mikey yeah, i abandoned my own homemade framework for mojo
15:19 Mikey thats how much i <3 it
15:20 marcus \o/
15:20 sri \o/
15:20 Mikey :D
15:21 marcus wow, that *is* hard core.
15:21 Mikey ty
15:21 inokenty joined #mojo
15:22 Mikey it's a little on the activism-through-software side but the kids <3 it
15:22 Andrei666 joined #mojo
15:22 Mikey http://ocd.xxx .. a url shortener based on PATT/mojo
15:28 alester joined #mojo
15:39 d4rkie joined #mojo
15:39 diegok jontaylor: I use a queue for that kind of jobs.
15:40 jontaylor diegok: I use a rescue queue in my rails apps, but i'm not experienced enough in perl to know which tools are good to use
15:40 jontaylor *resque
15:42 diegok jontaylor: I've wrote a perl-resque ;-)
15:42 jontaylor oh rly :D
15:43 diegok jontaylor: https://metacpan.org/module/Resque
15:43 jontaylor nice, i'm taking a look at it now
15:43 diegok I still use the resque-web ruby iface.
15:43 jontaylor sure, if it aint broke, don't fix it
16:09 ppriess left #mojo
16:10 marty I must be missing something.  Is there a hook that only fires for non-static requests?
16:10 marty I noticed that the M:P:Authentication plugin uses the before_dispatch hook which fires when serving static files.
16:13 andrefs joined #mojo
16:24 bjoernfan sri: I am using render_to_file to create RPM .spec files, later used by rpmbuild.
16:24 bjoernfan Wait... no I'm not, I'm doing the scalar thing.
16:52 xaka joined #mojo
17:07 vishwanathms joined #mojo
17:07 vishwanathms_ joined #mojo
17:11 pau4o left #mojo
17:18 andrefs joined #mojo
17:19 vishwanathms joined #mojo
17:20 vishwanathms_ joined #mojo
17:21 mire joined #mojo
17:31 sh9 joined #mojo
17:54 andrefs joined #mojo
18:05 jnap joined #mojo
18:19 vishwanathms joined #mojo
18:19 vishwanathms_ joined #mojo
18:33 jnap joined #mojo
18:36 Foxcool joined #mojo
19:02 jnap_ joined #mojo
19:03 jnap_ left #mojo
19:19 andrefs joined #mojo
19:50 Foxcool joined #mojo
19:57 dog_chocolate joined #mojo
19:59 tempire joined #mojo
20:17 * marty just found the is_xhr method of Mojo::Message::Request and is very excited
20:18 human39 joined #mojo
20:19 marty I'm still rather perplexed about the best way to filter out requests for static files from within a before_dispatch hook
20:31 baton8 joined #mojo
20:35 gryphon joined #mojo
20:36 sri marty: that hook runs before the dispatchers, there is no way to know
20:37 sri marty: http://mojolicio.us/perldoc/Mo​jolicious/Guides/Routing#Hooks
20:37 sri that second recipe should give you an idea how to do it though
20:57 sh9 joined #mojo
21:59 vel joined #mojo
23:50 benthumb joined #mojo
23:50 benthumb Anybody home?
23:53 jamadam joined #mojo
23:57 benthumb 邪魔段さん、こんにちは、初めまして、ポールです。よろしくどおぞ。

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