This blog post will cover how to make the conceptual leap from a naive O(n^2) solution to a O(n) solution. Rather than just giving an answer, the goal of this post is explain in detail how to think about approaching these problems to make that leap. The problem found on LeetCode: Given an array nums and a target value k, find the maximum length of a subarray that sums to k. If there isn’t one, return 0 instead. Example 1:...
Read MoreDestructuring is a feature of the ES6 spec that allows you to write less code to “data-proof” your functions. You can simultaneously declare variables while pulling them out of an object. Ultimately, I think it leads to more readable code by removing the repetition of a common pattern. There are a number of options for destructuring an object. The basic syntax looks like this: var { name, title, planet } = { name: 'Nic',...
Read MoreKaltura has been making great progress with simplifying the installation process for the Community Edition. I had previously had relatively easy success installing v9.x on a CentOS LAMP image VPS at Digital Ocean. Now that the current version is Jupiter v10.12, I wanted to install that on my own servers to give it a whirl. I have the BizSpark benefit at Azure, so I figured it would be great to have a media server without the money...
Read MoreGuest post: Today’s post will feature a tutorial for deploying Node.js apps on Digial Ocean by Raghuvir Kasturi, a multi-talented full stack engineer. Deploying Node.js applications is hard Ask anyone who’s jumped on the self-taught hacker bandwagon, gone through an online tutorial or two and then attempted to get their basic ToDo app to actually run on anything but localhost. This tutorial walks through setting up a very basic...
Read MoreBoth being Google technologies, you would expect that using Google Maps with Angular would be pretty easy. While that is generally true, there is also an abundance of documentation that can actually create some confusion. One might also expect Google Maps to take a street address, but that is not the case. Google Maps requires latitude and longitude values, which you can receive using the Google Geocoding API. This post will cover the...
Read MoreRecently working on a hybrid mobile app project with a few partners, we were using Github to store a were faced with wanted to share our app code and our server-side API code in a single repository. We wanted to be able to work on the API and deploy it to a server as a webservice but somehow keep it separate from our primary app code. We did not want to deploy our app code to the server nor did we want to bundle the API when we ran...
Read MoreAppgyver (as it is currently called at the time of this post) provides a tech stack that empowers developers to create a hybrid mobile app for Android and iOS. Built on PhoneGap, Cordova, Steroids, Ionic, and some others libraries, it integrates well with Angular. However, when it comes to storing your data, you are a bit limited in your options. Appgyver has native, easy to use integration for Built and Parse, or you can manually set...
Read MoreI admit it. I like pretty colors. When I see other devs in their pretty terminals, I get a bit jealous. For that reason, I installed iTerm 2 so I could use the color profiles. But none of the profiles seemed to do anything worthwhile. They never looked anything like the demos. All they seemed to do was change the base text color and terminal background. I wanted something that would at least show different colors for files and...
Read MoreA couple years ago, I used to use Firefox regularly for web development. I switched to Chrome as my primary browser because of better speed and a better developer console. However, there have been times when I have appreciated the 3D view in Firefox for debugging some pesky layout issues. Recently I fired up Firefox to use the 3D layout view. But it’s been so long since I’ve used Firefox’s tools, I couldn’t...
Read MoreThe title of this post may be a little misleading, as this post is really more about finding a way out of being stuck in asynchronous code purgatory. But the title is inspired by Google’s omniscient autocomplete search suggestion. While picking up some legacy code as a part of a hackathon, I was having trouble getting ng-repeat to display anything helpful on the view. While searching for answers, Google kept suggesting the...
Read More