Amazon Elastic Transcoder is video transcoding in the cloud. It is designed to be a highly scalable, easy to use...
This can happen with a very simple model: class Note has_many :attachments end Everything looks normal: Note.all.to_a.size # => 8 Note.all.ids.size...
Directly from the MySql docs: There are three likely causes for this error message. Usually it indicates network connectivity trouble...
When you use the :as option to map a power to a controller method you can now override the generated...
Sometimes you need complex expectations on method arguments like this SomeApi.should_receive(:find).with(:query => '*foo*', :sort => 'timestamp ASC', :limit...
...your session in a previous request. Working around the issue You can avoid that behavior by stubbing the controller's session and querying that stub: persisted_session = ActionController::TestSession.new controller.stub...
...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...
...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...