Watched a movie or a TV show? Log it in WordPress with Traktivity

Do you watch a lot of movies or TV Shows? Do you have a WordPress site? You will love Traktivity!

This plugin allows you to log everything you watch inside your WordPress site. You may then use that data for anything you want.

You could display the last few shows you watched in a widget in your sidebar, you could automatically post on Facebook or Twitter whenever you are watching something, or you could just keep that data to find out more about the genres you watch the most, or how many hours you spent in front of the TV last month or last year.

Most importantly, that data is yours, saved in your WordPress site for good.

Continue reading

Ubuntu: adjust your mouse settings

One of the things that bothered me when I switched to Ubuntu was the mouse: while the Mouse settings panel offered options to change the cursor speed, I couldn’t change the scroll wheel settings: I wanted it to be faster, and I wanted it to use Mac OS’ natural scrolling direction.

After a bit of googling, this specific answer helped me get this fixed.

First, you get a list of the different devices linked to your machine, then you check the settings for one of the devices (number 10 in my case), and use set-prop to customize a specific setting.

Changing from 1 to -1 got me the natural scrolling back. Victory!

xinput list
xinput list-props 10
xinput set-prop 10 'Evdev Scrolling Distance' -1 5 5

Now if only I could do something to get all my additional buttons back, that’d be great! :)

Use Unison on Webfaction

Unison is a great little tool to synchronize files between your local machine and a remote server. It’s free, open-source, and cross-platform. I use it every day to develop Jetpack. However, until very recently I couldn’t use it to work with files on this very site. I’m hosted with Webfaction, a great hosting provider for developers who want flexibility without having to deal with server administration. A lot of packages are already installed and configured on my server for me. Unison is not available by default, so I had to install it myself. Luckily, Webfaction lets you do that!

Here is how I did it.

Uninstall Chrome’s “Live HTTP Headers” Right Now

I’m very careful with the things I install on my computer, and the extensions I used in Google Chrome, my browser of choice.

Unfortunately, it seems that an extension I installed a long time ago, “Live HTTP Headers“, is now used to insert a random JavaScript file on all the sites you visit. That file will randomly generate an ad pop-up on any site, using the asgds_modal ID. That’s pretty bad. ?

If you use that extension, you’ll want to deactivate it right now!

It took me a little while to figure out where that pop-up was coming from, as the extension name hadn’t changed. The only tip was that the JavaScript file would sometimes return a 404, thus generating an error in my browser console. That led me to look at the Extension page in the Chrome store, only to realize the extension had already been removed from the store. That’s great, but it’d be great if they also removed the app from all browsers using it!

I’m now back to using the Network tab of the Developer tools for that kind of work, unless some of you know of a good extension I could use?

A little fun with CloudFlare

I like CloudFlare. They offer tools to protect your site, and a lot of their services are even free. For the most part, it’s a service you set once, and forget about.

That doesn’t mean you can’t have a little fun with it from time to time, though!

While tweaking my CloudFlare settings this morning, I decided to add a little Page Rule to redirect some of my site’s most dedicated bots to a very special YouTube page…

New CloudFlare Page Rule

Learn more about this little Page Rule

SSH Agent in macOS Sierra

I upgraded to macOS Sierra this weekend. The upgrade was mostly painless; I only had to switch from Karabiner to Karabiner Elements to customize my keyboard.

But when trying to update my remote development environment this morning, I ran into the first issue: ssh-agent didn’t seem to work anymore. My keys were not added to my keychain when accessing my remote sandbox with ssh -A mysandbox.

After a bit of googling, I found my answer. To fix the issue, and make sure I could use my keys even when connected to a remote sandbox, I added the following to my .ssh/config file:

Host *
        IdentityFile ~/.ssh/name_of_my_private_key_file
        AddKeysToAgent yes

Now on to the next problem!