My lessons from life and software development

  • Internet Explorer document mode not default on page load

    If you ever come across a website that renders as though it’s in IE7, even though it’s IE9 or later, try checking the meta tags. It probably has this set: <meta http-equiv=”X-UA-Compatible” content=”IE=EmulateIE7″> This tells the browser to render as though it’s Internet Explorer 7 no matter what the version. If you need to detect whether this is happening…

  • 404s when using Google Pagespeed Service

    We recently tried Google’s Pagespeed Service to see if it was quicker and easier than using a CDN. Quick answer – it didn’t help us too much. But I did encounter a number of weird 404’s when testing it out that I thought I might document. Before we made any permanent changes we of course…

  • Image is rotated when viewed on mobile phone browser

    When developing a mobile app, I noticed that one person’s profile picture was showing up rotated sideways. When I visited this on my computer browser, it appeared fine, but when trying with an iPhone it was always to the side! At first I thought this was a coding problem, but I realized that if I…

  • Actual cost and time commitment to become a pilot

    I recently completed an intro package to flying and I learned a lot about what it takes to become a pilot. I’m documenting the steps along with the money and time needed because I couldn’t find a realistic viewpoint anywhere else. Steps Complete Ground School Training (classroom instruction) Pass written FAA exam Complete Stage 1…

  • My Intro Flights with Golden State Flying Club

    For Christmas my girlfriend had given me a certificate good for the intro package at Golden State Flying Club. They’re a small aviation school based out of Gillespie field in El Cajon (San Diego), CA. She got it for under $150 and it included 2 sessions of their classroom training, a manual and a flight…

  • Facebook IFrame using Static HTML app is too slow

    I was setting up a Facebook Page for a client and noticed that it was taking forever to load the IFrame I had pointing it to. When I visited the IFrame contents without going through Facebook it was really fast, but when through Facebook it took up to 5 seconds before it even started loading…

  • Getting the scrollTop() of an IFrame – always returning 0!

    I recently had a project where I had to require that a user scroll down the terms and conditions and privacy policy before they could check that they agree to them. I read everywhere that in order to get the position of how far down the scroll bar is you have to use $(element).scrollTop(). But…

  • Determining current number of clients in apache in real time

    A server I was recently working on kept crashing because it was getting too many connections. This is normally a sign of popularity, but when it prevents people from being able to access your product that’s not a good thing. The first step in handling an issue like this is monitoring it in real-time so…

  • BuckShot: IPhone App sold for way too much

    An ipod/iphone/ipad app went on a sale last week through ebay. Starting bid was $1, and I was curious to see how much it was going to sell for. It was called BuckShot, and it was a simple app that is described as a “Multi Player Photo Scavenger Hunt Game.” It was created back in…

  • Uncaught TypeError: Cannot set property ‘touchstart’ of undefined for JQuery UI DatePicker

    I kept getting this error when trying to integrate the JQuery UI DatePicker (http://jquerymobile.com/demos/1.0a4.1/experiments/ui-datepicker/) into one of my pages: Uncaught TypeError: Cannot set property ‘touchstart’ of undefined Finally realized that I was using a very old version of JQuery. Once I upgraded to the latest version it started working. Hope that helps you!

About Shane

Shane is the creator of musician’s tool SongKeyFinder, and developer inspiration CodeKindly