You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
(57) |
May
(287) |
Jun
(166) |
Jul
(286) |
Aug
(273) |
Sep
(254) |
Oct
(144) |
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Alex B. <en...@tu...> - 2001-07-06 20:09:16
|
> This has to do with general modules that must access > someplace/resources in the DOCUMENT_ROOT for a nice, > say, standard button image. > > So, for site-specific, never-to-be-used-anywhere-else > modules, these are put in the "package" > ./user/mod/sitemame. > > For general, can-be-used-anywhere modules, these are > put in the "package" > ./user/mod/lib > > Now, up in the document root, one way of organization > is: > > DOC_ROOT > /site-one > /resources > /site-two > /resources > /site-three > /resources > /resources > > This allows references to resources that are site-specific > to be, say, "./resources/images/some-image.gif". > > For general modules, references to resources are then, > say, "../resources/js/my_js_lib.js". This allows a > general module to be used in any site, and that general > module to find its resources IN ONE PLACE. Otherwise, > any general module that required resources would have > to have a copy of the resource IN EACH of the sites > resources sub-directory. Or, you can use a path constant to find the root path for /resources/ I prefer just to ensure that my sites start at document root, so I don't have to deal with that kind of crap :) But, for portability, the best way to do it is with a path constant. because, what if you have /site_name/foo/page.php that prints: <img src="../resources/images/foo/moo.gif"> then you have a broken image ref. whereas if the module prints: <img src="/path/to/resources/from/doc_root/resources/images/foo/moo.gif"> than you're ok. also, note that "resources" is not a mandated binarycloud thing - it's just the way I like to organize me public resource files like images, js libs, and css. so you can have /images/ /css/ etc in your own modules. I probably _will_ request that people keep images in separate folders within /resources/ if they want to distribute modules with the binarycloud distro, just for simplicity and clarity. > I think that you agree that if you have a set of general > modules, you do not want to have to put their resources > in each of the site resources. There would be filename > clashes, if you changed a general javascript library, you > would have to copy it to each site's resources. Right, pain in the ass. > OK, so with this generalization in mind, and considering > our previous discussions about having site modules live > at the same level as ./user/ in binarycloud tree, I > looked to what you had done in the latest CVS/tarball. > > For your images, you have: > > ./r2/binarycloud/build/en/htdocs/resources/images/binarycloud/. > under which you have subdirectories for buttons, titles, > templates, et cetera. Thus, I notice that you have this > distinction of "site-name" UNDERNEATH images to isolate > site-specific images. Although you did not do it for > the ./js/* resources or the ./css/* resources, I glean > that you are thinking to have ONLY ONE resources directory > up in the document root, and to isolate site-specific from > general resources, make subdirectorys down in the single > instance of the ./resources directory. That was my thinking, yes. > Technically, there is nothing at all wrong with this, I > could adapt to this way for my use-anywhere modules by > establishing a sub-directory under images called "general". > But, this means that any general module would have to refer > to an image as: > > ../resources/images/general/image-name.gif > > and any site-specific-module would use: > > ../resources/images/site-name/image-name.gif yes. or I suppose you could have resources/site_name/images/ css/ js/ > I realize you cannot enforce this policy, I can merely > change the resources to the way I like it, which seems > cleaner, has the site-specific resources under that > site's virtual host root. BUT I think this is a bit > of wrong-headedness to have site-specific modules > to have to go traverse OUTSIDE its virtual host > root. I see the point. Is there anything wrong with using a symlink in this case? That's nice and clean, and allows you to have any other "you-specific" image, css, etc directories within your own vhosts, however you like doing it. > So, after all this long-windedness, my motive is to > endeavor to establish some conventions that are agreed > upon, apriori, for exchange of general modules and > do not necessarily require editing, or putting those > general modules required resources in different > places than what the contributing author did. I totally agree. > I find it ironic that you distinguished site-specific > resources DOWNSTREAM and site-specific modules > UPSTREAM, if you get what I mean. > > In any case, I wish to bring this to everybody's > attention. I am so enthusiastic about binarycloud > that I hope that the exchange of modules will be > such that I don't even have to edit contributions > because things are always found in "standard places". > I would entertain any comments this group has that > are a result of their experience. Again, I agree there. The organization of resources/ is 100% ad-hoc at this point, I have put no effort into standardization. It appears now would be a good time. > So, Alex, although you cannot enforce policy on this > issue, you are still setting an example (perhaps > unintended) of distinguishing site-specific resources > in a single resources tree DOWNSTREAM, and outside > of a site's virtual host root. Which is not the case (intent to example-set) So, I'll send a separate message to the list re: this with clear options. > Do you have a reason for this in the overall scheme > of things that I am unaware of? Nope :) _a -- alex black, ceo en...@tu... the turing studio, inc. http://www.turingstudio.com vox+510.666.0074 fax+510.666.0093 |
From: Alex B. <en...@tu...> - 2001-07-06 19:59:11
|
hi Jimmy, the below is very old code, and has been made obsolete by the make system. we'll provide a 'shortcut' paths file for a quick install, but real configs will require make. _a > Alex > >> for the distro version of r2, I want to get to the point >> where a user can download the system, untar it, point their >> browser to it, and have a functioning installation. > > This sounds like the best way to do it > >> I'm going to build a very simple little file called >> binarycloud.php which will be included from each page in >> htdocs: include_once('binarycloud.php'); note the >> "pathlessness" - i.e. binarycloud.php will be in your >> include_path. the idea behind this is to set the constant >> BC_PATH before anything else happens, but to avoid using >> prepends, etc to get that working. > > Agree - I don't like using prepend. > >> -does anyone know of a reason why >> $HTTP_SERVER_VARS[DOCUMENT_ROOT] > > DOCUMENT_ROOT doesn't exist in IIS > >> <?php >> $pieces = explode('/', $HTTP_SERVER_VARS[DOCUMENT_ROOT]); >> $count = count($pieces); >> >> $cd_up = 1; >> >> for ($i=1; $i <= $count-$cd_up; $i++) { >> $path .= '/'.$pieces[$i]; >> } >> $path .= '/binarycloud'; > > Why not use dirname() ? > > > > Regards, > Jimmy > > > > _______________________________________________ > binarycloud-dev mailing list > bin...@li... > http://lists.sourceforge.net/lists/listinfo/binarycloud-dev > -- alex black, ceo en...@tu... the turing studio, inc. http://www.turingstudio.com vox+510.666.0074 fax+510.666.0093 |
From: Alex B. <en...@tu...> - 2001-07-06 19:59:08
|
really? oh, that's funny. I'll fix it in a minute. _a > hi alex, > > there is a big problem in cvs source tree... > files in r2/binarycloud/base/core is actually the whole source tree > of bc... > please have a look > > ronald > _________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > > > _______________________________________________ > binarycloud-dev mailing list > bin...@li... > http://lists.sourceforge.net/lists/listinfo/binarycloud-dev > -- alex black, ceo en...@tu... the turing studio, inc. http://www.turingstudio.com vox+510.666.0074 fax+510.666.0093 |
From: Jimmy H. <ji...@ha...> - 2001-07-06 13:27:06
|
Justin, Thanks very much for your help. I tried to boot into linux and tried make, BANG it worked (except that I haven't installed php :-) I think there's something wrong with pk2dir.pl - it doesn't work as it is supposed to be (it works/runs). That is why it echoes '.'. And that's why you can see . In the middle of the path. Next, the build directory is created by install but since the path passed to install was wrong (the dot '.' generated by pk2dir.pl) it didn't create the dir. Now I am still trying to investigate the problem and will keep you folks here posted... By the way I don't suppose there's anyone using FreeBSD around here? Although my web server runs linux, I prefer FreeBSD for a lot of reasons. Cheers Jimmy |
From: Reini U. <ru...@x-...> - 2001-07-06 13:18:55
|
Hi, good stuff! current CVS I had to delete chars (nl, ...) between "?>" and eof in the following files to avoid "header already sent" messages (and for consistency): R:\php\bc\cvs\binarycloud\binarycloud\docs\phpdoc\prepend.php R:\php\bc\cvs\binarycloud\binarycloud\user\conf\defined_constants.conf R:\php\bc\cvs\binarycloud\binarycloud\user\conf\file_permissions.conf R:\php\bc\cvs\binarycloud\binarycloud\core\base\perm\permissions.php R:\php\bc\cvs\binarycloud\binarycloud\core\lib\bread_crumbs_and_tabs.lib R:\php\bc\cvs\binarycloud\binarycloud\core\lib\send_email_class.lib R:\php\bc\cvs\binarycloud\binarycloud\core\lib\smtp.lib R:\php\bc\cvs\binarycloud\binarycloud\core\lib\urlstack.lib R:\php\bc\cvs\binarycloud\binarycloud\core\lib\webalizer.lib -- Reini Urban ru...@r-... 15:09 06.07.2001 http://xarch.tu-graz.ac.at/home/rurban/ win2k/php-4.06/apache-1.3.20 and linux(suse7.0)/php-4.06/apache-1.3.20 |
From: Justin F. <je...@ey...> - 2001-07-06 13:06:58
|
Jimmy Harlindong wrote: > > Justin, > > _scratch, _scratch... :) ================================== Sigh... Jimmy, Ima giv'n up on ya fer the moment. Iam goin' back to a-writin' modules... FWIW, I suggest you should not give up. I may seem like a Cassandra on this list, but I must again reiterate that BC is the best thing going right now, and Jason and I have been looking for some time. You see the need of what, I think, BC has achieved in its vision and conception. YATS (Yet another template system) are springing up like mushrooms all over the Net. Everybody with a little experience in web-page design feels this need, eventually, that there is a better way to get over this original-sin legacy of HTML of mixing content and layout. And everybody gets tired of rewriting the same code over and over and having near-copies of the same thing over and over and one breaks one day while others don't. And for speed of development, even this little toy set of modules I am playing with, and expanding, show that web development time is going to be slashed dramatically. BC is the best conceived, best thought-out system out there. I have said before, even if it stopped now, I would still use it. When the Mythical Managers (I still have to tweak Alex) are added, especially what I think Entity Manager is going to be, then it is going to really add desirable capability. I am exaggerating for effect here, but it is a kind of a "second generation" idiom. Sigh... _jef -- Justin Farnsworth Eye Integrated Communications 321 South Evans - Suite 203 Greenville, NC 27858 | Tel: (252) 353-0722 |
From: Justin F. <je...@ey...> - 2001-07-06 12:27:47
|
Our emails crossed in the night.... Ignore 7:53 post. From what you said, everything should have worked, as far as I can determine. What is "suspicious", er, it's the bloody error, is install: /home/pngia/r2/binarycloud/build/en/user/./conf/conf.php: No such file or directory and the fact you don't even have a ./build directory... Didn't you say that? BUILD_DIR is defined in Makefile.in as BUILD_DIR = $(BC_DIR)/build/$(BC_LANG) and that is why I was suspicious that Makefile.in was not being included. Here is another putter. 1. Save the original Makefile 2. Edit the Makefile a) remove the switch --no-print-directory from both "make" calls thus: (echo "in user";cd 2>/dev/null user && make ;); \ (echo "in base";cd 2>/dev/null base && make ;); \ 3. Do the make, see what you get. Should look something like: ------------------------------------ Building en site in user make[1]: Entering directory `/home/jef/tmp/r2/binarycloud/user' in user/htdocs make[1]: Leaving directory `/home/jef/tmp/r2/binarycloud/user' in base make[1]: Entering directory `/home/jef/tmp/r2/binarycloud/base' in core in bldr in init make[2]: /home/jef/tmp/r2/binarycloud/base/utils/processprepend.php: Command not found make[2]: *** [installprepend] Error 127 in lib in mgr make[1]: Leaving directory `/home/jef/tmp/r2/binarycloud/base' --------------------------------- This will "test" if the make(1) behaviour is the same. Boy, I bet the lurkers on the list are laughing at our discomforture out there.... Do you feel watched???? _scratch|_scratch|_scratch _jef ============ Jimmy Harlindong wrote: > > Justin, > > _scratch, _scratch... :) > > > Uh, oh. BSD... I am a BSD ignoramus. And, if you are > > using the C shell, some of the things I suggested _may_ not > > work. I assumed a Bourne/bash shell... > > I tried on CSH and Bash. The only difference is the way to set the > environment variable. > - Same problem [== snip, snip ==] -- Justin Farnsworth Eye Integrated Communications 321 South Evans - Suite 203 Greenville, NC 27858 | Tel: (252) 353-0722 |
From: Justin F. <je...@ey...> - 2001-07-06 11:53:02
|
Jimmy Harlindong wrote: > a bunch of stuff that things still are not working --------------- Jimmy: If you still are determined to putter along with my suggestions, until a BSD guy comes on the list and straightens you out, you might try this and let me know what happens. 1. Save a copy of the Makefile, i.e. cp Makefile Makefile.org 2. Ditto for Makefile.in, i.e. cp Makefile.in Makefile.in.org 3. In the Makefile, wipe out include Makefile.in 4. Paste in the "guts" of Makefile.in where the include was, from RM=/bin/rm to/including the target .xml.php Then see if it will make. Oh, lordy, I just realized that you would have to do this for every Makefile in the tree that tries to include Makefile.in. What I am suspecting, and what the above would "correct", is that _possibly_ BSD make(1) does not honor the include directive, which is, I think, an extended facility in gnu make(1). I'm outta here. I don't know nuttin' about BSD... I will wish you the best of British Luck, tho. _jef -- Justin Farnsworth Eye Integrated Communications 321 South Evans - Suite 203 Greenville, NC 27858 | Tel: (252) 353-0722 |
From: Jimmy H. <ji...@ha...> - 2001-07-06 11:46:54
|
Justin, _scratch, _scratch... :) > Uh, oh. BSD... I am a BSD ignoramus. And, if you are > using the C shell, some of the things I suggested _may_ not > work. I assumed a Bourne/bash shell... I tried on CSH and Bash. The only difference is the way to set the environment variable. - Same problem > some potential "problems" that I am going out on a limb on, > like I "think" that Odysseas is assuming gnu Make extended > functionality, which BSD make(1)j _may_ not have. Boy, I > just don't know. I believe FreeBSD is using gnumake. > First, the tarball. Yes, it is on the site in "downloads" > and when you see as the URL:http: > //www.binarycloud.com/download/ and mouse over the > binarycloud r2 pre-release downloads you should see: OK that's the one I am using > 1. Get the tarball Done > 2. Do something like make a ./tmp directory in > your home to keep things clean and untar > it there I untarred it to ~/r2/ > 3. Set BCHOME to your_home/tmp/r2/binarycloud > and make the environment and the decendant > shell environment to your_home/tmp/r2/binarycloud > in the way that your shell requires done > 4. Type make Didn't work as reported. > > Caveats: > - I am afraid, but do not know, that the BSD make(1) will > not honor the > include Makefile.in > directive in Makefile It honored it. This is proven that by setting BCHOME it started looking at the BCHOME directory instead of /user > - I am afraid, but do not know, that you will not have a > compiled executable of php on your sustem, and > would have to go get the source (package in BSD??) > and compile it. Building binarydloud assumes > that a php executable is available. I don't > even know if BSD has which(1). What do you get > when you type "which php" on the command line? I have it. I located it and tried running it, it works. > _scratch _scratch _scratch..... :( |
From: Justin F. <je...@ey...> - 2001-07-06 11:23:19
|
Jimmy: Uh, oh. BSD... I am a BSD ignoramus. And, if you are using the C shell, some of the things I suggested _may_ not work. I assumed a Bourne/bash shell... This also brings up some potential "problems" that I am going out on a limb on, like I "think" that Odysseas is assuming gnu Make extended functionality, which BSD make(1)j _may_ not have. Boy, I just don't know. First, the tarball. Yes, it is on the site in "downloads" and when you see as the URL:http: //www.binarycloud.com/download/ and mouse over the binarycloud r2 pre-release downloads you should see: http://www.binarycloud.com/download/files/r2.tar.gz in the status window. That is the tarball you want. You might just keep plugging along until someone on this list can guide you better than me for the BSD environment. Generally: 1. Get the tarball 2. Do something like make a ./tmp directory in your home to keep things clean and untar it there 3. Set BCHOME to your_home/tmp/r2/binarycloud and make the environment and the decendant shell environment to your_home/tmp/r2/binarycloud in the way that your shell requires 4. Type make Caveats: - I am afraid, but do not know, that the BSD make(1) will not honor the include Makefile.in directive in Makefile - I am afraid, but do not know, that you will not have a compiled executable of php on your sustem, and would have to go get the source (package in BSD??) and compile it. Building binarydloud assumes that a php executable is available. I don't even know if BSD has which(1). What do you get when you type "which php" on the command line? _scratch ------------------------------ Jimmy Harlindong wrote: > > Justin, > > I used the one I downloaded from binarycloud.com donwload section <g> > Any hint how to get cvs / tarball (is tarball the one on the web) > version? > > Sorry I am a unix newbie, I am using FreeBSD. > > Thanks very much for your help. I tried your instructions in the > previous email, it is still the same, the only different that I can see > is the shebang line and the LANG=en. > > It now says: > > Building en site > in user > install: /home/pngia/r2/binarycloud/build/en/user/./conf/conf.php: No > such file or directory > install: /home/pngia/r2/binarycloud/build/en/user/./conf/conf.xml: No > such file or directory > > Perhaps my version hasn't got the ./conf ? > > I can't even see a subdirectory called build under r2/binarycloud ! > > Keep scratching head.. :) > > > -----Original Message----- > > From: bin...@li... > > [mailto:bin...@li...] On > > Behalf Of Justin Farnsworth > > Sent: Friday, 6 July 2001 8:17 PM > > To: bin...@li... > > Subject: Re: [binarycloud-dev] Make > > > > > > Jimmy Harlindong wrote: > > > > > > I did that now I got this: > > [== snip, snip ==] > > > > Jimmy: > > > > Hang on a second. Are you starting with the right-now, > > current cvs? Or the cvs of a day or two ago that had > > a missing ./core directory? Or the tarball? > > > > Reference a post made by TAO at 02:35 today, it was > > stated that the current cvs is still rotten. Ales > > made a change to the cvs when it was discovered that > > the ./core was missing. Ronalds says it is still rotten. I > > do not know this for sure, meaning I have not tried it out. > > > > I have: > > > > 1. The tarball > > 2. The cvs snapshot of a couple of days ago (missing core) > > > > Thus, if Ronald TAO is correct, the only proper thing to > > use RIGHT NOW is the tarball > > > > or > > > > the cvs snapshot a couple of days ago and then drop in > > the ./core directory from the tarball. Thus, given > > the situation, ONLY THE TARBALL works right now.... > > > > What did you use? > > > > > > _jef > > > > -- > > Justin Farnsworth > > Eye Integrated Communications > > 321 South Evans - Suite 203 > > Greenville, NC 27858 | Tel: (252) 353-0722 > > > > _______________________________________________ > > binarycloud-dev mailing list bin...@li... > > http://lists.sourceforge.net/lists/listinfo/binarycloud-dev > > > > > > _______________________________________________ > binarycloud-dev mailing list > bin...@li... > http://lists.sourceforge.net/lists/listinfo/binarycloud-dev -- Justin Farnsworth Eye Integrated Communications 321 South Evans - Suite 203 Greenville, NC 27858 | Tel: (252) 353-0722 |
From: Jimmy H. <ji...@ha...> - 2001-07-06 10:27:25
|
Justin, I used the one I downloaded from binarycloud.com donwload section <g> Any hint how to get cvs / tarball (is tarball the one on the web) version? Sorry I am a unix newbie, I am using FreeBSD. Thanks very much for your help. I tried your instructions in the previous email, it is still the same, the only different that I can see is the shebang line and the LANG=en. It now says: Building en site in user install: /home/pngia/r2/binarycloud/build/en/user/./conf/conf.php: No such file or directory install: /home/pngia/r2/binarycloud/build/en/user/./conf/conf.xml: No such file or directory Perhaps my version hasn't got the ./conf ? I can't even see a subdirectory called build under r2/binarycloud ! Keep scratching head.. :) > -----Original Message----- > From: bin...@li... > [mailto:bin...@li...] On > Behalf Of Justin Farnsworth > Sent: Friday, 6 July 2001 8:17 PM > To: bin...@li... > Subject: Re: [binarycloud-dev] Make > > > Jimmy Harlindong wrote: > > > > I did that now I got this: > [== snip, snip ==] > > Jimmy: > > Hang on a second. Are you starting with the right-now, > current cvs? Or the cvs of a day or two ago that had > a missing ./core directory? Or the tarball? > > Reference a post made by TAO at 02:35 today, it was > stated that the current cvs is still rotten. Ales > made a change to the cvs when it was discovered that > the ./core was missing. Ronalds says it is still rotten. I > do not know this for sure, meaning I have not tried it out. > > I have: > > 1. The tarball > 2. The cvs snapshot of a couple of days ago (missing core) > > Thus, if Ronald TAO is correct, the only proper thing to > use RIGHT NOW is the tarball > > or > > the cvs snapshot a couple of days ago and then drop in > the ./core directory from the tarball. Thus, given > the situation, ONLY THE TARBALL works right now.... > > What did you use? > > > _jef > > -- > Justin Farnsworth > Eye Integrated Communications > 321 South Evans - Suite 203 > Greenville, NC 27858 | Tel: (252) 353-0722 > > _______________________________________________ > binarycloud-dev mailing list bin...@li... > http://lists.sourceforge.net/lists/listinfo/binarycloud-dev > > |
From: Justin F. <je...@ey...> - 2001-07-06 10:16:51
|
Jimmy Harlindong wrote: > > I did that now I got this: [== snip, snip ==] Jimmy: Hang on a second. Are you starting with the right-now, current cvs? Or the cvs of a day or two ago that had a missing ./core directory? Or the tarball? Reference a post made by TAO at 02:35 today, it was stated that the current cvs is still rotten. Ales made a change to the cvs when it was discovered that the ./core was missing. Ronalds says it is still rotten. I do not know this for sure, meaning I have not tried it out. I have: 1. The tarball 2. The cvs snapshot of a couple of days ago (missing core) Thus, if Ronald TAO is correct, the only proper thing to use RIGHT NOW is the tarball or the cvs snapshot a couple of days ago and then drop in the ./core directory from the tarball. Thus, given the situation, ONLY THE TARBALL works right now.... What did you use? _jef -- Justin Farnsworth Eye Integrated Communications 321 South Evans - Suite 203 Greenville, NC 27858 | Tel: (252) 353-0722 |
From: Justin F. <je...@ey...> - 2001-07-06 09:58:08
|
Jimmy: Lessee, I may have knee-jerked when I noticed that you did not export your environment. And, from your previous post, I assume that /home/me is really /home/pngia. SO: cd to /home/pngia/r2/binarycloud type: BCHOME=`pwd` make You should see something like Building da site in user in user/htdocs in base in core in bldr in init make[2]: /home/pngia/r2/binarycloud/base/utils/processprepend.php: Command not found make[2]: *** [installprepend] Error 127 in lib in mgr Building en site in user in user/htdocs in base in core in bldr in init make[2]: /home/pngia/r2/binarycloud/base/utils/processprepend.php: Command not found make[2]: *** [installprepend] Error 127 in lib in mgr on the pristine CVS/tarball. 1. To eliminate the building of the da language build, go to your Makefile and edit/force # you could replace this with the list of langs LANGS=`grep code $(USER_DIR)/conf/langs.xml | sed -e 's/^.*<code>//' -e 's/<.*//'` LANGS=en <<== FORCE ENGLISH IF THAT IS WHAT YOU WANT -------------------------- 2. To eliminate the assumption of where the utility processprepend.php finds the PHP self-contained executable, go edit that file's shebang, which now is: #!/usr/local/php4/bin/php -q and change it to where "php" is on your system. I run RedHat 7.1 and it is found at [jef@localhost lib]$ which php /usr/bin/php [jef@localhost lib]$ so, I change the shebang to #!/usr/bin/php -q Then, everything works. Now, there are other issues. I put BC, ultimately, for production, in /usr/local/binarycloud. So, if you start to move things up there, you will have to make again because some self-generated stuff has to change. You will always be safe, in any ultimate build, by that gizmo of using: BCHOME=`pwd` make which causes the environment to have BCHOME "correct" for that command line only, i.e., don't put a semicolon before make, it is one shell command. If the above does not work, we will have to scratch our head(s) again... _jef --------------------------------------------- Jimmy Harlindong wrote: > > I did that now I got this: > > $ make > Building da site > in user > install: /home/pngia/r2/binarycloud/build/da/user/./conf/conf.php: No > such file or directory > install: /home/pngia/r2/binarycloud/build/da/user/./conf/conf.xml: No > such file or directory > ...... > > > -----Original Message----- > > From: bin...@li... > > [mailto:bin...@li...] On > > Behalf Of Justin Farnsworth > > Sent: Friday, 6 July 2001 5:58 PM > > To: bin...@li... > > Subject: Re: [binarycloud-dev] Make > > > > > > Jimmy Harlindong wrote: > > > > > > I tried the following steps: > > > > > > $ SET BCHOME=/home/me/r2/binarycloud > > > $ SET PHPRC=/usr/local/etc > > > $ make > > > grep: /user/conf/langs.xml: No such file or directory > > Building en site > > > in user > > > /base/utils/installcode.sh: not found > > > *** Error code 127 > > > > > > Stop in /usr/home/pngia/r2/binarycloud/user. > > > *** Error code 1 > > > > > > Stop in /usr/home/pngia/r2/binarycloud. > > > > > > >>> Any hint? > > ----------------- > > You forgot to export your environment to any descendant shells. > > > > do: > > > > export BCHOME=/home/me/r2/binarycloud; > > export PHPRC=/usr/local/etc; > > > > or, if you are in the same shell where you typed the > > above, > > > > export BCHOME > > export PHPRC > > > > _jef > > > > _______________________________________________ > binarycloud-dev mailing list > bin...@li... > http://lists.sourceforge.net/lists/listinfo/binarycloud-dev -- Justin Farnsworth Eye Integrated Communications 321 South Evans - Suite 203 Greenville, NC 27858 | Tel: (252) 353-0722 |
From: Justin F. <je...@ey...> - 2001-07-06 09:24:49
|
Alex: I am still in the process of writing a bunch of small modules, as well as some complex ones, and creating several "toy" sites using these modules from different "packages". This is to get used to, and/or discover module inter-communication issues, resource issues, naming convention requirements, et cetera. There is one issue that I have come across that is not a technical problem at all, meaning, we can establish our own conventions here at Eye integrated. However, I am so keen for binarycloud and its potential and the anticipated exchange of modules, that I am always thinking of the implied conventions necessary for the "module exchange bazaar". This has to do with general modules that must access someplace/resources in the DOCUMENT_ROOT for a nice, say, standard button image. So, for site-specific, never-to-be-used-anywhere-else modules, these are put in the "package" ./user/mod/sitemame. For general, can-be-used-anywhere modules, these are put in the "package" ./user/mod/lib Now, up in the document root, one way of organization is: DOC_ROOT /site-one /resources /site-two /resources /site-three /resources /resources This allows references to resources that are site-specific to be, say, "./resources/images/some-image.gif". For general modules, references to resources are then, say, "../resources/js/my_js_lib.js". This allows a general module to be used in any site, and that general module to find its resources IN ONE PLACE. Otherwise, any general module that required resources would have to have a copy of the resource IN EACH of the sites resources sub-directory. I think that you agree that if you have a set of general modules, you do not want to have to put their resources in each of the site resources. There would be filename clashes, if you changed a general javascript library, you would have to copy it to each site's resources. OK, so with this generalization in mind, and considering our previous discussions about having site modules live at the same level as ./user/ in binarycloud tree, I looked to what you had done in the latest CVS/tarball. For your images, you have: ./r2/binarycloud/build/en/htdocs/resources/images/binarycloud/. under which you have subdirectories for buttons, titles, templates, et cetera. Thus, I notice that you have this distinction of "site-name" UNDERNEATH images to isolate site-specific images. Although you did not do it for the ./js/* resources or the ./css/* resources, I glean that you are thinking to have ONLY ONE resources directory up in the document root, and to isolate site-specific from general resources, make subdirectorys down in the single instance of the ./resources directory. Technically, there is nothing at all wrong with this, I could adapt to this way for my use-anywhere modules by establishing a sub-directory under images called "general". But, this means that any general module would have to refer to an image as: ../resources/images/general/image-name.gif and any site-specific-module would use: ../resources/images/site-name/image-name.gif I realize you cannot enforce this policy, I can merely change the resources to the way I like it, which seems cleaner, has the site-specific resources under that site's virtual host root. BUT I think this is a bit of wrong-headedness to have site-specific modules to have to go traverse OUTSIDE its virtual host root. So, after all this long-windedness, my motive is to endeavor to establish some conventions that are agreed upon, apriori, for exchange of general modules and do not necessarily require editing, or putting those general modules required resources in different places than what the contributing author did. I find it ironic that you distinguished site-specific resources DOWNSTREAM and site-specific modules UPSTREAM, if you get what I mean. In any case, I wish to bring this to everybody's attention. I am so enthusiastic about binarycloud that I hope that the exchange of modules will be such that I don't even have to edit contributions because things are always found in "standard places". I would entertain any comments this group has that are a result of their experience. So, Alex, although you cannot enforce policy on this issue, you are still setting an example (perhaps unintended) of distinguishing site-specific resources in a single resources tree DOWNSTREAM, and outside of a site's virtual host root. Do you have a reason for this in the overall scheme of things that I am unaware of? Regards, -- Justin Farnsworth Eye Integrated Communications 321 South Evans - Suite 203 Greenville, NC 27858 | Tel: (252) 353-0722 |
From: Jimmy H. <ji...@ha...> - 2001-07-06 08:38:40
|
I did that now I got this: $ make Building da site in user install: /home/pngia/r2/binarycloud/build/da/user/./conf/conf.php: No such file or directory install: /home/pngia/r2/binarycloud/build/da/user/./conf/conf.xml: No such file or directory ...... > -----Original Message----- > From: bin...@li... > [mailto:bin...@li...] On > Behalf Of Justin Farnsworth > Sent: Friday, 6 July 2001 5:58 PM > To: bin...@li... > Subject: Re: [binarycloud-dev] Make > > > Jimmy Harlindong wrote: > > > > I tried the following steps: > > > > $ SET BCHOME=/home/me/r2/binarycloud > > $ SET PHPRC=/usr/local/etc > > $ make > > grep: /user/conf/langs.xml: No such file or directory > Building en site > > in user > > /base/utils/installcode.sh: not found > > *** Error code 127 > > > > Stop in /usr/home/pngia/r2/binarycloud/user. > > *** Error code 1 > > > > Stop in /usr/home/pngia/r2/binarycloud. > > > > >>> Any hint? > ----------------- > You forgot to export your environment to any descendant shells. > > do: > > export BCHOME=/home/me/r2/binarycloud; > export PHPRC=/usr/local/etc; > > or, if you are in the same shell where you typed the > above, > > export BCHOME > export PHPRC > > _jef > |
From: Justin F. <je...@ey...> - 2001-07-06 07:57:37
|
Jimmy Harlindong wrote: > > I tried the following steps: > > $ SET BCHOME=/home/me/r2/binarycloud > $ SET PHPRC=/usr/local/etc > $ make > grep: /user/conf/langs.xml: No such file or directory > Building en site > in user > /base/utils/installcode.sh: not found > *** Error code 127 > > Stop in /usr/home/pngia/r2/binarycloud/user. > *** Error code 1 > > Stop in /usr/home/pngia/r2/binarycloud. > > >>> Any hint? ----------------- You forgot to export your environment to any descendant shells. do: export BCHOME=/home/me/r2/binarycloud; export PHPRC=/usr/local/etc; or, if you are in the same shell where you typed the above, export BCHOME export PHPRC _jef -- Justin Farnsworth Eye Integrated Communications 321 South Evans - Suite 203 Greenville, NC 27858 | Tel: (252) 353-0722 |
From: TAO R. <ron...@ho...> - 2001-07-06 06:35:19
|
hi alex, there is a big problem in cvs source tree... files in r2/binarycloud/base/core is actually the whole source tree of bc... please have a look ronald _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. |
From: Jimmy H. <ji...@ha...> - 2001-07-06 06:33:13
|
I tried the following steps: $ SET BCHOME=/home/me/r2/binarycloud $ SET PHPRC=/usr/local/etc $ make grep: /user/conf/langs.xml: No such file or directory Building en site in user /base/utils/installcode.sh: not found *** Error code 127 Stop in /usr/home/pngia/r2/binarycloud/user. *** Error code 1 Stop in /usr/home/pngia/r2/binarycloud. >>> Any hint? |
From: Jimmy H. <ji...@ha...> - 2001-07-06 06:29:55
|
Alex > for the distro version of r2, I want to get to the point > where a user can download the system, untar it, point their > browser to it, and have a functioning installation. This sounds like the best way to do it > I'm going to build a very simple little file called > binarycloud.php which will be included from each page in > htdocs: include_once('binarycloud.php'); note the > "pathlessness" - i.e. binarycloud.php will be in your > include_path. the idea behind this is to set the constant > BC_PATH before anything else happens, but to avoid using > prepends, etc to get that working. Agree - I don't like using prepend. > -does anyone know of a reason why > $HTTP_SERVER_VARS[DOCUMENT_ROOT] DOCUMENT_ROOT doesn't exist in IIS > <?php > $pieces = explode('/', $HTTP_SERVER_VARS[DOCUMENT_ROOT]); > $count = count($pieces); > > $cd_up = 1; > > for ($i=1; $i <= $count-$cd_up; $i++) { > $path .= '/'.$pieces[$i]; > } > $path .= '/binarycloud'; Why not use dirname() ? Regards, Jimmy |
From: Alex B. <en...@tu...> - 2001-07-06 01:30:57
|
> Alex, > > I want to create site for a company. They need news, course schedule, > etc. They should be able to go into admin area and update those items > into the database. > > Can r2 at the moment do that? yes, though you would need to build more code for it to work now than you would if you did it later. You would need to write a query library (instead of using entities and querymanager) - and a set of modules for editing. _alex > Thanks > >> -----Original Message----- >> From: bin...@li... >> [mailto:bin...@li...] On >> Behalf Of Alex Black >> Sent: Friday, 6 July 2001 11:02 AM >> To: binarycloud-dev >> Subject: Re: [binarycloud-dev] Can't wait >> >> >> depends on what you need to do. > > > > _______________________________________________ > binarycloud-dev mailing list > bin...@li... > http://lists.sourceforge.net/lists/listinfo/binarycloud-dev > -- alex black, ceo en...@tu... the turing studio, inc. http://www.turingstudio.com vox+510.666.0074 fax+510.666.0093 |
From: Jimmy H. <ji...@ha...> - 2001-07-06 01:19:23
|
Alex, I want to create site for a company. They need news, course schedule, etc. They should be able to go into admin area and update those items into the database. Can r2 at the moment do that? Thanks > -----Original Message----- > From: bin...@li... > [mailto:bin...@li...] On > Behalf Of Alex Black > Sent: Friday, 6 July 2001 11:02 AM > To: binarycloud-dev > Subject: Re: [binarycloud-dev] Can't wait > > > depends on what you need to do. |
From: Alex B. <en...@tu...> - 2001-07-06 01:06:58
|
>> Or first thought was to rename ./core/ to ./bccore/. >> Just a thought. Anybody else feel this way for my reasons, >> or other "administrative" reasons. > > Hmm, I think that makes everything messy and adds redundant information to > the structure. If bc core is renamed, consequently init has to be renamed to > bcinit and lib to bclib and... and.. and... > We have that information already in the direcory structure "binarycloud/*". > I like the name "core" caus it is descriptive and simple. But, I see the > problem of bad written scripts that may interpret core/ as a core dump. For > bc scripts this should not be a problem ;) What cvs concerns it can be > overwritten. As far as i remember core is a default cvsignore. yes, it's only a matter of doing a second import for me - I can automate all that with a shell script anyway. which I just did :) _a > My opinion is to leave core/ as is and just be careful with scripts. > > Andi > > > _______________________________________________ > binarycloud-dev mailing list > bin...@li... > http://lists.sourceforge.net/lists/listinfo/binarycloud-dev > -- alex black, ceo en...@tu... the turing studio, inc. http://www.turingstudio.com vox+510.666.0074 fax+510.666.0093 |
From: Alex B. <en...@tu...> - 2001-07-06 01:06:54
|
hi all, I have fixed the stupid cvsignore problem on binarycloud.com cvs, you may check out a complete copy now :) _a -- alex black, ceo en...@tu... the turing studio, inc. http://www.turingstudio.com vox+510.666.0074 fax+510.666.0093 |
From: Alex B. <en...@tu...> - 2001-07-06 01:02:56
|
it's going to stay core :) the current location: binarycloud/base/core/ I think is sufficiently qualified to be clear :) _a > Alex: > > Jason and I were talking this morning about the CVS "problem". > We were kinda thinking what ./core/* should be named, because > we don't like the name "core" too much for a directory. There > are potential problems with, say, a lot of scripts (poorly > written) that go through, say, files systems once a day > and remove anything named "core". > > Or first thought was to rename ./core/ to ./bccore/. > > Just a thought. Anybody else feel this way for my reasons, > or other "administrative" reasons. > > _jef (yes Alex, I stole that underscore idiom from you) > -- alex black, ceo en...@tu... the turing studio, inc. http://www.turingstudio.com vox+510.666.0074 fax+510.666.0093 |
From: Alex B. <en...@tu...> - 2001-07-06 01:00:55
|
depends on what you need to do. page + modules is up and functioning, so you can certainly build pages, though it will be less convenient than in the future. I would call r2 "beta" - as most of the work is in fact integrating already production-quality code. -a > Alex.... Still waiting... > Can I do a site with r2 now or is it still in 'alpha' / preview stage? > > > > _______________________________________________ > binarycloud-dev mailing list > bin...@li... > http://lists.sourceforge.net/lists/listinfo/binarycloud-dev > -- alex black, ceo en...@tu... the turing studio, inc. http://www.turingstudio.com vox+510.666.0074 fax+510.666.0093 |