web-development

What are the best practices to push site updates from dev/stage/testing environment to production?

Right now I have a development server running a basic LAMP configuration. The production server is a slicehost. But I'm wondering what is the best way to push the instances of the code/db to the stages dev > stage > production. Does it have to do with how you create the stages? How do you do it without bring the site down? Is it even p...

Can WampServer be used sucessfully in production?

See title. Is this a bad idea? So everyone knows, and I don't see how this mattered, we've paid for a windows dedicated box and we have existing IIS apps. We just wanted to use a PHP based CMS which installs easier on apache (since it has some dependencies). So, as the title indicated, windows, apache, php, and mysql are requirements. ...

What causes java.lang.IllegalStateException: Post too large in tomcat / mod_jk

what configuration needs to be tweaked, and where does it live, in order to increase the maximum allowed post size? ...

How can I share a variable or object between two or more Servlets?

I would like to know if there is some way to share a variable or an object between two or more Servlets, I mean some "standard" way. I suppose that this is not a good practice but is a easier way to build a prototype. I don't know if it depends on the technologies used, but I'll use Tomcat 5.5 Thanks. I want to share a Vector of obj...

How to get Developers to Share and work together

I work at a small company and we have 2 (possibly 3) developers (myself being one). Although our assignments don't often overlap, I do see that we occasionally write similar, if not the same code. There is also an atmosphere of competition that I think can drive us to write better code, but is dangerous because it sometimes forces one (o...

How would you allow users to edit attachments in a web application?

We have created a web application, using ASP.NET, that allows users to upload documents and attach them to business entities, like customers, contacts and so on. The application runs on the intranet and all files are uploaded through the web application into a shared folder on the server. I would like, right from the web page, for the...

Handling undelivered emails in webapp

We have typical bussiness webapp that allows our users send e-mails with offerings to their clients. We set user e-mail in FROM field so the client can replay directly to te user. The problem is that because of SMTP protocol undeliverd e-mail notification is returned to our e-mail adress(the address of the account we send e-mails from). ...

Web Services or Custom Protocol?

Hi, I have no experience with web services. Historically I've built client-server systems using proprietary communication protocols (even they happen to be XML). I just spent a few hours looking over Axis2 and it sent a shudder down my spine. The learning curve of WS scares me, and seeing all that XML surround so little functionality ma...

What do you use to deploy your Web Applications?

We're looking to automate our deployment of Web Applications, particularly when going from local development to a remote server. Our current stack is LAMP remotely, MAMP locally, but I'm interested in general what people are using for this task regardless of their environment? ...

Java developer moving to web design, easiest transition?

This question gave me tons of great places to start looking into developing web apps. If I wanted to try to stick with Java, where do you recommend I look? Or, do you recommend I let go of my safety blanket and fly free with PHP, Django or Rails? ...

Spring vs. JSF

I have a dilemma at my job. We're looking to integrate two different J2EE projects and they both use different frameworks for the web component. We're also looking to add more dynamic capability/AJAX to it. One uses JSF and the other uses Spring. Basically we're trying to pick one of the projects and integrate them using that technol...

Should a web app use its own public API to display data?

I'm starting to build a site that as most do, displays data in various ways from a database. I'm building a public REST API as part of this project, and will be designing this in parallel with the main site, as I believe that it's an integral feature. Should the site itself use the public API when retrieving data, or should it use a dif...

Are there any all-in-one packages that help install wamp on a production server?

I need to install amp on a windows2003 production server. I'd like, if possible, an integrated install/management tool so I don't have to install/integrate the components of amp separately. Those that I've found are 'development' servers. Are there any packages out there that install amp in a production ready (locked down state)? I'm aw...

If PHP isn't a "good" language, what should I use instead?

Having read in lots of places that PHP is looked down upon by lots of people, I'm thinking that I should learn a "good" language for web development to add to my repertoire. What would be a good thing to learn? Ideally I want something that will teach me good programming habits as well as having a strong community and online manual, I'm...

What is the longest human name you can expect?

What is the longest name that you should expect to get as input to your program or database? I don't want to truncate unusual names, but I also don't want people to paste a novel in my name field as this could result in security problems. Has anybody ever been bitten by setting this field size too short? ...

Best practice: Self-referential scripts on a web site

On the advice of a more experienced developer, I have always coded my web pages that require user input (form processing, database administration, etc.) as self-referential pages. For PHP pages, I set the action of the form to the 'PHP_SELF' element of the $_SERVER predefined variable, and depending on the arguments that I pass the page ...

How can I make a framework for quickly building similar, but different, sites?

I have the need to build lots of sites that are very similar, but not exactly the same, using ASP.NET 2.0. I'm trying to find the best way to make generating these sites quick and easy. The sites will be used to collect information about a user, and there will be multiple steps for each site. The sites will all collect similar informa...

How can I make two browser windows share the same "session"?

I have an app that needs to open a new window (in the same domain) so the user can view a report, but on some browsers* the new window doesn't share the non-persistent cookie of the original window, which causes the user to have to sign in again. Is there anything I can do to stop the user having to sign in again in the new window? *In ...

How to Limit Download Speeds from my Website on my IIS Windows Server?

When people download files from my website, I don't want them to be able to download faster than 300KB/sec per file. Is there anyway to do this? I'm running IIS 6.0 on Windows Server 2003. ...

How do you prevent a user from posting data multiple times on a website

I am working on a web application (J2EE) and I would like to know the options that are available for handling a double post from the browser. The solutions that I have seen and used in the past are all client-side: Disable the submit button as soon as the user clicks it. Follow a POST-Redirect-GET pattern to prevent POSTs when the use...