web-development

How to create directory like urls for each page on a website

Hi, I have a content site that spreads across multiple pages but there is only 1 index.php file which retrieves the data from the database based on the page no. Currently the url direction has to be something like domainname.com/Page/content.php?page=3 I have noticed, quite a few sites have directory like structure for the urls like: ...

Password protect a whole .net mvc application?

Hellu, I want to put a password protection on my entire web application for development and testing purposes. I would like some simple way to do this (global asax, webconfig etc), which means I don't have to change very much in the rest of my application. The password and username can be stored in the code/webconfig or whatever. Since ...

Website Help - Creating a better ChatRoulette

I know html and css, and a little mysql and php. I want to make a site similar to chatroulette. What languages and technologies do you recommend I learn and use? And could you please describe the best way to faciliate the video chat aspect of the site? ...

Using Gaelyk URL routing in a non google app engine application

I have a Groovy Web application which is NOT being deployed on Google app engine. (GAE) I have used Gaelyk before and I like the URL routing functionality described in their doc How do I port over just the routing functionality from Gaelyk to my basic Groovy WEB application which is not being deployed on GAE? Note 1: I also do not wan...

Is there a Lift cheatsheet / quickref ?

I found a couple of blogs on how to get started with Lift, but I need a quick reference. Something like: here you define the application map, this is how to write snippets, etc. I want to start a Lift app that is not "hello world" and I need the tl;dr version :) ...

commandLink does not work on the first click

I've found some questions that seem related to this one, but none describes exaclty what is happening to my web app. Here it goes: it's a very simple app, with a left menu bar, a header and a central panel to show some texts. The menu bar has a lot of commandLinks which will define which page is going to be loaded in the central panel....

Dynamic URLs - with or without a trailing slash?

The short question is - what is the best practice - to use or not to use a trailing slash in URLs. There are many articles: this, this, this. However, they all seem to deal with static directory structure. What about dynamic urls, like those rewritten, or those handled by a central facility (like a web framework, for example), that for...

why near 1 month , but google dont crawl my website?

why near 1 month , but google dont crawl my website? my website is new , only 1 month. Google crawl it when it but only at begin of release website. Now near 1 month it dont change on cache of google. Can it is normal ? Edit: I just check again , it changed ( morning, i dont change o_o ).But it dont craw all my page , crawl very litle...

Do you make a separate CSS for IE?

I'm trying to figure out what is the best solution for me right now. I was using CSS3 to make some rounded corners and drop shadows, but IE8 did not support it, so I had to use CSS3pie for IE8. Unfortunately, after applying the pie, it seems IE8 is just does not want to look the same as Chrome or FF. Why is IE such a hassle? Should I...

Imagemap Rollover and Tooltip

<img src="http://www.w3schools.com/TAGS/planets.gif" width="145" height="126" alt="Planets" usemap="#planetmap" /> <map name="planetmap"> <area shape="rect" coords="0,0,82,126" href="sun.htm" alt="Sun" /> <area shape="circle" coords="90,58,3" href="mercur.htm" alt="Mercury" /> <area shape="circle" coords="124,58,8" href="venus.htm...

MySQL: Should my user ID be INT auto-increment primary key starting at 1?

I'm a beginning programmer, building a non-commercial web-site. I need a user ID, and I thought it would be logical to use for that a simple INTEGER field with an auto-increment. Does that make sense? The user ID will be not be directly used by users (they'll have to select a user-name); should I care about where they start at (presum...

How do I add a collection e.g. dynamic array as a property of a custom asp.net control?

I'm trying to add a dynamically expandable property to a composite control that I can drop on the designer surface. I've tried this with a String Array, a List, and an ArrayList. All with similar results. I'm missing something and I don't know what. Here is what I think is the relevant code: [DesignerSerializationVisibility(Desig...

Handling Images and file attachments in a Content Management System

Assumptions: Microsoft stack (ASP.NET; SQL Server). Some content management systems handle user-generated content (images, file attachments) by storing it in the file system. Others store these items in the back end database. Some examples of both: In the filesystem: Community Server, Graffiti CMS In the database: Microsoft Sharepoin...

Possible to connect hosted web application to local database?

Is there any tech out there that allows for a hosted web application to connect to a local database? For example, say I would like to write some web-based software for a popular point-of-sale solution. The ideal would be to have the customer input their database connection credentials and have the application connect to their locally hos...

Dynamic URLs w/ Struts 1

I'm using Struts 1. I have a list of stores in our database. The store table contains store id, store name, url friendly store path, store address. For example, "1; Store 1; the-wonderful-store; 52 Main St.", When a request comes in for /store/the-wonderful-store.do, I want to grab "the-wonderful-store" and query the DB for the store...

Python web programming with standard library

I want to write a simple python web application to provide a gui to a command line program (think of hg serve, for example). It would run locally only. I don't want it to have any external dependencies for an easier deployment, so python web programming in general wouldn't apply here How can it be done with a minimal hassle? Any pointe...

What is .gov cloud computing or G-cloud? Is it like Google's App Engine? Is it secure for secret data?

.Now I will be dealing with government data that needs to be secure on government servers. Is this .gov cloud a nice alternative to App Engine? ...

TFS 2010: Copy _PublishedWebsites to test server

I've seen similar questions and answers but found them not really what I want. I have a large solution with several web projects in it. All the web projects share some common code so they are all part of the same solution (there is a common project that is referenced by all of them). I've been running on Team Foundation Server 2008 an...

How to disable hover effect to highlight menu items in GWT MenuBar?

I am making a vertical Menu using GWT MenuBar and selection of particular MenuItem shows content on the right, I am trying to make something similar to TabPanel, but with Tabs on left instead of being on top. Now, since I've got the Menu items and actions in place, I want to remove the effect of hovering over and changing color, and keep...

Error when publishing Spring application to Geronimo web server

I'm trying to set up Spring with Geronimo web server, but I'm getting the following error: 2010-10-08 18:52:45,105 WARN [PathMatchingResourcePatternResolver] Cannot search for matching files underneath URL [bundle://316.0:1/com/unveiled/politics/] because it does not correspond to a directory in the file system java.io.FileNotFoundExce...