Thursday, August 28, 2008

Installing mySql on Mac OSX Leopard

Just got done installing mysql on my macbook pro. Installation went just fine. Followed the same document that also had php installation instructions. Click here to view that document again.

I accepted all the defaults and have not yet gone through the instructions for connecting to php. A couple of places I stumbled only briefly. As mentioned in the article I downloaded the MySQL GUI Tools. This gives a visual interface and will definately work better for me as I still have no clue to all the command line stuff on this mac. After installing the gui and clicking on the MySql Administrator app in the applications folder I was given the option for a server and username and password. Server Hostname can be set to "localhost" and username to "root". Then you can change the password when you get in there.

Very simple. Now I gotta learn the interface.
Installing Coldfusion 8 on Mac OSX Leopard

I just installed coldfusion 8 on my macbook pro and didn't have any problems. I read through this post first and it had instructions, but all the settings in that article were the defaults so I just clicked through and it installed no problem.

I am, once again, not sure about the directory structure. Not sure if the default /library/documents/webserver is the best place but it does work, at least the CF administrator does.

I installed the 64 bit version. The way I understand it is that with the core 2 duo processors you can get the 64 bit versions of the files

Now on to mySql.
Viewing Hidden Files

I Figured out how to view hidden files, but it wasn't easy and I am still not 100% comfortable with it. I followed the instructions here: http://guides.macrumors.com/Viewing_hidden_files_on_a_Mac but that did not seem to work. I wanted to just use finder to see the hidden files. When I typed in the suggested commands, I didn't get an error but it is definitely not working. So I resorted to downloading a couple of additional programs. Textwrangler and Coda.

I actually downloaded Textwrangler first and struggled a little so I began to download coda. Before it finished I had figured out Textwrangler so that is what I ended up using. From the textwrangler menu you choose "File/Open Hidden". After that it still isn't easy as I still am learning to understand directory navigation on the mac. I was able to find the private directory by clicking on the "Macintosh HD" in finder. It would be more intuitive at this point if it would have been under Desktop, Home, Applications or Documents which is where most stuff seems to be.

I haven't got back to using this (modifying hidden files) yet, but I will and I think I will be alright now. I still need to install mysql and coldfusion.

I did get php working by just modifying one line as instructed here: http://reverbisnotalie.com/code/php-mysql-apache-mac-osx-leopard

Sunday, August 24, 2008

Apache, ColdFusion 8

I want to install apache and coldfusion 8 on my mac so that I have a complete development environment on this machine. I enabled web sharing which I think is apache and It works. But I can't find the apache directories. It looks like you have to make hidden directories and files viewable and I did that as instructed here:

Viewing hidden files on a Mac

But I still can't figure out where the http.conf apache file is. This is not easy so far, unless I am just missing it.

Thursday, August 21, 2008

Gmail on a Mac

This one is going to drive me nuts. On a pc using gmail you can type an email, press tab and then enter and it sends the email. When you press tab it moves focus to the send button. On this mac that doesn't happen. Tab never performs like I expect, at least on web pages. Driving me nuts. Funny how such a little thing can make such a difference. But I at least need a comparable key combination so I don't have to touch my mouse in gmail.

----------------
Just found the answer to this. System Preferences/Keyboard & Mouse/Keyboard Shortcuts then at the bottom you see "Full Keyboard Access". Make sure you choose the "All Controls" option and it works like a charm. Wahoooo!

Wednesday, August 20, 2008

Touchpad greatness

Just reading through the little white booklet that was the only documentation that came with the macbook pro. The info from that booklet that I liked the most was the info on the touchpad. Two fingers sliding will scroll up and down or side to side. Two fingers and click is like a right mouse click. I also enabled touch click in system preferences because I prefer to just tap the touchpad instead of having to use the button, which can be awkward for my thumb. Three fingers does something too, but I can't remember what.
Mac Spaces

Just started using spaces. This is a cool feature where essentially you have 4 desktops and can easily switch between them. I will probably use this more as I get use to it. I might have email in one, eclipse for coding in another etc...

Even with this 15" screen there is not alot of screen real estate available with the dock and a few desktop icons you don't want to cover up. Spaces will make this easier to deal with.
Lighted keyboard

The macbook pro's lighted keyboard is sweet. With my dell I always had to angle the monitor down to be able to see the keyboard in the dark. Not with my mac.
Save pdf to web receipts folder

My Macbook pro has a cool feature. When you print a web page you can click on the pdf button and there are several cool choices. The one I just used "Save pdf to web receipts folder" is a great time saver and very convenient. How many times do you just want to do that. In windows there are a few extra steps and I think you have to have adobe acrobat pro in at least some cases.

Tuesday, August 19, 2008

unable to load default svn client

Installed Eclipse no problem. Although I did install the latest version, Ganymede first. But I installed the latest Europa (3.3) once I found out that CFEclipse doesn't yet work with Ganymede (3.4). I then installed the SVN client and it seemed to go well. But I was getting an error "unable to load default svn client" error.

Found a little help here: http://subclipse.tigris.org/servlets/ReadMsg?listName=users&msgNo=12087

But I already had installed JavaHL and still I was getting the error. But after installing SVNKit (there were 2 and I chose both, a client and something else) it worked. Another problem solved.
No Docking Station

It looks to me like there is not a docking station available for this macbook pro. That is a shame. Apple seems to have it all going on and then they don't have docking stations. I currently use my dell latitude laptop primarily between 2 different offices. At each of these offices I have docking stations with external monitors, power, network and other accessories hooked up. It is VERY simple to just drop the laptop onto the docking station and I am off and running. This is a big minus for the mac.
Cool Power Adapter Connector

This is one of those little things that don't matter much, but I notice. The way the power cord hooks into my mac is pretty cool. It is magnetic so once you get close it kind of grabs it and inserts right to where it needs to be. Makes it easy to plug it in.

That's lost a little in the enormity of the whole power aparatus itself. I am use to the dell power adapters that have a nice way to wrap both sides of the cord around itself.

Monday, August 18, 2008

Mac Crash

So, I am a little confused about if I can just shut the lid and this mac will go into sleep mode, or what. I have no idea how to tell what it is doing. So far, this is one big deficiency. I have no insight into the workings of this machine. I even find myself missing the disk actvity light, even though it doesn't mean much, at least I know something is going on.

Anyway, I left my house to go over to the in-laws and chose sleep from the apple menu. When I opened it back up at the in-laws it just froze. Wouldn't do anything for 3-5 minutes. Finally just held the power button down until it restarted.

So I had a mac crash in my first day owning my first mac. I am loving the experience so far, but I think that is mostly the newness of the whole thing.
Copy a DVD

I had to copy a DVD today, something I rarely do. I had no clue how to do that on the Mac. A quick google search found: http://www.kenstone.net/fcp_homepage/making_dvd_copies.html.

That article gave me enough info to copy the DVD. I actually got it going and forgot it was running. The mac is much better at copying a DVD and allowing my to work unhindered while that is happening.
VMWare Fusion

Ok, now this is cool. I bought VMWare Fusion at the same time I bought the macbook pro. I just got done installing Windows Vista as a virtual appliance. So essentially now, I can switch over to windows vista at any time. Very cool. I plan to install Windows XP and Ubuntu also. Windows XP just to support my clients, and Ubuntu for fun.

I think I can take a snapshot of my pc and install a virtual machine that is just like my pc, with all programs and everything, but this time I did a fresh vista install for testing. It was slick.
CTRL-End and CTRL-Home

I didn't realize how much I use these two quick key combinations until they weren't there on the mac. The mac version of these is cmd-LeftArrow and cmd-RightArrow. Cmd stands for the key labeled "command" on my macbook pro. I think this is also referred to as the apple key. cmd-uparrow and cmd-down arrow seem to move you to the top and bottom of a document.

Good to have these committed to memory. They are very useful. Now if I could just figure out the tab key in gmail. That is a big one for me.
Performance Monitor for Mac

What started this was my desire to make sure they really gave me the 4gig memory that I paid for. I was trying to find out the easiest way to get that information on the Mac. In windows you simply right click "My Computer" and get alot of that information right there. Ctrl-Alt-Del / Task Manager also gives you that stuff.

Google lead me to this: http://www.mac-forums.com/forums/showthread.php?t=120126. Which essentially mentions the activity monitor in Applications/Utilities and also the free download from apple.com called istat: http://www.apple.com/downloads/dashboard/status/istatpro.html.

This little app was free, installed very easily and is accessed by clicking on the dashboard icon 2nd from the left on the dock, or whatever that line of apps is called.

I still struggle getting around on the Mac. I installed VMWare and was confused, although I can tell it will be fine after a couple shots at it.

I got a message from VMWare that there was a newer version, but I clicked away the error and for the life of me I cannot find the mac version of Help/About. I just want to see specific versions so that I can identify upgrades.
I bought a MAC!

For years I have been considering purchasing a Mac computer. I am a laptop guy, so usually my thoughts have been for a macbook pro. I finally did it. Today, it arrived and I am already using it. I type this blog entry from that new laptop.

I am going to try and document stuff as I learn. I don't plan on completely switching to mac, but I do want to make sure that I have personal experience with both types of computers. But if I love it, who knows!

The first problem was that I wanted to highlight the whole URL in the browser window. In Windows I click the end of the URL and then I could press ctrl-home. I searched for ctrl-home for mac, but came up with cmd-L. This will jump to the URL and highlight the whole thing.

I still need to figure out the equivalent of ctrl-end and ctrl-home. Plus the tab key doesn't seem to work the same, especially in gmail.