MPMoviePlayerController Black Screen When Fading

Let’s say you want to animate a new view controller in and immediately start playing a video. You might things it’s as easy as taking a static image of the first frame of the video as the background and then crossfading the video overtop when it’s ready to play…right? Kinda. This was a 24 hour bug for me. I kept seeing

Local Website in an IOS App

So you’re a master at html5 and you want to build a native app on ios, but you don’t know swift or objective-c. No worries, there are a ton of platforms out there to help with this. But with some basic knowledge of ios you can build an using mostly web technologies! What we will do is a build a locally

Timelapse Movie of Your Desktop While You’re Working

i want to start doing timelapses of coding while I’m working, so here goes: First off set up a terminal command to take a screenshot every 25 seconds: [pastacode lang=”bash” message=”” highlight=”” provider=”manual”] i=1;while [ 1 ];do screencapture -t jpg -x ~/Desktop/TrickyWays/$i.jpg; let i++;sleep 25; done [/pastacode] Next stitch together the screens with ffmpeg: [pastacode lang=”bash” message=”” highlight=”” provider=”manual”] ffmpeg

Inline Video on the iPhone

This is an example of inline video playing on the iphone Use cases include webGL video textures, interactive video experiences, and video timing projects. Please contribute to the project: https://github.com/newshorts/InlineVideo/blob/master/js/inline-video.js An example: /*! * Inline Video Player v0.0.1 * https://iwearshorts.com/ * * Includes jQuery js * https://jquery.com/ * * Copyright 2015 Mike Newell * Released under the MIT license *

How to Circumvent Annoying Adblock Messages

As you load a new site, a message appears that tells you to disable your adblock plugin so you can see ads on their site. I hate this. It ruins my experience and makes me never want to come back. However, if you’re determined to get in, there’s hope. Many sites, just put a popup overlay on the page to

Calling UIWebView from JavaScript

you think you’re soooo smart making a responsive site that gets loaded into a webview so you can say you made a native app…clever. until you realize you have to set some settings and need a pipeline between javascript and objective-c! This will help you out. There are a couple libraries out there: https://github.com/newyankeecodeshop/GAJavaScript https://github.com/marcuswestin/WebViewJavascriptBridge From JavaScript to Objective-C if

Javascript Object Cloning Without jQuery

If I really need to clone an object (almost never) I just use jQuery.extend – because someone far better than me wrote the cloning function and I trust them 🙂 However, I recently discovered this nifty little process that can be used in a pinch. It might be expensive for large operations, but it’ll work on your smaller objects/arrays: [pastacode lang=”javascript”

Augmented Reality with getUserMedia and Mobile: Part 1

Hey ya’ll, This is going to be a multipart series talking about using getUserMedia on a mobile device to get a camera stream and ultimately use it to for the purpose of augmented reality. Eventually, I will introduce some webGL components but for now let’s get up and running. First let’s take a look at compatibility: http://caniuse.com/#feat=stream you need to make sure you’re

Get Your Turtlebot on mDNS with a .local Address

I have a turtlebot here at work. I am sick and tired of sshing into randomly assigned IP addresses. Luckily, there’s something called mDNS which allows you to reserve a hostname.local for your turtlebot. Instead of sshing to something like: [pastacode lang=”bash” message=”” highlight=”” provider=”manual”] ssh turtlebot@10.20.1.113 [/pastacode] You can ssh to: [pastacode lang=”bash” message=”” highlight=”” provider=”manual”] ssh turtlebot@turtlebot.local [/pastacode]