Rails developers: Have better context in Git diffs

Posted Over 3 years ago by Dominik Schöler.
tekin.co.uk

Git diffs show the surrounding contexts for diff hunks. It does so by applying regular expressions to find the beginning...

Ruby: A short summary of available hooks in Cucumber

Posted Over 3 years ago by Emanuel.

Here is a short summary of Cucumber hooks in Ruby taken from https://github.com/cucumber/cucumber-ruby. Note that the BeforeStep is...

What's so hard about PDF text extraction? ​

Posted Over 3 years ago by Henning Koch.
web.archive.org

There is a common view that extracting text from a PDF document should not be too difficult. After all, the...

Simple form examples with bootstrap

Posted Over 3 years ago by Emanuel.
simple-form-bootstrap.plataformatec.com.br

Good reference how to build bootstrap forms with simple_form.

RubyMine: Restore main menu in Ubuntu

Posted Over 3 years ago by Jakob Scholz.

After a recent Ubuntu update I didn't see the main menu bar of the RubyMine IDE (File | Edit | View...

Vortrag: Content Security Policy: Eine Einführung

Posted Over 3 years ago by Tobias Kraze.

CSP hat zum Ziel einen Browser-seitigen Mechanismus zu schaffen um einige Angriffe auf Webseiten zu verhindern, hauptsächlich XSS...

How to prevent Nokogiri from fixing invalid HTML

Posted Almost 4 years ago by Arne Hartherz.

Nokogiri is great. It will even fix invalid HTML for you, like a browser would (e.g. move block elements out...

The HTML5 video element

Posted Almost 4 years ago by Dominik Schöler.

# Basic HTML example # Javascript API (notable methods and properties) video = document.querySelector('video') video.play() video.pause() video.load() // Reset to the beginning and...

HTTP Client in RubyMine

Posted Almost 4 years ago by Martin Schaflitzl.

RubyMine has a HTTP Client that can be useful to test web APIs. Just create a .http scratch file an...

Howto: Select2 with AJAX

Posted Almost 4 years ago by Florian Leinsinger.
select2.org

Select2 comes with AJAX support built in, using jQuery's AJAX methods. ... For remote data sources only, Select2 does not...

The JavaScript Object Model: A deep dive into prototypes and properties

Posted Almost 4 years ago by Henning Koch.

Speaker today is Henning Koch, Head of Development at makandra. This talk will be in German with English slides.

How to use Simplecov to find untested code in a Rails project with RSpec and Cucumber

Posted Almost 4 years ago.

Simplecov is a code coverage tool. This helps you to find out which parts of your application are not tested...

Always disable autocomplete for date pickers

Posted Almost 4 years ago by Henning Koch.

When we write a form with date fields, we often use graphical data picker like Rome to get a consistent...

Cucumber's table diffing does not play nice with Spreewald's `patiently do`

Posted About 4 years ago by Tobias Kraze.

Turns out, Cucumber::MultilineArgument::DataTable#diff! caches some stuff. Code of the following form will not work as intended:

Devise: How to allow only HTTP Basic Auth and disable the HTML sign-in form

Posted About 4 years ago by Arne Hartherz.

By default, Devise redirects to a sign-in form when accessing a route that requires authentication. If for some reason...

Quick HTML testing with RubyMine

Posted About 4 years ago by Dominik Schöler.

If you need to test some HTML, e.g. an embed code, you can use RubyMine's "scratch files":

How to write modular code

Posted About 4 years ago.

Or: How to avoid and refactor spaghetti code Please note that I tried to keep the examples small. The effects...

Rails: Rest API post-mortem analysis

Posted About 4 years ago by Emanuel.

This is a personal post-mortem analysis of a project that was mainly build to provide a REST API to...

Defining new elements for your HTML document

Posted About 4 years ago by Henning Koch.

Browsers come with a set of built-in elements like or . When we need a new component not covered by...

Defining "partials" in pure HTML without additional rendering helpers

Posted Over 4 years ago by Henning Koch.
matthewphillips.info

A while ago I tweeted a thread about how a small JavaScript snippet, one that can fit in a single...

Pattern: Disabling a certain feature in tests

Posted Over 4 years ago by Dominik Schöler.

There is a kind of features in web applications that hinder automated integration tests. Examples include cookie consent banners or...

Can I Email: Check what styling email clients support

Posted Over 4 years ago by Dominik Schöler.
caniemail.com

The french Tilt Studio built a caniuse clone for email clients. Note that while checking styling support helps using (or...

ActiveSupport includes Timecop-like helpers

Posted Over 4 years ago by Arne Hartherz.
api.rubyonrails.org

ActiveSupport (since 4.1) includes test helpers to manipulate time, just like the Timecop gem: To travel a relative amount of...