| Author |
Message |
|
| Guest |
Posted: Mon Sep 17, 2007 12:56 am |
|
|
|
Guest
|
Unless someone else sees a problem I've overlooked, I think it's fine.
Thanks again,
Yariv
On 9/16/07, Ghalib Suleiman <cowmoo@gmail.com> wrote:
>
> Heh, yes, I also thought "why would anyone do that", but strange
> things do happen in the world of computers...Anyway, if you're fine
> with things as they are, then that's that.
>
> On Sep 16, 11:07 pm, "Yariv Sadan" <yarivsa...@gmail.com> wrote:
> > I don't think this patch would cause a problem. This place in the code
> > only checks if the file is under "src/components" as erlyweb_compile
> > traverses the app's "src" directory. The only way a problem could
> > arise is if you created another subdirectory, e.g. "src/ComPoNents",
> > which isn't supposed to contain component files. But why would anyone
> > do that?
> >
> > On 9/16/07, Ghalib Suleiman <cow...@gmail.com> wrote:
> >
> >
> >
> > > Yariv, David raises a valid point that I had suspected (cheers
> > > David). I will try to cook up something better.
> >
> > > -Ghalib
> >
> > > On Sep 16, 10:46 pm, "Yariv Sadan" <yarivsa...@gmail.com> wrote:
> > > > I committed the fix. Let me know if there are any other problems.
> >
> > > > Thanks,
> > > > Yariv
> >
> > > > On 9/16/07, Ghalib Suleiman <cow...@gmail.com> wrote:
> >
> > > > > Hi Yariv, I found the bug (you were right as to its location, thanks
> > > > > for the pointers).
> >
> > > > > The problem occurs if the argument to erlyweb:compile() contains an
> > > > > uppercase drive letter, e.g. erlyweb:compile("C:/blah/hello"). The
> > > > > filenames processed by the call to filelib:fold_files() on line 87 all
> > > > > have a lowercase drive letter, and so the call to lists:prefix() on
> > > > > line 311 will produce false, as you're comparing the ascii value for
> > > > > 'C' vs. 'c'. So, I suppose a case-insensitive compare is called for.
> > > > > Here's a tiny patch that was tested on both Windows and OS X (not sure
> > > > > if this is the best solution - are there any filesystems that allow
> > > > > e.g. Foo and foo as distinct directory names?):
> >
> > > > > --- /usr/local/lib/erlang/lib/erlyweb-0.6.2/src/erlyweb/
> > > > > erlyweb_compile.erl 2007-09-06 14:40:45.000000000 +0400
> > > > > +++ erlyweb-0.6.2/src/erlyweb/erlyweb_compile.erl 2007-09-16
> > > > > 15:29:32.000000000 +0400
> > > > > @@ -308,7 +308,7 @@
> > > > > Extension = filename:extension(FileName),
> > > > > BaseNameTokens = string:tokens(BaseName, "_"),
> >
> > > > > - Type = case lists:prefix(ComponentsDir, FileName) of
> > > > > + Type = case lists:prefix(string:to_lower(ComponentsDir),
> > > > > string:to_lower(FileName)) of
> > > > > true ->
> > > > > case lists:last(BaseNameTokens) of
> > > > > "controller" -> controller;
> >
> > > > > >Yariv Sadan wrote:
> > > > > > make_app_data_module() (line 147) is the function that creates the
> > > > > > components() function in the 'yourapp_erlyweb_data' module. However,
> > > > > > compile_component_file() (line 305) is where controllers are
> > > > > > recognized and entered into the tree of components that is then
> > > > > > embedded in 'yourapp_erlyweb_data'. I bet the bug is somewhere in the
> > > > > > beginning of compile_component_file().
> >
> > > > > > Yariv
> >
> > > > > > On 9/10/07, Ghalib Suleiman <cow...@gmail.com> wrote:
> >
> > > > > > > Hi Yariv - would you mind letting me know vaguely where in
> > > > > > > erlyweb_compile.erl components are registered? I want to try and debug
> > > > > > > this (as mentioned above, the compile step in isolation works ok
> > > > > > > - .beam files are produced).
> >
> > > > > > > Thanks.
> >
> > > > > > > -Ghalib
> >
> > > > > > > On Sep 10, 7:14 am, "Yariv Sadan" <yarivsa...@gmail.com> wrote:
> > > > > > > > I'm pretty helpless on fixing this issue right now. It would be great
> > > > > > > > if someone with a Windows machine could debug it and submit a fix.
> >
> > > > > > > > Yariv
> >
> > > > > > > > On 9/9/07, Fredrik Sjunnesson <Fredrik.Sjunnes...@acobiaflux.se> wrote:
> >
> > > > > > > > > I just tried to run an erlyweb on windows and I got exactly the same
> > > > > > > > > problems, i.e. it compiles all right but ..._erlyweb_data:components
> > > > > > > > > returns {0,nil}.
> >
> > > > > > > > > The application works well on Linux and both the runtime and the
> > > > > > > > > app_root are installed on paths that doesn't contain any spaces, if that
> > > > > > > > > is of any help.
> >
> > > > > > > > > /Fredrik
> >
> > > > > > > > > -----Original Message-----
> > > > > > > > > From: erlyweb@googlegroups.com [mailto:erlyweb@googlegroups.com] On
> > > > > > > > > Behalf Of Yariv Sadan
> > > > > > > > > Sent: den 6 september 2007 09:10
> > > > > > > > > To: erlyweb@googlegroups.com
> > > > > > > > > Subject: [erlyweb-list] Re: Newbie to erlyweb
> >
> > > > > > > > > Yes, that's bad. It looks like erlyweb:compile() didn't pick up your
> > > > > > > > > controllers. I'm guessing this is a Windows-related problem, but I
> > > > > > > > > can't verify it without a Windows box. Would you mind zipping your
> > > > > > > > > whole app dir and emailing it to me? Also, if someone can verify that
> > > > > > > > > erlyweb:compile() works on windows, it would be great...
> >
> > > > > > > > > Yariv
> >
> > > > > > > > > On 9/5/07, Ghalib Suleiman <cow...@gmail.com> wrote:
> >
> > > > > > > > > > I get {0, nil}. That's probably bad, right?
> >
> > > > > > > > > > On Sep 5, 10:45 am, "Yariv Sadan" <yarivsa...@gmail.com> wrote:
> > > > > > > > > > > Hmm... maybe it's a Windows issue I'm not seeing on the Mac. Is
> > > > > > > > > anyone
> > > > > > > > > > > using ErlyWeb on Windows sucessfully?
> >
> > > > > > > > > > > There's one more thing you can try... In the yaws shell, type
> > > > > > > > > > > 'testapp_erlyweb_data:components().', and let me know what result
> > > > > > > > > > > this function returns.
> >
> > > > > > > > > > > On 9/3/07, Ghalib Suleiman <cow...@gmail.com> wrote:
> >
> > > > > > > > > > > > Still nothing...same effect as erlyweb:compile/1 :-/
> >
> > > > > > > > > > > > On Sep 3, 8:55 pm, "Yariv Sadan" <yarivsa...@gmail.com> wrote:
> > > > > > > > > > > > > Oops, I gave you the wrong instruction. It's
> > > > > > > > > > > > > 'erlyweb:compile("C:/test/testapp", [{auto_compile, true}]).'
> > > > > > > > > (the
> > > > > > > > > > > > > second parameter is a list).
> >
> > > > > > > > > > > > > On 9/3/07, Ghalib Suleiman <cow...@gmail.com> wrote:
> >
> > > > > > > > > > > > > > Setting appmods to <"/", erlyweb> didn't work, same thing. My
> > > > > > > > > > > > > > controller and view files are in the directory you indicated.
> >
> > > > > > > > > > > > > > I tried erlyweb:com pile("c:/test/testapp", {auto_compile,
> > > > > > > > > true})
> > > > > > > > > > > > > > and I got:
> >
> > > > > > > > > > > > > > 1> erlyweb:compile("C:/test/testapp", {auto_compile, true}).
> > > > > > > > > > > > > > ** exited: {function_clause,[{lists,foldl,
> > > > > > > > > > > > > > [#Fun<erlyweb_compile.
> > > > > > > > > > > > > > 0.117977794>,
> > > > > > > > > > > > > > ["C:/test/testapp/src"],
> > > > > > > > > > > > > > {auto_compile,true}]},
> > > > > > > > > > > > > > {erlyweb_compile,compile,2},
> > > > > > > > > > > > > > {erl_eval,do_apply,5},
> > > > > > > > > > > > > > {shell,exprs,6},
> > > > > > > > > > > > > > {shell,eval_loop,3}]} **
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---
Post recived from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Sat Sep 22, 2007 3:09 am |
|
|
|
Guest
|
On Sep 16, 1:52 pm, Ghalib Suleiman <cow...@gmail.com> wrote:
> Hi Yariv, I found the bug (you were right as to its location, thanks
> for the pointers).
>
> The problem occurs if the argument to erlyweb:compile() contains an
> uppercase drive letter, e.g. erlyweb:compile("C:/blah/hello"). The
> filenames processed by the call to filelib:fold_files() on line 87 all
> have a lowercase drive letter, and so the call to lists:prefix() on
> line 311 will produce false, as you're comparing the ascii value for
> 'C' vs. 'c'. So, I suppose a case-insensitive compare is called for.
> Here's a tiny patch that was tested on both Windows and OS X (not sure
> if this is the best solution - are there any filesystems that allow
> e.g. Foo and foo as distinct directory names?):
Yes, most modern file system do thant.
Foo and foo are two distinct directory/file names.
Best if you look if it's MS Windows OS and that file system is such a
beast that don't differ between Foo and foo. Then you should lowercas
all of the path (or do a case-insensitive compare)
Or you should look if FileName start with a singel character and a
":", then change only that character to lower case.
/Jxn
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---
Post recived from mailinglist |
|
|
| Back to top |
|
| wuji |
Posted: Mon Aug 20, 2012 6:26 am |
|
|
|
User
Joined: 10 Aug 2012
Posts: 654
|
the early 1980s.Before the jobs report, there two pieces of of cheap polo shirts of positive employment data this week.Private payroll tracker, ADP, reported
Thursday that the U.S. added 176,000 private jobs in June, June, jordan 6 olympic 2012 June, more than expected, following a revised 136,000 jobs added
May.The number of people seeking U.S. unemployment benefits dropped last last [h3]cheap polo shirts[/h3] last week to the lowest level in six weeks, falling
to 374,000 seasonally adjusted.Brown expected around 100,000 nonfarm payroll jobs jobs [h3]knockoff designer *beep*[/h3] jobs and 115,000 private payroll jobs, seasonally adjusted, were added
June."I think the 'softer' payroll gains we saw in April April jordan 6 olympic 2012 April and May reflected a payback from an unusually mild
which pulled forward job gains that would have normally showed showed cheap polo ralph lauren showed up in the spring," Brown said.Brown expected payroll growth
June to be "somewhat better, but not especially strong" though though cheap polo shirts though the jobs report for June often has "uncertainty" because
the end of the school year and the influx of of imitation designer *beep* of summer jobs.This morning, the Bureau of Labor Statistics reported
seasonally adjusted and non-seasonally adjusted unemployment figures, accounting for temporary temporary jordan 6 temporary summer jobs.Jobs with state and local governments were expected |
|
|
| Back to top |
|
| wuji |
Posted: Mon Aug 20, 2012 8:56 am |
|
|
|
User
Joined: 10 Aug 2012
Posts: 654
|
he was shouting out these numbers -- 500 something. He He [h4]cheap jordans[/h4] He started banging on the cockpit door."A passenger subdued Osbon,
veteran captain, and the flight was diverted safely to Amarillo, Amarillo, cheap designer *beep* Amarillo, Texas. Osbon was later suspended from his duties and
with interfering with flight crew instructionsThe U.S. Attorney's Office did did jordan 6 olympic 2012 did not dispute the psychologist's testimony on July 3 and
federal judge in Texas found Osbon not guilty by reason reason [h2]jordan 6[/h2] reason of insanity."The defendant appeared to suffer from a severe
disease or defect that impaired his ability to appreciate the the [h2]cheap designer *beep*[/h2] the nature, quality or wrongfulness of his behavior," U.S. District
Mary Lous Robinson said last week.Osbon was sent to a a cheap designer *beep* a mental health facility in Fort Worth for additional treatment.Despite
from the airline industry, ABC News has found that large large [h4]cheap Ralph Lauren[/h4] large numbers of pilots have reported for duty every day |
|
|
| Back to top |
|
| wuji |
Posted: Mon Sep 10, 2012 8:47 am |
|
|
|
User
Joined: 10 Aug 2012
Posts: 654
|
said the "investigation is still ongoing" but confirmed facts of the crime crime [h4]replica designer *beep*[/h4] crime detailed in Colon's arrest warrant and obtained by the Miami Herald.According
the Herald, Colon met a friend, Stephany Concepcion, 26, and two two jordan 11 two other men identified only as "Big Killer" and "Crazy Dread" before
to rob Vero, an artist known to keep large amounts of cash cash cheap jordan shoes cash in his home.Conception, Vero's former employee, arrived at his house late
the night of Jan. 6, 2006. From the victim's bathroom, she called called jordan concord called Colon and told him the time was right for the robbery,
to the warrant.Conception said she heard shots fired from the other room. room. jordan 11 concords room. When she ran outside, the other men had driven off and
was alone at the scene when police arrived. She was arrested and and cheap designer *beep* and pleaded guilty to second-degree murder. She was sentenced to 15 years |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|
|