Moomosa

Hey everybody! I thought I’d do a quick intro on an app I started working on. Drum roll please… Moomosa! It’s a React-Native application that uses Firebase as a database at the moment (more on this later). That database is managed with a React application I developed to add, delete, and approve new content. I … Read more

Creating a Blank File From your Terminal

My Computer Setup How To Create a Blank File From your Terminal Ever need a blank file to mock up a file system while on Linux? USE TOUCH! It’s pretty useful when you’re navigating through folders and want to spin up a doc really quick. If you then just list what’s in your current directory, … Read more

Javascript’s Filter on an Array of Objects

Are you trying to use Javascript’s filter on an array of objects that contain arrays? Are you having trouble getting it to return elements to conditionally rebuild that array? I had the same issue and blamed the filter method for a quick sec. Buuuut lo and behold it was me as always. Still new to … Read more

IndexError: only integers, slices (`:`), ellipsis (`…`), numpy.newaxis (`None`) and integer or boolean arrays are valid indices

Soooo you got the IndexError: only integers, slices (`:`), ellipsis (`…`), numpy.newaxis (`None`) and integer or boolean arrays are valid indices error. Let’s get that annoying message fixed. My Computer Setup For those Short On Time You’re trying to access an element of a Pandas index like df.columns where df is a DataFrame by using … Read more

Create a Class in Python3

So how do you create a class in Python3? What is class? Why do we need a class? All great questions. My Computer Setup Python3 (Finally getting used to adding parentheses around my print statements ) macOS What is an object? So let’s go over what a class is. Classes are the preliminary step to … Read more

Filter a Pandas DataFrame in Python

We’ll be showing you how filter a Pandas DataFrame in Python. So let’s set the scene. You work for a massive food company that sells deli meats and fruits. You’ve been toiling at your computer for hours trying to create a dataframe of your company’s product info. Department XYZ needs that data so they can … Read more

Clone a Git Repo in Python3

So you want to clone a git repo in Python3? I recently came across a case where I wanted to programmatically edit and update a Github repo and what better language to use than Python? My first go at the problem had me thinking of .bat files since I come from a Windows background. Therefore … Read more

Making A Twitter Bot With Tweepy

Want help making a Twitter bot with Tweepy? It’s actually pretty easy after you apply for a developer’s account and setup an app on Twitter’s side. You can do the application and setup here. My Computer Setup Getting your Environment Setup You can find some info on installing pip here. The article actually covers pip installation … Read more

Search For Strings Across Files in Linux

Need to search for strings across files in Linux or on a Linux server? Use GREP! This will help you find that pesky module that needs updating or that misspelled table name. My Computer Setup macOS The Solution This command will recursively search files and folders for whatever you’re interested in. Still learning about how … Read more

Exit mobile version