« shawn's code | Main | class 08 »

March 11, 2005

class 07

database holds the comment

lastest comment is an interesting idea

relationship of information that builds the community
what does the user get and admin get.


laundry list: news.yahoo.com

email:

send message-

perl talk to send mail... works only with UNIX

perl talk to SMTP -> net::SMTP

sendmail is on the box; SMTP is a trusted machine on the net somewhere.

receiving-

perl talks with pop3 -> net::POP... and many others mail::box....

CPAN is your friend some simple code line for how a module is using.

local folder can be a place for modules

get subject line.... example

token to get text out of the message

using a variable get you around various characters which might effect perls actions.


file

< read a file
>. write
>> append

-s for the size
-e if a file exists

encoding-
type: multipart/mixed


cut and paste can be used from CPAN

friendster model

The Main Concept
Friendster.com is a social networking site developed by Jonathan Abrams with the intention of creating the largest on-line house party - everyone at the party is a "friend of a friend" - which is a common way for people to meet in the real world. Thus, the site is only as interesting as the number of "friends" who agree to sign up. Friendster has already reached that tipping point as over 1.5 million people have signed up just in the past two and a half months. By allowing users to see friends of friends, you can create a somewhat "trusted" social network within which an individual can socialize through messages, photos, match suggestions, introductions, etc. The number of people you have access to is directly proportional to the number of friends you have. From a technical standpoint, some of the main features include:

* Session Management
Like any site with user accounts, Friendster uses session management to uniquely identify a user. One can only edit their profile, photos, friends, etc if they have successfully logged into the site. Once they are logged in, relevant info such as their user ID is stored in the session. Friendster also allows the "Save My Password Info" feature. In this case, extra information is set in the cookie on the user's computer which allows them to "auto-login".

* Creating, Updating, and Display of User Profile
#

One of the main things to do on Friendster is to tell other user's about yourself if they happen upon your name. This is done in one's profile. Users fill out an HTML form, and the information is saved in the Friendster database.

In the database, once can imagine that there is a member_profile table where this information is stored, along with a foreign key, "member_id", which matches a particular profile with a particular member. When someone else goes to look at a user's profile, this information is accessed and formatted for easy reading by the interested person.

for the rest below go to class 07 notes:

* Creating, Deleting, and Display of Friends
* Creating, Deleting, and Display of Testimonials
* Creating, Deleting, and Display of Messages
* Uploading and Deleting of Images
* Connection Determination
* Filterable Display of Users in Social Network
* E-Mail Notification


friends waiting for approval

TABLELAND!!!!! (kekeke)

table linking to direct the infomation in a better way. but in my case there are just a few. Friendster has tooo much stuff going on.

remember the file find widget... looks in to the hard drive to find a file and links in into the code for upload ing and such... (see class05 and 06)


ahhhhhh friends of friends see the connections.

Posted by dimitri at March 11, 2005 09:33 AM

Comments

Post a comment




Remember Me?