Javascript Sucks: Timestamps, getTime, now

Getting ms accurate time in Javascript is damn near impossible. You’ll be off by 100ms or more, usually. If you don’t care, here’s 3 ways to get the same sloppy value:

  1. var yuck = new Date().getTime() //
  2. var bleh = +new Date() //
  3. var leastbad = Date.now() //
Posted in Personal Experience | Leave a comment

Slow Carb Diet – Week… the rest.

Uploading pictures of my scale has gotten to be a useless pain in the ass, so I’m not going to do it anymore. Granted, photos of the scale are the fastest way to keep note of what I tipped every day, but the bandwidth to the blog sucks. So much so that I’ve neglected to post anything for a few weeks.

Anyhow, having not met my goal in mid January, I decided to just keep on keepin’ on since the diet isn’t that restrictive. I’m still cutting most carbs out of my diet during the week and I’m still binging on Saturdays. I’m still losing weight and fat. Keeping me straight are daily weigh-ins and bi-weekly 20 minute workouts.

Recently I went ahead and stuck all the data into a spreadsheet and whipped up some graphs. With the variability during the week, sometimes it’s hard to tell if I’m actually losing weight or not, but the graphs show the trend very clearly.

The bottom line on each graph represents the goal I set when I started My original goals were to lose 10Lbs and drop 4%(133Lbs, 16%). Edit: I’ve added the moving average here to give me a better idea where I stabilize. I list the % figure as “bioimpedance” because the scale doesn’t actually give you an accurate body fat percentage (only a reasonable guess useful for a relative measure of change).

The plan now is to just stick to the diet until I hit my goals, and then probably further still until I can see my full 6-pack abs most of the time. I don’t know how long that’ll be but it doesn’t seem too far off. Once I hit my weight/fat goals, I might switch to a muscle building plan however. I hadn’t really decided that one yet though as I think it may take more time/planning investment than just cutting things out of a diet.

Week 1 | Week 2 | Week 3

Posted in Personal Experience | Leave a comment

Slow Carb Diet – Week 3

This was supposed to be the last week. My initial goal was -10Lbs. in 3 weeks. This week breaks through 137, but doesn’t finish at 133 by my birthday on the 11th. Also, since I’ve found it increasingly difficult to remember what I ate, this’ll be the last week with meal descriptions.
week 2

1/3

Breakfast – 2XL eggs, Sausage Patty, Kimchi
Lunch – Red Thai Curry Tofu, Spicy Chicken with Peppers
Dinner – Steak Picado with Refried beans and Salad

1/4

Breakfast – 2 eggs, Sausage Patty, fiber+ Cottage Cheese, Kimchi
Lunch – Super Burrito Bowl
Dinner – Basil Asian Chicken (yuck), Ridiculous Spicy Beef and Onions

1/5

Breakfast – 2 eggs, Sausage Patty, fibre+ Cottage Cheese, Kimchi
Lunch – Safeway Select Chili
(roasted peanuts)
Dinner – Steak and Onions

1/6

Breakfast – 2 eggs, Sausage Patty, fiber+ Cottage Cheese, Kimchi
Lunch – Red Thai Tofu Curry, Spicy Basil Chicken
Dinner – Westlake Beef Soup, Ginger Chicken with Snow Peas

1/7

Breakfast – 2 eggs, Sausage Patty large, fiber+ Cottage Cheese, Kimchi
Lunch – Polish Sausage, Kielbassa, Hot Dog condiments.
(peanuts)
Dinner –  XL Beef Shabu Shabu in Ginger Chicken Broth, Napa, Spinich

1/8 – Digesting 3/4Lbs. of meat…

Breakfast – 2 eggs, Bratwurst, fiber+ Cottage Cheese, Kimchi
Lunch –  Salt & Pepper Pork, Steamed Rice, CC Lemon
(Coca-cola)
Dinner –  Pepperoni Pizza, Hotwings, Coca-Cola,

1/9

Breakfast – 2 eggs, Bratwurst, fiber+ Cottage Cheese, Kimchi
Lunch – ???
Dinner – 3 Taco Bell Taco Supremes

Week’s recap and takeaways:

  • Remembering what I ate is too hard and I’m too lazy to take pictures.
  • Steak + Veggie (and and nothing else) gives me the biggest over night drop in weight.

Week X

Posted in Personal Experience | 2 Comments