Archive

Archive for February, 2008

Behavioural Dieting

February 15th, 2008 joelhainley 2 comments

I’ve been taking a psychology class over at DVC and while going through some assigned reading came across a section titled “Behavioural Dieting”. I’m not sure if this is what Dr. Phil, Weight Watchers, Jenny Craig and others suggest but I thought it was interesting, and might be of interest to others who spend their days, and nights, and weekends, working at a computer.

  1. Get Yourself Committed To Weight Loss – get yourself involved with others to help you work towards your goals. Things like weight watchers, jenny craig, etc.
  2. Exercise – Yeah, still gotta do that, changing your eating behaviors isn’t a silver bullet, you still have to exercise, which is just changing another behavior.
  3. Learn Eating Habits By Keeping A Diet Diary – they advocate making a complete 2 week record of when/where/what you eat, how you felt about it. Note if your feels/emotions just before and after eating.
  4. Learn To Weaken Personal Eating Clues – Once you’ve figured out what you learned from the previous step, try to restrict your eating to a single room. don’t read, study, listen to the radio, watch tv, etc. The idea here is to have to interrupt what you are doing to eat, and to only eat when you are eating. ( ha! )
  5. Count Calories, But Don’t Starve Yourself – Interesting thing here, if you’re having problems problems dieting, try dieting every other day. Apparently, people who diet moderately everyday lose as much as people who diet intensely every other day.
  6. Develop Techniques To Control Act Of Eating – smaller portions, wait 15 minutes before you get another plate of food etc.
  7. Avoid Snacks -eat a meal if you’re hungry, if you’re not hungry enough for a meal drink water, or set a timer and make yourself wait 20 minutes, and see if you’re still hungry.
  8. Chart Your Daily Progress – you need to keep track of your progress, but you need to realize that the real goal here is to change your habits towards food, and eating.
  9. Set Threshold For Weight Control – studies have shown people that set a threshold limit on their weight, tend to keep the weight off.

I though this was pretty interesting, the points that really caught my attention were items 4 and 6. As a developer, or any computer/network professional, we spend a lot of time in front of the computer. When we’re hungry we eat, but we don’t want to lose our focus, so we end up eating in front of the computer. Pretty soon we’re snacking in front of the computer, and then we’re never leaving our desks and having food flown in. ( well perhaps it’s not quite that bad but you get the idea ). There’s two really great things about forcing yourself to eat in a particular spot. You tend to eat less, because you have other things to do, and you take a break from what you’re doing, so you feel less and less like you spend the whole day sitting in front of a computer working.

The second point about “controlling the act of eating” is also interesting. I discovered the reality of this for myself last November when Shad ( a friend ) and I had lunch together at an indian buffet. I got a plate of food, and sat down and wolfed it down, and was headed back for another plate, when we got into a conversation. Fifteen minutes later I finally got up to get food and I was still pretty hungry, when I got back to my table with another plate of food, I took two bites and realized I was stuffed. Since then I’ve been forcing myself to wait 15 minutes for seconds, and if I still go back I try to make sure that it is a smaller portion and filled with only veggies and such. I can’t say that I’ve lost a huge amount of weight, but I definitely don’t get up from the table wishing I had stopped sooner. It’s nice to not overeat.

How to configure Flex for writing debug information to a file.

February 12th, 2008 joelhainley No comments

So you’re bumping along doing some work in Adobe Flex using the flex sdk and you need to get some debug information about what’s going on in one of your applications. You know that the guys using Adobe’s Flex Builder IDE have source level debugging but you don’t have the Flex Builder or, for whatever reason, don’t want to use it.

Here’s a quick how-to for setting up flex debugging to an output file, plus a link to a very simple test application that is known to work so that you can ensure that you have debugging setup properly on your test machine before you start tearing your hair out.

  1. You need to ensure that you have the debug version of the Flash Player installed. You can find instructions on installing the Flash Debug Player here. The instructions appear to be a bit dated, in the version of the SDK that I have on my development box there is no “uninstall_flash_player.exe”. I simply ran the “Install Flash Player 9.exe” and then after rebooting my system seemed to work fine. Notice that the link above also allows you to validate that you have successfully installed the debug player.
  2. To enable writing to a text file you will need to create a mm.cfg file on your system placing it in the appropriate directory for your operating system.
    • OSX : /Library/Application Support/Macromedia/mm.cfg
    • Windows : C:\Documents and Settings\<username>\mm.cfg
    • Linux : /home/<username>/mm.cfg
  3. Now open the file you’ve just created and add the the following 2 lines to the file :
    • ErrorReportingEnable=1
    • TraceOutputFileEnable=1
  4. That’s about all there is to it, although I think I ended up rebooting before it worked properly. Now go to a simple Flex test app I threw together to generate output data to the file.
  5. Click on the button labeled “Click Me”.
  6. If you have been successful in setting up the debugging you should see output written to a file appropriate for your operating system :
    • OSX : /Users/<username>/Library/Preferences/Macromedia/Flash Player/Logs/flashlog.txt
    • Windows : C:\Document and Settings\<username>\Application Data\Macromedia\Flash Player\Logs\flashlog.txt
    • Linux : /home/<username>/Macromedia/Flash_Player/Logs/flashlog.txt
  7. Next time we’ll get into some more advanced debugging tools available.

hamtesting.com needs some SEO

February 12th, 2008 joelhainley No comments

History  

I finished the basic functionality of hamtesting.com in July 2007. I wrote the whole thing in Ruby/Rails in a week and then spent some time trying to deploy it, dealing with a bunch of issues related to inefficient xml processing etc, making it play nicely with apache and whatnot. While sitting at a Super Happy Dev House I finally had enough with trying to deploy Rails when I already knew all of the issues with PHP, so I sat down and rewrote it in PHP.   I launched the basic testing module of the site about a week later after I made it a little bit prettier( all css based ). I then wrote the review module and released that about 2 months later.

Getting The Word Out

I made a couple of lame attempts at getting some visitors to the site. I made some posts to some of the enthusiast groups and told people that I met about it, hoping to generate some interest. However, I naively thought that it would get itself found by the internet since it was vastly superior to most of the free testing sites, and even superior to most of the pay software/sites. Unfortunately it never seemed to generate much interest, I have some guesses at number of visitors in a given month and it’s VERY VERY OBVIOUS that the word ISN’T getting out.

 Using the Brain

Highly underrated, I used my brain to think about why people weren’t using the site. Then I typed in “ham testing” and “amateur radio testing” and “arrl testing” into google and started clicking back through the pages. I never did find my website. So how are others supposed to find it?

The Plan and The Goal

They say you need a goal and a plan to get there. So I have a goal. Hamtesting.com showing up on the first page of results when some keywords I’ve identified as being the most relevant are searched on. The plan is all laid out, I’d like to get triple the traffic of my biggest month thus far by the end of April, and then I’ll set some more goals.

The Baseline

In an effort to measure progress I’m going to put up some very unscientific numbers for the last two months :

january 2008 : 102 page impressions

december 2007 : 65 page impressions

november 2007 :  63 page impressions

So with those numbers as a basis perhaps we can see how effective my efforts are at generating some users for the site. I really believe the product is top notch and can improve people’s chances at passing their tests and learning what they have problems with quickly. It’s top notch, just gotta get the users!

Money : A Meaningful Viewpoint

February 11th, 2008 joelhainley No comments

Ask anyone, “Would you like a big pile of money?” and iff there are no strings attached I doubt very much that they would turn you down, and even if there were, you’ll probably still get quite a few takers. However, ask those same people, “what IS money?” and you’re likely to get a wide range of answers, “It’s a vacation”, “A chance to get out of debt”, “The new car/dinette set/clothes i’ve been wanting”. Some of your more philosophical friends might reply with things like, “freedom”, “peace of mind”, “space”. All of these are certainly ways to describe money, or what money can provide, however I don’t think they give you a real taste of what money IS. In other words, they don’t provide a mechanism for you to internalize what money represents.

In this article, I’m going to be giving a defintion for money that will give you a way to evaluate the value of of your money in terms that are highly meaningful to you. I am not claiming this is the de facto, absolute definition of money, it is merely a way to look at it in a perspective that you may not have viewed it before.

A theoretical history of money :

There are many theories about how money evolves in cultures but one of the theories I have heard and subscribe to is that it’s an extended form of barter. This makes the most sense to me, and is the basis for the subject of this article, it goes something like this.

When specialization crept into a society whereby a blacksmith, was a blacksmith all day, and a cobbler worked on shoes all day, and a farmer farmed all day. We began to see bartering coming into existence, as a way to sustain this specialization. For instance, the farmer would need a plow blade repaired, and the blacksmith would need food for his table, so the farmer and the blacksmith would agree on how much produce represented the effort needed to repair the plow blade. They would exchange goods, or goods and labor in this case, so that they could both get their needs met, and continue plying their trades.

Now lets pretend that the blacksmith has been doing work for a lot of other farmers, and finds he doesn’t need any more food for a while, but our farmer hit a large rock preparing a new field and he needs his plow fixed. The only thing he can offer the blacksmith is food for payment, however the blacksmith tells the farmer that he needs shoes because he keeps dropping bits of red hot metal on his feet as he works

The farmer knows the cobbler so he goes to him and asks him if he needs any food, the cobbler informs him that he does need some food, and he would be glad to trade some food for some shoes. The farmer informs the cobbler that he doesn’t need shoes, but he will give the cobbler food if he makes shoes for the blacksmith, in turn the blacksmith will repair his plow for him. They all agree and whammo, we have a successful barter happen.

You can take this method of exchange involve many parties and get things done but it quickly becomes a veritable house of cards always to be on the edge of collapse, in fact, MASH had an episode where they took this to an extreme, and then one person fell through on the deal and the whole house of cards collapsed.

Now consider this for a moment, what if instead of trading directly for items we had beads, and each bead represented a certain amount of value, such that a bushel of corn, a pair of shoes, and a fixed plow was worth say 10 beads. Well then, the farmer could have gone to the cobbler and sold his shoes for 10 beads, then take his 10 beads to the blacksmith to get his plow repaired, the blacksmith would then be able to go back to the cobbler, and give his 10 beads in exchange for a pair of shoes.

See the beads themselves didn’t have any intrinsic value, it was merely an agreement between all parties that made the beads worth anything at all. This is the basis for monetary systems, an agreement that funny looking bits of metal and slips of paper represent some fixed value.

Pretty simple so far right? You can begin to see that if a lot of people all agree on the value of money then money can help alleviate impossibly complex bartering processes. To boil this all down when you work at whatever job you do, you add value, or perform a service of some kind, and you get paid for that. You then use this money to buy goods and services for you and your family, and it keeps going around and around in a terribly complex set of interactions.

When you work for your money, you generally get paid by the hour, and if you don’t then you can normally equate it back to an hourly figure of some kind. This ability to equate money in terms of an hourly rate of some kind is where we’re going to derive our definition, and our valuation, of money.

Money is simply a measurement of the value you add while performing an hour of labor, in other words, you exchange hours of your life doing some task for some amount of money. It may sound a little dismal but bear with me here, it’s a very powerful way to look at money.

We’ll use an example to try and make things a little clearer. Let’s say that you make $10 / hour, and you want to buy a widget that costs $100. Utilizing the definition we got from above you will have to spend 10 hours of your life working to acquire the widget. Not so bad, right? A little over a day of effort for a really cool widget.

“But what if I make $20/hr?”, someone may ask. well then the ultra-cool widget will only cost you five hours of your life. This is one of the nice things about this particular viewpoint, it adjusts to your income level, providing a useful indicator for the real costs to you for any purchase.

Let’s take a few more purchase examples, then we’ll move on to some other ways that you can use this measure to evaluate your money.

Let’s say you are looking at buying a new SUV just like the one the guy on your bowling team just picked up. You shop around and find a deal at $50k, for a brand new one with all the trimmings, dvd player, satellite radio, gps, the works. Let’s pretend that you make $65k/year, the actual amount you make isn’t really important, what is important is to look at how much time it will require for you to get to earn the purchase price of the car. In that case you would be paying approximately 1538 hours for your car, a little over 192 days for a car. Of course, that’s without interest, tax, license, maintenance, insurance, and fuel ( a valid concern with today’s fuel prices).

That’s 38 weeks you’ll be working and putting every dime you have towards your car, not counting the interest that will be accruing on your loan. For purposes of of comparison let’s take a baseline economy car that gets good gas mileage and can hold a family with relative ease, and we’ll say it costs $20k, I know that models can be had for cheaper, but this is good enough to make my point. That’s about 615 hours, or 76 days, or 15 weeks to pay off that car.

So we have 38 weeks, over half a year, versus, a season. There are, of course, other considerations besides simply, which costs less, what we’ve done is put the value of the car in terms of how much time you’ll spend working to obtain it. You will often notice that people speak of auto purchases in terms of overall cost, but they often negotiate the per month payments. It is often much easier to agree to $400/month instead of an outlay of $50k.

k enough about purchases, lets take our new techniques for looking at money and turn them towards debt. I think the public’s attitude towards debt has changed over the last 30 years or so, and i think a lot of it has to do with the invasion of credit cards into our culture. I received my first credit card before I was out of high school, before I had a fulltime job I had the option to rack up $2500 in debt. I tend to think I was the rule and not the exception, and at timesI think it is a reflection of our consumer focused culture, sometimes I realize it’s just the credit card people trying to get people hooked into the mentality of instant gratification sooner.

I hear this often “it’s only $12k I could pay that off in a few weeks no problem.” At first blush this seems to be a valid argument, it’s not really a lot of money right? Well let’s use our new tool for evalution money to put some meaning behind that $12k of debt.

Assuming once again a $65k salary, and no other financial obligations, and no interest, you’re looking at putting everything you make for over 38 days towards paying your credit card debt. That’s one-tenth of a year. Of course most people have other financial obligations to fill and so you cant just expect to get this all paid off in one lump sum, and then the interest rates begin to kick in, and before you know it, your 38 days have turned into 45, 60, or even more days.

I’ve found this to be a useful way to analyze purchases before I make them. It has saved me a lot of money over the years by keeping me from making purchases and has also given me a grounded look at what I was doing when I went ahead with a purchase.

When I first showed this article to a friend of mine, he said that this didn’t hold up in situations where you picked a stock, inherited money, or won a jackpot at the casinos. “In those situations you didn’t exchange your time for money, your viewpoint doesn’t take these things into account”. The obvious response would be that a person probably did spend some amount of time to get the money in each of these cases, i think there’s an even better answer. You apply the same rules that we have been discussing to evaluate the money that has been turned over to you, it will give the money a little more meaning to you.

See, just because you got some money for nothing, it doesn’t mean that the money is meaningless, it doesn’t invalidated the definition that we have created here.Even though you didn’t have to perform any labor to obtain this money, it still represents some number of hours of you working at your profession at your current salary. So you could say, that when you win the lottery, inherit some money, get a big bonus, someone just gave you some time.

Hopefully you are beginning to see how looking at money from this perspective can help you evaluate your purchases with a grounded view on what the costs are to you, and not just how much money it is. I know that for me looking at things in this manner has saved me a lot of money over the years, hopefully it’s helpful to you as well.

Categories: personal finance Tags:

January 2008 : bicycling recap

February 9th, 2008 joelhainley No comments

I’m back on the bike in a more serious mindset than I had last year. I only ended up riding a single century last year, Death Valley Spring, it was a good ride. However, once that was over I got more busy with other things and dealing with some health issues within my immediate family and I just never made the time. This year I’m back on the bike, progressing through training and hoping to do my first century in March. I think i’ll be ready if the weather cooperates and allows me to get out for a long ride once a week. I’m riding 4 times a week for an average of 20 miles per ride. I ride 1 day on the fixed gear, and the other days on a multispeed bike.

I haven’t ridden serious in months and was amazingly out of shape. I started riding again on January 20th so the numbers for January are small, things have been picking up the first part of February and if things continue I should be in pretty good shape. We’ll see.

Total Mileage in January : 152.59 miles

Multigear Mileage : 140.59

Fixed Gear ( track bike ) Mileage : 12

Looks a little grim when I look at what I was doing weekly when I did the Foxy’s Fall classic a couple of years ago. Gotta get back into that kind of shape.

Categories: bicycle Tags: , , ,