web-development

Subversion hook does not accept certificate permanently

I hope someone will be able to answer my question. I have Subversion set up, served by Apache2+SSL, doing web development. I want a post-commit hook that runs svn update on my testing server, so when someone commits, it will automatically update the testing site. The hook doesn't work because the certificate is a self generated one and...

Equivalent to webcontrols in other frameworks?

What is the equivalent to web controls in frameworks other than ASP.Net? Specifically I'd like to know about Java, PHP and Ruby on Rails. What are the relative merits/faults of each of these frameworks for web development? I've had some exposure to ASP.Net and have been asked to look into developing an app that will have configurable ...

Web developers - Is it better to do development on your local machine or on a remote host?

What are the pro/cons of doing web development on your local machine rather than on a centralized development server? For those that do dev on your local machine, how do you keep an updated db architecture for local development when multiple developers are involved? In particular, I'm currently experimenting with XAMPP for PHP and was c...

Parsing HTML Fragments

What's the best way to parse fragments of HTML in C#? For context, I've inherited an application that uses a great deal of composite controls, which is fine, but a good deal of the controls are rendered using a long sequence of literal controls, which is fairly terrifying. I'm trying to get the application into unit tests, and I want to...

Besides URL rewriting, what options are available for maintaining sessions without using cookies?

I've seen various options for URL rewriting here on Stack Overflow, and other places on the web, but was curious to see if there were other options. ...

Capistrano: How to Include common settings in multiple project deploy.rb files

Hello, this is probably a newbie ruby question. I have several libraries and apps that I need to deploy to several different hosts. All of the apps and libs will share some common settings for those hosts-- e.g. host name, database server/user/pass, etc. My goal is to do something like: cap host1 stage deploy cap host2 stage deploy cap...

How do I gzip webpage output with Rails?

What is the best plugin for Rails that gzips my webpage output? I found this plugin but it's out of date and I am not sure if I should use it. -- edit -- I am running my server in a hosted environment and mod_deflate is not an option . -- edit 2 -- The company I am hosting with has stated they will not install mod_deflate as state...

JS Regex For Human Names

I'm looking for a good JavaScript RegEx to convert names to proper cases. For example: John SMITH = John Smith Mary O'SMITH = Mary O'Smith E.t MCHYPHEN-SMITH = E.T McHyphen-Smith John Middlename SMITH = John Middlename SMITH Well you get the idea. Anyone come up with a comprehensive solution? ...

Convert POST array back to POST string data

When you do the following in an HTML form: <input name="one[]" value="foo" /> <input name="one[]" value="bar" /> <input name="two[key]" value="something" /> and submit the form to a PHP page, The $_POST array will look as follows: array( 'one' => array( 0 => 'foo', 1 => 'bar' ), 'two' => array( 'ke...

Has web development overtaken desktop development?

Is there more happening on the web than on the desktop? It seems like so much is happening on the web that maybe I should prioritize web development skills over desktop development skills. Does this seem like a good choice? ...

Can offline web apps be a replacement for desktop apps?

I work on a desktop sales app that is run off a tablet and was wondering if this and other "traditional" desktop tablet applications could be viable as a offline web application. The main difference with tablet applications being the inking support. I think a web app can get close with browser gestures. ...

When's the absolute latest you can call Page.ClientScript.RegisterClientScriptBlock?

I need to output some JavaScript in a WebControl based on some processing and some properties that the consumer can set, doing it on the load of the page will be to early. When is the latest I can call RegisterClientScriptBlock and still have it output on the page? ...

What's a good way to document web page links in a web application?

Can anyone suggest easy ways to document how web pages in a relatively complicated web application link to each other? Should I document them in Visio possibly? That seems the easiest. I need to check each of the different buttons and functions on each page, and some of these depend on how the user accesses each page, so I need to doc...

Recommended hash for passwords in ASP Classic

What is the slowest (therefore best) hash algorithm for passwords in ASP Classic? EDIT: For those unaware, when hashing passwords, slower hashes are preferred to faster to help slow rainbow table style attacks. EDIT2: And yes, of course speed isn't the only valid concern for hash selection. My question assumes that All other things be...

detecting JSON loaded by browser

Hi, I have an application in which most requests are submitted via AJAX, though some are submitted via "regular" HTTP requests. If a request is submitted and the user's session has timed out, the following JSON is returned: {"authentication":"required"} The JavaScript function which submits all AJAX requests handles this response by ...

Breaking up PHP Websites

I am wondering how I can break up my index.php homepage to multiple php pages (i.e. header.php, footer.php) and build a working index.php page using those separate php pages. I know WordPress uses this with different functions like: GetHeader(); GetFoodter(); But when I tried to use those functions, it errors. I am guessing they are...

Best Tools for Web Site Architecture Design

Are there any tools you would recommend for site architecture design and analysis? I've checked out several such as Poseidon UML, Adalon and FuseBuilder for ColdFusion, Mindmapper and a few others but have yet to find anything that seems to strike the right balance between allowing for quick high-level planning (as can be accomplished w...

indispensible JSP tag libraries

Hi, I'm interested to know what are the "must have" JSP tag libraries apart from JSTL. All I've found so far are ccc - for accessing static constants in JSP (without scriptlet) displaytag - for generating sophisticated HTML tables that includes data paging, grouping, sorting, exporting etc. What other indispensible tag libs are out ...

XSS Torture Test - does it exist?

Hi, I'm looking to write a html sanitiser, and obviously to test/prove that it works properly, I need a set of XSS examples to pitch against it to see how it performs. Here's a nice example from Coding Horror <img src=""http://www.a.com/a.jpg&lt;script type=text/javascript src="http://1.2.3.4:81/xss.js"&gt;" /><<img src=""http://www....

How to implement wiki-style edits in your web-application?

In a web application I am developing, I wish to implement wiki-style edits (where each and every edit is saved, can be compared, and users can rollback edits easily). What is a good way of implementing this without re-inventing the wheel too much? Thank you in advance. ...