web-development

Execute Ant for web-applications in Intellij Idea

When I trying to run Ant — he show me an alert with “Project JDK not specified”. How I can use Ant in Intellij Idea for web-applications without JDK? ...

Session read write issue when I use curl between two apps

Hi, I have 2 web apps running on the same server. I tested the following on localhost so far, but I am really curious as to whether there was any fundamental issues with this implementation. Let us call these apps Shopping.com and Checkoutshopping.com. When a user on shopping.com clicks on a PayPal button, I will trigger a function; ...

<pre> in fieldset doesn't respect the "overflow: auto" directive

This is a test case: <!doctype html> <html> <body> <div style="margin: 0 auto; width: 950px; overflow: hidden;"> <div style="float: left; width: 660px"> <form><fieldset> <pre style="overflow: auto">Test test test Test test test Test test test Test test test Test test test Test test test Test test test...

Recommended database backend for blog

Greetings, I'm building my personal website using php. My standard approach is to use MySQL as a database backend. I've been hearing a lot about document orienting databases and I'm wondering if these ( couchDB, mongoDB) might be a better option for me. I understand that a low traffic site such as my personal homepage isn't going to se...

Are there any HTML5/Canvas windowing system libraries (ala Qt, WxWidgets, etc)?

With the beginning of widespread HTML5 support and Canvas support, it seems that someone could create a desktop-esque windowing system library for RIAs. Something similar to Qt or WxWidgets. All the required parts seem to be there (runtime language: javascript, pixel drawing: canvas, even vector drawing with SVGs). This seems to me an...

Why in cpanel databse size is showing 0.00MB?

Why in cpanel database size is showing 0.00MB while when i take backup of database then it is 1.2 MB? ...

FilterExpression problem - multiple conditions

I have an asp.net c# website I'm developing with Visual Web Developer Express Edition 2010. In this website I have a FilterExpression that should filter three criteria: a start date, end date, and keyword search. I am able to get the start and end date filter working by itself, and also the keyword search is working by itself. What I'm...

Dual login: One login, 2 servers

Okay, this just feels plain nasty, but I've been directed to do it, and just wanted to run it past some people who actually have a clue, so they can point out all the massive holes in it.....so here goes..... We've got this legacy site & a new public beta-test one. Apparently it's super cereal that moving from one to the other is seamle...

POST/Redirect/GET (PRG) vs. meaningful 2xx response codes

Since the POST request in a POST/Redirect/GET (PRG) pattern returns a redirect (303 See Other) status code on success, is it at all possible to inform the client of the specific flavour of success they are to enjoy (eg. OK, Created, Accepted, etc.) as well as any appropriate headers (eg. Location for a 201 Created, which might conflict w...

Google App Engine - When to use it, when not too?

It's still unclear to me when I should or should not use Google App Engine to deploy a commercial web application. It appears Google has "business" level support. http://code.google.com/appengine/ Can someone bullet list when I should use Google App Engine and when I shouldn't use it for a web application ...

How to load balance (scale) a simple PHP application?

I constantly read on the Internet how it's important to correctly architect my PHP applications so that they can scale. I have built a simple/small CMS that is written in PHP (think of Wordpress, but waaaay simpler). I essentially have URLs like such: http://example.com/?page_id=X where X is the id in my MySQL database that has the pag...

How detailed should a portfolio site be regarding your project input?

I am currently putting together a portfolio in order to get more freelance work on the side- and I am unsure about how descriptive I need to be regarding the projects I have worked on and my input. I have been working for a web agency for about 3 years now as a web developer and have contributed to a great number of projects during my t...

Performance of returning entire tables containing blog text as opposed to selecting specific columns

I think this is a pretty common scenario: I have a webpage that's returning links and excerpts to the 10 most recent blog entries. If I just queried the entire table, I could use my ORM mapped object, but I'd be downloading all the blog text. If I restricted the query to just the columns that I need, I'd be defining another class that'...

Website to be accessed only by micro browser - on mobile phones only

I have a website running here temporarily. Now it is accessible by both PC and mobile. How do I restrict it to only mobile. If accessed on PC it should not show anything. But if using a mobile, it should allow. Thanks in advance! ...

Migrating existing web application to a silverlight based application

I have a web application developed in .net 2.0 and VS 2005. I want to make use of features provided by Silverlight. Is it possible for me to use Silverlight in the existing application itself. ...

How can you get a screenshot from someone's web browser?

I didn't think this was possible, but http://www.snapabug.com provides a service that uses screen capture technology to generate reports that helps you help your users. How are they able to do this?? Apparently, their service does not require any extra browser plugins or extensions. My guess is that it uses Flash, since this doesn't see...

One application context for many virtual directories in an ASP.NET environment?

I have a bigger ASP.NET based webapplication, which is structured into subwebs (as described on http://weblogs.asp.net/scottgu/archive/2006/08/16/Tip_2F00_Trick_3A00_-Creating-Sub_2D00_Web-Projects-using-the-VS-2005-Web-Application-Project-Option.aspx). How can I share user specific information (user credentials, other informations) be...

not able to set cookie domain ???

Hi All, I am not able to set cookie domain in my webapp(WebApp.mydomain.com). My sample code is given below, my webapp name is WebApp.mydomain.com, this has got two jsp pages, one for creating cookie and other one is for reading the cookie. CreateCookie.jsp Cookie cookie = new Cookie("id","123"); cookie.setDomain(".mydomain.co...

Overriding inline CSS styles in IE7

I have a html tag with inline CSS style like: <body><div style="position:absolute;top:100px;"></body> and I want to override this inline position property. So, I wrote a CSS rule like this: body > div[style]{position:relative !important;top:0px !important;} The above code works in Firefox. But in IE7 it does not work. Am I missing an...

Search engine for website

I'm trying to build a search engine for a website. It's mostly a collection of HTML/CSS pages with some PHP. Now that's all there is. All of my content in on the pages. From what I understand to be able to do this I would need to have the content on a Database, am I correct? If so I was considering doing as such, creating a MySQL table...