The Linux Page

Help other users realize that everything is possible, especially avoiding Windows for their own personal use.

Welcome to The Linux Page


Fox Trot by Bill Amend. Click to enlarge.
Click to enlarge

This site is a collection of my own work with Linux. Certain things are easy, others take time to decipher and if I ever need to repeat the work (which usually happens!), then I need to remember everything by memory or... have a site with all the steps taken and to take again.

The following are my most recent posts:

Today I spent hours trying to find out why one of my find_library() would fail.

I fixed the search implementation, to make it cleaner as a result, which is not a bad thing, but the problem was a -D on a cmake call that would define the value ahead of time. That is...

There is the search I used:

find_library( ADVGETOPT_LIBRARY advgetopt
            PATHS ${ADVGETOPT_LIBRARY_DIR} ENV ADVGETOPT_LIBRARY
         )

This looks just fine and it should work, easy. I even added a test in my main CMakeLists.txt to see what would happen:

find_library( TEST_LIBRARY advgetopt
            PATHS ...

Today I needed to check a zone file to see why the IP address was wrong on one of my servers.

Sure enough, the IP was the old one (We switch servers about 9 months ago). Although once in a while I would get the right IP, the second name server still had the old IP. I thought the cache would be renewed more often than that, but I guess this is well optimized!

The error I made is not change the time info which means that the second name server never saw the change. This is just a domain name I redirect so I never noticed the problem before.

To check the cached file, though, I needed a way to ...

Functional Subscribe Form

Today I installed a simple mailing list builder on my Becoming an Internet Affiliate website. So simple that it creates a widget on the sidebar and that's it. So it's not going to be super persuasive, but I like it that way for some of my websites.

The plugin is called Mail Subscribe List. It's a free plugin making it particularly attractive. And it keeps the names and emails in your database (no third parties involved.)

The plugin offers a Widget that you can install in your sidebar. Go to

Appearance » Widgets

and then select the Subscribe ...

This happens on all websites. It's not specific to Wordpress.

However, this is when hackers are trying to gain access to your website. They do two or three things. First they choose common user names such as "admin" or your .com name (i.e. I have https://stargazerrock.com/ and they used "stargazerrock" as the username!) I saw "administrator" as well.

One way to protect your administrator account immediately is to change your username to something that they are not likely to guess. Say your surname is "giraffe", you could use that. Or even better, ...

Today I tested one of my Stargazer Rock blog pages and got a WSoD... Not the first time, but last time I fixed the problem by loading and resaving a PNG and changing an SVG to a PNG. Not the type of things I really want to do while bloging.

So I search into it, there is a plugin I use, called "Facebook Open Graph, Google+ and Twitter Card Tags" which attempts to load an image but only the first 32Kb. If that loads fine, then the author attempts to get the image dimensions and save that to the open graph meta data.

Somehow, some images will actually break that process because the ...

At times you have to prevent users from seeing files under a certain folder such as the /admin/ or /wp-admin/ folder.

The easiest way to at least avoid having Google index those pages is to add a Disallow line in your robots.txt file. For example:

Disallow: /admin
Disallow: /wp-admin

This is great and 99% of the time it does exactly what you want. Only once in a while a programmer does it wrong and places a file that should be searchable under such folders. For example, maybe someone placed a style.css file which is access by pages other than just pages under /admin. In that case, the ...

Today I had a weird one.

The PHP function named stream_socket_client(), used to create a socket to communicate with another computer over a network, may return $errno = 0 and $errstr = "".

The PHP reference actually mentions the problem:

On failure the errno and errstr arguments will be populated with the actual system level error that occurred in the system-level connect() call. If the value returned in errno is 0 and the function returned FALSE, it is an indication that the error occurred before the connect() call. This is most likely due to a problem initializing the socket. ...

I have a customer that uses Wordpress with the U-Design theme. It's pretty cool, but it does not give you the possibility to change the RSS feed shown at the top-right corner and in 2017 the RSS feeds are kind of dead (so not useful to be shown prominently, really.)

My customer also has an ebay account so he put his ebay link in that RSS, which you can do, but without changing the image, it just looked all wrong. (i.e. no one would click on that link, trust me!)

So... I create a quick button, "FIND US ON ebay", and replaced that corner from that RSS peeling thing to an ebay ...

Screenshot of a Wordpress website with the problem fixed.I have a website where I use Wordpress as the CMS. It's good enough for that website (frankly, unless you just want a blog, it's rather limited to my point of view, but I'm crazy... that being said with the pages functionality of today, it's not that bad.)

In 2017, they created a theme called Twentyseventeen, which looks good and has most of the functionality I need. However, there is a huge bug:

The front page has a smartphone menu at the bottom of the page which opens HIDDEN. That's just plainly wrong. Either you put the menu at the top or you make sure that the menu ...

Since I got my Android phone earlier this year, I got a huge problem with Google Calendar.

I use the calendar mainly on my Desktop. Big screen, easy to read and use. But on the Android, the format is Agenda to make it possible to use at all.

Somehow that has a really bad side effect: the display is now always forced to Agenda on my Desktop too. Really annoying!

Tere is actually a very easy fix! It took me months the discover it and it's actually very easy.

I have the Calendar link bookmarked so I can just click one button to get it open.


Update:

Today Google Calendar asked me ...

Thank you for visiting my website.