Welcome to Newsoft Technology

Hi, my name is Paul Hopkins and Newsoft Technology is my company. I am an IT consultant who has been freelancing for nearly 12 years.

I have worked with numerous technologies over the years but currently specialise in Java, Java ME, JEE, iOS, Objective-C and Android development.

Please check out my Linked In page or download my CV

Blog

The rest of this page is dedicated to my Blog. I try to update it whenever I find anything I feel would be useful to share. It may not be a daily event - not sure what that says about me ;-) Hopefully you might glean something useful.

Macbook Air

I have just taken delivery of my new Macbook Air! I ordered it at 3pm and it arrived at 8:20am the next morning. You can't argue with service like that.

I was looking for something to replace my Macbook Pro which I have to return to a client. I chose the 11" screen to make it nice and portable with the thinking that I can plug a proper monitor in and just use it as a base station. Because of this I opted for the i7 processor and 256GB flash storage.

Starting and Stopping MySQL on Mac OSX Lion

It is sometimes useful to recoup the memory that MySQL is using while I am not using it so I can use it for other more important things (iTunes, Quicktime etc ;-). I have noticed that OSX Lion takes up a lot more of my 8GB than the previous version so this is even more important now.

To stop MySQL on Lion use the following:

sudo /Library/StartupItems/MySQLCOM/MySQLCOM stop

To start it again when you need use:

sudo /Library/StartupItems/MySQLCOM/MySQLCOM start

Java and Mac OSX Lion

I have just installed OSX Lion. I needed to upgrade Xcode to work on iOS5 so I thought I would take the plunge and move to Lion at the same time. While a lot of things are great Java apps were no longer running. The reason:

OSX Lion does not ship with Java!

Ok, so I install the 10.7 Lion JDK from http://connect.apple.com.

Once installed you will need to change your JAVA_HOME environment variable to the new location. For me this was:

/Library/Java/JavaVirtualMachines/1.6.0_26-b03-383.jdk/Contents/Home/

SVN on Mac

When you need to access a Subversion repository from your Mac there are a few options. Unfortunately most require you to buy software. If you would rather not, and you would like something a little more user friendly than the command line I can recommend SCPlugin.

http://scplugin.tigris.org/

Mac OS Environment Variables

So, my first proper blog entry is going to be to do with Mac environment variables.

I am installing MySQL and it is complaining that $JAVA_HOME is not set. What do I do? Ok, so here it is
In a terminal:

sudo vi /etc/launchd.conf
> Enter your password

You will now be in VI so you can use your normal VI commands. I would do:

a (to get VI into append mode)
setenv JAVA_HOME /Library/Java/Home
ESC (to exit insert mode)
SHIFT+Z Z (to save and close VI)

Subscribe to Newsoft Technology Limited RSS