Git diffs show the surrounding contexts for diff hunks. It does so by applying regular expressions to find the beginning...
Here is a short summary of Cucumber hooks in Ruby taken from https://github.com/cucumber/cucumber-ruby. Note that the BeforeStep is...
There is a common view that extracting text from a PDF document should not be too difficult. After all, the...
Good reference how to build bootstrap forms with simple_form.
After a recent Ubuntu update I didn't see the main menu bar of the RubyMine IDE (File | Edit | View...
CSP hat zum Ziel einen Browser-seitigen Mechanismus zu schaffen um einige Angriffe auf Webseiten zu verhindern, hauptsächlich XSS...
Nokogiri is great. It will even fix invalid HTML for you, like a browser would (e.g. move block elements out...
# Basic HTML example # Javascript API (notable methods and properties) video = document.querySelector('video') video.play() video.pause() video.load() // Reset to the beginning and...
RubyMine has a HTTP Client that can be useful to test web APIs. Just create a .http scratch file an...
Select2 comes with AJAX support built in, using jQuery's AJAX methods. ... For remote data sources only, Select2 does not...
Speaker today is Henning Koch, Head of Development at makandra. This talk will be in German with English slides.
Simplecov is a code coverage tool. This helps you to find out which parts of your application are not tested...
When we write a form with date fields, we often use graphical data picker like Rome to get a consistent...
Turns out, Cucumber::MultilineArgument::DataTable#diff! caches some stuff. Code of the following form will not work as intended:
By default, Devise redirects to a sign-in form when accessing a route that requires authentication. If for some reason...
If you need to test some HTML, e.g. an embed code, you can use RubyMine's "scratch files":
Or: How to avoid and refactor spaghetti code Please note that I tried to keep the examples small. The effects...
This is a personal post-mortem analysis of a project that was mainly build to provide a REST API to...
Browsers come with a set of built-in elements like or . When we need a new component not covered by...
A while ago I tweeted a thread about how a small JavaScript snippet, one that can fit in a single...
There is a kind of features in web applications that hinder automated integration tests. Examples include cookie consent banners or...
The french Tilt Studio built a caniuse clone for email clients. Note that while checking styling support helps using (or...
ActiveSupport (since 4.1) includes test helpers to manipulate time, just like the Timecop gem: To travel a relative amount of...