Archive

Archive for the ‘Internet’ Category

Code Snippet Resources

July 25th, 2009 admin No comments

water droplet on the screenThere are many sites on the internet now where you can find useful code snippets for your favorite programming languages. A very comprehensive list of these sites can be found HERE.

Utilizing these resources can be a great way to quickly get familiar with the syntax of new languages or brush up on ones you already know. I don’t recommend blindly copying these snippets and putting them into your critical applications without thorough testing and verification. When used responsibly, they can be very helpful building blocks to quickly get your new applications up and running. Some sites even have features to rate, store, and organize your favorite snippets for easy access from any computer connected to the internet.

I highly recommend new and seasoned programmers alike to make use of these wonderful resources and, if you are so inclined, help out your fellow programmers and
contribute your own snippets as well!

Categories: Internet, Programming Tags:

Standards-compliant Flash and YouTube Embedding

July 16th, 2009 admin No comments

If you’ve ever wondered why the markup provided by Flash or YouTube to embed their content don’t validate in the W3C Validating Service then you aren’t alone. Luckily for us there are developers out there who have put a lot of time and energy into creating and testing standards-compliant markup for embedding this content in your web pages. You can read more about how they came about their solutions here: Validating Flash XHTML and  Validating YouTube XHTML.

Without going into the wrong way to do it, I will just post the “correct” markup below.

Validated Flash XHTML

<object type=”application/x-shockwave-flash” data=”movie.swf” width=”575″ height=”350″>
<param name=”wmode” value=”opaque” />
<param name=”movie” value=”movie.swf” />
</object>

Validated YouTube XHTML

<object type=”application/x-shockwave-flash” width=”575″ height=”350″ data=”http://www.youtube.com/v/oC4FAyg64OI&hl=en&fs=1&”>
<param name=”movie” value=”http://www.youtube.com/v/oC4FAyg64OI&hl=en&fs=1&” />
</object>