web-development

How useful is PHP CodeSniffer? Code Standards Enforcement in General?

I'm dabbling with the idea of setting up PHP CodeSniffer on our continuous integration server in an effort to improve the quality of our code-base. After reading the documentation I'm very excited about the idea of normalizing and enforcing our coding standards. However, I'm left wondering about the actual improvement to our product. I'm...

Rails for ecommerce site

I was planning on using RoR for an upcoming e-commerce site but keep reading comments that give the impression that this framework is not yet fit for this type of a commercial application. What is the state of it? May it be used for large scale online stores etc? Is compatibility and the frequently changing framework an issue to worry ...

Handling asynchronous edits of documents on the web

I am writing a Web application that has a user interface for editing data. The idea is something similar to a wiki where there are edits to chunks of text. What is the best way to handle asynchronous edits from multiple users? The situation I am considering is this: There is a document that is version 0. User A is editing it when it...

Implementing a history feature à la Wikipedia

I am writing a Web application that has a user interface for editing documents. What is the best way to implement a history feature like Wikipedia's where edits to a document can be viewed? ...

redirect_to using POST in rails

Is it possible to redirect using a POST method ? Or should redirects always be made using GET ? The use for this is in the final steps of an order process for an e-commerce site, to send the data to the payment processor, without introducing an extra step for the user. ...

JavaScript Detection / Browser Statistics

This has been asked few times but I think it's still worth checking with you guys for some more input. All my websites use Google Analytics for stats. Since it relies on JavaScript I thought it was important for me to check how many people actually have JS enabled in their browsers enabled/disabled. I remember I usually checked w3schoo...

Small projects ideas to teach beginners web developent using ASP.Net

I asked from few weeks ago this question: How can I teach a beginner to write ASP.NET web applications quickly? And i got some good answers but i liked the answer which tell me to make some small projects with them (me with the beginners) So i decided to collect some small websites ideas to do with them (i do a part then they complete...

How: Ruby on Rails to build a basic site

I'm a compsci student who wants to get learn a little about web development -- I learn best by doing. I know basic html/css/php/javascript/xml, but since Ruby is one of my favourite scripting languages, I figured I'd learn Ruby on Rails. I'd like to build a basic website for a friend's club at school that just provides information abou...

Servlet page decoration: Do people use Tiles, Sitemesh, or something else?

I've used Tiles and Sitemesh for a number of years and while I personally prefer the Sitemesh style page decoration, I generally don't see a lot of mention of Sitemesh or Tiles on the Internet. Do people use Tiles and/or Sitemesh actively, or are there other libraries that have taken over in this capacity? ...

How do you illustrate web site navigation?

Hi everyone! I want to know if there is a "standard" way to illustrate a web site navigation (mostly "common" websites, not big web applications). Can I use UML for that? I'm looking to make a diagram of the navigation and not a "working prototype" (like you can do with balsamiq or others) Thanks! ...

.htaccess rewrite to redirect root URL to subdirectory

Trying to get www.example.com to go directly to www.example.com/store I have tried multiple bits of code and none work. Please help! What I've tried: Options +FollowSymlinks RewriteEngine on RewriteCond %{HTTP_HOST} ^example.com$ RewriteRule (.*) http://www.example.com/$1 [R=301,L] RewriteCond %{HTTP_HOST} ^(.+)\www.example\.co...

Keep Elements on Same Horizontal 'Row'

I have the following div in a page, but the button is being rendered below the input, despite there being plenty of room for them both in the same 'row' as I want them. How can I force this 'same row' issue? <div id="pageHeader" style="text-align: right;"> <asp:TextBox ID="searchInput" runat="server" CssClass="searchTerm"> </as...

MVC or Webform Architecture for new site

I'm developing a website , job portal. I have 2-3 years of ASP.NET webform development experience, I want to create a professional job portal site (to improve and learn more) but trying to decide on best architecture. Any suggestions or advice will help... Thanks ...

re.search() breaks for key in form.keys() loop

Perhaps I am just crazy or missing something really basic. Why would this happen? If I use this url index.cgi?mode=pos&pos_mode=checkout&0_name=Shampoo&0_type=Product&0_price=4.50&0_qty=1&0_total=4.50 which runs this code form = cgi.FieldStorage() for key in form.keys() print key if re.search("name", key): print "F...

How to run ASP.NET web application using mono?

Hi, My department doesn't have a server to host web applications developed in ASP.NET. They do have RHEL boxes having Apache web server, which won't host my ASP.NET web pages. I inquired and they said they have mono which would run my .NET applications. I created a simple web page and it worked on my windows laptop. My question is wha...

ASP.NET after form submission reload a fresh version of the exact same page

I'm doing a form submission on my ASP.NET page. After the user has pressed submit I want them to have a completely fresh version of the page so that they cant press reload and resubmit and so its a completely clean start. I gather that Server.Transfer() is bad, I know I could maybe post a random string in the URL. But is there a better ...

What do you believe to be the best CSS Grid system and why?

I've been using Nicole Sullivan's "Object Oriented" CSS grid for a while now (hate the term, though) and have found it to be quite good. However, as I get more experience with grids, I'm noticing a lot of other frameworks out there; in particular the 960 Grid System and the Yahoo! UI Library. I'm looking for other peoples' experiences ...

How does the backend look for AjaxLink() call in Zend Framework

I'm trying to make some ajax-functionality in my web application, but I cannot get all puzzle pieces to fit: I want to add a link that, when clicked upon, will open a new input (text) field that can be filled by the user. In the back-end, I want to do some administration that the link is clicked. I want to do according to the Zend Fram...

How can I Increase the number of visitors to a website?

I saw someone else ask this question recently but it was closed as spam before many decent answers appeared because they included links to their site. I am however interested in genuine answers to this on a more general basis. Avoiding talking about specific websites, what techniques and practises can people recommend to raising the le...

Ugly user interfaces

I have seen numerous ads/sites poking fun of a cluttered user interface by setting it up side by side with, say, Google and having a caption like: this is your site / this is theirs. That’s all very funny, but actually, Google only needs a textbox and a submit button. What about when your page is a data entry form, say an order entry ...