Archive

Posts Tagged ‘queue’

Queue Simulation

October 13th, 2011 Comments off

Queues are commonly used in network systems. For example, e-mail is placed in queues while it is waiting to be sent and after it arrives at the recipient’s mailbox. A problem occurs, however, if the outgoing mail processor cannot send one or more of the messages in the queue. For example, a message might not be sent because the recipient’s system is not available.

Write an email simulator that processes mail at an average of 40 messages per minute. As messages are received, they are placed in a queue. For the simulation, assume that the messages arrive at an average rate of 30 messages per minute. Remember, the messages must arrive randomly, so you will need to use random number generator to determine when messages are received.

Each minute, you can dequeue up to 40 messages and send them. Assume that 25% of the messages in the queue cannot be sent in any processing cycle. Again, you will need to use a random number to determine whether a given message can be sent. If it can’t be sent, put it back at the end of the queue (enqueue it).

Run the simulation for 24 hours, tracking the number of times each message had to be requeued. At the end of the simulation, print the statistics that show:

a. The total messages processed.
b. The average arrival rate.
c. The average number of messages sent per minute.
d. The average number of messages in queue in a minute.
e. The number of messages sent on the first attempt, the number sent on the second attempt, and so forth.
f. The average number of times messages had to be requeued (do not include the messages sent the first time in this average)

Program can be write in C++ or Java in an easy to understand programming. it should can be run in command prompt and no GUI needed. It’s just a simple program for understanding topics in class.

Queue System

August 7th, 2011 Comments off

We need you to build a web based queue system. The system will be used in a casino environment, where guests will put up their names on different games they want to play. The system needs to have different logins for staff and guests. Where the guests have fewer authorisations and the staff has all access.

The system needs to be web based so people can access the system at the same time, and be safe for concurrent use.

The system needs to save all information about guests queuing so managers can review the statistics.

This is the first part of a bigger more complex system. When we find someone who can deliver this first part in a satisfactory way, we will continue with that person/company for the whole system.

Content Management Service App

February 25th, 2010 Comments off

What is needed: (Must be created in PHP/MySQL)

1)People need to be able to purchase credits via PayPal that get added to an account balance automatically via IPN (notify url being in the form code). Preferrably this would be written in a way so other payment processors can be added later easily via a plugin or some such.
2)The single purchase options are able to be created via an admin panel where the admin creates options for different credit amounts for a certain dollar amount.
3)People also need to have the option of signing up for various monthly subscriptions that can be created in an admin interface. The monthly subscription will allow the users a number of alloted credits that are predefined at the time the monthly subscription is designed in the admin panel.
4)People need to be able to sign up for multiple monthly subscriptions if they choose to.
5)Coupon codes should be able to be created for single purchases or monthly subscriptions that only work for whatever product the coupon code was created for.
6)Members need to be able to submit content via TinyMCE to a queue. (Title field and content field)
7)Everytime the user submits a piece of content to the queue a credit is deducted from their balance.
8)If the balance is depleted they will no longer be able to submit content.
9)Users should be able to view their own queue
10)If it is a monthly subscription it should auto add the correct number of credits to their account again at the time the billing cycle renews if payment was successful.
11)The queue needs to be for admin use where the admin can approve or dissaprove of content. Admin should be able to see articles all at once in the queue regardless of who the user is obviously.
12)If the content is disapproved the user is shown a notification when they login to the system. The credit for the submission is added back to the users account until they resubmit the content for approval again.
13)If the admin approves the content it is sent out via xmlrpc to wordpress blogs.
14)The admin needs to have a place where he can add all his urls to the blogs and specify usernames and passwords for the blogs. These can be full urls like http://www.myblog.com/xmlrpc.php
15)These blogs are the ones that will be posted too. When content is approved.
16) Users need to be able to see a report page that shows when their articles were submitted
17) Users should eb able to update their account information.
18) Would like for Aweber auto signups to be possible. If you do not know aweber that is fine just need somewhere in the code to be commented for the email to be sent to aweber and someone else will design the email parser in aweber.
19) At the time the admin approves content in queue they should be able to designate how many sites that the content is going to be posted on. This would be a drop down menu. The sites can just be random… If the admin selects 100 as the value it would be fine if the app just grabs the sites and does an array_shuffle and posts to the first 100 in the array. 100 Should be the default value in the drop down and grow by increments of 100 per the size of the database of sites.

Vbulletin Download System/mod

October 13th, 2009 Comments off

I want to use vBulletin to manage access to a library of video files which are to be managed using the Links and Download Manager plug-in for VB 8.x and the built in subscriptions system of vb. The system is using a barebones LDM installation at the moment and I would like to see it modified in the following way;

Navigation – ease navigation and allow for easier location of video tutorials. Tutorials are under main headers – TITLE > Video1,2,3…etc – individual videos only need a few lines of description whilst the category overhead needs images and formatted text description.
Speed capping – by usergroup, download speeds should be capped
Queue system – Standard registered members wanting to download should be placed into a queue so that only an administrator defined amount of members can download at any one time – the rest should be placed into a holding queue with estimated download time, advertising and news visible to them as well as upgrade options and purchasable instant download options via the subscription upgrade system. Queue system should allow html embedding so that an embedded stream can be played to the waiting member.
Member download ip logging and reporting – to prevent account sharing, users logging in and downloading on accounts that use more than an administration set amount of IPs will be reported to an email address

Theming;

Maintaining the current scheme on the site, the overall look and theme of the download system should be redesigned to make it easy to use and easily navigable – this should include the comments system (included in LDM) and other features.

php, mysql, javascript, html

Priority_queue _&_fifo_queue.c

October 4th, 2009 Comments off

Deadline: October 10th, 2009
A Queue Simulation
Programming Problem Statement
The purpose of this assignment is to explore several ideas:

Priority_queue.c

September 30th, 2009 Comments off

Deadline: 12-Oct-09.Event-driven(customer arrives&service is complete)program in C.

A Queue Simulation
Programming Problem Statement
The purpose of this assignment is to explore several ideas:

Pqueue_fifoqueue_simulation.c

September 30th, 2009 Comments off

A Queue Simulation
Programming Problem Statement
The purpose of this assignment is to explore several ideas:

Asterisk Queue

August 21st, 2009 Comments off

I need someone to teach me how to setup up a queue of calls (so calls do not happened simultaneously but by the order they were entered) with priority settings asap!

Queue Adt

July 14th, 2009 Comments off

Would love some help with my project, but I need to finish it by Friday.

Categories: Java Tags: , ,

Program Using Queues In C

July 7th, 2009 Comments off

The Problem
A university lacks a credible grocery store on campus. After a year of getting lousy over-priced food in the convenience store in the Student Union, you and all of your friends are frustrated. One of your friends majoring in business comes up with the brilliant idea of opening a grocery store on campus. But, they need your help to decide if their idea is viable or not. Your job will be to run various simulations of customers in line.

The model for the store is as follows:

Normally, there will be three lines in operation or customers to buy their groceries. Each line will have a capacity of 8 customers. The first line (line A) will only be for customers with 10 or fewer items. The other two lines (line B and C) will be for all customers. When a customer is ready to check out, here is how they decide what line to go to:

If the customer has 10 or fewer items and the

Vbulletin Download System/mod

June 15th, 2009 Comments off

I want to use vBulletin to manage access to a library of video files which are to be managed using the Links and Download Manager plug-in for VB 8.x and the built in subscriptions system of vb. The system is using a barebones LDM installation at the moment and I would like to see it modified in the following way;

Navigation – ease navigation and allow for easier location of video tutorials. Tutorials are under main headers – TITLE > Video1,2,3…etc – individual videos only need a few lines of description whilst the category overhead needs images and formatted text description.
Speed capping – by usergroup, download speeds should be capped
Queue system – Standard registered members wanting to download should be placed into a queue so that only an administrator defined amount of members can download at any one time – the rest should be placed into a holding queue with estimated download time, advertising and news visible to them as well as upgrade options and purchasable instant download options via the subscription upgrade system. Queue system should allow html embedding so that an embedded stream can be played to the waiting member.
Member download ip logging and reporting – to prevent account sharing, users logging in and downloading on accounts that use more than an administration set amount of IPs will be reported to an email address

Theming;

Maintaining the current scheme on the site, the overall look and theme of the download system should be redesigned to make it easy to use and easily navigable – this should include the comments system (included in LDM) and other features.

php, mysql, javascript, html

Quick Component Update

June 3rd, 2009 Comments off

Only bid if you are very familiar with Joomla/PHP and can provide less than 1-2 day turn around.

The component I need updated is Acajoom 3.2.2
http://www.makemoneyeasyathome.com/uploadhere/acajoompro3.2.2.zip

I need 3 things updated, all related to admin functions
#1 Admin Panel – List
administrator/index.php?option=com_acajoom&act=list
the results should be sorts with id# as DESCENDING, in other words, highest number to lowest

#2 Admin Panel – Autoresponder
administrator/index.php?option=com_acajoom&act=configuration
the “Process Queue button” should process all email lists in queue. Right now, it only does one email list id at a time

#3 Cron Job
index.php?option=com_acajoom&act=cron
This process should somewhat be linked to #3. I need the cron job to process all email lists in queue instead of just one email list id at a time.

It is possible #2 & #3 are the same file needing updating.

Lastly, I need to know the exact php files which were updated in the components, and the line numbers you coded for the updates.

Quick Component Update

June 2nd, 2009 Comments off

Only bid if you are very familiar with Joomla/PHP and can provide less than 1-2 day turn around.

The component I need updated is Acajoom 3.2.2
http://www.makemoneyeasyathome.com/uploadhere/acajoompro3.2.2.zip

I need 3 things updated, all related to admin functions
#1 Admin Panel – List
administrator/index.php?option=com_acajoom&act=list
the results should be sorts with id# as DESCENDING, in other words, highest number to lowest

#2 Admin Panel – Autoresponder
administrator/index.php?option=com_acajoom&act=configuration
the “Process Queue button” should process all email lists in queue. Right now, it only does one email list id at a time

#3 Cron Job
index.php?option=com_acajoom&act=cron
This process should somewhat be linked to #3. I need the cron job to process all email lists in queue instead of just one email list id at a time.

It is possible #2 & #3 are the same file needing updating.

Lastly, I need to know the exact php files which were updated in the components, and the line numbers you coded for the updates.

Modifications Queue Site

April 28th, 2009 Comments off

Project for Imran
Site allows finance companies to interect with finance brokers in a controlled enviroment.
See separate sheet emailed earlier

Java Coding

April 5th, 2009 Comments off

A model of a factory

The factory produces produces objects of type 1 and type 2 from pieces of raw material which are readily available without limit. For the projection of an object of type 1, a piece of raw material is first processed by a machine of type A, then by a machine of type B, and finally by a machine of type C. For this purpose, a piece of raw material is first placed on a robotized moving platform which transports the piece from one machine to the other and finally deposits the finished product in a storage area. The factory owns 15 moving platforms. The production of objects of type 1 is done as fast as possible, since there appears to be an unlimited demand for such objects. Here is some information about the machines and how they are accessed by the moving platforms:

* There are 3 machines of type A and the platforms with raw material wait in a single queue until one of the machines becomes available.
* There are also 3 machines of type B, but they have separate queues (one per machine), since the machines are located far away from one another within the factory. When an object has been processed by a machine of type A, one of the machines of type B will be selected randomly for the subsequent processing.
* There is a signle machines of type C, with a single waiting queue. The storage area is large and several moving platforms may access it at the same time.

The production of objects of type 2 is done on demand. The production of these objects has priority over the production of objects of type 1, since the factory makes more profit from the production of an object of type 2. The production of objects of type 2 proceeds similar as for objects of type 1, except that the object does not need to be processed by a machine of type B; the platform takes the object directly from the machine of type A to the machine of type C. The arrivals of requests for the production of an object of type 2 arrive randomly with an inter-arrival time uniformly distributed over 5

Cloning Lyrics Site

March 16th, 2009 No comments

Lyrics site/Joomla Extension:

It is basically a clone of vietlyrics.com without the musicsheet part and add an artist field.

Goal: Create a simple lyrics site, using mysql, php. The language of the site is Vietnamese.(UTF-8)
Preferable a Joomla Extension, so you don’t have to design a CMS backend.

This is a project to create a simple lyrics site.

1- Frontend:
- Simple interface, with a browsable A-Z.
- Top lyrics views, top authors, top artists.(Can be defined by admin as top 10, 20, etc).
- Newly added lyrics, etc.
- Search by song name, author, artist. With or without accent.
- Print preview option:
– Allow users to chose from different background/fonts size and show a print preview box when they want to print the lyrics. Warning when the printout will exceed a page.
– Admin should be able to insert their own logo/text on top/bottom of the printed page.
- SEO, option to change URL to author-song-title.html, or just song-title.html

2- Backend
- Interface/editor to add/edit new song.
- Script to do a mass add of new songs based on a directory structure: author/song-name
- Admin settings interface to control SEO, top views by (artist, authors, songname, etc).
- Logo settings, background setting(add/remove background images) to the printed page.
- Option to check for duplicates (title, lyrics words). If duplicates are found, put them in a
review queue (disable on the frontend).

3- Site scrapping scripts
- Ability to write several scripts(perl) to go to a few sites to scraps songs & add to the DB.
- The script should be able to detect duplicates, based on the lyrics and give the admin option to review in a
separate queue, and chose to add or not. (Pending review queue in the admin interface.).

4- Port it Windows as a standalone apps, with the ability to update the lyrics DB and some basic anti-piracy checks. Perhaps a dummie Web browser interface.

Bear