Systematic method of file sharing

This post deals with creating a method that will allow users to download related files in a systematic fashion, e.g. automatically downloaded such as with RSS feeds).

The website contains a list of files that are requested for download. The processes will be explained with an example involving The Sopranos episodes. When the episode is aired or created, a user will attempt to upload it. Users will then download the file and be able to adjust its rating. Note that, several users will be able to upload the same file at the same time. This will allow for switching to valid files. It is negotioable whether users will be able to view all versions of possible tracks. It would be advisible to do so, since users will be able to download and rate higher successful uploads. Instead of listing all the user uploads for a parcticular file, instead, only the first five determined by the rating of the user uploading the file. Users posting a file similiar or with a certain number of positive tracks have their rating also increased.

Users with a high rating are rewarded in the following ways:
given more bandwidth for downloads
more?

Uses:
Download music
Download complete shows
Create communities for particular songs – voting?

apache htaccess and htdigest

Okay, so this evening I noticed I had webalizer installed (http://localhost/usage) and was desperatly concerned when I noticed it was exposed to the entire world. Luckily enough, I was installing MythWeb a few days ago and stumbled upon htdigests for authentication. Apparently, it still (like basic authentication) has its problems which you may read about in the Apache manual. However, digest authentication only sends the MD5 of your password across the web. Therefore, intruders will not be able to intercept the contents of your password. Nonetheless, webalizer uses the directory /var/www/usage to store it’s files and this happens to be the directory that I am trying to protect. My inital idea was to drop a .htaccess file inside of this directory and see what happens. Here were the contents of that file:

AuthType Digest
AuthName "Webaliver"
AuthDigestFile /var/www/htdigest
Require valid-user

Very simple. The problem was, the directory did not have an “AllowOverride” tag inside my httpd.conf file. As a matter of fact, the file didn’t even exist in the directory. No problem, lets create the element. Inside httpd.conf:

AuthType Digest
AuthName "Webalizer"
AuthDigestFile /var/www/htdigest
Require valid-user

Another way of doing it… Instead of creating a htaccess file for the /usage directory, let’s just add the authentication parameters inside of the directory element of the httpd.conf file.

Directory>
AuthType Digest
AuthName "Webalizer"
AuthDigestFile /var/www/htdigest
Require valid-user
/Directory>

That should help. Bed time. Coming up next, how to make Amanda force full backups to your USB drive.

This blog thing…

Soon to come, my technical accomplishments in my own private blog. No more worrying about “Now, how did I do that?” I plan on logging the problems that I’ve solved, the methods, and use the blog as a sort-of bookmark dump.

I think it would also be a good idea to log things that I am trying to study. How about storing mind-maps on this thing? Now there is something to think about. I was reading somewhere, that there is a mindmap utility for the PC. I really need to get that.

Which reminds me, spend some time reading “The UNIX Operating System” by William Stalling 2005. Check knowlegdeTree for a reference. You may be wondering where I found this source. I have some links below:

http://williamstallings.com/OS/OS5e-student.html http://www.ugu.com/sui/ugu/warp.ugu

Since I signed up with DynDNS to provide DNS for my static IP address, I want my web server to include SSL capabilities , to encrypt data which I move along the Internet super highway. This is just a reminder to look into this. I’ll probably post about my experience in the near future.

Anyway, I’m out. Just wanted to jot down my plan of action for this blog.