...them over a Samba share onto your machine. From inside your Rails project directory call regularly: geordi remove-executable-flags Runs chmod -x on Ruby, HTML, CSS, image, Rake and...

...run multiple commands. In order to have all processing done in one mogrify system call, you'll need to define only one process that combines all options you'd like...

...the full path to you database dump like this: load-dump path/to/my.dump When you call load-dump without any arguments it will show a menu with all dumps in your...

...bundle exec if there is a Gemfile in the working directory, and run the call without Bundler otherwise. b spec spec This script is part of our geordi gem on...

Make sure you call the methods in the following order and not vice versa: has_attached_file :image validates_attachment_presence :image Validation with condition works fine, too: validates_attachment...

When we inspected the process using strace we saw a blocking select system call. You can get backtraces for each thread by sending the TTIN signal to the Sidekiq...

...not want to run them every time. In order to skip all Selenium scenarios, call Cucumber like this: cucumber --tags ~@javascript Note that you should still run all the scenarios...

...queries. If you want to discard the cached results for one model, you can call MyModel.connection.clear_query_cache...

...object appears in the scope). Angular's $watch returns a method that you can call to remove that watch. For example: unwatch = $scope.$watch 'user', (user) -> if user?

...# do something...

When you are calling Bundler from your shell scripts, you might find it useful that a failed bundle call returns a different error code depending on the type of problem...

alanklement.blogspot.de

...way to use the jobs to be done philosophy to help define features. I call them Job Stories...

If you need to call a state_machine event and do not want to re-define resource_controller's create method, try this: create.before do object.state_event = :launch_spaceship

makandra dev
github.com

...the new TracePoint API for execution control and the new Debug Inspector API for call stack navigation, so it doesn't depend on internal core sources. It's developed as...

How to define and call class methods in CoffeeScript classes: class Foo @classMethod: -> @otherClassMethod() instanceMethod: -> @otherInstanceMethod() @constructor.classMethod...

makandra dev
ablogaboutcode.com

...the lambda? status of the object. if object is not a Proc, it first calls #to_proc on the object and then converts it into a block...

...to Settings Manager / Keyboard / Application Shortcuts Add a shortcut for the Print key that calls xfce4-screenshooter -f This may be configured for you by default...

github.com

year 1951 end trait :moody do title 'Interstellar' end end You can now call them from Cucumber Factory like this: Given there is a movie (vintage, moody...

guides.rubyonrails.org

When your Rails controller calls render, you can pass a :status option for the HTTP status code: render 'results', status: 400 All important status codes also have a symbol alias...

stackoverflow.com

TL;DR You shouldn't call $scope.$apply() or $scope.$digest() inside a function that can be invoked by Angular – e.g. in an ngClick. The linked Stackoverflow answer has a...

...care of this automatically. They do this by wrapping all assertions into a helper called patiently do, like this: Then /^I should see "([^\"]*)" in the HTML$/ do |text| patiently do...

...fetched body from the page, then body is removed from the DOM. The patiently call will then always fail since we never re-fetch a fresh body. Prevent stray javascript...

support.skype.com

...emoticons are some of the most expressive and useful ones. Hidden codes (skype) (ss) (call) (talk) (u) (U) (o) (O) (time) (e) (m) (~) (film) (movie) (mp) (ph) (drunk) (punch)

github.com

...to use FFI which is a bit awkward (see the gem's code), or call commands like df -B1 and search the strings for your relevant data. That gem takes...

azimi.me

Interesting hack to move expensive JSON.parse calls out of the main thread...

relishapp.com

To only stub a method call if a given argument is used, but use the default implementation for other arguments: object.should_receive(:some_method).and_call_original object.should_receive(:some...