chris finne

Chris Finne's Blog

The topics are primarily professional and since I'm a "software guy", that means Ruby, Ruby on Rails, jQuery, Amazon AWS, Sphinx, Solr, SMPP, embedded systems and many other technologies that I work (and sometimes struggle) with.

Quiet Assets Logging On Rails Webrick

12 Jul 2017

Older Rails versions used to use the Quiet Assets GEM which was then rolled directly into the Rails asset pipeline with

 # config/environments/development.rb config.assets.quiet = true 

This switch works with Webrick and the development.log file, but I usually code with Webrick and byebug for debugging, so I have the console open and am always reading the STDOUT stream. The Asset logging stream is NOT silenced from the STDOUT so my console is still hopelessly cluttered.

Ruby monkey-patching to the rescue:

 if Rails.env.development? && defined?(::WEBrick) # Stop all the /assets/ logs in the webrick stdout module WEBrick...
      

Problems Making HTTPS Calls with Ruby on Windows

14 Sep 2016

Assuming you are using Ruby Installer to install Ruby on Windows, getting Ruby to make a call to an HTTPS server isn’t straightforward.

 Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\Administrator>ruby -v ruby 2.2.4p230 (2015-12-16 revision 53155) [i386-mingw32] C:\Users\Administrator>ruby -ropenssl -e 'puts OpenSSL::X509::DEFAULT_CERT_FILE' C:/Users/Justin/Projects/knap-build/var/knapsack/software/x86-windows/openssl/1.0.1l/ssl/cert.pem C:\Users\Administrator> C:\Users\Administrator>ruby -ropenssl -ve 'puts Gem::VERSION, OpenSSL::OPENSSL_VERSION' ruby 2.2.4p230 (2015-12-16 revision 53155) [i386-mingw32] 2.6.6 OpenSSL 1.0.1l 15 Jan 2015 

If you look at the default SSL cert file, you will notice that it is set to the path by the developer that packaged Ruby Installer.

So if you...

  • 12 Jul 2017 » Quiet Assets Logging On Rails Webrick
  • 14 Sep 2016 » Problems Making HTTPS Calls with Ruby on Windows
  • 06 Oct 2015 » Paperclip S3 AccessDenied
  • 25 Mar 2012 » freeze - I can Modify CONSTANTS in Ruby
  • 05 Dec 2011 » Ruby - Is a Phone Number Valid for SMS?
  • 15 Oct 2011 » Parse American Dates with Ruby 1.9 (in Rails)
  • 23 Sep 2011 » Rails 3 to_s(:db) when database time is NOT UTC
  • 22 Jul 2011 » Ruby Rails Initialize BigDecimal with commas in the String
  • 19 Oct 2010 » Screen Free Day
  • 23 Sep 2010 » Top FAILS from Apples Mac OSX
  • 04 Sep 2010 » Apple Showdown Magic Mouse vs Magic Trackpad
  • 16 Aug 2010 » Rails Fixture Name Starts With Test
  • 03 Jun 2010 » Indexing Sphinx on Amazon AWS EC2 With MySQL RDS and Compression
  • 03 Jun 2010 » How to Enable MySQL Compression With Rails and the MySQL Gem
  • 03 Jun 2010 » Best Solr Setup for Indexing Large Rails App
  • 29 May 2010 » Solr JAVA on Mac
  • 26 May 2010 » Business School Recommendation Haiku or Dr Seuss
  • 04 May 2010 » Improving Sphinx Geo Query Performance on Amazon EC2
  • 03 May 2010 » Best Web Site Uptime Monitoring Service
  • 19 Apr 2010 » Remember When
  • 18 Apr 2010 » Migrating From Slicehost to Amazon AWS EC2
  • 13 Apr 2010 » Reminder To Setup Iptables and hosts After Cloning Slicehost
  • 12 Apr 2010 » Amazon SimpleDB SignatureDoesNotMatch error when putting UTF-8 Characters via a HTTP POST
  • 09 Apr 2010 » Multi Server Thinking Sphinx
  • 09 Apr 2010 » God Events not working on Slicehost Ubuntu - Resolved
  • 05 Apr 2010 » Amazon AWS SimpleDB for Website Analytics
  • 04 Apr 2010 » mongoDB fails for website analytics use case
  • 26 Mar 2010 » Reflections on Up In The Air
  • 24 Mar 2010 » New Site
  • 17 Jan 2010 » Projects