1 2 3

Struggling to understand what the symbols and characters mean in Clojure?

In Clojure, there are a lot of funky symbols and it may be difficult to Google for the meaning of such characters, which is exactly why this page exists!

Not seeing any form controls when editing Visual Composer’s Text Block elements?

If you’re not seeing any form controls such as font size, paragraph settings, etc., when editing a Visual Composer Text Block element, that may be because of your WordPress user profile settings.

  1. In the WordPress Dashboard, click on Users on the left.
  2. Find your user account in the list.
  3. Select ‘edit’.
  4. There will be an option called: “Disable the visual editor when writing”
  5. If it’s checked, uncheck it to re-enable the visual editor.

Sendmail: receiving all mail, and routing it to a single address

Sendmail is a very simple mail program. To my surprise, I discovered it could also receive mail.

What prompted me to use sendmail to receive email was the AWS email verification process. I didn’t want to go through a lot of configuration steps just to receive a verification email.

Anyway, the feature that will allow you to receive all mail, regardless of the address, is the virtusertable file in /etc/mail/.

I used this guide when setting up this feature.

In order to enable the virtual user table, you need to add it to your /etc/mail/sendmail.mc file.

Note, every time you change your /etc/mail/sendmail.mc you’ll need to run sudo make -C /etc/mail.

This was also a helpful resource in setting up sendmail.

Remember this when trying to get the ‘page’ parameter from a pretty URL in WordPress

In WordPress, if you use pagination using pretty permalinks, and your URL looks like this: /products/page/2

In order to access that parameter, you’ll need to use this: get_query_var('paged').

Notice how in the URL the parameter is called ‘page’, but in code it’s accessed via ‘paged’.

Removing content set with :after using :last-child

When you use :after to set content, you might then want to remove the content from the last element using :last-child.

I was attempting to do this the other day, and ultimately what I had to do was use two pseudo-elements together.

ul li:last-child:after {
    content: none;
}

That was the selector I ultimately ended up with.

1 2 3