How To Install Java 7 on Mac OS X

For most, this would come in handy with those using the lat­est browser extensions/add-ons that use Java, espe­cially ver­sion 7 (in the time of this writ­ing). There are two ways to go about this. First, for most users, they just need the JRE. The sec­ond are those doing devel­op­ment work and need the JDK.

Before we start the instal­la­tion process, let’s start with some pre­flight check and do the fol­low­ing in Ter­mi­nal prompt:

$ java -version

This will give you 1.6.x of some degree. Now, let’s start the installation.

If you just need the JRE:

  1. Down­load the JRE here.
  2. Fol­low the instruc­tions, and install onto your OS X system.
  3. In your ~/.profile,1 add the following: 
    export JAVA_HOME="/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home"
  4. Open a new Ter­mi­nal win­dow, and run the fol­low­ing to check you are run­ning the intended version: 
    $ java -version

    This should give you some­thing like the fol­low­ing results:

    $ java -version
    java version "1.7.0_67"
    Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
    Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

For those that need the JDK, and run­ning Home­brew, you may do the following:

  1. Down­load the JDK here.
  2. Install jenv via Home­brew:2
    $ brew tap jenv/jenv
    $ bre install jenv

    More info here.

  3. Add the fol­low­ing in your Bash files by run­ning these in Ter­mi­nal:3
    $ echo 'export PATH="$HOME/.jenv/bin:$PATH"' >> ~/.profile
    $ echo 'eval "$(jenv init -)"' >> ~/.profile
  4. Con­fig­ure jenv by run­ning the fol­low­ing for example: 
    $ jenv add /Library/Java/JavaVirtualMachines/jdk17011.jdk/Contents/Home
    oracle64- added
  5. Last but not least, check that you are run­ning the intended ver­sion in Terminal: 
    $ java -version

I hope that helps. 

  1. Or .bashrc, .bash_profile, etc. []
  2. Be sure to brew udpate and run brew doc­tor before adding any new pack­ages, always. []
  3. Again, these can be .bashrc, .bash_profile, etc. []

Responsive Web Design Process

As I’ve said recently, there has been a surge of #RWD­process insights.

Just an overview, as I was review­ing my notes from years ago, led me to the same con­cepts that was shared by the web com­mu­nity. Here’s some visu­als from Pon Kattera…

Con­tinue reading →

Increase File Upload Size Limit

I am work­ing on a project that requires high-level users to be able to upload more than the default Word­Press file-upload limit. I’ve done this in the past but I have set it to a multi-domain set­ting. Mean­ing that it encom­passes all of my domains being hosted in a par­tic­u­lar Dreamhost user account.

I wanted to only increase the file size (again) to some­thing much larger than I’ve had before but only for a par­tic­u­lar sub­do­main; as I was using it for stag­ing. Here’s the process that I took to make that hap­pen.1

Con­tinue reading →

  1. These steps are a para­phrase from Dreamhost’s Wiki arti­cle. []

Converting a Subversion SVN Repository to Git

I’ve used DreamHost’s SVN host­ing with past projects I’ve done. It wasn’t till recently that I had time to migrate them over to Git. Search­ing the net, I found JohnAlbin’s steps on how to do so effi­ciently (writ­ten in August 2010).1

Here’s a slightly-updated-shorter ver­sion of that (con­tain­ing steps of my migra­tion to Bit­bucket):2

Con­tinue reading →

  1. If you have Ruby, you may try svn2git tool, which will skip steps 1–6. []
  2. Unlim­ited pri­vate and pub­lic repos?! Why not. Get yours at https://bitbucket.org/ []