server

Import database from mysql server 5.0

I have created one database in mysql server 5.0.How i can import this database(I have created the database using mysql command Line) ...

Application works in development mode but not in production mode

Hi, I just succeed to set in place my rails server. But when I'm trying to add a new "machine" I have an error. I can see this in logs ActionView::TemplateError (undefined method `owner_id' for #<Machine:0x7f85a0d279e0>) on line #49 of app/views/machines/_form.html.erb: 46: </div> 47: <p> 48: <%= f_machine.label :owner %><br /> 49:...

Does this top look healthy to you?

I run a server with the following specs: Intel i7 920 8 GB RAM Linux 2.6.32-25-server #44-Ubuntu 10.04 SMP Fri Sep 17 21:13:39 UTC 2010 x86_64 GNU/Linux 75 Apache processes Low-end hardware RAID-1 with 2 disks Historically all our problems with scaling the service have been disk bound but currently we see higher load numbers than bef...

How do I connect to a local network externally in WIndows 7?

I want to connect to my school's network so I can access all the network drives and some other things. Please help what do I do? I have regualr access everyday to the computers. ...

mySQL CPU Usage 99%

We have a java based SaaS application running on mySQL database on a 2 GB Linux VPS. Recently we added RAM to the server and since couple of days, mySQL is taking up 99% of CPU usage. We are quite clueless as to why this is happening. We have made some changes in the my.cnf file as we have read in certain forums. We have enhanced the res...

export image from powerpoint on server

I've been trying to convert my powerpoint presentations into individual images on a Linux server. I tried to use Google's API but because of a bug it only outputs one image. How can I do this? ...

How to get computer's WAN IP address in Java?

How do i get the Wide Area Network of my computer with Java? I try with this: ServerSocket ss = new ServerSocket(port); System.out.println(ss.getInetAddress().getHostAddress()); //wich return 0.0.0.0 then i try with this: System.out.println(InetAddress.getLocalHost().toString()); //which return keenan-a658368c/192.168.1.100 < yes it ...

How to create a share folder for multiple domains on Dreamhost

I have a Virtual Private server with Dreamhost. I'm trying to create a shared folder that all of my domains can access. In the folder I'd like to put PHP classes, and even static files like javascripts. I've created a directory on the same level as my domain folders. I'd like to call a file via something like this... /home/username/sh...

Any dhcp python library?

Is there any library to help me instantiate a dhcp server in python? ...

Do I need to offer an iPhone app under GPL if the webserver software is licensed under the terms of the GPL?

I'm about to write an iPhone / Android app to have a nice GUI on my mobile devices for an Open Source project which is mainly a web software with html frontend. The server is licensed under the terms of the GPL 2. There will be an JSON API which I will implement in the server code. I will release the API on server side under the GPL 2 t...

How does someone monitor web API access rate limit?

I was just wondering how do people manage access to their JSON or other type of APIs. Is there a tool to manage rate limit such as an IP address is allows to access the API 60 times per second. ...

Add directory to path globally on ubuntu server

How can I add my own directory to PATH without editing my local profile's .bash_profile or .bashrc? I need to make the scripts in the directory universally accessible from any user that is logged in. ...

Can't specify Cobertura datafile location for server running under Ant?

I have an Ant build script that instruments some jar files, starts some servers using those jars files and then runs an integration test suite of junit tests against them. I want to capture the cobertura.ser file from each server in a separate file. The servers need to have their working directory set so they can pick up config files. ...

What is the best platform for particular server-side development

Hi, We are building the server side of some gaming platform where a great load of mobile devices (a.k.a - mobile phones for time being) connect to a server, send some small information each second (or even less) and receive some small response based on calculations. The data has a DB back end (sql server for now). We have implemented ...

Managing multiple servers

Hi, I have multiple servers with a few hosting providers. I was thinking of writing a python app to automate many of the tasks I perform on the servers each day like logging in to run selected scripts, monitoring the progress of those scripts and transferring the output to my PC via SFTP when its done. However, I dont want to re-invent...

Can AJAX request data from a remote server?

Hello! Can I use XMLHttpRequests in JavaScript to request a file on a different server than the one from where the request was made? Thank you. ...

How do I set the timeout of a SocketServer in Python?

I want to use server.get_request() to receive requests, but I want it to timeout after 500 milliseconds. Is this correct? Doesn't seem to work... thanks. class UDPServer(SocketServer.BaseRequestHandler): timeout = .500 if __name__ == "__main__": server = SocketServer.UDPServer(('localhost', '12345'), UDPServer) server.get_r...

iPhone: how to send image data to server using JSON?

Hi, I am newbie iphone developer, I am using JSON to send and retrieve data from server. But I used to work with text between iPhone and server. Now I would like to send image data from iPhone to server and vice versa, retrieve image data from server database to iphone. Can anyone show me how I can accomplish this? Thanks ...

mod_rewrite not working well with trailing slash & css breaks apart

I have just one root directory with index.php in it along with two folder img and css. I refer to files in this folder like: src="img/path.png" i.e relative to the root directory. The other day I had some mod_rewrite question & this is what someone gave me, which seems to wrok fine except for trailing slashes and css/img breaking apart ...

Count a group's website visits

I use my webserver's logs to count visits to my website. The software "Webalizer 2" displays these data in plain form with some diagrams. But now I want to count visits by a special group of users separately. I have premium users and standard users. For premium users I want to have a separate statistics page so that I can see how many ...