YouTube Browser-Based Uploader with PHP

Aug 21 2012

Download Example

RD2 wanted to add something special with our 3rd iteration of building the World Traveler Internship website. We created a very unique feature within the application process...

Honeymoon with the Sharks

Aug 17 2012

Cocos Island (), best known as the “Island of the Sharks”, is one of the most remote and beautiful islands in the world...

Responsive: Fluid Width YouTube Videos

Jun 28 2012

Building a responsive website requires many variables. You have to think about every element in the DOM and how it will react when the browser is resized. Here at RD2, we recently converted our site to be responsive. I have to say, it’s pretty awesome. But when I threw a YouTube video in one of our blog posts, it wasn’t responsive to the browser window or any smaller device.

Problem

Using WordPress’s auto embed feature, how can I modify the video’s width and height when I resize the browser using YouTube’s iframe code?

Answer

My original attempt at accomplishing this with CSS alone was not successful...

PHP Weather widget using Google’s weather API

May 17 2012
PHP Weather widget using Google’s weather API
UPDATE 08/28/2012

Google has abandoned their weather API and are now using wunderground.com Weather API. I will be creating a new tutorial showing the API in action very soon. Check back to the RD2 blog for updates. Please disregard the below code.

With the recent launch of the Elbowz Racing team website, we decided to add something a little bit fun, but still applicable, into the project: a self-maintaining weather widget using Google’s weather API and PHP...

Detecting the Kindle Fire with PHP

Mar 8 2012
Detecting the Kindle Fire with PHP

There are many reasons to detect the type of platform your user is viewing your website on. There are articles all over the internet about detecting iphones, ipads, android devices, etc. But when it comes to detecting the Kindle Fire, things can get a bit strange. To get the user’s platform, you will want to use the PHP method, $_SERVER['HTTP_USER_AGENT'] (see below).


This will return: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; en-us; Silk/1.1.0-80) AppleWebKit/533.16 (KHTML, like Gecko) Version/5.0 Safari/533.16 Silk-Accelerated=true

As you can see, there are mentions of Mozilla, Apple, WebKit, Safari, etc...