web-development

Reduce frequency of deployments in a Java web application using Spring-MVC

Is there a simple way to have your "Service Layer" deployed separately from your web layer, so that I can reduce the number of times per week that I have to, package, build and deploy the entire WAR file? I'm using Tomcat mostly, but I'm hoping for something more generic to Java web servers ...

jQuery plugin to style objects

Hi. I've been looking at the various JavaScript UI libraries and am wondering if there's one that can add some styling to page elements. I'm currently adding rounded corners, shadows, borders, and gradients via my own CSS + hacks to get it working on IE. I'm using jQuery for a number of tasks and wondered if there's a plugin that can ad...

web site development best practices, design or code by first?

I'm using an MVC framework to develop a web site, I've to care about the design in the sense of look and feel (views) and the code (models, controllers). I don't know what is the best way to proceed: code and design iteratively by small chunks? design first ? you've got the point ...

What are options for GWT to C++ communication?

I am looking for GWT to C++ communication solution. Currently I am trying to figure out how to run WSDL in GWT, but actually, have absolutely no experience in WSDL, and only little in GWT. So, my question is about feasibility of working with WSDL in GWT (and how?) and other approaches would also be interesting if exist. I am trying to...

How to force Weblogic to start deployments in active state (i.e. not just prepared)

When I start a Weblogic instance with a deployed application, the deployment is sometimes left in prepared state, not in active state. I have to go to Weblogic Console and start the deployment manually, which is quite slow and annoying repetetive work. Since this is done on a development machine — sometimes 50 times a day, — there are ...

Searching in Ruby on Rails - How do I search on each word entered and not the exact string?

I have built a blog application w/ ruby on rails and I am trying to implement a search feature. The blog application allows for users to tag posts. The tags are created in their own table and belong_to :post. When a tag is created, so is a record in the tag table where the name of the tag is tag_name and associated by post_id. Tags are s...

How to embedd cgi in html

I have no problem executing a cgi file under the normal url like this: http://www.myhost.com/mydir/cgi-bin/test.cgi However when I tried to embedd it into HTML file (called index.html) like this: <HTML> <BODY> <P>Here's the output from my program: <FORM ACTION="/var/www/mydir/cgi-bin/test.cgi" METHOD=POST> <!-- This does...

JQuery: How do I determine if a slideToggle has been toggled?

How do I do the following pseudo code in JQuery? $(document).ready(function(){ $(".btn-slide").click(function(){ $("#divToSlide").slideToggle("fast"); if ($(this).isToggled) { // <---- DOESN'T WORK ------- // do something when toggled } else { // do something different when not toggle...

JQuery: How do I use the JQuery delay with my own function?

How do I use the JQuery delay in conjunction with my own defined function, pseudo-code like so?: $('#foo').slideUp(300).delay(800).myOwnFunction(1,2,3); function myOwnFunction (a,b,c) {...} The code above doesn't work, however - per the JQuery documentation it appears like it should. ...

JQuery: How to use an HTML ascii arrow for a toggle indicator?

I came across this great JQuery example of using a slidetoggle. I want to implement it exact as is, except for one thing. The example uses an image for the Up and Down (white) arrow indicator. Can't I use the HTML ascii up arrow () and down arrow () instead of using an image. If so, how? ...

Getting Different IP each time

Hello, I am creating a poll script for a facebook fan page: http://www.facebook.com/apps/application.php?id=115400635147687&amp;v=app_115400635147687 I am getting the IP using: $_SERVER['REMOTE_ADDR'] But the problem is that each time I refresh the page, or make an ajax call, the IP is changed everytime. Someone told me that facebo...

Publish news feed through cron job

Hello, It is possible to publish news feed on user's wall through a cron job, if yes then how, what does facebook offer to do that? ...

Why companies still using winforms /wpf application instead web application?

I don't want discussion. I want only reasons, because I last days have lack of confidence in my job(winforms/wpf) and I thinking it is good way to change technology/job. Thanks for answers ...

Jquery Cluetip - clean up between ajax loaded content

Hi, I'm using the jquery cluetip plugin and trying to figure out how to remove any open cluetip dialogs once i load new content via ajax. I am either stuck with the dialog boxes still showing on top of new content, or the ways i've tried to fix this actually remove all future cluetip dialogs from showing at all. Here's my code, thanks ...

How to create virtual path to tempdir tomcat ?

I want to put my images to db but i want to have a link on each image. So I have the idea to copy the image to the temp dir of tomcat (or weblogic). But I must map the tempdir to a virtual path. How do it ? ...

Setting up a web development/build environment

Hello all, My current project has a development web server and live web server. Developers make changes to files on the dev server and test them (by going to the dev address) and make changes as necessary. When the file or files are ready to go, they are copied to the live server. There is no version control. As you might expect, there...

What are the standards for security on the web and web development?

What are the standards that govern security practices on the web and web development? What standards body publishes such documents? ...

Execute javascript in PHP

I'm generating your typical Web 2.0 HTML page with PHP: it contains a lot of <script> tags and javascript code that will substantially change the DOM after the load event. Is there a way to get the final HTML code directly from PHP, without opening the page with any browser? For example, let's say the HTML for the page is (it's just an...

Adding Table Columns to a Group by clause - Ruby on Rails - Postgresql

I am trying to use Heroku and apparently Postgresql is a lot more strict than SQL for aggregate functions. When I am pushing to Heroku I am getting an error stating the below. On another question I asked I received some guidance that said I should just add the columns to my group by clause and I am not sure how to do that. See the full...

Using AJAX to display error message Ruby on Rails

I have built a blog using Ruby on Rails. New to both. I am implementing AJAX pretty effectively until I get to the error handling portion. I allow for comments on posts and do this by rendering a comment partial and remote form in the /views/posts/show.html.erb page. Upon successful save of a comment the show page is updated using view...