When you do a git add . and have deleted files, git won’t stage them to be commited (as deleted...

progfu.com

...you need to do is prefix every command with zeus. That means rails server becomes zeus server, rails console becomes zeus console, and so on. From the Github page:

You have multiple options: Just don't have a type column. All STI magic will be disabled automatically.

Copy the attached Ruby code to config/initializers, or paste it into your IRB console. You can now dump any two...

I prefer the application that I'm currently working on to be reachable at http://localhost/. So when I switch...

docs.angularjs.org

...to move the track by instructions to the very end of your statement, i.e. behind any filters. Broken Consider the following: ng-repeat="child in category.children track by child.name | orderBy...

...you were working last or you need to check all traits for mistakes. This behavior is likely to be caused by Rails' autoloading...

If you need to find all files inside a directory that were modified in the last 24 hours you can...

If you get this: Installing typhoeus (0.3.3) with native extensions /usr/local/lib/site_ruby/1.8/rubygems/installer.rb:483:in `build_extensions': ERROR: Failed to build gem...

makandra dev

When you delete a file with rm it's still possible to recover the file or parts of it. Use...

If you have several submit elements (inputs or buttons with type="submit") that each cause different things to happen (e.g...

When testing Ruby code that prints something to the terminal, you can test that output. Since RSpec 3.0 there is...

A haml angular 1 template with .thing(class="is-{{:: item.type }}") will be compiled (by haml) to which is not what...

stackoverflow.com

In the tab where you need it, open Chrome DevTools with F12, open settings with F1, scroll down to the...

...gems Bundler needs to be able to talk to https://api.rubygems.org. If you are behind a proxy you can use the https_proxy environment variable: https_proxy=http://myproxy...

developers.google.com

The attached article outlines considerations when choosing client-side vs. server-side implementations of the Google Geocoding APIs (geocoder, directions...

Below you can find the hex color codes for the Color Graphics Adapter palette which used to be popular in...

Tooltips that are delivered through HTML attributes are encoded. Decode entities before checking for their presence. Capybara: Then /^there should...

Once Rails knows a given string is html_safe, it will never escape it. However, there may be times when...

makandra dev

has_defaults is now a gem, no longer a plugin. The plugin version no longer exists. Note that plugins are...

...is wrong -- but break (send the outer form) when you submit. If your application behaves normal at first but removes forms from the DOM when you Ajax around, this could...

stackoverflow.com

...service takes care of renaming log files each night or so to avoid logs becoming huge. That will rename your.log to your.log.1, the next time to your.log.2.gz, etc. Here...

Unicorn allows you to specify the maximum number of workers. In development this could be useful if you use a...

class Book::Page end class MyBook < Book def new_page Page.new # has to be `Book::Page` in development to...