Tag Archives: ruby

Use capistrano to run a remote rake task, with maintenance mode

So the app I am now working on is still in it’s early stages, not even live to the public yet, but we’ve got an internal server. We periodically have to change a bunch of data in our (non-rdbms) “production” … Continue reading

Posted in General | Tagged | Leave a comment

Hash#map ?

I frequently have griped that Hash didn’t have a useful map/collect function, something allowing me to transform the hash keys or values (usually values), into another transformed hash. I even go looking for for it in ActiveSupport::CoreExtensions sometimes, surely they’ve added … Continue reading

Posted in General | Tagged | 1 Comment

“Polish”; And, What makes well-designed software?

Go check out Schneem’s post on “polish”. (No, not the country). Polish is what distinguishes good software from great software. When you use an app or code that clearly cares about the edge cases and how all the pieces work … Continue reading

Posted in General | Tagged | Leave a comment

Command-line utility to visit github page of a named gem

I’m working in a Rails stack that involves a lot of convolutedly inter-related dependencies, which I’m not yet all that familiar with. I often want to go visit the github page of one of the dependencies, to check out the … Continue reading

Posted in General | Tagged | 3 Comments

Monitoring your Rails apps for professional ops environment

It’s 2017, and I suggest that operating a web app in a professional way necessarily includes 1) finding out about problems before you get an error report from your users (or at best, before they even effect your users at all), and 2) … Continue reading

Posted in General | Tagged | Leave a comment

“This week in rails” is a great idea

At some point in the past year or two (maybe even earlier? But I know it’s not many years old) the Rails project  started releasing roughly weekly ‘news’ posts, that mostly cover interesting or significant changes or bugfixes made to … Continue reading

Posted in General | Tagged | 2 Comments

searching through all gem dependencies

Sometimes in your Rails project, you can’t figure out where a certain method or config comes from. (This is especially an issue for me as I learn the sufia stack, which involves a whole bunch of interrelated gem dependencies).  Interactive debugging techniques … Continue reading

Posted in General | Tagged | Leave a comment

rubyland infrastruture, and a modest sponsorship from honeybadger

Rubyland.news is my hobby project ruby RSS/atom feed aggregator. Previously it was run on entirely free heroku resources — free dyno, free postgres (limited to 10K rows, which dashes my dreams of a searchable archive, oh well). The only thing I … Continue reading

Posted in General | Tagged | Leave a comment

ruby VCR, easy trick for easy re-record

I do a lot of work with external HTTP API’s, and I love the vcr for use in writing tests/specs involving these. It records the interaction, so most of the time the tests are running based on a recorded interaction, not … Continue reading

Posted in General | Tagged | Leave a comment

never bash again, just ruby

Sometimes I have a little automation task so simple that I think, oh, I’ll just use a bash script for this. I almost always regret the decision, as it tends to grow more complicated, and I start fighting with bash and … Continue reading

Posted in General | Tagged | 1 Comment