server

I cannot get Java JMX server to bind to 127.0.0.1 only!

I have a java server. I want to be able to connect to it with a JMX client. I do this: JMXServiceURL jmxUrl = new JMXServiceURL(null,null,JMX_PORT); JMXConnectorServer jmxRemoteServer; jmxRemoteServer=JMXConnectorServerFactory.newJMXConnectorServer(jmxUrl, jmxEnvironment, server); jmxRemoteServer.start(); This works. I can fire up JC...

Connect to oracle server in NSIS

Like we can connect to SQL Server using MSSQL_OLEDB plugin, how can we connect to Oracle server in NSIS? Also what if Oracle server is on some remote machine? ...

Tomcat memory and virtual hosts

Hello; I have a VPS on which I serve Tomcat 6.0. 500mb memory was enough, when I had only two applications. Last week I deployed another web application and formed a new virtual host editing Tomcat server.xml. But the server responses slow down, linux started to eat the swap. When I increased the memory 750 mb it become stable again. Bu...

Can the Django dev server correctly serve SVG?

I am trying to serve a svg map using: <object data="map.svg" type="image/svg+xml" width="400" height="300"> <embed src="map.svg" type="image/svg+xml" width="400" height="300" /> </object> In Firefox this leads to a plugin prompt. If I rename map.svg to map.xml it shows the image correctly. I assume this is because the Django's dev...

Put all webapps in the server offline

Sometimes we need to do maintenance in the web server. In the period of time that this maintenance occurs, I want that a user-friendly page be displayed to anyone that tries to access our apps. I know about the app_offline.htm file. But using this "trick" I would need to put a file per web application in the server, right? We use IIS ...

Unable to Connect to Sql Server using SqlServer class?

Hi! all, SqlServer server = SqlServer.CurrentServer; try { server.Connect(); } catch (System.Exception ex) { //Response.Redirect("Error.aspx?errorPassCode=" + 2002); Response.Redirect(String.Format("error.aspx?errormsg={0}&stacktrace={1}", Server.UrlEncode(ex.Message), Server.UrlEncode(ex.StackTrace))); } SqlDat...

how to invoke terminal.app from a php script?

Hello all, I want to invoke terminal.app from a php script is this possible if not then how do we invoke terminal using applescript/shell script. I want to use php because there is no other option for me. also after invoking terminal i want to navigate to a folder and run xcodebuild command from there. Does someone knows about it? ...

Is it possible to set Android apps to connect to dev servers?

When building desktop or web apps, its easy to add fake hosts file entries so apps will connect to dev servers instead of production ones - is something similar possible for Android apps? ...

Script to pull out info out of very large drives

Hi Guys, I need a script that can gather folders/files information from large drives (600GB to 1TB). The info that I will need are: Full name/path of the file File Size Date Created Date Modified Date last accessed. So far I have the code below: dir 'e:\' -recurse | select FullName,Length,CreationTime,LastWriteTime,LastAcces...

How to combine P2P and web-server approaches?

I would like to program a computer game which should be played by several participants. And I need to do it in two different ways. The first way is to program a web site where people can login and play. The second way is to have programs running locally and exchanging data with each other using P2P approach. I know how to program both w...

How to execute a service once the Grails Server is ready

I have a Grails application which provides dummy webservices for itself. In the real world it could call webservices on another machine, but during development and testing we need be able to access the internal webservice to populate tables. This can't be done during the bootstrap as the internal webserver has not started yet (Grails doe...

zend framework: models cannot interact with database on the server

i have just finished my first site built with zend framework and all works great on my local machine. then i uploaded it to the server (godaddy) and all works except any connection my models do with the database. i have made a connetion to the database with regular PDO with the credentials in my application.ini and it worked, and i can ...

iphone/mac - how to download files with AsyncSocket

Hi guys, I have a remote server with some files. I want to use AsyncSocket to download a file, chunk by chunk. I would like to send HTTP requests with ranges through the socket and get the appropriate chunks of data. I understand how to do this on localhost, but not from a remote server. I really don't know how to use the connectToHost ...

Registering and using out-of-proc COM server in an isolated way (SxS)

Hi, We have the following configuration: IE->Creates new process->Process uses out-of-proc COM server We would like to enjoy side-by-side for our new process and out-of-proc COM server which are deployed in an isolated folder. We thought using COM registration with relative path but it looks that when trying to load the COM server, svc...

Do I absolutely need a minimum of 3 nodes/servers for a Cassandra cluster or will 2 suffice?

Surely one can run a single node cluster but I'd like some level of fault-tolerance. At present I can afford to lease two servers (8GB RAM, private VLAN @1GigE) but not 3. My understanding is that 3 nodes is the minimum needed for a Cassandra cluster because there's no possible majority between 2 nodes, and a majority is required for r...

php noob-file upload script problems

I have this script and when i try to run it, it just says waiting for localhost and never actually runs. If i go to my localhost i can run other files with no problem. What's wrong with this script? <?php $dir = 'Images/uploaded/'; if($handle = opendir($dir)) { $file = readdir($handle); while($file !== false)...

Why does my Eclipse Galileo not have Windows->Preferences->Server page?

I downloaded Eclipse Galileo (3.5.1) SR1 and Eclipse SDK 3.5.1 and neither of them have a "Server" page on the Windows->Preferences screen. Any ideas why? Tx. ...

ArcGIS Server - HeatMap for to identify hotspots on a cached service

ArcGIS Server lets you create cached map services. These can be consumed by various applications (ArcGIS Desktop, web apps, etc) I would like to get an idea on which areas of my cache are getting hit the most. I would like to visualise these results using a heat map overlaid onto the same cached map. I was thinking of utilising something...

What web server should I install?

I have Windows 7 Enterprise and I want to run a web server on this computer and I wander what is the best web server would be in my case. I have several requirements to the web server. It should be easy to install and set up the server. Just "click", "accept" and that's it. It should support MySQL and PHP (with GET, POST, SESSION, and ...

Best practices with object manager

I'm kinda new to c++ programming and I'm coding an object manager to a multiplayer game but I'm having some doubts about how to manage the client objects. The client object is composed of connected client parameters (like IP, connected time, received data etc). In order to avoid memory fragmentation, I'm planning to allocate a object po...