HTC One M9 – I’d wait for something else…

I bought an HTC One m9. Having previously owned an M7 I thought I was in for a wonderful time. Nope. The following has been my experience: The camera is alright, but the M7 camera I felt was better. Even though this one shoots in 4k. Also, it’s extremely slow if you decide to save everything to a memory card

Browser Won’t Display SVG Locally?

Ok here’s the sitch. You can pull in svg from a cdn and everything work. But when you try and use your local svg graphics, everything goes to shit. It’s probably that you’re not serving svg in with the right headers, especially if you’ve saved your svg graphic from illustrator. There’s a great explanation here: http://kaioa.com/node/45 If you’re running XAMPP do

IOS Development Tips and Tricks

Ok, this will be on-going. Below you’ll find a collection of tips and tricks to get things up and running: XCode keep it up to date with the latest from app whenever possible let XCode do all the work when setting up and provisioning profiles (Preferences –> accounts) When your development environment is setup and working, export your developer profile

IOS Native App Dimensions

Been a while since I made a native app for IOS, this article is to refresh my memory and hopefully it might be useful to someone else. Forgot the screen dimensions but found a great resource here: http://iosdesign.ivomynttinen.com/ The screen sizes are as follows: So for retina devices, you would multiply the dimensions of the image by 2 or three

Export SVG from Illustrator

To export just do: File –> Save As… –> SVG Then do these settings: That’s it! Now you can place the svg in your page. More here: http://creativedroplets.com/export-svg-for-the-web-with-illustrator-cc/

A Difference Between JavaScript Arrays and Associative Arrays

I’ve been crunching a large government dataset for a project I’m working on. I had to key an array with the ids of some of the data. However, I noticed when I tried to stringify my array, it produced a ton of null values. It took me a second to realize this: // an associative array in javascript is really just an

Javascript Inheritance: Prototype not Available in Instances

Just for reference. You may be dealing with Javascript inheritance and wondering how the hell you can look things up? For instance, lets say I have a Javascript class for animal, then another for cat and finally one for a tabby cat. Let’s say I’ve defined some things in each and I want to know what methods I can call?

Blow Up Doll High Five with Arduino and a Relay

We wanted to make a “high five” bot at work, because… This was my first test, basically, an arduino runs a sonar range finder, when it detects an object within a certain distance, it activates a relay which allows current to flow into an air pump resulting in the blow up arm extending for a high five! Here’s the code: [pastacode

Easily Embed Javascript into a Gif Header

ok, first off, don’t do this… Let’s say you find a website where you can add “script” tags to a page. Well usually, you can’t do anything with it since browsers won’t let you execute a file from another site. To work around that, we can load a gif in the source: [pastacode lang=”markup” message=”” highlight=”” provider=”manual”] <script src="something.gif"></script> [/pastacode] Well,

How Easy is it to Break JavaScript?

simple, accidentally type an uppercase “Object”: [pastacode lang=”javascript” message=”” highlight=”” provider=”manual”] var Object = 'test'; console.log(Object); [/pastacode]