Swift (2)

Swift2
https://developer.apple.com/library/prerelease/mac/documentation/Swift/Conceptual/Swift_Programming_Language/index.html

The book is also available as an iBook. The chapter A Swift Tour can be opened as a playground in Xcode, in which you can modify the source code to get the result, or an error message, immediately.

functionParameters

One interesting thing with Swift is that function parameters have both an external parameter name and a local parameter name. In the above example, to and and are external, and person and anotherPerson are internal parameter names, respectively.

Swift

Swift

So in the last five years, during my absence from the Apple world, many things have happened, including the release of Swift in 2014.

Xcode

Let’s see how it looks like with the latest version of Xcode. Shall I start with a playground?

playground

IC-7410 Rig Control on OS X?

1L

Since I only buy apples every four years, it was around in 2010 that I was using Xcode, an integrated development environment (IDE) by Apple.

At that time I had some programs dealing with audio signals. I was using Eclipse on Linux for a development environment, and wondered if the same source code is buildable on Xcode, which turned out to be true including graphics.

OpenGL

https://developer.apple.com/library/mac/documentation/GraphicsImaging/Conceptual/OpenGL-MacProgGuide/OpenGLProg_MacOSX.pdf

It was because OpenGL and GLUT are both supported in OS X, and the libraries libsndfile and libfftw3 had their OS X versions.

IC7410faq

Anyway, it was five years ago, and my current concern is if my IC-7410 Rig Control programs can be ported onto OS X with minimum or reasonable effort.

Mac mini (Late 2014)

Selection_090

This is my third Mac. The first one was an iMac (Mid 2007), and the second was a MacBook Air (Mid 2011). I must admit that I am not a very enthusiastic Apple fan, because I am buying only once in four years.

Using a Mac is similar to using a shared hosting service in a sense that everything you do there must remain superficial, but you feel comfortable in that very fact.

Shared web hosting service

sharedserver

I was using a VPS (Virtual Private Server) before, but this time I decided to use a shared service. System administration is something you can not do with such services, but for many purposes it does not matter very much.

I also obtained my domain name ***.click, where click is one of the new top-level domains. Do you know any sites in the domain click?

One small surprise for me was that the operating system of the host is FreeBSD. It was a surprise because the hosting company was offering CentOS, a Linux distribution, as default for their VPS services, and FreeBSD was added to their menu only somewhat later.

INKSCAPE

Selection_088

I usually use GIMP when I want to do Photoshop like manipulation, but sometimes you need to deal with vector graphics.

So here comes INKSCAPE. This is my first time to use the software, and I hope that my learning curve is steep enough.