Disable Password Reset In WordPress

If you run WordPress and are tired of having script kiddies clicking the “forgot password” link and getting emails, just disable it by editing your .htaccess file. If you’re running your own instance you don’t need it anyway.

<IfModule mod_rewrite.c>
RewriteEngine On


RewriteCond %{QUERY_STRING} action=lostpassword
RewriteRule (.*) $1? [R=permanent]

Customize the default size of your Terminal in Ubuntu

If you’re like me, you can’t stand the default dimensions of the Terminal window in Ubuntu. Luckily, there’s an easy way to fix that for good!

First, right-click on your Terminal shortcut, and select Properties from the context menu.

Then modify the Command “gnome-terminal” (which is the executable name) to:

gnome-terminal --geometry=150x30+600+600

The first two numbers, 150x30, is the width and height of your window respectively. The second two numbers, 600+600, are the coordinates of where you’d like the Terminal window to appear when you launch the program.

This should work in most other flavors of Linux as well.

Getting bashrc to work in Mac OS 10.6 Snow Leopard

I just got a new Mac on Wednesday, so naturally I’ve been configuring it to my liking bit by bit. I made the discovery that Snow Leopard doesn’t seem to support /Users/yourusername/.bashrc out of the box.

No worries though, there is an easy fix!

Open up Terminal and type:

sudo vi /etc/bashrc

Then at the end of the file, add the following line:

source ~/.bashrc

Then, cd to /Users/yourusername and create a .bashrc file. If you’re not sure what you’re going to put in it just yet, at least do the following:

touch /Users/yourusername/.bashrc

So that you don’t get an error next time you open a shell ;-).

Hopefully that saves someone else some time!

Google Announces Chrome OS, Microsoft Cries

Google has announced Chrome OS, an operating system built off of the Linux kernel for desktop computers and netbooks.  Are you as unsurprised as I am?  I hope to god Microsoft isn’t.  But then again, ever since the release of Windows XP, Microsoft has been running around like a chicken with it’s head cut off.

This, dear friends, was inevitable.  But many people may be asking, why?  Just like many asked the same question when Google released their Chrome Browser.

It has nothing to do with the fact that Google and Microsoft are competing like, well, Goliath and Goliath.  It runs much deeper than that.  As years have gone by, operating systems (well, Microsoft’s in particular) have gotten way too bloated, and the Internet has gotten way too fast.  You know the routine by now: every 2-3 years, you buy a new PC, with a faster processor, faster graphics processor, bigger hard drive, and with a new version of Windows on it.  And I’m sure plenty of you asked, “Why?  The Internet looks the same on all of these computers!”.  You’re exactly right.

How much time does anyone spend on their computer these days that’s not in a web-browser, using web-based email or web-based instant messenger?  The Web Browser is the new OS (well, at least the part of it you see).  Anyone still surprised that Google’s web browser and newly announced OS share the same name?

In the last few years, web technologies have gotten incredibly good at making you feel like the browser is the same as your desktop.  AJAX really opened the floodgates for web-based applications that behaved like “regular” programs.  As a result, Google Docs have gotten pretty damn good.  In fact, I don’t even own a copy of Microsoft Office anymore, I just do all of my documents in Google Docs.  I have yet to find a feature that I need they don’t have, and my documents are available to me anywhere, because they’re in the cloud.

More recent developments are pushing us even closer to a web browser OS world.

Does it shock you at all that Google has been heavily involved in providing APIs to do rich 3D graphics rendering right in the browser?

What about the HTML 5 video standard? Once codecs are decided on, embedding video will be as easy as embedding an image in your HTML.  This means Flash video will be rendered obselete.  Apple doesn’t look so dumb after all not worrying about Flash running on the iPhone now do they?

So, the web browser becomes the artist’s blank page, for software slingers to serve up applications for email, photo editing, making presentations, editing documents.  And underneath will be the OS kernel, providing access to the hardware on your device.  And that’s it.  It doesn’t have to be complicated, because you don’t need to have all your software installed locally.  It’s in the cloud, where it belongs.