phpBB admin password manual reset

phpbb_logo

Today I ran into a situation where I had forgotten the password to my development instance of phpBB 3. I was stuck in a situation were I needed to reset the password. I had full admin access to the database, so changing it there wouldn’t be the problem. The real problem is that phpBB uses its own password hashing, not MD5.

In a work around, I created a new user and used the password “123456” looking at the database , in the users table of the phpBB install. I saw the “user_password” field was “e10adc3949ba59abbe56e057f20f883e”.

I then changed my admin accounts user to the same string, “e10adc3949ba59abbe56e057f20f883e”.

phpbbpasswordreset

I went to the phpBB login screen, fillled out my username, and entered the password “123456”… BINGO! it worked.

So to save you the work. You can follow what I did or just use these hashes to reset your own password:

Hash: e10adc3949ba59abbe56e057f20f883e
Password: 123456

Hash: $H$9Ae3Uk.ECdWW5ya13M4ErWhr4c.761/
Password: password

I hope this helps someone else out there.

no place like home (and end keys) on a mac

keyfixer

I never noticed how often I use the “home” and “end” keys when I type until they were taken away from me. I am a programmer by trade, and as a result, I type code all day long. On a PC the end key will take you to the end of a line, and the home key will bring you to the beginning of a line. On a mac, this functionality doesn’t exist. It’s simple missing! It just makes a “ding” at me

Maybe it would be different if I was using a mac keyboard with my mac mini. Right now I am using a KVM switch to share my microsoft mouse and keyboard with my PC and my Mini. As a result, My mind and hands continue to type and work just like I was coding using a PC. “DING DING DING” damn its annoying. I had no idea i hit those keys so often, but the mini does a good job at reminding me 🙁

I tried to live with it but it got old fast. I decided to do a google search for “home end keys mac” to see if there was a fix for this. The first result was a God send. keyfixer is a tiny application for pc-to-mac switchers like me, that remaps your keyboard and adds back the functionality of the home and end keys.

It’s amazing how much more productive I feel just by having those 2 keys back. I guess after 15+ years of typing/programing for a living, the home and end keys are a perminiate part of my arsenal and I will never underestimate their power ever again.

I got a mac

mac_mini

As part of my 2009 new years resolutions, I’m going to write an iPhone application and launch it this year. I realized that the first quarter of the year is almost over and I haven’t made any progress on this. The biggest hurdle was the development platform. I’ve tried to install Mac OS X onto my PC several times but it never worked right, so I decided to bite the bullet and get the ball rolling, I spend my hard earned american cash dollars and bought a mac.

I weighted out all my options and decided that the lowest barrier to entry would be the mac mini. I’m not looking to completely switch to mac (yet), I’m planning on keeping my PC going strong and using the mac mini as a development platform.

I was really impressed with the packaging of the mac mini, and the form factor of the actual machine, it’s well…. mini.

macminiruler

It’s going to take a bit if time for me to get the full swing of OS X. I’ve been using windows and ubuntu for so long now that I have an expectation for application behavior, and OS X is throwing some curve balls at me  that I need to get used to. The good thing is that most of my friends, and google are helping me cope and deal with it.

I think it would help if I actually got an apply keyboard to go with it. instead of using my PC keyboard. Too bad that apple doesnt make an ergonomic keyboard like the one I use.

I’m going keep this blog updated with my switching experiance as I slowly easy into the fan boy soaked world that is Apple. iPhone app development, here I come!

JQuery 1.3 domination through deprecation

jquery 1.3

On a project I maintain, we recently rolled up to JQuery 1.3.1 from JQuery 1.2.6. Upon doing so, several things instantly broke.

I started seeing errors on lines like this:

if($('input[@name=username]').val() != "")

I decided to check the JQuery 1.3 relase notes to see what had changed.

The first bullet point answered my problem:

The ‘@’ in [@attr] has been removed. Deprecated since 1.2 this old syntax no longer works. Simply remove the @ to upgrade.

As it turns out, the @ style selector was depricated and wasn’t suggested for use when JQuery 1.2 was released, but it was still supported. At 1.3 the @ style selector was removed all together, and as a result broke our code!

Following the upgrade instruction I removed the @ symbol from the selectors, and the code started running again.

The result:

if($('input[name=username]').val() != "")

A simple and effective upgrade, and a reason to closely pay attention to release notes

Manually reset your WordPress password

lost-wordpress-password

It doesn’t matter what application your working with, losing your password is always a pain in the ass. Luckly if you are working with wordpress (man, I blog a lot about wordpress these days), on your server and you have access to the MySql database, resetting your password manually is a snap.

  • Login to your PhpMyAdmin
  • Select your WordPress database and click on the “SQL” button to open the SQL query window.

wordpress-phpmyadmin

  • Paste the following code in the window textarea. (Don’t forget to modify the password and username before executing it)

UPDATE ‘wp_users’ SET ‘user_pass’ = MD5(‘PASSWORD’) WHERE ‘user_login’ =’admin’;

That’s it! Your password has been reset, and you should be able to login to your wordpress admin area once again.