web

J2EE EAR shared location of read/write resources within clustered environment

Within a J2EE environment (happends to be WAS 6.1 but could be any application server) I need to place a XML file, which is a configuration file, so that I can read and write to it. This needs to be available in a clustered environment so I am looking at using the class path to load the file. I am thinking I can store this file in t...

I need to take screenshots and upload to a webserver, what technology should I use?

I am building a peice of software that needs to allow a user to take a screenshot of his/her computer which will then be uploaded to a web server. What technology should I use? I don't think js has access to the appropriate resources, but would like to keep it browser based. Help? ...

Any way to run python TK scripts on web page?

Is there any way to run a python script that utilizes TKinter on a web page such that a user could run the script and interact with the TK windows without having to download the script or have the appropriate python interpreter? ...

securely pass api key from remote server to authentication page

This is my first time building an authenticated API and I'm running into a few roadblocks. How do I securely pass an API key from the remote client's page to my server (for the user to authenticate connecting his account to the client's page/app)? -dylan ...

Visit page without incrementing hit counter

I frequently visit a certain page on the web to view the hit-counter, but my visit is counted every time and it's inflating the number of actual hits. Is there a way to visit the page without adding another hit to the hit counter? ...

Rich text editor?

I need to create a WYSIWYG editor similar to CKEditor - http://ckeditor.com/ What would be the best way to go around doing this? Just looking for any tips or advice you might have! ...

Improving performance of cgi

I have 5 python cgi pages. I can navigate from one page to another. All pages get their data from the same database table just that they use different queries. The problem is that the application as a whole is slow. Though they connect to the same database, each page creates a new handle every time I visit it and handles are not shared ...

Web-ifing a python command line script ?

Hello everybody, This is my first questions here, so I hope it will be done correctly ;) I've been assigned the task to give a web interface to some "home made" python script. This script is used to check some web sites/applications availability, via curl commands. A very important aspect of this script is that it gives its results in ...

Please help test a CORS issue in Firefox jQuery ajax when 401

Hi, this is driving me nutters. jQuery 1.4.2, windows XP sp3 Here is my test. Load firefox 3.5+ http://plungjan.name/test/testcors.html works Save the file to harddisk and run from there From my office the external works and the internal does not What is also interesting is that I cannot run both in one go. Background: I do a GE...

AntiForgery implementation in Asp.net Forms

I am developing an httphandler to process some requests in Web Forms (NOT in MVC). How could I implement Anti Cross Site Scripting (like antiforgery in MVC)? I want to know mre about the antiforgery mechanism in MVC. ...

Validate page request only client side

I'm using a caching server to cache different instances of some pages. All the pages have two instances.(they have a version for the html when logged in and another when logged out). What I am trying to achieve is the following: I want to make a request to the server based on some credentials(username password for example) for validatio...

Web Service Call on Apache Timing Out

I have a webapp that is trying to contact a web service but it is timing out. The webapp is hosted on Apache. In my development environment I run the webapp on XSP and the web service call works fine. Any ideas on what I might be missing in the Apache config? ...

Java Applet - Download File with Browser

Hello! I'm trying create a new file with a Java Applet, but I don't know how send this file to the response output of the browser, such as any tipical webpage. With a Servlet it is easy with "HttpServletResponse response", but is this possible with a applet? I'm trying do this without sign the applet or use any servlet. Thanks a lot!...

Apply different css stylesheet for different parts of the same web page

Hi, I have a web page with different parts which require different css stylesheets to be applied to each. What I would like to know is how to specify which css stylesheet to use for each different part of the web page. if I leave them all together, the components do not get displayed properly. Thanks C. ...

iis 7 web deploy / source control interaction problem

I have an asp.net web application that I am deploying using ms web deploy to an iis 7 web server. I recently moved the project to source control with tortoise svn. Now web deploy isn't working since it is trying to copy the hidden read-only files (in a .svn subdirectory) that svn is using onto the iis server. How do I configure we...

android as view layer of spring mvc

We are trying to convert one of our J2ee web application to android application. The idea is that android device will be kind of view layer of spring mvc. Basically the andoird application will invoke the controller on the server and the controller will respond with JSON to the android application. Kind of RESTfull way of doing it. Quest...

In Java a socket requesting a web page always times out

I'm requesting a webpage with sockets like this: Socket sock = null; PrintWriter out = null; BufferedReader in = null; try { sock = new Socket( "www.overvprojects.nl", 80 ); out = new PrintWriter( sock.getOutputStream(), true ); in = new BufferedReader( new InputStreamReader( sock.getInputStream() ) ); } catch ( UnknownHost...

Store user profile pictures on disk or in the database?

I'm building an asp.net mvc application where users can attach a picture to their profile. This picture will obviously be displayed in the profile, but other parts of the system too, like a messaging gadget on the dashboard that displays recent messages displays a little profile iconnext to the users message(s). When the user uploads th...

Passing parameters to the event functions

Take a look on this simple sample <input type="button" value="btn1" id="btn1" /> <input type="button" value="btn2" id="btn2" /> <input type="button" value="btn3" id="btn3" /> <input type="button" value="btn4" id="btn4" /> <input type="button" value="btn5" id="btn5" /> <script> for (i=1; i<5; ++i){ var btn = document.getElem...

Web Service using SOAP WDSL with PHP

I've been trying to use a Web Service which has the WSDL file below. The bit I'm not sure about is what I am supposed to pass or do with the first part of it. It asks for a personaldetails object with a tns type to be passed to it but I don't understand what that means? The actual method I am trying to use is called PersonalDetails_Up...