...caused by the random order of hash elements of the params hash. class Feedback belongs_to :user def role=(value) @role = value self.email = find_email_by_name(user.name) end
...work on a large application where a lot of code depends on the indeterministic behavior above, and it would be too much work to refactor the whole app for a...
jQuery's removeClass removes the given class string from an element collection. If you want to remove multiple/unknown classes matching...
...MKV container, H.264 codec, "0" constant rate factor and "veryslow" preset results in the best video quality. Peek Note The original peek project has been deprecated. If you are experiencing...
...feature-set to the original peek. If you don't insist on high the best video and you don't need audio recording, you could also use Peek, which is...
...JSON generation from a large, nested Ruby hash down from 200ms to 2ms. Its behavior differs from the default JSON.dump or to_json behavior in that it serializes Ruby symbols...
There are different ways to run rake: On Rails 4.1+ projects, you have Spring and its binstubs which dramatically improve...
When terragrunt is relaying information to input variables it's happening via environment variables. Depending on the size of the...
...session using the database. This could be the rails server, rubymine and many more. Beside terminating the session connection manually you can also find out the pid and kill the...
This is a bookmarklet you can add to Chrome or Firefox which will allow you to create a story in...
There was an issue with makandra_sidekiq < 0.2 concerning the stopping of Sidekiq. Sidekiq < 6 has two finishing timeouts: one...
To parse XML-documents, I recommend the gem nokogiri. A few hints: xml = Nokogiri::XML(" foo bar ") parses an xml...
...you usually group tasks by their domain/scope. An example crontab might look like this: # Begin Whenever generated tasks for: project100 MAILTO="log@example.com" MAILFROM="cron@example.com" # When server is booting up, ensure...
While the hardware mute button of my Lenovo x230 worked on Ubuntu 14.04 out of the box, it does not...
Some older Node modules rely on window.jQuery to be present. One suggested solution is to use this config in the...
SudoSlider is a simple yet powerful content slider that makes no (or very few) assumptions about your markup and is...
When working with large Sass files you will notice that the first request after a change to a Sass file...
For two years we've been using SearchableTrait which gives models the ability to process Googlesque queries like this: Contact.search...
OAuth requires a set of params to be carried along requests, among which a nonce. Some libraries pass these along...
In Thunderbird, you can set custom font faces and sizes for reading plain-text e-mails. However, Thunderbird sometimes "randomly...
If others on a call (Skype, SIP, ...) can not hear you loud enough, your volume levels are probably too low...
During debugging you might pepper your code with lines like these: console.log('foo = ' + foo + ', bar = ' + bar) I recommend to use...
When such a virtual attribute should contain Date values you might get unexpected behavior with forms, because every param is a string and you don't get the magic...
If you want to expand your Areca Raid by swapping out the disks for larger ones you will need to...
The Angular 1.2 way: # By default, angular returns undefined for invalid attributes which removes # the value from the form field...
...specifying the controller as 'user/...' would make Rails expect views in view/user/... (singular) The better approache might be to use a module. See this card on how to namespace with...