Use form models to handle this problem Or soften the validation to validates_presence_of :parent
tig is a command line explorer for Git that is just awesome. Install via apt-get or brew. Handy commands...
The easiest way to freeze or travel through time in a Jasmine spec is to use the built-in jasmine.clock...
The team is responsible for building great software—that’s it. It’s the only thing the team is responsible...
If you see a stacktrace beginning with lines like this: E, [2015-07-16T09:23:10.896146 #23308] ERROR -- : app...
Large projects usually have large test suites that can run for a long time. This can be annoying as running...
Disabling auto-complete in login forms is probably a bad idea, since it encourages weak passwords. If you are still...
Today I ran into this: Invalid gemspec in [/usr/local/rvm/gems/ruby-1.9.3-p194/specifications/ZenTest-4.9.3.gemspec]: Illformed requirement ["< 2.1, >= 1.8"]. You need a newer Rubygems version. Try...
Small web application where you can upload an image (PNG, JPEG, GIF) and generate a base64-encoded version of it...
Since version 2.6 exception notifier distinguishes between foreground and background sections. The reason is that with background jobs (e.g. methods...
Note: Making a reverse proxy with nginx is much more straightforward. A reverse proxy is a "man in the middle...
sslscan is a nice tool to show details about TLS/SSL connections: ~> sslscan some-host-at.makandra.de Testing SSL server some-host-at.makandra.de on port 443...
Capistrano 3 is a major rework of the framework and requires several adjustments to your deploy configuration files. The biggest...
Datetime picker that offers: simple UI without a specific framework several of customization options allows custom date/time validations Localization happens...
TL;DR Under certain circumstances, dynamically defined symbols may break keyword arguments in Ruby 2.2. This was fixed in Ruby...
Fontawesome 4 has introduced new naming conventions that make it easy to retrieve variants of a given icon.
When using threads, you must make your code thread-safe. This can be done by either locking (mutexes) all data...
There are some frontends available, but they all suck, are no longer maintained or are hard to install.
Please don't simply copy line number links from Github. The URL usually contains a branch name like master which...
See this Railscast. Basically you can simply write views like index.xlsx.erb: ID Name Release Date Price <% @products.each do |product| %> <%= product.id...
When you want to look up a class for a given factory, do it like this: >> FactoryBot.factories.find('admin').build_class...
An official Github repo by Google containing the binary font files served through Google Fonts, so you can easily download...
An online markdown live previewer with GitHub Flavoured Markdown support. Another online markdown live previewer with GitHub Flavoured Markdown support...
jQuery doesn't store information about event listeners and data values with the element itself. This information is instead stored...