I never thought that I’d draw anything in my life, but I decided today to pick up a pencil and try to draw an eye. I think it turned out pretty good considering I have never drawn a thing in my life. I hope I can make the time to draw more in the future.
I have a whole new respect for people that can draw.
Have you noticed a big black border around your videos when you embed them into your website and are viewing them on an iPhone or iPad device? So have I. This seems to be an HTML5 issue when being viewed only on mobile Safari browsers. Again, you will only notice the difference when viewed with an iPhone or iPad device. It will look normal otherwise.
<iframe title=”YouTube video player” width=”560″ height=”349″ src=”http://www.youtube.com/embed/tPZfa7bZzF4?rel=0″ frameborder=”0″ allowfullscreen></iframe>
I was looking for a simple way to show/highlight the code portion of my blog. The regular <pre> tags didn’t do it for me. It just didn’t look professional.
After a quick search, I came across a WordPress plugin called WP-Syntax.
“WP-Syntax provides clean syntax highlighting using GeSHi — supporting a wide range of popular languages. It supports highlighting with or without line numbers and maintains formatting while copying snippets of code from the browser.”
There are a few ways of using this plugin, but I will only be using two.
The first way is when I want to highlight commands:
All I need to do is add a <pre lang=”php”> at the beginning of my command and add a </pre> at the end.
The second way is when I want to highlight code:
I wanted a number next to each line of code. This will help me identify a bad piece of code if someone wanted to point it out. For example, someone would easily be able to tell me that line 5 had an error in it.
All I need to do is add a <pre lang=”php” line=”1″> at the beginning of my command and add a </pre> at the end.