Post with Echofon Bookmarklet

July 14, 2010 by Noel Gomez · Leave a Comment
Filed under: General 

I couldn’t find a good bookmarklet for Echofon like the one I had been using for Tweetie, so I modified that one to work with Echofon. Just drag the link below to your bookmarks toolbar. Enjoy

Post with Echofon

The Secret to Losing Weight by David Heinemeier Hansson (or what he would say)

February 20, 2010 by Noel Gomez · Leave a Comment
Filed under: General 

Disclaimer: David had nothing to do with this post, but I am a big fan of  his and I have watched several of his speeches like this one.  His words (or my version of them) been my inspiration for losing weight over the last month and a half.

I have created a book for losing weight in the form of DHH.  It’s embedded below for free, enjoy:

The Secret To Losing weight

The background for the book

Over the years my wife would come to me and mention how she wanted to join some program like Weight Watchers and every time I would say “Give me the money and I will tell you to not eat so much.”  She would moan and grown about her weight about once a year, but about 6 months ago she started reducing her caloric intake.  Without counting points she switched to eating smaller portions for lunch and dinner and she began eating a lot more vegetables.  This has worked for her, she has lost weight and is very happy with her results.  Her mantra was “Nothing tastes as good as Skinny feels”  We heard that from some skinny girl on a reality show, don’t remember where.

I had kept my same routine, but in January I finally thought I needed to loose some weight after speaking to a friend who had managed to do just that.  He had reduced his caloric intake and began exercising and in a few weeks had amazing results (Biggest Loser type of results).  He has been at it for about 10 weeks and has lost over 40 pounds.

My Journey Begins

So taking my own advice I decided to “Stop Eating so F-ing much.”  I didn’t think I could cut calories since I only had breakfast on the weekends and rarely had lunch.  My main meal came at dinner and I thought I couldn’t possibly be consuming so many calories.  My one weakness was for dessert.  I love my ice cream before bed.

My friend, who is married to a dietician who does not necessarily like our method to weight loss, told me that to loose a pound of fat you needed to burn 3500 calories.  The engineer in me kicked into high gear.  Now I knew all I had to do was consume a lot less then what my body burned.  This was not necessarily a new revelation, but this number gave me a target.  I had read how people who began a diet and exercise program tended to either remain the same or gain some weight.  A few years back when I was doing a lot of traveling I began taking advantage of the hotel’s fitness centers and after months I saw little to no weight loss.  At the time I thought that given how little I ate adding exercise would have an impact.  Realistically I think at most I probably burned an additional 500 calories a day.  Hardly a dent.  Exercise also tends to have the negative effect of giving you a sense of entitlement to more food since you now are exercising.

To top things off, Linus pretty much nailed it when it came to exercise, at least for me.

Counting Caliroes

To be fair my wife and I already ate fairly healthy compared to most of America.  We would have salad with a side of protein at least twice a week and very rarely had any sort of fast food.  She cooks almost every day so our problem wasn’t eating a lot of takeout or ready to eat meals.

For me it all came down to having no clue how many calories I was consuming.  I had become complacent since I only ate one meal a day on most days, but once I started looking it was obvious.

I set a goal of consuming 1000 calories a day.  I didn’t go out and get a food scale, but I started looking at labels and modifying what I ate so that I consumed fewer calories.  Ice Cream was substituted with a single piece of Lindor Truffle (I love these things).  73.3 calories to cap off my day with milk chocolate goodness.

The most amazing fact was opening my eyes to how many calories are in all sorts of things I ate.  The tortilla for a breakfast burrito was over 100 calories each and that’s just the tortilla.  One wouldn’t satisfy me on the weekends so I would have to eat 3.  How about In N Out once in a blue moon.  A Double Double, French Fries and a Chocolate shake?  That can’t be so bad, I have that less than once a month.  Well, that meal is over 1600 calories, WOW!!!

I still have no clue the calories in certain things my wife cooks, but we have increased the number of salad only meals and I have reduced my portions.

How has it worked?

In just over 6 weeks I have lost about 10 pounds.  I have not suddenly picked up exercise.  I do the same things I used to do, all I have done was stopped eating so many calories.  If you watch Survivor you know that losing weight is not so difficult.  Everyone on that show loses weight.  I am convinced that the US would be a lot thinner if the government did not subsidize high fructose corn syrup because everything unhealthy has it and it packs in the calories.  I am also pretty sure that if everyone became more aware of how many calories they consumed, they would actively work to reduce them.

Is this Healthy?

I am not a doctor, nor do I play one on TV, but I just had a physical last week and all is well.  Carrying around an extra 10-15 lbs. can’t be so good and realistically a lot of people in the world, probably the majority, get by with fewer calories than I was consuming.  I have also read studies on longevity and reduction of caloric intake.

“I am so hungry… WAAAHHH

Most of my life I have not eaten breakfast or lunch and I have met many people who ask how I can go all day without eating.  I have come to the conclusion that their attitude is both psychological and related to their ingrained belief that X meal is important or that the body has to have food X number of times a day.  They get a headache if they don’t eat, they can’t function if they don’t eat, etc.  How are people in third world countries surviving?  My dog eats once a day and she has had a pretty full life.  I will admit that whenever I am on vacation I tend to eat more meals per day and switching back to the single meal after an extended period of multiple meals is difficult.  It is hard to fight the hunger, but after a couple of days you body adjusts.  Another thing which makes hunger worse is eating junk food or anything high in carbs or sugar.

When I started my calorie reduction the hardest part was the weekend.  I could no longer have 6 pancakes or 3 burritos, but after a few weekends I had conditioned my mind to not expect such luxuries.  Watch the contestants on Survivor.  The first few episodes people talk about how hungry they are, how they can’t function, etc.   But that, they adjust.  So can anyone.

The first rule of process improvement

Everyone knows that you can’t control that which you can’t measure.  Now that I am actively calculating the calories I am consuming I have been able to qucickly achieve that which had aluded me for many years.  My goal is to loose at least 10 more pounds.  I then figure that a person my size probably consumes around 2000 calories(educated guess, I am not a health Nazi yet lol), so I can probably increase my intake without gaining any more weight, but at least now I will be more aware of what I am consuming.

Now, as Peldi would say…. Onward

Virtual relationships and the art communication

August 8, 2009 by Noel Gomez · Leave a Comment
Filed under: General 

Services like Twitter and Facebook have allowed us to connect with people in ways we never imagined. They have also allowed us to learn more about these people and to put our virtual feet in our mouths without even know we had.

You see, verbal communication and written communication are very different beasts. When you hear someone tell you something you get cues about their intention and motivation from the manner in which they say it. If someone is speaking to you and you are standing in front of them, you can pick up additional cues, but in the written word all you have are the words in front of you.

Some people are naturally gifted at writing eloquently. These people can defuse conflicts with just the right words, however, there are others who can innocently put a few words together and come across the wrong way. A comment made in jest or the combination of several tweets over time can distance those with whom you’d previously had close relationships.

The problem with social networks is that it is very hard to know if those in your network have been offended by something you said or something you did. It is even more difficult to try to mend a relationship once you think you have offended someone. In this new medium we don’t “have to” work with one another. We can block a user or simply choose to ignore them.

An employee known to work at a certain company posts a link to a video and their followers will unconsciously attach the emotions the feel while watching the video to the company. If a person makes a comment about healthcare reform, the type of computer they use, the political party they belong to or if their positions on such matters can be inferred, some followers will superimpose their offline prejudices on to those people and possibly the companies they work for.

We all look for ways to connect with others who share our passions, the problem now is that these passions are now being merged on to the same stream. One of your followers may share your interest for a programming language, but the same person may detest your love for Sarah Palin.

In the long run we are going to have to make a few concessions if we want to make the most of this new medium. We are going to have to learn to be more open with one another and instead of ignoring those who hurt us we could try to find the best in them and learn to forgive. We are going to have to understand that we are all multi faceted individuals and while in some ways we will agree, in other ways we may not. We shouldn’t throw the baby out with the bath water because there are still great things we can learn from one another. Now more than ever we need to give people the benefit of a doubt because some people are just not as gifted at putting together 140 characters as others.

Sending email in Rails via GMail & using HAML with Action Mailer

August 6, 2009 by Noel Gomez · Leave a Comment
Filed under: General 

Sending Email via Gmail

I was following the Action Mailer Rails Guide to set up outbound email from my app and I came across a problem when trying to use GMail. Many blog posts and the Rails guide point to plugins which enable TLS. I kept running into a wall and getting this error:

wrong number of arguments (3 for 2)

Luckily I finally found there is a very simple solution which is defined in the Rails API in ActionMailer::Base. This essentially says that Section 5.2 of the Rails Guide can  be simplified by adding an additional parameter to the smtp_settings:

1
2
3
4
5
6
7
8
9
ActionMailer::Base.smtp_settings = {
   :enable_starttls_auto => true, 
   :address => "smtp.gmail.com", 
   :port => 587, 
   :domain => "domain.com", 
   :user_name => "user@domain.com", 
   :password => "password", 
   :authentication => :plain 
}

There is no plugin / gem needed, but you must be on Ruby 1.8.7

From the Rails API:

  :enable_starttls_auto - When set to true, detects if STARTTLS is enabled in your
  SMTP server and starts to use it. It works only on Ruby >= 1.8.7 and Ruby >= 1.9. 
  Default is true.

Using HAML with ActionMailer

Section 5.3 of the Rails Guide also mentions a configuration setting to get Action Mailer to recognize HAML templates. This configuration is not needed. As I found here.

I added comments to the Rails Guide Lighthouse ticket, so hopefully the guide will be updated.

Book Review: Rails Freelancing Handbook

August 3, 2009 by Noel Gomez · 1 Comment
Filed under: General, Programming 

As part of helping out on a RailsBridge project, I was given a copy of the Rails Freelancing Handbook by Mike Gunderloy so I thought I would share my impression of it.

Overview

Even though the book has the word Rails in the title, a lot of the advice in this book can apply to anyone who wants to work on their own, from a freelance designer to a business consultant.

The book covers topics from deciding if freelancing is for you to legal and tax implications, marketing, and managing clients.

Writing Style

This book packs a lot of good advice and is a quick read at just 65 pages.  I love this.  There is no fluff, just clear concise advice based on Mike”s personal experience as a freelancer.

Mike’s Advice

Mike does not pretend to have all the answers, but instead points you in the right direction.  Whether that means telling you to find a lawyer and an accountant, or pointing you to web resources for doing it yourself if you can’t afford one,.  This makes the book a really practical resource which you can refer to as you move through the stages of becoming a freelancer.

You will find that Mike’s advice is pretty comprehensive and you will gain nuggets of wisdom even if you have experience freelancing.  Even though I have done consulting work and have gone through the process of establishing an LLC, I learned about factoring receivables which was something I had no idea even existed.

Mike even covers ergonomics, using multiple monitors, and web based tools to improve your workflow.  I had never put as much thought into an office chair as I know Mike has, and since I’m a person that rather get the Consumer Reports version, I found this topic particularly interesting.

Conclusin

For under $10 you can’t ask for more.  This book is full of actionable advice for anyone starting a small business.  There is a free chapter online, so check that out and if you find it as useful as I did, you will want to get yourself a copy of this book.

iPhone 3G S, The world’s most accessible smart phone

June 8, 2009 by Noel Gomez · 1 Comment
Filed under: General 

Today Apple upgraded the iPhone and made it the most accessible phone.  As I had predicted in an earlier post, with more capable hardware they were able to improve accessibility.  Apple gets it, they see accisibility not as a hindrance, but as a way to create a competitive advantage.

Voice Over, speak it to me

With Voice Over anyone can now control the iPhone without needing to see the screen.  Gestures are used to move around and the entire OS is opened up to the blind:

You’ll hear descriptions of every item on the screen, including status information such as battery level, Wi-Fi and cellular network signal levels, the cellular network provider, and time of day. It even lets you know when the display changes to landscape or portrait orientation, and when the screen is locked or unlocked.

It is also localized

VoiceOver includes built-in voices that speak 21 languages including Chinese (Cantonese), Chinese (China), Chinese (Taiwan), Dutch, English (US), English (UK), Finnish, French (Canada), French (France), German, Italian, Japanese, Korean, Norwegian, Polish, Portuguese (Brazil), Portuguese (Portugal), Russian, Spanish (Mexico), Spanish (Spain), and Swedish.

This feature also allows a blind person to interact with a sighted person by displaying a Voice Over cursor which displays a rectangle around the item being described and the screen can be turned off for privacy.  The Voice Over feature could be great for a sighted person as well.  You can control the iPhone without taking it out of your pocket and you can probably extend battery life by not having the LCD on.

howitworks-20090608I am not sure how typing is handled (probably by selecting each letter at a time with the gestures), but Voice Over is a real win for the iPhone.

Voice Control, do as I say

Another feature that makes the new iPhone more accessible is Voice Control.  Apple prominently showcased this feature during the keynote announcement of the iPhone as one that has mass appeal, but here is another feature which helps the disabled by allowing dialing and music selection via voice commands.  It also supports 21 Languages.

you can use your voice to play music and make a phone call. Just press and hold the home button, listen for the audio prompt, and speak the name of the artist, album, or playlist you want to hear. You can pause, play, change tracks, even shuffle your music.

Zoom Zoom Zoom

The iPhone 3G S now lets you magnify the screen of any application on the iPhone.  Not only does this help those who traditionally need magnification, but Baby Boomers with poor eye sight now have an option for an accessible smart phone.

Zoom works everywhere, including the Home, Unlock, and Spotlight screens—even with applications you purchase from the App store.

zoom-on-iPhone

And there’s more…

These are just a few of the accessibility features of the iPhone , but these are ones which potentially have uses outside the disabled community.  It is clear that Apple is motivated to create accessible products, but by addressing this need, it also opens up the possibility to market these features outside the disabled community.

Be sure to check out Apple’s iPhone accessibility page for more information of solutions for the hearing impaired and those with physical and motor skills difficulties.

Why Time Warner should incorporate Hulu

May 27, 2009 by Noel Gomez · Leave a Comment
Filed under: General 

tw_hulu1

Time shifting is fast becoming the norm, but what if you forget to record a show?  What if you want to catch the previous season of a program before jumping into the new season?  Let’s not even get into the potential for making money from overseas content.

Media companies are slowly embracing the realities of the internet and it seems like this is a perfect opportunity to make a difference.

I understand that TW has to protect its add revenue and it wouldn’t want to have Hulu gain a bigger audience thus shifting ad revenue there, but what if instead it could figure out a model where TW could do the ad placement on hulu content and share the revenue?

TW could also make it so that a viewer could schedule a program to record on their TW DVR after watching the content from Hulu.  This would bring the audience back to traditional media while blending in the online experience.  In a sense this is enhanced TV.  Without this option I might be more reluctant to jump into the new season of Heroes if I have never watched the series, but if I could go back and catch the series from season 1, I might stick around.

There are many ways that traditional media sources can collaborate with new distribution channels to enhance their offerings, but by not acknowledging the elephant in the room they can seal their own fate as more and more viewers catch on to the power of true on-demand entertainment.  I already know people who are canceling cable in favor of online distribution and this trend is bound to continue unless companies like TW figure out more compelling ways to engage viewers.

Larry Page’s University of Michigan Commencement Address

May 3, 2009 by Noel Gomez · Leave a Comment
Filed under: General 

Larry Pages University of Michigan Commencement Address

via Google Press Center: Press Release.

A nice read.  Right up there with Job’s speech about his life.

Kindle 2 v iPod Shuffle text-to-speech: Funny

April 24, 2009 by Noel Gomez · Leave a Comment
Filed under: General 

via Techcrunch .

BlueTrip CSS grid overlay bookmarklet

April 23, 2009 by Noel Gomez · 3 Comments
Filed under: General 

badlyDrawnToy created a bookmarket for the 960.gs grid overlay. I modified it for Bluetrip. Just drag the link below to your bookmarks toolbar. In Internet Explorer, right click, select ‘Add to favourites’ and then select ‘Links’. It does not work with IE6.

BTshowgrid

Updated to version 2.0

Next Page »