shrockworks xterraparts
XOC Decal
Newest Members
Glim, ChossWrangler, Patman, ChargedX, Randy Howerton
10084 Registered Users
Recent Posts
2002 Door Opening Trim
by OffroadX
01/04/24 08:32 PM
XOC Still Lives
by OffroadX
01/04/24 08:31 PM
Shout Box

Who's Online
0 registered (), 38 Guests and 0 Spiders online.
Key: Admin, Global Mod, Mod
Topic Options
Rate This Topic
#442404 - 23/01/06 10:50 AM Cat People?
jorge Offline
Member

Registered: 27/11/00
Posts: 1147
Loc: Montclair, NJ
I put together a site over the last couple of months, writing mostly while commuting to work.

The idea is simple..people rate which kitten they think is the cutest.

I know, I know, it's been done a billion times before, but it seemed like a nice project.

http://www.kittenfaceoff.com/

At this time, 90% of those photos are taken from openphoto.net (a friend's site), so they have bizarre names because I lack creativity (A cat named Face Foot?)

If you're a nerd, it's written in PHP5 (completely OO), using MySQL 5 (master / slave replication (complete with a sync detection and wait for sync)), Smarty (Templating system), completely CSS (Not one table, anywhere), Imagemagick (thumbnail resizing).

I did something interesting, all binaries are stored on the DB. This way I can load balance the site without needing an NFS mount of anything like that. Instead of reading from the DB every time an image is requested, I wrote a file caching system. So each file is only requested once from the DB.

Also, once every 24 hours I do a complete mysqldump on the slave, so I have a backup of all the data incase of a server crash.

I know it's overkill, but that's what makes a project fun.
_________________________
-Jorge (pronounced hor-hey)

Plethora of photos , videos , a Phlog ,
and a site with kittens .
Sign up for the Nor\'Easter
www.njax.net
NJAX.net profile
--------------------
Homer, I see your daughter is one of those wave-kissing, Dukakis-hugging moon maidens.

Top
#442405 - 26/01/06 07:14 PM Re: Cat People?
jorge Offline
Member

Registered: 27/11/00
Posts: 1147
Loc: Montclair, NJ
Oh, and look at this, an AJAX voting system.

http://kittenfaceoff.com/vote/vote

(Still in testing)
_________________________
-Jorge (pronounced hor-hey)

Plethora of photos , videos , a Phlog ,
and a site with kittens .
Sign up for the Nor\'Easter
www.njax.net
NJAX.net profile
--------------------
Homer, I see your daughter is one of those wave-kissing, Dukakis-hugging moon maidens.

Top
#442406 - 27/01/06 04:47 AM Re: Cat People?
Anonymous
Unregistered


Darn - I was expecting to see those creatures stuffed in a front loading washer when I clicked on the pics.

You actually created a kitty friendly web site - *Good For You*!

and

Great job on the all round site design!

laugh

I know I can look it up...Being lazy...Sooo...What's the maximum binary size limit for MySQL? Think it can handle small mpeg files??

G.

Top
#442407 - 27/01/06 05:02 AM Re: Cat People?
jorge Offline
Member

Registered: 27/11/00
Posts: 1147
Loc: Montclair, NJ
Quote:
Originally posted by Glenn Emery:
You actually created a kitty friendly web site - *Good For You*!
Thanks

Quote:
Originally posted by Glenn Emery:
I know I can look it up...Being lazy...Sooo...What's the maximum binary size limit for MySQL? Think it can handle small mpeg files??
There the limit for the LONG BLOB/TEXT type, it's 2^32 - 1 or 4,294,967,295 bytes.

So yeah, you can put pretty large videos in it.

Some people say it's a bad idea because it's slow relative to reading from the file system. But with a good caching system in place you only need to have the file loaded once from DB.

The best thing about this approach is backup. When I backup the database, all the binaries come too.
_________________________
-Jorge (pronounced hor-hey)

Plethora of photos , videos , a Phlog ,
and a site with kittens .
Sign up for the Nor\'Easter
www.njax.net
NJAX.net profile
--------------------
Homer, I see your daughter is one of those wave-kissing, Dukakis-hugging moon maidens.

Top
#442408 - 28/01/06 08:30 AM Re: Cat People?
MBFlyerfan Offline
Member

Registered: 30/04/01
Posts: 4450
Loc: NJ, Just east of the Walt.
There is already something similar out there. Kitten Wars
_________________________
Chirpa Chirpa Bockala!

Top
#442409 - 28/01/06 10:29 AM Re: Cat People?
jorge Offline
Member

Registered: 27/11/00
Posts: 1147
Loc: Montclair, NJ
Quote:
Originally posted by MBFlyerfan:
There is already something similar out there. Kitten Wars
Read the first post:
Quote:
Originally posted by jorge:
I know, I know, it's been done a billion times before, but it seemed like a nice project.
Just about everything has been done before.
_________________________
-Jorge (pronounced hor-hey)

Plethora of photos , videos , a Phlog ,
and a site with kittens .
Sign up for the Nor\'Easter
www.njax.net
NJAX.net profile
--------------------
Homer, I see your daughter is one of those wave-kissing, Dukakis-hugging moon maidens.

Top
#442410 - 28/01/06 11:19 PM Re: Cat People?
flintstrike Offline
Member

Registered: 10/09/01
Posts: 169
LOL. . . I admit, I was expecting something sick as well, like a bonzaikitten type website. The idea of animal abuse (or child abuse for that matter) sickens me.

I love animals and have two cats myself. Plan to add two dogs as soon as I upgrade to a roomier single family home.

Anyway, your site is very well designed and the cat pictures brought a smile to my face. Excellent job.

Top


Moderator:  Paul H 

shrockworks xterraparts
XOC Decal