I sometimes use NetBeans for PHP projects on my Windows laptop. I recently ran into a really annoying problem when doing a “Find in Projects” search. The search works fine, but when I double-click on a search result, the source file opens in the output panel right next to the search results. It should, of course, be opening in the main window with the other source file.

This was driving me nuts, until I finally found the solution:

Reset the windows from the menu with Windows –> Reset Windows

That solved the problem instantly.

FYI, I think weird symptom started happening after I accidentally un-docked and then re-docked the output panel or the search results tab.

{ Comments on this entry are closed }

We’ve been using the WordPress W3 Total Cache plugin to speed up our WordPress sites. It rocks. And after a long hiatus, the author Frederick Townes finally updated it and now he’s giving it lots of attention. Thanks Frederick. Now it rocks even more!!!

But… when we first upgraded, it didn’t seem to work.

The Proglem: W3 Total Cache Not Working on Multisite Install

You should not that we run a WordPress multisite network. We use W3TC on only a few sites, and it always worked great.

But, when we upgraded to the new and improved W3TC, the WP admin showed only a title page Dashboard. And annoyingly, its primary purpose seemed to be selling us premium services. (No worries Frederick, we know you deserve to get paid!)

There were no config tabs or menus, and we couldn’t figure out if it was even running or not.

Bummer!

The Solution: Change the Network Config Setting

The solution turned out to be very easy, albeit darn hard to find.

To fix the problem, go to your Network Admin site and configure W3TC there. On the Performance –> General Settings Tab, scroll down to the Miscellaneous section near the bottom. There, you need to uncheck “Use single network configuration file for all sites.”

Hit save, and BINGO! You should be all set.

W3TC Multisite Network Config

Uncheck the box and W3TC will work as expected on WordPress Multisite Network installations.

{ Comments on this entry are closed }

Photoshop Tips, Tricks, and Shortcut Keys

Photoshop

I use Adobe Photoshop on a pretty regular basis. But I still find I need to look things up from time to time. Sometimes I look things up because I’ve been doing it “the way I know how,” but I know that that must be a better (usually faster and easier) way and I am [...]

Read the full article →

How to Password Protect WordPress Admin (or Any) Apache Directory

apache

If you are running WordPress, it’s a good idea to lock down the WordPress admin. Sure, it’s password protected already. But you can (and should) add some extra security to lessen your vulnerability to any newly discovered PHP or WordPress security bugs. Background We recently enhanced our own WordPress security and added an extra layer [...]

Read the full article →

301 Redirect from Bare Domain to Full WWW Domain

apache

We recently set up Google Pagespeed Service for one of our WordPress sites. The site was setup with a “bare” domain name. That is, it had no subdomain. For example: http://healthfitnessexperts.com Google’s Pagespeed Service can’t handle bare domains. Like many content delivery networks (CDNs) and similar services, Pagespeed requires a subdomain like www. For example: [...]

Read the full article →

Restarting Apache Gracefully

apache

If you are restarting the web server on a live website, you should do it gracefully. A graceful restart tells the web sever to finish any active connections before restarting. This means that active visitors to your site will be able to finish downloading anything already in progress before the server restarts. If you are [...]

Read the full article →

How to Upgrade APC on Ubunutu

apache

APC — the Alternative PHP Cache — is a handy caching utility for use with PHP. We use it with W3 Total Cache to speed up our WordPress sites. I recently had a little trouble remembering how to upgrade APC to a more current version on our Ubuntu installations. We had installed APC with pecl, [...]

Read the full article →

PHP APC: How to Monitor Usage and Config for Optimum Performance

apache

APC is the Alternative PHP Cache. It’s a handy caching utility for use with PHP. We use it with W3 Total Cache on our WordPress installations. It runs OK “out of the box.” But you likely need to tune the config a bit to get the most out of it. The most common tweak is [...]

Read the full article →

Failed Ubuntu apt-get upgrade corrupts the available file

ubuntu server

I was upgrading Ubuntu packages with The upgrade failed with a segmentation fault. I tried again, but found I had a corrupted /var/lib/dpkg/available file. I first go this error: I edited the available file and fixed the problem. But then I got this: I made more edits and got more errors. It then realized that [...]

Read the full article →

How to automagically get friendly URLs in Rails 3

Ruby on Rails Tips

By default, Rails uses ID’s in URLs. For example, let’s say we have a list of categories stored in the categories table of the database. The “Super Cool” category is stored with categories#id = 5. To view that category our URL will look like: http://yourAwesomeDomain.com/category/5 That works great, but it’s not very user friendly. It’s [...]

Read the full article →