Reading other things

The other day I was trying to understand something and began to search the web. This lead me to a random rabbit hole because isn’t that usually the case with a lot of things too?

The thing I wanted to understand more was MySQL because there are things I know I don’t really know. I want to know more though. I do.

So I went and began to search for a book to read or even a video to help me understand a bit more. I wound up getting a book. I went and got Understanding MySQL Internals. I’ve read the first two chapters so far and am liking it so far. Part of the reason is because it dives more into the code of MySQL. The functions, the classes, and files used.

It really wasn’t what I was expecting but I love that. I guess you can say it almost rekindled my passion for reading those books again. It’s been too long since I’ve read a book like that and it’s been because I just didn’t think much about it.

Honestly, that is the biggest reason I haven’t read much either when it comes to those type of books. The other being that some are just not my type of read. I need to pick up more of those books though. I still haven’t finished reading one from a few years ago. Not sure I will though.

Being a guinea pig

The other day I was wanting to experiment with FSE.

Sigh.

Yeah. A bit of a weird term. Acronym really. More to the point another thing that may just confuse a few more people. The reason I say this is because it stands for Full Site Editing.

Don’t get me wrong, I’m looking forward to this. I am. The reason being is that it may help a lot of people in creating their sites to suit their wants. The how is the part I’m kind behind on. I haven’t completely kept up with many of the things being done.

Why now?

The reason I’m posting this now is because some time ago I was reached out to by member of the Theme Team. I haven’t done a theme review in a long time. I mean that too. I haven’t actually looked at theme’s code for things in quite some time. Part of that is because I do have a few other things I was doing. I spent most of my free time just relaxing. It’s something I haven’t really been able to do. The other reason being that I never really set a schedule for outside of work so any free time would be anything.

With that being said, I went and tried to setup something on my local installation. This hurt a little because I opted to not install a lot of things. I wanted quite literally the bare minimum to just get up and running. I installed XAMPP and boom. Got things working in under maybe 30 minutes.

I mean it wasn’t much.

  1. Install Gutenberg
  2. Activate Gutenberg
  3. Enable Full Site Editing

Not much to it. Now the other part that took a bit longer was actually seeing how I could maybe partake in contributing with either docs or code.

Let the fun begin

This part was a little more. More time. Okay, like almost an hour of trying to install one thing to make everything work. Now, you’re probably asking or even wondering, but Jose, why not use something like VVV or Docker to set up your environment?

Again, I wanted the bare minimum to just start. This is where things actually took a bit of a turn. I did already have NodeJS installed so that was sorted. I already had Git because that was one of the other things I installed when I got my Windows machine fully built. The things I needed were:

  1. NodeJS
  2. Git
  3. Python

Yeah. Python.

In all honesty I’m not sure if that was one thing I did the first time I set up my local machine which a very long time ago when I was first starting with WordPress. I might have done it when I wanted to learn random languages I know that much but don’t really recall doing that times after that. It might be because after switching to something other than Windows, Python might have already been installed and running.

Anyway.

The part I that I really wanted to experiment on was following the guide on getting the Full Site Editing experience going. Part of that reason I do still like dabbling with code when I can. At least when it comes to WordPress theming code. Plugins I still just love to look over how they work and break more than anything.

Now, I’ve been doing things like this for some time but it really did feel like something was missing when I was following the steps. It really almost felt like I was out of the loop with how things worked. There were some things I had to actually read in order to understand what was going and how to do it.

The part I am really looking more forward to is being able to use HTML template parts. I think it is that inner part of me that loves the simplicity of it. I love knowing that it does have a low barrier of entry. It is part of that reason I genuinely love WordPress.

That is the biggest reason I love code too.

Random spring cleaning

Today I spent some time on the support forums answering some questions and just trying to help some people out.

I also cleaned things up a little bit on this site. The one thing I did was clear out random tables from the database and just tinkered with other things along the way. I was able to fiddle around with a little Drupal as well so that was really nice.

The one thing I liked was looking at metrics. Part of the reason is I like looking at numbers. The first thing I noticed was the size of the overall database. It was just under 7mb which really isn’t much when you think about it. I ran a few commands on them and they sort of helped. A little bit but not like super, crazy, insane good.

One thing I liked doing was running two queries. The first one to get all the posts because I wanted to see how fast it would be and now many there were as well. I ran:

SELECT * FROM wp_posts WHERE post_type = 'post';
/* Affected rows: 0  Found rows: 166  Warnings: 0  Duration for 1 query: 0.172 sec. (+ 0.312 sec. network) */

I found it pretty cool that I do have 165 posts on here. The other cool part is that it was able to retrieve all of those in well under a second. Now granted that is how many databases are and function as well. Pretty quick when doing those directly.

The one part I was happy about was being able to reduce the size a little because I realized that there were a few tables from plugins I no longer used and some rows that were also removed that I know I won’t be using ever again. Many of those were just widget settings from random themes I had tested on here.

Did I need to do that? Not really. It was mostly because I wanted to practice things. It really has been way too long since I’ve even done anything like that. I’ve been enjoying that since that’s what I spent most of my day on.

The other thing was tinkering with JavaScript and some JSON responses. I was having some fun with the WordPress api and just getting some things to actually render properly on the page. Not using any external libraries as well so that was pretty fun to do.

I have a post right now in draft that actually does go a bit more into frameworks too. Or at least the ones I’ve read some documents of and have tried. This is the part where I just say if there were more hours in the day I would be able to explore all of them.

Hopefully I can look over more things next week.

Darn command line

I don’t remember when I did this but I did find it a little funny. I wanted to install SVN on my Windows machine because I clearly like to torture myself. Right?

Okay, but really.

I wanted to install it because WordPress is still using it for now. I do think it is a good tool to learn first when getting started with version control. Or really any version control system for that matter before jumping into Git. That’s me saying that.

Anyway. As I was glossing over the pages I had to try and recall what I had done the first time I had even done that. I had to think back to 2011. Yeah. That long ago when I actually tried to do that. At least I think it was. Might have been a little later but around that time.

I couldn’t recall what I had used to I did the super trusty method. I overflowed that stack and then recalled that I used TortoiseSVN.

Sweet!!

Super easy and not hard to install. I ran the thing and boom went that dynamite. I had SVN installed on my computer. I opened up my Git bash instance and tried to checkout the trunk repo and was met with failure. The command wasn’t recognized.

I swear, I had done it right.

I look up the path settings. It wasn’t there. So I try to add.

Nothing. Still fails.

I restart the computer because you know support and resetting things.

Nope.

Okay. Now what?

Had I actually missed something?

🤔

I clicked the installer again and began to read all the screens. Yes. All of them.

And yep. I had missed something.

I forgot to click the add command line checkbox.

Sigh.

Let me repeat that. I read all the screens.

Yeah, even I will sometimes forget to actually check the things.

Oh well. The good news is that SVN is running fine and I can break my machine even more with

Editing and creating

I have been using Gutenberg since it was announced. I haven’t honestly typed a lot with it in the last year unfortunately. Again, it has boiled down to time. I haven’t put that time aside to create posts here.

I just haven’t.

I do need to change that and I hope I can pretty soon too. There are so many things I do want to learn along the way. I think the biggest challenge may just very well be in the how.

I have slowly shifted in doing WordPress related things a little and I do feel good about that. It may sound a little strange for some but it is very true. When I began working at Pantheon, I knew there would be a lot of things I would need to learn. Drupal being one. Now, I want to say this because this is exactly how I feel, I like both of them.

They each have their positive and negatives. Each is a tool that can be used and just like any tool it does take time to master it. I am by no means a grand master on either one but I do want to get more familiar and comfortable with each one.

When I created this site it really was to tinker with WordPress and get comfortable with code. I added the tagline, “Life. Code. WordPress,” because that was what I would write about. Life being the first, code second, and WordPress last. Over the years I did a lot of code and WordPress posting and from time to time life events. As much as I would love to be able to have a post every week I just can’t do it. At least not yet.

Hopefully in a few weeks I can share some news and more information as well. For now, I’ll keep drafting things and just publishing when I can.

Too many ideas

Here is the deal, I’ve been reviewing themes for quite some time and I really haven’t made one for myself. I’ve made a child theme for this site but that’s about it. It’s nothing super fancy but I know that I could do more.

The biggest reason at the moment is that I really haven’t been visually inspired.

I have been sidetracked. Not going to lie about it.

There have been other things that I’ve prioritized as well. I will say though when I do finally get enough time I will be grinding away on that side. It really has been great just exploring other things in the mean time.

I think that part of it is also that I haven’t really used this site as much as well. That part has just been sort of neglected for too long. I would love to be able to post more things but I’ve hit a mental block it feels like.

It also has been way too long since I looked at core code to see how things have changed. I may need to do that one of these days to get a better clue on what I really want to be doing as well. I know I have some posts that go over some functions, some hooks, but what I really want to be doing is perhaps a little more than just that.

Themes and plugins are and always will be super interesting to me. I think a lot of it is also that I haven’t really had puzzles I personally want to solve. I need to get on those forums more often and just dig more.

Sigh.

All in time, I guess.

Local woes

This morning I woke up like I usually do around 4:15. Actually got out of bed like ten minutes later. Went to my desktop and when I went to log back in I saw that everything was somewhat reset.

Turns out there was an update that had been run.

Now, I don’t mind those but when things get broken, that’s when I get a little upset. You see when I looked at what programs were running I saw that a few were no longer running. The main two were Sublime Text and Local by Flywheel.

I reopened Local and it asked me to install.

Nope.

Big old pile of nope.

How did this happen?

So I think initially that it upgraded to the latest version. No. That wasn’t it either as it continued to install version 2.4.6 on my computer. Odd in that it wasn’t the latest which I’m currently fine with. So I then look and it turns out the containers are missing.

Fabulous.

All the sites I has on there were now missing.

I’m not angry, I’m just upset now.

Reason being is that those are still there it just can’t find them. So now I have to connect them all.

This will be a fun day.

Breaking things

The other day I decided to try and update all the things on my laptop. Let’s just say it was some fun.

I say that because I am running Ubuntu on my laptop. I changed it so it is always running the latest version. Even for latest releases. When the laptop was running Bionic Beaver I ran the updates and forgot about that so things changed to use Cosmic Cuttlefish and a few of the things broke along the way .

The one that did was Docker. I installed, removed, installed, removed, and nearly gave up. I read a lot and just walked away for a day. Came back to it and read a few other things and was back up and running.

Always a good feeling when you can get things back to working condition after not having paid attention to what you did.

Now granted that was on one of the laptops I have. The other is a Mac Book Pro and I went ahead and updated to the latest OS. Part of me wants to just start over on that one and remove everything so I can install everything from scratch. It will require a lot of time but I know it will be a bit more manageable. And I know it will clear up quite a bit of space as well since I know I haven’t used some things on there and most likely won’t.

Learning other things

It is no surprise to some that I like to read. One of the things I started recently was reading about Python. I want to learn to program in the language because I feel like I need to do this.

For the longest time I wanted to get more into web development. Python is just another tool I want to familiarize myself with. Ruby is another. I understand some of it because I took one small crash course a few years back but that doesn’t mean I’m an expert in it.

Languages fascinate me. Programming languages even more so. Part of that reason is because I like to solve little puzzles, those little mysteries that can happen. That began when I first encountered an error many, many years ago on Windows 95. I wanted to know what it meant. To this day I don’t think I ever figured out why it would crash at a certain point.

Oh well, that’s in the past now.

This year will be full of many readings. Hopefully I can find the time to share a lot of that here.

On JavaScript things

The other day I began what is to be another random project to test things and get more familiar with how the WordPress editor scripts work. Really the editor in general now since a lot of that is now done with JavaScript and the ReactJS library. It also uses Redux and a lot of that now does make more sense to me.

I sill struggle with a few things but I know the more I use it the more it will make sense,

The other reason is so that I can share that on here so others can also learn from it. I know it really has been way too long since I posted any sort of resource or tutorial too. I need to get on that. It’s long overdue.

The hard part has just been finding the time to really look over the code and just randomly testing things on my local setup. I think part of that is also because it has changed a bit since the last time I really did that. Now I’m using an Ubuntu laptop and a Windows desktop. I still use my Apple laptop but not as much as I used to. I really only use that for Netflix and the occasional Amazon movie.

And random online courses or YouTube videos that I watch in order to learn more.

I do not always Git it

I learned Git on my own by reading random answers on StackExchange and other places; some random articles here and there and a lot of that so I can learn how to make branches, revert things, and just plain learn.

Some things have stuck with me more than others but it is partially because I use it more frequently. A good example of those things is branching, committing things, and resetting the staging area. I know I lost a few of my friends on that one since they don’t speak that jargon.

It’s okay.

I was the same for a long time. I’m not going to explain it and there is no need for it in this post because it would take too long. Really it would.

The other day I began to read the documentation on Git. The book they have available to be more exact. I did learn a few new things and actually realized I did know a little than I thought I did. That’s a great feeling. I haven’t felt like that in quite some time.

A very welcome change.

I love to read. I have for quite some time too. Even more when it is things that I know will expand my skill set. I just need to sit down and read more on Git and other things related to the web. I’m going to have to find the time now to read all the things I want to read.