web-development

CSRF protection by storing nonce in Session variable and form

To protect against CSRF you should put a nonce in a hidden field in the form, and in a cookie or in the session variable. But what if the user opens several pages in different tabs? In this case each tab would have a form with a unique nonce, but there would be only one nonce stored in the session variable or cookie. Or if you try to sto...

I want to know whether ajp protocol for load balancing is supported in WAS7?

HI ALL, I want to know whether ajp protocol for load balancing is supported in WAS7? If so what is the configuration or the settings that is supposed to be done in WAS. I am using a IBM HTTP Server configured to use ajp protocol for load balancing & my App Serv (WAS7) is not responding to it. i have already verified http://publib.boul...

Unittest web application in java?

What is the "best" (or a good way) to unittest java web applications, that is not using an existing framework such as struts, stripes or spring? Is using tools like httpunit or htmlunit good? Which is the best if so? Would really appreciate an answer since I will depend on it in this project, so finding out that my choice sucked half-wa...

When is it appropriate to use accordions?

Accordions can provide flashy effects, but with regard to usability, when is it appropriate to use them? For example, in a menu tree with lots of options, an accordion can provide better overview of the categories. On the other hand, if I want to see all options available, I have to click around a lot. When do you use accordions? Thank...

Amazon products information mining

Hello, I'm new to this "information mining". So I am wondering is there an API that will let me get needed information about products from Amazon's web site? Or, if there isn't, how would you do that? Maybe any suggestion/reference to some technology which can do this? Thanks in advance for sharing. ...

Browser warning about non secured resources

I know There are other similar links here on stackoverflow, But my question is different, so please don't treat this as duplicate. My page has no external resources and everything is being served from the same server using https, Firefox and chrome is not complaining it and only IE6 and IE7 are complaining. I used HTTPAnalyzer and Fiddl...

How to Manage CSS Explosion

I have been heavily relying on CSS for a website that I am working on (currently, everything is done as property values within each tag on the website and I'm trying to get away from that to make updates significantly easier). The problem I am running into, is I'm starting to get a bit of "CSS explosion" going on. It is becoming diffic...

JQuery: Compact version of Slider control for mobile use?

I have mobile web app and want to use the JQuery Slider control. http://docs.jquery.com/UI/Slider However, to do so, it requires the entire JQuery core (29kb compressed & gzipped). Is it possible to just use Sizzle (4kb) + the JQuery Slider (4kb) control to have a working slider without the need for JQuery core (29kb)? (I'm trying to...

Comparing strings with JSTL

Hi, I have two strings that i need to compare, but even if they have the same values or different , it always enters the statement... <c:when test="#{bean.name1 != bean.name2}"> fields that are supposed to appear _only_ when name1 is different from name2 </c:when> ...

Is the score/feedback that SenSEO FF plugin provides of any real world value?

Greetings! I started doing some seo optimization on one of my projects and decided to give the SenSEO plugin shot. But I'm wondering what the real world value of its feedback is. If your project scores A or B with the plugin, does it show up at the top of the searches? Thanks ...

How to properly use svn when developing a web application

I just recently started getting familiar with svn and while it seems pretty straightforward for "normal" code development, it leaves me a bit confused about web development. Web development requires a web server directly interacting with the source in order to test the (often small and very frequent) changes, so I guess the project's do...

JQuery Slider for Mobile application

I would like to use the JQuery slider for my mobile application http://docs.jquery.com/UI/Slider However, using the Slider plugin, requires me to use the entire JQuery core (29kb) + Slider plugin (6kb). Typically, that's okay but for a mobile application - that's a lot of data. Question: Anyway I can use the JQuery Slider and elimina...

Google Maps: Geolocation assistance

For some reason, the following Google Maps v3 same does not geolocate my IP http://gmaps-samples-v3.googlecode.com/svn/trunk/commonloader/clientlocation.html But the following link that using Google Maps v3 + Google Gears can geolocate me: gmaps-samples-v3.googlecode.com/svn/trunk/geolocate/geolocate.html Question: Any ideas why ...

Review Website In Python. Is django right for this?

Basically, I misread this but would still really appreciate some assurance. I recently came across the django tutorial (http://djangotutorial.com) and have fell in love with the framework. I have a website that is simply ran on wordpress and a simple plugin at the moment at http://runningshoesreview.org. I've been wanting to do many th...

how to avoid the Refresh in MasterPage in ContentPage

Hi There, I have a masterpage with a timer that shows server time and refreshes every second, on the content page I have a chat program with ajax, refreshes every to second to get the last messages entered. I have a Html TextBox and a hidden Submit Button, when user write a text, and hit the enter, I check to see if this is the enter k...

Searching for a good PHP based Web Counter

hi, I am running a php based web application and within that application I am using bbclone to count visitors and site activity. Unfortunately it doesn't work that nice as expected because bbclone counts a lot of robots and therefor my statistic is not that accurate as it should be. So do you know any good php based web application cou...

Implementing sessions in a java web server?

What's the best (most secure) way of implementing session handling in a web server? I'd like to add that, but don't know how to implement it really. Is cookies a "must" for session handling? (To be able to identify which session) ...

what about using Customs errors page?

recently i saw many people and websites using Custom error pages really i not see any usefull of using it like that http://bit.ly/4pIMVQ like that http://www.tutzone.org/2009/05/31-cool-404-error-page-designs.html and this http://www.404-error-page.com/404-some-fun-404-error-page-spoofs.shtml and i think any big website like twitter ma...

Learning web architecture?

Hi, What is a good book to learn about web server architecture? I am a beginner Rails developer and want to go beyond Ruby. For example, I want to know what exactly a 'Mongrel cluster' is, rack-middleware, HTTP, etc. Is there a good book (or more than one) which covers this? Thanks. ...

Learning web-based programming for the C++ programmer

I want to create a web-interface for a project I had in mind for a while. I have been programming in C++ (plus HLSL) professionally for the past five years, and learned various others in university (Java, VHDL, numerous assembly languages). I am searching for good resources to compare the different possibilities for web programming (ja...