Home | Join! | Help | Browse | Forums | NuWorld | NWF | PoPo   
The Mercury System - A Browser-Based, Full-Featured Instant Messaging System
Current Info
Version: 1.0
Stage: Testing
Next Stage: Full-Site Testing
Keep Up-To-Date
Subscribe to this to blog if you would like to be emailed whenever it is updated.

Your email

Beginning Disk Space Control
Monday, November 6, 2006
Last update/added features had to do with protecting bandwidth. Tonights was the start of protecting disk space usage by the users of the IM system.

The Mercury System allows for file transfers between users which keeps the file in their uploads directory until they are deleted so that they may be served to their pals. Now all files in a user's directory are automatically deleted upon logging out. But what happens if too much of your disk space on your server starts to get used up and/or you notice too many users that upload files to be sent, stay logged in when they leave...and just never return.

In the administrator backend, the admin can view all members and also search through them for particular members. They can then peak into their uploads directory to see how many files are in there and how much room they take up. The admin will be able to see the size of each single file and will be able to delete any particular individual files or all of them.

The admin will soon enough be able to view when the users last logged in and when their most recent message was. If both of them have been months in the past, it is safe to assume that they may have forgotten about the IM system where they have an account. Now you may not necessarily want to delete their account just in case they decide to come back...suddenly remember that they have an account...whatever the case may be. But this can help free up a lot of valuable disk space.

Now admitedly this process could take a while. I will be looking to make it even more simple and quick to do it but this will probably have to wait until another version. I am getting weary of programming too many complicated routines that are run every time that the script is run. Especially ones that are run with every single message that is sent. This can really use up the CPU and overload the system. I wouldn't expect most shared server accounts to be able to meet the demand and I would fear even testing them on my current server. Hopefully down the road this will earn enough money with ads or some company will donate more dedicated space so that I may test advanced features which will require more power and CPU time.

I haven't gotten into deleting accounts or suspending them. I haven't gotten into making the upload date/time for every file uploaded available either. The first two are still coming in the first version of [TMS]. The latter...will most likely have to wait until the second version and hopefully on a more dedicated system. If not it can be one of the first things tested on the second version which may be able to occur on my current server. But atleast the groundwork has been set.

It took quite a bit of work to properly add the sizes of every file in the directory and then depending upon the number of digits that appear in the size, the size will be divided by either one thousand or one million. If the size of all the files added together are less than 999999 bytes, it will divide by 1,000 and will make it be in kilobytes. if the number is 1000000 or above, it will be divided by one million and it will then be in Megabytes. So far it has worked in all testing runs. Now this will be the starting point for the features added in the next couple days. But it was very helpful getting these portions done.

That is it for now. Over-and-Out.
5 Comments.


How very complex. Were you venting?
» kkama67 on 2006-11-07 02:03:09

Venting what? hehe
» mercury-system on 2006-11-07 06:59:05

Hot air, that's what. XD Hahaha

Hmm, that's going to come in handy--maybe you can log out for them if they've been gone say, 2-3 months? 0.o
» Silver-dot- on 2006-11-07 09:23:21

I probably qualify to be deleted. :P
» randomjunk on 2006-11-07 04:29:25

Yes, the option will be added to allow an admin to logout anyone that has been online for a long time without sending any messages which is primarily to help everyone's pal lists be accurate by having only truly online members show as online. And to help keep used space lower by deleting large user uploaded files when they aren't actually on the system to do anything with the uploaded files. That's coming in the next update or two.
» mercury-system on 2006-11-09 11:56:41

Sorry, you do not have permission to comment.

If you are a member, try logging in again or accessing this page here.










mercury-system's Weblog Site • NuTang.com

NuTang is the first web site to implement PPGY Technology. This page was generated in 0.250seconds.

  Send to a friend on AIM | Set as Homepage | Bookmark Home | NuTang Collage | Terms of Service & Privacy Policy | Link to Us | Monthly Top 10s
All content � Copyright 2003-2047 NuTang.com and respective members. Contact us at NuTang[AT]gmail.com.