Archives for: June 2007

Jun 27, 2007 : Awesome Instrument: the Theremin

The theremin is an electronic instrument that you play without touching: the position of your hands are measured by antennae which control the volume and pitch of the speaker sound. Very crazy stuff... I've wanted one since I heard of them, and after watching this video I really want one:


Technorati tags:

Jun 21, 2007 : The Future of Java

Last night I gave a presentation at the Grand Rapids Java Users' Group titled "The Future of Java". If anyone is interested, you can view the slides in PDF or OpenDocument (with some notes) format. The topics I covered were:

  • Java 6
    • Swing
    • Scripting
  • JRuby
  • Scala
  • Consumer JRE
  • JavaFX
  • Java 7
    • Properties
    • Closures
Technorati tags:

Jun 18, 2007 : Does google toolbar uses hCard microformat for addresses?

It appears the the google toolbar (at least for IE) will find addresses in webpages that are marked with the hCard microformat and use it in a "Look for Map" button. I haven't tried to test it, and I can't find anyone talking about it on the web. But it sure seems to work that way. It may (also) use some other heuristics, I don't know. Does anyone know more about this?

Technorati tags:

Jun 16, 2007 : BarCamp Grand Rapids 2

no, it's nothing (inherently) about drinking. It's a fun geeky get-together that I'm helping organize again this year. Here's the announcement with all the info:

Rule #1 of BarCamp: you DO talk about BarCamp.

http://barcamp.org/BarCampGrandRapids2

We're proud to announce our second BarCamp (dangerously close to being "annual"). BarCamp is a technology & design unconference where the campers (you) determine what's on the schedule. These ad-hoc unconferences are intense events with discussions, demos, and a chance to interact with fellow attendees. Anyone with something to contribute or with the desire to learn is welcome and invited to participate.

WHEN: Friday evening, July 20 and Saturday, July 21

WHERE: Calvin College, Grand Rapids, MI

COST: Free! But everyone is encouraged to present something and be involved, even if you're never given a talk before.

WHAT: So far, topics ranging from opensource business to the JQuery Javascript library to next generation communications. Ultimately each camper has an opportunity to help determine the content.

You can register and find out more information about BarCamp Grand Rapids at http://barcamp.org/BarCampGrandRapids2, or about BarCamps in general at http://en.wikipedia.org/wiki/BarCamp

Technorati tags:

Jun 10, 2007 : Lasagna Drive

Tonight when I first read a street sign, I thought it said Lasagna Drive. Why aren't streets named after food? I'd rather live on Banana Ave or Syrup Blvd, than Spring Meadow Creek or some quaint crap like that.

: Goodbye, Midland

This weekend our whole family was in Midland for Chloe's high school graduation open house. It was the last time I'll be in Midland in the foreseeable future, since my Mom is joining my Dad in Houston very soon. I'll miss Midland, but not terribly. I'll miss the friends I have who are still there. Not much else to say, but thought I'd write something rather than nothing, at least for posterity's sake.

Jun 06, 2007 : 100% height iframe

So <iframe height="100%"> doesn't make an iframe fill all the remaining portion of a window like you might expect. I found several places where people showed how they got it to resize with javascript, but those didn't work for me. The DOM properties that they used were frequently the "page" height (e.g. 250px for a short content page, 1300px for a tall page that has scrolling) or something else wrong. Here is what works for me (in Firefox 2 and IE 7) to make an iframe be as high as possible without causing the main window to have scrolling:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>Test Page</head>
<body>
<h1>Check out the cool page below</h1>
<p><a href="/">Go back home</a></p>

<iframe id="frame" src="http://google.com/" width="100%" frameborder="0" marginheight="0" marginwidth="0"></iframe>
<script type="text/javascript">
function resizeIframe() {
    var height = document.documentElement.clientHeight;
    height -= document.getElementById('frame').offsetTop;
    
    // not sure how to get this dynamically
    height -= 20; /* whatever you set your body bottom margin/padding to be */
    
    document.getElementById('frame').style.height = height +"px";
    
};
document.getElementById('frame').onload = resizeIframe;
window.onresize = resizeIframe;
</script>

Hopefully this may help someone in the same situation.. your mileage may vary.

Update 10/4/2008: Eric P. noted a while ago that you need a doctype, and Ernest E. reminded me that I needed to update my example.

Technorati tags:

Next Page >>

Next Page >>

<  June 2007  >
Mon Tue Wed Thu Fri Sat Sun
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30  

Categories


Archives

Misc

Syndicate this blog XML

powered by
b2evolution