pietrop.com Rotating Header Image

Cocoa tutorial – linking and using libmysqlclient in your application

Added a new tutorial on how to include and use the libmysqlclient in your Cocoa application using the official MySQL C API and Xcode: http://www.pietrop.com/wordpress/dev-area/tutorials/cocoa-tutorial-using-libmysqlclient-in-your-application/

Help me configuring a valid multi server MySQL testing environment on OS X!

I’m developing a new version of the easy to use launcher for MySQL on OS X.

At the moment I’m working on the user interface and the user interactions, and have already implemented the configuration files’ parser.

The new version will implement some cool features, useful for testing and working with MySQL on a single machine:

  • user preferences will implement:
    • MySQL configuration file paths;
    • configurations for servers that aren’t configured in any configuration file (so you can create server instances on the fly);
    • capability to set the main window display (if you have more than one display);
    • many other little preferences like the update frequency and the alerts options;
  • multi server management for pre-configured servers and instant servers;
  • testing area for querying the servers;
  • report area;
  • user area.

So, what I need is a little help in creating a test environment on my Mac. It is very important  for me, because it means knowing how to parse the configuration files (I’ve implemented a way yet, but I don’t know if it is right). Then it will help me in understanding what’s the most efficient way to monitor the servers and so on..

I need also someone to test the application. It is very important, because there are so many versions of MySQL server community and there are infinity ways to configure it. I’d like to realize a Universal application, something that works with any configuration.

Before you say it: I don’t want to use MySQL sandbox, because I want to recreate a real working environment.

I will appreciate any help from you all =)

Thank you!

Manage NSCollectionView and NSArrayController selection using observers

I’ve added a new tutorial about getting the selection of items in a NSCollectionView binded to a NSArrayController using observers.

Here it is: http://www.pietrop.com/wordpress/dev-area/tutorials/manage-nscollectionview-and-nsarraycontroller-selection-using-observers/

Snow Leopard and possible overheating problems with “old” Macs

Since when Apple announced that OpenCL should be introduced into the new Snow Leopard I thought about the cooling system implemented in Apple’s laptops.

It’s well known that a MacBook Pro has several cooling problems and because of I have a November 2007 MBP, I ask myself:

Will my MacBook Pro survive to Snow Leopard?

If you’ve ever used a MBP, you surely noticed a consistent overheating while doing heavy operations such as video conversions, math computing, 3D rendering, etc… OpenCL will improve the computation velocity using the GPU unused power; this won’t leave CPU in an idle state! So if we consider that when CPU is at its maximum activity it rises 100°C, how about GPU? How will the MBP take care about the heat?

Time ago I took a screenshot of my MBP temperatures: I was using BoincManager and the CPU was at its maximum (my MBP mounts an Intel Core 2 Duo). Stunning!

temperatures

MacBook Pro 3.1 15" temperatures - CPU is at 100% usage and GPU is idle.

Some weeks ago Apple released an update of the cooling system firmware; now even if the fans begin raising their speed at low temperatures than before and with a major speed, I haven’t noticed big improvements. And if you look at the Snow Leopard tec specifications you can see that the following video cards are supported by OpenCL:

OpenCL

  • NVIDIA Geforce 8600M GT, GeForce 8800 GT, GeForce 8800 GTS, Geforce 9400M, GeForce 9600M GT, GeForce GT 120, GeForce GT 130.
  • ATI Radeon 4850, Radeon 4870

This means I’m able to run Snow Leopard and to use OpenCL with my video card because I have a Geforce 8600M GT mounted on my MBP, but probably I’ll get overheating problems… who knows?!