Question: I'm looking to solve a problem regarding the optimal sorting of variable sized boxes into the confined space of a 4x4 sized rack. The algorithm should sort those boxes so that there is as little wasted rackspace as possible.

The rack I'm talking about looks like the typical IKEA rack "[Expedit](http://www.ikea.com/de/de/catalog/products/80071357)".

Perhaps somebody can point me to documentation on algorithms that could solve such a problem or to some implementation.
Every programming language is welcome.

Thanks for your time,
Frank

Answer: 
You should read the [Facebook Factsheet](https://www.facebook.com/press/info.php?factsheet).

Site was originally built on [PHP](http://php.net/) and MySQL (and still uses a combination thereof to this day; albeit, much more complex combinations of architecturally). To build your own Facebook though, you don't necessarily need to use PHP. There are lots of great web frameworks you could try like [Rails](http://rubyonrails.org/), [Django](http://www.djangoproject.com/), et al.
Facebook I believe is based on PHP, mySQL and Apache. Here you can see some of the open technologies and tools they use.

<http://developers.facebook.com/opensource/>

And if you are planning on making your own facebook, or something similar, you might want to give a brief look to diaspora. It is an open source social network build with Ruby on Rails.

<https://joindiaspora.com/>

<https://github.com/diaspora/diaspora/wiki>

Good luck

Kevin.