Archive for October, 2015

Meal Replacement Bread Recipe ver 3

It’s time again to make some changes to my shake recipe, but it’s no longer a shake recipe!  As I’ve changed it so now I’m using it to bake bread :)  I was looking at the recipe…and it seemed to be getting weirder and weirder for a shake recipe, but after a little research I found it was perfect for a bread recipe!  It has various ingredients that are flour replacements, an egg, and applesauce is a apparently a good replacement for butter. So really the only difference is how I cook it.

So the changes to make this into bread are to ground up the apples into apple sauce and then cook it in the microwave for 5 minutes and that’s about it :)  To make sure it stays moist you need to put a cup of water in with it in the microwave. You can also add in some baking powder to make it nice and fluffy.

With this new version I’m looking to remove carbs from the recipe and bad macros to make it more healthy and better for weight loss.  I wrote up an article in the past on macro-nutrients which is my basis for making these changes.  I’m also changing back to Optimum Nutrition protein powder so it tastes a lot better :X  It does make it a bit more expensive, but I’m getting too tired of the chalky rice protein.

Optimum Nutrition Protein3241.501201.07Buy
bob's flaxseed meal533.54600.11Buy
hooster powdered egg162.5800.56Buy
Dried Apple Rings (1/2 serving)15.502.5600.25Buy
bob's pea meal 9404500.02Buy
bob's almond meal (1/2 serving)3371.5400.21Buy

Bad Macros, before/after

  • 2/3 sat fat
  • 28/15.5 Sugar
  • 225/same cholesterol

At this point I think I’ve lost all faith in Fooducate so I’m removing it.  After finding this review of dymatise protein and this review of the same exact product.  I looked over the nutrition facts and ingredients, and they’re identical.  The image of the product as well.  So why is one entry a C and the other a B???  I have made thoughts of my making my own food rating system that’s completely automatic, and seeing results like these show up in fooducate make me think their more human method just isn’t that reliable.  One result that’s really vexed me on there is how they can give Tina’s Burritos a B, I just can’t believe that a .80 frozen burrito is better for you than protein powder.

I’m also considering ordering some Citrus aurantium powder, since it contains Synpehrine which is an active ingredient in Shred JYM.  And I’m also thinking about trying lemon peel and peppermint.

  1. Orange peel
  2. Lemon peel
  3. Peppermint

So my recommended spices would end up something like this:

  1. Cinnamon
  2. Matcha Powder
  3. Licorice Root
  4. Chia Seeds
  5. Orange Peel
  6. Lemon Peel
  7. Peppermint

But I’m thinking of saving that for the next round, at this point I’m feeling like there’s not a lot of more advancements I can make while sticking to my original goals.  To make it better for weight loss I’d need to remove more carbs, but all the carbs are from the fruit and vegetable ingredients – which having those was kind of the whole point in the first place. The only ingredient in here that’s not an appetite suppressant is the pea meal, but after doing a lot of research there’s not many vegetables that are as low carb as the pea flower and none that are as cheap.  So I might be reaching a final version :)

Permalink » No comments

Simple reference for creating a Rails migration

I keep forgetting the rails generator syntax for migrations :X  I can never find just a quick easy guide for it – so I thought I’d write one up!


  1. cd …
    obviously first make sure your in the main project folder in the console
  2. export RAILS_ENV=environment
    Also, make sure you’re in the right environment, you will probably want to make the change first in your test or development environment and then put it to production
  3. rails g migration AddColumnToModel column_name:column_type
    Here’s the main part, on  older versions rails g migration will be script/generate migration.  The “AddColumnToModel” syntax is important and should relate to the migration you’re making like “AddEmailToUser” and then at the end you can add a “column_name:column_type” reference for each column you want to add, for instance with the last example you would put “email:string
  4. rake db:migrate
    run the migration and add those columns to the database!  You’ll probably want to review the migration that was generated first though – it’ll be the latest file in the …/db/migrate directory

Column Types

  • binary: for files/ data blob
  • boolean: true/false
  • date: only date: (year, month, day)
  • datetime: date + time
  • decimal: precise decimal numbers – for when math neds to be accurate
  • float: decimal numbers
  • integer: whole numbers
  • string: 255 max alphanumeric characters
  • text: unlimited alphanumeric characters
  • time: only time (hours, minutes, seconds)
  • timestamp: same as datetime


And, if you make a mistake a quick way to go back and fix it is “rake db:migrate:redo” that will undo your last change, and re-run it.

Also, if you want to only run “rake db:migrate:up VERSION=20090408054532″

In a pinch you can also run a migration by hand in the console with the following format:
ActiveRecord::Migration.add_column :table, :column_name, :column_type


Permalink » No comments