Gmail logo

How to block email from a sender in Gmail using filters

You might be shocked to learn that Gmail doesn’t offer an official way to block senders. So, what are you supposed to do when you find yourself on an annoying mailing list or circular and there’s no easy way to unsubscribe?

Luckily, Gmail’s filtering system gives you the power to block a sender with a simple rule. Today, we’re going to show you how to do that in a few easy steps. You’ll discover how to set up the rule the first time round, then add additional email addresses that you want to block. Let’s get started: Continue reading

Handling pseudo selectors like :hover in SASS

SASS is an amazing CSS preprocessor that allows you to rapidly code websites using nested rules and variables and a lot more.

However, one thing the basic SASS instructions won’t tell you about is how to handle pseudo selectors when you’re nesting your rules. I’m talking about :hover, :before, :after and :visited states. Do you create a whole new CSS rule for a pseudo selector, or is there a way to nest them?

Continue reading

Command line tip: How to restart Mac OS X networking

Apple LogoIf you’re a terminal warrior like me, you’ll occasionally need to reboot the OS X network interface. There’s a quick way to do this through the command line – but first you need to know the identity of your network interface.

Run the ifconfig command in your terminal and find the interface with an IP address attached to it. On my MacBook Pro, the ethernet interface is en0 while the wireless interface is en1.  Yours may be similar.

Shutting down the network interface

Now that you’ve identified the interface, shutting it down and restarting it is a breeze. Run this command:

sudo ifconfig en0 down

And to start things back up again…

sudo ifconfig en0 up

That’s it. It’s a simple command that’s worth remembering – or bookmarking!

iOS tip: Prevent font size scaling when device orientation changes

I’ve been messing around with mobile design this weekend. And among some of the mind-bending media queries and  cross device checking, I noticed that when I changed from portrait to landscape orientation on my iPhone, the font size seemed to scale up, upsetting the design.

After Googling around, as you do, I discovered a quick fix for this. It’s probably something that most mobile/responsive designers include as a matter of course these days, but simply adding this Webkit-specific line to your stylesheet fixes the awkward scaling issue when you rotate your phone screen:

body {
	-webkit-text-size-adjust: none;

Add the above to your existing body rules, and it’ll clear up orientation change weirdness.

Any other mobile design tips and tricks you want to share? Leave me a comment.

Ubuntu Logo

Linux: How to disable the guest account on Ubuntu 13.04

Ubuntu LogoBy default, Ubuntu 13.04 has a usable guest account. I discovered this yesterday evening when I noticed my daughter had logged on as a guest.

Obviously some of you won’t be comfortable having an accessible guest account on your computer. You’ll be pleased to know there’s an easy way to disable the guest account (and toggle it back on again if you need to).


Fire up a terminal session on your Ubuntu machine, then type in the following command and hit Enter.

sudo /usr/lib/lightdm/lightdm-set-defaults -l false

Reversing this process is as simple as changing the false at the end to a true.

sudo /usr/lib/lightdm/lightdm-set-defaults -l true

What this changes

What’s happening in the background when you execute this command? Quite simply, it inserts a line in the /etc/lightdm/lightdm.conf file that says allow-guest=false.

So, the alternative way to make this edit – if you like doing things the long way – is to use gedit or nano to edit the lightdm.conf file and add that line yourself. And obviously switch false to true to re-enable guest access.

Now, once you’ve made the changes, you’ll need to reboot your computer for the guest account to be fully disabled.

IOS Tip: How to take a screenshot with your iPhone or iPad

Ever need to take a screenshot of what’s on your iPhone or iPad screen? Well, if you’re an IOS novice, you’ll be pleased to know that there’s a built-in shortcut to take a photo of your screen any time you need. No need to buy expensive third-party apps, here’s the simple ‘how-to’ to get you started.

iPhone Screenshot tip


As you can see from the image above, it’s a very straightforward process to take a screenshot on your IOS device. Actually, this tip should work on all versions of IOS running on iPod Touch, iPhone and iPad. Here we go:

  • Get the image you want to capture up on your iPhone screen (obviously).
  • Press the power button and the home button on your device simultaneously. You should hear a click like a camera shutter. Your screenshot has been taken.
  • Now, head into the Photos app and you should see the screenshot in your camera roll.
  • That’s it. Pretty simple, huh?

Hope this helped you. If you found this tip useful, do us a favour and share this whereever you normally share stuff!

WordPress logo

How to enable a theme for a single site in WordPress Multisite

WordPress logo

WordPress MU (or Multisite) is a fantastic way of managing multiple WordPress sites without the hassle of handling separate updates for each site. Because an MU installation shares resources, plugins and core files only need to be updated once and every site is updated. Handy, right?

With WPMU, you can install a range of plugins and themes, and with network-wide activation, all your WordPress subsites have access to those resources. The thing is, sometimes you want to restrict a theme to one particular site. It took me a while to work out how to do it, but it’s actually quite simple. Here’s a quick step-by-step of how to do it:

  • Start by going to the Themes section in Network Admin. Make sure your theme is installed (obviously) and that it is not network enabled. (Network enabled means it’s available to all sites, and you don’t want that in this case!)
  • Staying in Network Admin, go to Sites->All Sites. From this list, click on the name of the site you want to edit.
  • Click on the Themes tab. You should see a list of themes installed on the site. Find the theme you want and click the Enable link beside it.
  • Next, browse back to the WordPress Dashboard of the site you’re working with. Go to the Appearance section and you should now see your theme is available. Activate the theme from there, customise it to your requirements and then check the live site to see how your theme looks.

Key screens:

WordPress network disabled theme

In the Network -> Themes section, it’s important to make sure the theme isn’t network enabled – otherwise, it will be available to all sites in your network. Obviously, if you discover your theme is network enabled, make sure to disable it here.

Single site theme enable screen

Staying in the Network Admin area, go to the configuration for the individual site you want. Click on the themes tab and from here you can selectively enable new themes. Save your changes and make any widget/menu edits your site requires and your new theme should be live on the site.

Hope this helps a few other WordPress network admins out there :-)


Google Chrome Logo

How to delete a URL from Google Chrome’s autocomplete history (Windows and OS X)

Google Chrome LogoThere’s nothing more frustrating than an unwanted URL that keeps popping up whenever you start typing a web address into Chrome. Maybe it’s been a site that you typed in by mistake and because it’s in your history it keeps coming up, always getting in the way of the result you want.

(Or maybe you’ve been visiting a site you don’t want anyone else to know about, but you don’t want to hose your entire browser history? Try using Incognito Mode next time!)

How do you get rid of unwanted single entries in the URL bar? It’s surprisingly simple. We’ve got instructions for both Windows and Mac OS X versions of Chrome.

On Windows

  1. Start typing the first few letters of the URL in question. The autocomplete entry should show up as usual.
  2. Use your arrow keys to navigate to the entry you’re looking for.
  3. Press SHIFT + DEL to delete the entry. Rinse and repeat for any additional items you want to remove.


  1. Start typing the first few letters of the URL in question. The autocomplete entry should show up as usual.
  2. Use your arrow keys to navigate to the entry you’re looking for.
  3. Press FN + SHIFT + DEL to delete the entry. Rinse and repeat for any additional items you want to remove

A different approach – using Chrome History

This is a neat trick if you’ve got a lot of pages you want to selectively delete at once.

  1. Type chrome:history into the address bar.
  2. Search for the specific history entry.
  3. Click Edit items on the upper right corner – checkbox will appear in front of the history entries.
  4. Select the checkbox for the entries that you’d like to delete.
  5. Click Remove selected items.
  6. Click Done removing items to complete.