web-development

How do I change in an eclipse web project the WebContent folder to something different?

With the Galileo release it is finally possible to convert a normal Java project to a dynamic web project. Unfortunately it assumes that the Web stuff is located in a folder WebContent, which is not necessarily the case for an existing project. How can I change it? In MyEclipse it is quite easy, but with a stock eclipse I don't find such...

htdocs path in linux

Hello, I am working on linux server through ssh and want to know where to put html and php files (the htdocs folder) but its seems to me the servers is running lighttpd My directory structure looks something like this. ...

Why does my Perl CGI script showing up as plain text in the browser?

I've been playing around with making my mac a webserver, and now I'm trying to make a simple html form, and a perl script that prints out the input. I have /Library/WebServer/Documents symlinked to ~/Sites/, so I have my index.html and display.cgi both there. But when I press submit, the perl file just shows up as text. Any cgi file I ha...

Possible Data Schemes for Achievements on Google App Engine

I'm building a flash game website using Google App Engine. I'm going to put achievements on it, and am scratching my head on how exactly to store this data. I have a (non-google) user model. I need to know how to store each kind of achievement (name, description, picture), as well as link them with users who earn them. Also, I need to ke...

Building a CMS for bilingual website - need tips

Hi guys, I'm building a really simple CMS for a bilingual website. The website would have 5+5 pages each of which would have varying content. Its like you have an about us page, services page a news page and contact us page in two languages. I was wondering that on the CMS backend admin panel I would be making .. what is the better opti...

how to know when download is finished

Hi I'm creating online shop. In this shope people online must be buy files with zip extension. They pay with their credit cards or other methods get key and download product. How can I know when they finish product download? Thanks ...

Web Development: What page load times do you aim for?

Website Page load times on the dev machine are only a rough indicator of performance of course, and there will be many other factors when moving to production, but they're still useful as a yard-stick. So, I was just wondering what page load times you aim for when you're developing? I mean page load times on Dev Machine/Server And, on...

What else is there to do? A programmers guide to understanding himself

I have just recently graduated college with a Bachelors of Science in Computer Science and have joined the other millions in search for a job. I have took up, Assembly, Java and Scheme in college and have taught myself, PHP, HTML, CSS, Android and JavaScript on the side. My part-time job right now, I serve as a part-time web designer an...

Best SEO method to translate a website page with google translate

So must of us have a lot of content on our sites in one language or another. Since we are web professionals we spent all that time we could have been learning human languages - instead learning computer languages. So we need someway to translate our content. Google provides a translation service (among others) and so given their massive...

Using Layers (z-index) without leaving empty space

Hello, I want to put <div> above a flash object. I managed to do so but the problem is that now I have an empty space where the div was. I gave the div position relative and left & top values. Is it possible to move objects with z-index without leaving a mark somwhere in the page(taking space and leave blank area)?? Thanks ...

caching spring/hibernate webapp

I have a website that allows searches for lists of content in various ways, for instance "show stuff created by user 523 ordered by date" or "show a list of the most recent 10 posts." I use Hibernate for my ORM, and Hibernate provides a cache for objects. For lists of objects, though, like the front page list of most recent content, I'...

Best Practice for Label-Input layout in ASP.NET

What is the generally most accepted way of grouping labels and inputs? Currently I am placing each pair in a div, but previously I have also placed each pair in a <p>. Are there better ways? ...

Is there a service/way to calculate page drop off rate?

I'm in the process of analyzing our website to determine where we're losing customers. I want to find out how many are lost before the page even finishes loading. What is this metric called? And how do I gather it for my website? And are there any services that offer this (Google Analytics I'm looking in your direction...)? ...

HTML page to XHTML with TagSoup

Sorry if this is too simple, but I simply couldn't find a tutorial nor the documentation of the Java version of TagSoup. Basically I want to download an HTML webpage from the internet and turn it into XHTML, contained in a string. How can I do this with TagSoup? Thanks! ...

Netbeans not copying source files to web folder

I'm using Netbeans to develop an HTML/PHP site and I have the Run Configuration set as follows: Project URL: http://localhost/JEB Project Folder: C:\Documents and Settings\John\My Documents\NetBeansProjects\JEB Source Folder: C:\Documents and Settings\John\My Documents\NetBeansProjects\JEB Web Root: The "Copy files from Sources Folder...

cakephp: get values from a "cat" table in the "users_controller.php" file?

Hi i have table "User" and a Controller "users_controller.php" and i have another table called "cateogry", need to retrieve values from this table in the "listall" action(site.com/users/listall). how can i get values from another table. ...

Font size in OS X is too big

I'm creating an HTML/CSS site and I have the font size adjusted the way I want it when I look at the site on Firefox in Windows (which is what I'm developing on). But when I look at the site in OS X (either Safari or FF), the font size is too big. Not massively bigger, but bigger than my client wants. But if I reduce the font any more, i...

How to display local time of the browser in a web app.

Hey all, I am writing a web app and I would like to display timestamps on the page in the user's localtime. There seems to be several ways to do this but it is not obvious what is a good way. Use geolocation from the IP address to get the timezone - This seems like a lot of overhead. Use javascript to finally render the datetime on t...

Performance with php and mysql

Hi, I'm developing a site and I have some doubts about the best approach to query the database. In general, when I load a page, several data has to be fetched from the database. I'm not sure if I'm doing it the best way. So right now and as an example I call the following functions when the page is rendered: (...) (a) -> getAuthorName(...

generate "thumbnail" in html while keeping proportions

Is it possible to downsize an image in html while keeping proportions? I know I can use height and width attribute of img tag, but I don't know the image size. Please don't tell me to find out the image size on the server, or that the right way to do this is to generate thumbnails on the server side and that is saves bandwidth and impr...