Go Back   AnandTech Forums > Software > Programming

Forums
· Hardware and Technology
· CPUs and Overclocking
· Motherboards
· Video Cards and Graphics
· Memory and Storage
· Power Supplies
· Cases & Cooling
· SFF, Notebooks, Pre-Built/Barebones PCs
· Networking
· Peripherals
· General Hardware
· Highly Technical
· Computer Help
· Home Theater PCs
· Consumer Electronics
· Digital and Video Cameras
· Mobile Devices & Gadgets
· Audio/Video & Home Theater
· Software
· Software for Windows
· All Things Apple
· *nix Software
· Operating Systems
· Programming
· PC Gaming
· Console Gaming
· Distributed Computing
· Security
· Social
· Off Topic
· Politics and News
· Discussion Club
· Love and Relationships
· The Garage
· Health and Fitness
· Merchandise and Shopping
· For Sale/Trade
· Hot Deals with Free Stuff/Contests
· Black Friday 2013
· Forum Issues
· Technical Forum Issues
· Personal Forum Issues
· Suggestion Box
· Moderator Resources
· Moderator Discussions
   

Reply
 
Thread Tools
Old 02-18-2013, 02:46 PM   #1
brotj7
Senior Member
 
Join Date: Mar 2005
Posts: 203
Default Application Specialist needs a point in the right direction...

We have a new system at work, and my group has a server that will be receiving inbound print jobs after an outside firm does some processing. When the jobs come in we typically only see the name blip in a folder as the job comes back in then it prints. Unless of course, the user selects wrong type of end device. We have no control over the source selection, so we will need to clear out any stuck jobs as part of our on call duties.

I would like to prototype a web front end that we can provide to our help desk/semi automate so we can limit the 3am calls to real issues. Our sister team has a test web server I can develope on.

Workflow:
If the job comes in and sits on the server for longer than 5 min, create a folder with today's date and take the long job and put it in the folder. At 7 am, email my team with any job failures taken care of by the auto process for followup. At the same time poll every 10 seconds and update a webpage the helpdesk can watch. If a call comes in from user the helpdesk should see the stuck job, and can select it for deletion from this webpage. Will need controls to do so, on the back end create a folder with today's date labeled helpdesk deletions we can moniter. My team should be the only ones who can permanantly delete a job.

I spoke with a coworker, since we are a MS house, I would need C# for the server back end, and I could use JavaScript for the webpage controls. Good idea? This will be given to our security and webteams for review before it ever touched real data. I just want a side project and thought this would be a great resume builder.
Typing from my phone. Please excuse typos...
__________________
Laptop: ASUS g72gx rbbx05, Crucial M4 512gb, Win 7pro
rig 2: Intel 3570, 32gb DDR 1600, Crucial M4 512gb, Win 7 Pro
rig 3: Intel Q6600, Tuniq Tower, 8800GT 512, 8GB DDR2 800, Vista Ultimate x64
rig 4: Athlon 64 X2 4800+, 4gb DDR 400, x1950pro, XPpro x64
Assorted Tablets...

Last edited by brotj7; 02-18-2013 at 07:58 PM.
brotj7 is offline   Reply With Quote
Old 02-19-2013, 08:48 AM   #2
KB
Diamond Member
 
KB's Avatar
 
Join Date: Nov 1999
Location: Maryland
Posts: 4,190
Default

You could actually write this using C# and ASP.net without having to write any javascript at all. ASP.net has server side controls to do all the input and output. Using javascript is a good learning experience and would make the site more user-friendly and responsive but isn't necessary for what you are doing.
KB is offline   Reply With Quote
Old 02-20-2013, 12:39 PM   #3
brotj7
Senior Member
 
Join Date: Mar 2005
Posts: 203
Default

Thank you, I will look at ASP.net too.

I will be working on this on my own time this weekend. In the meantime I do have a basic question.

There might be long periods without printing, so instead of the application polling the file every few seconds, what do I need to do to push the jobs text name to the web front end?

In school, we had used Java event listeners for state changes, windows open/close/resize, button events, keyboard commands, etc. So I imagine something similar could trigger there is a print job in the file which needs to be pushed to C# to handle the processing. But I don't know if it would be an event from windows, or something I need to register within my application that would trigger an event. Does this make sense? Yes, I am looking in MDSN but I don't really know where to look....
__________________
Laptop: ASUS g72gx rbbx05, Crucial M4 512gb, Win 7pro
rig 2: Intel 3570, 32gb DDR 1600, Crucial M4 512gb, Win 7 Pro
rig 3: Intel Q6600, Tuniq Tower, 8800GT 512, 8GB DDR2 800, Vista Ultimate x64
rig 4: Athlon 64 X2 4800+, 4gb DDR 400, x1950pro, XPpro x64
Assorted Tablets...
brotj7 is offline   Reply With Quote
Old 02-20-2013, 02:08 PM   #4
KB
Diamond Member
 
KB's Avatar
 
Join Date: Nov 1999
Location: Maryland
Posts: 4,190
Default

The easiest thing to do would be to poll every few seconds as you mentioned, either by having the website refresh itself periodically or have some javascript/ajax make a request for the latest jobs and display them. Since the helpdesk is likely to get a call when this problem occurs, I think it would be safe to ask the helpdesk to manually refresh the page to see the latest jobs instead of having the site refreshing itself constantly with no problems to report.

If you want to do push instead of pollng as you suggested, you definately just added to the complexity of the app. To do push notifications through a web app you will need to use HTML5 web sockets, something which each browser supports differently or not=at-all. You could instead implement a thick client app to listen on a port for notifications via WCF or raw sockets. To send the notifications to the client app, you would create a windows service that uses a class like the FileSystemWatcher to listen for directory change events within the windows operating system, When this event is fired it would then send a notification to client app.


http://msdn.microsoft.com/en-us/libr...emwatcher.aspx
KB is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 11:26 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.