So you client has asked you to implement a row of buttons to like the URL on Facebook, Twitter and...

So you're switching to PostgreSQL from MySQL? Here is some help... General hints on PostgreSQL \? opens the command overview...

apidock.com

When you're writing migrations that do more than changing tables (like, modify many records) you may want some output...

In Rails 5 you can say: ApplicationController.render( :template => 'users/index', :layout => 'my_layout', :assigns => { users: @users } ) If a Request Environment is...

You can use xmllint to pretty-print ugly XML files on your terminal. Just say: xmllint --format file.xml

coding.smashingmagazine.com

Smashing Magazine lists some handy tricks for print style sheets, all with CSS: Expand External Links For Print

Here is a hacky way to load dumps directly from the source server, without fully copying them over and extracting...

makandra dev
blog.mozilla.org

Prepare to explain customers what changed if your application renders PDF documents to users.

Go to Settings Manager / Keyboard / Application Shortcuts Add a shortcut for the Print key that calls xfce4-screenshooter -f

There is no reason to leave trailing whitespace characters in your project's files, so don't add any.

Given you store files on Amazon S3 and you need to stream those files out to people while you don...

A print stylesheet is easy to create. Choose a font suited for paper, hide some elements, done. Unfortunately print stylesheets...

LibreOffice Impress, Writer, etc. doesn't embed most fonts into the PDFs it generates. This means if you share a...

Localizing a non-trivial application can be a huge undertaking. This card will give you an overview over the many...

Embedding bitmap images within PDF sometimes results in large files because the bitmaps are not compressed. If you don't...

By default, Google Analytics tracks the current URL for every request. Sometimes you will want to track another URL instead...

weblog.jamisbuck.org

How to get a backtrace from a running Ruby process: Ruby 2.6 # First, find out the PID of your Ruby...

robots.thoughtbot.com

TL;DR {} binds stronger than do … end (as always in Ruby, special characters bind stronger than words) Demo

github.com

Pour color on your Rails console with awesome_print. Turn confusing long strings into formatted output. Have objects and classes...

makandra dev

I have no idea how it's supposed to work (or why the don't have a print CSS), but...

When you print out a HTML pages, all raster images (like PNGs) will appear aliased. This is because a printer...

github.com

ExpandAnimations is a LibreOffice/OpenOffice.org Impress extension to expand presentation animations before exporting to PDF. This way the exported PDF will...

web.archive.org

Single step and slow motion for Cucumber scenarios can come in handy, especially in @javascript scenarios. # features/support/examiners.rb AfterStep('@slow_motion...

commandlinefu.com

The colors in Rails log files are helpful when watching them but, since they are ANSI color codes like ^[[4...