Tag Archives: product

(PHP) Magento Using Collections, Filters and Manipulation Methods

A collection is a Model type containing other Models, it is basically used in Magento to handle product lists (ie. from a category or a bundle option), but not only. This is a simple example of loading some product collection from a category and ordering them on their product name using Magento’s API.

Posted in PHP | Also tagged , , , , , , , | Leave a comment

(Haskell) Euler Problem 4

A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 * 99. Find the largest palindrome made from the product of two 3-digit numbers. There are shorter ways to do this, and I cheat a bit by counting down to 900 rather [...]

Posted in Haskell | Also tagged , , , , | Leave a comment