March 20, 2010

Looking

I haven't been able to get to the studio for the past two weeks. I've been using my old Nikon with b&w film to fill in the gaps. This is what I've been looking at lately, pothole/wall fills and attempts at covering up graffiti.

March 19, 2010

Room to Work

I was just thinking about how nice it would be to have a Textmate command that could help you isolate the block of code you're working on.

Here's the  idea, when you're working in a big, messy file you could:

  1. highlight a block of code
  2. press a key combination
  3. Textmate grabs that selected block
  4. opens a new file and sets it to the current language
  5. pastes in the block of code
  6. make all of your edits
  7. press the same key combo
  8. Textmate cuts the edited code
  9. closes the temp document
  10. replaces the original block of code with the updated version

That sounds like it would be pretty handy. When I get some time I'll try to create such a thing. Plus, I need to rework my css property arranger. Some friends (and I) have found glitches.

March 11, 2010

Number D59

Ralph's has really good macaroni.

March 5, 2010

Using jQuery's queue(), dequeue() and delay() Methods

These methods were very confusing to me so I decided to do some demystification and see what the hell was going on. jQuery's documentation sets them up as methods related to the effects api. By default this is true, but I found this little misleading.

queue() / dequeue(), in short, allows you to create a queue of functions to be executed on the matched element(s) and then execute them in order.

delay() allows you to create a delay between functions in the queue.

None of the functions are run until the dequeue() method is run. This could be a click event, for instance.

Take for instance the following code:

$(document).ready(function () {
  // cache the body element
  var body = $('body');

  /*
      Create a "bodyQueue" queue for the body element and add a function into it. After this function runs it will delay the "bodyQueue" queue by 5 seconds. None of the functions are run until an event triggers the dequeue() method. This event is defined at the end using a click on the body.
    */
  body
    .queue('bodyQueue', function () {
      console.log('1st function. Next one is delayed by 5 seconds');
      $(this).dequeue('bodyQueue');
    })
    .delay(5000, 'bodyQueue');

  // Add another
  body.queue('bodyQueue', function () {
    console.log('2nd function (delayed 5 seconds)');
    $(this).dequeue('bodyQueue');
  });

  // Add another
  body.queue('bodyQueue', function () {
    console.log('3rd function');
    $(this).dequeue('bodyQueue');
  });

  // Add another
  body.queue('bodyQueue', function () {
    console.log('4th function');
    $(this).dequeue('bodyQueue');
  });

  // Add another and delay the "bodyQueue" queue by 5 seconds.
  body
    .queue('bodyQueue', function () {
      console.log('5th function. Next one is delayed by 5 seconds');
      $(this).dequeue('bodyQueue');
    })
    .delay(5000, 'bodyQueue');

  // Add the last one
  body.queue('bodyQueue', function () {
    console.log('6th function (delayed 5 seconds)');
  });

  // Show the queued functions when the page loads
  var queue = body.queue('bodyQueue');

  console.log(
    'There are ' + queue.length + ' functions left in the "bodyQueue" queue:'
  );

  console.log(body.queue('bodyQueue'));

  // Add an event to fire the "bodyQueue" queue
  body.click(function () {
    // Run everything in the "bodyQueue" queue
    body.dequeue('bodyQueue');
  });
});

What I've defined here is a queue with the name bodyQueue, attached it to the body element and added a series of functions. When the body element registers a click event, the callback runs body.dequeue('bodyQueue'), firing the queued functions in bodyQueue.

Resources:

jQuery for Designers | API: queue & dequeue

jQuery in Action 2nd edition: Queuing functions for execution

February 26, 2010

List of Computer Term Etymologies from A-Z

C++

C++ creator Bjarne Stroustrup called his new language "C with Classes" and then "new C". Because of which the original C began to be called "old C" which was considered insulting to the C community. At this time Rick Mascitti suggested the name C++ as a successor to C. In C the '++' operator increments the value of the variable it is appended to, thus C++ would increment the value of C.

A lot of interesting back-stories.

February 25, 2010

Ten rules for writing fiction

Ten rules for writing fiction | Books | guardian.co.uk.

This one resonated with me the most:

5 Write whatever way you like. Fiction is made of words on a page; reality is made of something else. It doesn't matter how "real" your story is, or how "made up": what matters is its necessity.

via [kottke]

February 25, 2010

David Byrne's TED Talk - Creation in Reverse

David Byrne has transcribed his recent TED talk on creativity (I'm sure the video will be posted at TED soon).

His thesis is pretty interesting:

That doesn't sound like such a big insight, but it's actually backwards from what I perceive to be conventional wisdom — which is that creation emerges out of some interior emotion or from an upwelling of passion that inevitably and must find an outlet. This is the romantic notion of how creative work comes to be. Here are the lyrics to a new song by the group One Republic: “I need another story/Something to get off my chest…When a situation rises/Just write it into an album.”

It doesn’t even rhyme, but more than that I think it’s based on a mistaken assumption.

He's very convincing. While it's a long read, I highly recommend it (I know that carries a TON of weight).

Creation in Reverse - David Byrne's Journal .

February 15, 2010

Domino Effect

It's really interesting to see how far-reaching the effects of the recession can be. Not only are prospective jurors challenging serving based on the financial hardships, they are also finding it difficult to sacrifice for plaintiffs whose cases seem less severe than their own problems.

Spurned in his effort to get out of jury duty, salesman Tony Prados turned his attention to the case that could cost him three weeks' pay: A Los Angeles County sheriff's deputy was suing his former sergeant, alleging severe emotional distress inflicted by lewd and false innuendo that he was gay.

Prados, an ex-Marine, leaned forward in the jury box and asked in a let-me-get-this-straight tone of voice: "He's brave enough to go out and get shot at by anyone but he couldn't handle this?" he said of the locker-room taunting.

Weighed down by recession woes, jurors are becoming disgruntled

February 13, 2010

State of the Studio

Still sketching. Trying to add more color. No idea will this is leading, if anywhere. I've realized that I don't need to know, as long as I just keep making whatever it is I want to see. This way of thinking has helped me to relax and experiment more.

I've found that I like using very wet media. This line was made with a small rubber ear syringe with a inner tube needle inserted in the tip. I've used these a lot in the past, especially while making the wine and coffee drawings.

I made new tables! I love these suckers. So much space to spread things out. At some point I'll write a how-to on making one. Pretty simple design and solid as a rock.

Thinking about the color I choose to photograph, I shot this on my way out of the studio the other night. The crack's line quality also drew me in.

The building used to be an old Army Navy store.