web-development

What is the best way to validate markup in a component-based web framework?

If you're using a component-based (aka Pull-based) web framework (e.g. Tapestry, Wicket, Struts et al), how do you determine that your markup passes W3C validation? Two approaches come to mind: Crawl the running app Pro: All the markup required for validation exists on the page. Cons: Can be very complicated to hit every page and...

Using Netbeans to create a Java webservice, suddenly all of my methods are being treated as "webservable"

A few weeks ago, my code was working perfectly as expected. I returned to it, and for some reason, when I tried to deploy my web service, it was refusing to, since one of the methods handles and returns a weka.core.Instances object. I'd come across this error before, since Web Services cannot accept or return complex objects without some...

Using Postgres in a web app: "transaction aborted" errors

Hi, Recently I moved a web app I'm developing from MySQL to PostgreSQL for performance reasons (I need functionality PostGIS provides). Now quite often encounter the following error: current transaction is aborted, commands ignored until end of transaction block The server application uses mod_python. The error occurs in the hailing f...

How to store Markdown comments

I want to use Markdown for my website's commenting system but I have stumbled upon the following problem: What should I store in the database - the original comment in Markdown, the parsed comment in HTML, or both? I need the HTML version for viewing and the Markdown version if the user needs to edit his comment. If I store the Markdown...

Web API to make phone calls

Hello, is there an API to make phone calls an have a phone conversation in the web (maybe flash based?), like skype but without having to install software? thanks ...

From PHP to Java. Any advice?

I've been doing web application development for the last 3 years in PHP. I'm now on the verge to give Java a go. My last use of the language was nearly 8 years ago and was mostly academic. I'm reasonably well acquainted with PHP's object model (version 5) and I have almost exclusively been coding in OO. I would now like to transport th...

How to auto-complete a form field with a city and state?

I have a free form textfield that allows a user to type in a city and state, e.g. "Chicago, IL". What I would like to do is when the user starts typing, to begin displaying suggestions of completed city+state combinmations (much like how Stackoverflow auto-suggestions the "tags" field below when you create a question). Question: Does a...

is GWT right for me?

I've been a C++ programmer for 15 years... I've done NO Java development... I HAVE built websites with HTML, CSS, Javascript and PHP... Now, my question is this: Is the productivity gain I'll get from using something like GWT really worth the learning curve for me? I don't really have a strong desire to learn Java... I've never used Ecl...

How to include a separator image on a menu built with ul and li?

I am trying to include a small image as a separator in my menu and I am having the time of my life (sarcasm). In order to create a menu like below I am using the code under the image. <ul id="div-menu"> <li class="current"> <div class="menu-fill fill"> <div class="menu-left left"> <div class=...

What is the secure and effective way to keep visitor's view stat? (cookie only is not enough)

The requirements: For each item in the shop, keep stat about visitor's view. During the first 15 mins, do not count the same visitor even though that visitor re-open the web browser Need a way to protect visitor's cheating (The above 2 requirements should always be apply) For example of cheating, If we're using Cookies, this is not goo...

S3 browser upload via POST: unable to handle errors gracefully

I am writing an app where I want the customer to be able to upload to Amazon S3 straight from the browser. I can make this work just fine. But when errors occur, I want to handle them more gracefully than splattering an XML document on the customer's screen. I have a scheme that I think would work, but it's failing. Here's what I'm t...

How to detect if user is connecting from a recognized computer?

On many banking and investment websites, the site prevents users from logging in from an unrecognized computer without first answering an additional question or activating that machine. How do developers typically create this feature? For example, here is the message that Salesforce.com gives when I connect to my account from an unreco...

Deciding on a blog URL scheme with regard to python performance

Hello, I'm writing a blog in Python and have come to the point where I have to decide on the URL scheme to use. It's tempting to just list the entries start to end, like: http://myblog.com/1 http://myblog.com/2 ... http://myblog.com/1568 And on the server side I would just have the blog entries in a python list. My fear though is tha...

Captcha validation logic?

I need to write a captcha service for the integration software I am working on. After some thinking I think I don’t fully understand how captcha works tehnologically (I do understand how it works functionally) and therefore haven’t been able to make some design decisions. A few things that bother me are: Should I keep a session for eac...

Web design side decoration

I was wondering if anyone know of some good tutorials on how to design and code side decorations(or whatever right term there is) like the ones on these website: http://www.buckle.com/ I'm referring to the spring yellow and red flowers/butterflies Thanks ...

Tool for drawing UI Mockups for a web application..

One of my clients have asked me to give UI mockups of all pages of my web application... I found Balsamiq which seems to be a good one... Any other tools.... What would you use for drawing UI mockups? ...

Developing websites for data entry

We are in the process of developing a website to replace an old green screen data entry application. The problem is that our users are accustomed to FLYING through the screens (i.e. blind typing ... they never need to look at the screen or their fingers). They are very nervous about moving to the web, and I was hoping to assuage this n...

Websites & Web Application using asp.net mvc..

I was wondering if people could post some examples of interesting websites and web apps that were built with asp.net mvc? Stackoverflow.com - Programming Q/A Codeplex.com - Open Source Project Community and other stackexchangesites... Any others.... ...

ASP.net 3.5 Send Web Page e-mail

Hi there, I need a source code in C# or VB to send a web Page (inside a div) by e-mail, is it secure? Thanks in advance ...

Should I switch to a language other than Java when programming for web?

I have a crawler-like software that populates tables after reading and parsing particular web pages. I have written it in Java (using Hibernate). I already have entities and other logic. I want to show these tables in a web page, the web page will improve eventually, there may be register/login screens, lots of other things. My questio...