C Programming within NetBeans

Desired Outcome
Over the years, I’ve dabbled with Learning C programming, and have various books. Just for fun, and practice reading manuals, I installed NetBeans 8.2 on my Mac. Following is the path I took.

Environment
MAC OS version El Capitan (version 10.11.6) – I know… it’s old, but works

NetBeans 8.2 IDE
Good place to start is the NetBeans IDE 8.2 Release Notes
NetBeans IDE 8.2 Release Notes
-Java was used to create an IDE for programming language environment
-All the editing, compiling, debugging, etc. happens within the IDE

Requirements
-Computer OS (Mac OS X 10.7) at minimum
-Java Runtime Environment (JRE) 8 at minimum for PHP and C/C++ NetBeans Bundles
-Note: This means I don’t need the Java JDK (Java Development Kit)

Downloads
Here’s the page for the Java JRE software to download. In my case, I chose within Java SE Runtime Environment 8u192, clicked on JRE, and chose jre-8u192-macosx-x64.dmg
JRE 8 192

Here’s the page for the NetBeans 8.2 IDE software to download.
Note: In my case, I clicked in the C/C++ Column, as that’s all I’m interested in for now.
NetBeans IDE 8.2 Download

Installation
Here’s the installation instructions for 11 JRE 8 for OS X
11 JRE 8 Installation for OS X

Here’s the installation instructions and other things for NetBeans 8.2
NetBeans IDE 8.2 Information

Configuration of NetBeans 8.2 for programming in C
When clicking on File, New Project I then choose the Category C/C++ and then Projects C/C++ Application

First Program (hello_world.c)
This is my first program, which worked!

Note: I have to figure out why in WordPress it’s not writing the stdlib’s correctly. They are

stdio.h
stdlib.h

/*
* File: hello.c
* Author: PaulGarth
*
* Created on December 26, 2018, 8:46 AM
*/

#include
#include

/*
*
*/
int main() {
printf(“Hello World”);

return (EXIT_SUCCESS);
}

Posted in C, Programming | Leave a comment

Upgrading WordPress Database size

Desired Outcome: Upgrade WordPress Database from 100MB to 1GB size
Upgrade Instruction: I’m following this – https://mor10.com/upgrading-wordpress-the-manual-way/
Issue: www.paulgarth.com is currently sized for 100MB and ideally it’s at 1GB
Current environment: Reviewed and confirmed it’s at 100MB (91 of 100MB available)
Plan:
* Create a new database
* Copy data from old database
* Import data into new database
* Rewrite wp-config.php to recognize new database
Next Actions:
-Created a new database, which should be 1GB capacity
-Followed above instructions from Morton to export the data. Just had to make a couple checks. Now I have a file called db2010_perfora_net.sql
-Ran into an issue where when you import the data into the new database, it wants to use the old database name. I resolved by commenting it out about creating new database.
-After running again, I didn’t get the create database error, but did get:
SQL query:
DROP TABLE IF EXISTS `wp_commentmeta`
MySQL said: #1046 – No database selected
Note: I don’t think anything copied because I’m not seeing any tables in the new database

Fixed the mySQL 1046 error with https://stackoverflow.com/questions/2708100/mysql-1046-error-when-importing-wordpress-database

Fix was to add the USE ;

Import has been successfully finished, 284 queries executed. (db2010_perfora_net.sql)

Now that I have a new database (1GB in size) and have imported the content, I have to reconfigure WordPress

I have currently WordPress 4.9.8

Went into FileZilla and edited wp-config.php
Changed the various pointers to the new database

Note: Morten talks about manually upgrading – I didn’t do that, and looks like it all worked.

Posted in Web Development, WordPress | Tagged | Leave a comment

Adding a BlogRoll to WordPress site

I wanted to add a BlogRoll to my msw.paulgarth.name site.

Lessons Learned:
From WordPress version 3.5 on, it’s possible that the plugin for Link is not there and needs to be manually installed. See below for installation procedure.

Wasn’t coming to me as quickly as I would have though.

https://en.support.wordpress.com/blogroll/

Goal is to add a place I can reference viewers to for various other sites.

Sites within the County, etc.

I need to find the Links Widget

Dashboard, Appearance, Widgets…

I’m not seeing anything obvious to blogroll here.

I’m now on a wild goose chase here…

https://www.sitepoint.com/wordpress-links-manager/

This is odd. On my paulgarth.com site I see Dashboard, Links. On my msw.paulgarth.name site, I don’t see the Links section.

This makes sense now. Looks like WordPress after version 3.5 removed the Links Manager (what I use to create blogrolls). If you had Link Manager with blogrolls prior to 3.5, and did an upgrade, it preserved the plugin. If you didn’t do blogroll, then it’s feasible it’s not built-in, unless you download the plugin. https://codex.wordpress.org/Links_Manager

Looks like the plug-in is called Link Manager – link-manager. Within msw.paulgarth.name, Dashboard, plugins, I searched for link-manager

When I did a search for link manager or link-manager, I’m not finding easily the version from WordPress. From this site — https://wordpress.org/plugins/link-manager/ you can download the plug-in, and then from within WordPress do the upload/install.

-Downloaded the plug-in
-Within msw.paulgarth.name, dashboard, plugins, add plugin
-Search for the .zip file I had downloaded, install, activate, done

Posted in Blog Development, Blog Learnings, Completed, Status | Leave a comment