Synthesis

  • February 7, 2012
  • Section: life
  • Comments (0)
  • Permalink

January Challenge Complete

spacer

January is over, which means the challenge is complete!

Over the  holidays I was inspired by the coming new year and made up a few rules to impose on myself for a month. Why? To see what I could accomplish in a month, instead of a longer term, unrealistic  resolution. It was a test of willpower and a forced break in habits. The challenge was to eat out only once a week, be vegetarian except the occasional fish, drink no alcohol, consume less sugar, stay away from coffee and drink tea instead, and stop all recreational internet surfing.

How did it go? Overall, quite well. The first week was the hardest – I’d developed a habit of going out to eat nearly all the time, and having a drink or two a few times a week. Changing that habit was tough at first. Humans develop grooves, like records, and you can go outside those grooves for a couple days, but you naturally fall back into your old way, and it was hard not to. By the second week I was more used to it, and by the third and forth it became normal.

For example – I’ve been drinking tea this past month instead of coffee. My morning routine now is to go fix myself a cup of tea, and when I arrived at work this morning, I just automatically made tea without thinking about it. Then I realized “hey! I can drink coffee! I’ll get a latte later!” but I never made it to the coffee shop. No guarantees for tomorrow.

Grades:

  • Eating out once a week: B, I stuck to this for breakfast and dinner, but I made a few exceptions to go out to lunch with co-workers, and forgot to bring it a couple other times. On the eating at home front, each week we sat down and developed a meal plan, and bought all of our groceries in one shot. Gotta give my girlfriend a lot of the credit for this. It worked amazingly well, the food was never boring, and we made some amazing dishes. My cooking repertoire has expanded quite a bit, and cooking is no longer a rare event, its the default.
  • No meat except fish once a week: A, I ate no beef, pork or poultry in January. We made some very tasty meals, mostly vegetarian, and a few with fish.
spacer
  • no alcohol: A – This was challenging, but doable. This despite my work having a scotch tasting party. I’m used to drinking casually a couple times a week. Glad to not have this restriction anymore, but I do feel a bit less obligated to buy a drink when I go out now.
  • no excess sugar: B – I don’t drink soda, but I do love desserts. I mostly stayed away, but I did have a cupcake.
  • no coffee: A – Stayed off the sauce. Had a headache the first few days but then got back to normal. This was part of what made week #1 hard. But this has been great, I need less caffeine now, and I drink more tea than coffee.
  • no recreational internet: B – I stayed off Facebook except to check my messages a couple times, snuck a few glances at Twitter, and mostly stayed away from the various news and tech sites I tend to frequent. Not being able to read internet news, I started to read more “offline” materials again, like books. Crazy talk. Towards the second half of the month I started checking sites I go to again, but with less frequency. It’s hard not to when you work on a computer all day.

Overall I’ve started a few good habits – especially the meal planning bit. Cutting back on things you normally do makes space for new kinds of experiences to happen.

  • January 1, 2012
  • Section: health, life
  • Comments (0)
  • Permalink

A Fresh Start and a One Month Challenge

It’s January 1st, 2012! According to some wackos, this might be the year the world ends. It probably won’t, since from the beginning of mankind there have been countless predictions of the end of the world and so far they’ve all been wrong, so I’m gonna guess this year follows that pattern. On the off chance that they’re right, or that it might be my last year personally, I’ve decided to make it count. This year will be my “year of hustle“, as shall soon be further detailed.

A challenge

It’s the season for resolutions and fresh starts, so in that spirit, one of the first things I’m doing is a “cleanse” of my own design for the month of January. I’m actually calling this cleanse a “challenge” since that sounds more fun and I enjoy challenges. This challenge isn’t forever. No new years resolution of “from now on, I’ll never _____ again!” because that’s unrealistic and doomed to fail. This is a rational one month challenge that any person with self control ought to be able to achieve.

The challenge includes

  • No eating out (more than once a week)
  • No meat (fish is allowed once a week)
  • No excess sugar
  • No alcohol
  • No coffee
  • No recreational internet

I got this idea from an article I read online called the “Argon Challenge“, where a guy who goes by the name of Argon takes an even more extreme approach than what I outline here, eliminating many other things I have not listed. He’s been doing it for years, and each year he adds another element to his challenge. This is my first year, so I’m starting from a different place. I’ll call it the Becker Challenge.

Feel free to play along. My girlfriend has decided to do most of this along with me, which makes things easier, as we’ll both be helping to motivate the other and cook meals together. She’s foregoing the recreational internet challenge, as she actually has to use Facebook and Twitter as part of her job. This is comforting, since if something actually important happens to scroll past Facebook she can be my liaison to the social web through which I can communicate for the month.

To go into a bit more detail:

No eating out

My girlfriend and I have become a little shall we say, “dependent” on restaurants, food carts, and drive throughs for about 80% of our dietary needs. One could argue this is primarily my influence, being the lazier of the two in the kitchen, but she loves to try new places and eat out, so it’s a perfect storm. This is a) expensive, and b) not so healthy. Food at restaurants is generally very rich and fatty, to maximize the deliciousness, which is understandable. I want to challenge myself  to pay better attention to what I eat and take more responsibility for being healthy. There’s no better way to do this than making your own food. It’s a skill I obtained as a teenager working as a food prep in the kitchens of various restaurants, but slowly neglected over time since leaving the food service industry. I hope to regain and hone my chef skills this month and add a few new recipes to my limited repertoire. My girlfriend’s pro kitchen skills will ease the transition a bit, but doing this the entire month might get a bit extreme, so we’ll have one restaurant outing a week as a reward for our cook-at-home / eat-healthy efforts.

No meat

I once challenged myself to be vegetarian, in order to eat healthier, and also just to see if I had the willpower. Turns out I do. I lasted a year. Eventually I gave in to my cravings for chicken and fish, and then the flood gates opened and I was back to eating burgers, steak, bacon, and anything else from the animal kingdom that found its way on to my plate. I am most definitely an omnivore, but that year taught me a few things. A) If you’re only eating vegetables, you’re going to eat ALL your vegetables, because you need sustenance and a feeling of “fullness”, and anything on your plate that counts as food will be eaten in order to get closer to that aim. B) Vegetarian dishes can be way more colorful, creative, spicy, and delicious than your typical meat and potatoes dish. To be vegetarian is to buck the status quo, and force yourself to think outside the box. That alone is worth doing for a month, to force yourself to think different.

No excess sugar

Refined sugar makes things taste sweeter, and provides a quick energy and mood boost. The problem is it provides an equally fast energy and mood crash. I’m not much of a sugar addict now. I don’t drink soda, but I love chocolate, such as an occasional cafe mocha or chocolate chip cookie. I’m stepping off the sweets train for the month. This should help level out my moods and allow me to sleep better.

No alcohol

I live in Portland Oregon, which has a thousand awesome drinking establishments, which I quite enjoy. I don’t drink to excess on any particular night, typically having a max of two drinks, but I estimate I’ve had at least one drink per day for probably 75% of last year. I don’t have a highly addictive personality, and I don’t drink at home alone, only socially with friends, or sharing a couple glasses of wine with my girlfriend. I don’t think I have an alcohol problem. But I’m curious to see what happens. If I eliminate it for a month, will I crave it? Will I not miss it at all? Sometimes you don’t know if you’ve become dependent on something until its gone.

No coffee

There’s no question with this one. I have a coffee dependency. In the last few years I’ve gone from drinking 0-1 cups of coffee a day to 3-4, refilling at breakfast a few times, or getting a late afternoon latte. Many of these being outings to Portland’s numerous amazing coffee shops. I can’t get enough of that delicious espresso. Like sugar, coffee gives us an energy boost and corresponding crash. I’m not going to strictly cut out caffeine though, just minimize it. I’m allowing myself 1-2 cups of black tea a day. This is to ease off the caffeine, without causing headaches. I’ll need to drink twice as much tea to get the same effect as a cup of coffee. This too should help the sleep cycle.

No recreational internet

This one is huge. I have a slight internet addiction. As a software engineer, I work on the internet every day, and I need it to search for solutions to issues and questions that come up, but in between those times, I’ve allowed myself quite a bit of free reign to read interesting articles, blog posts, friend’s updates on Facebook and Twitter, and other things that aren’t really contributing to my productivity. It’s become my substitute for TV, which I don’t watch, but this is just as bad as channel surfing. It is a muscle memory reflex I do without thinking whenever I start getting bored. I love Hacker News, and there’s tons of good information on there, but there comes a time when you need to stop consuming and start producing. The internet is a two-way communication medium, so this month I’m focusing on trying to produce more and consume less. After this month I’ll resume reading blogs and social networking sites, and hopefully find a more healthy balance.

That about wraps it up. I’m already experiencing the positive benefits of this challenge. We made our own breakfast today, planned our meals and shopped for groceries for the week. Normally I would have then hopped on the internet and read a bunch of blogs and news sites. Instead of surfing the internet, I freed up the time in order to write this blog post. I’ll update as we go along, and announce a few other things happening soon as well.

  • March 21, 2010
  • Section: Ruby on Rails, Web Development
  • Comments (0)
  • Permalink

Asset Packager – Rails 3 / Ruby 1.9 Compatible

Hello! Here is a long overdue update to Asset Packager, which now makes the main branch Rails 3 and Ruby 1.9 compatible. Thanks to all those on Github who sent me patches with these fixes.

Updates

  • Fix thread safety issue.
  • JSMin compatibility fix for Ruby 1.9.1 – Fixnum#ord
  • Rails >= 2.3 test compatibility
  • Rails 3 deprecations – change RAILS_ROOT to Rails.root, change RAILS_ENV to Rails.env, move tasks to lib dir
  • July 23, 2009
  • Section: Web Development
  • Comments (0)
  • Permalink

All About Sammy

Got another quick presentation for ya. I discovered Sammy yesterday. I gave a quick talk about it today. That’s how easy it is to understand!

Sammy is a tiny, client-side JavaScript framework, created by the obviously brilliant Aaron Quint, built on jQuery, and inspired by the server-side Ruby framework Sinatra. It’s the minimalist’s framework for RIAs. You know, those uber rich internet applications. Single page, no refresh apps. Like Gmail. Except without all those kilobytes you may or may not ever need. Sammy is 7kb, minified. And gzipped? You won’t even know you downloaded it.

Watch the preso for more…

All About Sammy
View more presentations from Scott Becker.

If you want to learn more about Sammy, check out Aaron’s blog post which has a nice introduction and screencast.

  • July 16, 2009
  • Section: Ruby on Rails, Web Development
  • Comments (0)
  • Permalink

Agile JavaScript Testing

A couple weeks ago, I gave a talk at the Open Source Bridge conference in Portland Oregon on Agile JavaScript Testing.

In this presentation, I first gave an overview of Test Driven Development for those front-end JS developers who might not have heard of it yet (!) and then the difference of TDD vs. Behavior Driven Development.

I then walked through some tools:

  • Screw.Unit, a nice BDD framework for JS that is quite similar to RSpec in Ruby land.
  • Blue Ridge, a plugin for rails that integrates Screw-Unit with Rhino and Env.js and some rake tasks to create a command-line driven headless (no-browser == fast) testing workflow.
  • JS Test Driver, a project that mounts one or more browsers as slaves, and a command-line tool which notifies all the listening browsers to run tests and aggregates the results. Very cool!

In the actual presentation I even did some live coding examples of Blue Ridge and JS Test Driver, and they worked perfectly. Here are the slides from the talk:

Agile JavaScript Testing
View more presentations from Scott Becker.
  • March 31, 2009
  • Section: Uncategorized
  • Comments (0)
  • Permalink

Open Source Bridge

I submitted a proposal for Open Source Bridge, an ambitious, community-driven conference happening in Portland, Oregon from June 17th to the 19th. The deadline for submissions is today!

spacer

  • February 9, 2009
  • Section: Web Development
  • Comments (0)
  • Permalink

SproutCore Slides

Here are the slides for the presentation I gave the other week at the Portland JavaScript Admirers meeting: SproutCore – A Next Generation JavaScript Framework. It is an overview of some of the key features I think make SproutCore unique and very useful. There was also video recorded which should hopefully appear online soon. I plan to do another SproutCore focused talk with a walkthrough of a full backend-connected application.

SproutCore – A Next Gen JavaScript Framework
View more documents from Scott Becker.
  • January 12, 2009
  • Section: Ruby on Rails, Web Development
  • Comments (0)
  • Permalink

Starting Fresh, Without the Big Rewrite

If you’re working on a project with a couple years of code under it’s belt, you may have moments of desire to completely throw the whole thing out and start anew. But, if you’re working for someone else, you know that your boss or client probably won’t like that. After all, he’s paying you to finish feature A! But, you lament, feature A builds on top of feature B that already exists but is written in a terribly unidiomatic, pre-TDD, pre-REST way, way before you or someone else learned the dark arts of coding mastery. Legacy code, argh!

So what should you do? What are your options? A) Ignore the problem and build the new feature on top of the existing badly written code. Watch things get even worse. B) Try to quickly fix the badly written code in-place so you can get on with it. Trigger cascading test failures, and palm your face. C) Start over and rewrite the entire project, get fired for being 6 months late on your estimate. None of these sound any good!

I think I may have found a solution that works for me, especially with Rails.

Start a fresh Rails project. Boom! It’s fresh and clean. Now you have room to work. The beauty of Rails is how quick it is to get started. Choose the aspect of the project you want to work on. Got some legacy code thats bugging you? TDD/BDD it from scratch, the Right Way. The idiomatic, Rails Way. Once you get it to the point where it’s working correctly and passing all tests, you can merge the new code into the main project, replacing the older, ugly, what-were-they-thinking legacy code that was getting in the way.

Now you can work in a clean environment and just focus on the problem at hand. This allows you to make progress quickly, and get rid of the old crap without having to completely start from scratch.

  • November 30, 2008
  • Section: AssetPackager, asset_packager, css, javascript, Ruby on Rails, Web Development
  • Comments (0)
  • Permalink

AssetPackager update

A long overdue update of AssetPackager is finally here:

  • Rails 2.2 compatibility fixes
  • Packages generated on demand in production mode. Running the asset:packager:build_all rake task no longer necessary.
  • Now compatible with Git, and any other revision control system since revision numbers are no longer used.
  • No more mucking with internal Rails functions, which means:
    • Return to use of query-string timestamps. Greatly simplifies things.
    • Multiple asset-hosts supported
    • Filenames with ”.”’s in them, such as “jquery-x.x.x” are supported.

Get the latest at github.com/sbecker/asset_packager

Thanks to the many forkers for ideas and solutions.

  • May 28, 2008
  • Section: Uncategorized
  • Comments (0)
  • Permalink

GitHub Theme for TextMate

PJ Hyett asked for it on Twitter, so I created it. Announcing:

The Github Theme for TextMate!

Hosted on, GitHub! (what else?) The basics are defined, but I’m sure it could be improved. In which case, you know what to do.

Next »

Elsewhere

  • Github
  • LinkedIn
  • Quora
  • RSS Feed
  • Tumblr
  • Twitter

Talks

  • Agile JavaScript Testing
  • All About Sammy
  • SproutCore Intro

Archives

gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.