A couple of weeks ago I went to the Sydney Developers Meetup. I wanted to meet up with other programmers in Sydney and get more involved with the Sydney technology scene. Having been in the UK for so long, I feel like I am really out of touch with what is going on in Australia.
I often have a problem in Xcode when I am working in the Storyboard, when I click on “Assistant” to open the related ViewController to add an Outlet or Action, and Assistant can’t find the related file.
It’s been a while since I experimented with using SQLite from Swift (like a few years). I found it painful the last time I tried, but thought I’d revisit it again. To my delight, it turns out to be straightforward.
I want to make sure that I can print out the version information from my Go builds. To do this I need to embed the current version information automatically into the application when I build it. Following the information at https://blog.alexellis.io/inject-build-time-vars-golang/ and this https://stackoverflow.com/questions/11354518/application-auto-build-versioning, I have the following boilerplate:
I had to time some C# code within a function in Unity3D. Without the professional version of Unity, you don't have a profiler. The code I used was the following:
long startTime = DateTime.UtcNow.Ticks;
// some code you want to time
long now = DateTime.UtcNow.Ticks;
long tm1 = now - startTime;
startTime = now;
// more code you want to time
now = DateTime.UtcNow.Ticks;
long tm2 = now - startTime;
startTime = now;
Debug.Log("tm1 = " + tm1);
Debug.Log("tm2 = " + tm2);
This worked for me and enable me to determine which part of the code was taking the time (not the part that I was expecting!).
There may be better ways to do this, but this worked for me.
The more I use Deep Learning, the more I am amazed by it. Some things which would be hard to do programmatically are easy with the right Neural Network. It feels like we are just starting to scratch the possibilities.
I just started experimenting with Image-Style Transfer. I've been excited about it for a long time, but reading this code on Nvidia's latest paper prompted me to start playing with it in earnest. Of course, in the Coursera Deep Learning courses we studied this as well. As I don't have an Nvidia card installed on my notebook, I started off with this Torch Implementation.
I was doing some work with Twitter Bootstrap 4 yesterday. It's amazing how many differences there are with Bootstrap 3 - it's changed a lot! All my old knowledge has gone out the window. I quite like it though - it does feel a little simpler.
I am programming Swift in earnest now. I am way more familiar with Objective C for building apps for Mac OS/X and iOS, but I have a few apps to write and Apple are pushing us to make the transition to Swift, so it's time to bite the bullet and use it as my primary language for a while.
It's quite nice working in a new language again. I am enjoying learning the design choices the Swift team has made in their language. There is some weird stuff, but on the whole it feels natural and sophisticated. It's great that they've open sourced it as well, so that I can potentially use it on my Linux servers. I'm not sure that it will replace Go or Python for doing any kind of Dev Ops, but it's great to have it as another option.