server

BasicHTTPServer, SimpleHTTPServer and concurrency

I'm writing a small web server for testing purposes using python, BasicHTTPServer and SimpleHTTPServer. It looks like it's processing one request at a time. Is there any way to make it a little faster without messing around too deeply? Basicly my code looks as the following and I'd like to keep it this simple ;) os.chdir(webroot) httpd ...

HTML not updating?

I have a CGI application written in C. When I POST (delete data) to the cgi app from the html form, the action is correctly executed on the server but the page does not refresh after the POST. It does flicker, but displays the non-updated page. I then have to hit the browsers refresh to see the correct updated html page (showing data has...

Switching to a VPS

Well, I know absolutely nothing about the subject, so I really need help. I currently have a website running on google app-engine (Java) and I can't get it to what I want because of app engine's limitations (no full text search mainly). The traffic is low, never reached 15% of the free quota (around 1500 daily pageviews). I also have...

How do I make a TCP connection between 2 servers if both can start the connection ?

I have a defined number of servers that can locally process data in their own way. But after some time I want to synchronize some states that are common on each server. My idea was that establish a TCP connection from each server to the other servers like a mesh network. My problem is that in what order do I make the connections since ...

Does Socket open another thread? Does it return something?

In the client application I call new Socket(serverIP,serverPort). As a result the client application sends a request to the server application to open a socket. Does it start a new thread? I mean which of the following is true? Client application sends a request and immediately starts to execute following commands (not waiting for the ...

web server for embedded system

Hello, Is there anyone knows about list of web servers which is used in embedded system ??. I have used hiawatha, is there any others ?. ...

How do I ping a server in J2ME / BlackBerry?

How do I ping a server in J2ME / BlackBerry using java? This seems basic, but I can't find it in the javadocs. Thanks. ...

IIS SMTP server (Installed on local server) in parallel to Google Apps

I am currently using free version of Google Apps for hosting my email.It works great for my official mails my email on Google is [email protected]. In addition I'm sending out high volume mails (registrations, forgotten passwords, newsletters etc) from the website (www.mydomain.com) using IIS SMTP installed on my windows machine. T...

Simple image server

I have a bunch of images that I need others to browse via a web browser in pretty much the same way as Apache-Gallery. I'd be able to dump all my images in a directory so that users hitting: http://server:port/directory would see small thumbnails and selecting an image would load it full size on a page with options to browse the prev...

I need some advice from Experts on how to develop a PHP site with MySQL

Hi, I need some advice from experts :) I will develop a website using PHP and I will use also MySQL. I bought some server space from a Virtual private server including all the service needed. How should I develop the site? Shall I develop it on my machine at home (using for example Wamp), and when ready transfer all the files to the ser...

Java socketserver: How to handle many incoming connections?

I am writing a simple multithreaded socketserver and I am wondering how best to handle incoming connections: create a new thread for each new connection. The number of concurrent threads would be limited and waiting connections limited by specifying a backlog add all incoming connections into a queue and have a pool of worker threads...

When should I send QUIT to SMTP server? and how long should I keep a session?

I am programming a smtp sender to send large number of distinct emails (not spam). As there are many destination addresses which are from common provider like hotmail.com/gmail.com. I would like to pool the TCP connections in order to reuse the session. Is this a good practise? Or should I disconnect and connect to send distinct mails in...

Tomcat is web server or application server?

guys let me know ...

Java socketserver using Apache Mina - how to set up threading?

I am building a socketserver using Apache Mina and I am trying to make sense of configuring the thread model. I am currently reading: http://mina.apache.org/configuring-thread-model.html As I understand it; it is best to use multithreading for each IOService, something like: SocketAcceptor acceptor = new SocketAcceptor( Runtime...

Grails Deployment - Fastest way to get deployed?

Hi All, If anyone has or is running a Grails application on their server I would appreciate some details on where to go after creating the WAR. Background I chose grails because with Google App Engine and the App Engine Plugin deployment should have been trivial. This issue is that there is a bug which makes any application pretty muc...

Render Order via HTML or CSS

What is the best practice is in the case of altering the render order of elements on a webpage. For example, I have two DIVs that are to be displayed on a page: <div id="appleSection" class="appleStyle"> <!-- Apple DIVs, content, form elements, etc --> </div> <div id="orangeSection" class="orangeStyle"> <!-- Orange DIVs, conte...

iPhone HTTP Server

Can someone give me simple code to help with creating an HTTP server for the iPhone. Something simple with much documentation would be appreciated. Anything you have please share. ...

simple document server built over Apache HTTP server

Hi, I want to build a simple document server. The requirement for now is : provide a hierarchical directory structure for placing documents (like pdfs, doc files) that is accessible through a browser, and provide the facility to search for documents by name and then be able to download them from server. Right now, placing documents ca...

valgrind on server process

hi i am new to valgrind. I know how to run valgrind on executable files from command line. But how do you run valgrind on server processes like apache/myqld/traffic server etc .. I want to run valgrind on traffic server (http://incubator.apache.org/projects/trafficserver.html) to detect some memory leaks taking place in the plugin I ha...

Should I typecast in PHP when defining my vars?

I am sorry if this is more of a theory question then a real life problem but it is a real life situation for me. We were commenting on the way PHP works with vars and how memory heavy it is on the server due to its "mixed vars" and something occured to me - why not typecast right from the start? So I guess my quesion is: Whould it make ...