web-development

Detecting if your site is being accessed by a robot

I have some geo targeting code whcih I want to behave in a particular way if the site is being spidered by a robot e.g. google etc. Is there any way to infer this? ...

reading mail from PHP

i am searching for a way to read mail messages from a PHP application, including access to attachments etc. imap functions are not acceptable as a solution, as this application will handle mails with heavy attachments. i have full access to the server's mail folder from php via filesystem. any thoughts? ...

Web: Favicon dimensions?

I have a favicon with the dimensions of height=26px / width=20px named favicon.png <link href=http://www.example.com/images/favicon.png rel="shortcut icon" /> However, in my browser, my favicon.png is all distorted. Question: Is my favicon.png suppose to be a particular size/dimension? Also, can I use a none standard size/dimension a...

What are the characteristics of a Scalable, Secure and Easy to Use Web Services?

Our application currently exposes web services built with WSDL 1.1 and SOAP 1.1 following the w3c standards below: http://schemas.xmlsoap.org/soap/http is the WSDL 1.1 binding for the SOAP 1.1 HTTP binding. We want to revamp our web services to be Scallable, Secure and Easy to Use Easy to use refer to the fact that at this mom...

JQuery: How to switch image back and forth?

I have the following HTML: <div class="listing ref_1"> ... <div><img src="toggleON.png" /></div> ... </div> <div class="listing ref_2"> ... <div><img src="toggleON.png" /></div> ... </div> <div class="listing ref_3"> ... <div><img src="toggleON.png" /></div> ... </div> What I want to do is programm...

Why use JSP/Servlets?

I have done a lot of web development using PHP (both procedural and OO). I have in the last few years been involved in Java development (not JSP and Servlets) for embedded systems. I am pretty proficient using Java SE and have recently scored a nice web dev job. I am thinking of developing this site using JSP and Servlets but this is str...

JSP or RUBY/PHP?

At my technologies crossroads and would like to hear some words of wisdom or tales of caution. I am on the verge of assembling a development team and all things are set save my controller layer - which way should I proceed..? I personally am an experienced Java programmer and would certainly never even consider ASP (ever) but, would cert...

How can website hits statistics be helpful to improve usability?

Have you noticed that almost every links in facebook have ref query string? I belive that, with that ref, facebook somehow track and study their user behaviour. this could be their secret recipe of making a better usability. So, I am trying out the same thing, change http://a.com/b.aspx to http://a.com/b.aspx?ref=c and log every hits i...

Getting a form to submit when the enter key is pressed when there is no submit button

I've got a form that has no submit button and it would be great if the form is still submitted when the user hits the enter key. I've tried adding a hidden submit button, which gives me the desired behavior in Safari, Firefox and Chrome, but the form is still not submitted in IE. Is there a standard way of doing this? ...

Global Portal Web Rules and Accessibility Rules?

A design agency I work for recently contacted me regarding the website development of one of their major (corporate) clients. They said: The HTML must be done according to the many global portal web rules and accessibility rules. ... although they'll provide more information on "global portal" and "accessibility" rules sometime...

PHP: Ambiguous function names

hi, I am new to php and i have seen rather Ambiguous function name convention in php and this confuses me as i regularly forget function names. I suppose i should give you an example. If function for encoding is htmlentities then why it's opposite is named html_entitiy_decode rather than something like entitiesdecode or the one which i...

How can I obtain the approximate geographic location of a web user?

It would be of significant benefit to my business if we could display information corresponding to a user's location when they reach our website's home page. I understand that trying to obtain geolocation from only an IP address is not an exact science, but we're willing to take what we can get. What techniques are there available for d...

[Perl] After querying DB I can't print data as well as text anymore to browser

I'm in a web scripting class, and honestly and unfortunately, it has come second to my networking and design and analysis classes. Because of this I find I encounter problems that may be mundane but can't find the solution to it easily. I am writing a CGI form that is supposed to work with a MySQL DB. I can insert and delete into the DB...

Using Git as a source control for webdevelopment and multiple environment

Little context: We are a team of 6 developers working a web application. Since launch we have been using CVS as our source control system on a Windows server using ColdFusion w/ Eclipse. With all the hype around Git and distributed systems lately we thought we would check it out. As a standard web application we have our local environ...

Is it possible to "measure" the usage (e.g. in MBs) per user, of an SQL Server database in web farm conditions?

I have an ASP.NET web application hosted in a web-farm environment, and I need a way to be able to indicate how much a user is using my database. There are several reasons for this, and I mention a couple. First, because I pay for the database space per month, I want to have a reasonable way to charge my users. Second, it would be nice...

Where can I find good .NET online tutorials for Web Development?

First, I apologize if this is a repeat of a previous question; I did some searching on SO and couldn't quite find what I was looking for in the search results. I'm a Coldfusion Web Developer and I'm finding that in my local area, work for CF Devs has become extremely scarce. There were a handful of companies that were Coldfusion houses...

How to make the web page to download bottom to up?

Every web page load from top to bottom means first my header will be loaded then content and finally footer. How can i make it to load from bottom to up.means first footer then content and then finally header content. Are you getting what i am trying to say.?? OR to make it load from right to left OR left to right.. ...

Tabbing within an asp.net application

I have developed an asp.net application. If the user tabs through the fields of my application and then continues beyond the end, the tabbing continues outside my application. This includes the box where the user enters the URL, then some others including the Google box to enter search criteria. Then eventually it returns back to the fir...

Use of Response.Redirect in C#

I am working on a website that I inherited (ASP.NET and C#), and I noticed that in almost EVERY method in the code behind of the project pages (except some helper methods), the original author uses Response.Redirect() to redirect to a page (typically home.aspx, but not always). What is the purpose of doing this? It seems unneeded to me...

Could a single person cover all the skills that should be needed for a commercial web project to succeded?

In terms of skills, he should need knowledge on the server side programming (mostly), the client side programming (AJAX today is a MUST), front-end design techniques (XHTML & CSS + Usability issues), a RDBMS knowhow (both developer and maintainance), a big knowledge on recover server issues (the Apache web server and the underline hot, l...