web-development

Java Spring Modular Application Design

Any good resources to learn about designing a good java spring modular application. ...

Adding an mouse event listener to a bitmap with ActionScript 3.

Hi, I'm new to ActionScript 3 (without any experience with Flash development) and I was wondering how I would go about adding an mouse event listener to a bitmap? The code works with a sprite, just not with a bitmap. Here is a shortened version of the code I'm trying to run, I hope it makes sense! var fsImageRequest:URLRequest = new URL...

Download prevention like RapidShare.com? hows is it working?

Hi, I want to prevent downloading the zip file from my site. Only allowed for some times(at the time of payment). How can it me possible to expire that link or somthing like that to prevent my zip files. How the rapidshare.com working? we can see the url but not possible to download ?? ...

Using non persistent Http Cookies to deliver out of band data to the browser

Imagine that your web application maintains a hit counter for one or multiple pages and that it also aggressively caches those pages for anonymous visitors. This poses the problem that at least the hitcount would be out of date for those visitors because although the hitcounter is accurately maintained on the server even for those visito...

Controller's life-cycle in Spring MVC

What is the lifecycle of a Controller in Spring MVC? When is the controller created, when destroyed? Is it shared among multiple threads? Can it be in use simultaneously by more than one request. ...

Where can I get an ASP.NET MVC Designs?

I am looking at the ASP.net gallery of designs that they have available and I cannot find anything that I can use as a base to customize. The project is a basic prototype so I cannot spend money on a designer yet, but I cannot let it go with the default scheme. Any ideas on where I can find a good mvc design that I can modify. As ma...

Is there an easy way to install RMagick?

I am trying to install RMagick on my slicehost(Linux Hardy) instead of compile from source, here is what I did: $ sudo aptitude install -y imagemagick $ sudo aptitude install -y libmagick9-dev $ sudo gem install rmagick After installed, it reads GIF with no problem, however for JPEG and PNG, I keep getting this error: Magick::ImageMa...

Basic web-crawling question: How to create a list of all pages on a website using php?

I would like to create a crawler using php that would give me a list of all the pages on a specific domain (starting from the homepage: www.example.com). How can I do this in php? I don't know how to recursively find all the pages on a website starting from a specific page and excluding external links. ...

How can I assign a handler to handle ANY URLS?

I am doing a website with a REST architecture and I am finding the latter difficult to do. I want to be able to handle HTTP Requests like these : GET /myapp/5445/ HTTP/1.1 ... In an ideal world, I would code my own server and handle all the HTTP requests myself but I actually want to do this project with CGI or PHP and I want to be abl...

Finding out your website visitor IP address in Java

Hi, Is there simple and reliable way to detect your website visitor IP address using Java. I am trying to make use of Akismet to detect spam on my blog post/comment. The API require me to specify the IP address of the commenter. Thanks =) ...

Self Testing Tips?

Basically I'm wondering if anyone has any tips for ensuring your code is well tested without getting any help from anyone else in a limited time frame? In the past I've always been able to find someone else to do testing on my code or had a dedicated quality assurance team go over everything and find all the errors. I'm usually pretty ...

What, how to gain from websitespark?

I got OS and software licenses from websiteSpark, I am asking how "from point of view" to gain the most from websitespark. for example, they give windows server 2008, but i found it useless, because i asked many hosting companies and they told me that getting hosting with its windows is a must, and they don't allow others to install O...

I want to use security through obscurity for the admin interface of a simple website. Can it be a problem?

For the sake of simplicity I want to use admin links like this for a site: http://sitename.com/somegibberish.php?othergibberish=... So the actual URL and the parameter would be some completely random string which only I would know. I know security through obscurity is generally a bad idea, but is it a realistic threat someone can find...

Most elegant way to implement animated "sliding panels"...

Hi, I'm attempting to implement a similar animated "sliding panels" effect as the Aveda website. I'm a little overwhelmed by all the options and Javascript libraries that are available. And a little confused after examining the Aveda website code. Any recommendations as to how to approach this task please? Which Javascript/Effects...

Multiple developers keeping CouchDB in sync with eachother

I'm considering using CouchDB for an upcoming web development project. What is the best way to keep the CouchDB document repo in sync between various developers who are all running the application locally? An Example: Suppose Developer A creates a new view or design document in Couch or just simply adds a field to an existing view. Th...

Why do quotes turn into funny characters when submitted in an HTML form?

I have an HTML form, and some users are copy/pasting text from MS Word. When there are single quotes or double quotes, they get translated into funny characters like: '€™ and ’ The database column is collation utf8_general_ci. How do I get the appropriate characters to show up? Edit: Problem solved. Here's how I fixed it: Ran...

Cannot find .htaccess, can I create one? What else can I use to redirect html pages to blog posts

I have a website and want to redirect all its pages to posts on my blog. I browsed through my website folder but could not find the '.htaccess' file. Is it provided by the web hosting or can I create my own and use it? Can it be only used with Apache server. If that's not possible what other option do I have for redirection. Janice ...

How to create a deliverable for a front-end engineer?

This is a question about the development workflow of front end engineers. I am starting a project for a rather large site with lots of pages, each page has multiple steps, and it's very difficult to lay out all the content in a spreadsheet. The content of each page will be delivered in a spreadsheet cell, and some pages have multiple v...

Adding ASP.Net form to an existing deployed ASP.Net Web Application

I have an ASP.Net web application that is deployed to a number of different customer's servers and hosted within IIS (6 or 7 depending on the site). The system is based around a set of fairly complex ASP.Net (aspx) pages. Due to rapidly changing requirements we often have to add forms to the system. At the moment we use a fairly clumsy a...

The right way to do radio buttons?

So.. I have been trying to avoid radio buttons at all cost in my web development projects because I just cant figure out the right way to code them. Do you set a label for radio button.. if so, how does that work for screen readers. The way I have been doing most of my forms is by using un-ordered lists. Each input being a list item. ...