19 April 2014

The Ruby Reflector

Topic

Processing

  Source Favicon
By Giles Bowkett of Giles Bowkett 1 month ago.
Email

…screenshots of generative art made in Clojure with Quil, which is essentially Processing.)

The drummer's platform is actually a turntable with a very slow rotation speed; something like one rotation per hour. This enables the drummer/ DJ to see all of the crowd around them, rather than just the people in the "front row." (Since this design sits at the center of a room, rather than one end, there isn't a front row, more a set of concentric rings.)

Audience participation …

gilesbowkett.blogspot.com Read
  Source Favicon
By Kurtz of Viget.com Blogs 1 month ago.
Email

URL to Tempfile: Remote File Processing

We have a service that takes a URL and processes the file it represents using a Java command-line utility. Our command-line utility expects a filepath argument, so we must create a local file from the remote resource before processing. class LocalResource attr_reader :uri def initialize (uri) @uri = uri end def file @ file ||= Tempfile .new(tmp_filename, tmp_folder, encoding: encoding).tap do |f| io.rewind f.write(io.read) …

viget.com Read
  Source Favicon
By Guest Post of New Relic 1 month ago.
Email

…The load time is split into Web Application, Network, DOM Processing and Page Rendering metrics, describing how long the page is taking to access, download and render.

The report showed that average page load times were around 8.5 seconds, way above Akamai's recommended limit of 2 seconds. Also, the time spent on the application and network was negligible. This meant that any optimization efforts we undertook were better focused on improving DOM processing and page rendering. …

newrelic.com Read
  Source Favicon
By Giles Bowkett of Giles Bowkett 4 months ago.
Email

…"cyberpunk" part, forget about "the movies." Abstract motion-graphics coded in Processing and posted on Vimeo, that's "cyberpunk." You don't wanna make movies that are about guys with computers. You want to use digital composition to seize control of the means of producing cinema. And then do it all yourself! That's "punk." Hollywood product is commerce, it's about fanboy culture.

While it's certainly very likely that …

gilesbowkett.blogspot.com Read
  Source Favicon
By Daniel Bernier of Invisible Blocks 4 months ago.
Email

But then, from another part of my brain, I drew the circles at half-size, forgetting that Processing's ellipse method takes width and height parameters, not a radius. So the circles were packed less densely, and I wasn't clever enough to see why. I hacked it, and decided to count it as an overlap when the distance is bigger than the radius of the bigger circle. (Shrug. Hack.) It worked. And it looked cool.

Eventually I figured out my bug, and fixed it, but then the circles were too …

invisibleblocks.wordpress.com Read
  Source Favicon
By Nate Hunzaker of Viget.com Blogs 8 months ago.
Email

Break out Data Processing

Now that construction of the markup has been tucked away into a template, we can focus building the data layer for our News object. In this step, we'll pull all data handling into a Backbone.Model and Backbone.Collection; hooking into the events Backbone provides to support the existing functionality. var NewsModel = Backbone.Model.extend({ urlRoot: '/my/api/news' });

var NewsCollection = Backbone.Collection.extend({ model: NewsModel, …

viget.com Read
  Source Favicon
Email

…select_ranges, select_order_ranges, select_distinct_ranges, select_sum_ranges, point select. Processing these queries will involve notable amount of malloc()/free() operations, so allocator efficiency is the key factor to achieve high throughput in this test.

Observations:

4 vcpu - results are almost identical for all allocators (~2500tps)

8 vcpu - results doubled (~5000tps) for jemalloc and tcmalloc , but with glibc malloc we have a drop at 64/128 threads to ~3500tps

16vcpu - increase …

mysqlperformanceblog.com Read
  Source Favicon
On Alex R. Young over 1 year ago.
Email

…than writing C, and more accessible than typical electronics projects. The creators shrewdly reused Processing as the Arduino IDE.

Perhaps inspired by the Arduino maker movement, early concepts of the Raspberry Pi were built on the Atmel ATmega644 microcontroller. One of my early programmer heroes was David Braben , who was one of the founders of the Raspberry Pi Foundation . This charity was founded in 2009 to promote the study of computer science in …

alexyoung.org Read
  Source Favicon
By Daniel Bernier of Invisible Blocks over 1 year ago.
Email

So what's a Processing goof-off going to do? Tear them apart, and put them back together. I don't know whether the asymmetrical version is right, or whether it's backwards, but I don't think it really matters, unless you know the person in the photo. Click ‘em for big versions.

Here's the code I used to de-symmetry them. Note the mouse controls: I had to tweak some of them, especially that second one of the blond short-haired guy.

// 36_Wolkenstein_12.jpg String[] …

invisibleblocks.wordpress.com Read
  Source Favicon
Email

…countdown_event_name.js.erb var max = <%= Event::NAME_MAX_LENGTH %>

Appending .js.erb to the filename initiates asset pipeline preprocessing . Processing occurs in order, right-to-left, so make sure to keep things in order. For example, .js.coffee.erb is processed as ERB first, then processed as CoffeeScript, then served as a JavaScript file for the browser to interpret.

robots.thoughtbot.com Read