server

FTP Server written in C#

Hello Devs, I stumbled accross this site today http://blogs.msdn.com/joelpob/archive/2004/02/16/74433.aspx which is a C# command line FTP server, unfortunately the download points to the old gotdotnet site which is now closed .. Does anybody know where I could find it, or another FTP Server implementation written in C# ? Thanks ...

hosting a java based server

i want to write a game that will utilize java applets as client programs and will run a server application to operate the game (control the game handle the chat etc) is there a way to host such an application on a free server, or does it require a specialized server? also is there a way to use php for tcp connection so it will receive th...

read() on socket issue

Hi, When I try to do a read() on a socket, it works perfectly fine. But, when I put the same thing in a while loop and try to read into a buffer, it stalls my server. Can anyone suggest a solution? Update: Thanks for the responses. I was so much into the issue that I assumed everyone else in the world knew what I'm speaking about. Sor...

using mysql system user

What are the possible disadvantages / pitfalls of using linux system user 'mysql' to work with mysql server instead of creating a separate use? ...

What is a good git server frontend for self hosted git repositories

I am planning on deploying git for a project I am currently working on and was wondering if there are any free softwares that provide an easy to use web view of the git repository. I am primarily interested in using the front end to track changes, see diff information etc. There is a list of such front ends available here. Does anyone ha...

PHPUnit, superglobal vars. How to setup test such that $_SERVER and $_GET are properly set?

Hi All, I am writing some PHP code to parse incoming URLs. It relies heavily on PHP globals such as $_SERVER and $_GET. I am thinking of manually setting these up in PHPUnit unit test setUp() function. Is there a better way of doing this? thanks, G ...

Local sites not displaying in VirtualBox when using Django's local development server?

Hello. I develop web applications using Django on Mac OSX 10.6. I use Django's built in local development server which I run on my computer's IP (such as: http://192.168.0.11:8001/). I test my applications in Firefox, Safari and Chrome and all display fine. I use Sun's VirtualBox with 3 different instances of Windows XP that have IE6, IE...

What does the term "blocking" mean in programming?

Could someone provide a layman definition and use case? ...

Team Foundation Server How to Edit file without checking it out

i'm working with TFS and i need to edit file localy without checking it out . another case if some one checked in the file and i need to change my locally copy. what should I do ? in Visual source safe we can do that by removing the read only check on the file. thanks, ...

iPhone App with a Server Backend - How to ensure all access is from the iPhone app only?

I don't mind so much about pirating etcetera, but I want to ensure that the backend (Rails based) isn't open to automated services that could DOS it etc. Therefore I'd like to simply ensure that all access to the backend (which will be a few REST queries to GET and PUT data) will be via a valid iPhone application, and not some script run...

Python Socket Getting Connection Reset

I created a threaded socket listener that stores newly accepted connections in a queue. The socket threads then read from the queue and respond. For some reason, when doing benchmarking with 'ab' (apache benchmark) using a concurrency of 2 or more, I always get a connection reset before it's able to complete the benchmark (this is taking...

Handle server response in AS3

I have an asp page that loads a response " user=exists " everytime I try to update a database record (when of course the record already exists!) How can I handle this response with AS3 in Flash? ...

How to use Http connections like a TCP Socket in Java

Hi All, I may be asking a bit much here but I have faith in the community so it's worth trying. I'm making a game and I'm trying to pick the connection type to use for communicating between a Java mobile client and a Java server backend. Socket programing in Java is easy - there's a lovely tutorial on the subject and two way communicat...

WCF Service hangs on the 14th call

Hi everyone. I'm having a problem where the WCF service hangs after 13-14 asynchronous process calls from the client. This occurs all the time. The client is a mobile JavaFX app. There is no specific error outputted in the server as well as in client. Someone suggested that it might be a throttling issue. I've set the service side .co...

Whats wrong with my PHP ftp_put?

Hi, this is frustrating... I keep getting an error with my ftp_put: This the error: No such file or directory in /Users/xxxx/Documents/Work/something Is there any glaring errors in my code I'm blind to? $server = "79.170.40.xxx"; $connection = ftp_connect($server); $login = ftp_login($connection, "xxx.xxx.co.uk", "xxx"); if (!$con...

Best practice to find out the closest AD server in the netwrok and to find if the server is dead.

Whats the best way of finding the closest server in the network from the list of servers. I have 2 servers in different locations and through code I want to connect to the one which is closest to where the application is deployed (in terms of connection time). Also whats the best way to find out if a server is down keeping in mind that...

I'm getting the warning: HTTP/1.1 200 OK Cache-Control: no-store, no-cache, must-revalidate, etc... (Help!)

I'm building a webpage and I'm getting the following warning (and the page loads but when I change of section it never loads and displays the warning). The warning: HTTP/1.1 200 OK Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Content-Type: text/html Expires: Thu, 19 Nov 1981 ...

Dynamically manage two jar files with the same package and class names

I have two jar files from a client, one of which is used for a testing and another for final versions. Currently I put them in different folders and modify the library path when deploying our code, but it would be nice to be able to load both jar files and switch between them dynamically at runtime. Is this possible? ...

Super simple XMPP server or advice for a simple custom Openfire component

Hi All, I need a server to send and recieve XMPP messages from Android clients running a multiplayer game I'm writing. I picked XMPP because I don't want to long poll and Sockets can be an issue over the cellular network (Carriers may block them). I have been looking at OpenFire whilst it sounds amazing, I don't need an admin panel Voi...

RMI binding interfaces to same registry from different classes.

I have a client that connects to an RMI registry over SSL, so as far as I know on the server side I have to use LocateRegistry.createRegistry(). However how would I get another Server to bind interfaces to the same registry, and have them being accessible even when the first server is closed. Any help would be greatly appreciated. Tha...