pyMacWarranty variant in Swift on my GitHub

Posted a new swift command line tool to accept serial number data from an Apple device and respond with warranty information about a device at This is based on pyMacWarranty, at Screen Shot 2016-03-15 at 10.34.41 PM

Simple Swift Project To Run A Bash Script When A User Clicks A Button

New project on Github to run a bash script when a user clicks on a button. This is pretty basic, easily customizable, lots of stuff you could add, and with a license I’m sure anyone can appreciate. Screen Shot 2016-03-08 at 8.26.13 PM Hope you enjoy.

Hello Swift

Let’s do a typical Hello World example in Swift. I have Xcode installed, so I can invoke a swift environment using xcrun, a command to start an interactive Xcode environment and then defining swift as the language I want to use, as follows using a standard Mac terminal session: $xcrun swift Then I get a welcome screen, which is kind: Welcome to Apple Swift version 2.1.1 (swiftlang-700.1.101.15 clang-700.1.81). Type :help for assistance. Then, I can throw some string into a variable: 1> let mystring = "Hello Swift" And I get a response that the string was accepted, as a string: mastering: String = "Hello Swift" Then I can just echo that string out, popping it into a quoted and parenthetical (since it has a variable inside it, made regular by the \): 2> print ("mystring is \(mystring).") And I get the following response: mastering is Hello Swift. Pretty simple syntax. We can also use two strings and then use the + operator to concatenate (a typical programming task): let firstword = "Hello" let secondword = "Swift" let mystring = firstword + secondword print ("mystring is \(mystring).") Now that the basics are out of the way, why not build a Swift API…