web-applications

How to remove CSS spaghetti in legacy web app?

After working on several large web applications, and seeing gigantic style sheets with no clear structure, I'd really love to know if people have found ways to keep their css clean for large and complicated web apps. How do you move from a legacy, mess of css to cleaned up, nicely cascading, DRY stylesheets? The app I'm currently work...

Parse error using automatic filled <map>

Hi, I'd like to generate automatically an imagemap, but I always get a parse error without any other detail (that's useful.) than the location. Am I not using well ? Here is the code : <?php //Some code ?><map name="mymap"><?php foreach($rects as $rect) { ?> <area shape="rect" coords=<?php echo '"'.$rect['x1'].','.$rect['y1'...

What should I be aware of to make my web application secure?

Hello friends, I have built simple PHP application by looking at various articles and tutorials around the web. Since I am now giving it to a few clients, I am worried about its security. How do I make sure it doesn't get hacked? ...

How do I restart apache from a webpage apache is serving?

I have a script server side (both a shell and a python script) that can restart Apache and do some other cleanup I need. However, I want to expose a webhook, so when my repository is updated, then Apache will be restarted. However, I am currently serving the URL that restarts Apache using Apache, and when the script stops Apache or kills...

How to make Spring Lifecycle callbacks work in web applications?

I have a web application set up like this: Embedded Jetty instance is started from Main with DispatcherServlet with name "myservlet" inside it. File myservlet-servlet.xml exists in resourceBase of that servlet. It contains only these lines: <context:component-scan base-package="com.mycompany.myapp.config.spring" /> <context:component-...

Using Wildcard in FALLBACK section of Cache manifest file HTML5

How to create an offline enabled web-application such that when user visits hxxp://mywebsite/ and is offline than hxxp://mywebsite/offline/ is displayed. [There are about 100 different dynamic pages in my website, so I cannot afford to hardcode all of them in the cache manifest file] ...

Is it possible to upload photos through a webapp in iPhone?

Is it possible to upload photos without creating a native app? ...

People could use your javascript code with Sproutcore/Cappuccino?

If you use either Sproutcore or Cappuccino for your frontend, doesn't it mean that everyone could see your javascript and copy it? If so, they'll have your whole frontend code. Am I right or wrong? ...

Is there any Android browser reference/documentation?

Is there any Android browser reference/documentation for Web app developers? Something like Apple's Safari Web Content Guide would be fantastic. I am exploring options to make Android Web app more native-like, so any suggestions would be appreciated. ...

How Simulate Left And Right Mouse Click In Asp.net Web Application

hi my dear friends : How can i Simulate Left And Right Mouse Click In Asp.net Web Applications ? i found a thread about this issue for win applications but not work on web app... in right mouse simulation i want to see menu bar... thanks in advance ...

Cant access website/images under /var/www/

About a year ago I placed some media and some web pages under my /var/www/ on my server(I am using ubuntu-server). I was able to access these web pages by going to http://myipaddressgoedhere/pagename recently, I have a need to store media in a folder in /var/www/images when I went to go see if I could still access these web pages s...

Give a folder certain permissions on App engine?

I'm completely new to app engine and I need to give a certain directory in my application permission 733 How would I do that? ...

WCF Webservice for sending and receiving larget byte []'s

I've read numerous posts about this and have received conflicting info - I'm trying to 'boil down' a number of questions others have asked in hopes a good clear answer can exist somewhere on the web :-) I am writing .NET application for my PC that connects to an IIS webserver running ASP.NET. The webserver has two methods similar to...

Database Connection PHPBB

Hi all, In web applications like phpBB, when every time a new page is requested, is a new database connection created? For example when 5 users login using login.php simultaneously, is a new database connection created for each of the five users? ...

Session sharing issue

I am facing an issue when we are using multiple tabs since its sharing the same session. Any alternatives to this? Can we create a unique session when someone uses the tab or CTRL+N. It's a JEE/Struts2 enterprise application if this matters. ...

Thread Safe web apps - why does it matter?

Why does being thread safe matter in a web app? Pylons (Python web framework) uses a global application variable which is not thread safe. Does this matter? Is it only a problem if I intend on using multi-threading? Or, does it mean that one user might not have updated state if another user... I'm just confusing myself. What's so importa...

using AOP in web context and affection on performance

Hi I have a web application running most of my services through web services. first i want to know how much degradation in performance would take place using AOP in web context for example if i can handle 200 request/second without AOP, what would be the result with it (having simple logging and authorization) Is there any great AOP f...

Library or API for Creating Progress Bar Needed

Fist all...i am not sure PROGRESS BAR is the appropriate word to describe what i actually want..but for lack of a more apt word, i am stuck with it :( This is what i need. I am working on an Application in which users of the application, depending on how they interact with the application, and the level of activity they get to earn poi...

Requirements for running SSIS package from asp.net web site?

What are the requirements for running an SSIS package from an asp.net web site? ...

What XML tags should be removed for security ?

I am making a forum posting web application using Java and I want to know : What are the xml tags that should be parsed and removed when posting like the <script> tag ? Should i remove the tag and keep the content, or remove the tags with the content ? what are the regular expression to remove them ? ...