Camelia, the Perl 6 bug

IRC log for #mojo, 2013-06-27

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

All times shown according to UTC.

Time Nick Message
00:02 sivoais joined #mojo
00:06 Moataz-E joined #mojo
00:06 Moataz-E hello guys
00:07 Moataz-E total mojolicious noob here
00:07 Moataz-E just a quick question, i have a website which i made using html5, css and javascript
00:08 Moataz-E now i am in need of login and filtering system; i chose mojlicious for this.
00:08 Moataz-E i am trying to get the hang of everything by following the documentation examples, doing and understanding each bit of code.
00:09 Moataz-E my one problem is, how do i simply serve a static page like index.html. Example provided doesn't work with me
00:10 Moataz-E i copied my website's files to the public folder
00:12 btyler joined #mojo
00:29 buu Moataz-E: What does the log say when you access it
00:32 Moataz-E buu: Page not found!
00:36 Moataz-E buu: all i am doing is inserting "@@ index.html" into a script with just the use Mojo... declaration
00:36 sri https://github.com/visionmedia/co # another intersting way for dealing with events and coroutines
00:47 shmuel joined #mojo
01:03 marty Moataz-E: If I recall you need to make sure the @@ have no leading whitespace
01:04 marty I'm not sure if that is relevant any longer but I ran into it a couple of times while copying and pasting examples from the docs.
01:06 Kulag joined #mojo
01:28 egopro joined #mojo
01:41 asarch joined #mojo
01:50 mire joined #mojo
01:57 Meiermann joined #mojo
02:01 d4rkie joined #mojo
02:18 Adura joined #mojo
02:28 whitebook joined #mojo
02:32 jberger o/
02:32 jberger stevan++
03:18 rem_lex|pivo joined #mojo
03:28 preflex_ joined #mojo
04:17 whitebook joined #mojo
04:28 Psyche^ joined #mojo
05:16 arpadszasz joined #mojo
05:40 Britzel joined #mojo
05:47 egopro joined #mojo
05:50 Britzel_ joined #mojo
05:52 egopro joined #mojo
05:54 basiliscos joined #mojo
05:57 Meiermann joined #mojo
05:59 Adura joined #mojo
06:04 abstract joined #mojo
06:11 Vandal joined #mojo
06:14 dpetrov_ joined #mojo
06:42 mire joined #mojo
06:42 dod joined #mojo
06:50 Vandal joined #mojo
06:56 yakudza joined #mojo
06:58 egopro joined #mojo
07:13 dod joined #mojo
07:13 kwa Mornin'
07:13 trone joined #mojo
07:21 Jonis morning'
07:22 Jonis I was going to say too early to be at work, but it's 9.23 here.
07:23 rem_lex| joined #mojo
07:26 dod joined #mojo
07:30 denisboyun joined #mojo
07:31 egopro joined #mojo
07:35 marcus_ stevan++ # indeed
07:38 egopro joined #mojo
07:45 preflex joined #mojo
07:49 fhelmber_ joined #mojo
07:54 maxhq joined #mojo
07:57 egopro joined #mojo
08:00 suy joined #mojo
08:01 egopro joined #mojo
08:07 abstract_ joined #mojo
08:07 egopro joined #mojo
08:18 jnbek joined #mojo
08:20 jzawodn joined #mojo
08:34 cosmincx joined #mojo
09:13 Phil21 joined #mojo
09:14 phillipadsmith joined #mojo
09:19 denisboyun_ joined #mojo
09:24 Lurchentsafter joined #mojo
09:33 jiyuperl joined #mojo
09:38 arthas joined #mojo
10:36 Jonis so I've got % if($self->flash('status') eq 'ACCEPTED') { at the top of template, and after a bunch of css I've got % }
10:36 Jonis and it gives me a complaint about unmatched right curly bracket
10:37 Jonis can't for the life of me figure it out, have I done something obviously stupid?
10:40 abstract joined #mojo
10:42 Jonis oh, it was my content_for that was broken
10:43 whitebook joined #mojo
11:19 jamesaxl joined #mojo
11:20 denisboyun joined #mojo
11:26 mire joined #mojo
11:28 btyler joined #mojo
11:44 libsysguy joined #mojo
11:48 SmokeMachine joined #mojo
11:49 jamesaxl_ joined #mojo
12:33 mrphilov joined #mojo
13:01 aleksey joined #mojo
13:04 asarch joined #mojo
13:13 shmuel joined #mojo
13:23 Caldrin joined #mojo
13:27 sh4 joined #mojo
13:32 denisboyun_ joined #mojo
13:33 btyler joined #mojo
13:34 memowe This is the number nine: 9
13:36 d4rkie joined #mojo
13:36 Caldrin Mojolicious - \o/
13:37 Caldrin Especially Mojolicious::Lite :-)
14:03 denisboyun joined #mojo
14:07 bluescreen joined #mojo
14:07 Moataz-E hello guys
14:07 Moataz-E can someone tell me what the PUT request is doin in the HTTP methods section of the Mojolicious::Lite guide?
14:10 ynonp joined #mojo
14:16 rem_lex| joined #mojo
14:16 libsysguy listening for put request?
14:16 libsysguy Moataz-E: are you talking about here http://mojolicio.us/perldoc/Mojolicious/Lite#put
14:19 DaTa 29
14:19 DaTa narf
14:20 Moataz-E libsysguy: no here: http://mojolicio.us/perldoc/M​ojolicious/Lite#HTTP_methods
14:20 Moataz-E libsysguy: yeh, how can i access the output of a put request
14:20 libsysguy it should be in $self->req->body
14:21 jast if your question is why a user agent would use PUT in the first place: it's typically used for WebDAV or a REST-like web API
14:25 abra joined #mojo
14:25 libsysguy so I am trying to use Socket.io with Mojo for a websocket connection
14:26 libsysguy and I can see in the js console that it is polling the connection and mojo is handing me back a websocket for each new poll
14:26 libsysguy has anybody worked with those two yet?
14:29 libsysguy oh, nevermind it keeps polling because mojo is never opening the websocket
14:29 shmuel joined #mojo
14:30 Moataz-E jast: thank you, i just didn't understand the functionality of PUT.
14:31 jast yeah, there's no absolutely fixed meaning, it tends to mean something like "put a resource onto the server"
14:35 TitanOfOld joined #mojo
14:36 jeff libsysguy: asking as someone interested in playing with websockets and socket.io (or more likely sockjs), I'm interested in knowing if you're using morbo, hypnotoad, or something else.
14:37 libsysguy I'm just doing dev right now, so morbo
14:37 libsysguy but if it goes to prod I'll use hypnotoad and nginx
14:38 jeff thanks.
14:39 jast do websockets play nice with nginx?
14:39 libsysguy jast: they do as of feb this year I think
14:39 jast neat
14:39 jast will keep that in mind
14:40 * libsysguy forgets where he read that
14:40 jast nginx.com confirms
14:41 basiliscos joined #mojo
14:42 jast nginx.org doesn't. hmm...
14:42 jast there we go: WebSocket proxying requires special configuration and is supported since version 1.3.13.
14:43 libsysguy ah yes
14:51 bluescreen joined #mojo
15:00 gryphon joined #mojo
15:22 mire joined #mojo
15:28 libsysguy does anybody know how to tell if a websocket is still open?
15:33 whitebook joined #mojo
15:44 whitebook joined #mojo
15:50 bpmedley joined #mojo
16:18 suy joined #mojo
16:46 Moataz-E man, just experimented with headers and successfully modified them from firefox
16:46 Moataz-E I LOVE WEB DEVELOPMENT!
17:25 yakudza joined #mojo
17:25 maxhq joined #mojo
17:25 basiliscos1 joined #mojo
17:25 buu joined #mojo
17:25 tba joined #mojo
17:25 arpadszasz joined #mojo
17:25 mire joined #mojo
17:25 gryphon joined #mojo
17:25 rem_lex| joined #mojo
17:25 d4rkie joined #mojo
17:25 btyler joined #mojo
17:25 Caldrin joined #mojo
17:25 asarch joined #mojo
17:25 mrphilov joined #mojo
17:25 jiyuperl joined #mojo
17:25 Lurchentsafter joined #mojo
17:25 Phil21 joined #mojo
17:25 preflex joined #mojo
17:25 Vandal joined #mojo
17:25 Adura joined #mojo
17:25 Meiermann joined #mojo
17:25 Britzel_ joined #mojo
17:25 priodev joined #mojo
17:25 tl joined #mojo
17:25 gtodd joined #mojo
17:25 batman joined #mojo
17:25 alnewkirk joined #mojo
17:25 Dandre joined #mojo
17:25 Andreas joined #mojo
17:25 keedi joined #mojo
17:25 KindOne joined #mojo
17:25 cooper joined #mojo
17:25 Gedge joined #mojo
17:25 nic joined #mojo
17:25 cfedde joined #mojo
17:25 jberger joined #mojo
17:25 duncanthrax joined #mojo
17:25 marcus joined #mojo
17:25 nikita_ joined #mojo
17:25 stephan48 joined #mojo
17:25 perlite joined #mojo
17:25 Liam`` joined #mojo
17:25 Zx3 joined #mojo
17:25 heytrav joined #mojo
17:25 allison joined #mojo
17:25 marty joined #mojo
17:25 dwierenga joined #mojo
17:25 Jonis joined #mojo
17:25 chansen joined #mojo
17:25 mfontani joined #mojo
17:25 plu joined #mojo
17:25 ZadYree joined #mojo
17:25 Bender joined #mojo
17:25 drift joined #mojo
17:25 Mikey joined #mojo
17:25 mikegrb joined #mojo
17:25 robinsmidsrod joined #mojo
17:25 rafl joined #mojo
17:25 gabiruh joined #mojo
17:25 dabudabu joined #mojo
17:25 xdbr joined #mojo
17:25 mattp joined #mojo
17:25 bjoernfan joined #mojo
17:25 daemonic joined #mojo
17:25 cstamas joined #mojo
17:25 yko joined #mojo
17:25 Foxcool joined #mojo
17:25 jmmills joined #mojo
17:25 kwa joined #mojo
17:25 bowtie joined #mojo
17:25 sri joined #mojo
17:25 bobkare joined #mojo
17:25 edenc joined #mojo
17:25 Mad_Dud joined #mojo
17:25 DaTa joined #mojo
17:25 ask joined #mojo
17:25 mtj joined #mojo
17:25 connor_goodwolf joined #mojo
17:25 Grrrr joined #mojo
17:25 Ralesk joined #mojo
17:25 trmjoa joined #mojo
17:25 dec joined #mojo
17:25 omega joined #mojo
17:25 avenj joined #mojo
17:25 espen_ joined #mojo
17:25 tokuhirom joined #mojo
17:25 alzeih joined #mojo
17:25 diegok joined #mojo
17:25 ruz joined #mojo
17:29 ZadYree Hello! I would like to know how to perform some long actions whilst having a Mojolicious app running, and in particular having a long download running, and returning something when the download is started?
17:57 denisboyun_ joined #mojo
18:19 dpetrov_ joined #mojo
18:25 marty ZadYree:  For hypnotoad you can use inactivity_timeout => 600 in your config.  I think you might also be able to use Mojo::IOLoop->stream($self->t​x->connection)->timeout(600); in your app (I've never used it)
18:32 denisboyun_ joined #mojo
18:37 basiliscos joined #mojo
18:40 libsysguy left #mojo
18:40 BeDa joined #mojo
18:40 mire joined #mojo
19:00 mikegrb joined #mojo
19:02 abra joined #mojo
19:05 Moataz-E hello guys
19:05 Moataz-E why doesn't this piece of code serve my index static page: http://pastebin.com/nF7Eitg0
19:07 sri you should paste the complete app
19:09 Moataz-E i am experimenting with morbo
19:09 Moataz-E this is the complete app, i am going through the documentation doing each example
19:10 Moataz-E i have an index.html file in the app's public directory
19:10 sri i'm certain that is not an example from the documentation
19:10 sri http://mojolicio.us/perldoc/M​ojolicious/Lite#Static_files
19:11 Moataz-E sri: yeh it says - External static files are not limited to a single file extension and will be served automatically from a public directory if it exists.
19:11 Moataz-E the pastebin i posted is exactly that example with index.html instead of something.js
19:15 PerlJam Moataz-E: did you go to the correct URL?   http://localhost:3000/index.html   ?
19:15 PerlJam (or whatever)
19:16 Moataz-E PerlJam: yeh, i get a page not found :S
19:23 jnbek joined #mojo
19:25 PerlJam Moataz-E: I dunno what you're doing wrong, but I just copied your program into a file, made a dir named "public" and stuck an index.html file in it, then ran "perl mojo-test daemon", and browsed to http://localhost:3000/index.html and ... you guessed it.  It worked just fine.
19:26 PerlJam Moataz-E: maybe you accidentally have multiple servers running and you're browsing the wrong one?
19:28 Moataz-E PerlJam: i am using morbo, maybe this is why?
19:29 bpmedley Moataz-E: Are you serving files from your public directory?
19:29 PerlJam Moataz-E: I know zero about morbo
19:30 Moataz-E bpmedley: my index.html file is in public and my mojo file is in script
19:30 Moataz-E PerlJam: just tried it with daemon and it still didn't work
19:30 bpmedley Moataz-E: Why do you have index.html in two places?
19:31 Moataz-E bpmedley: i have it as a file in public, only one place
19:33 jamesaxl joined #mojo
19:35 tba joined #mojo
19:36 Moataz-E bpmedley: i am new to web development, sorry if i am doing something stupid
19:36 bpmedley Moataz-E: Moment
19:44 crab perljam: have you used "./myapp daemon"?
19:45 PerlJam crab: um ... why?
19:48 tba joined #mojo
19:49 crab i was going to say that if you have, then you know everything you need to about morbo except for the file-watching-and-reloading.
19:49 crab but you sound rather put off by the question, so never mind.
19:53 PerlJam oh.
19:54 PerlJam when you run a mojo app via "daemon" it runs the morbo server?
19:54 * PerlJam is only slightly versed in all things Mojo
19:55 crab no, the other way around. when you run morbo, it's a wrapper around Mojo::Server::Daemon that does auto-reloading.
19:55 PerlJam ah.
19:55 tba joined #mojo
20:02 tba joined #mojo
20:22 jamesaxl joined #mojo
21:07 perlite_ joined #mojo
21:08 ZadYree thank you marty, I will try this :)
21:34 lukep joined #mojo
22:16 libsysguy joined #mojo
22:23 bodgeex joined #mojo
22:34 hesperaux_ joined #mojo
22:49 omega joined #mojo
23:02 bodgeex1 joined #mojo
23:23 ruz joined #mojo
23:25 MeierM joined #mojo

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