Camelia, the Perl 6 bug

IRC log for #mojo, 2010-07-06

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

All times shown according to UTC.

Time Nick Message
02:20 awncorp joined #mojo
03:08 ashleydev joined #mojo
03:12 yakudzo joined #mojo
03:19 janus joined #mojo
04:00 ashleydev joined #mojo
04:03 tholen42 joined #mojo
04:42 dotan2 joined #mojo
04:52 xantus joined #mojo
04:52 xantus hey guys
04:56 dotan2 left #mojo
05:34 Foxcool joined #mojo
05:40 Su-Shee joined #mojo
06:05 ashleydev joined #mojo
06:45 ysyrota joined #mojo
07:04 esskar moin
07:16 jest joined #mojo
07:50 ysyrota joined #mojo
07:50 dotan joined #mojo
07:51 marcus moin
07:56 stephan48 sri: you could klick on the left side on the line numbers
07:56 stephan48 oh sry was in backlog :(
07:56 stephan48 (was about the problem with github mojo cookbook and not being able to link to lines)
08:07 Foxcool joined #mojo
08:27 spleenjack joined #mojo
08:44 yko Is it possible to organize upload progress bar with mojolicious?
08:53 ask joined #mojo
08:57 marcus impossible!
08:58 yko totally shure?
08:59 dotan yko: don't you need flash for this?
09:00 yko but i mean - can i show upload progress with mojolicious at all
09:01 yko dotan: i can use websockets to show progress, instead of flash :p
09:02 yko ... but with flash workarround :\
09:03 dotan Amazing how adding some feature to a particular browser legitimizes using flash - but just to duplicate that feature on other browsers ;-P
09:07 yko gg. from other hand, flash is used to avoid using flash :)
09:11 dotan Here's how they do it in Dojo/Coccon: http://blog.fiveone.org/2006/11/good-progress.html
09:11 garfield [ Five One: Good Progress ]
09:11 garfield http://xrl.us/bhqwv5
09:12 dotan "When the form is submitted and the upload begins, Cocoon's MultipartParser writes upload status info to the user's Session, the Widget begins to poll a system-level URL in Cocoon to retrieve this info as a JSON Object and updates the page with it."
09:13 dotan So you submit the form and at the same time open a websocket to mojolicious to get updates.
09:13 yko Actually, i imagine how to organize upload progress bar on client side.
09:14 yko Just interesting, if i can provide upload progress information from server side with mojolicious. that what im asking about
09:17 dotan yes, the ui drives the thing, because the server handles each request separately.
09:17 dotan you need the file upload request handling to log its progress, and the update handling request (websocket or whatever) to be able to get at that info.
09:19 dotan Without assuming they share a process
09:19 yko :) i think you got me wrong
09:19 dotan I probably did :)
09:19 yko what i need to know - is no how to get upload info from client side or show progressbar to client.
09:20 yko what i need to know - is how to send from serverside info about 'upload in progress' with % of uploaded data.
09:20 yko *not
09:34 dotan I think I did get you right. The client only knows that a file upload request was submitted, so it knows when it should ask the serverside for % uploaded data. The server gets two requests, one with the file data, the other asking "any file uploads going on? How much are they done yet?"
09:35 dotan You want to know how to hook up the two requests - pass the data from the process handling the upload to the process sending the progress updates
09:40 yko i want to know how to write into anywhere (log file, for example) 'recieving data from client: 0%\n12%\n35%\n75%\n100%'
09:41 yko forget about communications with client, i woant to know how to dump uploading process in mojolicious :D
09:44 dotan There's a comment in the Mojolicious :: Plugins docs about the after_build_tx hook being something that could be used for progress bars
09:45 dotan Because it's a point before any processing is done on the file, just the transaction with the incoming Content-Length header ready.
09:45 yko thaqnks! just what i need!
09:46 yko i should 'grep -ri progress mojolicious'  before asking :(
09:48 dotan Also grep "chunk".
09:49 yko thx
09:49 dotan And maybe run t/mojolicious/lite_app.t through the debugger with a breakpoint in the /upload route - line 111 or so...
09:49 yko but i think find . is just the same :D
09:50 yko anyway, thanks, now i know where to dig
10:34 baton8 joined #mojo
11:01 esskar http://conferences.yapceurope.org/ye2010/news/589
11:01 garfield [ YAPC::EU 2010 - The Renaissance of Perl - News ]
11:08 fifo joined #mojo
11:09 ltriant joined #mojo
11:10 diegok joined #mojo
11:11 yakudzo http://pics.livejournal.com/ibigdan/pic/00e2wbqy
11:11 yakudzo hehehe
11:13 mobyu joined #mojo
11:33 yko picoftheday
11:36 sri yko: it is possible
11:36 fifo Why doesn't this work? http://paste.scsys.co.uk/46380
11:36 garfield [ magnet_web paste from "fifo" at 217.168.150.38... ]
11:37 fifo I think I don't really get the flash thing
11:37 yko sri: alredy aunderstood, thanks
11:37 sri yko: oh ;p
11:38 sri yko: you just define $tx->req->progress_cb in the after_build_txplugin hook
11:38 yko sri: aha. already have little proj in my alchemy/* folder
11:40 yko btw, it's a good idea for cookbook chapter... somewhen in future
11:40 dotan sri: cookbook that!
11:40 yko :D
11:41 sri sure
11:41 sri it's actually quite easy
11:46 sri hmmmm... looks like vti is on vacation :o
11:47 memowe O HAI
11:47 memowe alive
11:47 sri :O
11:47 * memowe was ill and had internet connection issues.
11:47 memowe Yesterday I committed a bunch of new verbosifications.
11:47 sri your dog ate the router?
11:47 memowe Accidentally the whole internet. ;)
11:49 stephan48 what are embeeded mojo sessions?
11:49 memowe BBL :)
11:49 sri stephan48: sessions stored in signed cookies
11:49 stephan48 ok
11:49 stephan48 http://search.cpan.org/~vti/MojoX-Sessio​n-0.20/lib/Mojolicious/Plugin/Session.pm
11:49 garfield [ Mojolicious::Plugin::Session - search.cpan.org ]
11:49 garfield http://xrl.us/bhqxd7
11:50 ltriant joined #mojo
11:50 stephan48 i mean here.
11:50 sri thats a deprecated module
11:50 stephan48 so i have to instantiate a Session Object by myself?
11:50 sri no
11:50 fifo flash skips one request?
11:50 sri sessions are now built in
11:51 memowe They sit there already. :)
11:51 sri fifo: flash needs a key and a value
11:52 fifo sri: it has. But when I do something like this I get the value from one request ago: http://paste.scsys.co.uk/46380
11:52 garfield [ magnet_web paste from "fifo" at 217.168.150.38... ]
11:53 sri fifo: ah ok, thats exactly what is supposed to happen
11:53 sri fifo: the purpose of the flash is to show a message after a 302 redirect for example
11:53 fifo ah, okay
11:54 fifo so, when you can't use stash
11:54 sri if you just want to pass a message from the action to the template you use teh stash
11:54 sri exactly
11:54 fifo thank you
11:55 stephan48 sri: and how do i define a other store like memcached?
11:55 ltriant_ joined #mojo
11:55 sri stephan48: app->session(MySessionThingy->new)
11:55 sri possibly from a plugin
11:56 stephan48 okey.....
11:56 sri stephan48: the logic in MojoX::Session::Cookie is absolutely trivial
11:57 sri a memcached store would be just a few lines of code
11:57 yko sri: btw, when do you plan to finish 'documentation marathon'?
11:57 sri yko: i have 2 more weeks at least :)
11:57 yko and what happen then?
11:58 sri then 1.0 will happen
11:58 sri and i'll launch a new mojolicious.org
11:58 yko oh. actually, that's what i whant to know :D
11:58 yko wooo!
11:58 marcus yooyoo
11:58 sri i'll make the documentation available in a sleek web app
12:01 crab and ice cream for everyone?
12:01 yko icecream for sri
12:02 sri ice cream!
12:02 fifo Hor do I prevent HTML elemts inside the stash from being html-encoded?
12:02 crab i must get some butterscotch ice cream.
12:02 sri actually i had too much ice cream yesterday and my stomach hurts :(
12:02 sri fifo: <%== $foo
12:03 fifo ah, okay. Thank you again
12:03 sri fifo: you might want to take a look at the new documentation
12:03 * yko loves Mojo::ByteStream
12:03 sri fifo: it's on github in Mojolicious::Guides
12:04 fifo I will have a look at it!
12:13 GitHub196 joined #mojo
12:13 GitHub196 mojo: master Sebastian Riedel * 2ecc28f (7 files in 3 dirs): fixed a few small bugs - http://bit.ly/9yISST
12:13 GitHub196 left #mojo
12:16 sri i alwasy forget that USR1 doesn't work on windows :(
12:20 sri really too bad, i would have like to allow graceful shutdown on windows too
12:20 sri *+d
12:23 lee7 joined #mojo
12:24 marcus I would like to allow graceful shutdown of windows
12:24 marcus and then never turning it back on.
12:24 yko :D
12:47 sri ;p
13:05 stephan48 :)
13:05 stephan48 hey windows is ok aslong as you only need a browser on it ;)+
13:06 sri mojolicious is almost 100% windows compatible
13:06 gizzlon whats keeping mojo from running on windows?
13:06 sri just the prefork daemon and a few minor features are disabled
13:06 sri nothing
13:06 sri we just disable what doesn't work
13:06 gizzlon ok, I see..
13:07 sri it's the usual stuff, signals and ipc
13:07 Alias joined #mojo
13:08 gizzlon well, don't think a lot of people are going to deploy on windows anyway ..
13:08 sri yea
13:08 Alias Deploy what now?
13:08 sri and development is pretty much the same
13:08 gizzlon but maybe an easy download & test version would be cool
13:08 * Alias gears up for a Windows related fight :)
13:08 * sri throws USR1 signals at Alias
13:09 Alias What's a signal? :)
13:09 * sri only sees "No such signal: SIGUSR1 at Alias."
13:10 * sri cries
13:10 Alias No such: signal
13:12 sri there was an apache workaround using SIGWINCH
13:12 sri but i think strawberry didn't support it or so
13:13 * Alias shrug
13:13 Alias We don't really support Apache properly
13:13 Alias Or if we do, it's by no means official
13:13 Alias We don't do anything special
13:13 sri it was incompatible between activeperl and strawberry if i remember right
13:14 Alias I have no idea how they build or compile it
13:15 sri well, without preforking a graceful shutdown is rather unimportant anyway
13:17 sri i'm just glad all development features work cross platform :)
13:20 marcus and fastcgi works fine for deployment
13:20 sri seriously?
13:20 marcus I'm using it on m.ntb.no
13:20 sri windows and Mojo::Server::FastCGI?
13:20 marcus ::FCGI
13:20 sri oh
13:21 marcus on IIS
13:21 sri i think we might have FastCGI fixed for windows too now
13:21 sri IO::Poll didn't work before
13:24 sri has anyone noticed yet that FCGI.pm doesn't have any tests at all? :o
13:24 yko joined #mojo
13:26 sri http://cpansearch.perl.org/​src/FLORA/FCGI-0.71/test.pl # :)
13:26 garfield http://xrl.us/bhqxnm
13:26 stephan48 why test such stuff? it simply has to work!!!
13:26 ferreira joined #mojo
13:27 ask joined #mojo
13:28 marcus sri: it's not like it's a critical component or anything :-/
14:07 vel joined #mojo
14:35 diegok joined #mojo
14:42 yko joined #mojo
14:56 vel joined #mojo
14:56 ask joined #mojo
15:25 ashleydev joined #mojo
15:48 ysyrota1 joined #mojo
16:24 ashleydev_ joined #mojo
16:29 sri http://daringfireball.net/linked/​2010/07/06/flash-player-security # hahahaha
16:29 garfield [ Daring Fireball Linked List: Killer App for Flash Player on Android ]
16:29 garfield http://xrl.us/bhqx6x
16:34 sri "wow props to the person that did this and props for it being anonymous!!!"..."It's not a big deal. You're welcome...Steve...-sent from my iPhone"
16:41 ashleydev joined #mojo
16:47 ashleydev_ joined #mojo
16:51 su-bzero joined #mojo
17:05 ashleydev joined #mojo
17:15 yko joined #mojo
17:38 ask- joined #mojo
17:38 xantus joined #mojo
17:55 und3f joined #mojo
17:55 xantus morning
17:55 xantus I'm thinking of revisiting mojopaste
17:56 xantus couchdb+bespin+mojo
18:08 spleenjack joined #mojo
18:09 * xantus holds his spleen close
18:09 xantus I don't want it jacked
18:12 spleenjack hmm, i never thought about interpretation of my nick in that way :)
18:12 xantus lol
18:14 yko lol
18:22 ashleydev_ joined #mojo
18:38 sri lol
18:39 * sri waves
18:39 * sri has so many cool ideas atm
18:43 ashleydev_ joined #mojo
18:45 sri think i'll go with reinventing a very old concept for my first web service :)
18:48 * yko imagine how sri waves....
18:48 yko i think first sri turning into wave, like google wave logo shape...
18:49 sri i'm the matrix
18:49 yko and then he start waving. that's so cute :)
18:49 yko matrix? no, you can't be matrix
18:49 sri why not? :(
18:49 yko i hate matrix from very school
18:50 yko matrixes even
18:50 sri "the matrix"
18:50 yko oh.. you are the matrix...
18:50 * sri pokes yko with neural interface connectors
18:50 yko that heartless and soul'less digital creature :)
18:51 yko oh shi....
18:51 sri don't worry, it will only hurt a lot
18:51 * yko nervously twitching
18:51 yko like bug on the needle
18:53 * yko picking his nose with second neural interface
18:53 sri stop doing that
18:53 yko why? thats usefull
18:54 yko i mean, cosily
18:54 yko or something like that, that big needle in my head makes me forgetting what i never knew
19:10 vel joined #mojo
19:38 ashleydev_ joined #mojo
19:45 ashleydev_ joined #mojo
19:46 xantus joined #mojo
20:04 ashleydev_ joined #mojo
20:08 chansen_ joined #mojo
20:10 tab joined #mojo
20:12 tab hi
20:12 tab is there a way to write helpers and say to Mojolicious that the output should not bei html_escaped?
20:12 sri of course
20:13 tab how?
20:13 sri Mojo::ByteStream->new($outpu)
20:13 sri *+t
20:13 sri it's also documented
20:13 sri in the rendering guide
20:13 yko :))
20:14 sri yea, i like saying that :D
20:14 * yko too
20:14 tab thanks. i knew i´ve read it already anywhere ...
20:15 tab nice work!
20:15 yko hmm. mb we should have counter q. when sri can say 'rtfm'/ q
20:45 xantus jack me into the matrix, I'd like to learn everything about mojo
21:12 vel joined #mojo
21:15 * sri hands xantus the blue pill
21:34 nagual joined #mojo
21:39 xantus wait, did I just take GHB
21:39 * xantus passes out
21:41 ashleydev_ joined #mojo
21:53 * sri offers xantus to yko in exchange for vti
21:54 yko Hmm. Looks as a good deal...
21:54 sri \o/
21:55 yko I shuold discuss it with my bear... ill play balalayka some and we drink vodka. Tomm ill bring decision
21:55 sri Oo
22:12 xantus x_0
22:13 yko Ay-na-ne... dance, bear, dance!
22:14 * yko plays bandura and sing sad song about kosak samoylo...
22:14 yko cossack even... hate english
22:25 ltriant joined #mojo
22:40 * sri claps excitedly
22:41 sri Zzz
22:52 * yko finished sing lullaby and went sleep.
22:53 yko happy hibernate everyone

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