19 May 2013

The Ruby Reflector

Topic

Scalable Vector Graphics

  Source Favicon
By miraculous1 of mir.aculo.us 19 days ago.
Email

…version of Raphael.js to generate SVG, and this gets the job done nicely ( SVG works on practically every modern browser, and Raphael falls back to VML on older Internet Explorer versions). Of course, you could use Canvas or any other HTML supported by WebKit just as well.

This is all great in your web browser, but not for emails. First off, obviously, JavaScript

is disabled in HTML emails, so we can't use that to generate the SVG on the fly; moreover

SVG only …

mir.aculo.us Read
  Source Favicon
By Scott Becker of Synthesis 10 months ago.
Email

…I'll go over a big component of D3 and other javascript visualization tools - SVG or Scalable Vector Graphics.

Scalable Vector Graphics

SVG is an XML based, 2 dimensional open-standard that's been around since 1999. Since SVG graphics are vector based, they can be zoomed or scaled to any resolution without quality loss.

What can you do with it? SVG has a lot of functionality : paths, basic shapes, vertical text, text on a curve, gradient fills, masks, …

synthesis.sbecker.net Read
  Source Favicon
By Lee of Lee Munroe 1 month ago.
Email

…lazy), so I'll typically have an @2x sprite that I resize for all users. I'll also try to save highly compressed images in large dimensions for web so they look good when resized in the browser.

Some other, more obvious, techniques that I haven't mentioned above are making good use of CSS, @ font-face, icon fonts and SVG, instead of relying on bitmap images.

Have you any other advice designing for high-resolution?

leemunroe.com Read
  Source Favicon
By miraculous1 of mir.aculo.us 8 months ago.
Email

Just design "retina-first", use SVG and modern CSS whenever possible and for bitmapped images, go high-resolution and let the browser scale down. Make exceptions when you have to.

Like this little tip? This is an excerpt from my ebook Retinafy your web sites & apps . Grab your copy now and have your web sites and apps retinafied in no time—avoid pitfalls like JavaScript libraries that do more damage than good and learn all the other tricks!

mir.aculo.us Read
  Source Favicon
By Mike Gunderloy of A Fresh Cup 8 months ago.
Email

Surveying a landscape of too many things to do and not enough time to do them in. Business as usual.

Unicon, SASSified - Use SASS and a bunch of JavaScript to serve HD images with fallback to PNG, given a folder full of SVG files.

Zeus - Rails app preloader for faster use of server and console, among other things.

Pogoapp - New app hosting service (now in beta) with buildpack compatibility.

Registration Dates & Competition Details - For the upcoming Rails Rumble.

afreshcup.com Read
  Source Favicon
Email

SVG : the vector graphic format of the web. Ideal for icons, logos, and simple graphics. SVG works best with a PNG fallback for older browsers.

Icon fonts : consists in serving resolution-independent icons using @ font-face with a custom web font. The lack of pixel-level control and editability are easily made up for with more flexibility and ease of use.

Live Examples

Following the suggestion of some readers, I put together a live examples page showcasing most of the …

robots.thoughtbot.com Read
  Source Favicon
By Scott Becker of Synthesis 10 months ago.
Email

In Learning D3 Part 5 , I waxed poetic about D3′s functions for drawing axis lines and labels. This time I'll talk about scales. Here's a pretty graph to go with it. This is similar to the earlier examples, but now drawn with SVG, using axes and scales. Ooh la la.

What are scales?

According to the ol' wikipedia, a scale is "a graduated range of values forming a standard system for measuring or grading something". In D3 though, scales are functions. "Functions that map from an input domain to an output range".

synthesis.sbecker.net Read
  Source Favicon
By Scott Becker of Synthesis 10 months ago.
Email

…D3 Part 4 , I briefly introduced SVG, the differences between SVG and Canvas, and drew a chart grid to illustrate how SVG's canvas goes from top/left to bottom/right.

D3 has a nice axis component for drawing reference lines, tick marks, and labels, which cleans up some of the code from the previous example. Here's another good tutorial on it. Here's the previous example, now drawn using d3.axis.

This example also contains tick marks as part …

synthesis.sbecker.net Read
  Source Favicon
By Assaf of Labnotes 10 months ago.
Email

…library . All the power of D3, Crossfilter and SVG but with a simple API.

Charts rendered using dc.js are naturally data driven and reactive therefore providing instant feedback on user's interaction. The main objective of this project is to provide an easy yet powerful javascript library which can be utilized to perform data visualization and analysis in browser.

{00..99} Bash One-Liners Explained, Part II: Working with strings .

Acceptance An InfoQ

blog.labnotes.org Read
  Source Favicon
On ZURB 10 months ago.
Email

SVG FTW

SVG images are a powerful but ill-understood image format. Browsers have pretty shaky support for them, and it doesn't help that there are several different formats for SVG. That's why we thought it was great that Adam built these as SVGs, and took the time to ensure they worked correctly with fallbacks to PNG for older browsers.

We asked Adam why he went ahead with SVG despite the challenges, and he answered: SVGs are really great for vector work, which …

zurb.com Read