web-applications

How do you support a web app with hashed or encrypted passwords?

When supporting a new web app in an enterprise environment, it is often necessary to log in as a specific user in order to diagnose a real or perceived problem they are having. Two opposing issues apply here: Best practice is to use hashed or encrypted passwords, not clear text. Sometimes, there is a third-party SSO (single sign-on) in...

Reading files in a .NET project

I have a C# .NET web project that I'm currently working on. What I'm trying to do is read some files that I dropped into a dir which is at the same level as fileReader.cs which is attempting to read them. On a normal desktop app the following would work: DirectoryInfo di = new DirectoryInfo(./myDir); However because it's a web proje...

Version controlled production environment

My question is, how do I version control the production environment in a good way? This is our current environment: (Internal server) Development - Version controlled source code (Customer server) Acceptance test environment (Customer server) Staging environment (Customer server) Production environment When we release new functional...

How to manage application resources?

We are developing a web application which is available in 3 languages. There are these key-value pairs to translate everything. At this moment we use Excel (key, german, french, english) for this. But this does not work well ... if there is more than 1 person editing this file, you have no chance to automatically merge the different fi...

A better way of filling out an excel spreadsheet on a web server in ASP.NET than interop?

Is there a better way I can fill out a spread sheet on a web server (using asp.net) than using interop? EDIT: I wasn't very clear as to what I require: I have a template that I must use that is provided by our customer. In the template are some macros that are password protected that I do not have access to so I cannot generate the exc...

What is the preferred way to serve web applications written in Lisp?

I've been researching modules for Nginx (my preferred webserver) to serve a Lisp webapp, but I haven't been able to find anything. Is there modules for Nginx, or is there better ways to serve Lisp webapps? If so, what are they? ...

When scoping a project, how can I capture the marketing feature requirements to ensure a project's success?

In the situation of having a project initiated by a marketing or sales team, how can we capture the not so obvious requirements that the project be marketable, or even better, self marketing? In many cases the marketing/sales team can hardly enumerate the functional specs of what the project should do, let alone describing features to ...

How to scan a webpage and get images and youtube embeds?

I am building a web app where I need to get all the images and any flash videos that are embedded (e.g. youtube) on a given URL. I'm using Python. I've googled, but have not found any good information about this (probably because I don't know what this is called to search for), does anyone have any experience with this and knows how it ...

How to test a webapplication?

If I have java-webapp (servlets), what is the best way to create automated tests for this application? Should I start a server? But that is very fragile. Should I call the servlets directly? But how can this be done? I don't know how to create a ServletResponse/ServletRequest. And what is the best way to test the functionality of the w...

One or multiple servlets per webapp?

I know, it depends on the webapp. But in the normal case, what do you do: one servlet, that serves different pages (like an standalone-application with changing content) or for every page a single servlet. Take for instance a blog. There is the start-page with the most recent blog-entries, an article-view for displaying one blog-entry a...

How much to charge a client for hosting their website on my webserver?

I'm currently working on a small web application for someone. They are on a relatively tight budget most of which is paying for the time that I'm spending developing the project for them. They are going to need some web space for the project. The site is small enough and will utilize a small amount of bandwidth so I don't mind setting ...

Abort java webapp on startup

My webapp is part of a larger EAR that is deployed into a websphere server. The server hosts number of other apps on the same virtual server. My webapp has some initialisation/health checks in a servletContextListener->contextInitialized method. I want to make the webapp unavailable if initialisation/health checks fail. What is a realiab...

What is the best way to allow both a servlet and client-side scripts read the same file?

We want to share user validation configuration between a Java validation class (for sanity checking) and a Javascript-enabled form web interface (for usability). What's the best way to deploy this static file in our web application so that it is both available to the server-side code, and available via a URL accessed by the client? So f...

Book/Resource about setting up load balancing and fail over for Servlet based Java web application

Hi, We're creating a web system using Java and Servlet technology (actually Wicket for the presentation layer) and we need our system to be available nearly always as our customers will be quite dependent on it. This has lead us to look for a good book focusing on the subject or another resource which explains how to set up a more redu...

Best way to implement fine-grained authorization for a web application?

I'm working on a Rails web application, and it's currently being used by some 20 users. Some parts of the application are only accessible by some users, so we already have a basic authorization framework in place, which I implemented using the acts_as_authenticated plugin. The users' privileges depend on which department they work in, ...

Are you writing custom pages for iPhone web apps?

I read the tutorials for web applications and the special rules you can put into style sheets. Are folks finding they can just tweak their style sheets to serve up content to iPhones or do they deliver custom iPhone specific pages? would you bother with this if you were going to create a specific page anyway for mobile users ? (even if ...

Advice on which language/Framework to choose for web application?

I am a c++ developer trying to create a web application using a language or framework that meets the following criteria: Very fast development time Text searching and other text manipulation Easy to configure and maintain the application Tagging system support Free (as in Beer) IDE 3-4 weekend project Can anyone suggest a language or...

What Web services/Interface to use?

We are designing a system with C/C++ back end server and C# .NET front end. We would like to provide a web interface similar to C# .NET front end. Can you please suggest the best way to do it? e.g. Whether to embed the web server in back end server itself? How to have maximum common code between in .NET and web interface to minimize the ...

Building my first ASP application

I've just been tasked with building a web application using ASP (.net) and am looking for some advice on where to start. In a nutshell the application needs to be able to. Handle user verification / authentication Handle sessions Do SOAP messaging The application is intended to act as a front end for system functions that are acces...

SQL Server NOLOCK on queries run for authorization

During the course of our application login there are several queries ran, all around validating the login. In evaluating them I noticed that one of the queries is run without the NOLOCK hint. There does not seem to be any particular danger of dirty read because the data would hardly ever change. Thinking about it from an attempted DOS...