server

MySQL: SELECT from another server

I'm afraid that I already know the answer to my question, but I'll ask it anyway: When there are two MySQL DB servers, can I access data that is stored on the other server? In other words: Can I somehow do this: INSERT INTO table (x, y, z) SELECT x, y, x+y FROM [otherserver].[database].[table] Is the answer really as short...

Windows Server Crash Dump Analysis

I'm not certain that this is the right venue for this question, but a programmer friend of mine said I should try this here. My company's main application is hosted on a terminal server running Windows Server 2008. Since last Thursday we have seen this server crash and reboot 3 times, and we just went live with this server on the previ...

Differences between stock Apache on OS X 10.5 Leopard and OS X 10.5 Leopard Server?

Would someone with first-hand experience be able to tell me if there are any differences between the Apache installation that comes with OS X 10.5 Leopard and OS X 10.5 Leopard Server? ...

Web server config - shttpd/Mongoose

http://code.google.com/p/mongoose/ http://shttpd.sourceforge.net/shttpd.1.txt Trying to configure the lightweight web server shttpd now called mongoose to execute CGI scripts in C. Does it need a seperate CGI interpreter for C? A download of shttpd on source forge had separate interpreter exe for perl and php cgi but not sure if t...

How are web servers best loaded

If a web server is going to serve out say 100GB per day would it be better for it to do so in 10,000 10MB sessions or 200,000 500kB sessions. The reason for this question is I'm wondering if there would be any advantage, disadvantage or neither to sites that mirror content to allow clients to exploit HTTP's start-in-the-middle feature t...

Webserver Location - How important is it for SEO?

Hi, I am based in the UK and have two webservers, one German based (1&1) and the other is UK based (Easyspace). I recently signed up to the UK easyspace server because it was about the same price I paid for my 1&1 server but also I wanted to see if my sites hosted on a UK server gave better results in terms of UK based traffic. Its se...

Trying to set up Apache+svn, but having troubles. http://localhost doesn't work

I'm running Ubuntu 8.10 and I've installed the necessary packages as fast as I can tell. Under System > Administration > Services I see "Webserver (Apache2)" on the list. Googling around suggested that there might be a problem with the /etc/hosts file not having a line reading "127.0.0.1 localhost", but I checked the file and it's ther...

Good protocol for FAST inter-application communication?

I am about to implement a server application that can answer queries fast. The server is implemented in java. I don't want to waste a lot of time on a complicated communication protocol so I search for a good best-practice way of 1) performing a query to my server 2) letting the server answer that query Both the queries and answers w...

Virtual Host points to another Virtual Host

Hello all, HELP! I just setup a virtual host for two sites that have a lot of traffic and I think I just messed something up! Here is the end of my httpd.conf: NameVirtualHost * <VirtualHost *> ServerName www.mydomain.com DocumentRoot /var/www/html </VirtualHost> <VirtualHost *> ServerName www.mydomain2.com DocumentRoot /var/www/downl...

How to get Maximum bytes from a port using a serversocketchannel

hi guys, I'm developing a multiple port reading application using nio package.Actually these ports recieve packets continously.Using nio package we have to reAD packets using channels.There should not be a packet loss.Here is my code.I've confusion in else if ((key.readyOps() & SelectionKey.OP_READ)== SelectionKey.OP_RE...

Testing SMTP with .net

I need to configure a SMTP server for testing my website which sends emails (for registration confirmation etc). I dont actually want the email to be sent, I just want to make sure that my code is correct. So I want to be able to check that the email is placed in a queue folder for example. Can anybody recommend a SMTP server which is...

How to create multiple game servers?

As the title said, how to create multiple game servers? I am about to develop an online game, and this is my first time. Game play in flash and database things are handled by php and mysql. I have questions about server. After user logged in, they should select a server. How do I create multiple servers for users to select? Is it better...

Implementing client - masterserver/slaveserver application java

We have a string processing service (c++, uses stdin/out for in/output) that has different layouts, each layout runs separately (eventually will run on separate machines), each layout takes time to load, thats why it must keep running after first run. I must implement a system with client that will ask the master server to connect it ...

How do you check if the server is executing the PHP script?

I'm running a cronjob which needs to write data to a cache. I wanted to put this cronjob in my private folder, however, even after CHMODding the cache folder in the private folder, it's not getting writing rights. This seems to be somekind of plesk feature. So, now I've placed the cronjob in the public folder. However, I need to make su...

ASP.NET server control property issue(?)

I am working on some ASP.NET Server Control, and I have an issue. Maybe I oversee something, I don't know. Anyway: public string Name { get { String s = (String)ViewState["name"]; return ((s == null) ? String.Empty : s); } set { ViewState["name"] = value; } } protected override void R...

Implementing chat in an application?

I'm making a game and I am using Python for the server side. It would be fairly trivial to implement chat myself using Python - that's not my question. I was just wondering if there were any premade chat servers or some kind of service that I would be able to implement inside of my game instead of rolling my own? Maybe like a different p...

Best Practices for a Web App Staging Server (on a budget)

I'd like to set up a staging server for a Rails app. I use git & github, Cap, and have a VPS with Apache/Passenger. I'm curious as to the best practices for a staging setup, as far as both the configuration of the staging server as well as the processes for interacting with it. I do know it should be as identical to the production server...

Windows utility to print and archive from a file drop

Now, I could go ahead and write this using FileSystemWatcher etc, but before I start coding - I wonder if there is a better option that I can re-use (rather than re-invent). From my web-server, I want to drop files (to be printed) into a network share as a queue (ordering not hugely critical). Ideally, a windows service (or other client...

C# begin*() method vs threadpool for a server

For making a scalable multiuser server in C#, which of these two types of servers are more efficient? You can see an example of the async server using the begin* methods (like beginaccept, beginsend) here, and the threadpool implementation here. I know what a threadpool is and how it works so I pretty much understand how that implement...

Seperated servers or virtualization, which is more efficient?

My company is hosting a few separate, but related, moderately hit, web sites. Accordingly, a production database server, staging database server, production web server, staging web server, etc are needed. My question is, should we invest in physically separate servers for each of our needs, or should we put that money together and inve...