Swift is a general-purpose programming language built using a modern approach to safety, performance, and software design patterns.
Everyone knows that Swift is an open-source language from Apple and is available on macOS machines. Some of you might even know that Swift can be compiled on iPadOS.
But did you know that Swift is also available on Ubuntu? If yes, have you ever tried it?
Let’s try this out here—this post will walk you through compiling a Swift file on Ubuntu.
If you have an Ubuntu machine available, you can skip to the Downloading Swift section.
Otherwise, don’t worry. I…
According to Wikipedia, an Environment Variable is a dynamic-named value that can affect the way running processes will behave on a computer. They are part of the environment in which a process runs.
It also gives an example, that the process can query for the value of an Environment Variable named ‘TEMP’ to discover the location to store temporary files.
When you are trying to run a server this example makes good sense. Another example will be of getting the port on which the server should run.
Apart from this, one of the most important use of Environment Variables is…
In this post we’ll look how Protocols and Dependency Injection can help us in writing pure testable code in Swift.
Purity of the class or API is determined by the dependency it has. For example, if you have an API to find sum of two numbers that accepts those two numbers as parameter, it is pure. There is no dependency to that API.
But if you have an API that adds a number to a global variable and accepts only one argument, it is not pure. Its response depends on the value of global variable and the arguments. …
There can be situation where you got your much awaited Pi Zero and you are waiting to get a micro USB powered keyboard, mouse and a micro HDMI connector for getting started with it. 😞
This tutorial will help you to get started with your Pi — with just a Windows/MAC machine, power cable, micro SD Card (with adapter — to urn image)and a WiFi connection.
I’ll be using the new Raspbian Jessie for my rPi. Read more on Jessie from here
Download Jessie image from this link. Or even you can get the latest of the Raspbian…
Using CoreML and Swift
One of the exciting features announced at WWDC 2017 was CoreML. Its the Apple framework that can be used to integrate machine learning into your app, all offline 😉.
Core ML lets you integrate a broad variety of machine learning model types into your app. In addition to supporting extensive deep learning with over 30 layer types, it also supports standard models such as tree ensembles, SVMs, and generalized linear models. Because it’s built on top of low level technologies like Metal and Accelerate, Core ML seamlessly takes advantage of the CPU and GPU to provide…
Linda Liukas is a Finnish computer programmer, children’s writer, programming instructor and illustrator.
She believes the Code is the next universal language. Everyone should be engaged in this revolution to make world a better place.
Code is the next universal language
She aims in engaging the next bigger generation to learn how computer programs work and not to see them as magic. She wants kids not to see computers as boring mechanical, complicated machine but as colorful, expressive machines meant to be tinkered with.
She has written a book named Hello Ruby which helps children to learn coding in a…
I love working on side projects and I spend a lot of time on side projects. I think of it as a playground for my experiments with new technologies.
2016 was a year of side projects for me. But sadly nothing graduated out of my moonshot lab last year 😞. The problem — Lack of inspiration after prototyping the MVP , as most of the developers say. Still 2016 gave a better learning curve in my graph.
“To practice any art, no matter how well or badly, is a way to make your soul grow. So do it.” …
Installing HomeBrew :
ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install node
npm install bower
sudo gem update --systemsudo gem install cocoapodspod setup
cd <Path to the project file>pod initopen -a Xcode Podfile
Edit pod file for the dependencies
via ARC Welder Chrome (40+) extension
Getting started with ARC (App Runtime for Chrome)