web-development

Are you human? (or How to prevent spam)

What mechanisms do you know that prevent your site from being abused by anonymous spammers. For example, let's say that I have a site where people can vote something. But I don't want someone to spam something all the way to the top. So I found (a) creating an account and only allowed to vote once and (b) CAPTCHA to decrease spam. What ...

[ASP.NET ERROR] The request was aborted: Could not create SSL/TLS secure channel.

I'm posting this on behalf of a co-worker. He gets a "The request was aborted: Could not create SSL/TLS secure channel" error while using a WebRequest object to make an HTTPS request. Th funny thing is that this only happens after a while, and is temporarily fixed when the application is restarted, which suggests that something is being...

Can't get my event to fire

When loading a page for the first time (!IsPostback), I am creating a button in code and adding it to my page, then adding an event handler to the click event. However, when clicking the button, after the page reloads, my event handler does not fire. Can anyone explain why? ...

blockquote vs div

Is there any benefit in using a blockquote over a div? I was looking at a website's mark up to learn css and I couldn't figure out why the blockquote was being used. EDIT: Yeah sorry I didn't clarify, it was used to hold the div tag with username as text and an input tag. There was clearly no quote. ...

What framework you recomend for fast secure web application development?

I need to choose a framework for a new project I will start from scratch. The application performance requirements are very low. It needs to allow fast development and enforce good development practices. The final application should be easy to deploy and handle well database migrations. The application will handle most of the time simp...

Pros and Cons of different approaches to web programming in Python

I'd like to do some server-side scripting using Python. But I'm kind of lost with the number of ways to do that. It starts with the do-it-yourself CGI approach and it seems to end with some pretty robust frameworks that would basically do all the job themselves. And a huge lot of stuff in between, like web.py, Pyroxide and Django. Wha...

Web Development: First-timer, where to start?

I have never developed a web page before. Now I am tasked with being the developer for our clubs website at Iowa State. I was wondering where and how I should start learning how to build a webpage from scratch. Which tools/technologies should I use? Any books to read? Websites to learn from? *I am previously experienced in Java, wi...

Recommended web development environment on Mac?

I'd like to get back into some web development after primarily working on native applications, and I'm looking for advice on how to set up my web development "stack" on my local Mac. Ideally I'd like a setup that is easy to setup and maintain, but remains flexible and extensible. In particular, I plan to use Python, so mod_python is ...

What web control library to use for easy form creation with many different types of input fields?

I'm about to create a web application that requires a lot of different web forms where the user needs to be able to input a lot of different types of information. What I mean is that one of those forms may require some text input fields, some integer input fields, some decimal input fields, some date input fields, some datetime input fie...

What is the best technique for consistent form, function between all web browsers (including Google Chrome)?

Short version: What is the cleanest and most maintainable technique for consistant presentation and AJAX function across all browsers used by both web developers and web developers' end-users? IE 6, 7, 8 Firefox 2, 3 Safari Google Chrome Opera Long version: I wrote a web app aimed at other web developers. I want my app to support the...

Web Development Methodology

In your opinion, what is your single most favoured methodology for developing a web application? Broad Case: I am contracted to assemble and manage a team to begin the creation of a large web app, what methodology would suit best? Edit: Methodology being the team/work practice NOT architectural ...

Accessible controls for ASP.NET

In my last job we ended up rewriting the complete ASP.NET stack (forms, controls, validation, postback handling, ajax library etc...) - the reason I was given was that the ASP.NET controls were not accessible enough, not were any of the third party controls that were assessed for the project. Can anyone point me to good accessible ASP.N...

Counting number of views for a page ignoring search engines?

I notice that Stack Overflow has a views count for each question and that these view numbers are fairly low and accurate. I have a similar thing on one of my sites. It basically logs a "hit" whenever the page is loaded in the backend code. Unfortunately it also does this for search engine hits giving bloated and inaccurate numbers. I ...

Test Driven Development in PHP

I am a web-developer working in PHP. I have some limited experience with using Test Driven Development in C# desktop applications. In that case we used nUnit for the unit testing framework. I would like to start using TDD in new projects but I'm really not sure where to begin. What recommendations do you have for a PHP-based unit test...

Automatic Timeout Web Client Use

One of the problems I have come accross having complext tasks on the browser is with automatic timeouts. Currently our site has a sliding expiration of 30 minutes. Normally this isn't a problem because we use asp.net and most of the time the users update one or two fields and then submit the form. This obviously keeps the session acti...

Is there a Firefox 3 addon similar to View Source Chart?

Before I upgraded to Firefox 3 I used to constantly use the View Source Chart Firefox Addon which shows the source HTML in a very organized, graphical form. Unfortunately, this addon is only for Firefox 2 and the beta version for Firefox 3 now costs $10 on the author's site. Anyone know of a similar addon that works for Firefox 3? (of...

Top tips for secure web applications

I am looking for easy steps that are simple and effective in making a web application more secure. What are your top tips for secure web applications, and what kind of attack will they stop? ...

Why do some websites add "Slugs" to the end of URLs?

Many websites, including this one, add what are apparently called slugs - descriptive but as far as I can tell useless bits of text - to the end of URLs. For example, the URL the site gives for this question is: http://stackoverflow.com/questions/47427/why-do-some-websites-add-slugs-to-the-end-of-urls But the following URL works j...

Child spans of the same width

I am trying to create a horizontal menu with the elements represented by <span>s. The menu itself (parent <div>) has a fixed width, but the elements number is always different. I would like to have child spans of the same width, independently of how many of them are there. What I've done so far: added a "float: left;" style for every s...

Create a variable in .CSS file for use within that .CSS file

We have some "theme colors" that are reused in our CSS sheet. Is there a way to set a variable and then reuse it? E.g., .css OurColor: Blue { H1 color:OurColor; } ...