When you are deeply involved in graphics editing, at some point you will need specially-sized images, such as: specified megapixels while having a fixed 4:3, 3:2 or other w/h ratio width and/or height to be multiple of 2, 4, 8, 16, etc. at a given w/h ratio calculate the other side, knowing one side and […]
Month: October 2012
MySQL: Select field, replace text from another table
I have two tables, “products” and “brands”. In the “products” table, the product’s name is in the “name” field. The product’s brand is represented by the # (diez) character. To know which is the brand, there’s a “brand_id” field. So far we have: products table: id: int name: varchar brand_id: int brands table: id: int […]