How Not To Pick Variables

Here is a small example showing how choosing good variable names can make a huge difference. Look at the following code block, and see how long it takes you to work out what it does. If you find it takes you a while, look at the improved code below that and see how much easier it is! Even with short variables that are words, not being descriptive makes debugging very difficult. Using letters on their own is frequently worse. Both code blocks are functionally identical, only variable names are changed.

U.K. Teen Arrested For ... Not Being Nice Online

We've known for a while that some countries are more interested in limiting the freedoms of its residents than others are, but now it seems that in the United Kingdom, you can be charged for not being kind. Forget laws banning threats, harassment, or any kind of fair use copying, because the U.K. is now demonstrating to the world that you aren't even allowed to voice an opinion that might make someone sad or angry.

Adding Colour to Bash Prompt

As an Ubuntu user, I don't usually go to a root Bash prompt. It's actively discouraged by disabling root's login. That doesn't mean you can't get a root shell, but you have to be logged in as a regular user first. The way I do it is by issuing a "sudo su" at my normal prompt. This changes my $HOME environment variable to root's home (what I want), while not actually changing to root's home directory (also what I want). The latter point is where "sudo su" differs from "sudo -i".

10 Reasons To Switch To Linux

I apologize to everyone in advance. I have been negligent, and there is no excuse. As a rabid Linux advocate, I was supposed to have an article on my site explaining why everyone should use Linux. I suppose it's just laziness, or that after nearly a decade of trying to convert everyone, I no longer care what OS you use. I now know that no matter how logical and strong my arguments may be, the majority of people either don't care or don't understand, and will therefore only be susceptible to the peripheral route to persuasion.

How to Ad Block Responsibly

There are a few ways to block ads, the most popular being browser add-ons. Each browser has its own plug-in system, and a myriad of ad blockers. I'll leave it up to you to find the one that works best for you.

What I would like to discuss, is how to use them to everyone's benefit. Some people turn on ad blockers, and block every ad that they can find, on every site. I believe that this isn't the best way to do it, and for a couple of reasons.

Who is looking out for your privacy? Not your ISP. Not the Canadian Government.

As reported by Dr. Michael Geist LL.B. LL.M. J.S.D., law professor at the University of Ottawa, Canadian internet service providers are engaged in secretive talks with the Canadian government about the implementation of Bill C-30.
This bill, unknown to a lot of Canadians, will allow a number of Canadian law enforcement agencies to essentially "spy" on Canadians' telecommunications without the requirement of a warrant. This includes internet and email, land and cellular telephones.

Get Your Google+ Picture Beside Search Results For Drupal Content

Have you wondered how some people's blog and news stories turn up in Google's search results with their picture beside it? It's called claiming authorship, and with Drupal, It's not as difficult as you might think. Here is one way you can claim authorship in Google's search results with Drupal.

Bad Sound in Wine 1.4 under Ubuntu 12.04 12.10 13.04 x64

I did a lot of searching for a solution to this problem. Any programs that I would run with Wine had horrible sound. It was almost like an underrun or something like that. I unfortunately don't have output from the terminal, but thankfully I do have a solution, as posted on Wine's wiki. Just to be clear, the sound I was getting was kind of scratchy, like a "farting" noise. I would get the same scratchy sound when using winecfg's "test sound" button, and it didn't matter what options I chose. So, here's the fix!