web-development

Framework - what is a PHP framework?

What are the advantages/disadvantages of using a PHP framework over just writing direct PHP code? ...

What is a good tool or site to use to performance test a web page/site?

What is a good tool or site to use to performance test a web page/site? I am trying to find a good baseline to detect how fast my page will load on one hosting provider vs another. I initially used http://www.freespeedtest.com/ but like to get opinions and links for others. ...

Web frameworks performance comparison

I'm looking for real life benchmarks comparing web frameworks based on dynamic languages (Python, Ruby, Groovy and Lua). Even better if they're compared up against classic solutions based on PHP, Java, ASP.NET maybe even Perl. I'm particularly interested in: Django Ruby on Rails Grails Zend Framework Struts2 EDIT: As for Sean's answe...

How does the "mark as read" system on webforums work?

I've wondered about this for some time now. I'm wondering webforums implement the option to highlight something you haven't read. How the forum knows. Since most webforums have a function to show you all posts since your last visit, they must save the last time you visited one of their pages in your userdata in the database. But that d...

Difference between frontend, backend, and middleware in web development

I was wondering if anyone can compare/contrast the differences between frontend, backend, and middleware ("middle-end"?) succinctly. Are there cases where they overlap? Are there cases where they MUST overlap, and frontend/backend cannot be separated? In terms of bottlenecks, which end is associated with which type of bottlenecks? ...

Strategy in the design and coding of wordpress themes?

For creating wordpress themes, people usually follow one of these two methods Design Mockup in photoshop or similar tool and code the HTML & CSS from the scratch Choose a base theme and design the mockup keeping the base theme in mind and code on the selected base theme. Which is the better way of these (or anything other than these)...

The best php basic framework

I'm wondering if there's any framework that I could use for basic website with cms features. Some features that I was looking for in the framework is, basic cms editing features, possibly easy way of constructing web forms, (contact us, feedback, subscription) pretty url with mod-rewrite. May be I'm asking too much. ...

Learn C# or Java for Web Development

I'm not sure if this is the best way to ask this question but I'm in the very early stages of learning programming/development and there are a lot of things that I would like to do including web development and at some point when I have some proficiency, mobile development. I started out thinking I would learn Java because of its over...

When to disable "save password" functionality on your login form?

I have a public-facing website that is used to manage business infrastructure equipment for my clients. A security breach on this website could cause expensive problems for clients. A number of different websites--mostly banks, health care, and government--disable the "save password" dialog from appearing in Firefox, IE, and other brows...

PHP vs. long-running process (Python, Java, etc.)?

Hello I'd like to have your opinion about writing web apps in PHP vs. a long-running process using tools such as Django or Turbogears for Python. As far as I know: - In PHP, pages are fetched from the hard-disk every time (although I assume the OS keeps files in RAM for a while after they've been accessed) - Pages are recompiled into o...

Is there a Firefox keyboard shortcut to clear the cache?

With the Firefox web developer toolbar I can select "Miscellaneous Clear private data Cache". Is there a way to do the same with a keyboard shortcut? Edit: I am also using vimperator to drive Firefox with the keyboard; just found out that it's possible using: :emenu Extra.Web Developer.Miscellaneous.Clear Private Data.Cache. ...

Language for web site

We are planning on creating a netshop-like site which requires strict security and the regular session management. The site will not be working with a database but rather interact with a different application that will reside on the server. Is there a language/platform that is more suitable recommended for this? ...

How do I properly format this json object in PHP

I need to be able to create a data structure in PHP which creates for instance, an array of car vendors. Each of those arrays, has child arrays which are types of cars for that vendor. So you'd have something like $cars['toyota'] = array("camry", "etc"); I need to be able to create this data structure in PHP so that on the JavaScript ...

What is the maximum size of a web browser's cookie's key?

I'm wondering what the maximum size of a web browser's cookie's key is. I know the maximum size of a cookie is 4KB, but does the key have a limitation as well? Thanks! ...

web application interface optimisation - fonts / tips ?

Hola stackoverflow, I'm building an interface with a lot of info on the screen.. dozens of inputs, with accompanying labels. as a result of the volume of info the fonts have necessarily become pretty small. but I'd like this to be as readable and usable as possible.. is there a really nice font that's both readable and compact, that wo...

How to get value from struts bean?

I am new to struts. I'm just trying to build a simple application that gets the input from the user and display it. For which I got the input from the user and stored it in a bean and I have also displayed it in the next page using bean:write but how to place it in a text box. I tried to use html:text but I don't know how to place the v...

How do I create a server side timed event?

I'm working a a project for a new web app. I'm identifying the key points of functionality, and one thing that I clearly don't know how to approach is as follows: Once per minute the server needs to run a series of calcs on its data, and post new derived summaries. So in essence what I need is a way to run a server side script once p...

How do I traverse this DOM with jQuery and retrieve the required text?

I have one form on a page which has a bunch of sibling tags. I'd like to retrieve the text between each h5 tag using jQuery. I'd preferably like to have a callback or be able to do this in a simple looping construct where I can grab the text and make meaningful HTML of it, then insert the final string somewhere else. How does one do th...

Ruby on Rails deployment requirements

I have started to think in RoR as an option to develop my applications, but I don't know much about it. I usually deploy my applications to Windows XP or Vista based PCs and use SQL Server as database. Which are the system requirements to develop a Ruby on Rails application? ...

How to do late binding with jQuery?

I have a form which gets introduced via XHR and I need to be able to bind an event on it, for submit. I've downloaded the jquery.form.js plugin. What's the best way to perform a late binding so that I can do something such as: $(document).ready(function() { // bind 'myForm' and provide a simple callback function $('#m...