<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description>Hello, I’m Patrick and I like to write code. I started this blog as a way for me to share code with the world.

I am currently working as a Interactive Media Engineer at Redmon Group in Alexandria, Virginia.</description><title>PATRICK.s{code}</title><generator>Tumblr (3.0; @patrickcole)</generator><link>http://patrickcole.tumblr.com/</link><item><title>Javascript Array.indexOf() Support</title><description>&lt;p&gt;Just a quick tip, if you are working on backwards compatibility with IE8 and below, you might want to add this to your long list of fixes. Internet Explorer 8 and below does not have support for Array.indexOf(). Fortunately, there&amp;#8217;s a &lt;a href="http://api.jquery.com/jQuery.inArray/" target="_blank"&gt;jQuery solution&lt;/a&gt; if you are already using it. Otherwise, you will have to &lt;a href="http://stackoverflow.com/a/2790686" target="_blank"&gt;write your own&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Hopefully in the coming months we can begin to cross these &amp;#8220;fixes&amp;#8221; off our list of things to do before launching a site. Let&amp;#8217;s keep upgrading those browsers!&lt;/p&gt;</description><link>http://patrickcole.tumblr.com/post/50955261040</link><guid>http://patrickcole.tumblr.com/post/50955261040</guid><pubDate>Mon, 20 May 2013 21:48:00 -0400</pubDate><category>javascript</category><category>ie8</category><category>ie7</category><category>ie6</category><category>array</category><category>indexOf</category></item><item><title>Browser Usage Statistics - April 2013</title><description>&lt;p&gt;Believe it not, May is here and that means another report on last month&amp;#8217;s browser usage statistics. According to my sources, the following are the averages for each of the five main web browsers:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Overall Browser Usage&lt;/strong&gt;&lt;br/&gt;Internet Explorer - 36.58%&lt;br/&gt;Chrome - 29.782%&lt;br/&gt;Firefox - 20.318%&lt;br/&gt;Safari - 9.49%&lt;br/&gt;Opera - 1.38%&lt;/p&gt;
&lt;p&gt;Once again, I believe that NetApplications report of Internet Explorer&amp;#8217;s usage is skewed as they report IE&amp;#8217;s total usage at 55.81% worldwide and Chrome&amp;#8217;s is only 16.35%. All my other sources have IE around 35% and Chrome around 28%, which I believe is more accurate.&lt;/p&gt;
&lt;p&gt;As a web developer, one of the key areas I check each month is the usage of each version of Internet Explorer. Last month&amp;#8217;s IE version usage is listed below:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Internet Explorer Version Usage&lt;br/&gt;&lt;/strong&gt;IE6 - 1.755% (skewed by NetApplications, around 0.27% from other sources)&lt;br/&gt;IE7 - 2.472%&lt;br/&gt;IE8 - 12.83%&lt;br/&gt;IE9 - 14.116%&lt;br/&gt;IE10 - 4.3%&lt;/p&gt;
&lt;p&gt;These numbers indicate to me one very important item, stop developing for IE6 and even IE7. These two browsers cause so many issues that with such a lower percentage of use, it&amp;#8217;s just not worth it.&lt;/p&gt;</description><link>http://patrickcole.tumblr.com/post/49404957584</link><guid>http://patrickcole.tumblr.com/post/49404957584</guid><pubDate>Wed, 01 May 2013 21:40:00 -0400</pubDate><category>browsers</category><category>browserstats</category><category>ie</category><category>chrome</category></item><item><title>#whychrome?</title><description>&lt;p&gt;It&amp;#8217;s faster, and Safari&amp;#8217;s developer tools are just not very helpful anymore.&lt;/p&gt;
&lt;p&gt;I thought I could continue using Safari as it allowed me to keep my bookmarks in-sync with iCloud. However Chrome&amp;#8217;s Bookmark syncing takes care of all the issues of keeping bookmarks in-sync as well. Sorry Apple, but until you adopt a rapid-release browser schedule and fix your iCloud issues, I am going to be using Chrome.&lt;/p&gt;</description><link>http://patrickcole.tumblr.com/post/47964774298</link><guid>http://patrickcole.tumblr.com/post/47964774298</guid><pubDate>Sun, 14 Apr 2013 13:04:21 -0400</pubDate><category>browsers</category><category>chrome</category><category>safari</category><category>icloud</category></item><item><title>Browser Usage Statistics - March 2013</title><description>&lt;p&gt;Another month, another report of browser usage is here. March&amp;#8217;s report shows what has been consistently happening for months now, Chrome is still gaining ground on Internet Explorer. Although minimal, Chrome is attracting more users each month. Despite Chrome&amp;#8217;s gains, the main losers each month seem to be Firefox, Safari and Opera. Each of the three browsers have been losing users each month to either Chrome or the recently modernized Internet Explorer. Firefox is still holding it&amp;#8217;s ground, but barely gaining any new usage. Safari and Opera remain niche browsers and cannot seem to attract a large group of users. The following statistics are my averages based on the Browser Statistics sources I collected:&lt;/p&gt;

&lt;p&gt;Overall Browser Usage:&lt;/p&gt;

&lt;p&gt;IE - 37.088%&lt;/p&gt;
&lt;p&gt;Chrome - 29.361%&lt;/p&gt;
&lt;p&gt;Firefox - 20.251%&lt;/p&gt;
&lt;p&gt;Safari - 9.746%&lt;/p&gt;
&lt;p&gt;Opera - 1.408%&lt;/p&gt;

&lt;p&gt;Along with overall browser usage, included are the usage statistics for Internet Explorer. The statistics for IE are included for web developers who are still wondering which versions of IE to test. The results are included below:&lt;/p&gt;

&lt;p&gt;Microsoft Internet Explorer Usage:&lt;/p&gt;

&lt;p&gt;IE6 - 1.364%&lt;/p&gt;
&lt;p&gt;IE7 - 2.586%&lt;/p&gt;
&lt;p&gt;IE8 - 12.598%&lt;/p&gt;
&lt;p&gt;IE9 - 15.676%&lt;/p&gt;
&lt;p&gt;IE10 - 2.3%&lt;/p&gt;

&lt;p&gt;Finally, I would like to mention an anomoly I have noticed. One of my sources, NetMarketShare reports that IE6 is used by 6.21% of the world. I believe this is because China still uses IE6 more often than other countries. My other sources have IE6 listed at 0.28% and 0.33% respectively. This indicates to me that if you are testing your website, and your main audience is not China, you should not worry about IE6. I generally believe that if you are using IE6, you are using a system that is heavily out-of-date and should not be supported at all. However, I also work with clients whom are in the government and they still have IE6 installed on their computers.&lt;/p&gt;

&lt;p&gt;Going back to NetMarketShare, I called them out a few days ago on Twitter for their report on Chrome usage:&lt;/p&gt;
&lt;blockquote class="twitter-tweet"&gt;
&lt;p&gt;I call bs on &lt;a href="https://twitter.com/search/%23netmarketshare" target="_blank"&gt;#netmarketshare&lt;/a&gt;&amp;#8217;s chrome usage amount. 16.45% really?!&lt;/p&gt;
— Patrick Cole (@patrickcole) &lt;a href="https://twitter.com/patrickcole/status/318918478209892352" target="_blank"&gt;April 2, 2013&lt;/a&gt;&lt;/blockquote&gt;
&lt;script charset="utf-8" src="//platform.twitter.com/widgets.js" type="text/javascript"&gt;&lt;/script&gt;&lt;p&gt;I seriously do not think that Chrome has a 16.45% usage worldwide. Now, I understand that NetMarketShare websites probably do not get a large amount of users on Chrome, but I look at other reports and they have Chrome at least 26% worldwide. Unfortunately, I do not have the funds to sign up for a lucrative NetMarketShare account to check their numbers, so I cannot check the numbers per country. I guess I will have to wait until April&amp;#8217;s report is out to see if the trend continues.&lt;/p&gt;</description><link>http://patrickcole.tumblr.com/post/47369167753</link><guid>http://patrickcole.tumblr.com/post/47369167753</guid><pubDate>Sun, 07 Apr 2013 11:15:00 -0400</pubDate><category>browsers</category><category>statistics</category><category>march2013</category><category>ie</category><category>chrome</category></item><item><title>Website Spring Cleaning</title><description>&lt;p&gt;As you have seen, this blog has gone through a slight cleanup and reorganization as part of my restructuring of content. In addition to moving personal articles away from this blog, I have also been working on my own custom Tumblr theme.&lt;/p&gt;
&lt;p&gt;I am happy to announce that I have begun the process of transferring my HTML mockups into the tumblr engine. You may notice some changes, visually, to this blog over the next couple of days. I am still learning the tumblr code and variables, but hopefully should have the updated theme ready soon.&lt;/p&gt;
&lt;p&gt;Thanks for reading and look forward to showing you this new, free, theme.&lt;/p&gt;</description><link>http://patrickcole.tumblr.com/post/47048013718</link><guid>http://patrickcole.tumblr.com/post/47048013718</guid><pubDate>Wed, 03 Apr 2013 16:59:34 -0400</pubDate><category>tumblr</category><category>srsbsns</category><category>maintenance</category></item><item><title>Stop adding "pipes" inside your nav links!</title><description>&lt;p&gt;This is a terrible practice because anyone reading the page without a stylesheet &lt;strong&gt;STILL&lt;/strong&gt; can see the pipes. The separators are part of the layout and not the content. If you are someone who usually places the separator inside the &amp;lt;li&amp;gt; tag, STOP!&lt;/p&gt;
&lt;p&gt;Here&amp;#8217;s an example of what I&amp;#8217;m talking about:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;lt;ul&amp;gt;&lt;br/&gt;     &amp;lt;li&amp;gt;Link |&amp;lt;/li&amp;gt;&lt;br/&gt;&amp;lt;/ul&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;What you see above is exactly what a screen reader will read and is really useless. Might I suggest you separate the pipe from the content and use CSS to create a separator.&lt;/p&gt;
&lt;p&gt;I have created another basic code sample to illustrate what I am talking about.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href="http://codepen.io/patrickcole/details/LcDoK" target="_blank"&gt;Basic List Separators by Patrick Cole on Codepen&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;</description><link>http://patrickcole.tumblr.com/post/45313421245</link><guid>http://patrickcole.tumblr.com/post/45313421245</guid><pubDate>Wed, 13 Mar 2013 21:54:00 -0400</pubDate><category>Css</category><category>lists</category><category>semantic-code</category></item><item><title>Basic Resizable Grid</title><description>&lt;p&gt;Here is a new basic code sample for you. You can use this as a &amp;#8220;table replacement&amp;#8221; for a grid style layout of your site. This sample is set to be full screen that resizes on screen resize. Currently, this is a 4x4 grid with each &amp;#8220;cell&amp;#8221; occupying 25% of the screen.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://codepen.io/patrickcole/pen/wImFe" target="_blank"&gt;&lt;strong&gt;Basic Resizable Grid by Patrick Cole on Codepen&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://patrickcole.tumblr.com/post/44950213076</link><guid>http://patrickcole.tumblr.com/post/44950213076</guid><pubDate>Sat, 09 Mar 2013 12:29:00 -0500</pubDate><category>css</category><category>basics</category><category>lists</category><category>grid</category></item><item><title>Basic CSS Dropdown Lists</title><description>&lt;p&gt;Another basic HTML/CSS code sample. I use this very basic beginning for most of my horizontal drop down lists. The code provided creates a basic semantic list with a navigation class. Please note that I have addressed Internet Explorer&amp;#8217;s issues with the :pseudo class.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://codepen.io/patrickcole/pen/IvmGr" target="_blank"&gt;&lt;strong&gt;Basic CSS Dropdown List by Patrick Cole on Codepen&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In this sample, I handle IE&amp;#8217;s issues by using jQuery but only for IE8 and below as the other browsers mainly handle the :hover pseudo class just fine.&lt;/p&gt;</description><link>http://patrickcole.tumblr.com/post/44032443055</link><guid>http://patrickcole.tumblr.com/post/44032443055</guid><pubDate>Mon, 25 Feb 2013 21:41:00 -0500</pubDate><category>HTML</category><category>css</category><category>basics</category><category>:hover</category></item><item><title>Links, You Love to Hate them..</title><description>&lt;a href="http://cdpn.io/GmiIv"&gt;Links, You Love to Hate them..&lt;/a&gt;: &lt;p&gt;Since Valentine’s Day is coming up this week, I thought I would share a simple rule you can use to code all your anchor links.&lt;/p&gt;</description><link>http://patrickcole.tumblr.com/post/42787221091</link><guid>http://patrickcole.tumblr.com/post/42787221091</guid><pubDate>Sun, 10 Feb 2013 17:08:20 -0500</pubDate><category>css</category><category>css3</category><category>HTML</category></item><item><title>An update</title><description>&lt;p&gt;So I&amp;#8217;ve been neglecting this blog for some time and for that apologize. However, I have something new and exciting. In an effort to better separate my personal life and my work life, I have re-dedicated this blog to all work.&lt;/p&gt;
&lt;p&gt;What that means is now I will be posting code samples, tutorials, important links and such. With my first new post under this new setup, I have included my &lt;a href="http://cdpn.io/lcoxD" title="My first post" target="_blank"&gt;very first post&lt;/a&gt; on &lt;a href="http://codepen.io" title="Codepen.io" target="_blank"&gt;codepen.io&lt;/a&gt;. I hope this code sample can be useful for any web developers who need some help.&lt;/p&gt;</description><link>http://patrickcole.tumblr.com/post/42688116483</link><guid>http://patrickcole.tumblr.com/post/42688116483</guid><pubDate>Sat, 09 Feb 2013 15:06:35 -0500</pubDate></item><item><title>Enough with jQuery sliders! /rant</title><description>&lt;p&gt;There are soo many jQuery sliders people have built, it is crazy! Look, I know it is probably one of the easiest tutorials with jQuery, but come on. There are plenty of open source samples to provide what you need to accomplish your sliding task.&lt;/p&gt;
&lt;p&gt;I just get really sick of searching through a billion jQuery sliders. I have settled on &lt;a href="http://www.malsup.com/jquery/cycle/http://www.malsup.com/jquery/cycle/" target="_blank"&gt;jQuery Cycle Plugin&lt;/a&gt; as it is included in the CMS we use at work.&lt;/p&gt;
&lt;p&gt;If you are thinking of writing a new tutorial on how to build a slider, I would encourage you to first do some research and see if there is one already out there that suits your needs.&lt;/p&gt;
&lt;p&gt;/rant over&lt;/p&gt;</description><link>http://patrickcole.tumblr.com/post/41103430806</link><guid>http://patrickcole.tumblr.com/post/41103430806</guid><pubDate>Mon, 21 Jan 2013 09:44:11 -0500</pubDate><category>jquery</category><category>rant</category></item><item><title>More Object Oriented Javascript</title><description>&lt;p&gt;I&amp;#8217;ll be posting another quick sample from my Object Oriented Javascript tutorial on &lt;a href="http://coderwall.com/hpcwebdev" target="_blank"&gt;my coderwall&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;UPDATED: It&amp;#8217;s there now.&lt;/strong&gt;&lt;/p&gt;</description><link>http://patrickcole.tumblr.com/post/33115745164</link><guid>http://patrickcole.tumblr.com/post/33115745164</guid><pubDate>Sun, 07 Oct 2012 18:17:00 -0400</pubDate></item><item><title>Check out my coderwall</title><description>&lt;a href="http://coderwall.com/hpcwebdev"&gt;Check out my coderwall&lt;/a&gt;: &lt;p&gt;I just found out about coderwall and it seems pretty cool! I’ll be posting any new tutorials or code samples there.&lt;/p&gt;</description><link>http://patrickcole.tumblr.com/post/32548281183</link><guid>http://patrickcole.tumblr.com/post/32548281183</guid><pubDate>Sat, 29 Sep 2012 17:42:25 -0400</pubDate></item><item><title>Back to school..well kind of</title><description>&lt;p&gt;Well with a new school year for students, I figured I may as well join in on the learning. So, I have begun taking classes, well sort of. I found some great resources for learning some more programming languages and their concepts. So, I have been spending about 1-2 hours a night going through these resources.&lt;/p&gt;
&lt;p&gt;Currently, I am learning Objective-C core concepts and intro to Android Development. Why you ask? I am hitting the ground on Mobile App Development now. I have done a few projects with Adobe AIR&amp;#8217;s Packager to iOS and Android and I see why native applications are soo much better. In addition to Adobe AIR, I have dabbled in Phonegap/Cordova and once again, I see why native apps are better.&lt;/p&gt;
&lt;p&gt;In my opinion, mobile applications are the way of the future, they are going to somewhat replace websites. Application development is not new to the web, but it is definitely something to study up on. So that&amp;#8217;s what I&amp;#8217;m now focusing my energies on. Rather than working on my website, I want to build applications.&lt;/p&gt;
&lt;p&gt;I&amp;#8217;ll keep you updated on my progress, but if you want to check out one of the apps I have built, with Phonegap, you can download it &lt;a href="http://itunes.apple.com/us/app/voice-americas-mobile-wordbook/id536201749?mt=8" target="_blank"&gt;here&lt;/a&gt;.&lt;/p&gt;</description><link>http://patrickcole.tumblr.com/post/31379244729</link><guid>http://patrickcole.tumblr.com/post/31379244729</guid><pubDate>Tue, 11 Sep 2012 22:53:13 -0400</pubDate></item><item><title>Yeah I'm still here...</title><description>&lt;p&gt;I&amp;#8217;ve been working a lot.. seems like all I do.. Thank you for reading.&lt;/p&gt;</description><link>http://patrickcole.tumblr.com/post/28297260348</link><guid>http://patrickcole.tumblr.com/post/28297260348</guid><pubDate>Sun, 29 Jul 2012 20:04:08 -0400</pubDate></item><item><title>Making Love to WebKit</title><description>&lt;a href="http://acko.net/blog/making-love-to-webkit/"&gt;Making Love to WebKit&lt;/a&gt;: &lt;p&gt;&lt;a class="tumblr_blog" href="http://www.webkitbits.com/post/15961492442/making-love-to-webkit" target="_blank"&gt;webkitbits&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Steven Wittens redesigns Acko.net with some awesome 3d and parallax effects, based on &lt;a href="https://github.com/mrdoob/three.js/" target="_blank"&gt;three.js&lt;/a&gt; and a custom CSS3 3d renderer.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;This is why webkit is the best browser out there.&lt;/p&gt;</description><link>http://patrickcole.tumblr.com/post/15989423616</link><guid>http://patrickcole.tumblr.com/post/15989423616</guid><pubDate>Mon, 16 Jan 2012 22:28:04 -0500</pubDate><category>webkit</category><category>css3</category></item><item><title>Five Years Later...</title><description>&lt;p&gt;&lt;img src="http://media.tumblr.com/tumblr_lxk6x4kaxR1qaw7cv.jpg"/&gt;&lt;/p&gt;
&lt;p&gt;So it was five years ago today, Steve Jobs unveiled the iPhone. He made a bold statement by saying that it was 5 years ahead of any other phone out there. Well it&amp;#8217;s 5 years later and was Steve right?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Before, I begin I have to admit that I am biased towards Apple, but I encourage you to put your feelings aside and think about what was announced on this day, 5 years ago.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Obviously Android is very very popular now, but short of Android are there any other phones out there that truly rival the iPhone? Think about what has happened in the last couple of years since Android started rising in popularity and usage. Nokia has decided to drop its Symbian operating system and has decided to adopt Windows Mobile 7, which is still trying to gain some traction in the market. Research in Motion&amp;#8217;s BlackBerry OS phones continue to show decline in the market and HP (prev. Palm) webOS phones are almost nonexistent now.&lt;/p&gt;
&lt;p&gt;That just really leaves Apple&amp;#8217;s iOS (prev. iPhone OS) and Google&amp;#8217;s Android operating system. Despite the patent disputes and accusations of stealing ideas from both Apple, Google, HTC, etc.. Apple&amp;#8217;s iPhone really set the benchmark for Android (and other mobile operating systems.) So can we say Steve was right? I think he had a great head start and there are aspects of Android that still have not caught up for sure. To be fair there are aspects of iOS that have taken a long time to implement and others that are still lacking.&lt;/p&gt;
&lt;p&gt;It&amp;#8217;s really interesting to see how far phones have come in 5 years and how it has changed the entire landscape of mobile devices and the race to develop the next best thing for a mobile device.&lt;/p&gt;</description><link>http://patrickcole.tumblr.com/post/15595430317</link><guid>http://patrickcole.tumblr.com/post/15595430317</guid><pubDate>Mon, 09 Jan 2012 20:33:53 -0500</pubDate><category>apple</category><category>iphone</category><category>stevejobs</category></item><item><title>staff:

Keep your blog safe!
Never type in your password unless...</title><description>&lt;img src="http://24.media.tumblr.com/tumblr_lwx81vc0fQ1qz8q0ho1_r2_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;a class="tumblr_blog" href="http://staff.tumblr.com/post/15260097735/ev-cert" target="_blank"&gt;staff&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Keep your blog safe!&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Never&lt;/strong&gt;&lt;/em&gt; type in your password unless you see the green “Tumblr, Inc.” emblem in your browser.&lt;/p&gt;
&lt;p&gt;Spammers and other bad guys use fake forms to steal passwords.&lt;/p&gt;
&lt;/blockquote&gt;</description><link>http://patrickcole.tumblr.com/post/15292924607</link><guid>http://patrickcole.tumblr.com/post/15292924607</guid><pubDate>Wed, 04 Jan 2012 07:50:04 -0500</pubDate></item><item><title>Webkit is hands down the best browser engine out there right...</title><description>&lt;img src="http://25.media.tumblr.com/tumblr_luimbxwV7q1qad6z8o1_250.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Webkit is hands down the best browser engine out there right now. I’ve been able to achieve soo much in the past few days while using Webkit.&lt;/p&gt;</description><link>http://patrickcole.tumblr.com/post/12655864078</link><guid>http://patrickcole.tumblr.com/post/12655864078</guid><pubDate>Fri, 11 Nov 2011 16:28:45 -0500</pubDate><category>safari</category><category>apple</category><category>android</category><category>chrome</category><category>html5</category><category>css3</category></item><item><title>A Touching Story from the Apple Store [Cult of Mac]</title><description>&lt;a href="http://www.cultofmac.com/125021/a-touching-story-about-how-apple-earned-a-new-customer-for-life/"&gt;A Touching Story from the Apple Store [Cult of Mac]&lt;/a&gt;</description><link>http://patrickcole.tumblr.com/post/11710838047</link><guid>http://patrickcole.tumblr.com/post/11710838047</guid><pubDate>Thu, 20 Oct 2011 19:27:03 -0400</pubDate></item></channel></rss>
