EE / Apple Wifi Calling

I've moved house, and the EE signal sucks. "No problem", I thought, "EE had enabled Wifi Calling a few days earlier - I'll give it a shot".

It works generally ok - but only on my Wife's iPhone, and not mine. Seems that EE have only enabled it on Personal contracts and not the Corporate contracts. They have, however, pushed out the carrier profile update so you see the option - although it does absolutely nothing but tease!

The one gripe that I have, other than not being able to use it, is that whenever the phone sees a tiny bit of network signal it tries to switch from Wifi - which means you drop the call. This happens ware more than I'd put up with generally and the only way round it that I've found is to enable Airplane mode and then re-enable Wifi. Not the best user experience, but I guess this one is down to Apple's mistake!

Heres hoping that EE and Apple can resolve the glitches on it.

Deploying Cloud Foundry with vSphere - Part 2

Now, I decided to try a "light" installation of Cloud Foundry as this isnt going to be production ... normally it seems you deploy BOSH then you deploy Cloud Foundry from that, but light uses bosh micro.

Create a folder to hold your installations, then run

brew tap xoebus/homebrew-cloudfoundry

brew install spiff

git clone https://github.com/cloudfoundry/cf-release

git clone https://github.com/cloudfoundry/bosh-lite

./bosh-lite/bin/provision_cf

Things will then kick off -- downloading th ebasic stemcell and pushing things onto the bosh micro director to perform.


Deploying Cloud Foundry with VMware vSphere - Part 1

Cloud Foundry is an interesting portal / management system from EMC's Pivotal Lab's team to allow you to (essentially) manage docker and the associated infrastructure it provides.

But one of the features I love the most is that it will directly integrate with VMware vSphere and take so much of the pain away.

However, the initial setup can be a bit ... awkward, so I thought I'd document how I got it working.

First off, I assume you have a fully working vSphere setup - so ESXi hosts configured and running, along with the vSphere Appliance or installation on a windows box somewhere. I tested this with vSphere 6.

Next, give the instructions a read: http://docs.cloudfoundry.org/deploying/vsphere/
Now, my private setup for testing was no where near the minimum specifications (I run a couple of HP MicroServers at home for testing things) but this didn't stop me continuing!

One thing to bear in mind, if you have multiple ESXi servers, make sure you have a datastore mounted on them both that can be shared ...

The first main step to deploying Cloud Foundry is deploying the MicroBosh image onto vSphere.
Pretty straight forward, but some jumping around is needed. Create a folder on your machine to hold things, and create the manifest.yml as per the documentation. Go through and replace the various items (such as IP address any thing in caps) thats need to be done to make it valid -- note that you need to use a vSphere Cluster and shared storage here -- I cheated, and had a cluster with a single node and an NFS Datastore that I'd created earlier.

After that, grab MicroBOSH off the web. Installing this onto my Mac OSX literally took opening a terminal and running the command, thanks to Yosemite already coming with a ruby install - but I did need to run it sudoed!

With Bosh on your machine, the next thing is a stemcell. This is basically the "starting point" for Cloud Foundry it seems.

So ...

Downloaded the stemcell with: 

bosh download public stemcell bosh-stemcell-2969-vsphere-esxi-ubuntu-trusty-go_agent.tgz

Preped the deployment with: 

bosh micro deployment manifest.yml

When I went to deploy using: 

bosh micro deploy bosh-stemcell-2969-vsphere-esxi-ubuntu-trusty-go_agent.tgz 

I got an error: 

either of 'genisoimage' or 'mkisofs' commands must be present

Fixable using: 

brew install cdrtools 

(you need homebrew installed, google it).

I also encountered an issue with the stemcell I'd picked that wasn't actually provisioning the network ... initially I thought this was a bug with the process as no errors where given, but I then discovered (after a lot of googling) I had an error in my manifest.yml file. Seems it's really sensitive and there's pretty much no validation.

Full console output of provisioning micro bosh:

iMac:micro-deployment andy$ bosh micro deploy bosh-stemcell-2969-vsphere-esxi-ubuntu-trusty-go_agent.tgz 
No `bosh-deployments.yml` file found in current directory.
Conventionally, `bosh-deployments.yml` should be saved in /Users/andy.
Is /Users/andy/micro-deployment a directory where you can save state? (type 'yes' to continue): yes
Deploying new micro BOSH instance `manifest.yml' to `https://192.168.0.30:25555' (type 'yes' to continue): yes
Verifying stemcell...
File exists and readable                                     OK
Verifying tarball...
Read tarball                                                 OK
Manifest exists                                              OK
Stemcell image file                                          OK
Stemcell properties                                          OK
Stemcell info
-------------
Name:    bosh-vsphere-esxi-ubuntu-trusty-go_agent
Version: 2969
  Started deploy micro bosh
  Started deploy micro bosh > Unpacking stemcell. Done (00:00:07)
  Started deploy micro bosh > Uploading stemcellat depth 0 - 20: unable to get local issuer certificate
at depth 1 - 19: self signed certificate in certificate chain
. Done (00:22:07)
  Started deploy micro bosh > Creating VM from sc-54cdca8c-6b13-4c3d-ae48-5bc57d9b93ffat depth 0 - 20: unable to get local issuer certificate
at depth 0 - 20: unable to get local issuer certificate
. Done (00:21:46)
  Started deploy micro bosh > Waiting for the agentat depth 0 - 20: unable to get local issuer certificate
at depth 0 - 20: unable to get local issuer certificate
. Done (00:02:23)
  Started deploy micro bosh > Updating persistent disk
  Started deploy micro bosh > Create disk. Done (00:00:02)at depth 0 - 20: unable to get local issuer certificate
at depth 0 - 20: unable to get local issuer certificate
  Started deploy micro bosh > Mount diskat depth 0 - 20: unable to get local issuer certificate
at depth 0 - 20: unable to get local issuer certificate
. Done (00:01:35)
     Done deploy micro bosh > Updating persistent disk (00:01:50)
  Started deploy micro bosh > Stopping agent services. Done (00:00:01)
  Started deploy micro bosh > Applying micro BOSH specat depth 0 - 20: unable to get local issuer certificate
at depth 0 - 20: unable to get local issuer certificate
at depth 0 - 20: unable to get local issuer certificate
at depth 0 - 20: unable to get local issuer certificate
at depth 0 - 20: unable to get local issuer certificate
at depth 0 - 20: unable to get local issuer certificate
. Done (00:06:16)
  Started deploy micro bosh > Starting agent services. Done (00:00:00)
  Started deploy micro bosh > Waiting for the directorat depth 0 - 20: unable to get local issuer certificate
. Done (00:01:14)
     Done deploy micro bosh (00:55:44)
Deployed `manifest.yml' to `https://192.168.0.30:25555', took 00:55:44 to complete
at depth 0 - 20: unable to get local issuer certificate

After that you can check the deployment is valid by: 

bosh target 192.168.0.30

You should be prompted to login; in my case (because of my yml not defining anything) the default credentials of admin / admin were valid.

Next step, deploying BOSH.


Umbraco 7 on Azure Website

This weekend I decided to finally get around to moving two static websites from being a Website MVC Project in Visual Studio to something that the wife could look after - so I set about rebuilding them in Umbraco.

Considering it's been a while since I used Umbraco, I was tempted to download it and create a new project, throwing it in via Nuget. But then I noticed it was on the Azure Website Gallery. A few clicks later, a website is working (New, Website, From Gallery, Umbraco), and even running on a free Web SQL Database (20 Mb limit) -- however, I do wonder how this is going to pan out, as the Web tier is due to be retired this September. 

Once there was a basic instance running, the next thing is to obviously starting building out the templates and document types - and creating the sites (I run both sites off a single instance of Umbraco, and just use the Hostname mapping feature it has).
The problem appeared when it came to FTPing to the instance - I keep forgetting that the nodes (in this case running in a cluster) take a while to synchronise - so if you edit you need to wait ... Or, as I found out, it's easier to enable Monaco (Visual Studio Web editor) that works with Azure - that way you can do the edits, hit save and its instant.

Finally, a quick upgrade by grabbing 7.2.4 from the Umbraco website and replacing bin, Umbraco, Umbraco_Client and the Views\Partials\Grid folder and I was done.

My only grip? The Azure installer doesn't give any indication, nor method, for changing the configuration thats held in the Config\umbracoSettings.config file - some of which (like mailserver) users probably want to alter easily without messing with FTP.


BlogEngine.NET and MySQL Site Map Provider (.NET Connector)

I just encountered an error that had me stumped for a short while - I installed the .NET MySQL Connector onto one of my servers and suddenly my installation of BlogEngine.Net ceased to work - I was unable to login to the admin, and just encountered the yellow screen of death.

After a little digging, I identified that the MySQL Connector had modified the machine.config, and added it's Site Map Provider into the list. As this wasn't configured, it was throwing an exception in the BlogEngine.NET code...

The fix? Simply adding <clear /> to the siteMap Providers list within the system.web block in the root web.config and the site sprang back into life!

David vs Goliath (InstallAware vs Embarcadero)

Everyone who reads my blog knows my history; and they know that I’ve worked with InstallAware several times in the past. I’ve also been a strong supporter of both InstallAware and Embarcadero (simply as the latter purchased Delphi … which I still regard as a superb development IDE but that's a different topic).

I’ve recently come across this blog post on the InstallAware blog; detailing a current legal spat that has developed (or is developing) between these two companies – and I have to say, I am appalled. That Embarcadero can treat other companies that they have worked closely with (well, I guess it was with Borland / CodeGear but would have expected the legal agreements to follow …) the way they are.

During the blog post, Sinan lays out the chequered history of various behind the scenes business movement – much of which will have been totally unknown to people on the “outside”. But he also opens the doors onto what is going on now – and it all stems from an attempt to patent troll (whereby InstallAware was held liable – standard practice unfortunately in this game, but still you would expect a degree of assistance).

What you wouldn't have expected is their attitude to things – basically a different rule for themselves vs what they expect from others. Not providing access to their own tooling, to a registered tech partner, but expecting what appears to be a life-long enduring contract for InstallAware to provide access to (and hosting of) various components that they see fit to use. Without providing any compensation for these.

It makes me wander what their next move will be – and just goes to remind me that business these days is all legal – it does seem that true innovation is dead. Perhaps this is what the future will be once everyone gets their hands on software patents?

GIT-Adding new files

Have to say this is a remarkably easy operation in GIT. Drop the files in the directory, open the GIT GUI and you’ll see it marked under unstaged changes.

image

Double click the file, and it will move to staged changes – that is, it will be committed to the repository when you commit.

Then click Commit.

Note: If the files are not listed, click Rescan.

Note 2: When you commit, you commit to your local repository – you then need to “push” to the remote repository.

GIT-Getting Started

Using GIT for the first time can be exceptionally confusing – its a different world to a lot of the source control systems out there!

First off, download the GIT GUI; for this post, I’m running the Windows version.

You’ll need to create an SSH key if you haven't already got one for connecting to your GIT server; to do this click Help then select Show SSH Key. If you have an active key, it will show here – if not, click Generate Key.

Next, we need to sort out a repository.

image

Select Create New Repository.
You will need to specify a local path for the repository.

Once you have a repository up, you need to “pull” from the central store – click Remote, then Add. Fill in the details given to you by your GIT repository admin.

image

And you should be good to go.

More to follow on general usage Smile

Visual Studio-My favourite extensions

I spend my life working in Microsoft Visual Studio – and that’s no exaggeration. I work in it pretty much all day (day job => developer, kinda obvious), but then I also spend a fair bit of time outside of work doing development – be it for friends / family, but more so these days as the freelance developer that I still try and keep going.

Now, I’ve been working with Visual Studio since the early days of .NET framework – so that's back to 2003 (so 2002 release I think?), and over that time I’ve tried lots of different extensions – some good, some very bad.

These days I’m using:

Telerik JustCode [Website] [My thoughts]
A refactoring, code stat, cleanup and all round absolutely “can not do without” tool. I love this tool, and I have to say, it’s one I don’t object to paying for.

VSCommands [Website]
I look at this as basically what Microsoft should include in Visual Studio, but don’t. Another un-grudged paid for extension.

NuGet
Most real-users of Visual Studio will have encountered this one now. I’m not a MASSIVE fan, but really, you can’t get away without it with some projects these days. Personally think it will just be another tool that ends up being a mess …

Python Tools for Visual Studio [Website]
I’ve been (un)lucky to have been required to do a fair amount of Python work in the last year, and I found this plugin while I was (ironically) finishing the particular project. And it made my life so much easier – working in familiar IDE doesn’t half help your productivity!

There are also a few “external” tools that I use rather often (yes, I do use OTHER PEOPLES tools instead of just re-inventing the wheel all the time!!)

CleanProject [Website]
A small tool to strip all the crap out from Visual Studio project directories – perfect for when you need to email it or slam it into DropBox etc.

2012 is with us !

So, without much ado, it seems that 2012 has arrived. Kind of snuck up on us didn’t it? Well, I think it has – can’t say that 2011 felt like it lasted as long as it should have!

2010 wasn’t much of a year.
2011 wasn’t great either.

Here’s hoping that 2012 will be a good one. Got lots of plans, lots of ideas, lots to push for – but lets see if I can actually get there this year!

Hope everyone had a good Christmas and New Year break, but unfortunately it’s almost time to return to work!!