web-development

New site and SEO

I am in the process of hosting my site with a hosting service provider but the content for the site is not yet ready. So, I am planning to put it behind Apache auth and then, when I am ready to open it for the public remove the authentication. My question, is will this affect SEO in any way or prevent google from indexing the site in the...

Anonymous submission form

hi, im looking for a script much like the one used on Saxton Hale Facts, can anybody point my in the right direction? ...

Is there any testing tool to verify the font consistency throughout the web application?

The purpose is to check for any inconsistency fonts used across the web application so that the developers can fix the issue. Consistency in terms of all font properties (Font families,font sizes etc.) needs to be checked. As suggested by Pekka below, I can use CSS to define consistent font properties which can be used in all web pages ...

What encoding scheme should be used in a web project?

We are building a (Java) web project with Eclipse. By default Eclipse uses Cp1252 encoding on Windows machines (which we use). As we also have developers in China (in addition to Europe), I started to wonder if that is really the encoding to use. My initial thought was to convert to UTF-8, because "it supports all the character sets". ...

python and ruby equivalent of perls Template::Declare?

CPAN has the Template::Declare package. A declarative way to create html templates in perl code without any html directly written. I would love to use similar packages in python and ruby. Are there equivalent packages for those languages? ...

Strange troubles with Struts portlet

I have downloaded a pack struts2-2.2.1-apps.zip link text/ and after adding an action to those defined, I am still unable to use this new one. Everything I did was adding the same action but different name in struts-view.xml in the same package as action "formExample": <action name="formExample2" class="org.apache.struts2.portlet.exampl...

Navigation bar sticks on mouseout only in firefox..

Any help and/or direction is greatly appreciated. I have a dropdown nav bar that dynamically updates to load subpages using CSS and jscript. There's a Flash movie that the drop down menu will overlap on mouseover. Maybe this is causing a conflict with the mouseout function. However it works fine in IE this is only happening in Firefox....

How to avoid Silverlight ugly fonts?

I'd like to show some client that Silverlight can be used as a technology for BL apps. They were shocked that some firm waste the money for so crappy looking technology (it's about MS)... I just presented a screen with a few TextBoxes and some other controls... Any size of the font in pixels or pts I use (or TextHintingMode), with embe...

MSIE Developer Toolbar Style tab empty

I'm trying to debug my app using MSIE Developer Toolbar in IE8, but I also need to see how does it work in IE7. It's feature of browser and document switching comes handy in this case, the problem is that whenever I hit refresh button (in dev.toolbar, not browser) to reload DOM and CSS information (because they're dynamic and not refresh...

Ruby on Rails time match database start and end times

I've been banging my head at this one: I have a table with columns start_time an end_time as well as start_date and end_date, and I have a Time object called test_time. I need to be able to match these values in a sql query. ie. Reservation.find :all, :conditions => ["'start_time' <= ? AND 'end_time' >= ?", test_time, test_time]...

Local development with VirtualBox and Internet Explorer browsers

Has anyone had any issues while setting up their local development system with Mamp Pro 1.8.4, VirtualBox 3.2.8. For viewing websites in IE browsers. I have three websites that I'm looking at all three work in Firefox, Chrome, Safari. For this example lets just say I have: dev.site1.com dev.site2.com dev.site3.com Now site1 works in IE...

Prevent autoplay when embedding a swf - IE autoplays, all other browsers don't

Hi, I'm trying to stop a swf from auto-starting on page load - for firefox, safari etc, this works fine setting the autoplay parameter to false, but in IE the swf plays on page load. This is my code, any help greatly appreciated! <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="590" height="397"> <param name=...

Why is my container properties being overwritten? (Nivo Slider, CSS)

I'm using the Nivo Slider for the first time on a project. My container that holds the images has a padding and background to fit the design, like so: #slider { background: #fff; border: 1px solid #c1c1c1; padding: 10px; margin-bottom: 25px; clear: left; } Before adding the Nivo code, everything displays properly. Now I los...

ASP.NET MVC 2 Problem with custom ModelValidator

I am trying to validate that either of 2 textbox fields in my view have a value supplied. I made this Model Validator: public class RequireEitherValidator : ModelValidator { private readonly string compareProperty; private readonly string errorMessage; public RequireEitherValidator(ModelMetadata metadata, ControllerCont...

Sharepoint ResolvePrincipals function

I'm trying to add a user, programmtically, to a field of Type="User" in a SharepointList. Since I do not know the user's unique ID within the site in advance, I'm using the ResolvePrincipals function to add the user to the SPUserCollection as follows: Dim managerDN() As String = {"[email protected]"} Dim princ...

Web site performance - what is it about? Readability and ignorance Vs. Performance

Let me cut to the chase... On one hand, many of the programming advices given (here and on other places) emphasize the notion that code should always be as readable and as clear as possible, at (almost?!) any pefromance cost. On the other hand there are SO many slow web sites (at least one of whom, I know from personal experience). Obvio...

What is the safest way of passing arguments from server-side PHP to client-size JavaScript

Hello, In my application I rely heavily on JavaScript to enhance the user interface, but all of the data comes from a database and is processed by PHP. By default I use 'echo' statements to substitute the required values "just in time" like so: var myVariable = <?php echo $myVariableInPHP ?> This, however, does not strike me as very ...

Access files on remote server through web framework

We have a server that's remote and we're using a google app engine frontend to search for files in our database, and then have those link to our server through http. Is there a better way to serve remote files from app engine? ...

How to sequentially load images from an AJAX call [Web Development] ?

I have a real estate application that display homes. I use AJAX to populate a fixed height/width DIV "window" with home listings. Many times, the DIV window can be populated with literally a 1,000 or so house listings. Each house listing includes one picture of the property and each house listing is about 100px tall (each "row" is 100...

Lift vs. Others

anyone have any experience with lift and how it compares to more widely used frameworks like rails and django? ...