getpostman.com

Talking with APIs makes more fun using Postman. As an alternative you can also use command line tools like cURL...

makandra dev
chrome.google.com

When you're facing a somewhat complex Google Analytics setup and want to find out what's happening, you can...

github.com

Uses FFI and works all relevant operating systems. If you'd try to do it yourself, you'd have to...

RSpec supports a one-liner syntax for setting an expectation on the subject: describe Array do describe "when first created...

If you expect method calls in RSpec 3, be aware that the argument matchers use very liberal equality rules (more...

makandra dev

Angular's directives have a transclude option, that allows for rendering an element's original content within the directive's...

A HTTP 302 Found redirect to PATCH and DELETE requests will be followed with PATCH or DELETE. Redirect responses to...

makandra dev

In JavaScript we often use Immediately Invoked Function Expessions (or IIFEs) to prevent local variables from bleeding into an outside...

stackoverflow.com

First, decide if you want to pull with rebase. There are some implications of changing this, so think before you...

To install gems Bundler needs to be able to talk to https://api.rubygems.org. If you are behind a proxy you...

There are a million ways to center s or text in CSS, horizontally or vertically. All the ways are unsatisfying...

During debugging you might pepper your code with lines like these: console.log('foo = ' + foo + ', bar = ' + bar) I recommend to use...

Don't use be_true to check if a value is true. It actually checks if it anything other than...

stackoverflow.com

From Rails 3.0.9, there is a method Hash#to_query that will turn a Hash into a query string:

I got this error when running Rails 2.3 tests for Rails LTS. More stacktrace: NoMethodError: undefined method `cache' for Gem...

makandra dev

Geordi is now (partially) tested with Cucumber. Yay! geordi cucumber supports a new @solo tag. Scenarios tagged with @solo...

github.com

Using Scenic, you can bring the power of SQL views to your Rails application without having to switch your schema...

makandra dev
elastic.co

Dashboard (Marvel Kibana) and query tool (Marvel Sense) for Elasticsearch. Once installed you can access Kibana and Sense at these...

makandra dev

Ever wondered how you can create a simple table output in bash? You can use the tool column for creating...

github.com

A comprehensive script to convert test suites from RSpec 2 to RSpec 3. This converts more than should/expect syntax.

makandra dev
cyberciti.biz

Wondering which processes are placed in your swap you can use this bash oneliner: for file in /proc/*/status ; do...

SELECT pg_database.datname as "database_name", pg_database_size(pg_database.datname)/1024/1024 AS size_in_mb FROM pg_database ORDER...

Once Rails knows a given string is html_safe, it will never escape it. However, there may be times when...

litmus.com

You know that layouting HTML e-mails is terrible. For more fun, check Litmus' list of top 10 e-mail...