Technology Insights

Install Ruby JSON Gem on Windows

When attempting to install the Ruby JSON gem on Windows you are most likely going to get an error similar to the below. The trick is to instead install json_pure gem using the syntax listed below the error.

Error:

bash

  1. C:\>gem install json
  2. Building native extensions. This could take a while...
  3. ERROR: Error installing json:
  4. ERROR: Failed to build gem native extension.
  5.  
  6. C:/ruby/bin/ruby.exe extconf.rb install json
  7. creating Makefile
  8.  
  9. nmake
  10. 'nmake' is not recognized as an internal or external command, operable program or batch file.
  11.  
  12. Gem files will remain installed in C:/ruby/lib/ruby/gems/1.8/gems/json-1.1.3 for inspection.
  13. Results logged to C:/ruby/lib/ruby/gems/1.8/gems/json-1.1.3/ext/json/ext/parser/gem_make.out

Technology Insights

Generating RDoc HTML files for your Rails project

To generate Rdoc HTML documentation files for your Rails project, run:   ruby rake doc:app This will create the following directory structure in your #{RAILS_ROOT}/doc/app directory: classes (dir) files (dir) created.rid fr_class_index.html fr_file_index.html fr_method_index.html index.html rdoc-style.css Here are some the other RDoc related rake tasks (listed by running rake -T) ruby rake doc:app    …

Technology Insights

How to Upload Files to a WordPress Post

After WordPress 2.5 uploading files to posts has become much easier. When first looking into this I was confused though because I every time I would upload a file it would not automatically link to the file. I was assuming the file did not upload properly and that was the reason there was no file to link to. I was mistaken though and really uploading a file is exactly like uploading an image but you have to select where the file links to. Follow the simple directions below to upload files to a WordPress post on your WP blog. The directions below are based on WordPress 2.7+ however they are very similar to WordPress 2.5/2.6.

  1. Open WordPress Admin: Obviously the first thing you need to do is login to the WP administration area of your blog which is typically found at your URL followed by /wp-admin.

Technology Insights

Outlook Contacts Not Showing Up In Skype

Outlook contacts not showing up in Skype has been a problem bugging me for a couple weeks but I have not had the time to look into it until tonight. I figured that it might be a bug or something with Skype since I recently upgraded however I was incorrect. For some reason when I turned on “Show Outlook Contacts” in Skype only two of my contacts were showing up. Luckily this was the case or it would have taken a lot longer to figure out.

The issue is that in my Skype setup (not sure if it is this way for all configurations) the numbers require a +1 to be in front of the area code. So for instance if you have a contact and the number is 502-123-1234 it will not show up in Skype unless you add a plus one for the number to show as +1502-123-1234. Below I describe a couple tips to convert all of your numbers a bit easier. There is probably a VB script out there that will do this easier but it  was much easier to convert all of your Outlook contact numbers as I discuss below than manually editing each one.