tenderlovemaking.com

The linked article has a great explanation how to to deal with string encodings in Ruby. Furthermore you can check out some of our cards about encoding: Ruby's default...

...encodings can be unexpected How to fix invalid byte sequence in UTF-8 error

github.com

Pour color on your Rails console with awesome_print. Turn confusing long strings into formatted output. Have objects and classes laid out clearly whenever you need it. Put gem 'awesome...

...ap that will give you a colored, formatted output of whatever you pass it. See the example output of the User class below. For customization visit the repository on Github...

stackoverflow.com

When you are working with jQuery selectors and collections, many times you want to know if the collection actually contains the elements you wanted to select. Here's a tiny...

trackduck.com

Service that you can integrate for user feedback. Super-simple integration: Add a...

powazek.com

Apple’s App Store was a constant source of stress in the development process. Every time another story of Apple randomly booting an app from the store came out, the...

...Apple could deny the app, or even keep it in limbo forever, made us second- or third-guess every design decision. “Will this pixel hurt our chances of getting accepted...

blog.hashrocket.com

Testing with real live production data does come with at least one catch. All those real live users in your...

joemaller.com

Web designers must be free to experiment with these new fonts, to sketch, comp and get to know these typefaces in browser and non-browser applications. This is...

dnicolet1.tripod.com

This isn't about commercial software vs. Open Source software. It's about assessing your real needs and understanding the cost-benefit balance before making significant financial decisions. Don't...

jacklmoore.com

Non-static elements will not inherit their parent's opacity in IE for no good reason. This can lead to unexpected behaviour when you want to fade/hide an element and...

To fix it, give the parent element defining the opacity a non-static positioning. For example: .parent { opacity: 0.2; position: relative; /* for IE */ } While the linked article describes...

eregon.me

Bundler 2 introduced various incompatibilites und confusing behavior. To add to the confusion, Bundler's behavior changed after the release...

makandra dev
stackoverflow.com

...Gemfile.lock in your working directory that you cannot remove by either checkout, reset [--hard], stash, probably Rails' Spring is the culprit and not Bundler itself. Fix spring stop

...of the linked Stackoverflow post supposes Spring re-writes the Gemfile.lock on change to ensure all Spring processes are using the same gem versions. Meh...

If you're using the Capybara webdriver, steps sometimes fail because the browser hasn't finished loading the next page yet, or it still has a pending AJAX request. You...

...ll often see workarounds like When I wait for the page to load Then ... Workarounds like this do not work reliably, will result in flickering tests and should be avoided...

github.com

Lightweight Angular JS directive to upload files Includes polyfills for old IEs. Unfortunately, their auto-loading mechanism may not work...

boingboing.net

...buy iApps. Buying an iPad for your kids isn't a means of jump-starting the realization that the world is yours to take apart and reassemble; it's a...

...way of telling your offspring that even changing the batteries is something you have to leave to the professionals...

blog.codeclimate.com

Splitting a long method into sub methods is easier in instances since it is in classes. Since you must not save state in a class, you need...

...a long chain of parameters again and again. If your public API has a single entry point, you can still have a class-level method that takes care of constructing...

gnuu.org

YARD 0.6 adds the ability to serve documentation for gems as well as the current project with yard server. Just like gem server in RubyGems, you can serve gem docs...

...The advantage to YARD’s server is that you don’t need to pre-generate the static docs (with a gem install) before running the server. If you installed your...

stackoverflow.com

...is a method Hash#to_query that will turn a Hash into a query string: >> {:a => "a", :b => ["c", "d", "e"]}.to_query => "a=a&b%5B%5D=c&b...

...a=a&b[]=c&b[]=d&b[]=e" If you're on the browser side, you can serialize nestd objects to query strings using jQuery's $.param...

eagain.net

Quick introduction to git internals for people who are not scared by words like Directed Acyclic Graph. The linked page offers a simple yet concise explanation of how git is...

...a directed acyclic graph with post-it notes'). Each feature is illustrated by a simple diagram, so you get a sound understanding of how each command affects git's structure...

airpair.com

A lot of the advice involves less separations of concerns in your code ("don't use $watch", "don't use isolated scopes"), but it's a nice summary of what...

...the purpose of this article "large" mostly mean "large number of watchers/bindings on a single screen". Angular doesn't automatically become large just because you have a lot of screens...

Fixed bugs where calling valid? would change the record's state...

ignorethecode.net

...probably one of the most dramatic reimaginations of the desktop user interface I’ve seen in a long time. This concept proposes a multitouch interaction system that does not require...

...a multitouch screen (and thus does not have to deal with all the problems such a screen causes), but instead uses a multitouch area near the keyboard...

makandra dev
csstriggers.com

...definitive reference for what work is triggered by changing various CSS properties. It's something I get asked about often enough by developers, and while we can do tests with...

...DevTools, I have both the time and inclination to shortcut that for everyone. I'm nice like that. —Paul Lewis

chargify.com

Chargify handles every aspect of recurring billing for your Web 2.0 or SaaS company so there’s no need to build a custom billing application. In addition to processing one...

makandra dev
plugins.jetbrains.com

...are times when you have a chunk of text that you want to do something with, e.g. replace something on it, or quickly edit it. While you can open your...

...favorite non-RubyMine editor for this, there is also a plugin: Scratch. It allows RubyMine to open temporary files (actually they are saved, but somewhere inside the plugin's directory...