Friday, April 06, 2012

My Blood Letting.


I went to give blood today. I've done this before so it's nothing new.
Stats before we started 135/85 pulse 76.
I wasn't sure about the nurse. She made me nervous. We started anyway. After I few minutes I started feeling bad. I asked them to stop and I need to lay down. Ice packs were deployed. I think I remember everything but I'm not sure. Finally asked to lay flat on the floor. They carefully got me on the floor. After a few minutes, I guess, I started feeling better. I heard somebody say "He's opening his eyes." Then I started making jokes. "He's ok." Then they took my blood pressure. 
98/66 pulse 47 after I "felt better" but still lying on the floor. 
106/72 pulse 53 after a few minutes sitting back in the chair. 
I'm still in chair some 40 minutes later. I feel ok but not ready to stand up. 

Wednesday, March 14, 2012

Tuesday, January 24, 2012

Easy Internationalization for Your Rails App with BDD » RubySource

I wrote an article internationalizing a rails application. you can read it here. bit.ly/yjHjmO

Tuesday, January 11, 2011

msvcrt-ruby18.dll Error on Windows.

When using ruby 1.9.2p136 (2010-12-25) [i386-mingw32], Rails 3.0.3, cucumber (0.10.0), cucumber-rails (0.3.2), and rspec (2.4.0) I was getting a windows error message saying that I don't have msvcrt-ruby18.dll and I need to fix it.

This is on a new ruby and rails set up. When I added my testing gems rspec and cucumber I started getting that error when I ran rake or started the webserver.

I commented out the testing gems and traced it to cucumber.

When looking at comment on Stack Overflow I noticed someone mentioned reinstalling json.

I looked to what version I had.

C:\web\used_be>gem list --local -d js

*** LOCAL GEMS ***

json (1.4.6)
Platform: x86-mingw32
Author: Florian Frank
Rubyforge: http://rubyforge.org/projects/json
Homepage: http://flori.github.com/json
Installed at: C:/Ruby192/lib/ruby/gems/1.9.1

JSON Implementation for Ruby

json_pure (1.4.6)
Author: Florian Frank
Rubyforge: http://rubyforge.org/projects/json
Homepage: http://flori.github.com/json
Installed at: C:/Ruby192/lib/ruby/gems/1.9.1

JSON Implementation for Ruby

OK. I installed the ruby version

C:\web\used_be>gem install json --platform=ruby
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
Successfully installed json-1.4.6
1 gem installed
Installing ri documentation for json-1.4.6...
Installing RDoc documentation for json-1.4.6...
ERROR: While executing gem ... (Encoding::UndefinedConversionError)
U+2018 from UTF-8 to IBM437

What did that do?

C:\web\used_be>gem list --local -d js

*** LOCAL GEMS ***

json (1.4.6)
Platform: x86-mingw32
Author: Florian Frank
Rubyforge: http://rubyforge.org/projects/json
Homepage: http://flori.github.com/json
Installed at: C:/Ruby192/lib/ruby/gems/1.9.1

JSON Implementation for Ruby

json_pure (1.4.6)
Author: Florian Frank
Rubyforge: http://rubyforge.org/projects/json
Homepage: http://flori.github.com/json
Installed at: C:/Ruby192/lib/ruby/gems/1.9.1

JSON Implementation for Ruby

Looks the same. Let's unistall json.

C:\web\used_be>gem uninstall json

Select gem to uninstall:
1. json-1.4.6
2. json-1.4.6-x86-mingw32
3. All versions
> 2
Remove executables:
edit_json.rb, prettify_json.rb

in addition to the gem? [Yn] y
Removing edit_json.rb
Removing prettify_json.rb
Successfully uninstalled json-1.4.6-x86-mingw32

let's reinstall json.

C:\web\used_be>gem install json --platform=ruby
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
Successfully installed json-1.4.6
1 gem installed
Installing ri documentation for json-1.4.6...
Installing RDoc documentation for json-1.4.6...
ERROR: While executing gem ... (Encoding::UndefinedConversionError)
U+2018 from UTF-8 to IBM437

What did that do?

C:\web\used_be>gem list --local -d js

*** LOCAL GEMS ***

json (1.4.6)
Author: Florian Frank
Rubyforge: http://rubyforge.org/projects/json
Homepage: http://flori.github.com/json
Installed at: C:/Ruby192/lib/ruby/gems/1.9.1

JSON Implementation for Ruby

json_pure (1.4.6)
Author: Florian Frank
Rubyforge: http://rubyforge.org/projects/json
Homepage: http://flori.github.com/json
Installed at: C:/Ruby192/lib/ruby/gems/1.9.1

JSON Implementation for Ruby

Now I can run rake tasks or start the server and not get that error.