Recent Posts
|
16 Jul 2008, 06:40
RyanL (10 posts) |
i will look through and try to back trace the data from the log. Thanks for the tip. It strange, the other data in event will be updated, so its calling the update action. Its so weird. page: event: |
|
16 Jul 2008, 06:05
Christophe Porteneuve (63 posts) |
Well, that’s a way to have it work. I dislike inline event handlers, but they sure work in this case. And just changing the What I don’t really get is why you keep using |
|
16 Jul 2008, 04:36
Ryan Irelan (218 posts) |
BTW, I’m using the BBEdit theme with the Inconsolata font. Some people find it easier to follow along if everything is the same color. :) |
|
16 Jul 2008, 03:25
ramkaka (31 posts) |
Hey, For the new profile, we can request users to add infinite_sessions by setting promptpermission in the form. How do we do this for the old profile? promptpermission does not seem to work for the old profile. Thanks. |
|
16 Jul 2008, 02:09
Eric Wiley (3 posts) |
Excellent. Thanks, Ryan! |
|
16 Jul 2008, 01:00
Alain O'Dea (41 posts) |
(from Erlang in Practice > How do I get EUnit?)
I solved this by going into Terminal and typing the following: cd eunit make cd .. sudo mv eunit /opt/local/lib/erlang/lib/eunit-2.0b1 After this EUnit was available for me to continue Episode 5. Dropping a library folder — like |
|
16 Jul 2008, 00:30
Alain O'Dea (41 posts) |
analyze(N) ->
if
N rem 15 == 0 ->
fizzbuzz;
N rem 5 == 0 ->
buzz;
N rem 3 == 0 ->
fizz;
true ->
N
end.
analyze(N) when N rem 3 =:= 0 andalso N rem 5 =:= 0 -> fizzbuzz; analyze(N) when N rem 3 =:= 0 -> fizz; analyze(N) when N rem 5 =:= 0 -> buzz; analyze(N) -> N.
generate_sequence(Pid, N) ->
case is_number(N) of
false ->
exit({badarg, N});
true ->
Pid ! {generate, self(), N},
receive
{ok, Result} ->
Result
after 1000 ->
{error, timeout}
end
end.
generate_sequence(Pid, N) when is_integer(N) ->
Pid ! {generate, self(), N},
receive
{ok, Result} ->
Result
after 1000 ->
{error, timeout}
end;
generate_sequence(_, N) -> exit({badarg, N}).
generate_fizzbuzz_list(N) -> generate_fizzbuzz_list(1, N, []). generate_fizzbuzz_list(Pos, N, Accum) when Pos =< N -> generate_fizzbuzz_list(Pos + 1, N, lists:append(Accum, [analyze(Pos)])); generate_fizzbuzz_list(Pos, N, Accum) when Pos > N-> Accum.
generate_fizzbuzz_list(N) -> [analyze(Value) || Value <- lists:seq(1, N)]. What do you think? |
|
15 Jul 2008, 23:54
Ryan Bates (60 posts) |
The HTML looks correct. Are you certain the page model is behaving correctly? It’s very strange one model would behave differently than another. There must be some difference between the two. If you problem is with what is being saved to the database on edit, then start at the database SQL query which saves the attachment and work your way back. Check your log to see what queries and parameters are being sent in the request. And put “logger.debug …” tracers in your app to see if you are getting the file attachment data. This way you can find out exactly where the attachment file data is getting lost which should narrow down your problem. |
|
15 Jul 2008, 22:25
Ryan Irelan (218 posts) |
Hey, Eric. Thanks for the message and I’m glad you’re enjoying the series! I’m using a custom EE bundle to make the code highlight (and for shortcuts). You can get it here: |
|
15 Jul 2008, 21:52
Steve Sanders (1 post) |
I am looking for options for file sharing at my web site. I would like something similar to the file sharing solution at http://www.9dx.com but I am looking for something that is free. I don’t care about web site design, I’m interested in file uploading. I need a way for people to submit art work to me which I can then evaluate and post on my web site. Some of the art can be rather large, more than 20 megabytes. If anyone can recommend a solution or has experience with a solution I would be very appreciative. |
