Saturday, 22 October 2016

Rails woes on Windows 10

The Rails community isn't strong on support for Windows based machines.

The github repository RubyOnWindowsWoes contains the source and issues found.

This note is to remind me how I eventually solve the problems!

Thursday, 13 October 2016

ConfigurationManager does not exist in the current context

This was plaguing me for some time.

Part of the solution is the
#include System.Config

The bit I kept missing was to include the System.Configuration reference to the project.

Sigh.


Monday, 28 December 2015

Windows 10 flickering on top few pixels after update

A bit of history first.

My laptop was originally a Windows 8.1 machine, and was updated to Windows 10 when that became available (although it took two attempts).

It has just had the November update applied (which took a long, long time).

Post update, I have noticed a flickering across the top few pixels of the screen. A quick look at recent posts didn't give many useful hints.

I had a look at the advanced screen settings, and saw the screen was set to 1366 x 768 picels - this wasn't the resolution I was expecting. I dropped the resolution to 1360 x 768 and this seems to have stopped the issue.

The recommended resolution is 1366 though, and I don't understand why changing the horizontal resolution has stopped the issue.

Sunday, 8 November 2015

Ruby, Windows and Timezones

With the current builds of Ruby on Rails, there are a couple of problems with a default installation.

The first is that Windows environments seem to need the timezone data gem including.

The second is to do with the initial layout file.

Timezone data

If you have a Rails folder already, you might just be able to get away with the following:

Details about the timezone gem are in github. Add the following line to your Gemfile:

gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

then run 
bundle update

as usual when you change your Gemfile.

To build a new Rails project

Follow Fletcher Nichols' instructions, (basically running this gist, then adding a new environment variable SSL_CERT_FILE with the value C:\RailsInstaller\cacert.pem.

application.html.erb

The line:
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
is currently failing on Windows environments. Replace the line with:
<%= javascript_include_tag 'default', 'data-turbolinks-track' => true %>

Adding the coffee-script-source gem to your the Gemfile seems fix the issue:
..
gem 'coffee-script-source', '1.8.0', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
seems to fix the issue.


Edit: added the coffee-script-source notes.
Edit2: Added the SSL_CERT_FILE notes

Thursday, 10 September 2015

Googlewhack! alfridariaANDxystarch

Googlewhacking is finding a pair of words that give just a single hit on Google.

Today's effort was made with the aid of a dictionary of less-commonly used words.

Wednesday, 9 September 2015

Googlewhack! XystarchANDyarker

Googlewhacking is finding a pair of words that give just a single hit on Google.

Today's effort was made with the aid of a dictionary of less-commonly used words.

This is the second one I've found today.

Googlewhack! xystarchANDsnaggers

Googlewhacking is finding a pair of words that give just a single hit on Google.

Todays effort was made with the aid of a dictionary of less-commonly used words.