How to configure Linode Longview on ServerPilot – Jesin’s Blog

Configure Linode’s Longview service on a ServerPilot installation for collecting stats on CPU, memory, disk, Nginx, Apache, MySQL

Source: How to configure Linode Longview on ServerPilot – Jesin’s Blog

I recently switched from DigitalOcean to Linode, but had trouble getting Linode’s Longview service to work with ServerPilot’s Nginx and Apache services. Then I bumped into this tutorial and Bob’s your uncle, everything works.

I did however install Longview before connecting to ServerPilot, so I only had to add the configuration for Nginx and Apache.

Take a look at it If you’re like me, who couldn’t get it working properly

How to Stream with OBS Studio


If you have been following this blog, you know that I use OBS Studio to stream myself playing the occasional game, as well as for my Church’s Livestream. Now since I’m a strong believer in sharing the knowledge I have ascertained with others, I have decided to make a how to tutorial on how to get started streaming with OBS Studio.

Props to NerdorDie on YouTube for creating such a comprehensive tutorial series. You can check out their website to get the free resources from the videos.

1. Tutorial Series Introduction

2. OBS Studio Vs Classic

3. Downloading and Installing OBS Studio

4. OBS Studio Settings – Bitrate, Twitch Server, and Stream Key

5. OBS Studio Settings – Recording, Resolution, Audio, and More

6. In-depth look at Sources in OBS Studio

7. Filters In OBS Studio

8. Scenes in OBS Studio

9. What Twitch Alert System Should You Use? (Optional)

10. Setting Up Twitch Account and Nightbot Before We Stream

11. Going Live On Twitch With OBS Studio

Hopefully you made it to the end of the playlist, just a side note, these settings can also be carried over to other streaming providers, so you’re not stuck using Twitch streaming only.

How to Setup SSL/HTTPS on WordPress

Hello there interwebs, today I’m finally going to do a tutorial on how to setup SSL/HTTPS on WordPress. I have been meaning to do this tutorial for quite sometime since this blog has been using SSL/HTTPS from its inception, but I guess better late than never right 😉

Just a disclaimer early on, this tutorial is only going to tell u about the WordPress side of things, I am not going to tell u how to set up an SSL certificate. I am also assuming you would have already obtained and setup your SSL certificate, if you don’t have an SSL certificate you can use cloudflare’s flexible SSL setup as it would work just the same.

Now with all the pleasantries out the way let’s get on with the show

Step 1: Change the URLs

Now all links in WordPress (attachments, CSS and JavaScript files) are all relative to the install URL.

To go about changing WordPress from HTTP to HTTPS, the install URL must be changed, or simply put, just change to

Well how do you do that?

  • First login to your WordPress dashboard and navigate to Settings > General.
  • Then make your way down to WordPress Address (URL) and Site Address (URL)
  • Check that both are https (both should be https as I have ran into problems when one was https and one was http) if they aren’t simply add an s after the http to make https and save it.

Fair warning you will break your site’s layout and logins for a bit after doing this but it will be fixed.

Step 2: Enforcing SSL

Yes you just changed the links on your site to all use https, now while that’s sweet you’re not done yet, you need to enable WordPress administration and logins over SSL.

  • By now you should know where your wp-config.php file is and how to get to it, but open that up and scroll down until you find that define( 'WP_DEBUG' ); line.
  • Below add define( 'FORCE_SSL_ADMIN', true );
    That will force all logins and all admin sessions to only happen over SSL.

Step 3: Setting the default server port

Certain plugins (ahem… Jetpack) will have problems with certain functionality (Publicize) if you don’t specifically set the server port.

  • Pull up back that wp-config.php file and find the FORCE_SSL_ADMIN line.
  • Below that add $_SERVER['SERVER_PORT'] = 443;

After completing those steps your site should be up and completely functional over SSL/HTTPS.

Optional Step 4: Setup a 301 Permanent Redirect

Now that your site is up and running in SSL/HTTPS goodness, you need to tell Google and your visitors that your URL has changed. To do that you need a redirect, more specifically you need a permanent redirect.

  • To set up a 301 permanent redirect, FTP/SFTP to your server and add the following code at the TOP of WordPress’ .htaccess file. (if you don’t know what I’m talking about well…. look it up)
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
# END HTTP to HTTPS Rewrite

To inform Google about the change in URL, re-add your WordPress site to Google webmaster tool (but this time with https://) and follow this this guide to let Google know about the change of URL.

You can check your SSL website status using Qualys SSL Labs.

Congratulations on reaching the end of this tutorial!


How to Display Posts from a Specific Category in WordPress

The tutorial I am sharing with you today is more of an advanced tutorial, for persons who know their way around WordPress already. I am going to show you how to display the most recent posts from a specific category. This is particularly useful when creating magazine style themes.

Backstory on how this idea came about

A while back I had a client approach me and asked if it was possible to prevent posts from certain categories to show up on the homepage, because for whatever reason they felt it would be better for persons to check the category page if they wish to view those posts. Anyway, I decided to check it out and here is the result of those many, many, many hours.

I assume you already have your .php file setup and ready to go so here is the code:

<?php if ( have_posts() ) : ?>


  //Protect against arbitrary paged values (helps prevent same posts showing on all pages)

 $paged = ( get_query_var( 'paged' ) ) ? absint( get_query_var( 'paged' ) ) : 1;

  // Category selection array (This is where you select how much posts should be shown and from which categories; you can also place "-" in front of a category name to exclude just that category)

 $args = array( 'posts_per_page' => 7, 'category_name' => 'Uncategorized', 'paged' => $paged );

 $posts_array = get_posts( $args ); ?>

  // Post Loop (This varies significantly from the usual while loop in WordPress but works the same)

  <?php foreach ( $posts_array as $post ) : setup_postdata( $post ); ?>

    <?php get_template_part( 'content', get_post_format() ); ?>

  <?php endforeach; ?>

  // Resets the WordPress Loop (This is a necessary step)

 <?php wp_reset_postdata(); ?>

  // Theme navigation (TwentyThirteen Theme)

 <?php twentythirteen_paging_nav(); ?>

  // Usual Stuff
<?php else : ?>

 <?php get_template_part( 'content', 'none' ); ?>

<?php endif; ?>

This piece of code is vital to the news style layout, where you could essentially do this for each category and display the most recent news from each category separately on the same page.

There are many different variations of this snippet of code, some using “WP_Query” and others using “query_posts” now while those work similarly to the code above one thing to note is that neither of those variations support pagination, now if that is vital, the above code is pretty much your best bet.

Sources Support Forum
WordPress Codex
Ali Jafarian

How Do I Make My C: partition Bigger By Taking Space From D:? 

Changing the layout of the hard disk make the C: partition bigger requires a few steps, and occasionally special tools.

Source: Can I make my C: partition bigger by taking space from D:? – Ask Leo!

Had this problem a while back on my work computer, the hard drive came pre-partitioned and I needed to change the layout because the main (C:) had very little storage, about 160GBs or so out of a 500GB hard drive, so since nothing was on the 500GB side just yet I just deleted it and repartitioned it, but if your case is not so simple, this tutorial should help you out.

How to install Android 4.4 KitKat in Windows using VirtualBox

Google’s confectionery legacy of Android operating systems has enough digital sugar to make you nauseous. It all started in 2009 with Android 1.5 Cupcake and now five years later, Google ‘s infatuation with sweets lives on through KitKat. KitKat is a great…Read more ›

Source: How to install Android 4.4 KitKat in Windows using VirtualBox – fixedByVonnie

I was feeling highly nerdy last night and decided to try VirtualBoxing Android 4.4 KitKat, because why not. For the most part it was really simple and I got it up and running in no time.

NB: When you are using your mouse to control the VM you need to go to the bottom, where you’ll see the mouse with a green tick or something, well click that and change it to disable…

That’s a quick fix to your cursor not working in Android’s touchscreen environment, when you do this though, you will need to hit the host key (Right CTRL unless you customized it) to leave the VM, other than that works very smoothly on my machine.

How To Add Universal Theme Support For WordPress Post Formats Using A Plugin

Anyone who uses WordPress regularly knows about the Post Format feature and while it is great, the problem with it is that it is tied to the template you are using. And a lot of theme developers pick and choose which formats they support and some just straight up don’t support them. Now while it isn’t a problem if you have never used them, if you do use them, you tend to lose support for some formats when you change themes. Which is why after much contempt, I decided that I would just write a plugin to handle it.

So here’s how you can do just that.

Firstly open up your favorite text editor and create a new .php file

Open the new file you just created and add the following



Those lines signal the beginning and end of the file, it is important that you have nothing and I mean NOTHING after the last line.

Next up we need to add the headers for the plugin so that we can be able to identify it and activate it in WordPress, you can just copy what I have and change my information for yours.

 * Plugin Name: Post Format Support
 * Description: A simple plugin that overrides the default post format support of themes, without the need to edit the theme's files.
 * Version: 1.0.0
 * Author: Delano Maloney
 * Author URI:
 * License: GPL3

If you save and add the plugin to your site you should see it show up as a valid plugin, with version number and everything, don’t activate it just yet, as the plugin does do anything yet.

Now for the final step, below the plugin headers add the following lines of code

function ddm_add_post_formats() {
    add_theme_support( 'post-formats', array( 'aside', 'audio', 'chat', 'gallery', 'image', 'link', 'quote', 'status', 'video' ) );

add_action( 'after_setup_theme', 'ddm_add_post_formats', 20 );

Those lines adds the complete list of post formats to the WordPress editor, so that you can select them when writing up the post, it is important to remember that if your theme doesn’t support post formats you wont see a change on the frontend of your site, but you will have the options in the editor.

Just a quick recap so you know what the file should look like at the end

 * Plugin Name: Post Format Support
 * Description: A simple plugin that overrides the default post format support of themes, without the need to edit the theme's files.
 * Version: 1.0.0
 * Author: Delano Maloney
 * Author URI:
 * License: GPL3

function ddm_add_post_formats() {
    add_theme_support( 'post-formats', array( 'aside', 'audio', 'chat', 'gallery', 'image', 'link', 'quote', 'status', 'video' ) );

add_action( 'after_setup_theme', 'ddm_add_post_formats', 20 );


If you are feeling lazy and don’t want to go through all of this, I did make it into an actual plugin that you can download here (DDM Post Format Support)

How To: Create a Universal Windows 7 Installation Disk

This tutorial is useful if you are a computer technician (like me) and have to constantly be reinstalling Windows 7 on various client’s computers. It prevents you from having to search for each edition of windows 7 and also helps to save you money.

Part 1

Get two copies of windows 7 a 32bit version and a 64bit version. If you have the iso image it will help you out greatly. I used windows 7 ultimate 32 and 64 bit you can use whatever copies you have.

The ei.cfg Removal Utility is a simple tool that will disable the ei.cfg from any Windows 7 ISO disc image, thereby converting the image into a “universal disc” that will prompt the user to select their preferred edition during setup. The ei.cfg Removal Utility works directly to patch the ISO image, by toggling the deletion bit in the UDF file table to instruct the operating system to ignore and remove ei.cfg, or treat it as if it does not exist. Best of all, the ei.cfg Removal Utility can reverse the patching to restore the ISO disc image to its original state when the tool is been used to apply on a disc image that previously been patched by the utility.

The ei.cfg Removal Utility is a standalone portable app, and requires no installation. In fact, the program does not have much of a user interface at all. Simply selecting the target Windows 7 ISO, and the disc image (ISO) will be patched right away. So make sure abackup copy of your ISO is created beforehand.

Download the ei.cfg Removal Utility

Part 2


  1. WAIK (Windows Automation Installation Kit) Download WAIK
  2. Windows Windows 7 x86 and Windows Windows 7 x64 DVDs. (the copies of windows 7 that you removed ei.cfg from)
  3. An application that can extract the files from an ISO (if using a downloaded ISO). I use WinRAR, but many apps can do this extraction.
  4. An application that allows you to build a new iso or create a bootable DVD/USB. I use UltraISO for this.
  5. Single Layer DVD, compatible DVD Burner and, of course DVD burning software… or a 4GB USB flash drive.

We will merge the four Windows 7 x64 editions into the Windows 7 x86 DVD contents, because Windows 7 x64 DVD has 64-bit content that can’t run some of the Win32 installation components.

Getting Started
1. Install WAIK in your Windows (doesn’t matter you are running Windows 7 or Windows XP)

  1. Make two folders, in my examples I use Win7_64 and Win7_32. Now copy both Windows 7 x64 and x86 DVDs contents into their respective folders. Or extract your downloaded ISO’s into their respective folder.

  2. Run WAIK command prompt (Run as Administrator if UAC enabled):
    Start > All Programs > Windows AIK > Windows AIK and PE Command Prompt

  3. Each and every Windows 7 edition has an index no. in the install.wim (WIM file), you can check using the following command:

Imagex/info G:\Win7_32\Sources\install.wim

Where G:\Win7_32 represents the location of your 32 bit DVD files

  1. We will use the Imagex /export command to move our x64 WIM entries into the x86 wim file.

The syntax for this command is:

imagex /export src_file src_numbersrc_name dest_file dest_name

Now execute the following commands with appropriate INDEX number. to export a copy of the specified image to the Windows 7 32bit (x86) WIM file.

For Windows 7 Home Basic x64:
Imagex/export G:\Win7_64\Sources\install.wim 1 G:\Win7_32\Sources\install.wim "Windows 7 Home Basic (x64)"

For Windows 7 Home Premium x64:
Imagex/export G:\Win7_64\Sources\install.wim 2 G:\Win7_32\Sources\install.wim "Windows 7 Home Premium (x64)"

For Windows 7 Professional x64:
Imagex/export G:\Win7_64\Sources\install.wim 3 G:\Win7_32\Sources\install.wim "Windows 7 Professional (x64)"

For Windows 7 Ultimate x64:
Imagex /export G:\Win7_64\Sources\install.wim 4 G:\Win7_32\Sources\install.wim "Windows 7 Ultimate (x64)"

  1. After execution of above commands Win7_32’s WIM file will be the universal WIM file that contains all version of Windows 7. You can export only desired versions into the image. For example you could make a Windows 7 DVD, which includes Windows 7 Ultimate x86 and x64 version only.

When you are finished with the tutorial you can create a iso image of the Win7_32 folder or burn it to a dvd or create a bootable flashdrive

Be sure to do Part 1 before doing Part 2 otherwise you will get an error of missing files.

Reference: Seven Forums