web-development

Is there a way to deserialize an object into "$this"?

I'm writing a class to handle a memcached object. The idea was to create abstract class Cachable and all the cachable objects (such as User, Post, etc) would be subclasses of said class. The class offers some method such as Load() which calls the abstract function LoadFromDB() if the object is not cached, functions to refresh/invalidate...

How do you plan for starting a new web system?

I've been creating more and more systems recently and I find more and more planning and preparation I do before starting the project. I determine what libraries or frameworks I will be using, what languages, the basic architecture of how the site will flow, etc. I've also heard of other design processes such as hanging styrofoam balls ...

Has anyone used Coffeescript for a production application?

Coffeescript looks pretty cool. Has anyone used it? What are its Pros & Cons? ...

Swapping an image during web development

I'm trying to see what a certain webpage would look like if I replaced a certain image with another. Rather than upload the image, edit the site, etc, each time I tweak it, I'd like to know if there's a way to change the image in the page to my local version while viewing the remote page. I use Firebug for debugging web development usua...

CSS: Size of buttons in Chrome is different than Firefox

I have the following HTML code: <style type="text/css"> .submitbutton{margin-left:-2px;padding:1px} </style> ... <form> ... <input class=submitbutton type=submit value="Create Listings" /> </form> In Firefox, the input button has more padding than in Chrome. Any ideas why? UPDATE: If you're wondering why I have the negative margi...

is there a z-index equivalent for frames?

Hey, Here's my problem: I have two frames, one on top of the other. The top one contains the menu and the drop-down part of the menu gets covered by the lower frame. How would I go about fixing this? Side question: should I use frames or iframes? Thanks in advance, Matt ...

Criteria for selecting software for embedded device

We are currently evaluating Web servers for an embedded device. We have laid down the evaluation criteria for things like HTTP version, Security, Compression etc. On the embeddable side, we have identified the following criteria: Memory footprint Memory management (support for plugging in a custom memory manager) CPU usage Thread u...

What is the "one-document-per-URL paradigm"?

what does "one-document-per-URL paradigm" mean with reference to web development.. ...

What are the advantages and disadvantages of a web site that contains a single page ?

I would like to code a little web site that will contain several sections like "Home", "Gallery", "Contact Us", "FAQs", and so on. I thought to do this in one HTML by putting each section in a div and show only one div per time (using Javascript / jQuery), based on the chosen menu button. Alternatively, I could create a separate HTML p...

How to change source order of <div> in less steps/automatically?

How can I do this task automatically. I need to change source order of the divs, which has same id in above 100 pages. I created an example: This is default condition <div class="identification"> <div class="number">Number 1</div> </div> <div class="identification"> <div class="number">Number 2</div> </div> <div class="identificat...

Seeking inputs / feedback on RapidWebDev

Hello. I'm looking for a critical review of RapidWebDev. Has anybody out here used it? Should it be considered for serious web application development? I found one comparison and the claims are tall. I only worry that the architecture shouldn't be limiting. ...

Autologin for web application

We want to AutoLogin feature to allow user directly login using link into our Web Application. What is the best way achieve this? We have following approches in our mind. 1) Store user credentials(username/password) in cookie. Send cookie for authentication. e.g. http: //www.mysite.com/AutoLogin (here username/password will be passed ...

What does Silverlight offer?

I'm working with C# and WPF and I would like to study something related to web programming. I already know HTML and CSS, and since I'm working with WPF, I am wondering if going into Silverlight is a good choice to start web developing. Can it be a substitute of server-side programming languages, like PHP or ASP .NET? What do you suggest?...

Why the home page is called index.html ?

I understand that calling the home page index.html is a convention. Is that right ? Does this name has any special meaning (maybe for search engines) ? ...

css name should be?

i am making style sheet for a website. css style name should be related to website or content? my website is about web development.is that right to use style name- #web-development-header .web-development-company-london-content or should use #header .content is css style name can help for seo? ...

appear subdomain instead of ip address

hi! I have me own xamp server on my office and I developed an intranet witch clients can access through client.com domain... I have an index.php with header("location:ipadress") . i was wondering if it is possible to redirect cliente to my office ip adress but mantain my domain name in the browser like http://intranet.client.com is t...

How to know which URL is accessed from IP address/Country in Google Analytics.

How to find-out which url is accessed from which IP address/Country using Google analytic. I found the country list and visit count. how do i know which URL visited from that country. ...

Security when writing a PHP webservice?

I am writing a web service in PHP for the first time and had ran into some security problems. 1) I am planning to hash passwords using md5() before I write them to the database (or to authenticate the user) but I realize that to do that, I would have to transmit the password in plaintext to the server and hash it there. Because of thi...

Single SignOn - Best practice

Hi Guys, I need to build a scalable single sign-on mechanism for multiple sites. Scenario: Central web application to register/manage account (Server in Europe) Several web applications that need to authenticate against my user database (Servers in US/Europe/Pacific region) I am using MySQL as database backend. The options I came up ...

How to implement something like PHP's http_build_query and the reverse in javascript?

<?php $data = array('foo'=>'bar', 'baz'=>'boom', 'cow'=>'milk', 'php'=>'hypertext processor'); echo http_build_query($data); /* Output: foo=bar&baz=boom&cow=milk&php=hypertext+processor */ How to do similar thing in javascript,say, get the query string from the array ,and convert the arr...