web-development

Is there a rule of thumb for how many placeholders can be put on a web page?

Using aspx and c# 3.5, vs2008. Is there a rule of thumb for how many placeholders can be put on a web page before performance starts to deteriorate? Any other concerns for using a lot of placeholders? I am dynamically inserting controls (textboxes, checkboxes, expression validators, and buttons on to my page. ...

All Countries States Cities and Zipcodes in a Application

Is there a way getting all countries, states,cities zipcodes/ in one single database. I have been looking all over. I discovered geonames.org, which has I guess all of the content. But there is no way to fetch that data directly. I am using rails. If there any helpers or Plugins, it'd be great. It would be awesome if there is a comple...

Suggest a web development approach

Hello; I work as a PHP developer, and my boss is driving me crazy. He calls me every now and then, gives me tasks even when the previous tasks haven't been completed. Forbids me from meeting with clients and tells me incomplete specification verbally or over the phone, and expects to have working applications from the first deployment. ...

how to fetch text nodes in DOM and PHP?

Hello I have the following code to retrieve all hyper links in an HTML document and my question is how to retrieve the text nodes inside every anchor tag (even if the text node is a child of a child like if the anchor node has a span node which has a text node)? <?PHP $content = " <html> ...

Is there a way to test Comet applications without a running browser?

I'm trying to connect to an application that uses Comet and is pretty heavy on Javascript and Comet. I've gone as far as I can go in Firebug, HTTP Header examination and am trying to see what's coming over the wire by writing something using Ruby Mechanize. However, since I have no client run-time, my approach is to mimic the HTTP re...

What's quicker: serving a static HTML file from the filesystem or from MemCache?

What's quicker: serving a static HTML file from the filesystem or from MemCache? Also, is there scaling and/or other concerns I should be aware of? ...

Clojure web application - where do I start?

So lately I've been looking into Clojure, and I love the language. I would like to see if I can make a small web application in it, just to challenge myself. However, I have absolutely no experience setting up any Java-related web applications. In fact, I don't really have much experience with Java at all. Where do I start? I have lots o...

signoutForm on stateless page

hi i have a web site which is created by wicket(java) but in special cases i got following error. WicketMessage: unable to find component with path signoutForm on stateless page [Page class = ir.pnusn.ui.Dispatcher, id = 1, version = 0] it could be that the component is inside a repeater make your component return false in getStatelessH...

Is cgi dead?

Ok, let's put it in a more mildly: Is cgi (common gateway interface) legacy? yes? no? Under what circumstances would a project starting today (one that does noot have to interact with legacy systems or libraries) use cgi? ...

internal server error (500) in simple cgi script

I am trying to run a simple cgi script after configuring my server. My script looks like this: print "Content-type: text/html" print print "<html><head><title>CGI</title></head>" print "<body>" print "hello cgi" print "</body>" print "</html>" When I go to my scripts url http://127.0.0.1/~flybywire/cgi-bin/main.py I get: Internal Se...

jinja2: get lengths of list

How do I get the number of elements in a list in jinja2 template. For example, in python: print template.render(products=[???]) and in jinja2 <span>You have {{what goes here?}} products</span> ...

IE6/IE7 and transparent background bugs - What is a practical fix for all of them?

I am getting a number of strange rendering issues in IE6/IE7 when there are transparent backgrounds applied to the elements involved. They have included but are not limited to: When scrolling back up a page a background image appears moved as if padding is applied. When hovering over a link the background image applied to its containi...

Static Variable in Web Application

Hello All, It's well known fact that static variable cannot be used in Web Application as it remains static through out application.But,is there any scenario where static variable can be used in Web Application to achieve the functionality? Thanks ...

Which is the best method to redirect users from an existing website to an existing WP blog?

Hi, I have a website with around 500 html pages. I have now posted all these html pages into my blog as blog posts. I now want to now redirect users from the page to the blog. I could do that using mod_rewrite or JavaScript Since Google will re-index these posts, which of the these two methods would be a better option for SEO? Kindly ...

Has Anyone used Filmcaraves APIs

Am planning to use FilmCrave Apis for developing a website. Has anyone used them already? I would love to see a working example if any one has it. Thanks! ...

How to Enable ClearType in My Site for FireFox?

In Windows XP and Vista it is possible to enable system wide ClearType font rendering. My question is: Is it possible to force ClearType rendering for my site in FireFox (maybe some META-TAG thing) even if system-wide ClearType is not set (like in IE7+)? ...

Where does a theme end and an app begin?

We have created a portlet. We then went through some pain to move images from our portlet into a theme created for our portal vendor. I disagreed with this move, thinking that having application images within the theme overstepped the bounds of the theme. We are now having issues caused by having the images in the theme rather than th...

How to automatically excerpt user generated content?

I run a website that allows users to write blog-post, I would really like to summarize the written content and use it to fill the <meta name="description".../>-tag for example. What methods can I employ to automatically summarize/describe the contents of user generated content? Are there any (preferably free) methods out there that have...

mysql: how to sum 2 fields in the table and put the result in the 3rd field?

Hello lets say our table has the following structure col1 | col2 | col3 I want to sum col1 and col2 then update the col3 with the result Thanks ...

Version control has me stumped

I've been developing websites for a few years now, and I've never had the time or energy to learn about version control. Now, as I start one of the bigger projects I've ever developed, I'm thinking of finally taking that plunge and using this as an opportunity to learn about version control. I've read a couple of brief descriptions and ...