server

Data Streaming in Adobe Flash

I am trying to write a flash program that allows multiple users to collaboratively work on the same document. I would require the changes and updates from each user to be sent to a server, processed, and propagated to everyone else working on the document. What kind of server technology should I be using? It needs to be a low-latency so...

Is it good practice to use one single stored procedure that accepts a variable number of parameters

I am working on a web project where I have to retrieve (let's say) employee records. In some cases I have to retrieve a single record by providing an EmployeeID. In other cases, I have to retrieve multiple employee records by providing a SectorID. This logic could be expanded to cover additional scenarios: get all employee records, get e...

Iam creating a poker game in Flash AS3, what are the best design patterns I can use?

Iam creating a Flash AS3 based Poker game for my company. Some like zynga poker, what are the best design patterns that I can use in my game. All suggestions are welcome, I am looking to create a good designed game which can support huge number of players. ...

Steping back from applied patch

When creating a patch with the "patch" tool or with the built in "patch"-functionality in svn and then applying it to a source tree, is there any way to easily step back from the applied patch to the previous version? ...

How to unblock a thread blocked on ServerSocket.accept()?

I have a server thread with this code: public void run() { try { ServerSocket server; EneaLog.printLog("Server is running."); server = new ServerSocket(this.portnumber); while (true) { new EneaServerConnection(server.accept(), this.project,stopped).start(); if (stopped) { ...

What is a good reference for Server side development?

I am more interested in the design of the code (i.e functional design vs object oriented design). What are the best practices and what is the communities thoughts on this subject? Not that it should matter, but I am working with Apache and Python technology stack. ...

Can $_SERVER variables in PHP be changed by the user? If so how?

I need to use $_SERVER variables like SCRIPT_FILENAME for a mvc framework I'm writing. I'm wondering if a user can change things like that. Say the user requests index.php, can they fake the SCRIPT_FILENAME variable and rename it to something else that is being sent over? ...

When would you need multiple servers to host one web application?

Is that called "clustering" of servers? When a web request is sent, does it go through the main server, and if the main server can't handle the extra load, then it forwards it to the secondary servers that can handle the load? Also, is one "server" that's up and running the application called an "instance"? ...

Recursive CreateDirectory

I found many examples of CreatingDirectory recursively, but not the one I was looking for. here is the spec Given input \\server\share\aa\bb\cc c:\aa\bb\cc USING helper API CreateDirectory (char * path) returns true, if successful else FALSE Condition: There should not be any parsing to distinguish if the path is Local or...

Microsoft Index Server - SSI

Hi experts... I'm currently having difficulty integrating my Search page, which is currently using Microsoft Index Server, with my generated .shtml files from the CMS. It seems that Microsoft Index Server is not able to search for .shtml files (HTML with Server Side Includes/SSI) properly. Any idea why and the solution to it? Any other ...

How can I create a TCP server daemon process in Perl?

I wish to create a TCP server daemon process in Perl. Which is the best framework/module for it?. Is there anything that comes bundled with Perl? Edit: Something that has start | stop | restart options would be great. Edit: It has to be a Multi threaded server. ...

ASP.Net Checkbox value at postback is wrong?

We have a checkbox that is initially disabled and checked. It is then enabled on the client side through javascript. If the user then unchecks the box and presses the button to invoke a postback, the state of the checkbox remains as checked on the server side. This is obviously undesirable behaviour. Here is an example. <%@ Page Languag...

Issue calling a MySQL stored procedure (with params) via a linked server (SQL Server 2005) using OPENQUERY syntax

Hello, I'm having issues when trying to call a MySQL (5.0.77) stored procedure with parameters, via a linked server (SQL Server 2005) using the OPENQUERY syntax. The MySQL stored procedure returns a result set, and when I use the 'EXEC ... AT ...' syntax the call works fine, e.g... EXEC('CALL my_stored_proc(''2009-10-07'',''2009-10-07...

Why not run a server side app with daylight saving time enabled?

I've implemented a server side application that records timestamps when records are created and updated. The app assumes that the server clock does not have daylight saving time enabled, (a) because I've read this is best practise and (b) because I imagine it would be tricky (if not impossible) to handle the ambiguities that occur, e.g. ...

What "standard" application return/exit codes should an application support?

Is there such thing as a standard set of application return codes? Things like returning 0 for success 1 for failure, and then so on? I have a windows server application that I am adding some return error codes and wanted to stick to standard codes in addition to the app specific ones that I will need. ...

AWT libraries using Java 1.6 on Linux Server in a datacenter

I need to create and store thumbnails (of images from the web) and store them on the server. Can I use the awt libraries (as listed below) on a linux server running in a datacenter (without a monitor)? I do not know if the server has a graphics card or needs one for these libraries to work... import java.awt.GraphicsConfiguration; impo...

Server Benchmarking: What tools to use with my real-world test data

I want to benchmark a new server using historical HTTP-request data. I have a textfile that contains one day's worth of real historical requests to a production server. What is the best tool for sending that list of requests on the server I'm testing? The tool I use should be able to configure the following: Number of threads making th...

Simple AtomPub server library

What simple AtomPub server libraries with file- or DB-based backends can you recommend? Unix-style servers that "do one thing, do it well" are especially welcome. Maybe even libraries in Python? ...

Stateless Blocking Server Design

Hello Ladies and Gents, A little help please. I am designing a stateless server that will have the following functionality: Client submits a job to the server. Client is blocked while the server tries to perform the job. The server will spawn one or multiple threads to perform the job. The job either finishes, times out or fails. The...

Streaming Audio FROM iPhone to Browser. Ideas?

I have seen plenty of articles and SO questions about streaming TO an iPhone app, but my question is the reverse, that is, streaming FROM an iPhone app. I have audio content in an iPhone app, that I want to stream to a browser. So the idea is that the browser can connect to a server running on the iphone. The server on the iphone will...