November 21, 2024
  • November 21, 2024

Articles Posted by Johnny Thunder

Repository ‘http://dl.google.com/linux/chrome/deb stable Release’ changed its ‘Origin’ value from ‘Google, Inc.’ to ‘Google LLC’

by on December 13, 2018 0
The Problem: You're updating you're ubuntu server with sudo apt-get update and you get the following error: E: Repository 'http://dl.google.com/linux/chrome/deb stable Release' changed its 'Origin' value from 'Google, Inc.' to 'Google LLC' N: This must be accepted explicitly before updates for this repository can be ap plied. See apt-secure(8) manpage for details.   Screenshot of [...] Read More

Unzipping WordPress Files in Same Directory (Not in /wordpress folder)

by on December 12, 2018 0
First, cd into the folder you want to install WordPress into: cd /var/www/html/sites/myNewSite Next, download the WordPress archive file: sudo tar -xzvf latest.tar.gz Finally, extract the files right into your present working directory: sudo tar --strip-components=1 -xzvf latest.tar.gz Note the --strip-components=1 parameter, this is what does the magic and puts the files directly in your same [...] Read More

Obtain the Author Name for WordPress Post

by on December 12, 2018 0
Many times we will need to display the author's name for an article on our WordPress site.  Thankfully the WordPress team made this very each with a custom php function called get_the_author which prints the name of the author associated with the post   The PHP Code <?php echo get_the_author(); ?> Read More

PostgreSQL: Date Sorting NULLS FIRST

by on December 10, 2018 0
Sometimes we will have a date field that is nullable.  For instance, sometimes we way way a date field to be null if a certain event never occured for that record.  Sometimes we will want to sort the data so that the nulls are the first results.   Let's say we have a table like [...] Read More