RSS
 

Archive for July, 2010

iPad projector concept displays objects in 3D

20 Jul

N-3D DEMO from aircord on Vimeo.

Tonight seems to be the night for 3D. A design team released a proof of concept video showing how it’s possible to use an iPad to project a 3D image to the naked eye. It requires some special hardware, but it’s still pretty damn amazing. Check out the video after the jump.

Currently, viewers can move around and view an image as if it was an object literally floating in space. Of course, right now it’s just a proof of concept, but if the team at Aircord Labs can pull it off, this has the chance to be an amazing bit of technology.

[via Gizmodo]

 
 

Where’s The Money In America?

19 Jul

They call America the land of opportunity, but few would question the notion that it is also the land of contrasts. All you need to do is look at the statistics compiled on a regular basis by the Department of Labor, Census Bureau and other government institutions to see the stark differences between the country’s top and bottom earners. While the top 1% of American households holds 34.6% of all privately-held wealth, for example, the bottom 80% (made up of salary workers) holds 14.9%. For more statistics on income, wealth and debt distribution in America, take a look at our infographic, created in partnership with OnlineSchools.org.

 
 

Red Tree (by nayein)

19 Jul


Red Tree

(by nayein)

 
 

How George W. Bush rejected my “Sharp” idea for countering terrorism

19 Jul

[More]

 
 

Jon Stewart, Skeptic of Science’s Cosmic Ontology

19 Jul

I’m not ashamed to say that two of my favorite social critics are Marilynne Robinson and Jon Stewart, though it’s hard to imagine two people who could be more different, and it’s hard to take both equally seriously (for good reason). But when they met on Stewart’s show (to plug Robinson’s excellent new book Absence of Mind), the cordial exchange revealed not only how underrated Stewart is as an interviewer, but also how insightful he can be about bigger issues. Take his comment on the seemingly unscientific “beliefs” or “truth claims” made by scientists in explaining the universe, which he gave in an paraphrased dialogue between scientists and the public. I was nodding my head in agreement with Stewart, and so was Robinson.

STEWART (at 2:52 in the above clip): I’ve always been fascinated that the more you delve into science, the more it appears to rely on faith.


You know, when they start to speak about the universe, they say,


‘Well, actually most of the universe is anti-matter.’


‘Oh really? Where’s that?’


‘Well, you can’t see it.’


‘Well where is it?’


‘It’s there.’


‘Well can you measure it?’


‘We’re working on it.’


And it’s a very similar argument to someone who would say,


‘Well, God created everything.’


‘Well where is he?’


‘He’s there.’


And I’m always struck by the similarity of the arguments at their core.


ROBINSON: I think you’re absolutely right.

 
 

Asteroid mining will give us all the platinum we’ll ever need, and maybe start a new Space Age [Asteroid Mining]

19 Jul
The platinum group metals are crucial to electronics, massively expensive, and extremely rare on this planet. But on asteroids? A single one holds billions of pounds of these metals - and that could start the era of private space exploration. More »
 
 

Handmade knife chipped from fiber optic glass

16 Jul

Flint (and glass) knapping is no longer practiced on a large scale, but it used to be the primary method of making weapons for primitive cultures. In this day and age of course, it’s easy to go to the sporting goods store and pick up a quality steel knife, but it wasn’t always so.

There are still people out there that practice the art (and I do mean art) of knapping; one such artist created this knife from fiber optic glass, and offers them for sale on his web site. Personally, I doubt I would ever use such a knife for fear of breaking it, but it does make an amazing display piece. If you want one, it’ll cost you $165 – a small price to pay considering the amount of time it must have taken to hand make this knife from a piece of glass. Remember, one mistake, and you have to start over.

[via Make]

 
 

Voice actor Billy West on how to create Popeye’s two-octave grumble

16 Jul
Voice actor Billy West was on NPR's Fresh Air yesterday. I always love hearing actors do roles on radio, especially someone like West who is known for such original roles as Fry, Professor Farnsworth, and Dr. Zoidberg on Futurama. But what really wow-ed me was his description of how he learned to emulate the unforgettably unique voice of Popeye, as originally done by Jack Mercer:
popeye.jpgI loved Jack Mercer, and I got him. I understood him. And what helped me understand that Popeye voice -- it's a high voice and a low voice at the same time -- cause when I was a kid, we all used to try to do that and we all stunk. It didn't sound right. So one day, I see this film -- it was an independent film called Genghis Blues. And it was about this blind singer in San Francisco who wrote a hit for Steve Miller. ... And he was listening to a world-band radio one night, and he heard this strange noise. And it was a program about Tuvan singers. And Tuvans had a way of singing where they could do one and two voices. And I realized, 'Oh man, that's how this guy did it. Jack Mercer.' [He imitates both voices.] There'd be two voices, an octave apart. And he'd put them together."
It's worth listening to the whole segment (it's 28 minutes long), but the Popeye bit starts at about 17:05.

Billy West: The Many (Cartoon) Voices In His Head [Fresh Air]

 
 

Textarea Tricks

16 Jul

Oh, <textarea>’s. How many quirks you posses. Here is a collection of nine things you might want to do related to textareas. Enjoy.

1. Image as textarea background, disappears when text is entered.

You can add a background-image to a textarea like you can any other element. In this case, the image is a friendly reminder to be nice =). If you add a background image, for whatever reason, it can break the browser default styling of the textarea. The default 1px solid bolder is replaced with a thicker beveled border. To restore the browser default, you can just force the border back to normal.

textarea {
  background: url(images/benice.png) center center no-repeat; /* This ruins default border */
  border: 1px solid #888;
}

That background image might interfere with the readability of the text once the text reaches that far. Here is some jQuery that will remove the background when the textarea is in focus, and put it back if the textarea is left without any text inside.

$('textarea')
  .focus(function() { $(this).css("background", "none") })
  .blur(function() { if ($(this)[0].value == '') { $(this).css("background", "url(images/benice.png) center center no-repeat") } });

2. HTML5 placeholder text

There is a new attribute as part of HTML5 forms called placeholder. It shows faded gray text in the textarea (also works for text-style inputs) which disappears when the textarea is in focus or has any value.

<textarea placeholder="Remember, be nice!" cols="30" rows="5"></textarea>

HTML5 placeholder text works in Safari 5, Mobile Safari, Chrome 6, and the Firefox 4 alpha.

3. Placeholder text, HTML5 with jQuery fallback

We can easily test if a particular element supports a particular attribute by testing with JavaScript:

function elementSupportsAttribute(element, attribute) {
  var test = document.createElement(element);
  if (attribute in test) {
    return true;
  } else {
    return false;
  }
};

Then we can write code so that if the browser does support the placeholder attribute, we’ll use that, if not, we’ll mimic the behavior with jQuery:

if (!elementSupportsAttribute('textarea', 'placeholder')) {
  // Fallback for browsers that don't support HTML5 placeholder attribute
  $("#example-three")
    .data("originalText", $("#example-three").text())
    .css("color", "#999")
    .focus(function() {
        var $el = $(this);
        if (this.value == $el.data("originalText")) {
          this.value = "";
        }
    })
    .blur(function() {
      if (this.value == "") {
          this.value = $(this).data("originalText");
      }
    });
} else {
  // Browser does support HTML5 placeholder attribute, so use it.
  $("#example-three")
    .attr("placeholder", $("#example-three").text())
    .text("");
}

4. Remove the blue glow

All WebKit browsers, Firefox 3.6, and Opera 10 all put a glowing blue border around textareas when they are in focus. You can remove it from the WebKit browsers like this:

textarea {
  outline: none;
}

You could apply it to the :focus style as well, but it works either way. I have not yet found a way to remove it from either Firefox or Opera, but -moz-outline-style was about as far as I tested.

REMINDER: The blue glow is becoming a strong standard and breaking that standard is typically a bad thing for your users. If you do it, you should have a darn compelling reason to as well as a similarly strong :focus style.

5. Remove resize handle

WebKit browsers attached a little UI element to the bottom right of text areas that users can use to click-and-drag to resize a textarea. If for whatever reason you want to remove that, CSS is all it takes:

textarea {
  resize: none;
}

6. Add resize handle

jQuery UI has a resizeable interaction that can be used on textareas. It works in all browsers and overrides the WebKit native version, because this version has all kinds of fancy stuff (like callbacks and animation).

To use it, load jQuery and jQuery UI on your page and at its most basic level you call it like this:

$("textarea").resizable();

7. Auto-resize to fit content

James Padolsey has a super nice jQuery script for auto resizing textareas. It works just how you likely hope it does. The textarea starts out a normal reasonable size. As you type more and more content, the textarea expands to include all of that text, rather than triggering a scrollbar as is the default.

The plugin has a variety of options, but at its simplest you just load jQuery, the plugin file, and call it like this:

$('textarea').autoResize();

8. Nowrap

To prevent text from wrapping normally in CSS, you use #whatever { white-space: nowrap; }. But for whatever reason, that doesn’t work with textareas. If you want to be able to type into textareas and would rather lines do not break until you press return/enter (a horizontal scrollbar is triggered instead), you’ll have to use the wrap="off" attribute.

<textarea wrap="off" cols="30" rows="5"></textarea>

9. Remove default scrollbars in Internet Explorer

IE puts a vertical scrollbar by default on all textareas. You can hid it with overflow: hidden, but then you don’t get any scrollbars at all when you expand. Thankfully auto overflow works to remove the scrollbar but still put them back when needed.

textarea {
  overflow: auto;
}

 

All the above examples can be seen here.

 
 

Brain Slug Cupcakes at Final Futurama Script Reading

15 Jul

Glenn Fleishman shares a treat with us:

I was lucky enough to attend the last scheduled table reading (where a script is read by the voice actors) for Futurama, the animated cartoon show revived twice now after Fox's broadcast network failed to kill the show. Featured at the reading were piles of delicious brain slug cupcakes. I LOVE THE BRAIN SLUG CUPCAKES, TRY ONE.

The final script is quite hilarious, naturally, and it was a pleasure not just to hear it read in person by the actors, but to watch how much of a family the show is, cast, crew, and their friends and families. That feeling comes through in the show, which was created by Matt Groening and David "X" Cohen, through whose good offices (and my dear friend, his sister) I garnered an invite.

It was especially neat to watch Billy West talk to himself, cycling through Fry, the Professor, Zoidberg, and Zap Branigan, sometimes one right after the other. Also, John DiMaggio, who voices Bender, is 100-feet tall, and breathes fire.

Futurama is one of the only TV shows ever to feature real math and science, as well as multiple alien language alphabets (one a substitution, the other a code), and other supergeekery.

The show hasn't been canceled. This was the last of the current order of episodes by Cartoon Network, but Futurama has rebirthed itself before.

Brain Slug Cupcakes on Flickr


And here's a really cute photo of Glenn with pals on the set, including the aforementioned Messrs. Cohen and Groening.


You can pick up DVDs of past seasons here: Amazon link.
(Thanks, Glenn!)