Made with Drew

Go enthusiast

Level6 Week3

Week 1 Category Tx Sample food Quantity Meal 1 Bread 3 bran flakes 1 1⁄2 cups Fruit 1 raspberries 1 cup Meat 2 egg 2 items Meal 2 Fruit 1 watermelon 1 cup Meat(nut) 1 cashews 1⁄8 cup Meal 3 Bread 3 white rice 1 cup Meat 4 shrimp 8 oz Veggie 1 zucchini 1 cup Meal 4 Fruit 1 apple 1 item Meat(nut) 1 almond butter 1 tablespoon Meal 5 Bread 3 tortilla 3 items Meat 8 flank steak 8 oz Veggie 2 peppers 2 cups Meal 6 Bread 1 popcorn 1 cup Fruit 1 orange 1 item

Turn Up the Heat Level 6 Week 2

Week 1 Category Tx Sample food Quantity Meal 1 Bread 3 oatmeal 1 1⁄2 cups Fruit 1 banana 1⁄2 item Meat 2 egg white 6 items Meal 2 Fruit 1 peach 2 small items Meat(nut) 1 cashews 1⁄8 cup Meal 3 Bread 3 white rice 1 cup Meat 4 tuna 8 oz Veggie 1 tomato 1 item Meal 4 Fruit 1 apple 1 item Meat(nut) 1 peanut butter 1 tablespoon Meal 5 Bread 3 corns 1 1⁄2 cups Meat 8 chicken breast 8 oz Veggie 2 green beans 2 cups Meal 6 Bread 1 whole wheat crackers 1 oz Fruit 2 strawberries 3 cups

Turn Up the Heat Level 6 Week 1

Week 1 Category Tx Sample food Quantity Meal 1 Bread 3 bagel 1 item Fruit 1 Cantaloupe 1⁄2 item Meat 2 egg 2 items Meal 2 Fruit 1 apple 1 item Meat (nut) 1 peanut butter 1 tablespoon Meal 3 Bread 3 Pita 1 1⁄2 items Meat 4 Turkey 4 items Vegetable 1 romaine lettuce 3 cups Meal 4 Fruit 1 Plum 2 items Meat(nut) 1 almonds 1⁄8 cup Meal 5 Bread 3 Baked potato 1 item Meat 8 Salmon 8 oz Vegetable 2 Spinach 4 cups Meal 6 Bread 1 Popcorn 1 cup Fruit 2 Pear 2 items

Turn Up the Heat Level 9 Week 11

Week 11 Category Tx Sample Quantity Meal 1 Bread 3 bran flakes 1.5 cups Fruit 1 blueberries 1 cup Meat 3 egg white 9 items Meal 2 Meat(nut) 1 pumpkin seeds 1⁄8 cup Vegetable 1 Celery 2 cups Meal 3 Bread 1.5 lentils 1⁄2 cup Meat 8 chicken Vegetable 2 carrots 1 cup Meal 4 Fruit 1 pear 1 item Meat (nut) 1 almonds 1⁄8 cup Meal 5 Meat 4 tuna 8oz Meal 6 Meat 12 salmon 12oz Vegetable 3 asparagus 3 cups

Turn Up the Heat Level 9 Week 10

Decided it was easiest to post these on the blog. Week 10 Category Tx Sample food Quantity Meal 1 Fruit 2 banana 1 item shake 2 whey protein shake 2 scoops Meal 2 Meat (Nut) 1 almond butter 1 tbsp Vegetable 1 jicama 0.5 cup Meal 3 Meat 8 flank steak 8 oz Vegetable 3 peppers 3 cups Meal 4 Meat (Nut) 1 olives 20 items Vegetable 1 cucumber 2 cups Meal 5 Meat 4 tuna 8 oz Meal 6 Meat 12 turkey 12 oz Vegetable 3 green beans 3 cups

Christina Wells - Modernize

My wife has started as Director of Recruiting at Modernize. Her job move is featured in Austin Business Journal Modernize helps to create a fresh experience to help homeowners looking to upgrade their home by providing educational content and ideas for inspiration. Modernize also have relationships with the top contractors in the industry who can help make your dream a reality. I couldn’t be more proud! Congrats my love!

Go benchmark md5 sha1 sha256

I needed to add checksums for caching url resources. The internet was surprisingly vacant of good benchmarks of different hashing methods. It’s very easy to do these kinds of tests in Go, so here’s one. Go has a well crafted hash package. Then to use a specific hashing function, simply implement this interface with one of the many available crypto functions. For this test, I only tested md5, sha1, sha256, and the 32bit hash crc32.

Division by Zero

Found some interesting idiosyncrasies while doing some floating point math. float64(1) / 0 // panic: division by zero float64(1) / float64(0) // panic: division by zero All good so far, then it gets more interesting. var f1 float64 f1 = float64(0) float64(1) / f1 // +Inf float64(0) / f1 // NaN It appears the compiler provides some safety when using static types, but does not provide the same benefit for variables.

Spotify Crashing on iOS8

If you’re experiencing Spotify crashes after upgrading to iOS8, try this little trick. Open Settings > General > Language & Region Switch Region to another country (I used Uruguay), now open Spotify. If that worked, switch your Region back to United States. Happy Spotifying

Statically Linking C to Go

A little trick to statically link C to Golang with cgo There’s a lot of information out there about how to link C and Go. I found it took a combinaton of all of that information to properly statically link my C code to Go. I will preface this by saying I’m not a native C developer. Most of this research was done in an exploration of getting Go code linking against C via trial and error.