with Tensorflow 2.0: Vectorization

Andrew Ng’s Coursera course starts with talking about how using vectorized operations instead of for loops can drastically improve the performance of machine learning and deep learning computations. The course talks about implementing functions such as sigmoid, softmax and more using Numpy. In this series, we’ll go through implementing the entire using tensorflow 2.0. This post talks about implementing vector operations using the tensorflow framework.

Hosting a Gatsby Static Site on AWS S3 and Cloudfront

Jekyll introduced me to the world of static site generators. The developer experience of pushing updates to your GitHub repo and seeing the updates reflect on the Github pages was quite satisfying. No build step required. While over the time, I have tried several other static site generators such as Hugo and Hexo, the one that I went ahead with is Gatsby. Introduction Gatsby is a static site generator which uses modern tools as such React, Webpack, and GraphQL to create a developer experience that is unmatched.

Correctly handle async function errors in Javascript

How we write asynchronous code in JavaScript has changed drastically in recent years. We went from callback to promises and now we’re in the sweet async-await land. With tools such as Typescript allowing developers to use async functions to target even es3 supported browsers, the adoption of async functions is only going to increase. Handling Errors using Try-Catch Handling erros when using async functions is done using try catch. For example:

Using UIPickerView as an input view to UITextField in iOS using Swift 4

Android has Spinners to restrict users to a particular set of values in a form. Limiting the user to a set of values when entering data in a text field is not natively supported in iOS. However, UIPickerView or UIDatePicker can be configured as input view to a text field to achieve this functionality. We’ll explore this idea further in this blog post. Initial Setup Create a new single page app with Swift as the language in XCode.

Creating an Audio App - Playing Audio using Swift 4.0 on iOS

I recently had to create an audio player and recorder in an app that I was commissioned to build. The Audio Recorder+Player can record audio and, play local as well as remote files. I’ll share whatever I have learned in this tutorial series on creating an Audio Player & Recorder. Setting up the environment Let’s start by creating a single page app. Add any mp3 file to the project. You can download a sample audio file from here.