web-applications

Using the Real Time Messaging Protocol (RTMP) in Flash

Flash can use the RTMP protocol to exchange data between a server and a client. How do you typically access this functionality in AS2 or AS3/Flex? For example to use sockets you use the XMLSocket (AS2) or Socket (AS3) classes. Does the server-side RTMP software use Sockets under the covers? or is it HTTP with tunneling? The Real-T...

Open a direct file on the hard drive from firefox (file:///)

Hi, I have a small php system i created for myself. This system contains a few .doc and .docx file documents. I want to be able to open them directly from the browser and not downloading them. I created a link: <a href="file:///c:/mysite/myfile.docx">myfile</a> But FireFox does not open the link. While href="http://localhost/myfile....

ASP.NET Web Garden - How Many Worker Processes Do I Need?

What is the best practice for deciding how many worker processes to allow for an ASP.NET web application? On one server I manage, creating a new AppPool defaults to 10 (maximum) worker processes. Other people suggest that the normal setting is one. What problem does multiple worker processes solve and what are the techniques for decidi...

How does Jboss Timeout works?

How does timeout in jboss works? How does a web-app knows when to re-direct to a login page? Just to clarify! -I know how to configure timeout on jboss. My question is, how does Jboss know that a session has timed out and when it does, how do you configure it to send the request to login page once the timeout has happened? ...

Writing a web application gui. Which technology should I use?

Hi, I would like to write a somewhat complex web gui application. It will be used to edit certain content by displaying panels and allowing the user to drag items to edit the content. The explanation is somewhat abstract, but the point is that i'm looking for a modern gui writing technology, the more standard it is the better odds of m...

How can I disable Tomcat caching completly?

I'm having trouble with a site im currently working on. We are trying to make facebook connect comments widget. The widget loads every time we make a new request that responds with a 200 OK status. But when it returns with a 304 Not Modified the widget wont load. It all points out to a caching issue. I tryed changin the context.xml <C...

HTTP request dispatch from Web Server to a CGI/FastCGI process

To gain more understanding of how HTTP requests are handled in case of web apps, how does a web server like Apache, dispatch a request to one of its Virtual Hosts? What are the initial programs executed irrespective of the framework (Rails/PHP/Java)? I would appreciate if someone can list the steps taking example of Rails (as I know Rail...

Has PastryKit been successfully implemented by anyone other than Apple?

Has PastryKit been successfully implemented by anyone other than Apple? This article and others give a detailed breakdown and source code of PastryKit but has anyone actually got their own content into this framework? http://davidbcalhoun.com/2009/pastrykit-digging-into-an-apple-pie ...

Which itch does a gravatar scratch?

This is a very serious question: I've seen lots of threads here about gravatars but I couldn't find and answer to this question: what computer identification/authentication (?) problem, if any, are gravatars supposed to solve? Neither the Wikipedia entry nor the official website are very useful. The official website mentions a "globall...

How to make an ANT build load a URL resource inside a waitfor task

I am working on an ANT target for running tests, but I need to have the app server up and running before the tests start, so I'm using the "waitFor" task to ping a URL until it gets a response. This works great except that I need to not only make sure the URL is simply accessible, but also check that a particular status string is present...

Can I let a user select a contact from his iPhone's contact list in a web application?

So that only a single contact is passed to the web application with the explicit permission of the user.. ...

Deployment of .Net web Application on Linux

What are the steps for deploying the .Net Web Application on Linux & apache web server developed using .NET Framework using Visual Studio 2005? ...

Best Java framework to manage/create dynamic security policy rules?

Typically in any web application, the major security concern is securing the resources from the malicious users who are trying to access un-authorized resources. They can change a value in the request parameter and try to access something that doesn't belong to that particular user. For Example: http://blah.com/id=foo a user can change...

Module or tool for web-based data import and ETL?

I'm going to be adding a feature to a web application that allows users to import data. I don't want to reinvent wheel, so I am looking for any module I could integrate that would handle this. The interface should be similar to that of importing a file into Excel or Access plus some more complex mapping and type conversion functions ...

Can iPod touch / iPad apps written in safari run without internet access?

I know that for native apps, after I download them, I can run them without a network access. I also know that for safari webapps, I can run them, and the server can store the data. However, is there a way to write a webpage, save it to my iPhone, allow it to do i/o to the iPod touch itself, and also run it without web access? [Think a...

Web applications - combine or separate?

For our company I'm creating a big Extranet website which will feature a set of sub-applications. I'm a bit puzzled by what should be the right setup of the solution and projects. I have one web application that we call the Portal. It contains the authentication/authorization classes, masterpages, navigation/url routing classes and them...

Exception Handling in a Java Web Application

I am developing a medium size Java Web Application with Struts as MVC framework and simple JDBC at Data Access Layer. I have been searching for exception handling best practices in such an application. I have found several articles, some of them being contradictory, only making me more confused rather than making things clear and simple....

Set a locale for a war different from JVM's ?

My tomcat6 is running in a JVM with locale en_US. I need to deploy several webapps & I want each webapp (packaged in war files) to have a different default locale. Is this possible ? ...

.Net WebRequest Fails all the time after first failure

Okay so here is a random error. I'm dynamically adding images to an html page. The images are on another server that I do not have control of. The images are named something like this: imageName10.jpg imageName11.jpg imageName13.jpg imageName14.jpg imageName16.jpg imageName17.jpg imageName19.jpg Lets take the list of images above. I wan...

How does one protect a webapp to be accessed only by localhost ?

I am planning to run a java web application and solr in the same java container. I want the web application to be publicly accessible but solr to be accessible only to the other web applications in the same container. Solr should be accessible only as localhost and not from outside. Can we write some rules in the web-xml to achieve this?...