Posts

Showing posts with the label Mac

Revive Old Mac Mini (2009) with Linux

Image
We have an old Mac Mini (late 2009 version) lying around. The latest Mac OS X it could support was Mac OS X El Capitan. The machine is still good although the DVD drive does not worked anymore.  Apple will drop security update for El Capitan very soon. Running OS X El Capitan without any security update is not an option.  Instead of disposing a good piece of hardware, we can install Linux. However, before we start playing around with the Linux installation, we need to take stock of the hardware capability. We might need to upgrade some hardware so that we can run Linux smoothly. Mac Mini 2009 Specification This Mac has Core 2 Duo CPU (P8700) running at 2.53GHz. It support PC3-8500 DDR3 RAM running at 1066MHz. This Mac Mini has a Nvidia Geforce 9400M video card. It support 2 display output. Wifi specification is 802.11a/b/g/n. This is pretty high end at the time.  However, this WiFi uses Broadcom chipset (BCM4321), which is not very well supported in L...

Quickly Boot to Bootcamp Windows

Image
If you are using Bootcamp, you will notice that you can boot to Max OS X quickly using the system tray icon. In order to boot to Windows you need to go to preference and select the startup disk. Is there a way to boot into Windows quickly? Yes. There are several solutions including using the startup disk under system preference and installing an app for it. I will show you how to boot to Windows using Startup disk. Then I will show you the instructions to create an shortcut or alias so that access the startup disk quickly. Using Startup Disk 1. Select System Preference. 2. Click Startup Disk 3. Select "BOOTCAMP Windows" and click restart. Create a Shortcut to Startup Disk 1. Open a Finder. Goto the first level folder of your disk. 2. Select System >> Library >> PreferencePanes. If you prefer to use command line the path is /System/Library/PreferencePanes 3. Under PreferencePanes, find StartupDisk.prefPane. Create a sh...

Managing Podcast with iTunes 11.1

Image
I've just upgraded iTunes 11.1. On the first look it appears that the features of managing individual podcast download may had been broken. After some exploration, I've discovered that there is a new way of managing podcast. Listed below is some of the new interface I've discovered.  If you are using a list view for managing podcast, you'll be disappointed because you cannot manage individual podcast download here any more . You can only set the default podcast here. To set default podcast, click settings. and choose how you want the default podcast to be download. Previously, to manage individual podcast you need to select each podcast on the list and click settings. In iTunes 11.1 there is another way for you to manage each podcast. Please note that your previous  podcast settings is not lost . From the list view, you'll notice pages such as " My Podcasts " and " My Stations ". To manage individual podcast select " My P...

Create C Program with Dynamic Library using Xcode in Mac OS X

Image
The following instructions is a simplified procedure to create a dynamic library. Please note that the actual implementation of dynamic library is very complex if the library is very large and multiple users or versions are involved. Please consult the Xcode user guide for more information. Example The following program is a complete program that uses some math functions: #include <stdio.h> #define PI 3.1415; double CircleArea (double radius); double CircleCircum (double radius); double PowerOf2 (double number); double PowerOf3 (double number); int main ( ) { double r = 4.0; double n = 5.0; printf ("Radius %.2f, area is %.2f \n", r, CircleArea(r)); printf ("Radius %.2f, circumference is %.2f \n", r, CircleCircum(r)); printf ("%.2f to the power of 2 is %.2f \n", n, PowerOf2(n)); printf ("%.2f to the power of 3 is %.2f \n", n, PowerOf3(n)); return 0; } double CircleArea (double radius) { return radius * radius * P...