web-applications

using RewriteCond, can i change how fast content is served to users in different parts of the world?

using RewriteCond or similar mechanism on apache, can i change how fast content is served to users in different parts of the world? because it seems like this: I am hosting a site on netfirms.com, which is based in Toronto, and hosting another site on dreamhost.com, which is based in California. Both sites are almost empty. So I just...

Tips to sync up webapps and svn?

I would love to get some tips from other people that have had this problem. I'm doing front-end development on java-based apps. I have my source in one diretory, /usr/src. My projects build and deploy to Tomcat in /usr/tomcat/webapps. Since the work I'm doing is all front-end, I have to edit the deployed files in /usr/tomcat/webapps so ...

Can a Web Application really be Object Oriented?

It seems that while I strive to maintain OO principles, it all seems so contrived or unnatural. ...

Timeout problem running WatiN tests as part of TFS build

I've gotten a simple WatiN web test running on my dev environment and am trying to get it working on the TFS build server. It is failing when just trying to load a page with the following exception: WatiN.Core.Exceptions.TimeoutException: Timeout while Internet Explorer busy. I've set the test timeout to 3 minutes which should be plenty...

django -- application subdirectory site/app1/app2/app3

Hello, If you were to write an app for a site, but wanted to make the app plug&play so you can just drop it in any Django project, set the main URL and there you go, how would you do that if you wanted to keep all the other required utility apps included in your portable app. Example: site/ site/site-app1 site/templates/site-app1 site...

create "Add New Row" button asp.net3.5 c#

I am building a web-enabled ASP.NET 3.5 application in Visual Studio 2008 using C#. I am connecting to an SQL database. The user must be able to insert, edit and delete entries from the database using the forms I create. I am creating the screens and I ran into quite a snag. There is a table that contains many different types of fiel...

Web app or Desktop app, which is easier to monetize?

If it's possible to implement an idea as a desktop app and as a web app, which way would you go? I'm a little biased here, as as a user I tend to prefer desktop apps over web apps, for the ability to access information quickly: no need to open a browser, no need to login, more responsive, tray integration, notifications, global hotkeys ...

Optimizing Flex application - Where to find my bottlenecks

My Flex web application is almost ready for launch. I'm currently optimizing as much as I can in order to make sure even low-end clients are able to run it fluently. The problem is, I have no idea where to optimize more than I've already optimized. My question is, what are the usuals suspects regarding bottlenecks? What tips and experie...

Use JRuby for Ruby web applications? Is it worth it?

Background: I'm writing a 'standard' (nothing special) web application in Ruby (not Rails) and I need to start thinking about deployment. So I've been hearing a lot of recommendations to use JRuby to deploy Ruby web applications, regardless of whether you actually need Java libraries or not. How true is this? Is it worth using the Java ...

What reporting tools can I use for an XML datasource?

I'm looking for a reporting tool that I can use with an XML datasource. The XML files would be small, approximately 50-60K but may be as large as 200K. The goal of our project is to generate reports based on data submitted in the XML file. I understand I could simply use XSLT style sheets and output HTML but I prefer PDF, XPS, XLS, or D...

How do I resolve "HTTP Error 500.19 - Internal Server Error" on IIS7.0

What causes this error, how can I fix it? Detailed Error Information Module IIS Web Core Notification BeginRequest Handler Not yet determined Error Code 0x8007052e Config Error Can not log on locally to C:\inetpub\wwwroot as user administrator with virtual directory password Config File Unavailable (Config Isolation) Requested URL ...

How to improve your web application

Hi guys, I want to do better, and I want to ear from you about what benefits does something and does it worst to add it to a web application. I do a lot of ASP.NET applications, specially to run inside an CRM application. Something like beeing completly in the user and we 'forget' about it until we receive an email :) This question i...

What kinds of authentication options are there for websites and web applications?

Even though there are many good CMS tools out there, I've decided to roll my own tools for my website to get some hands on experience. The only thing that is currently eluding me is how to add authentication to secure the administrative tools. I'm the only one who will be using the administrative tools, so I don't need something as comp...

BSD License and Web Applications

Hi, I have a question the BSD license and web applications. After reading the license, it seems to me possible to use bsd licensed libraries in web applications without following under any of the conditions, is my conclusion correct? Interestingly... Condition 1 states that redistributions of source code must retain the copyright notic...

how to sort by a computed value in django

Hey I want to sort objects based on a computed value in django... how do I do it? Here is an example User profile model based on stack overflow that explains my predicament: class Profile(models.Model): user = models.ForeignKey(User) def get_reputation(): ... return reputation reputation = property(get_rep...

What are the basic questions to ask a person who wants his Medium sized website done?

I wanted to know the basic question that a person needs to ask if someone wants his web app done?? It can be UI,platform,crux of the applications and many other things...Please post what one needs to know before starting to work on a app. ...

What are the best practices for the AspNetDevelopmentServerHost attribute?

We have a Web Application Project (dozens actually..) that has a testing project attached to it. In the testing project I have a simple unit test which exercises a couple of methods. Running locally, the unit test executes and works. However, when our TFS Build server attempts to execute the test, it fails with a error about an invali...

Button on click method entered on page refresh!

Hi, I have a .net 2.0 application and I can't work out why a button's onclick method is run on page refresh. The exact scenario when this happens is a checkbox is ticked against each item the button is clicked and the onclick mthod processes this item, and the checkbox is cleared. Now when the page is refreshed for some reason the oncl...

selenium: a custom locator that uses xpath locator

I want to define a custom locator with selenium, and I want it to use the existing xpath locator. The code below does not work. How should I do it? PageBot.prototype.locateElementByNg= function(text, inDocument) { var xpath = doSomeManipulation(text); return PageBot.prototype.locateElementByXpath(xpath, inDocument); }; ...

How to construct a web file browser?

Goal: simple browser app, for navigating files on a web server, in a tree view. Background: Building a web site as a learning experience, w/ Apache, mod_python, Python code. (No mod_wsgi yet.) What tools should I learn to write the browser tree? I see JavaScript, Ajax, neither of which I know. Learn them? Grab a JS example from t...