server

android open socket and send commands

Hay Guys, I'm new to Android but heres what i want to do. I want to beable to open a connect to a server using a given IP and PORT, then send commands to the server and get data back. Any ideas what i need to google to help on this? I know how to do it in PHP (using fputs, fgets, and fsockopen). any help would be brill. Thanks ...

have truncate and drop index better performance than drop table, create tale and create index?

I have a simple question: Scenario: Whose Perfomance is better ? 1) DROP INDEX --> TRUNCATE TABLE --> AND THEN FILLUP DATA --> AND THEN CREATE INDEX 2) DROP TABLE --> CREATE TABLE --> FILLUP DATA--> CREATE INDEX I am using a table with millinos of recods. Which of these queries would suit my needs best? ...

Can Weblogic Server's identity JKS contain multiple host/dns names?

Hi All, Server is setup using SSL and have come across the need to have multiple DNS names point to the same site hosted on the server. Addresses below are for demonstrative purposes.. For example, application address is: https://www.server.com/application/ . The server's identity JKS indicates that it's www.server.com. The need is t...

Updating data in a client application, how to avoid polling?

I have a desktop client application that is talking to a server application through a REST API using simple HTTP posts. I currently have the client polling every X minutes, but I would like the data to be refreshed more frequently. Is it possible to have the server notify the client of any new data, or is that outside the scope of what a...

How to save/copy file in php script between two windows servers with authorization?

Hello I want to copy/save file in php script from one Windows Server (source) to second Windows Server (dist). I cant use anonymous "Guest" account, I need to authorize on dist server by user and pass. Have you any idea how to do this? I tried to to this with UNC paths like this: "\path\to\dist\file.txt" but I cant force user authoriz...

PHP Write to file on different server

I need to write to a file that is located on a different server using php. So, I get user data from a form on one server, and then need to write to a text file that is located on another server. Do I need to authenticate or something similar? The second server that I need to write to is a windows server. Is this an issue? Thanks! ...

Rackspace Cloud Sites: Compute Cycles exploding. Very expensive.

Hi All, Since last week my compute cycles (CC) went through the roof (Rackspace Cloud Sites). Normally I stay under the 10,000 cycles per month . Now this month I already have more than 75,000 compute cycles. I don't have more visitors and I did not change anything in the code. I looked in the raw log files, that didn't help either... ...

Flash plugin which allows image upload from clipboard to server

Hi I want to embed a flash to my site, that allows the user to paste an image which is in clipboard, and this images will then be uploaded to the server. Is there a script that can do that? i googled for about an hour now, but didn't find anything that fits my needs. the best thing would be if you also coul crop your image when its up...

best way to build time series server using python

Hi all, I'm interested to build a fast server that serves queries on time series. For example, say I have 1000 time series identified by category name x. The server will take a query submitted by a client process and immediately return the last value associated with a particular timestamp. For example on the client script, someone woul...

an EAR (JEE) application which listen to a socket request.

I want to build a JEE application (EAR) which not only provides web service(WAR) or direct JMS request (EJB), but I would like to also accept the socket request (e.g. UDP packet). I have tried writing a listener with java.net.DatagramSocket, letting it run as separate process, and redirecting the request to my EAR application. the ques...

SQL Server Sequence number issue

Hello, Last week Damir Sudarevic in this community helped with this query to generate a seq number. I have one issue with couple of issues with this one. For some reason records are not displayed by OrderDetailsID in spite of specifying it in order by. The two columns in the query below seq and seqNo displays records as shown below Se...

Getting information from the server for a Gadget (Vista/7)

Hi all.. I want to get some information from my database and show into my sidebar gadget (i am newbee on gadget coding). I tried many ways to do it but i didn't succeed yet. For this purpose, I have prepared a php file to get some values from my database (on the server) and i want to get the content (results) of this php file. I don't w...

Configuration problem in my production server in symfony...

Well, i have a shared host and i have'nt ssh access. The problem is the server structure and symfony estructure... Server has this estructure error/ log/ ... web/ and in web dir we can load web aplication... symnfony structure is.. app/ .. web/ well the problem is that with my domain, if i try to access i have to put www.domainname....

which is a minimalistic python wsgi development server with support for code reload ?

From what I can tell wsgiref - no code reload CherryPy - more than just the server mod_wsgi - all the apache overhead paste.httpserver - paste is a huge package with other stuff in it flup - same as paste, too much stuff. Spawning - never used it but seems lightweight enough. Tornado - not really wsgi + full "framework" Werkzeug - run...

HTML CSS Inclusion

Hi, Might be a silly question, just wanted to know do the following ways on including CSS have any impact on the server response time. If yes, which is the better method and how Way 1 : <link rel='stylesheet' href='css/some.css'/> Way 2 : <link rel='stylesheet' href='http://www.somesite.com/css/some.css'/&gt; ...

Sharing cache directory of cakephp on multiple servers

We having been using multiple webservers for our cakephp application, now the problem is there are two cache directories , server 2 is clearing his cache before doing any insertion in his database. BUT server 1 doesn't know the about the database has been changed , so server 1 cached is not cleared When new web request comes to serv...

How to monitor a .Net server application for fatal exceptions?

I am developing a .Net server application, which is supposed to run continously. I would like to have a notification email sent each time the server process is terminated for any reason. Ideally the email should contain the exception message and stacktrace if an exception caused the termination. I am aware that certain exceptions can not...

How to install NIC card on client computers with RIS server

How to install NIC card on client computers with RIS server I need to install NIC card on the client computer automatically after RIS installation. ...

Any use for a configureless java server?

I love Java. It's great. In fact, I think Java code is just down right sexy! But, there are several things I hate about writing Java web apps: So many configuration files. I have yet to find a server/container/framework/etc that allows me not to have to create a web.xml. And frameworks only ever add to this complexity. I love the way P...

Seamlessly direct multiple domains to a single set of PHP files?

I need to direct multiple domains to a single set of (PHP) files. So I point a domain at my server, which then goes to a single index.php file. This index.php file then detects the domain accessing it and returns the appropriate content. I do not want to add domains or set-up sites manually though as this is for a content management serv...