Tuesday, August 19, 2008
Tuesday, July 15, 2008
Join a local Ruby group if you can find one in your area. I would say definitely get the newest version of the Rails book, but wait a month or two if a new version is about to come out. Older versions aren't useless, but things change every day. Even the newest book will be missing things before ink even touches paper. I highly recommend Rails for Java Developers as the fastest way for you to get up to speed. After slogging through the Ruby and Rails books, I found RfJD wished I had read it first. They build on what you know from Java instead of starting you from ground zero, and that will save you a lot of time. Build a couple of VERY SMALL projects first before you launch yourself on a big project. Your first few projects will be very messy and hard to maintain, despite your best intentions to the contrary. Practice Ruby with simple problems like the ones at Project Euler. Ask a lot of questions. Shun the Rails Wiki pages. The information there is generally a mix of wrong AND out of date. Watch Railscasts videos. Suffer gracefully. Ask more questions.Got any more advice to share? Post it here!
Wednesday, July 2, 2008
Thursday, May 8, 2008
Sunday, April 27, 2008
Sunday, April 20, 2008
Sunday, March 23, 2008
After several attempts to get Google to index my server at home on my DSL (using a dyndns.org hostname, of course), I decided I needed to set up a more "legitimate" host. So, I bought a VPS instance at BuyAVPS.com for $9.99 a month so I could mess around with my own Ruby on Rails apps.
I tried to use some of the pointers I got from The Principles of Beautiful Web Design, which I finished reading last week, and ended up with a logo and welcome page that I can actually be proud of! Ok, so it's not much, but now I have a home for StampCalculator so people can actually discover and use it.
Thursday, March 6, 2008
Monday, March 3, 2008
The following statements are all true in Ruby 1.8.6:
0.6 - 0.5 < 0.1
(0.29 * 100).to_i == 28
0.28 * 100 != 28
(0.28 * 100).to_i == 28
(0.27 * 100) == 27
Well, what can I say? Floating point errors in Ruby can really bite you. I had always thought higher precision numbers were necessary only when dealing with very small numbers or when computing compound interest, but look out! Ruby floating point can really bite you with some strange, unexpected results. It makes me wonder why Matz included a to_i method at all!
Saturday, March 1, 2008
irb(main):001:0> 0.5-0.4 => 0.1 irb(main):002:0> 0.5-0.4<0.1 => true irb(main):003:0> ((0.5-0.4)*10) => 1.0 irb(main):004:0> ((0.5-0.4)*10).to_i => 0 irb(main):005:0> ((0.5-0.4)*20).to_i => 1 irb(main):006:0> ((0.5-0.4)*20) => 2.0...well, this certainly violates the principle of least astonishment, but I guess the lesson is that I should be using values in terms of pennies (ie, integers not floats).
Sunday, February 24, 2008
- "Going on a diet" is a good way to lose weight.
- If only I could exercise more, I could lose weight.
"Furthermore, we have found that the heavier a person is -- French or American -- the more they rely on external cues to tell them to stop eating and the less they rely on whether they felt full."What does this have to LYSBYG? Everything! Your stomach tells you when to eat, and it tells you when to stop eating. In order to lose weight, you first need to start heeding your stomach. Stop eating immediately when you feel full. The second step is to consistently eat a little bit less, and drink a little bit less at meals, and your stomach will adapt itself to a lower intake level if you're consistent about it.
Saturday, February 23, 2008
Tuesday, February 19, 2008
- Use Doodle to set up polls to choose a time and a game.
- Schedule a conference room for the weekly game.
- Order lunch for people.
- Have fun!
Saturday, February 16, 2008
- Set a modest goal for myself, about 0.5% of my weight every week. (about 1 lb for me)
- I weighed myself every week at the same time, at least 1-2 hours after eating. (Sunday evening after dinner)
- I stopped cleaning my plate. Plate cleaning really is a habit that leads to overeating.
- I reduced my portions by a very small amount across every meal, every week I missed my goal, and increased my portions when I overshot my goal by losing 2 pounds or more.
- I stopped snacking except for when I felt physical, stomach-growling hunger. When I felt hungry like this, I would eat a small snack.