October 2005


After installing MySQL 4.1 I was unable to connect to the MySQL database via PHP. It turns out this was because I set the root password. I tried instructing MySQL to use the old password encryption method by adding these two lines to my.ini but that did not work.

#Use old password encryption method (needed for 4.0 and older clients).
old_passwords

Finally I just uninstalled MySQL 4.1 and reinstalled it without the root password. After doing that everything was fine.

Also I noticed when I uninstalled MySQL 4.0 it did not remove the service. When I installed MySQL 4.1 it complained about the Windows service”MySQL” already being there so I had to install the Windows service “MySQL41″. Then I uninstalled MySQL 4.1 due to the above issue and it removed the “MySQL41″ service.

When I installed the second time it thought I was trying to reconfigure the “MySQL” service. I instructed the installer to remove the “MySQL” service. Then I uninstalled and reinstalled a third time and this time I was able to install the Windows service “MySQL41″ properly.

This post is a log of how I personally got Subversion running on Dreamhost using this post.

  1. Obtained the Subversion source from http://subversion.tigris.org/project_packages.html#source-release, compiled it, and put the binaries in my ~/bin directory.
  2. Added the Subversion binaries to my path by adding these lines to my ~/.bash_profile file.

    # Set PATH so it includes user's private bin if it exists
    if [ -d ~/bin ] ; then
      PATH=”~/bin:${PATH}”
    fi

    For this change to take effect you either have to relogin or:
    $ . ~/.bash_profile
  3. Initialized new subversion repositories. For example:
    $ svnadmin create ~/svn/mk
    $ svn mkdir \
    file:///home/fkim/svn/mk/trunk \
    file:///home/fkim/svn/mk/branches \
    file:///home/fkim/svn/mk/tags

    I am following the suggested way of organizing a Subversion repository.
  4. Imported the files into the subversion repository. For example:
    svn import ~/meetingkoreans.com file:///home/fkim/svn/mk/trunk/
    svn import ~/meetingkoreans.com svn+ssh://fkim@meetingkoreans.com/home/fkim/svn/mk/trunk/
  5. Checked the files out. To do this locally:
    svn co file:///home/fkim/svn/mk/trunk meetingkoreans.com
    To do this remotely:
    svn co svn+ssh://fkim@meetingkoreans.com/home/fkim/svn/mk/trunk mkrb

Excellent introductory article, Using the Ruby Development Tools plug-in for Eclipse.

This article introduces using the Ruby Development Tools (RDT) plug-in for Eclipse, which allows Eclipse to become a first-rate Ruby development environment. Ruby developers who want to learn how to use the rich infrastructure of the Eclipse community to support their language will benefit, as will Java™ developers who are interested in using Ruby.

I installed Gallery2 for one of my clients. I then integrated Gallery2 with WordPress using this plugin.

Everything seemed to go fine except I could not get Gallery2’s URL rewrite to play nicely with the WordPress installation which resulted in thumbnail images not showing up in the sidebar. After much experimentation I finally decided just to turn off Gallery2’s URL rewrite to resolve the problem. I tried using this help page but it didn’t work for me.

I am also unsure how to make the Gallery2 pages look more integrated with the WordPress pages. Right now it’s glaringly obvious that the Gallery2 pages are not part of the rest of the site.

Gallery2 is pretty cool. It is quite improved from the original Gallery. I like how you can set the permissions for individual photos so that certain photos only registered users can see. It was annoying though that I had to type in the group name “Registered Users” instead of being given a choice in a drop down list of which group I want to assign a new permission.

What Is Ruby on Rails by Curt Hibbs — Ruby on Rails is an impressive web development framework that will soon reach version 1.0. While there’s a lot of buzz, it can sometimes be difficult to discern the steak beneath the sizzle. Curt Hibbs walks through the features and pieces of Ruby on Rails to show how it fits together and where its big benefits come from.

Plugins

  • WPG2 - embeds Gallery2 within Wordpress to share photos, videos and any other Gallery2 content seamlessly into the Wordpress Sidebar and Blog entries
  • Croissanga - re-posts your published-status posts to your Xanga site
  • WeatherIcon 2.0 - displays the weather for any place in the world
  • Theme Switcher - allows your readers to switch between your installed themes

Themes

To see different WordPress themes try the WordPress Theme Viewer.

Beginning in JDK 1.4.2, allocation of new objects is no longer expensive according to this article, Java theory and practice: Urban performance legends, revisited. According to this article.

… allocation in modern JVMs is far faster than the best performing malloc implementations…

The malloc/free approach deals with blocks of memory one at a time, whereas the garbage collection approach tends to deal with memory management in large batches, yielding more opportunities for optimization (at the cost of some loss in predictability).

This “plausibility argument” — that it is easier to clean up a mess in one big batch than to pick up individual pieces of dust throughout the day — is borne out by the data.

So allocate away, never object pool, don’t do strange, non-intuitive things to avoid allocating objects on the heap. Life is good.