makandra dev

Git has two kind of tags: annotated lightweight Annotated tags are stored as full objects in the Git database. They...

When you get an error like this: Invalid gemspec in [/opt/www/foo-project.makandra.de/shared/bundle/ruby/1.8/specifications/carrierwave-0.6.2.gemspec]: Illformed requirement ["# 1.1.4"] ... the machine's Rubygems needs to...

Consider this HTML: Even though the surrounding container defines a line-height, which vertically centers its inline elements, the check...

Running Cucumber tests while your cucumber.yml is 100% valid may still produce the following error. cucumber.yml was found, but could...

makandra dev
blog.idrsolutions.com

If you have issues with PDFs, fix them like this: pdftk .pdf output .pdf Background I had an issue where...

You probably already manage servers you often connect to inside the ~/.ssh/config file. What is nice: you may define alias...

...link_tag 'screen', :media => 'screen' %> These would be your two screen Sasses: # screen_with_pie.sass =pie behavior: url(/stylesheets/lib/PIE.htc) position: relative @import base.sass # screen.sass =pie // No pie for you @import base.sass

makandra dev
dev.mensfeld.pl

Ruby 2.3.0 has been around since end of 2015. It brings some pretty nice new features! Make sure to read...

...searched for executables, CDPATH contains the list of directories that are available for cd. Besides the current directory (.), you can add others to that. The trick is to add a...

...directory, always use a prefix for your bookmarks. @ works well. This has also has benefits for the usage with autocompletion. Example usage: >cd Projects/makandra-cards/ ./Projects/makandra-cards/ >mark @cards >cd ~ >pwd

...complain about calling nil.name or nil.macro while it tries to process the association list. Best practice Make sure to do it this way: params.to_hash.symbolize_keys.merge(:include => { :user => :avatar }) (Note that params.to...

makandra dev

Copy and paste at will, they're free! German quotation marks: „ “ (Ubuntu-Hotkey: AltGr+v and AltGr+b) English quotation...

makandra dev

...For this reason it is recommended to use a dev server during development. This behavior can be disabled by the compile: true setting in config/webpacker.yml. Note that this can also...

If you are using Angular and want something like Rails' simple_format which HTML-formats a plain-text input into...

...Add development to existing environments in the Raven.configure block: config.environments = ['development', 'staging', 'production']. Remove better_errors from Gemfile if existing and bundle. With Raven.capture_message('Test from development') you can...

github.com

When using the json gem, you might run into this error when using JSON.parse: >> json = 'foo'.to_json >> JSON.parse(json...

TLDR: When you put CSS rules into a partial and import that partial multiple times, the CSS rules will be...

With defaults, RCov doesn't work the way you how you would like it to. To create a nice test...

Some modern Javascript APIs return iterators instead of arrays. In plain Javascript you can loop through an iterator using

jasmine.github.io

...that you can use to travel through time and trigger setTimeout and setInterval callbacks: beforeEach(function() { timerCallback = jasmine.createSpy("timerCallback"); jasmine.clock().install(); }); afterEach(function() { jasmine.clock().uninstall(); }); it("causes a timeout to...

agileweboperations.com

User Stories should describe what a user wants the system to do. Purely technical tasks should usually be implemented as...

For some years Google Chrome has allowed you to add desktop icon for any web page by going to Tools...

Note: ActiveRecord::Base#becomes has a lot of quirks and inconsistent behavior. You probably want to use ActiveType.cast instead. This issue will be encountered when relying on attribute_was methods...

...model, for example. In my case a record with an assignable_values legacy value became invalid when it should not. The initializer in the attached file will fix this issue...

Normally you can list all gems of the current ruby version with gem list, which also includes the gems of...

dev.to

...the tree structure, but just replicate all the needed data into the database, the best option is to use SAX parser. When you read very large XML files Nokogiri may...