...doesn't embed most fonts into the PDFs it generates. This means if you share a slide show with a font that is not Arial or Times, other people will...

...everything and creates a big ass PDF full of images. A workaround The only solution is to directly print the PDF to a PDF printer, or take the PDF generated...

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...

When your Rails controller action responds with only a simple text, render text: 'Hello' may not be what you want. You should not even use it on Rails 4.1+ any...

By default, a "text" response from a Rails controller will still be a sent as text/html: render text: 'Hello' response.body # => "Hello" response.content_type # => "text/html" While this may not be...

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...

github.com

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...

rubylearning.com

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...

makandra dev
stdgems.org

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...

makandra dev
javascript.info

...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.

makandra dev
github.com

The rack-contrib gem brings a JSONP middleware that just works™. Whenever a JSON request has a callback parameter, it...

blog.johnnovak.net

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...

speakerdeck.com

Presentation about optimizing Ruby on Rails apps. From Nico Hagenburger (homify's lead frontend developer).

jquery.com

Since jQuery 3 saw it's first release candidate today, the links has a list of (breaking) changes...

github.com

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...

makandra dev
github.com

Install this gem and stop using bundle exec or even Geordi's handy b. Yay...

makandra dev
cssanimation.rocks

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...

makandra dev
github.com

The Bullet gem is designed to help you increase your application's performance by reducing the number of queries it...

techblog.livingsocial.com

Clever hack using data-attributes to assign labels to cells. It's still a massive duplication of code (labels), but better and more lightweight than most solutions I've seen...

...for this surprisingly tricky problem...

github.com

Want to find that repo you've starred some time ago again? Here's where to search for it. An alternative way to browse and search through your starred repos...

...is Astral, where you'll see the Readme for each repo in a split screen...

mjt.me.uk

...because everyone's used to dealing with addresses and 99% of the time they seem so simple. Below are some incorrect assumptions I've seen made, or made myself, or...

gist.github.com

A nice bookmarklet to analyze how many watchers have been registered on the current page. Good for keeping an eye...

nicksda.apotomo.de

It's like Paperclip or CarrierWave, but without any automagic integration.

doubleyourfreelancing.com

How you can unknowingly screw your client's business when all you think about is closing the next user story...

makandra dev
stackoverflow.com

So you erased a whole day's work? There is hope! The linked article tells how to recover from an...