Programming

HTML5-Compliant YouTube Embedding

Posted on by AJ Ianozi

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. And: 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"

To this:

style="border: none"

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

Why your website should be written in C, not PHP

Posted on by AJ Ianozi

It’s been awhile since I updated this blog, been pretty busy IRL. Just recently got back from a Longsword Course with ARMA, in Ohio, was very nice, and I learned a lot. I’ve also been playing the silver market recently; there’s a pretty nice blog that I follow. If you’re looking for an interesting perspective on precious metals, check this guy at Along the Watchtower; he seems to know his stuff.

Okay, back to the point of this post.

I have studied several scripting and programming languages; off the top of my head, I know Ada, C, C++, Fortran77, FORTH, Perl, PHP, Python, Java, and JavaScript. Which language do I prefer, though? C. (Read more)

switch() vs elseif benchmarks

Posted on by AJ Ianozi

There was an interesting benchmark on a friend’s blog. He was running a “switch() vs else if” test in php, which yielded some very interesting (and at first, perplexing) results.

I’d just head over there and read his article as a primer, so you know where I’m coming from. Now, after reading his results, I was desperate to find out why this was happening, and I decided to run some benchmarks on my own.

Might want to sit back, this is going to be a long one (you’ll have to click “Read More” for this one). (Read more)