Having issues with your bank account connection to the BitBudget? To reset your connection simply click the profile button icon in the top right hand corner of our mobile application, then from the settings screen click the REMOVE button next to your bank account connection. To reconnect press the LINK BANK ACCOUNT button on the home screen of the BitBudget Android app.
BitBudget Help Center
Having trouble with your BitBudget account? You’ve come to the right place! My name is Chris Pedersen, founder and developer of BitBudget. If you’re having any issues with BitBudget or our Plaid/OAuth integrations with your bank account please feel free to contact me personally for support.
Support Contact Name: Christopher Pedersen
Support Contact Phone Number: +1 (469) 261-0727
Support Contact Email: chris@topherpedersen.com
Tsunami of Money
by Naval Ravikant
How long does it take to make money? Ha! It take decades. It’s going to take longer than you would like, but the best time to start was yesterday; the second best time is now. So you may as well start if it’s something you’re thinking about, it’s fine to start working on it now. It may take awhile for it to pay out, but when it does start paying out, you will essentially have.. It’s not that you will make money, but you will have become the kind of person who makes money. And once you’re the kind of person that makes money, and you have some comfort around that, then you essentially have your freedom. So you’re basically going to learn the skills of how to make money. You are going to become a money making machine. And once you’re a money making machine, the goal is that in 10 to 20 years from now, you will get hit with a tsunami of money.
Citation: How Long Does it Take to Build Wealth
vertically align h1 in div
Alright, so you’re trying to vertically align an h1 tag in a div, and CSS is giving you a hard time? Fret not! I’ve got a quick code React.js snippet here with the CSS you need to center your h1 tag in your div:
make div fill entire page
Welcome to my really quick tutorial on how to make a div fill the entire page using CSS & React.js. A lot of things seem really simple in CSS, but in reality you end up having to add tons of little extra tweaks to your code to get CSS to render what you would expect. For example, to make a <div> fill the entire page you would expect setting height and width to 100% to do the trick but… it doesn’t! Or maybe setting the height to 100vh and width to 100vw should do the trick right? Nope!
Well here’s the answer you’re looking for, you need to set the <div>’s position to absolute, top to 0, bottom to 0, then set the height and width to 100%. And then for good measure, maybe set the margin and padding to 0 as well?
Anyway, without further ado, How to Make a Div Fill the Entire Page in CSS & React.js:
How to Download a PDF from a WebView in React-Native
If you happened to have stumble upon this blog post in its current form, I apologize. I’m currently working on adding download functionality to a WebView at work so user’s can download a PDF from my company’s app if the WebView url redirects to a PDF. To figure out how to do this, I’m currently creating an example React-Native app which I will post the source code to for this blog-post/tutorial. However, for this example app I am using my personal blog, and this blog post in particular, to include a link to a PDF.
Long story short… My Example app will feature a WebView pointed at this blog post URL. And this blog post will feature a LINK TO A PDF which the user can click on. The goal will be to intercept the PDF URL and download it if the WebView’s URL changes to a new URL featuring a PDF file instead of HTML.
CONCLUSION– CLICK ON THIS LINK TO VIEW THE PDF
TypeScript, JSON.parse, & undefined: Failing Gracefully when Working with JSON Data in TypeScript
Today at work I have some JSON data which I need to parse with JSON.parse, and need to make sure that my code doesn’t crash my company’s app if for some reason our API doesn’t serve back what I’m expecting. Most of the company’s code which deals with fetching data from our API has already been written, but for this assignment I’m having to make my own networking request and handle all of this stuff myself.
So that’s what brings me here now writing this blog post! I think I have a fairly nice fail-safe way of dealing with JSON, JSON.parse, and unknown values/properties that I prototyped this afternoon on repl.it. Take a look at my code snippet below if you need a similar solution. Happy hacking!
TODO: Setup a WordPress Blog Hosted Under a Route, /blog, on Flask Website
This isn’t going to be much of a blog post, but I just wanted to bookmark this helpful StackOverflow post on how to setup a WordPress blog which is hosted under a route, /blog, on my Flask site: Proxying to another webservice with Flask
The easy way to host a WordPress blog on a website powered by Flask, Node/Express, Ruby on Rails, etc etc is to simply host the WordPress blog on a subdomain such as blog.mysite.com. However, Google treats subdomains as separate websites! So this kind of defeats the purpose of adding a blog to your site to try and boost it’s SEO rankings. So…
I’m going to try following some of the ideas proposed on the link above and see if I can get this to work on my Flask site.
I’ve been running into a lot of strange SEO problem recently. Another issue is ReactJS and SEO. I’d really like to use React on my site, but I don’t think I can without hurting SEO. (I think React does offer a server side rendering option for this, but you have to use NodeJS instead of Flask). Anyway I’m getting kind of sleepy and rambling now. Goodnight.
Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
This is so stupid, and if you just googled “Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.” I know you agree! Github literally just quit working 3 minutes ago because of their idiotic decision to drop support for passwords.
Okay so what now? I actually don’t know, but… I’m going to figure out how to add a personal access token and drop the instructions here in this blog post:
Step 1: Click Profile > Settings on Github.com

Step 2: Click the Developer Settings Option

Step 3: Click Personal Access Tokens

Step 4: Click Generate New Token

Step 5: Add Note, Set an Expiration Date, Select Scopes, Click Generate Token

Step 7: Copy and paste your new access token to a safe place like a password manager!
For this step I’m not including a picture just to make sure I don’t accidentally expose my access token. But it should be pretty obvious. Simply copy the access token, then paste it into your password manager (Dashlane, 1Password, or whatever other password manager you use). If you don’t have a password manager, I suggest now is a good time to get one. Also, if you’re wondering: what the hell is a personal access token? It’s just a fancy password, so that’s why I advise you keep in your new password manager.
Step 8: Run crazy terminal commands to install Microsoft’s Git Credential Helper
I know, I thought there would be a better option than this. However, it makes sense that since Microsoft owns Github now, they’ve essentially manufactured a new problem that must be solved by using one of their products. So yeah, that’s the next step– open the terminal app on your Mac and run these commands to install Microsoft’s Git Credential Helper:
$ brew tap microsoft/git
$ brew install --cask git-credential-manager-core
UPDATE (February 26th, 2022): I’ve noticed recently that I personally can’t install the credential manager on my M1 MacBook Pro anymore using brew. I run into an error which looks something like:
Error: Failure while executing; `/usr/bin/sudo -E — /usr/bin/env LOGNAME=christopherpedersen USER=christopherpedersen USERNAME=christopherpedersen /usr/sbin/installer -pkg /opt/homebrew/Caskroom/git-credential-manager-core/2.0.632.34631/gcmcore-osx-2.0.632.34631.pkg -target / -allowUntrusted` exited with 1. Here’s the output:
installer: Package name is Git Credential Manager
installer: Installing at base path /
installer: The install failed. (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance. An error occurred while running scripts from the package “gcmcore-osx-2.0.632.34631.pkg”.)
If you run into this issue, instead of using brew download the macOS pkg from Github. However, don’t download the latest version as I believe there’s a bug in the latest version. I would recommend downloading: gcmcore-osx-2.0.498.54650.pkg
After you download the pkg file, go to Finder > Downloads and then right-click on the pkg file and select “Open with Installer” and finish the installation.
Next, you’ll need to open up a new terminal window and enter:
$ git-credential-manager-core configure
A window should pop up at some point after running that command where you’ll be able to paste your new Personal Access Token which is the last step in setting up the Git Credential Manager.
Step 9: Last, run $ git push and paste your Personal Access Token into the Microsoft Git Credential Popup Window
This last step is actually pretty simply: You just run $ git push like you normally would from your project directory, but now a popup window from the Microsoft Git Credential Helper will appear where you can paste your new Personal Access Token. And that’s it, you’re back in business my friend 🙂

Bonus Step: Adding Your New Github Personal Access Token to Your Ubuntu Linux Server
Okay so this last step I came back and added one day later after writing the above steps for Mac. The steps above don’t really work server-side. Supposedly Microsoft’s Credential Manager supports Linux but I couldn’t get it to work for me. So here are my five magic terminal commands to add your new personal access token to your Ubuntu Linux Server:
$ ssh root@yoursupersweetserver.com
$ cd ~/yourproject
$ git config --global credential.helper 'cache --timeout=32850000'
$ git remote rm origin
$ git remote add origin https://yourGithubUsername:yOUrPeRsONALacceSsTOKeN@github.com/yourGithubUsername/yourproject.git
?fbclid=
This afternoon I was checking the analytics for one of my websites and noticed a strange URL which someone attempted to view on my site: https://cybersurf.io/?fbclid=IwAR15ndwImeZd0W7tUqLSa80LrSy1SJDQGZr6Ch92eAfbCIYo7WkDNISN4no
I don’t know exactly what the above gobbledygook means. Originally I thought “fbclid” might be shorthand for Facebook Client ID. This was my working hypothesis that maybe this was some sort-of new hacker exploit involving login with Facebook.
But a quick google search for ?fbclid= revealed that this actually stands for Facebook Click Identifier. I’m sort of a suspicious person, so my next thought jumped to: Is this some kind of new click fraud scheme?
However, now I think I have this mystery figured out: someone shared a link to my website on Facebook! Ding ding ding, we have a winner! So if you find yourself puzzled trying to figure out some strange traffic coming to yourself website with ?fbclid= in the URL, it’s probably a visitor coming to your site via Facebook.