• submit to reddit
Giorgio Sironi09/05/11
4881 views
0 replies

Practical PHP Refactoring: Change Bidirectional Association to Unidirectional

This refactoring is the inverse of Change Unidirectional Association to Bidirectional. We start from a bidirectional association, where two objects reference each other; the association is simplified to only comprehend one direction, deleting one of the two...

Jalpesh Vadgama09/05/11
7562 views
0 replies

ReCaptcha in ASP.NET MVC3

As a web developer we know what is captcha is. It’s way to confirm users as they are human.Following is captcha definition per WikiPedia.

Gil Fink09/05/11
4689 views
0 replies

HTML5 Adoption Strategies

One of the questions that I got in the session that I delivered today was how to adopt HTML5 today? Since this was a very good question I decided to share what I think about it.

Steven Lott09/03/11
4806 views
1 replies

The Users Just Want "Search" -- What's So Hard?

Great article on "Search" from back in '08 in Forbes. "Why Google Isn't Enough", by Dan Woods. He's talking about "Enterprise Search": why in-house Google-style search is really hard and often unsatisfying. Here's the cool...

Matthias Marschall09/03/11
6099 views
1 replies

Automated Configuration Management With Opscode Chef: The Basic Moving Parts

The Moving Parts Managing your infrastructure with Opscode Chef involves a few moving parts you need to be aware of. As I found it quite hard to differentiate, I want to share the basics with you:

Lorna Mitchell09/03/11
4513 views
0 replies

PHP OAuth Provider: Access Tokens

I've been working with OAuth, as a provider and consumer, and there isn't a lot of documentation around it for PHP at the moment so I thought I'd share my experience in this series of articles. This relates to the stable OAuth 1.0a spec, however OAuth2...

Axel Rauschmayer09/02/11
1888 views
0 replies

Currying versus partial application (with JavaScript code)

Currying and partial application are two ways of transforming a function into another function with a generally smaller arity. While they are often confused with each other, they do different things. This post explains the details. Currying Currying...

jb j09/01/11
10132 views
1 replies

10 Life-Saving PHP Snippets

In order to be efficient, a web developer should have a toolbox with code snippets he can use and reuse when needed. In this article, I’m going to show you 10 extremely useful PHP code snippets to add to your web developer toolbox. Highlight specific...

Mats Lindh09/01/11
5125 views
1 replies

Avoiding HTTP 500 Error while Clustering Solr with mod_jk

We’ve extended our previously single Solr-node to a few nodes in a cluster. This allows us to run queries against one node while updating or configuring another, distributing the load across several servers (although we’re not there yet load wise) and...

Giorgio Sironi09/01/11
11046 views
1 replies

Offline web applications: a working example

What happens in the debate for a native application vs. web application in the case offline usage comes into play? Surely you can't use a web application if you do not have an active connection for loading it.With the boatload of innovations in the HTML5 and...

Giorgio Sironi08/31/11
5164 views
0 replies

Practical PHP Refactoring: Change Unidirectional Association to Bidirectional

Object graphs are built by maintaining references to other objects inside an object's fields (usually private). These associations are persisted and stored by an ORM or another mechanism, or are simply built by PHP code calling constructors and setter during...

Dong Nguyen08/30/11
4269 views
0 replies

50 Outstanding CSS3 Tutorials

Almost all modern browsers support CSS3. In this post,  we present 50 best css3 tutorials for visual effects, layouts and web form design to help you find solutions to the problems you are dealing with or will have to deal with in future. 1. Pretty CSS3...

Gonzalo Ayuso08/30/11
3475 views
1 replies

Building a small microframework with PHP (Part 2). Command line interface

In my last post we spoke about building a small microframework with PHP. The main goal of this kind of framework was to be able to map urls to plain PHP classes and become those classes easily testeable with PHPUnit. Now we’re going to take a step forward....

Giorgio Sironi08/30/11
8567 views
4 replies

There's no reason not to switch to DocBlox

Alessandro Nadalin signals these three options for Api documentation generation, the process of extracting Api informations on classes and methods from a folder full of source code:

Axel Rauschmayer08/30/11
2344 views
0 replies

Spreading arrays into arguments in JavaScript

Sometimes, one needs to spread the elements of an array, to use them as the arguments of a function call. JavaScript allows you to do that via Function.prototype.apply, but that does not work for constructor invocations. This post explains spreading and how...