Sunday, November 11, 2007

Mysql 5.0.45 and Leopard

I'm not sure if anyone else has tried to install or use Mysql after upgrading or installing Leopard. Russ Johnson of Angry-Fly.com posted a wonderful short bit of information as to why and how to resolve the problem. It does work, but the Preferences Pane mysql start and stop feature will still not work. Without getting too technical you'll need to start and stop mysql from the command line. Here are the necessary steps to resolve the problem. (Original Post):

Simply type these commands in order to fix it.
1. sudo /usr/local/mysql/bin/safe_mysqld
2. (in a new terminal window) sudo mkdir /var/mysql/
3. sudo ln -s /tmp/mysql.sock /var/mysql/mysql.sock

If followed correctly you should now be able to type sudo 'mysql path'/mysql and start the command line executable. I'm not sure if it will help applications like Navicat, etc.

Good luck

Monday, November 5, 2007

Mac OS X 10.5 Leopard

Well I recently received my ADC copy of Leopard and had absolutely no trouble installing the OS. Of course I did not upgrade from Tiger I installed a fresh copy on my MacBook Pro. The only problems I did have were in porting my mail accounts from Tiger mail to Leopard mail. I was able to import my mailboxes themselves but when I tried to actually import that backed up account file it told me there was an error. Essentially I had to setup the accounts again, but its no big deal.

I still don't know how I feel about the menubar and dock. It will probably grow on me... But eh, who can say which is better or worse. I do like some changes such as the screensaver abilities. The mosaic option is definitely impressive. It basically performs color matching on images from your iPhoto library onto a random image and makes a mosaic that zooms out from another image. Very neat. There are a lot of other things I enjoy about it do. Standardized layout between applications for one. That's a nice plus.

A look into Quantum Computing

I don't know how many people have ever listened to the Arapahoe (spelling) High School futurist projection of the graduating class of 2020. But their is direct mention of the invention of a quantum computer capable of running by simply extracting water vapor from the atmosphere and using it as some type of condensed hydraulic power. This might seem pretty far fetched, but is it really? What actually goes into quantum computing? Even recently a group of scientists won the Nobel prize for their creation of a type of quantum memory. I don't know too much more about it than that.

In a normal computer bits are stored inside of registers that make up different functional units of the computer. These bits are processed through various methods of logic and routing that can either perform calculations or manipulate the bits further. We usually think of a bit as a 1 or a 0, cycle between high or low, or even 0 or not zero. Generally the bits are representations of patterns of electrons. In quantum computing it might be possibly for the electron itself to store bit information. Which is an incredibly complicated and abstract few of bit processing if a single sub atomic particle can contain all of the bit information for a single instruction. Bits in quantum mechanics are referred to as qubits (quantum bits) [WIkipedia: quantum computing].

As you could imagine the hardware that might need to handle the qubits would quickly become complicated since electrons have so many varying properties. I've always thought the the computer age should really be the age of the electron. We've basically conquered fire and the rest of our Earthly environment so why not go a step further to say that with modern computing we've actually conquered the electron? I honestly wish I knew more about quantum computing to really give a good post about it, but I don't. This is really just meant as food for thought in the next step in computing. After all, 2020 really isn't that far away.

Tuesday, October 16, 2007

Mac OS X Leopard (10.5), just another cat in the zoo?

Just ten days away from the release of Mac OS X Leopard and already you can pre-order your copy of the operating system for only $129. But is Leopard the next Tiger or just another cat in the zoo?
The Good:
Leopard does bring out some neat and wonderful changes to the Macintosh OS. Among those:
  • Standardized layout across all Apple applications (no more brush metal).
  • Quick look, offers a quick and easy look at various documents and files without actually opening the files. Handy for quick 'looking' at pdf documents and such.
  • The changes to the Finder are actually incredibly useful, recent searches appear in the list (if you want them to). You'll also have a list of other computers (PC or Macs which are sharing files on your network). Coverflow for any files and applications inside of the finder (its not really that useful but it looks pretty nifty if you have lots of cool looking icons.
  • Time Machine: All I have to say is FINALLY. Most Mac users have been manually backing up their files, using 3rd party solutions, or just not backing up at all. Time Machine is truly an innovation in its approach to backing up. I've played around with it enough to say that I love the way it works, though in the WWDC seed it was somewhat glitchy. I'm sure users will find that Time Machine fits every aspect of their backup and event restore needs.
  • The Mail application has also been revamped. Which is good for those of us that don't choose to use entourage to get email. I've not really played around with it that much, but from the few moments I did get to use it, it seemed to work very nice.
  • Spaces... It's a wonderful, useful thing. But haven't almost ALL *nix systems already brought this out to their users? Curious as to why Apple decided to do it now. 
The Bad...
Already Leopard has received dozens of criticisms. Primarily the menu bar and dock. As most already know the menu bar is semi-transparent and supposedly "adapts" to your desktop image. As of the Leopard WWDC07 seed there is no way of controlling this level of transparency from the OS itself. People have been complaining that items in the menu bar are hard to see/read. It will be interesting to see if Apple has provided any way to control this aspect of Leopard. The dock is also different and semi-3d... It also has a reflective surface so that if you were to drag a window through it it would be mirrored in the dock. Nothing useful there, but I imagine its pinging the GPU quite a bit to do all of its magic.
While I attended WWDC07 a Google engineer seriously expressed his views about something new to Leopard. Evidently whenever you download an executable file, package, or disk imagine Leopard will ask you if you are sure you want to run this. Now keep in mind that the OS will only ask you once and you can even turn this feature off... But doesn't this sound remotely familiar with another operating system? *cough* Vista *cough* I don't think its that bad of an idea. As Macs have become more and more popular the users experience level tends to vary even wider now from very experiences to 'how do I right click...' This honestly can pose a problem to any application developer and I understand, not necessarily agree, what Apple is trying to accomplish. Who knows, after the engineer went crazy may they changed it. 

Review from a developers point of view...
Xcode 3.0 is amazing. Its coding structure and debugging features couldn't be more useful, and to my knowledge it boasts one of the only inline debugger yet. With Xcode 3.0 comes Objective-C 2.0. Objective-C in general has had a rocky life despite being a wonderful object oriented language. In my opinion it boasts far more ease of use than its sister languages C++ and C# which have both been tainted by Microsoft. Objective-C 2.0 boasts some incredibly useful aspects namely protocols and properties. Though protocols and properties existed in Objective-C already they are brought to the fore front in 2.0. Properties allow you to create boiler plate code without going through and manually coding all you method getters and setters. Incredibly useful if you don't plan on doing anything special with these methods, but even then you can override the properties and code some yourself as well as use the property define ones.
I could go into much more detail but from an interest of security and the hush hush nature of WWDC and Leopard I will leave it all at that. I wouldn't want to loose my membership after all.

Thanks!
Happy coding, or playing around with Leopard in 10 days.