server

Using James Server in Eclipse With JavaMail

Would anyone be able to tell me how I can go about using James server as my server with Java in Eclipse? I'm trying to test the two classes posted below but i get the following error: Exception in thread "main" javax.mail.AuthenticationFailedException: Authentication failed. public class JamesConfigTest { public static void main(String...

ruby script/server not reading RAILS_ENV option

Hello, I tried to run ruby script/server RAILS_ENV=production but somehow it always try to read "development" config.. nothings wrong with RAKE XXX RAILS_ENV=production (trying to read production config). Any idea how to troubleshoot? I have my other rails app in the same machine and it works fine. The problem above only happen fo...

Jetty embedded: How to run the same config as with `mvn jetty:run-exploded`?

Hi, I'd like to have the same Jetty server configuration, created programatically. When I run mvn jetty:run-exploded, my app works fine. When I run it from my code, the static content is not loaded. I know that I have to add a static content Servlet, so I tried: Server server = new Server(8080); Context ctx = new Context( server, "/", ...

Help! I got a runaway PHP script. My server is down.

I got a PHP script that is looping and will continue to do so for about another hour. How do I stop it. The script explicitly overrides the time out and the memory buffer. It's on a shared hosting server with cPanel installed. The entire website is down until the script completes. I had added a usleep(100000) statement, but it doesn't a...

Change IP where domain is pointing

This is probably a very strange request. I need to programmaticaly (via code) change the IP where a domain name is pointing to. IE: xyz.com points to 100.100.100.100 setIP('xyz.com','100.100.100.100'); I know this [code] is practically impossible, however, what I need is to do this via domain host API etc or other possible ways you ...

Is it worth while to hide/obfuscate server connections in an iPhone app? If so how?

If I have an app that connects to Amazon's S3 service, is it worth my time to hide/obfuscate the connection strings and API keys? I'm guessing that most hackers won't care all that much, but it would be financially painful if someone found this information and was able to upload data to my account! For instance, if I store a username/p...

Java Stop Server Thread

the following code is server code in my app: private int serverPort; private Thread serverThread = null; public void networkListen(int port){ serverPort = port; if (serverThread == null){ Runnable serverRunnable = new ServerRunnable(); serverThread = new Thread(serverRunnable); serverThread.start(); ...

How do i make a multi-threaded server in perl?

I have looked online at making a multi-threaded server in perl, but i cannot find any good ones that clearly explain how to create one. I have created a server and client in perl but i do not seem to be able to make it multi-threaded. Can someone help me? ...

Why does my perl server stop working when i press 'enter'?

I have created a server in perl that sends messages or commands to the client. I can send commands just fine, but when i am being prompted for the command on my server i have created, if i press 'enter', the server messes up. Why is this happening? Here is part of my code: print "\nConnection recieved from IP address $peer_address on p...

CSS not displayed depending on page

I have a friend that has a really strange issue with my website. When he clicks on http://www.copeo.fr/ the page displays fine but when he clicks on a link like www.copeo.fr/user/ the CSS is not applied even after a refresh. The raw html does display. I asked him to display the CSS that is hosted on amazon S3 hcopeoressources.s3.amazon...

Photo Gallery Server LOGIC

I would like to create a photo gallery to showcase a specific set of images. As the user views the images, I would like to recommend related products that they might be interested based on what they are viewing. Much like how Amazon shows recommendations for related products, or products you might like. If the photo gallery can only b...

C++ - A Very simple HTTP server: WSA unreferenced error

Hello. I'm learning C++, i wanted to try implementing a very simple HTTP server that will just output a text message. I use Microsoft Visual Studio 2005. I'm getting: Line 20: Warning 'wsa' unreferenced local variable, while i'm trying to compile my source code. Am i missing something? Here's my source code. #include <winsock2.h> #inc...

m and s keys do not work over vnc connection to ubuntu server

I'm new at setting a lot of this up, so bear with me. I installed Ubuntu 10.4 server on a 64 bit machine. Then I added vnc so I could manage it while it's racked. I start the server, SSH to it, and run vncserver :1 At this point, all keys work fine. Next I exit out of the SSH session and fire up my client vnc app. I connect via the I...

ubuntu server vs desktop edition

I have a dilemma of selecting between ubuntu edition for development server. I have seen that ubuntu server dosen't have a GUI(though can be installed later). My question : is there any specific difference in desktop and server edition that will help in development of web app? ...

C++ socket concurrent server

Hi all; Im writing a concurrent server that's supposed to have a communication channel and a data channel. The client initially connect to the communication channel to authenticate, upon successful authentication, the client is then connected to the data channel to access data. My program is already doing that, and im using threads.My ...

Java: Get current Date and Time from Server not System clock

In my Java program, I need to create an instance of the current moment in time. I use Date date = new Date(); This gives me the current date and time as per the host machine's system clock. Is there any way I can get the current date and time from an online server? The world time server perhaps? I have seen this post and it describes...

Need help to compile latex document using a private compiler with LaTeX Lab

I'm using latex and recently an online latex interface to Google docs was released: http://docs.latexlab.org/docs For the most part this online latex compiler is great and I can get a document such as this to compile: \documentclass[12pt]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \title{\LaTeX without extra usepack...

Application Cache on iPad works on localhost doesn't work on production server

Problem: On localhost the applicationCache is working in both the iPad simulator and regular safari all the time. On production server I'm getting status = 0 (uncached) on iPad simulator and the actual device but on safari it actually loads the cache correctly the first time but hangs in status = 2 (checking) for subsequent refreshes. ...

Alternative to CURL due to long waiting

Hey Guys I currently run a PHP-script using CURL to send data to another server, to do run a PHP-script that could take up to a minute to run. This server doesn't give any data back. But the CURL-request still has to wait for it to complete, and then it loads the rest of the orignal page. I would like my PHP-script to just send the data...

Is webserver bandwith the entire HTTP Request/Responce?

Just a quick question. I'm making a web application where C++ communicates with a php script over HTTP Requests/Response. The data being set back and forth is quite small ~36 bytes. But I plan to have many computers connected, contacting the server quite often. I did the math, and I could potentially have gigabytes of data transfer a mon...