web-development

How to set site in maintenance mode trough shell-script?

For my next project I will use automatic deployments with git. I can run a shellscript before and after deployment. Is it possible to set "maintenance" automatically with shell? In my .htaccess then I would check if a server variable is set to deployment or not to do the rewrite to maintenance? Is this possible and how should I handle ...

Is it possible to invoke a Servlet before showing index.jsp

I need to do some pre-processing logic which reside in my Struts2 Action class, before showing index.jsp when user access my Java web application for the first time. I tried using the below snippet in web.xml but it failed: web.xml: <welcome-file-list> <welcome-file>loginPage.action</welcome-file> </welcome-file-list> To summariz...

What are the differences in the MVC pattern on the web vs desktop?

After doing some reading on the Model View Controller pattern it seems that the pattern is implemented quite differently in web frameworks vs desktop frameworks. With web based MVC frameworks the view and model never communicate directly. They can only communicate with the controller. But in desktop implementations, it seems that the vie...

Why do we not see much AJAX in secure applications like internet banking?

Can someone list with references / evidences if possible, why we don't see much AJAX in secure web applications like internet banking? eg. Internet banking has a list of tabs for Accounts, Payments, Tools, Reports. Normally you'd see these implemented as links to different pages. Why couldn't you just have one page and use AJAX to load ...

Has AJAX really solved problems with normal GET / POST ?

A passionate discussion from today. Developer 1: "AJAX is a set of tools, use it where it really helps, not just for the sake of it." Developer 2: "Its almost 2011, we can build rich desktop like applications in the browser, we should use AJAX everywhere and make a single page application with everything in it an A...

Passing values between two "totally different" pages

I've done my homework, I've read a lot of articles, I searched and searched but still couldn't find my answer and it's kind of getting on my nerves because there's a very popular question all over the blogs and websites and it's just the same as mine, the difference is the answer is not what I want! To be clear, the two pages are only l...

Protecting JavaScript? Or use Something else?

Possible Duplicate: How can I obfuscate JavaScript? I have been working on a web app in JavaScript. Nearing complete. How do I protect me JavaScript code from someone copying it? I mean if you view my page source, it references the .js files and one could really steal these. Should I be using something else? RoR? Does Googl...

JavaScript minifier (e.g. YUI) integrated to ASP.NET Webdeploy Publish

I have a javascript file that I minify using the Yahoo YUI. When I 'Publish' the web application project, I want it to only copy the .min.js file and not the original one too. I can use a pre-build event to create the minified version, but how do I prevent 'Publish' from copying the non minify file? I suppose I can 'exclude' the origina...

Navigation will not align right

I spent hours trying to get this right, but it just doesn't work for me.... As you can see in the image: The navigation just isn't right. Maybe you can help me? The site is http://elektrikhost.com.... I used the Web dev extension fore firefox for the guide lines... I don't know why it just won't work for me.... Heres the CSS: nav...

on a Web Setup, how do I exclude all .pdb files?

In a sample solution on Visual Studio 2008, let's say, I have this: myWebSite project (web site project) myLibrary project (library project) myWebsiteDeploy project (web deployment project) myWebSetup project (web setup project) inside myWebSite there is a myLibrary.dll and myLibrary.pdb witch they are included in the myWebSiteDeploy...

What are the Best Program Languages to Learn from scratch and Why

I have been working with PHP and Wordpress sites for a long time, but Im thinking about trying to learn more than just the basics. Im wanting to learn some program languages so I can develop my own applications and startups. What are the best languages to learn and why? ...

velocity template and javascript

I try add javascript to my velocity template. <html> <head> <title>:: $currency.CurrencyName Detail Info ::</title> </head> <body> <table> <tr> <td>Name</td> <td>$currency.CurrencyName</td> </tr> <tr> <td>Jual</td> <td><div id="$currency.CurrencyName_buy">$currency.Buy</div></td> </tr> <tr> <td>Beli</td> <td><div...

searching techniques

how to find out particular topic/helps from the google? is there any kind of techniques ? for example i want to find "goto" statement function or i want to find out types of css with example for html? kindly give me answer ? ...

Question on wget

Can wget be used to get all the files on a server.Suppose if this is the directory structure using Django framework on my site foo.com And if this is the directory structure /web/project1 /web/project2 /web/project3 /web/project4 /web/templates Without knowing the name of d...

Flash player artifacts on IE

Hi. The Flash player in this content slider gets artifacts on IE7, 8, and 9 Beta when the slider changes slides: http://bit.ly/9hhDY5 The text next to the video ends up going on top of the video in a jumbled way but clears up when you click the Play button. The slider looks fine on Firefox and Opera. I'm using Win7 64-bit Enterprise on ...

ASP.Net Menu Control - Horizontal - Not Showing Sub Options

Hello, I am trying to use the ASP:Menu control. It is rather simple. I want it Horizontal. Each of those first level items will have Sub items. I can get it Horizontal and when I hover over the Instant Reports or the Configurable Reports choice it seems to pop down a div or something but it is empty. I have tried formatting and eve...

For a consumer website, should I have a user ID in my DB in addition to the user-selected unique username?

Hello everyone, This is a "web dev best practice" question. I am envisioning a website where users would sign up with a username they would select (revolutionary, I know). They would also enter a valid email address. I would test for the uniqueness of those in the db before allowing the sign-up. The site is non-commercial in nature,...

Using a Tiff image on a webpage

I may be forced into using a tiff image on a webpage. Do most modern browsers handle tiffs. Are there any gotchas? ...

Getting javascript libraries from Google / Microsoft CDNs through SSL

Hi, I'm getting a couple of libraries from Google / Microsoft CDNs. ONLY one page on the system uses SSL but since I'm referencing libraries on the master page I'm getting the javascript libraries using the SSL so the single page that actually requires it doesn't throw security errors because accessing unsafe resources. I've read tha...

PHP Array_Unique Problem

I don't know PHP very well, so please bear with me. My client has a database with information and one of the fields is ff_date_time in the format "Tue Oct 5 14:43:10 2010". There are a lot of entries in here and I need to display a list of just the days that have entries: ie, Tue Oct 5, 2010Thurs Oct 7, 2010 and so on. There may be hu...