fbpx

How to Scrape a Website using JavaScript

Did you know you can use javascript in the Chrome browser console to scrape data from just about any website on the internet? If you didn’t know, now you know! And we’ve got a cool example here that you can try yourself. We hate do things manually so sometimes when data is not quite in…

Non-Static Method Should not be Called Statically

I just ran into the non-static method should not be called statically error when building out some functionality for a client. In short, I needed to instantiate the class that I was using before running one of those class’ methods. See the initial code that threw the error and the code that fixed it below:…

Install WordPress Plugins

There are 4 main ways to install WordPress Plugins. However, we’re going to focus on showing you how to install and activate WordPress plugins from your WordPress dashboard. There are 3 steps involved in installing and activating WordPress plugins for your WordPress website. WordPress Dashboard: You can manually install WordPress Plugins via the WordPress dashboard…

Install WordPress Plugins via SSH

We show you the 4 simple steps to installing and activating WordPress plugins via SSH below. For the other ways to install WordPress plugins, see our Install WordPress Plugins post. Step 1: Connect via SSH In order to connect to your WordPress site’s server via SSH, a hosting provider may give you an SSH key…

$wpdb->get_row() Only Returns a Single Row

If you are trying to get an array of records that match a select statement using wpdb->get_row(), I’m afraid you are going to be disappointed. $wpdb->get_row() only returns a single row when you are using it to retrieve records from a WordPress database. Return Multiple Rows with $wpdb->get_results() However, if you would like to retrieve…

Change Where Mac Saves Screenshots

My Mac was annoyingly slow for a couple weeks and I couldn’t figure out why. I did a little research and found out that having items in your Desktop folder significantly slows down your computer…and I had over 2,000 items in there. None of the items in there were useful, they primarily consisted of client…

Backup Heroku Config Vars

I wrote a simple website scraping script to get a backup of a Heroku app’s Config Variables. Step 1: Load jQuery into the Chrome Console Check out our post on loading jQuery in the Chrome Console at https://blog.wplauncher.com/run-jquery-in-chrome-console/ Step 2: Pull out the Config Keys and Config Values associated with the Heroku Config Vars Now…

Import Woocommerce Products into a Demo WordPress site

Here at wplauncher we create a BUNCH of live site previews using WordPress theme demo content. When setting up these WordPress theme demos, we often find ourselves importing sample Woocommerce products. This allows our customers to see how they can set up their own shop with one of the themes in our marketplace. In the…

Did not find expected ‘-‘ indicator while parsing a block collection

I ran into this pesky error the other day while working on an ansible script and when I tried debugging the file (using yamllint.com) it pointed me to a completely different part of the .yml file (i.e. at line 2 column 1). But, the error actually existed much further down in the .yml file. Here’s…

Can’t Install MariaDB Dependency Problems

I kept running into errors when I ran the following command: Here are some details of the error I was getting when trying to install the mariadb-server package to my ubuntu server. As you can see, I was receiving a message that there was a dependency error when trying to install mariadb. I tried running…