| Time |
S |
Nick |
Message |
| 00:04 |
|
Dr^ZigMan |
Greetings! Hopefully someone can point me in the right direction... I have a server with 4 Mojo Apps, running "Light-Fast-Licious" (Lighttpd FastCGI and Mojolicious). 3 of the 4 apps I'm able to get to daemonize but for some still unknown reason I'm unable to get the 4th up and running (keep getting an exited with signal 0 error). I've tried stracing it to see if I could find anything useful, any other tools I should give a try t |
| 00:09 |
|
Dr^ZigMan |
Oh I should add I'm able to bring up the errant app using morbo and hypnotoad but not "natively" (for lack of a better word) using lighttpd and fastcgi |
| 00:18 |
|
|
ispy_ joined #mojo |
| 01:23 |
|
|
zpmorgan joined #mojo |
| 01:30 |
|
|
xaka joined #mojo |
| 02:54 |
|
|
mire_ joined #mojo |
| 03:42 |
|
|
mire_ joined #mojo |
| 03:56 |
|
|
xaka joined #mojo |
| 04:30 |
|
|
zpmorgan joined #mojo |
| 05:20 |
|
|
hshong joined #mojo |
| 05:22 |
|
|
Elraraniel joined #mojo |
| 05:23 |
|
Elraraniel |
How can I manually fiddle with cookies in mojo? I've seen the session cookie support, but I need to manually set and get values from a domain cookie. |
| 05:31 |
|
|
sshaw joined #mojo |
| 05:57 |
|
|
zpmorgan joined #mojo |
| 06:44 |
|
metys |
EST Console |
| 06:46 |
|
|
athenot joined #mojo |
| 06:51 |
|
|
Foxcool joined #mojo |
| 06:55 |
|
|
gabriel joined #mojo |
| 07:43 |
|
|
kaare joined #mojo |
| 07:47 |
|
|
kaare_ joined #mojo |
| 08:41 |
|
|
fibo joined #mojo |
| 08:46 |
|
|
mire_ joined #mojo |
| 08:47 |
|
|
spleenjack joined #mojo |
| 09:22 |
|
tempire |
Elraraniel: it's in the Mojolicious::controller docs. |
| 09:22 |
|
tempire |
Also, there's a stackoverflow answer from the past week that demonstrates it. |
| 09:24 |
|
|
pfig joined #mojo |
| 09:25 |
|
sri |
not to mention a list thread by the same help vampire |
| 09:25 |
|
|
pfig_ joined #mojo |
| 09:31 |
|
|
rwstauner joined #mojo |
| 09:47 |
|
sri |
http://oylenshpeegul.typepad.c[…]ynchronicity.html # good first comment |
| 09:50 |
|
sri |
the original Mojo::UserAgent example is completely broken |
| 09:55 |
|
sri |
not to mention that the whole benchmark is total bullshit ;p |
| 09:55 |
|
sri |
even the anyevent example jumps between 3 and 8 seconds here |
| 09:58 |
|
sri |
but i'm the bad guy if i call them out on it... idiocracy |
| 10:12 |
|
|
batman joined #mojo |
| 10:19 |
|
|
mire_ joined #mojo |
| 10:36 |
|
trone |
idiocracy++ # http://www.imdb.com/title/tt0387808/ :-P |
| 10:36 |
|
|
Elraraniel joined #mojo |
| 10:52 |
|
sri |
http://coolio.github.com/ # this seems a lot more popular than Rev |
| 11:01 |
|
sri |
still nowhere near eventmachine though, kinda strange |
| 11:07 |
|
|
Foxcool joined #mojo |
| 12:31 |
|
|
inokenty joined #mojo |
| 13:02 |
|
|
ispy_ joined #mojo |
| 13:16 |
|
|
ispy_ joined #mojo |
| 13:17 |
|
|
pfig joined #mojo |
| 13:18 |
|
|
pfig_ joined #mojo |
| 14:01 |
|
marcus |
sri: the only useful thing about the benchmark is proving that the mojo example is broken. |
| 14:08 |
|
marcus |
sri: managed to upgrade my phone via itunes btw. |
| 14:56 |
|
|
baton8 joined #mojo |
| 15:39 |
|
|
Elraraniel1 joined #mojo |
| 15:45 |
|
|
Psyche^ joined #mojo |
| 15:48 |
|
|
Jeffrey_Fuller joined #mojo |
| 15:50 |
|
Jeffrey_Fuller |
Hey guys, I have hopefully a quick question. I'm working on a Mojo::UserAgent script, and while I work on setting up the parsing rules I'd like to pull in the source from a local file rather than hitting the webserver every time since it takes several seconds to return. Is there a way to do that? |
| 16:08 |
|
sri |
marcus: update server is still not reachable here :/ |
| 16:11 |
|
|
batman joined #mojo |
| 16:11 |
|
batman |
hi |
| 16:11 |
|
batman |
i got multiple text_field()s on my page with the same name |
| 16:12 |
|
batman |
is there a good way to make them display the right value? |
| 16:12 |
|
batman |
something like <input name="foo" value="<%= (param 'foo')[0] %>"><input name="foo" value="<%= (param 'foo')[1] %>"> |
| 16:12 |
|
batman |
or is that a manuall job? |
| 16:27 |
|
|
JonChisciotte joined #mojo |
| 16:43 |
|
|
GitHub114 joined #mojo |
| 16:43 |
|
GitHub114 |
[mojo] kraih pushed 1 new commit to master: http://git.io/DjWTfA |
| 16:43 |
|
GitHub114 |
[mojo/master] simplify WebSocket upgrade a little - Sebastian Riedel |
| 16:43 |
|
|
GitHub114 left #mojo |
| 17:02 |
|
|
xaka joined #mojo |
| 17:25 |
|
|
preflex_ joined #mojo |
| 17:25 |
|
|
ispy_ joined #mojo |
| 17:31 |
|
|
d4rkie joined #mojo |
| 17:43 |
|
|
ispy_ joined #mojo |
| 17:57 |
|
|
mire_ joined #mojo |
| 18:01 |
|
|
ispy_ joined #mojo |
| 18:11 |
|
JonChisciotte |
Hi, could you please suggest me a doc or how to create a route that matches a normal url like "step1/step2/…/stepN/file.(html|json|xml) ? I don't need each step to be in some sort of array, I can post process them, so I've tried to use a wildcard placeholder but then I miss the format… tnx! |
| 18:21 |
|
|
vel joined #mojo |
| 18:54 |
|
|
mattastrophe joined #mojo |
| 19:04 |
|
Elraraniel1 |
If a single client sends many WebSocket messages, are they processed serially or in parallel? |
| 19:41 |
|
|
tabbi joined #mojo |
| 19:42 |
|
|
tabbi left #mojo |
| 19:48 |
|
marcus |
Elraraniel1: depends if they hit the same hypnotoad process, I suppose. within one ioloop, the callback will be processed before the ioloop runs further callbacks. |
| 19:49 |
|
Elraraniel1 |
marcus: Is there a sane way to queue callbacks so they run in order? I have one particular route that needs to run in-order. |
| 19:49 |
|
marcus |
Elraraniel1: now that I think of it, of course they will run in order, since you have an open connection to an ioloop |
| 19:50 |
|
Elraraniel1 |
marcus: roger. I am syncronizing a large data object with client/server in one case, so I send diffs of the object to update. It'd be bad if that those updates were not FIFO :) |
| 19:51 |
|
* marcus |
waits for sri to tell him he's on crack. |
| 19:52 |
|
* Elraraniel1 |
smokes crack. |
| 19:55 |
|
cstamas |
hi |
| 19:55 |
|
purl |
niihau, cstamas. |
| 19:55 |
|
cstamas |
:) |
| 19:56 |
|
cstamas |
I have a templating question |
| 19:56 |
|
cstamas |
I need to construct a table |
| 19:56 |
|
cstamas |
each row has multiple options |
| 19:57 |
|
cstamas |
(select) |
| 19:57 |
|
cstamas |
I have to do multiple rows |
| 19:57 |
|
cstamas |
I can do this with ep, but it becames messy very fast |
| 19:57 |
|
cstamas |
what do you suggest? |
| 20:05 |
|
|
bobkare joined #mojo |
| 20:08 |
|
cstamas |
I am talking about something like this http://pastebin.com/6xA4wzBj |
| 20:08 |
|
cstamas |
thx |
| 20:12 |
|
|
klhughes joined #mojo |
| 20:23 |
|
cstamas |
reusable blocks seems to be the thing |
| 20:24 |
|
marcus |
cstamas: either that or helpers |
| 20:26 |
|
cstamas |
marcus: I do not see how helpers would fit but reusable blocks seems to be ok |
| 20:31 |
|
|
ispy_ joined #mojo |
| 20:44 |
|
|
bobkare joined #mojo |
| 21:04 |
|
marcus |
cstamas: as long as you're happy =) |
| 21:05 |
|
|
newbie joined #mojo |
| 21:05 |
|
marcus |
JonChisciotte: I'm not sure I understand your question. |
| 21:06 |
|
marcus |
JonChisciotte: mojolicio.us/perldoc/Mojolicious/Guides/Routing is the best reference on how routing works in Mojolicious. |
| 21:06 |
|
Elraraniel1 |
Why does "$self->session(user => $username);" work but "$self->session(username => $username);" does not? More specifically, how can I store arbitrary data in my session cookie? |
| 21:10 |
|
Elraraniel1 |
Further, why to the $session->store($c) and load() functions seem to only take single variables? |
| 21:10 |
|
Elraraniel1 |
*why do |
| 21:10 |
|
JonChisciotte |
marcus: thank you, I've already read it but or I missed something or there isn't the answer; I just want to get from an url like this "http://domain.ext/category/subcategory/file.html" the "category/subcategory/file.html" and the stash's format value. With the rule: $r->route('/(*url)')->any()->to('Pages#getByPath') the stash format value is empty… |
| 21:10 |
|
marcus |
Elraraniel1: those two seem to be the same. |
| 21:10 |
|
Elraraniel1 |
marcus: the "user => $username" works but the "username => $username" does not. |
| 21:11 |
|
marcus |
Elraraniel1: you could store and data structure that is serializable to a json struct in your session cookie. |
| 21:11 |
|
marcus |
Elraraniel1: that seems unlikely. |
| 21:11 |
|
Elraraniel1 |
marcus: let me double check then, it has been throwing a lot of "not a reference to code" errors. |
| 21:12 |
|
marcus |
JonChisciotte: why not just ('/:category/:subcategory/:file') ? |
| 21:13 |
|
Elraraniel1 |
marcus: I may be asking the wrong question. I'm looking to implement authentication with a session. The examples I'm going through use POST data instead, which does not stick around through multiple requests. Is there a better way to do what I'm doing? |
| 21:13 |
|
JonChisciotte |
marcus: because I cannot predict the number of cat and subcat |
| 21:14 |
|
marcus |
JonChisciotte: '*(cat)/:file' ? |
| 21:14 |
|
marcus |
(*cat) even |
| 21:14 |
|
JonChisciotte |
marcus: maybe it's not mojolicious-route-friendly, but I just need to map some url to some filesystem directory... I'm gonna try it now |
| 21:14 |
|
marcus |
JonChisciotte: you can see the regex your routes compile down to by doing ./script/myapp routes |
| 21:15 |
|
marcus |
Elraraniel1: no, a uid in a session is the sensible way to do that. |
| 21:15 |
|
marcus |
Elraraniel1: note that you should keep your sessions slim, since mojo stores the session data in a signed cookie. |
| 21:15 |
|
marcus |
so it will be included in every request. |
| 21:16 |
|
marcus |
JonChisciotte: the reason the format is empty with your attempt is that your route also matches the '.html' part |
| 21:17 |
|
JonChisciotte |
marcus: right |
| 21:20 |
|
JonChisciotte |
marcus: (*cat)/:file it's ok but must exist a cat, maybe it's enough to add another rule for files without cat, but is ther a way to set a conditional value in the route or should handle this with "add_condition"? |
| 21:20 |
|
marcus |
JonChisciotte: I think the simplest thing here is to add another route. |
| 21:21 |
|
JonChisciotte |
marcus: ok, thanks! |
| 21:26 |
|
marcus |
JonChisciotte: you're welcome. |
| 21:49 |
|
|
ispy_ joined #mojo |
| 22:09 |
|
|
azzid left #mojo |
| 22:30 |
|
|
ispy_ joined #mojo |
| 22:35 |
|
|
jnap joined #mojo |