Resize Image to 4x6

I had a need recently to print some images which were not standard aspect ratios and I wanted them printed on 4x6 paper. None of the photo printing services I use would print them without cropping. So I wrote this quick script to increase the image size so the actual image is 4x6 so they would print without any issues.

gist 3849fc97ea794a17a951

MySQL Quick Reference

mySQL reference - items in {} are optional

SHOW DATABASES      -show all databases you have access to      CREATE DATABASE [database_name]      -create a new database      USE [database_name]      -select a database to use      CREATE TABLE [table_name] ([column_name] [column_type], [column_name2] [column_type2])      -create a new table      SHOW TABLES      -show all tables in a database

DESCRIBE [table_name]      -list the properties of a table (including fields & types)      LOAD DATA LOCAL INFILE “[filename].txt” INTO TABLE [table_name]      -load data from a text file into the table           -the columns in the text file and the table need to be the same order

INSERT INTO [table_name] VALUES (‘[column1_value]’,’[column1_value2]’,’[column1_value3]’)      -insert values into a table      SELECT [what_to_select] {AS [alias name]} FROM [table_name] {[table_alias]} {WHERE [conditions_to_meet]} {ORDER BY [column_name] [DESC]}      -select a set of records           -DESC == descending order

DELETE FROM [table_name]      -delete all records in a table

UPDATE [table_name] SET [column_name] = [value_to_set_to] WHERE [conditions_to_meet]      -update a table

Recipe - Reeces Puffs Treats

These are similar to Rice Crispy Treats but with a peanut butter & chocolate flavor

Ingredients:

  1. 20 Oz Mini Marshmallows
  2. 10 C Reece’s Puffs Cereal
  3. 1 C Reece’s Peanut Butter Chips
  4. 1 C Milk Chocolate Chips
  5. 6 T Butter

Steps:

  1. In a large stock pot over medium heat
  2. Melt butter
  3. Add 2/3 marshmallows, stirring occasionally until gooey
  4. Add Peanut Butter Chips & stir until blended and melted.
  5. Add cereal and stir until coated.
  6. Remove from heat
  7. Add remaining marshmallows, and chocolate and stir until mixed.
  8. Pour out into 9x13 buttered dish
  9. Use wax paper or plastic wrap to press down into dish.
  10. Let cool, cut, and serve.
Tags: recipe

Machine with Concrete

This motor turns at 200 revolutions per minute, even though it is attached to a stationary concrete block.

There are 12 gears that step down the motors speed. By the time the last gear is reached the gear is moving at about 1 revolution per two trillion years.

Tags: machine video