...multiply a BigDecimal with another BigDecimal, the result will be a new BigDecimal with sufficient precision to represent the result. No rounding or clipping should occur in that operation.
...means you just transitioned back into the land of random rounding errors. Don't screw up your clean BigDecimal values by thoughtlessly multiplying them with a Float. For instance, this...
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...
In case you're wondering, when concat-ing server certificate and intermediate certificates, the server certificate comes first. RFC 4346: certificate_list This is a sequence (chain) of X.509v3 certificates...
certificate must come first in the list. Each following certificate must directly certify the one preceding it...
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...
...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...
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...
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
...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 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...
...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...
Ruby's net/http is setup to never verify SSL certificates by default. Most ruby libraries do the same. That means that you're not verifying the identity of the server...
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...
Bundler 2 introduced various incompatibilites und confusing behavior. To add to the confusion, Bundler's behavior changed after the release...
This article will show you how to use throw and catch. It's a nice tool to break out of multiple loops when a result is obtained.
...card Ruby: A small summary of what return, break and next means for blocks...
Ruby's standard library is in the process of being gemified. It will soon - Ruby 2.5 - consist of RubyGems, which can be updated independently from Ruby. This might mean smoother...
...Ruby upgrades in the future. If breaking API changes happen in standard gems, we can update these before upgrading Ruby...
...should be familiar with coordinates. Most JavaScript methods deal with one of two coordinate systems: Relative to the window(or another viewport) top/left. Relative to the document top/left.
The rack-contrib gem brings a JSONP middleware that just works™. Whenever a JSON request has a callback parameter, it...
Good article about what "gamma correction" means for color processing, and what "sRGB" actually means. You probably do not need to know this for web development, but it's an...
Presentation about optimizing Ruby on Rails apps. From Nico Hagenburger (homify's lead frontend developer).
Since jQuery 3 saw it's first release candidate today, the links has a list of (breaking) changes...
Uses FFI and works all relevant operating systems. If you'd try to do it yourself, you'd have to use FFI which is a bit awkward (see the gem...
...s code), or call commands like df -B1 and search the strings for your relevant data. That gem takes the pain away and works nicely...
Install this gem and stop using bundle exec or even Geordi's handy b. Yay...
Using the CSS border-radius property, we can create rounded shapes and circles. Add some gradients and they become spheres. Let’s try that, and add some animation to bring...