Camelia, the Perl 6 bug

IRC log for #mojo, 2010-06-28

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

All times shown according to UTC.

Time Nick Message
01:06 abqar_ joined #mojo
02:40 yakudzo joined #mojo
03:07 janus joined #mojo
03:31 Foxcool joined #mojo
04:04 tl joined #mojo
04:21 su-bzero joined #mojo
06:04 marcus lol
06:04 marcus sri: the markup for the voicememos is amusing
06:04 marcus ten thousand holes
06:13 chansen joined #mojo
07:11 chansen_ joined #mojo
07:23 * sri yawns
07:26 Su-Shee joined #mojo
07:28 esskar joined #mojo
07:28 esskar http://usw-usf.de/featured/iphone​-calendar-icon-mit-css3/#more-556
07:31 Su-Shee good morning everyone.
07:31 zakame hi
07:43 yko joined #mojo
08:18 diegok joined #mojo
08:20 diegok joined #mojo
08:21 diegok_ joined #mojo
08:53 * sri waves
09:16 chansen__ joined #mojo
09:55 yko routes, like /item/:id/update are not usable, when using it's url from ajax :(
09:56 garfield joined #mojo
09:57 sri yko: ?
09:58 sri why wouldn't they?
09:59 yko javascript: var url = '/item/' + id + '/update'; $.ajax({url: url, ....});
09:59 yko if id is static, then i can use url_for, shure
10:00 sri oh, you mean usable as in usability and not "not working"
10:00 yko but if i use js to update few elements on single page, i should generate url by myself, that's why
10:00 yko yes, sorry :)
10:01 * yko skipped all english lessons last month...
10:03 yko just thinking how to make it more pretty. mb i can generate url with placeholder, like url_for('update', id => 'XXX') and then replace XXX with id, but it's also not god idea
10:03 yko also i can have ajax post route /route/:name that will accept route bindings as parameters and returns url :D
10:04 yko and telling everyone, who said, that it's madness, that they are wrong and drop them into the well...
10:06 spleenjack joined #mojo
10:08 sri hmm
10:09 yko shure, i can pass item id with post params, but it's not mojo-style :D
10:12 yko btw, sorry for asking and exiting right after that yesterday
10:16 chansen_ joined #mojo
10:20 yko people who using render_json with layouts should use render_data...
10:20 yko why should i suffer because of them :D
10:21 yko just render, even...
10:46 jawnsy joined #mojo
10:57 sri yko: layouts + render_json is fixed ;p
10:58 sri it didn't work as i thought anyway, so i'm quite sure nobody used it
11:00 yko what a stupid me... i woke up today, looked at github, said "Oh! Sri fixed that issue!!!", run my app and sad "Hmmm... looks that it's not fixed" :(
11:00 yko git pull + make install - what i forgot to do :(
11:02 * sri bonks yko on the noggin
11:02 marcus yko: etoomuchvodka?
11:02 yko no, some cuba libra, but not enough to influence on something
11:03 marcus too much libre? :)
11:03 marcus yko: you're not supposed to be able to see through it.
11:04 yko i think i should rest some time.... maybe playing balalayka or taming a bear will bring more peace in my dark soul...
11:04 marcus :D
11:05 marcus go eat a shawarma
11:05 yko lol.. making cubalibra with vodka really sux, thats brutal screwdriver...
11:06 yko btw, i havent seen  shawarma  sellers for a while
11:06 marcus my brother in law always buys shawarma when he's been drinking.
11:06 yko ten years ago it tastes. That was a good time, dogs where more fat or something like that...
11:07 marcus :D
11:07 marcus yko: where do you live?
11:07 yko ukraine, kiev
11:07 yko near chernobyl, you know...
11:07 marcus right
11:07 marcus :)
11:08 marcus good vodka in ukraine
11:08 marcus I like the one with peppers and honey.
11:08 yko Hmm. once i found myself lying on lawn in the night, without my wallet and mobile...
11:09 marcus I've done that before
11:09 marcus but not in some years.
11:09 marcus yko: lots of shawarma still in st.petersburg btw
11:10 yko I was still insane, so any car did not pick up me... i walked through half city, drunk, unhappy and hungry...
11:10 yko from those time i'm very careful with alcohol
11:11 marcus probably smart :-)
11:11 yko yep
11:11 marcus I will be drinking a bit of champagne today
11:11 marcus 7 year wedding aniversary.
11:12 yko My wallet with my driver id and a lot of docs was found by some oldman, he sold me my wallet for $100... damn greedy oldman....
11:12 marcus lol
11:12 marcus pretty lucky that you got it back, I'd say
11:13 yko yep, i think obtaining new driver id would cost me about $500
11:14 marcus wow
11:14 marcus it's much cheaper here
11:14 marcus less than 100$
11:15 yko well, i bought my first driver id for $80 without passing any exams :D that was gold times...
11:17 yko hehe, i remember my 10th aniversary... not wedding, actually, just aniversary :) she had urgent project, i've got some beer and coded something... that was so nicely
11:20 sri lol
11:28 yko sri: thx a lot for that json fix, it was really annoying
11:33 marcus haha
11:33 marcus yko: how old are you?
11:33 yko 27 i think
11:34 yko let me remember
11:34 yko yep, indeed, i'm 27
11:34 marcus young'one
11:34 marcus how did you mannage to have 10th aniversary then? Got together when you were 16?
11:35 yko i was 17 :)
11:36 yko actually, we now each other 1.5 year before, but circling around that itme
11:36 yko s/now/circling around/
11:37 * yko confused
11:38 * marcus confused too
11:38 yko nevermind :)
11:39 yko now/know. yeah. that's it
11:39 * yko hate english.
11:40 yko russian/ukrainian is much simplier... because i know them
11:40 marcus need more practice ;)
11:40 yko actually, i just need to do not skip my english lessons :D
11:40 marcus that would work
11:44 jawnsy joined #mojo
11:50 * marcus stuff sri into a tiny black box
11:51 sri HALP!
11:52 * yko giggles, helping marcus.
11:52 yko now we've got sri in a box!
11:54 * marcus starts sending http packets through the box
11:54 marcus route! Faster!
11:54 sri nom nom nom
11:55 marcus I really hate black boxes that just eats your packets :/
11:55 sri http://i217.photobucket.com/album​s/cc298/m_zavala/Kittehs/halp.jpg
11:55 marcus so hard to debug!
11:55 garfield http://xrl.us/bhp53e
11:56 marcus ouch
12:14 marcus my brother is such a nerd: http://www.flickr.com/photos/n​akrissimo/4740472610/lightbox/
12:14 garfield [ desucon lørdag 056 on Flickr - Photo Sharing! ]
12:14 garfield http://xrl.us/bhp53t
12:15 dotan joined #mojo
12:28 sri what a nerd
12:31 sri world of warcraft anyone? :)
12:33 Foxcool joined #mojo
13:18 yko in base controller class ... sub p { shift->param(@_); } ...
13:35 marcus yko: lazy? :)
13:35 yko even more...
13:35 yko https://gist.github.com/157a5207cd6f9cc9fcbf
13:36 yko to use, when you know, what you are doing :D
13:37 yko yes, im lazy, didn't you notice before?
13:39 yko Im lazy, like that cat, who step on his balls and cry whole day, being too lazy to step out...
13:40 marcus :D
13:52 vel joined #mojo
13:56 su-bzero yko: Yep, need "p" built-in ;)
13:56 yko haha
13:57 yko Usually, in  each app i have base controller in which i implement whatever i want
13:58 yko Considering, if i should make own 'generate fat_app', im tired removing 'Example.pm' and default route :D
13:59 yko $self->routes->namespace(__PACKAGE__ . '::Controller'); # also usable stuff
14:17 sri my brain is melting
14:18 * yko prepares barrel.
14:33 sri memowe_: any progress?
15:09 vel joined #mojo
15:18 dotan left #mojo
15:34 tab joined #mojo
15:59 chansen joined #mojo
16:02 ashleydev joined #mojo
16:03 vel joined #mojo
16:27 Su-Shee joined #mojo
16:34 vel joined #mojo
17:42 fod joined #mojo
18:00 doubi joined #mojo
18:31 alex joined #mojo
19:44 esskar_ joined #mojo
20:17 sri why is it so silent today? Oo
20:18 doubi All the good webapps have been written. The web's over. Everybody's gone home.
20:18 sri awww
20:19 vel joined #mojo
20:24 marcus sri: liking the rendering guide.
20:24 sri \o/
20:24 sri next one will be amazing
20:25 sri even i like it...and i never like the stuff i write!
20:28 doubi Has anyone written a pubsubhubbub server in Mojo(licious) yet?
20:28 doubi s/server/hub/
20:28 doubi Couldn't bring myself to say "pubsubhubbub hub"
20:29 sri not that i know of
20:29 doubi Want.
20:29 sri but there are so many apps on github
20:29 doubi orly?
20:29 sri yarly
20:29 doubi kthx
22:23 doubi joined #mojo
22:31 ltriant joined #mojo
22:36 fod joined #mojo
23:05 ashleydev sri: \o
23:06 ashleydev need advice:  i'm writing an SMS app on mojo
23:06 ashleydev and i have a series of commands that SMS users can interact with my app (bot) with
23:06 ashleydev so a particular user can say 'show item 24234'
23:07 ashleydev which the mojo sms app will send out an sms back with that item's details...
23:08 ashleydev is the mojo router generic enough to not only route on my web URIs but also on say the sms cmd lang that I'm implementing?
23:09 ashleydev i saw the slides from sartak's talk at YAPC.NA (http://sartak.org/talks/yapc-na-2010/​path-dispatcher/path-dispatcher.pdf) and thought about generic routing...
23:09 garfield http://xrl.us/bhp788
23:09 ashleydev but since i'm already in mojo and have a router already I might as well not pull in another module if I don't have to.
23:09 ashleydev thoughts?
23:10 ashleydev is the mojo router useful for routing cmd line commands?
23:47 ashleydev ...
23:47 ashleydev on another note, is there an example somewhere on how to do async processing of an HTTP req?
23:48 ashleydev how do I reply to the client of a tx asyncronously from a controller action?
23:54 ashleydev so suppose I have: sub action { my $self = shift; my $response = $self->_process(); $self->render(text => $response); }
23:55 ashleydev and $self->_process() need to do a blocking call... How do I rewrite that so that I don't block and can continue procressing requests and then come back after the _process() call to render the $response to the client?

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