Home

Follow Skinkers.

 

Blog.

0

Git Push to multiple repositories simultaneously

January 24th, 2013 | git | Matt Bryson

Whilst working on our touch swipe project, I have been working with 2 remotes; the public gitHub repo, and our company repo.

With Git, this is super simple, just add another remote and give it a name and the url:


git remote add repo_name git@server.com:company/project/repo.git

With multiple remotes, you need to push to each remote individually, but if you simply want 2 remotes to be a mirror of each other there is a way to push to both of them at the same time.

Read the rest of this entry »

0

CodeIgniter : Using variables in language files

November 1st, 2012 | CodeIgniter, PHP | Matt Bryson

Codeigniter uses a fairly standard way of inserting values into strings within its language files.

You define your string with placeholders, and then use sprintf to format the string.


//In your language file...
$lang['welcome_username'] = 'Welcome %s.';

//then in your view or controller..
echo ( sprintf( lang("welcome_username"), "Bob") );
//Results in   "Welcome Bob."

However, for values that only really change per environment / deployment, it would be beneficial to be able to refer to them from within the language file, rather than having to format the string every time you want to use it.

Read the rest of this entry »

1

Latest handheld devices in for testing…

September 26th, 2012 | Fun, Games, Geekery | Matt Bryson

0

Unmasking Social TV misconceptions

September 7th, 2012 | IMI, Social, Thoughts | Steve Godman

Once the barriers have been removed, Social TV has the potential to revolutionise audience engagement

This year has been billed by many as the year of social TV. according to comscore, 78% of smartphone owners use their mobile device at least once a month while watching TV. The investment by broadcasters like Sky and the BBC in socially oriented programming such as Got To Dance and The Voice shows that social TV is no longer an interesting innovation, but now a strategic play for a number of industry heavyweights.

Consumers are embracing Social TV, as are a handful of broadcasters, so why haven’t we seen more broadcasters grab the Social TV opportunity with both hands?

Read the rest of this entry »

0

Testing / Tethering Data Driven Mobile Apps with Charles and OSX (ipad / iphone http debugging)

June 12th, 2012 | Apple, HTTP Debugging, iOS, iPad, Mac | Matt Bryson

We often need to test how our mobile applications run under slow network conditions, as well as verifying that web service upgrades / API changes are backwards compatible.

Using Charles on OSX provides an amazingly simple way to do this.

Read the rest of this entry »

2

Multithreaded Flash Player…

June 11th, 2012 | Air, Android, Apple, AS3, iOS, iPad, Thoughts, titanium | Matt Bryson

Adobe have announced they are finally introducing multithreading in to the Flash player / Air runtime, allowing you to run expensive cpu hogging code in the background which doesn’t impact on you lovely UI layer.

There is a great article on byteArray about it :http://www.bytearray.org/?p=4423.

The only worry is, it appears to create a virtual flash player for each worker thread, which according to the article needs a 7mb footprint, so from a mobile development perspective, I’m not too sure how efficient this approach will be.

Defiantly a step in the right direction, but enough to bring the performance of Mobile Air apps up to speed with Native / framework apps like MonoTouch and Titanium? We will have to wait and see when its released into Air for mobile.

5

Phonegap Orientation Plugin

April 24th, 2012 | Android, iOS, iPhone, JavaScript, Phonegap, Uncategorized | Adam Maloney

Recently we did a cross-device project using Phonegap, one of the requirements was to enable rotation specific pages i.e.portrait would show one view landscape another and restricted to portrait only for others.

Unfortunately, phonegap doesn’t support this, and restricting to one orientation defined in xcode/android manifest means didn’t fire the orientationchanged event. To get round this I created a plugin that could change the orientations from inside the phonegap application, so the orientationchanged event could fire, then I could change the view.

Check it out here for iOS (Android version coming soon).

 

0

Xcode 4.3 and Titanium – getting the new Retina iPad Simulator to work with Titanium

April 3rd, 2012 | Apple, iOS, titanium | Matt Bryson

The current Titanium SDK (1.8.2) doesn’t support Xcode 4.3, as Xcode 4.3 has a totally different structure in terms of tools and utilities. Until Ti 2.0 comes out, here is what you can do to get it working:

1) Follow the instructions on the TI web site
http://developer.appcelerator.com/blog/2012/03/titanium-and-xcode-4-3-revisited.html#cheatsheet

2) This might not be needed on CI builds, but was on my release build:
Open TI Studio, go to Preferences >Titanium Studio > Titanium – and hit the REFRESH button on the IOS SDK home (it should update to the Xcode 4.3 path in Applications)

3) I cant ever change the IOS Simulator settings from within TI, it always crashes, so I usually open the IOS SIM myself, change the device, and then launch from TI. So to select the Ipad Retina, launch the NEW IOS Sim from here:


open /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/iOS Simulator.app

And then go to Devices > ipad (retina)

Now you should be all set.

As I often use spotlight to launch the IOS sim outside of Ti, I created a launcher app for the new Sim (A Symbolic link doesn’t work as spotlight thinks its a system file).

Download IOS Sim 5.1 launcher
m

UPDATE
I initially upgraded Xcode and kept my 4.2 install, but this caused all manner of issues after a few hours, and TI couldn’t compile – kept looking in the wrong Xcode dir for some libs.

Installing on a machine with JUST 4.3 works fine though.

7

Getting MAMP to run on OSX Lion / Upgrading phpMyAdmin

March 27th, 2012 | Uncategorized | Matt Bryson

I had been looking for a good alternative to WAMP to run on OSX, and decided to give MAMP / MAMP Pro a go. It looked pretty good, but I had a few teething troubles getting it all up and running, mainly;

  • Apache wouldn’t start
  • Then phpMyAdmin wouldn’t run

This is what I did to get it running (and upgrade phpMyAdmin).
Read the rest of this entry »

0

Generate visual Stats / Graphs from a Git repository (on OSX)

February 13th, 2012 | git | Matt Bryson

I was looking to get some slightly more detailed stats out of a git repo, more than just the command line stats you can generate. There are a couple of tools out there that generate graphs and charts for you, but they rely heavily on external libraries.

The best looking one was GitStats http://gitstats.sourceforge.net/ (example). But after checking off the pre reqs of Python, X11 and downloading and compiling GnuPlot it still wasn’t creating PNG graphs due to missing 3rd party libraries!! It was proving to be a bit of a pain, but I finally managed to get it all working with just 2 downloads (I already had python) – GitStats and a pre compiled binary of GnuPlot that contains all the 3rd party dependencies used by GitStat.

Below are some simple steps to get it up and running on OSX:

Read the rest of this entry »