Fixing an error with being unable to add user fields in Drupal 7

Wednesday, April 4th, 2012

Drupal 7 has a nice built-in Fields functionality which can be used to add fields to any entity. As applied to users, this replaces the previous Profile module which was used in Drupal 6 to add fields to users. However, right after creating a new Drupal 7 site, I couldn’t figure out how to add fields to users.

I followed these instructions

Just go to:

Configuration > People > Account Settings

Then click on the Manage Fields tab, and then just manage the fields just like you would for a Content Type.

But there wasn’t a “Manage Fields” tab on that page. Going to the URL directly, admin/config/people/accounts/fields, was redirecting me back to the Account Settings page. After banging my head against the wall for ten minutes I finally realized that the reason I couldn’t see this tab was because the “Field UI” module wasn’t enabled. Go to the List Modules page, enable that module (and its dependencies), and now you should be able to add fields to users.

How to use jmp (Java Memory Profiler) on Windows

Thursday, January 11th, 2007

I spent way too long figuring this out, so I figured I might as well spread the knowledge.

I’m developing a Java application for school using the Eclipse IDE. We’re having some memory issues, and the application is chugging on slower computers. So I wanted to use the Java Memory Profiler, but, it turns out it’s a little bit hard to get to work on Windows, and walk-throughs out there are not very good on the subject.

First, download the jmp dll. Put it into C:\Windows, and if that doesn’t work on the following steps, put it in the directory with the application as well.

This is the part that tripped me up. I wasn’t actually able to get jmp working with Eclipse, but I did get it working with normal Java. For this, you’re going to need to install Cygwin. Luckily, there are lots of good Cygwin tutorials out there. You’ll also need GTK+. It should be a simple download and install.

Open up Cygwin and change to the directory that contains the Java application you want to profile. Let’s say it’s called Application. Run this just as a test, to make sure that Java is working properly:

java Application

If that works, it’s time to try jmp. Here we go!

java -Xrunjmp Application

That’s really all there is to it. Too bad it wasn’t really stated succintly anywhere else on the web. You can also run the following command to get a list of jmp options:

java -Xrunjmp:help