Oldskool Wacom

At Aligent all our workstations are on CentOS 7, which is fine & dandy except for one thing. I couldn’t get my Wacom tablet to work.

Ever since I started using computers I’ve used a graphics tablet as my preferred input device and after 20 odd years I can’t stand using a mouse.

Why? Aside from the issue of RSI it just feels so slow and inaccurate. Using a mouse there is another step in the chain between brain and screen. You look at  the screen and know where you want the mouse, then you move your hand and the cursor moves closer to the target. Then you repeat those steps until the cursor is in the right place and THEN you can click. With a tablet, the pen is mapped to the screen. Your body is clever enough to quickly learn the exact position to move your hand  and touching the pen to the tablet is a click. Much quicker.

For the past few weeks I’ve been unable to get my latest Wacom tablet to work with linux. Today I found a solution. I dug out a 20 year old tablet I stole from a company I worked for in London back in the 90’s. Sure enough I plugged it in and bosh – it worked first time. Happy days.

I just love oldskool solutions to modern tech problems.

Use Terminal to create symbolic links to your themes on your local drive

The Question?

Let’s say you have 2 WordPress sites running different databases and you want to see how your new theme looks on both of those websites at the same time, how would you do that?

An Answer

You want to be able to edit one theme and see that theme update on two different WordPress instances on your local mac so one way to do that is to create a symbolic link to the working theme in /wp-content/themes/<your-theme->name>

This means that when the apache (or whichever server you are using) looks for the theme, it finds it.

This assumes

  • You’re on mac
  • You can open the terminal and do basic cut & paste.

The Method

  1. Open Terminal.
    type terminal into spotlight
  2. Open TextEdit
    type textedit into spotlight
  3. Cut and paste the following into a blank TextEdit document
  4. The basic format for the linux operation we’re going to perform is this
    ln -s /path/to/original/ /path/to/link

    or a more real example might be this. Let’s say you have a working directory called node

    ln -s ~/node/{path-to-your-dev-theme}/wp-content/themes/listingslab/ ~/node/{path-to-your-second-site}/wp-content/themes/listingslab/
    The ln command is a standard Unix command utility used to create a hard link or a symbolic link (symlink) to an existing file. The use of a hard link allows multiple filenames to be associated with the same file since a hard link points to the inode of a given file, the data of which is stored on disk. On the other hand, symbolic links are special files that refer to other files by name.
  5. Copy & paste the above command snippet into your TextEdit window, replacing the paths {path-to-…} with more sensible ones of your own. Do this in text edit because you want to make sure it’s perfect before you Cut & paste the command into Terminal. You can find the path to a folder easily by dropping it into a terminal window.
  6. Once you’re happy that the command should do what you want it to, cut and paste it into the Terminal window to create the symlink.
  7. Look in finder to see if your symlink has been created.
  8. Test your second website administering the theme and checking the dev theme shows up.