web-development

Creating a Non-Blocking Process in an MVC 2 Application

I'm faced with setting up a system which will allow users to: Hit a button to initialize a "download & archive" command, which reads file lists via XML, pulls files over HTTP to a local directory, archives them, and stores them away for download. Get a progress bar/indicator telling them their "request is being processed" immediately a...

How do you get to know what technology has been used to build a website or web application?

This might sound like a dumb ques but how do u figure that out ? like some websites I visit do not have ANY extension to their web pages so I cannot tell if its built using Java, asp.net or php where as others have extensions clearly visible like .jsp,.php n .aspx How do u hide extensions anyway and why would anyone do that ? [edit] T...

php javascript form validation for upload file <input>

want to get a validation script to validate the file upload box onsubmit. check the extension of the file and validate accordingly to the extension of file loaded ...

Are 'www.example.net' and 'forum.example.com/content' two different web sites?

There is a website www.example.net and it has a Forum link on its home page which leads to forum.example.com/content. I found out that the main site has been developed using the .NET Framework, and the forum has been built using PHP based vBulletin. Are these two different domains? In other words, is the Forum some folder inside the V...

Requiring unique email while not divulging emails of existing users

On a standard web signup form, users are required to have a unique email for the site. if the email is already in use, a new user cannot be created with that email - but this opens op for exploiting this to find out, what emails are members of the site (at least check if a specific email is in use). Making sure a bot cannot mass-query ...

Best practices for displaying a webpage in different languages

I would like to deploy a webpage in different languages (German and English). As a backend solution I would use Wordpress running on a nginx/PHP/MySQL stack on Linux. From various posts here I think that looking at the browser locale (the ACCEPT-LANGUAGE field in HTTP request) is a good first try for setting the correct language. Of cou...

jQuery alternatate rows color - IE problem

Hi, Why is it that this code: $('#tbl tr:odd').css('background-color', '#f6f6f6'); $('#tbl tr:even').css('background-color', '#cccccc'); works fine outside of the plugin in all browsers. While the same code: $('tr:odd', $this).css('background-color', options.tr_odd_bgcolor); $('tr:even', $this).css('background-color', options.tr_eve...

OnLoad and OnChange (jQuery)

function safe(){ if($(this).is(':checked')){ $("select[name='sort']").attr("disabled", "disabled"); $("input[name='group']").attr("disabled", "disabled") } else { $("select[name='sort']").attr("disabled", false); $("input[name='group']").attr("disabled", false) } } $('input#safe').change(failsa...

.NET Regular Expression Expert Help Needed

I need two regular expressions to identify if .. then .. else .. endif section and their parts. From an expression which could be like below: Example 1: 5 + 10 * (if (4 + 4.5) > 0 then 20 else 45 endif) + 2 Example 2: if (20 == 10) then 10 endif Example 3: if (20/10 != 2) then (2 * 10) else (3 * 4) endif Expected Result: A r...

What are your experiences developing in Scala/Lift ?

I heard a lot of good things about Scala and the Lift Web framework recently, especially from Foursquare's guys hence, I might use this technology in my next projects. Are any of you Scala/Lift Developers? What have your experiences been for developing on this platform and what are its advantages over Ruby On Rails or Python/Django? ...

Is this a good way to use mysql?

I am building a web app, and I am thinking about how I should build the database. The app will be feed by keywords, then it will retrieve info for those keywords and save it into the database with a datestamp. The info will be from different source like, num of results from yahoo, diggs from the last month that contains that keyword, et...

CSS styles are completely missing when retrieved from server, why?

Hi all: Have to say I really don't understand how come this could happen: I've done some code in html, css and a little bit of javascript, nothing fancy, and just uploaded to two host servers, one to my commercial hosting, the other to uni server. The funny thing is my commercial server renders exactly as what I can see on localhost,...

Form reset causes issues (jQuery)

$(function () { function f1() { if (this.checked) { $('select[name=two]').removeAttr('disabled'); } else { $('select[name=two]').attr('disabled', true); } } $('input[name=one]').change(f1).triggerHandler('change'); $('.reset').click(function () { $('input[name=one]')...

Is perl the fastest way to write a high performance page?

I was inspired by Slashdot, I was heard that it uses very limited servers to support a lot of users with fast response. And there is a website named slashcode, not sure if slashdot uses its source code. I am wondering if Perl is the best to write a high performance web page? I know using Apache or IIS will be having a lot of overhead? ...

BlackBerry Browser (4.5) refuses to cache CSS. Is there a workaround?

I develop an internal web application for my company. It is used by our field technicians, all of whom carry a BlackBerry 8330 running 4.5. I would consider myself fortunate to have such a consistent target platform, if it wasn't BB 4.5... I've noticed a lot of request overhead in loading the site, and know that if only my CSS resources...

What should be the role of web services in a web site?

I'm building a web site which includes a control that will use a LOT of data. So I thought of doing that through web-service, in order to improve scalabality- that way I'll be able to use a different server for this purpose. Is this a good idea? If so, where does it stops? Why not have web-services all around, and a very "thin" web site?...

Why do websites ask me to enter email address and password again

I was just looking for a todolist service over the net. I encountered this tadalist site http://tadalist.com/. Now I was making an account for myself. On this page it asked me to enter email address again and password again. Many sites where I have created an account this thing is done of asking the user to re-enter details. I don't ge...

How to deploy a WAR file into Apache 2.2

Hi there! My server is an apache 2.2 who serves php applications, now I would like to configure it to serve J2EE applications as well. I think there is an Apache module to deploy WAR files into it, Could anybody help me? Thanks ...

Can we find out if skype is installed or not on a machine thoough web app?

Hi, I am writing some web app, from web app I want to know if skype is installed or not on a machine from which web page is called. Is this possible? if yes how? It should work at least on Firefox, IE and chrome on windows. If it works on Linux and Mac then it will be great. Thanks in advance. ...

console.log symlink can not read log files

I made symlinks to log files stored inside of my user directory in a folder called apache.logs, however, console.log can not read them, the log files come up with a bunch of garbage. I found out how to fix this in the past but have been unable to figure it out. any ideas? thank you for your help ...