Camelia, the Perl 6 bug

IRC log for #mojo, 2010-10-12

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

All times shown according to UTC.

Time Nick Message
00:10 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya http://htn.to/3tVqP2 Hatena Diary" (ja) --buty4649 http://twitter.com/buty4649/status/27082979940
00:12 ka2u joined #mojo
00:46 tempire can Mojo::Base attributes be set to read-only?
00:57 perlrocks Twitter: "http://j.mp/d4H24l A translation of naoya's post about WebSocket and Mojolicious. @kraih" --arktosis http://twitter.com/arktosis/status/27089135058
01:01 alnewkirk joined #mojo
01:10 alnewkirk left #mojo
01:10 alnewkirk joined #mojo
01:40 perlrocks Twitter: "[129 users] Mojolicious:: Lite to create a chat by using WebSocket - naoya of ... http://d.hatena.ne.jp/naoya/20101011/1286778922" (ja) --bottonZ http://twitter.com/bottonZ/status/27093019184
02:12 jwang joined #mojo
02:12 jwang how is mojo these days?
02:35 janus left #mojo
02:35 janus joined #mojo
03:28 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya http://htn.to/jMSMtV Hatena Diary" (ja) --tsutomura http://twitter.com/tsutomura/status/27103775352
03:29 yakudzo joined #mojo
04:04 tl joined #mojo
04:06 tholen42 left #mojo
04:19 perlrocks Twitter: "[Js Popular Information] Mojolicious:: Lite to make chat with at WebSocket - naoya Hatena Diary http://bit.ly/9KVpfF # javascript" (ja) --jsMagazine http://twitter.com/jsMagazine/status/27107535908
05:11 zakame left #mojo
05:12 zamolxes i'm having trouble using an async client . basically the request returns an empty render, and the callback is ran much later
05:12 zamolxes how can I postpone the response until all my clients are done, but do this w/o blocking?
05:18 ysyrota joined #mojo
05:29 zakame joined #mojo
05:34 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya http://htn.to/aJ9NxY Hatena Diary" (ja) --hirose504 http://twitter.com/hirose504/status/27112182486
05:50 kvorg left #mojo
06:15 kvorg joined #mojo
06:21 kvorg zamolxes: i have never worked with an async client, so for a real answer, you have to wait for some more people to wake up
06:21 kvorg but if you don't render anything, Mojolicious will wait until timeout, so if you avoid doing any rendering (or only do partial rendering and prepare your results), you can render from your callback, I guess.
06:22 zamolxes kvorg: damn :) thanks
06:22 kvorg of course then you have just simulated what would happen with a blocking client, and this is the reason blocking clients are the default these days
06:22 zamolxes no, it should be fine
06:23 kvorg the thing is, you should be able to render a part of the page with render partial, and then continue, if that is what you want
06:23 kvorg mmm, i have to investigate this
06:23 zamolxes kvorg: i just send a json in the response
06:24 kvorg but do you need the results from the client to form it?
06:25 zamolxes yep. i extract some data using DOM, put in a json and send it to the browser
06:26 kvorg zamolxes: if you do, the blocking sync client is exactly what you want. don't forget, in a real world deployment, each worker is serving one browser, so this is not blocking the application server, just the transaction, which is exactly what you want
06:26 zamolxes i don't want each worker to be serving one browser, as I may have tons of requests, and the remote server may be very slow
06:27 zamolxes this is basically the main reason I'm using Mojo, because it uses async I/O :)
06:27 kvorg the way i understand it, the correct situation is that it is blocking the transaction
06:27 zamolxes oh, and the fun API
06:27 ltriant left #mojo
06:27 kvorg well, and the DOM and JSON and nifty templates, i get you there :-)
06:28 zamolxes yes, the current transaction, but there should be many simultaneous txns
06:29 kvorg we'll see what vti and sri have to say about that, i would not mind to know the details, but the way I understand it, your 'blocking' client will ge the same IO event loop treatment and so the first TX to get a reply will be rendered etc., without one TX blocking another.
06:30 zamolxes yes
06:30 kvorg let's make some experiments ...
06:31 zamolxes hrm, moving $self->render in the closure causes a 404 wth
06:34 kvorg i think you should change to sync/blocking client, start up a prefork server tuned with --servers 1 --clients 3, and make 3 simultaneous requests while making sure your resource is slow
06:43 perlrocks Twitter: "RT @arktosis: http://j.mp/d4H24l A translation of naoya's post about WebSocket and Mojolicious. @kraih" --MisterHatt http://twitter.com/MisterHatt/status/27115632148
06:46 yakudzo finally someone translated post... Now we will see retweets from english speakers (:
06:48 kvorg yakudzo: can you explain the client interaction to zamolxes, i am "a bit" out of my depth there
06:50 yakudzo wow
06:50 yakudzo I think I cant help here (:
06:51 zamolxes j.mp -> is.gd = horrible warning
06:53 kvorg me->parse($your_statement) also fails horribly
06:54 zamolxes yakudzo: so my app does 99% I/O and almost no processing.   a request consists of : get_data_from_remote_server, extract_stuff, send_stuff_as_json to the browser. There will be a lot of simultanneous slow requests, it seeems like 1-2 processes should handle it as there's not much cpu involved
06:54 zamolxes kvorg: clicked the link from twitter. if you have an url shortened by is.gd then shortened again by j.mp, j.mp shows a horrible warning
06:55 kvorg aaahhh, now i get you
06:57 zamolxes (and if extract_stuff is slow - depending on the DOM implementation heh - i can fire up more processes, i don't care, I just don't want to worry about I/O)
06:58 yakudzo zamolxes, save information in js server and then send it ?
06:59 yakudzo really cant help here you should wait for real gurus (:
07:22 kvorg zamolxes: i might have been talking nonsense back there
07:25 kvorg look at this silly script. http://pastebin.com/BHr4mCaw
07:25 koban joined #mojo
07:25 kvorg Start it as a prefork_daemon and wait for the 10 sec delay. works ok. but if you go at it with --servers 1 --clients 3, it will time out
07:26 kvorg so my imaginary implementation was wrong
07:27 kvorg you probably will have to learn how to use nonblocking clients properly. perhaps use a nopaste to get help for debugging it
07:36 sri zamolxes: just update to the latest github version and do http://github.com/kraih/mojo/blob/m​aster/t/mojolicious/lite_app.t#L427
07:37 sri moin btw
07:37 sri tempire: no
07:38 sri jwang: great
07:46 kvorg moint
07:46 * kvorg hides behind zamolxes.
07:50 marcus_ morning
08:28 kvorg some of us seem to have trouble with understanding async ...
08:29 kvorg sri: i tried this: http://pastebin.com/tXHBdbB7
08:29 sri umm
08:29 sri sleep? seriously?
08:29 kvorg can you tell me what is wrong? i was hoping calling this with daemon_prefork  --servers 2 --clients 3 would actually work
08:29 sri sleep is blocking
08:30 kvorg hopefully, one server sleeps to simulate a slow site, while the other does the job
08:30 sri don't use blocking stuff
08:30 sri noo
08:30 sri you don't simulate a slow site like that
08:30 sri sleep simulates a process lockdown
08:30 sri a timer would simulate a slow request
08:30 kvorg i would never use this in a real application ... but I hoped having two servers would push the silly simalation out of the picture
08:32 sri i don't understand you, but that example is wrong
08:32 kvorg but i seem to have other, more crucial problems, since it does not work as expected even after i throw the sleep out
08:33 sri are you using the latest github version?
08:34 kvorg most latest
08:34 kvorg but i am very accident prone with my 'examples' :-(
08:35 kvorg the thing is, i don't seem to be able to render from the callback
08:35 kvorg (and I do get the "Waiting for delayed response, forgot to render or resume?" message)
08:37 kvorg hmmm. there is something seriously wrong here. ignore me, will investigate
08:38 kvorg ohhh, s/layout/template/, how silly of me
08:39 sri was about to say, this has rather good tests
08:45 kvorg i was not even implying a problem with Mojolicious here, but I need some guidance since i will need to use the client, possibly async, in an upcoming project, and I know I don't really understand the event-loop stuff at all ...
08:46 kvorg and when I get a look in things like the longpooling test, I just realize how little I know about http details ...
09:55 perlrocks Twitter: "RT @ hatebu: Mojolicious:: Lite to make chat with at WebSocket - naoya Hatena Diary (57 users) http://bit.ly/9WswJN" (ja) --izumin_ http://twitter.com/izumin_/status/27124312400
09:55 y0j left #mojo
10:04 zamolxes sri: morning :)
10:05 Rhaen left #mojo
10:07 rhaen joined #mojo
10:07 zamolxes sri: ah, cool, sorry, i'll check your repo from now on  #     $location->authority($req->url->authority)
10:07 rhaen moin!
10:09 zamolxes http://github.com/kraih/mojo/commit/0c​717b785a113206a671a224c694ba9ba16f209f # you fixed it in september
10:11 zamolxes sri: ok, now, about my scenario. i'm using $self->client->async , but by the time the callback is called, the browser already got an empty response. Or if I put $self->render in the callback, I get a  404.
10:11 sri then you are doing something wrong
10:11 sri we've confirmed earlier that it works flawless
10:11 sri and that it is very well tested
10:12 sri note that the default timeout is 5 seconds
10:16 zamolxes sri: no, i'm definitely doing something wrong, I'm not trying to find a bug :)
10:16 zamolxes (in mojo)
10:17 zamolxes let me make a small test then?
10:17 sri ?
10:17 sri just do what the test does i linked to earlier
10:23 zamolxes sri: ok, nevermind, i was looking at line 427 and thought you were talking about my previous issue with redirects
10:24 sri what redirect issue?
10:25 zamolxes sri: Mojolicious on cpan didn't have the fix you commited in the commit I pasted above.
10:25 sri thats not a fix
10:25 zamolxes sri: a stupid server was giving me a "Location: /blaah" response
10:25 sri it's a workaround
10:25 zamolxes header
10:25 zamolxes yes, it is
10:25 zamolxes you know
10:25 y0j joined #mojo
10:25 alnewkirk left #mojo
10:35 sri i don't like it when people call such changes a fix, because from a spec compliance point of view they are very ugly hacks
10:38 zamolxes agreed, but this is the environment we have to deal with when writing a http client
10:51 Alias_ joined #mojo
10:57 dotan joined #mojo
11:03 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya Hatena Diary http://d.hatena.ne.jp/naoya/20101011/1286778922 # javascript # websocket # naoya" (ja) --tarchan http://twitter.com/tarchan/status/27127948065
11:05 dotan still raining retweets :)
11:06 marcus_ Guess Sri is Big In Japan now.
11:13 rhaen yup - he will be Mr. Wonderful!
11:14 dotan left #mojo
11:16 perlrocks Twitter: "@ Shexbeer let the shit Pursuing, love you with Catalyst or Mojolicious" (de) --wose http://twitter.com/wose/status/27128694239
11:18 vti shit pursuing? oO
11:18 sri haha
11:28 yakudzo left #mojo
11:33 sri hmm, windows phone 7 might actually be good :O
11:34 Alias_ I played with on at Techd
11:34 Alias_ TechEd
11:34 Alias_ Got into a contest to win one too, but lost
11:34 Alias_ It's pretty ordinary
11:34 sri it's getting good reviews
11:34 Alias_ But it's going to be an awesome gaming platform
11:35 Alias_ I found the user interface overly busy
11:35 Alias_ iPhone is simpler
11:35 sri yea nobody compares it to the iphone
11:35 sri reviewers just keep saying how much better than andoid it is
11:35 Alias_ I wouldn't say so
11:36 sri android ui is horrible
11:36 Alias_ With, of course, the exception of the gaming
11:36 Alias_ The Android UI is mostly just fine
11:36 Alias_ Except in some corners
11:36 Alias_ Like the music player
11:36 Alias_ Anyways
11:37 Alias_ The two big standout points I got from all the dev talks
11:37 Alias_ 1. It's gaming ability will kick every other platform
11:37 Alias_ 2. It's going to chew a shit-ton of bandwidth
11:37 sri lol, techcrunch just said it's pc vs mac all over again, but this time android is the pc xD
11:37 Alias_ EVERYTHING on the phone uses the internet
11:38 Alias_ Anyways
11:38 Alias_ It doesn't suck
11:38 Alias_ Oh
11:38 Alias_ Complete app lockin
11:38 Alias_ Unless you have a developer account
11:38 sri not unexpected
11:38 Alias_ yup
11:38 Alias_ No compiled apps either
11:38 Alias_ Apps must be Silverlight
11:39 sri ouch
11:39 Alias_ The Windows phone GUI is silverlight on .NET on windows core
11:39 sri wonder if microsoft will buy adobe
11:40 Alias__ joined #mojo
11:45 Alias_ left #mojo
12:14 * gabb likes the android UI
12:15 gabb mostly pragmatic, maybe a bit less shiny than others, but it "just works" (TM)
12:15 sri umm
12:15 sri iphone is way more pragmatic
12:15 gabb however I hate the android store and app management and access restriction
12:16 sri android just feels very cheap after using an iphone
12:16 gabb had an iphone 3 for a while and can't say my Desire feels any cheaper
12:16 gabb didnt test iphone4 ye
12:16 gabb *yet
12:25 Kulag <zamolxes> j.mp -> is.gd = horrible warning <-- Sorry about that. My client is stupid and reshortened the shortened link.
12:38 meraxes joined #mojo
12:42 Akron joined #mojo
12:52 perlrocks left #mojo
12:57 perlrocks joined #mojo
13:05 Foxcool joined #mojo
13:21 perlrocks Twitter: "@kraih i've just created a page. http://github.com/kraih/mojo/wiki/Writin​g-websocket-chat-using-Mojolicious::Lite / thanks @naoya_ito ;)" --punytan http://twitter.com/punytan/status/27137461079
13:23 hoelzro joined #mojo
13:38 Kulag A second translation now, heh.
13:41 perlrocks Twitter: "Drew / Mojolicious wrote the wiki - punitan notes - http://d.hatena.ne.jp/punitan/20101012/1286890887" (ja) --punytan http://twitter.com/punytan/status/27139154626
13:42 dotan joined #mojo
13:43 perlrocks Twitter: "@ Punytan before, but I also write w - http://github.com/kraih/mojo/wiki/Creating-a-ch​at-page-using-WebSocket-with-Mojolicious::Lite" (ja) --arktosis http://twitter.com/arktosis/status/27139336467
13:44 vti oh no, now they are going to retweet translation
13:47 gabb ye T_T
13:49 sri xD
13:52 punytan_ joined #mojo
13:56 gabb curse you punytan_ !!!
13:56 gabb xD
13:56 gabb j/k
13:57 gabb 13:41 < perlrocks> Twitter: "Drew / Mojolicious wrote the wiki - punitan notes - http://d.hatena.ne.jp/punitan/20101012/1286890887" (ja) --punytan http://twitter.com/punytan/status/27139154626
13:57 gabb 13:44 <@vti> oh no, now they are going to retweet translation
13:57 gabb you japenese guys seems to love retweets :D
13:57 punytan_ hi
13:57 * sri waves
13:58 Kulag ノ punytan_
13:58 * gabb is off for a two hour meeting with representatives of the student body T_T :welp:
13:58 gabb laters
13:59 Kulag I guess I should change my nick to avoid confusion.
13:59 Kulag is now known as Arktosis
13:59 punytan_ ah,
13:59 punytan_ what should i do?
14:00 sri you should drink beer
14:01 punytan_ haha
14:01 Arktosis punytan_: Take over the channel with your friends and fill it with Japanese all day long? :3
14:02 punytan_ excuse me. i also think duplicated article is nonsense.
14:02 Arktosis Hmm
14:02 Arktosis Probably best to merge them.
14:03 punytan_ yep
14:11 charsbr sri: btw I'll give a 10min talk on mojolicious the day after tomorrow, at YAPC::Asia's pre meeting. is there anything you want to deliver to the (almost) japanese audience? :p
14:14 punytan_ yesterday, i talked with kraih on twitter and i asked naoya_ito to permit translation. the timimg which creating a page was bad. i'm sorry about this.
14:16 charsbr don't worry. it's always nice to attract more people.
14:17 charsbr and I also learned something from his article.
14:20 koban left #mojo
14:30 arthas joined #mojo
14:31 hoelzro left #mojo
14:31 hoelzro joined #mojo
14:43 alnewkirk joined #mojo
14:46 hoelzro left #mojo
15:20 alnewkirk left #mojo
15:21 alnewkirk joined #mojo
15:33 dotan left #mojo
15:50 und3f[A] is now known as und3f
15:53 spleenjack left #mojo
16:08 kvorg left #mojo
16:27 ysyrota left #mojo
16:27 kvorg joined #mojo
16:35 rhaen left #mojo
16:38 rhaen joined #mojo
16:39 rhaen hep!
16:49 spleenjack joined #mojo
17:09 Foxcool left #mojo
17:11 vti sri: is there any way to call a helper within $app instance?
17:11 sri vti: no and there shouldn't be
17:11 vti too bad, i use it
17:12 Htbaa joined #mojo
17:12 sri what would you use it for?
17:12 vti i need to call a helper inside a plugin
17:13 sri then you might be doing something wrong
17:13 vti i do my $config  = $app->renderer->helper->{config}->();
17:13 sri umm
17:13 sri why?
17:13 sri if it's called from startup you should just pass along the config hash
17:13 vti ugly
17:14 sri helpers almost always affect $c
17:14 vti i have my own configuration plugin that loads json_config, does some settings and creates a helper which i can be used in other plugins
17:14 sri they just shouldn't be used on app level
17:15 sri well, you can always do the sharifulin trick to use stand alone helpers
17:17 vti can you make it possible, but when called on app it just doesn't get $c object? :)
17:17 sri Mojolicious::Controller->new(app => $app)->$helper
17:17 sri what?
17:17 vti hm, you already have $app->helper
17:17 sri thats something entirely different
17:18 sri $c->helper is deprecated for a reason
17:18 sri $app->helper will never happen
17:18 sri $app->$helper i mean
17:18 vti ok, controller hack is better than my solution and doesn't look too odd
17:18 vti thanks
17:19 kthakore hello
17:19 kthakore hi sri, vti
17:19 * sri waves
17:19 kthakore hope I didn't interrupt
17:20 kthakore I am using mojo for a database and plugin core app
17:20 kthakore is there a good way to plugin stuff to Mojolicious
17:20 kthakore like Mojo::SMS?
17:20 kthakore MojoX::Email
17:20 kthakore so on ...
17:21 sri you should read the sections on plugins in the guides
17:21 sri (on github)
17:21 kthakore Awesome!
17:21 sri plugins got way more powerful recently
17:21 kthakore yay!
17:22 kthakore is it on CPAN yet?
17:22 kthakore the power?
17:22 sri nope
17:22 kthakore okie
17:22 sri but in a very stable state
17:22 kthakore um you are not http://github.com/sri right?
17:23 sri http://github.com/kraih
17:23 sri thats me :)
17:24 kthakore Where is the section on plugins
17:25 kthakore http://github.com/kraih/mojo/tre​e/master/lib/Mojolicious/Guides/
17:26 sri http://github.com/kraih/mojo/blob/master/lib/M​ojolicious/Guides/Rendering.pod#Adding_Helpers
17:26 kthakore yay
17:26 sri and
17:27 sri http://github.com/kraih/mojo/blob/master/lib/Mo​jolicious/Guides/Routing.pod#Condition_Plugins
17:27 sri and then there are many examples in the Mojolicious::Plugin namespace
17:33 arthas left #mojo
17:50 perlrocks Twitter: "Refactored #Bootylicious to patterns. Looks I've never written in OOP before http://bit.ly/9hgKwE #Mojolicious #Perl" --vtivti http://twitter.com/vtivti/status/27160497446
17:55 stephen left #mojo
17:56 hoelzro joined #mojo
18:01 rhaen hm.
18:01 rhaen this mojolicious thing is getting more and more famous!
18:02 sri mainstream is boring :(
18:02 rhaen hm, can be. Yes.
18:10 perlrocks Twitter: "RT @vtivti: Just donated 4 packs (6 bottles each) of #beer to the the awesome #Mojolicious Web Framework! Retweet and join me!" --moviematica http://twitter.com/moviematica/status/27161904759
18:11 rhaen oh, cool
18:13 stephen joined #mojo
18:18 Akron left #mojo
18:19 rhaen hm. Guess what - I own a new server
18:19 rhaen and YES I can mojo apps now
18:21 rhaen right now it says: "Yay, funky"
18:21 sri YAY FUNKY!
18:22 rhaen right now I am reading the guides
18:23 rhaen I'll hope to display a "welcome to your first catalyst application" message
18:36 kvorg rhaen: u should stuff the appropriate logo in an encoded __DATA__ section to display along the message.
18:47 MojoGuest821 joined #mojo
18:47 MojoGuest821 yay, its back
18:48 MojoGuest821 left #mojo
18:49 xantus rhaen: see the bottom of http://dev.xantus.org:3000/source
18:50 xantus for an example of embedded files using plain and base64
18:53 janus today i gave a talk using a mojolicious liteapp as backend :)
18:53 janus initially i wanted to give the talk about mojolicious i previously mentioned
18:54 janus sorry guys, had to talk about that first... but now i got a nice demo-app for the mojo talk ;)
18:54 sri :)
18:56 xantus is there a mojo powered slide app
18:57 xantus I think vti had one...
18:57 xantus if not, there should be
18:57 janus i have one now, probably going to release it after the mojo talk, even if it's just another one :)
19:01 janus nothing fancy to be honest, but did the trick once already
19:05 xantus if you could give everyone the url to the slide app during the presentation
19:05 xantus and they could follow along as you flip slides
19:06 xantus using a websocket to control the clients
19:06 xantus and maybe a raise your hand, ask a question thing
19:06 janus nice idea
19:07 xantus and a thumbs up/thumbs down for questions for voting
19:07 xantus that would order questions based on popularity
19:13 janus well, lets see how much time will be left to do more then the slides
19:53 Htbaa left #mojo
20:55 ltriant joined #mojo
20:58 kvorg left #mojo
21:06 fish_ is there some list of all those nice mojo oneliners? :)
21:07 sri not yet
21:12 kvorg joined #mojo
21:14 DaTa does that page only looks buggy to me? http://github.com/kraih/mojo/wiki/Writing-web​socket-chat-using-Mojolicious%3A%3ALite/_edit
21:14 sri here too
21:20 vti !tweet Mojo rocks!
21:20 perlrocks vti: http://twitter.com/perlrocks/status/27174646722
21:21 DaTa ok, i've reported it
21:29 DaTa wonder when and if it get's fixed, they haven't fixed the fork count yet ;)
21:43 hoelzro left #mojo
21:59 rhaen uh, oh.
22:00 rhaen hm.
22:00 rhaen DaTa: ?
22:01 DaTa rhaen?
22:01 rhaen are you datamuc?
22:01 DaTa yes
22:01 DaTa Dr. Scott?
22:01 rhaen cool - can we rename your awesome websocket wiki page
22:01 rhaen to something without ::
22:01 rhaen Please, this breaks on Win32 systems
22:01 DaTa rhaen: it's not mine, i've just reformated it :)
22:01 rhaen as they can't checkout the wiki
22:02 rhaen ah - ok, then I'll rename it instantly :)
22:02 rhaen do you have any changes on it right now?
22:02 DaTa no
22:03 rhaen ok! :) You did a GREAT job with reformatting all the stuff
22:03 rhaen thank you!
22:04 DaTa just hit gqap a few times :)
22:04 rhaen hahah - vi user
22:07 doubi joined #mojo
22:08 doubi Has anyone translated http://d.hatena.ne.jp/naoya/20101011/1286778922 yet? Is the author thinking of redoing it in English?
22:14 spleenjack left #mojo
22:15 rhaen doubi: oh, isnt that in the wiki?
22:15 doubi Is it now?
22:15 rhaen like here: http://github.com/kraih/mojo/wiki/Writin​g-websocket-chat-using-Mojolicious-Lite
22:16 rhaen yep - it was in there, however it wasn't listed on the front page
22:16 doubi Just put it there did you?
22:16 rhaen I renamed it (due to win32 filename issues) and put it on the main page
22:16 rhaen yep
22:17 rhaen that was me - like 10 seconds ago
22:17 doubi Ok. Good to know I'm not completely effing blind x-)
22:17 doubi Chz!
22:17 rhaen :)
22:18 rhaen yep, I try to keep an eye on the wiki
22:18 sri wiki editors++
22:18 rhaen I'll check it daily for errors with Test::Pod, I'll make sure to have win32 compatible filenames
22:18 rhaen etc.
22:18 rhaen sri: yep, it's really nice - it's growning daily now
22:19 rhaen argl. now growling
22:19 rhaen growing!
22:19 rhaen I am still somewhat handicapped with my article
22:19 * sri growls
22:20 rhaen *ugh* - due to right conflicts. Think I should write about something different and contribute my stuff
22:20 rhaen like: Apache mod_proxy_balancer configs for multiple mojo instances
22:20 Arktosis rhaen: http://github.com/kraih/mojo/wiki/Creating-a-ch​at-page-using-WebSocket-with-Mojolicious::Lite Have fun merging this translation with the other one.
22:20 sri right conflicts?
22:20 rhaen with crispy fine balancing stuff for hot swap and hot deplayment action!
22:21 rhaen Arktosis: hm. I have a look into it
22:21 rhaen sri: yep, copyright stuff
22:22 rhaen I can't blog about it before - then I write the article.
22:22 Arktosis Hmm
22:22 rhaen I will meet the people from the magazine next week. Let's see
22:22 Arktosis Looks like somebody edited and cut off the last part of the translation.
22:22 rhaen would be cool if the opensource it and contribute it :)
22:23 rhaen Arktosis: could that be me? I renamed the file just a few minutes ago
22:23 Arktosis rhaen: No, you renamed the second translation
22:23 rhaen Arktosis: oh, funny - we have two articles about the same thing
22:24 Arktosis rhaen: Yeah, I translated it yesterday, and then punytan posted another translation this morning.
22:24 Arktosis rhaen: http://pastebin.com/PMbDFZJ6 Here's my unbroken original
22:25 rhaen yep. hu :)
22:25 rhaen strange things happen - first we had no docs - now we have even authors conquering :)
22:26 Arktosis Heh
22:26 Arktosis It would have been nice to work together on it.
22:27 rhaen is that ok if I merge them tomorrow?
22:27 Arktosis Sure
22:27 rhaen it's bed time here :) and I can hear my bed screaming for me.
22:27 rhaen awesome - yep. those are 2 different versions :)
22:30 rhaen ok, I've added a small note about a conflict.
22:31 rhaen Bed time for me. cya tomorrow - with a working translation :)
22:31 sri nn
22:31 rhaen sleep well.
22:32 Alias__ left #mojo
22:36 doubi Sleep well!
22:48 vti sri: there is small problem with embedded templates when i want to use a template from one file and a layout from other, here is a dirty fix that allows changing template_class on the fly https://gist.github.com/ba8394e17094bbc0a05d
22:49 vti this is usefull when you want to write a plugin that has an embedded template, but use a layout that a main app has
22:49 vti this way you can change template_class to 'main' after you have rendered your template
22:51 sri i'm not sure i want that "feature"
22:52 sri how does the use case look like?
22:53 vti https://gist.github.com/ab696946e5372dce56a9
22:53 vti i provide my own template but use the original app layout, and it embedds naturally
22:54 sri wow thats ugly
22:55 vti there is no other way, mojo rendering is not controllable
22:55 sri and it means $self->render(template_class => '...') could never override stash->{template_class}
22:55 sri which is nonsensical
22:57 vti why? just don't change it in the template and it will work as expected
22:57 sri hmm
22:57 sri ah ok, you added it down there
22:58 sri actually
22:58 sri there it makes perfect sense
22:58 sri we do the same for format and handler
22:59 sri with tests the patch would be fine
23:01 vti ok
23:02 MojoGuest386 joined #mojo
23:02 MojoGuest386 From: http://news.ycombinator.com/item?id=1277067 (1 hits)
23:19 vti sri: https://gist.github.com/ed6966ddc8858449d211
23:21 MojoGuest386 left #mojo
23:22 sri vti: why the other additions to MojoX::Renderer?
23:22 vti just to make it look like $format and $handler settings
23:22 sri that might not be good
23:24 sri i'll check
23:25 und3f is now known as und3f[A]
23:25 sri the delete is not good
23:26 sri inline templates would be without template class
23:26 sri s/inline/partial/
23:26 vti ok
23:27 sri otherwise it's ok
23:28 vti do you want me to push?
23:28 sri already on it
23:28 vti ah, ok
23:34 sri how the hell does the appended plugin work?
23:34 vti it just renders its plugin and then switches to the main layout and renders it
23:34 vti *its template
23:34 sri nono, i mean how the hell can you embed it in lite_app.t
23:34 sri thats two data sections in a single file
23:34 sri is the diff broken?
23:34 vti that's why it is a separate file oO
23:34 vti ye, diff is broken
23:34 sri oh
23:34 vti i just appended a new file
23:34 vti it should be in t/mojolicious/
23:34 sri futurama quote!
23:34 vti the hardest
23:34 Kulag joined #mojo
23:34 Arktosis left #mojo
23:34 vti Good news, everyone! I've taught the toaster to feel love!
23:34 perlite_ joined #mojo
23:34 sri lol
23:35 doubi Nightnight all o/
23:35 perlite left #mojo
23:35 doubi left #mojo
23:35 sri nn
23:43 GitHub164 joined #mojo
23:43 GitHub164 mojo: master Sebastian Riedel * 935fc42 (3 files in 3 dirs): improved template class handling in MojoX::Renderer - http://bit.ly/9dQg0h
23:43 GitHub164 left #mojo
23:45 GitHub129 joined #mojo
23:45 GitHub129 mojo: master Sebastian Riedel * b4af64d (1 files in 1 dirs): cleanup - http://bit.ly/9HpoKD
23:45 GitHub129 left #mojo
23:48 vti thanks
23:48 sri vti++

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