Skip to main content

Posts

Showing posts from September, 2013

Installing Tomcat on Mac OS X

Installing Tomcat on Mac can be done in three steps. Following the steps below you can have tomcat running on your Mac in no time. Step 1: Download and Install Tomcat Binaries Download the most recent stable build of Tomcat from an Apache project mirror site . Unzip the binaries into a simple location (I did it in /Users/username/Documents).  By default, the unpacked folder name will be something like "apache-tomcat-x-x-xx".  I recommend changing it to "tomcat" for ease of use. Step 2: Configure the env variables  For our purpose we need to set up JAVA_HOME and CATALINA_HOME variables. Setting up these variables will ensure we don't have to use the complete path name. To set the variables, open a new Terminal window and use the following command to open the system profile for editing. vi ~/.profile Once you've opened the profile, add the following lines to set the JAVA_HOME and CATALINA_HOME variables: export JAVA_HOME=/Library/Java/Home ...

Commits not showing up on the contribution page in Github

I recently ran into an issue where my commits were not showing up on my github account. Initially I thought it had something to do with settings on my new machine as I started having this issue after I switched machines. However, the public activity page was listing all my contributions just fine which led me believe something else was wrong. After spending some time trying to debug this, I contacted github. They told me I was using an email address 'robin@Robins-MacBook-Air.local' in my .gitconfig which was the system login. Due to this, changes were not being attributed to my account. To change this I ran the following command: git config --global user.email <my_email_on_github_account> The email needs to match an email address in your GitHub account in order for the commits to be properly attributed to you. However, I also wanted my previous commits to be attributed to me. For that I had to add 'robin@Robins-MacBook-Air. local' to my GitHub account here...