Category Archives: Apple - Page 2

16 GB Max RAM in 13″ MacBook Pro (Early 2011)

I can confirm that it was possible to upgrade a Mac Book Pro (Early 2011) to 16GB of RAM (2x8GB DDR3 PC10600 SODIMM).

According to Apple this model only supports 8GB of RAM.

My model is the one with a 2.3GHz i5 CPU.

Build QT/Symbian Apps on Linux/Mac OS X

QT is a nice cross plattform development environment, but building for Symbian is a bit tricky on non Windows platforms. Or is it?

You can Google for it, and find information about Gnupoc, Gcce and building qt for ARM with tools that require WINE. Not trivial.

You can also find occational references to an experimental feature called “remote compiler” – sounds like you need a Window machine, doesn’t it?

No – it is really easy! You need a Nokia Developer account (which takes 5 minutes to set up, and costs nothing). Then you configure QtCreator to use the remote compiler – and it sends your code to Nokia, who compiles it, and returns you errors, warnings and binaries. Compilation-as-service? Fine with me!

To get it working, I suggest you install the full QT SDK (not just QtCreator), and you need to choose “Custom” installation, and under Experimental you pick Remote Compiler.

Next, when you have opened your project in QtCreator, you click the “Projects” button to the left. Now, in the top of your work area, there are boxes with build targets, and to the right of the targets a “+”-sign. Click it. Choose remote compiler, target platforms and other options. To deploy it to your phone, you need to choose to sign the application, and to use the smart installer.

Make Xcode 3.2.6 gcc work

Apple did something smart around Xcode 3.2.6 – probably to make it easy to configure gcc to use different SDKs. But, before figuring out what happened, it just brakes your compiler. With Xcode 3.2.6 (and maybe later versions):

sleipnir:~ gt$ cat hello.c 

#include 
int main() {
    printf("Hello world\n");
}

sleipnir:~ gt$ gcc -o hello hello.c
-bash: gcc: command not found
sleipnir:~ gt$ PATH=/Developer/usr/bin/:$PATH
sleipnir:~ gt$ gcc -o hello hello.c
hello.c:2:19: error: stdio.h: No such file or directory
hello.c: In function ‘main’:
hello.c:4: warning: incompatible implicit declaration of built-in function ‘printf’
sleipnir:~ gt$ gcc --sysroot /Developer/SDKs/MacOSX10.6.sdk  -o hello hello.c
sleipnir:~ gt$ 

Youtube performance on PowerBook G4

My Apple PowerBook G4@866 Mhz can not handle youtube vidoes… when they are based on flash. However, go to the HTML 5 version of YouTube and performance is very reasonable.

MacMini Tiger to Snow Leopard Upgrade

A friend has a MacMini, the first one with Intel CPU: 1.5Ghz Core Solo, 512Mb RAM and 60Gb hard drive and Tiger 10.4.11. Hard drive was full and computer was very slow. We decided to upgrade with a new harddrive and more RAM. Opening and upgrading a MacMini is a challenge, but other people have written a lot about that.

Instead, I will quickly explain a simple method for making a clean install:

  1. Upgrade hardware – replace memory and harddrive
  2. Put old harddrive in USB external case
  3. Install Snow Leopard from standard install DVD
  4. In the end of the installation, you get the question if you want to migrate data. You want to do that, from Internal drive. Connect old drive to computer USB port. Select users and configuration. If you are fine reinstalling applications from scratch, dont migrate them
  5. Run software upgrade
  6. Install software

Pretty obvious? Well, as I prepared for the upgrade, it was not clear that it is possible migrate a Tiger disk in a USB case, when installing Snow Leopard. It works perfectly.

And 2Gb memory in a MacMini with a 1.5Ghz Core Solo performs very well for everyday tasks. A recommended upgrade.

USB 2.0 PCMCIA card for Mac OS X

My 867MHz PowerBook G4 still works reasonably well, especially after I upgraded the hard drive. The worst thing with it, is that it only has USB 1.1-ports. For external hard drives, iPod syncronization and digital cameras, USB 1.1 is really too slow. Miserable as I am, I ordered a very cheap USB 2.0 PCMCIA card, rumored to work well in Mac OS X. The card model reads: “AKE USB2.0 Cardbus BC168“.

Does it work with Mac OS X (10.5.8)? YES!

I inserted it into my G4. After a few seconds I got a little icon in the menu bar, next to the bluetooth menu. The first menu item says “Unknown Vendor USB Controller”. The card works perfectly, immediately, without any need to install any drivers! PCMCIA cannot provide very much electrical current, so if you need extra power there is a little cable that you connect from one of your USB 1.1 ports to your PCMCIA card (USB memory, digital camera, iPod nano is fine without; 2.5inch external hard drive needs extra power).

How about performance? Well, copying files to and from an external hard drive gives me transfer rates of about 15Mb/s, with no significant CPU load. I like it!

ATA-6 drive in Titanium Powerbook

I successfully installed a WD 320Gb IDE 2.5″ Scorpio Blue in my Apple Powerbook 867MHz. Why is that interesting? Well, it is very hard to find the information that Titaniumbooks supports hard drives bigger than 127Gb. It seems ATA-5 has a 127Gb limit, while ATA-6 does not. And Apple documentation about the 867MHz Titaniumbook indicates it has an ATA-5 controller. My guess: dont expect this to work on a Titaniumbook with VGA port.

Disable Paging in Mac OS X

Virtual memory, Paging or Swap used to be a way to pretend your computer had more memory than it actually had. It made it possible to run programs that would otherwise not run at all. But it was never fast. Nowadays when modern computers have at least 2Gb of RAM, swap is not very needed. In fact you rather want your OS to use memory to cache the contents of your hard drive, not the other way around. Linux handles this thing beautifully; give it swap it does not need and it will not touch it; give it more memory than needed and it will make use of it. Mac OS X however, does not use its swap (or paging) very nicely. I found a hack that disables paging entirely in Mac OS X. I like it. Try it if you have more memory than you need. Dont use all your memory 😉

#OFF
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.dynamic_pager.plist

#ON
sudo launchctl load -wF /System/Library/LaunchDaemons/com.apple.dynamic_pager.plist

Works on 10.5, and probably more versions. You find your swap files in

/private/var/vm

and you can delete them after turning paging off.