midwire.github.io
RSpec Shared Contexts - Midwire
http://midwire.github.io/blog/2014/02/20/rspec-shared-contexts
Ruby, Elixir, Macintosh and Other Technical Maunder. Though I know Cucumber fairly well too, as a backend developer I use RSpec almost exclusively. Cucumber is better for having tests that muggles (non-programmers, executives, suits, etc.) like to execute and look at, IMHO. I really appreciate Philippe Creux’s post on the way he uses RSpec. I do all of those things as well but I have also found shared contexts. To be extremely useful in helping to keep my specs DRY. And inside we put code like this:.
midwire.github.io
Midwire
http://midwire.github.io/posts/2
Ruby, Elixir, Macintosh and Other Technical Maunder. Ruby String Modification Performance. Having used many programming languages over the years; when I began using Ruby I expected to find that string interpolation performance would be slow and similar to other languages. I was surprised! In Ruby, 1.8.x versions, string interpolation is always faster. Here are the timings:. Ruby String Modification Performance string quotes.rb. Single Quotes ( operator at end):. This is a test. This is a test. Bash: 3...
midwire.github.io
EVGA UV + 19: Mac Third Monitor Testing - Midwire
http://midwire.github.io/blog/2012/01/07/evga-uv-plus-19-mac-third-monitor-testing
Ruby, Elixir, Macintosh and Other Technical Maunder. EVGA UV 19: Mac Third Monitor Testing. Disclaimer: I am not paid to review products. This post is here in hopes that it will benefit someone wanting more than 2 monitors for their Macbook laptop. If you do happen to click on one of the Amazon links below and purchase one of these products, Amazon will add a few cents to a gift card for me to use the next time I want to buy a Kindle book. With Amazon’s excellent return policy, I decided to start w...
midwire.github.io
A Useful ~/.irbrc File - Midwire
http://midwire.github.io/blog/2015/11/20/a-useful-~-slash-dot-irbrc-file
Ruby, Elixir, Macintosh and Other Technical Maunder. A Useful /.irbrc File. It contains 4 useful methods as follows:. Allows you to determine what methods are available on an object without displaying all of Object instance methods. The following. On an Array instance:. Is just a shortcut for. Cuz I’m lazy. As you can see, it lists out all public instance methods for the Array instance,. Predicates is similar to. And filters out all but methods that end with a question mark (predicates). Pretty cool, huh?
midwire.github.io
Software Development - Onsite or Remote? - Midwire
http://midwire.github.io/blog/2013/07/22/software-development-onsite-or-remote
Ruby, Elixir, Macintosh and Other Technical Maunder. Software Development - Onsite or Remote? Back in the day there was no choice. The internet did not exist and in order to make a living you had to take the time to travel to work everyday, spending your own money for gasoline, wear and tear on your car and sit in a tiny cubicle with no window to write code on a monochrome text-only green or amber colored CRT (Cathode Ray Tube). They weren’t called monitors back then. Financial: This benefit is two-fold ...
midwire.github.io
Elixir - Time Ago in Words - Midwire
http://midwire.github.io/blog/2016/04/28/elixir-time-ago-in-words
Ruby, Elixir, Macintosh and Other Technical Maunder. Elixir - Time Ago in Words. After reading the excellent book “Programming Elixir”. By Dave Thomas, and “Programming Phoenix”. By Chris McCord, Bruce Tate and José Valim, I decided to dive in. As of this post, I am currently writing an Elixir app using the Phoenix framework. It is called Tunedrop. And I am working on it for two reasons:. To learn Elixir and Phoenix. To share some of the music that I grew up on with my kids. You can see the code here.
midwire.github.io
Securing Your Workstation - Midwire
http://midwire.github.io/blog/2014/07/29/securing-your-workstation
Ruby, Elixir, Macintosh and Other Technical Maunder. With all of the revelations from Edward Snowden. About the unconscionable and patently unlawful (unconstitutional) NSA spying on Americans and the world, here are some tips on how to secure your computer to make it more difficult for this traitorous organization to spy on you. 1 Use an anonymizing VPN service. You’ll want a service that provides a VPN (Virtual Private Network). Many services, like BTGuard. About the trust issue. Note: If you decide to ...
midwire.github.io
Rack, Paperclip, File Uploads & RSpec - Midwire
http://midwire.github.io/blog/2014/01/31/padrino
Ruby, Elixir, Macintosh and Other Technical Maunder. Rack, Paperclip, File Uploads and RSpec. So I’ve been writing a couple Ruby services, for Rallyhood. Using Padrino. We’ve got Rallyhood Authentication Service (RAS) and I’m currently working on Rallyhood File Service (RFS). Writing my specs for the assets controller, I ran into:. 1) AssetsController POST on /assets uploads the file. Failure/Error: post '/assets', params. App/controllers/assets.rb:19:in `block (2 levels) in top (required) '. I figured s...
midwire.github.io
Why Not Google Chrome? - Midwire
http://midwire.github.io/blog/2015/12/23/why-not-google-chrome
Ruby, Elixir, Macintosh and Other Technical Maunder. Why Not Google Chrome? Why you should not use the Google Chrome browser. As an internet software engineer, I often get asked why I don’t use Google’s ever popular Chrome browser. My answer is often met with disbelief. So I decided to answer the question once and for all with proof behind my reasoning in this six and a half minute video. Will Google simply remove the video? Probably. I propose they will remove it if it begins to gain any traction. Inste...
geminstallthat.wordpress.com
Adding environment variables to cron via whenever | Gem Install That
https://geminstallthat.wordpress.com/2009/11/24/adding-environment-variables-to-cron-via-whenever
Ruby on Rails Geek Blog. Adding environment variables to cron via whenever. November 24, 2009. Posted by John Dewey in Crontab. I wanted my users’ cron to run under zsh, so it picks up the .zshenv — which contains additional environment variables, my rake task required. Can add the following to schedule.rb. This will work with any ENVIRONMENT=variable. Env ‘SHELL’, ‘/usr/bin/zsh’. February 9, 2011. Thanks John, couldn’t find this anywhere else. 2 Andrey - October 16, 2015. Leave a Reply Cancel reply.
SOCIAL ENGAGEMENT