Thursday, January 28, 2016

How to Make Your Users Enjoy Waiting

Waiting is typically an enormously displeasurable activity: It’s unproductive, boring, and even tense. And so, if you ask users to wait, many of them will refuse. According to a study by Forrester Research, almost half of consumers expect a site to load in two seconds—and if it takes longer than three, 40% leave. So, should […]

Continue reading %How to Make Your Users Enjoy Waiting%


by Aja Frost via SitePoint

Hackable PDF Typesetting in Ruby with Prawn

Installing Prawn

If you're running a Rails operation, LaTeX isn't the most convenient approach for generating documents. There are some gems available, but it's really nice when the logic and the presentation are in the same language. That's what Prawn supplies.

First, we need to install the Prawn gem:

gem install prawn

We can verify that Prawn is working with the following test:

require "prawn"

Prawn::Document.generate("hello.pdf") do
  text "Hello World!"
end

Making Text

Most of Prawn's commands are fairly minimalistic and what you would expect:

require "prawn"

Prawn::Document.generate("styling_text.pdf") do
  text "Default text styling"
  text "Blue 16pt Helvetica", size: 16, font: "Helvetica", color: "0000FF"
  text "Aligned Center", align: :center

  font_size 12
  font "Courier" do
    text "Size 12 Courier"
    font_size 10 do
      text "Slightly smaller Courier"
    end
  end
  text "Default font size 12"

  font "Helvetica"
  3.times do |i|
    text "Helvetica with leading 10 line #{i}", leading: 10
  end
end

Continue reading %Hackable PDF Typesetting in Ruby with Prawn%


by Robert Qualls via SitePoint

Build Your Own App from Scratch with This $39 Course for Beginners

Build your own app from scratch with this $39 course for beginners

Got an app idea…and not much else? No problem—the Full Stack iOS 9 School will take you from idea to finished product, no experience required. Get it for $39 at SitePoint Shop.

Get 16 online classes, 100 videos, and 30 hours of content that teach you how to turn an idea into a real app. You'll get hands-on experience in everything from prototyping in Xocde to Swift 2 programming as you build 10 real apps for practice—and for your portfolio. You'll complete the work at your own pace and even get access to a forum to get your questions answered as they come up.

Make that app idea happen. Get the Full Stack iOS 9 School for $39, a savings of 80%.

Continue reading %Build Your Own App from Scratch with This $39 Course for Beginners%


by SitePoint Offers via SitePoint

20 Useful WordPress Forms Available on CodeCanyon

How to Make WooCommerce Product Attributes More Prominent

Create a Custom Shipping Method in OpenCart: Part Two

Facebook Professional Services: How Your Local Business Can Rank

kh-facebook-professional-services-560

Do you have a local business page on Facebook? Want to reach more local customers? Facebook recently launched Professional Services, a directory that helps consumers find the best local businesses and services to fit their needs. In this article I’ll share how to use the Facebook Professional Services feature to boost visibility with local customers. [...]

This post Facebook Professional Services: How Your Local Business Can Rank first appeared on .
- Your Guide to the Social Media Jungle


by Kristi Hines via