Sep 14 2009

Optimize WordPress

My webhost recently moved all my sites to a ‘stabilization’ server because my sites were using far to much CPU time and Memory. After reviewing the logs it looked like some bot from India decided to repeatedly scrape one of my sites in it’s entirety without any delays between requests. So the support team over there either requires me to correct the problem or upgrade to a dedicated server plan at ridiculous costs.

Since I didn’t really think that there was a problem I emailed back about the single IP address that was causing all the issues and took steps to prevent requests from that IP address from accessing the site. The support team replied saying that my usage was still high and that I still needed to correct the problem. A little frustrated, I did some research on how to improve my site’s load time and hopefully reduce CPU and memory usage.

Most of my sites use wordpress so I found a large number of articles geared specifically to optimizing wordpress blogs. Before I tried anything I backed up my entire public_html directory and did a dump of all my mySQL databases (took almost 20 minutes for the dump).

Dealing with Plugins
The first thing I did was upgrade all my plugins. Most wordpress plugins allow you to upgrade automatically so all you really have to do is click a button and all the work is done for you. I also deactivated and deleted a surprising number of plugins that I haven’t really had any use for recently. Apparently a lot of free plugins can cause large amounts of unneccesary load on your server due to the authors not really knowing or caring how well their software performs.

Dealing with spam bots
I have been using the Akismet plugin for awhile and it has been reporting large amounts of spam comments and pingbacks. It’s not really something that most people worry about because the spam is automatically deleted after a period of time. It does however increase server load, especially if it’s in the thousands of messages a day. I found this little mod_rewrite snippet to deny any blatent spammers that don’t have a proper referer :


RewriteEngine On
RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{REQUEST_URI} .wp-comments-post\.php*
RewriteCond %{HTTP_REFERER} !.*codytaylor.org.* [OR]
RewriteCond %{HTTP_USER_AGENT} ^$
RewriteRule ^(.*)$ ^http://lemonparty.org//$ [R=301,L]

Cache and Compress
Since most of my pages rarely change it’s silly to generate every page for every request dynamically. After some reading I decided to use WP Super Cache to help optimize my WordPress sites. Of course just enabling Super Cache in the WP Super Cache plugin didn’t really improve load times for the end user but it should reduce server load immensely. What did improve load times drastically was the Super Cache Compression. This was a little more involved to get going but if you’re comfortable with copying and pasting code into a .htaccess file then it shouldn’t be difficult as long as your host supports mod_mime, mod_rewrite, and mod_deflate.

After going through all that, my sites now average at about half the load time they used to. Hopefully my web host feels that I’ve done enough to get off the ‘stabilization’ server so I don’t have to transfer all my stuff to another company.

Share

May 12 2009

Social Networking Behavioral Agreements At Work?

r0nc0 writes “My company (a Fortune 15 company) has recently required everyone that accesses the company portal to accept or decline an ‘agreement’ that governs the use of social networking. It basically states that any discussion of the company or any of the work that you do, whether at the office or at home, must be governed by their rules of social networking. Naturally these rules are that you never say anything bad or negative about the company, nor do you say anything bad or negative about anything. It’s presented like a EULA, but if you decline more than 3 times your manager is notified. Naturally I declined it each time until my manager complained to me about all the email he was getting about me not accepting the agreement, so I went ahead and accepted, knowing that anybody who cares would just post anonymously anyway. This is the first time I’ve run into a forced agreement about social networking, and the agreement is so broad that it can’t possibly be enforced. I’ve tried pointing out that agreements like that only drive people away and aren’t necessary anyway, but I might as well talk to a brick wall. Has anyone else out there run into social networking behavioral agreements like this?”

Read more of this story at Slashdot.


Share

May 11 2009

Emailaholics Reveal Their Habits

KentuckyFC writes “People can be accurately classified according to their email habits, say scientists from Yahoo Research in NYC, who have been studying the way 125,000 people use email on university campuses in the US and Europe. The team found that people fall into two clearly distinct types of emailer. The first group, “day labororers”, tend to send emails throughout the normal working day between 0900 and 1800 but not at other times. On the other hand, “emailaholics” tend to send emails throughout the waking hours from 0900 to 0100. These groups are pretty stable: roughly 75% of users stay in the same group over a 2 year period. That gives a pretty good way of classifying individuals that could be used by demographers. Interestingly, the technique can also be used to spot spambots which do not fit into either group.”

Read more of this story at Slashdot.


Share

May 10 2009

In France, Fired For Writing To MP Against 3 Strikes

neurone333 sends along the cause célèbre of the moment in France: a Web executive working for TF1, Europe’s largest TV network, sends an email to his Member of Parliament opposing the government’s “three strikes and you’re out” proposal, known as Hadopi. His MP forwards the email to the minister backing Hadopi, who forwards it to TF1. The author of the email, Jérôme Bourreau-Guggenheim, is called into his boss’s office and shown an exact copy of his email. Soon he receives a letter saying he is fired for “strong differences with the [company’s] strategy” — in a private email sent from a private (gmail) address. French corporations and government are entangled in ways that Americans might find unfamiliar. Hit the link below for some background on the ties between TF1 and the Sarkozy government.

Read more of this story at Slashdot.


Share

May 8 2009

College Threatens Students Over Email Addresses

superdave98 writes “As a sign that a CIO has way too much time on his hands, Santa Rosa Junior College is sending emails threatening lawsuits to staff and students who have the letters ‘SRJC’ in their private email addresses. They contend that people could be confused and think these are official email addresses. Sure, I suppose people who fall for 419 scams probably could be fooled, but not any reasonable humans. I can’t believe they found a lawyer who thought this was a good idea.”

Read more of this story at Slashdot.


Share

May 8 2009

Is the net hurting the environment?

Sending an email across the Atlantic Ocean does not burn any jet fuel, but the internet is not without its own, huge carbon footprint. One estimate suggests it takes a whopping 152 billion kilowatt-hours a year just to power the data centres that keep the net running. responsible for 2% of all human-made CO2 emissions, same as the aviation industry


Share

May 7 2009

Court Sets Rules For RIAA Hard Drive Inspection

NewYorkCountryLawyer writes “In a Boston RIAA case, SONY BMG Music Entertainment v. Tenenbaum, the Court has issued a detailed protective order establishing strict protocols for the RIAA’s requested inspection of the defendant’s hard drive, in order to protect the defendant’s privacy. The order (PDF) provides that the hard drive will be turned over to a computer forensics expert of the RIAA’s choosing, for mirror imaging, but that only the forensics expert — and not the plaintiffs or their attorneys — will be able to examine the mirror image. The forensics expert will then issue a report which will describe (a) any music files found on the drive, (b) any file-sharing information associated with each file, and any other records of file-sharing activity, and (c) any evidence that the hard-drive has been ‘wiped’ or erased since the initiation of the litigation. The expert will be precluded from examining ‘any non-relevant files or data, including … emails, word-processing documents, PDF documents, spreadsheet documents, image files, video files, or stored web-pages.'”

Read more of this story at Slashdot.


Share

May 7 2009

T-Mobile Provides iPhone Support Despite Not Offering iPhone

When a system update caused service failures and bugs in T-Mobile customers’ unlocked iPhones, the users emailed T-Mobile to alert them to the issue. Even though T-Mobile doesn’t offer the iPhone, they fixed the bugs and gave the users a service credit for the inconvenience.


Share

May 6 2009

Debian Switching From Glibc To Eglibc

ceswiedler writes “Aurelien Jarno has just uploaded a fork of glibc called eglibc, which is targeted at embedded systems and is source- and binary-compatible with glibc. It has a few nice improvements over glibc, but the primary motivation seems to be that it’s a ‘more friendly upstream project’ than glibc. Glibc’s maintainer, Ulrich Drepper, has had a contentious relationship with Debian’s project leadership; in 2007 the Debian Project Leader sent an email criticizing Drepper for refusing to fix a bug on glibc on the ARM architecture because in Drepper’s words it was ‘for the sole benefit of this embedded crap.'”

Read more of this story at Slashdot.


Share

Apr 28 2009

Phorm "Edited and Approved" UK Government Advice

Barence was one of several readers to send in word that the UK Home Office checked whether its interpretation of the law suited Phorm, before issuing advice on the legality of the controversial advertising service. The Home Office and Phorm entered a dialogue about the company’s services back in August 2007, at Phorm’s request. In an email sent to Phorm in January 2008, a Home Office official writes: ‘I should be grateful if you would review the attached document, and let me know what you think.’ After Phorm made deletions and amendments to the document, the Home Office sent another email to the company stating: ‘If we agree this, and this becomes our position do you think your clients and their prospective partners will be comforted.’ From the BBC: “Baroness Sue Miller, Liberal Democrat spokeswoman on Home Affairs, told BBC News: ‘My jaw dropped when I saw the Freedom of Information exchanges. … Anything the Home Office now says about Phorm is completely tainted.'”

Read more of this story at Slashdot.


Share