It seems I'm coding contact forms for someone or another every week. I've developed a validate/mail client/mail thankyou/save to DB/thankspage process that's fairly robust but I was wondering what lessons others have for performing this most common of website tasks?
...
In spring mvc I have a controller that listens to all requests comming to /my/app/path/controller/*.
Let's say a request comes to /my/app/path/controller/blah/blah/blah/1/2/3
How do I get the /blah/blah/blah/1/2/3 part, i.e. the part that matches the * in the handler mapping definition.
In other words I am looking for something simila...
I'm currently involved in a project where we are developing a large website that relies heavily on an external service (for some functionality) developed by another company. The external service occasionally breaks and doesn't provide us with the data that we need. This is a major problem for us since the requirements on "our" website ar...
I'm working on a Google App Engine project that collects stories submitted by users.
This is how I handle submission errors in the post method of my Request Handler:
# get the title and content using self.request.get()
errors = []
if not title:
errors.append("Please enter a title.")
if not content:
errors.append("Please enter a...
I'm interested in a learning a java web development framework and I'm looking for some recommendations/suggestions on which one I should learn (and why).
Ideally, I'd like the framework to:
Be MVC based.
Have minimal if any configuration
Have an easy to use ORM
Have decent session management
Be easy to pickup
I'm fam...
In some languages, you can do
$a = $b OR $c OR die("no value");
That is, the OR will short-circuit, only evaluating values from left to right until it finds a true value. But in addition, it returns the actual value that was evaluated, as opposed to just true.
In the above example, in PHP, $a will be the value 1 if either $a or $b are...
I'm building a self-hosted web app using CodeIgniter and I need a nice GUI-ified installer which will present the user with a form for database info, validate and test the info, write that info to the database.php config file, and then set up the DB structure.
Any tips for this? Should it be inside of CodeIgniter (as a Controller perhap...
I see the value in using progressive enhancement in web development and I already use it regularly. That said, almost every website I've seen that strongly advocates progressive enhancement is a website with no images that has a div for a title and a div for navigation -- in other words, really basic (and boring) stuff.
Do you know of a...
If yes are there any frameworks/Tutorials/tips/etc recommended?
N00b at Python but I have tons of PHP experience and wanted to expand my skill set.
I know Python is great at server side execution, just wanted to know about client side as well.
...
I have a restaurant reservations site, which helps customers book an event at a restaurant.
When a customer makes a reservation, we take a refundable security deposit from the customer.
After the event is held, we reimburse the amount.
We get a booking fees from the restaurant, as a percentage of the total tab.
I am in the process of im...
Is there a way to have a single UpdateProgress control associated with mupltiple UpdatePanel controls? something like this:
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
.....
</ContentTemplate>
</asp:UpdatePanel>
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<ContentTemplate>
........
I'm writing a small asp.net program used to log information whenever some pdf files is accessed. I use httpmodle to achieve that. But the problem is if the pdf file is big (>1M or so), more than one PreRequestHandlerExecute events will be raised (if I download the file, only one event will be raised). These pdf files belong to another we...
Sometimes we have upwards to 4-6 people either RDPed looking at data in SQL Management Studio, or hitting the server with LINQpad, Toad, etc from various locations while developing in mostly ASP.NET and Flex with WebOrb. Is this bad? Bad in the sense that we are trying to keep our live production app stable and as lag free as possible fo...
So, I need to make changes to an asp.net built site that was recently handed to me. The problem is that I'm a php coder and I don't know jack about asp.net development.
The page I am trying to modify is associated with the contact form. In the contact folder, there is a default.aspx with the following code:
<%@ Page language="c#" Code...
I'm using the new Google Maps API v3.
It works great with Firefox/Chromo/Safari but the map doesn't load in IE6.
My map can be found here: http://tinyurl.com/ykzwb2
Any ideas why the page loads my map in all browsers except IE6?
...
Hi there!
I want to disallow proxies and spambots from posting in my website. What is the best way to do so?
I've downloaded a blacklist and my first idea was to disable each of ips in my .htaccess file, but after downloading the list, I found out that it contained almost 9 million entries.
My other idea was to split each IP in 4 par...
In a book I'm reading, the author says "Most dynamic Web pages on the Internet are created with CGI and scripting languages". This isn't true anymore, is it? Aren't other technologies like PHP or ASP more widely used than CGI nowadays? I'm not sure how to find out stats for something like this. Thanks...
...
My university has a portal which students use to register for classes. If you want to get into a full class, you have to keep checking the portal, and sign up when the class has an opening.
I wrote a tool that can check for openings and register automatically, but it needs the students university username and password. These passwords a...
I'm using the following code to load my Google Analytics (external javascript) in a way that is meant to not block rendering.
However, using both YSlow and Safari Web Inspector - the network traffic clearly shows that the ga.js script is still blocking rending.
/*
http://lyncd.com/2009/03/better-google-analytics-javascript/
Inserts GA ...
How do I perform a search similar to that of Wikipedia on a MySQL table (or several tables at a time) without crawling the database first? (Search on wikipedia used to show you the relevancy in percentage).
What I'm looking for here is how to determine relevancy of the results and sort them accordingly, especially in case where you pull...