Saturday, October 15, 2011

HTML5-Compliant YouTube Embedding

Today I was updating my fathers site, Home Tips With Jim to be HTML5-compliant.  It was pretty much just a matter of removing the center tag and target="_blank" from the links -- or so I thought.

I'm putting this out there for anyone that may run into the problem in the future; while trying to use YouTube's new iframe embed system to embed my father's playlist into the page, I ran into two problems spit out by the W3 Validator:
Attribute allowfullscreen not allowed on element iframe at this point.
The frameborder attribute on the iframe element is obsolete. Use CSS instead.
After some quick research, I found the solution; apparently frameborder is depreciated, and allowfullscreen is not fully implemented.
The solution, was to remove those two elements, and replace the frameborder one with CSS.  So, if anyone else runs into this problem, go into the
<iframe> tag, and change this part:
frameborder="0" allowfullscreen
To this:
style="border: none"

You can now view the source to the HTWJ site, and see how it's been fixed.

Wednesday, October 5, 2011

How to create a desert

Hi everyone, assuming there's actually someone out there that reads this blog.

I thought I'd blog about something that's been on my mind for awhile now, though it may not be on others: how does one create a desert?  I'm not talking about a desert-themed terrarium or a panorama, I literally mean how would someone create a physical desert?

Let me explain.  Back when I was growing up, my family lived in this nice little house that we rented.  When we first moved there, the backyard had lush green grass, it was a really nice yard.  By the time we moved, all of that grass was gone, nothing could grow, nothing would live.  The dirt became more of a "dust" or "sand" texture; it didn't hold water, it couldn't hold life.  What happened in this yard, on a small scale, is what's called Desertification.

Desertification is primarily what has happened in the Midwest of the United States, and it is currently happening in Asia.  It's why the huge Sahara Desert used to be ocean, and why places in China that were lush green fields just 20 years ago are baron wastelands.

So my question is, how would I create a desert?  It seems once the process of desertification starts, it "snowballs" into an unstoppable force, turning entire landscapes into a desert.  On other words.....
How does this:
 Become this:

Step 1: Overgraze
Probably the best way to kill fertile land, is to overgraze.  With so many animals trampling the land and eating the vegetation, it isn't hard to figure out why the land actually dies.  I'm sure people that own large, outdoor dogs can probably agree with me, if their dog pen ended up becoming bare dirt.

Step 2: Dig
Back when we had that old yard growing up, I would dig things up there on a daily basis.  I would try to dig my own "streams" try to excavate rocks.  All of this constant digging seemed to make the land more "arid" and loose; eventually it became almost like a sand.

Step 3: Irrigate
It seems kinda odd that irrigating the land would actually contribute to killing it, but this seems to be the going consensus.  I remember during the summer, I would tie a hose to the top of my sliding board set, and I'd dig streams going from the huge mud puddle in my yard, all the way through to the back in the woods.

Step 4: Overfarm.
Overfarming is also a major contribution to desertification.  It's true that the runoff from farming could hurt the dirt, but when plants grow, they are constantly sucking nutrients out of the earth.  usually when the plant dies, the nutrients goes back into the dirt, but if the entire plant is harvested, those nutrients will never go back in.

It's simple, really.  If you want to kill your land, simply trample the dirt, dig a lot, irrigate, and overfarm.  It's what happened in the Dust Bowl, it's what's happening in China.  No go out there, and create some deserts! :D