Re: [PHP] scalable web gallery

2008-07-13 Thread paragasu
oic.. the concept is relatively simple.. thanks for the explaination daniel.. On 7/13/08, Daniel Brown <[EMAIL PROTECTED]> wrote: > On Sat, Jul 12, 2008 at 2:37 PM, tedd <[EMAIL PROTECTED]> wrote: >> >> Hey, let's knock off that old shit, newlywed ! >> >> Just because you finally got laid doesn't

Re: [PHP] OT - RE: [PHP] scalable web gallery

2008-07-12 Thread tedd
At 2:35 PM -0400 7/12/08, Robert Cummings wrote: On Sat, 2008-07-12 at 10:43 -0400, tedd wrote: > Yes, but college degrees are the bill of goods we've been sold. We are lead to believe that if our children (and us) go to colleges and get that sheepskin then everything will be great for the re

Re: [PHP] scalable web gallery

2008-07-12 Thread Daniel Brown
On Sat, Jul 12, 2008 at 2:37 PM, tedd <[EMAIL PROTECTED]> wrote: > > Hey, let's knock off that old shit, newlywed ! > > Just because you finally got laid doesn't mean you can beat me in memory > loss. :-) That's "lei'd", sir. -- Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting

Re: [PHP] scalable web gallery

2008-07-12 Thread Robert Cummings
On Sat, 2008-07-12 at 14:37 -0400, tedd wrote: > At 12:03 PM -0400 7/12/08, Daniel Brown wrote: > >On Fri, Jul 11, 2008 at 10:02 PM, tedd <[EMAIL PROTECTED]> wrote: > >> > >> For example, tedd.gif would compute to 4, whereas Rob.gif would be a > >> meager > >> 3, and Daniel.gif would be a six (w

Re: [PHP] scalable web gallery

2008-07-12 Thread tedd
At 12:03 PM -0400 7/12/08, Daniel Brown wrote: On Fri, Jul 11, 2008 at 10:02 PM, tedd <[EMAIL PROTECTED]> wrote: For example, tedd.gif would compute to 4, whereas Rob.gif would be a meager 3, and Daniel.gif would be a six (which is probably over-rated for him anyway). :-) Hope you did

Re: [PHP] scalable web gallery

2008-07-12 Thread Robert Cummings
On Sat, 2008-07-12 at 12:03 -0400, Daniel Brown wrote: > On Fri, Jul 11, 2008 at 10:02 PM, tedd <[EMAIL PROTECTED]> wrote: > > > > For example, tedd.gif would compute to 4, whereas Rob.gif would be a meager > > 3, and Daniel.gif would be a six (which is probably over-rated for him > > anyway). :-)

Re: [PHP] OT - RE: [PHP] scalable web gallery

2008-07-12 Thread Robert Cummings
On Sat, 2008-07-12 at 10:43 -0400, tedd wrote: > At 9:13 AM -0500 7/12/08, David Giragosian wrote: > > Todd Boyd recently offered: > > > >> Haven't taken a distributed computing class just yet, but I've still got > >> a bit until I graduate, and these elective credits are burning a hole in > >>

Re: [PHP] OT - RE: [PHP] scalable web gallery

2008-07-12 Thread David Giragosian
On 7/12/08, Daniel Brown <[EMAIL PROTECTED]> wrote: > > On Sat, Jul 12, 2008 at 11:36 AM, David Giragosian > <[EMAIL PROTECTED]> wrote: > > > > We had an article in our local paper yesterday about the guy that made > and > > 'starred' in the video that Daniel posted about here a couple of weeks > a

Re: [PHP] scalable web gallery

2008-07-12 Thread Daniel Brown
On Fri, Jul 11, 2008 at 10:02 PM, tedd <[EMAIL PROTECTED]> wrote: > > For example, tedd.gif would compute to 4, whereas Rob.gif would be a meager > 3, and Daniel.gif would be a six (which is probably over-rated for him > anyway). :-) Hope you didn't break a hip while making yourself laugh the

Re: [PHP] OT - RE: [PHP] scalable web gallery

2008-07-12 Thread Daniel Brown
On Sat, Jul 12, 2008 at 11:36 AM, David Giragosian <[EMAIL PROTECTED]> wrote: > > We had an article in our local paper yesterday about the guy that made and > 'starred' in the video that Daniel posted about here a couple of weeks ago > (Matt of 'Where in the World is Matt', fame). That was act

Re: [PHP] OT - RE: [PHP] scalable web gallery

2008-07-12 Thread David Giragosian
On 7/12/08, tedd <[EMAIL PROTECTED]> wrote: > > At 9:13 AM -0500 7/12/08, David Giragosian wrote: > >> Todd Boyd recently offered: >> >> Haven't taken a distributed computing class just yet, but I've still got >>> a bit until I graduate, and these elective credits are burning a hole in >>> my p

Re: [PHP] OT - RE: [PHP] scalable web gallery

2008-07-12 Thread tedd
At 9:13 AM -0500 7/12/08, David Giragosian wrote: Todd Boyd recently offered: Haven't taken a distributed computing class just yet, but I've still got a bit until I graduate, and these elective credits are burning a hole in my pocket... The cost of public colleges and universities, as wel

Re: [PHP] OT - RE: [PHP] scalable web gallery

2008-07-12 Thread David Giragosian
Todd Boyd recently offered: > Haven't taken a distributed computing class just yet, but I've still got > a bit until I graduate, and these elective credits are burning a hole in > my pocket... The cost of public colleges and universities, as well as community colleges, are truly astounding thes

Re: [PHP] scalable web gallery

2008-07-11 Thread tedd
At 8:51 AM +0800 7/12/08, paragasu wrote: > Why not use a hash table based upon the name of the file and distribute files that way? sorry tedd, i don't really get it. but i am interested to know more about the hash table concept. can you explain a little bit more.. paragasu: A hash table is

Re: [PHP] OT - RE: [PHP] scalable web gallery

2008-07-11 Thread tedd
At 7:22 PM -0500 7/11/08, Shawn McKenzie wrote: Jim Lucas wrote: tedd wrote: The only downside of the classroom environment is that I can honestly learn more from this group et al than I can in a classroom. I just don't see academia keeping up with technology. By time the instructors prepare

Re: [PHP] scalable web gallery

2008-07-11 Thread paragasu
> Why not use a hash table based upon the name of the file and distribute files > that way? sorry tedd, i don't really get it. but i am interested to know more about the hash table concept. can you explain a little bit more.. thanks.. On 7/11/08, tedd <[EMAIL PROTECTED]> wrote: > At 10:41 AM -0

Re: [PHP] OT - RE: [PHP] scalable web gallery

2008-07-11 Thread Jim Lucas
Shawn McKenzie wrote: Jim Lucas wrote: tedd wrote: The only downside of the classroom environment is that I can honestly learn more from this group et al than I can in a classroom. I just don't see academia keeping up with technology. By time the instructors prepare their class-notes, their c

Re: [PHP] OT - RE: [PHP] scalable web gallery

2008-07-11 Thread Shawn McKenzie
Jim Lucas wrote: tedd wrote: The only downside of the classroom environment is that I can honestly learn more from this group et al than I can in a classroom. I just don't see academia keeping up with technology. By time the instructors prepare their class-notes, their class-notes are outdated

Re: [PHP] OT - RE: [PHP] scalable web gallery

2008-07-11 Thread Jim Lucas
tedd wrote: The only downside of the classroom environment is that I can honestly learn more from this group et al than I can in a classroom. I just don't see academia keeping up with technology. By time the instructors prepare their class-notes, their class-notes are outdated -- or so is my p

RE: [PHP] OT - RE: [PHP] scalable web gallery

2008-07-11 Thread tedd
At 5:01 PM -0500 7/11/08, Boyd, Todd M. wrote: Don't get me wrong--I enjoyed the class very much. I had never seen sorting algorithms outside of the Bubble Sort, so learning Pivot, Shell, etc. was quite a blast. I used to hang with a bunch of Macintosh software developers. It was brought to di

RE: [PHP] OT - RE: [PHP] scalable web gallery

2008-07-11 Thread Boyd, Todd M.
> -Original Message- > From: Robert Cummings [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 10, 2008 11:31 PM > To: Boyd, Todd M. > Cc: php-general@lists.php.net > Subject: RE: [PHP] OT - RE: [PHP] scalable web gallery > > On Thu, 2008-07-10 at 12:06 -0

Re: [PHP] scalable web gallery

2008-07-11 Thread tedd
At 10:41 AM -0400 7/10/08, Daniel Brown wrote: Still, I'd create 16 subdirectories under the images directory: 0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f. Then name the file as an MD5 hash of the image uploaded, and place it in the directory matching the first character of the new file name. Why not

RE: [PHP] OT - RE: [PHP] scalable web gallery

2008-07-11 Thread tedd
At 12:31 AM -0400 7/11/08, Robert Cummings wrote: On Thu, 2008-07-10 at 12:06 -0500, Boyd, Todd M. wrote: > tedd also sent me an e-mail that sparked a memory of mine... the b-trees, regardless of their efficiency, still assign each dir/file INode an identifying number. This number, obviously,

Re: [PHP] scalable web gallery

2008-07-10 Thread paragasu
> As long as all the servers use the > same physical path, then it's a no brainer. well, for now, it might look no brainer. but in the future, i can move the images to another servers with few changes on dns configurations (i think so).. On 7/11/08, Robert Cummings <[EMAIL PROTECTED]> wrote: > On

Re: [PHP] scalable web gallery

2008-07-10 Thread Robert Cummings
On Fri, 2008-07-11 at 07:55 +0800, paragasu wrote: > what Robert suggest, is something exactly what the big-big photos > gallery out there used > to store their image. Distributing the image into many servers. But i > am not very sure, how > they store the image location information inside the dat

RE: [PHP] OT - RE: [PHP] scalable web gallery

2008-07-10 Thread Robert Cummings
t: Re: [PHP] OT - RE: [PHP] scalable web gallery > > > > On Thu, 2008-07-10 at 10:18 -0500, Boyd, Todd M. wrote: > > > > -Original Message- > > > > From: Daniel Brown [mailto:[EMAIL PROTECTED] > > > > Sent: Thursday, July 10, 2008 9:42 AM

Re: [PHP] scalable web gallery

2008-07-10 Thread paragasu
what Robert suggest, is something exactly what the big-big photos gallery out there used to store their image. Distributing the image into many servers. But i am not very sure, how they store the image location information inside the database. But i like the idea of using imageUId to determine wh

RE: [PHP] OT - RE: [PHP] scalable web gallery

2008-07-10 Thread Boyd, Todd M.
> -Original Message- > From: Robert Cummings [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 10, 2008 11:24 AM > To: Boyd, Todd M. > Cc: Daniel Brown; php-general@lists.php.net > Subject: Re: [PHP] OT - RE: [PHP] scalable web gallery > > On Thu, 2008-07-10 at 1

Re: [PHP] OT - RE: [PHP] scalable web gallery

2008-07-10 Thread Robert Cummings
On Thu, 2008-07-10 at 10:18 -0500, Boyd, Todd M. wrote: > > -Original Message- > > From: Daniel Brown [mailto:[EMAIL PROTECTED] > > Sent: Thursday, July 10, 2008 9:42 AM > > To: paragasu > > Cc: php-general@lists.php.net > > Subject: Re: [PHP] sca

Re: [PHP] scalable web gallery

2008-07-10 Thread Robert Cummings
On Thu, 2008-07-10 at 15:46 +0800, paragasu wrote: > i am planning to create a web photo gallery. i know there is a lot > available out there, > but i really want to create my own. the problem is not about creating > the photo gallery. > i want it to be scalable. > > the plan is saving the image m

[PHP] OT - RE: [PHP] scalable web gallery

2008-07-10 Thread Boyd, Todd M.
> -Original Message- > From: Daniel Brown [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 10, 2008 9:42 AM > To: paragasu > Cc: php-general@lists.php.net > Subject: Re: [PHP] scalable web gallery ---8<--- snip > And for the record, in the "olden days,&

Re: [PHP] scalable web gallery

2008-07-10 Thread Daniel Brown
On Thu, Jul 10, 2008 at 3:46 AM, paragasu <[EMAIL PROTECTED]> wrote: > > the plan is saving the image metadata in the database and keep the > original files > in a folder. while it work perfectly, i afraid how many files 1 > directory can keep. > in 1 year, there going to be more than 1000 photo up

Re: [PHP] scalable web gallery

2008-07-10 Thread paragasu
Another solution that is better if you are not willing to categorize the images is to divide them by date. You may include a date or date-time field in the database that describes the creation date of the image (or the upload date if you like) and divide the images into directories per month or pe

Re: [PHP] scalable web gallery

2008-07-10 Thread Per Jessen
paragasu wrote: > i am planning to create a web photo gallery. i know there is a lot > available out there, but i really want to create my own. the problem > is not about creating the photo gallery. > i want it to be scalable. The first question is - how scalable? How many photos and how many u

Re: [PHP] scalable web gallery

2008-07-10 Thread Thodoris
O/H paragasu ??: i am planning to create a web photo gallery. i know there is a lot available out there, but i really want to create my own. the problem is not about creating the photo gallery. i want it to be scalable. the plan is saving the image metadata in the database and keep the orig

Re: [PHP] scalable web gallery

2008-07-10 Thread mike
On 7/10/08, paragasu <[EMAIL PROTECTED]> wrote: > i am planning to create a web photo gallery. i know there is a lot > available out there, > but i really want to create my own. the problem is not about creating > the photo gallery. > i want it to be scalable. > > the plan is saving the image metad