web-development

How to create RowNum column in SQL Server?

In Oracle we have "rownum". What can I do in SQL Server? ...

how to run php file by double clicking from any folder like html files in windows xp ?

Is there any trick to run .PHP files in windows XP from any folder by double clicking like HTML file ? I use XAMPP but in this we need to put files ina special htdocs folder. I want to run file from any folder, desktop by double clicking. ...

How to get value of textboxes, textareas, and radios in the same way in Javascript?

I want a function/code which will return the value that the user submitted for the field whose name/id is passed on to it. It shouldn't matter whether the field is a textbox, textarea, radio, or select. For example, the field could be: <input type='radio' name='a_21' value='test' id='a_21_0' /> <input type='radio' name='a_21' value='tes...

HCI: make the user wait through everything up front, or amortize?

I'm writing a silverlight app that queries a web service to populate a tree control. Each element will have at least 2 levels of children, so something like this: a +-b +-c d +-g +-h e +-i +-j f +-k +-l The web service API is such that I can only get one level of child nodes at a time, so the first trip, I can get a,d,e,f. T...

Where to best look for skilled developers who might want to get involved in a startup on an equity basis?

Hi, assuming I have an idea for a pretty simple Web 2.0 startup that is likely to be fairly successful after say 12-18 months (during which it won't however make or cost much money, just hosting) because it fills a real void, where would I best be looking for talented developers who would possibly like to get involved in the startup on a...

htaccess Authentication with PHP

On the current website I'm working on, I've got a directory of files for users to download which would be really nice to have some security method other than obscurity ;) I was wondering if there's any way to supply login information via PHP to htaccess as though a user were entering it. Alternately, if anyone knows a better way to sec...

Sync Content on Multiple Servers

We have a site which sits on two load balanced application servers (Win 2K3) which comprises a C#/ASP.NET app and a bunch of static content which changes on a daily basis. My question is, what's the best way to keep the static content in sync. In Win2K8 we'd be able to point both servers at a shared directory but not in Win2K3. Ther...

How to properly implement the Strategy pattern in a web MVC framework?

In my Django app, I have a model (lets call it Foo) with a field called "type". I'd like to use Foo.type to indicate what type the specific instance of Foo is (possible choices are "Number", "Date", "Single Line of Text", "Multiple Lines of Text", and a few others). There are two things I'd like the "type" field to end up affecting; the...

Accessing MultipleChoiceField choices values

How do I get the choices field values and not the key from the form? I have a form where I let the user select some user's emails for a company. For example I have a form like this (this reason for model form is that it's inside a formset - but that is not important for now): class Contacts(forms.ModelForm): def __init__(self, *args...

Experience using gcServer="true" to set garbage collector for .NET

Someone has used a configuration enabling the garbage collector optimized for multi-processor machines using Aspnet.config with : gcServer enabled="true" gcConcurrent enabled="true" There was improvement in the performance of your site? It was noticed a problem? ...

cakephp and get requests

How does cakephp handle a get request? For instance, how would it handle a request like this... http://us.mc01g.mail.yahoo.com/mc/welcome?.gx=1&amp;.rand=9553121_pg=showFolder&amp;fid=Inbox&amp;order=down&amp;tt=1732&amp;pSize=20&amp;.rand=425311406&amp;.jsrand=3 Would "mc" be the controller and "welcome" be the action? How is the rest...

Which PHP framework for web application rewrite?

I wish to rewrite a medium web application (70 php scripts). Currently, it makes use of PHP in a procedural way and I am more than sure the code is not efficient, extendable or scalable. My question is, for this scenario, which PHP framework shall I adopt it? I wish to be able to do this rewrite as quickly as possible, performance of t...

Detecting load of <link> resources?

Browsers provide load events for <script> and <img> tags. Is there a way to detect whether a request to a element has completed? Specifically, I'm wishing to detect when a <link>'d stylesheet has been loaded. Unfortunately, I think using a sentinel style and detecting load from a computedStyle isn't workable in my situation. ...

Make a DIV Into a Link

I am looking for an XHTML 1.1 valid way to make a DIV into a clickable link. ...

What are the best authentication and authorization examples for your favorite web framework?

I have been looking through java web frameworks lately (though this question need not be limited to java), and I noticed that most examples on web framework websites leave out auth & auth examples in their stock documentation. one ruby example: acts_as_authenticated (link?) grails has: http://www.grails.org/Authentication+Plugin Anywa...

asp.net doesnt display web page when connected to internet

I have developed a website in asp.net when I disable my internet connection it runs but otherwise when I am connected to the internet I get this error: ERROR The requested URL could not be retrieved While trying to retrieve the URL: http://localhost:4719/IWS/ The following error was encountered: Connectio...

PrototypeJS: Selecting visible elements

I am trying to formulate a selector to select a set of visible elements. Our application uses the Prototype JavaScript framework, version 1.6.0.3. The markup I'm working with is as follows: <ul> <li style="display:none;">1 Hidden</li> <li style="display:none;">2 Hidden</li> <li style="">3 Visible</li> <li style="display:none;">4 Hi...

What's the best way to write Mathematical Equations on the Web?

I am working on a Math related web page and am looking for a solution to writing Mathematical equations easily onto a web page. There are several solutions readily available to me at the moment: Use LaTeX and publish them on my web page as images. Use MathML Both of these solutions aren't ideal and seem somewhat dated. Replacing what...

What is a good standard metric for stability in a web application?

We currently facing some stability issues with our develop web application product. This product was built in part by our partner contractor, and we want to have a good standard metric for stability. The issues we have been facing is constant crashing. The web application is unable to identify when there are more request than it can h...

Customizing the style and location of $session->flash's output in CakePHP 1.2

I'm writing a simple web application using CakePHP version 1.2 (the latest) and am having an issue with displaying the flash message from the Session helper. In my layout, there exists the following code: <?php echo $this->renderElement('flash'); ?> Which renders the following element: <?php if($session->check('Message.flash')): ?> ...