Archive for the ‘Advice / Tips’ Category

iPhone SDK on a Mac G4 without a intel based CPU.

Posted on September 5th, 2009 in Advice / Tips | No Comments »

So,

last weekend i spent about 2 hours watching the “getting started” videos on how to use the apple iPhone SDK. I proceeded to try to download the iPhone SDK but to my disappointment this is only possible if you have Mac OS X. I currently use a Core 2 DUO with 2 GB RAM running Windows 7; whereas my laptop is a Core2duo with 3GB RAM running Vista. I didn’t fancy dual booting with a dodgy copy and hacked version of Mac OS X

The idea was to create an application for the company I work for; so during the week my boss found me a spare Mac Mini PowerPC G4. It’s been laying around on a desk collecting dust for god knows how long. So last night I fetched it home…(my first mac, EVER!)

After upgrading from Panther to Leopard 10.5; I upgraded to 10.5.8 and downloaded the 2GB iPhone SDK (bundled with the latest verison of xcode) from the Apple site. I proceeded to open the installation only to discover that whilst I can install xcode the iPhone SDK option is only available if you have an Intel-based Mac. This was rather infuriating! Anyway; long story short – I Googled until I was highly delighted with finding the following site:

How to run iPhone SDK on a non intel based Mac (G4, G5 etc)

At the above URL. there are instructions on how to get xcode to let you build an iPhone app on a non-intel based Mac. Just in case the link doesnt work , I have pasted the post here:

Officially the iPhone SDK requires an Intel Mac with OSX 10.5. Since I have a four year old dual G5, which is still running like a young dear, I don’t want to buy a new Mac just for writing iPhone Applications.

After some research, I found out, that it’s possible to make it work on PPC since the iPhone SDK are universal binaries.

To share my knowledge, I write a small tutorial. Note, that I don’t take responsibility, for any defects cause somebody used my code!

How to get the iPhone SDK to work on PPC Macs

Most of the tutorials I found in the Web are not up to date, because there where no “Aspen” packages anymore. With the iPhone SDK for IPhone OS 2.1 (build 9M2517) you can follow these steps:
1. Download the official iPhone SDK here.

2. Mount the .dmg image and install the iPhone SDK (the iPhone SDK will be grayed out!).

3. After rebooting the Mac, mount the image again and go to the folder Package. Install all packages which have iphone in the name (e.g. Simulator, SDK, Documentation).

4. Go to the folder /Platforms on the local HD and copy the iPhone.platform and theiPhoneSimulator.platform folders to /Developer/Platform.
Don’t copy the whole platforms folder, Xcode will not run correctly anymore!

5. Now we come to the interesting part. Xcode has now access to the iPhone SDK, you can already create iPhone projects, but Xcode still wants to compile the sources for the Intel architecture. To change that, open the folder /Developer/Platforms/iPhoneSimulator.platform/Developer/
Library/Xcode/Specifications/
.
In this folder you will find the file iPhone Simulator Architectures.xcspec. Make a backup and open it in any text editor. The content should look something like this:

(
// 32-Bit
{ Type = Architecture;
Identifier = Standard;
Name = "Standard (iPhone Simulator: i386)";
Description = "32-bit iPhone Simulator architectures";
ListInEnum = YES;
SortNumber = 1;
RealArchitectures = ( i386);
ArchitectureSetting = "ARCHS_STANDARD_32_BIT";
},

// Old-style Debug
{ Type = Architecture;
Identifier = Native;
Name = "Native Architecture of Build Machine";
Description = "32-bit for build machine";
ListInEnum = YES;
SortNumber = 101;
ArchitectureSetting = "NATIVE_ARCH";
},

// Intel
{ Type = Architecture;
Identifier = i386;
Name = "Intel";
Description = "32-bit Intel";
PerArchBuildSettingName = "Intel";
ByteOrder = little;
ListInEnum = NO;
SortNumber = 105;
},
)

6. Change the line “RealArchitectures = ( i386);” to “RealArchitectures = ( i386, ppc);“.

7. Add the architecture configuration for G3, G4 an G5, the edited file should now look like this.

(
// 32-Bit
{ Type = Architecture;
Identifier = Standard;
Name = "Standard (iPhone Simulator: i386, ppc)";
Description = "32-bit iPhone Simulator architectures";
ListInEnum = YES;
SortNumber = 1;
RealArchitectures = ( i386, ppc7400 );
ArchitectureSetting = "ARCHS_STANDARD_32_BIT";
},

// Old-style Debug
{ Type = Architecture;
Identifier = Native;
Name = "Native Architecture of Build Machine";
Description = "32-bit for build machine";
ListInEnum = YES;
SortNumber = 101;
ArchitectureSetting = "NATIVE_ARCH";
},

// G3
{ Type = Architecture;
Identifier = ppc;
Name = "Minimal (32-bit PowerPC only)";
Description = "32-bit PowerPC ";
PerArchBuildSettingName = "PowerPC";
ByteOrder = big;
ListInEnum = No;
SortNumber = 201;
},

// G4
{ Type = Architecture;
Identifier = ppc7400;
Name = "PowerPC G4";
Description = "32-bit PowerPC for G4 processor";
ByteOrder = big;
ListInEnum = NO;
SortNumber = 202;
},

// G5 32-bit
{ Type = Architecture;
Identifier = ppc970;
Name = "PowerPC G5 32-bit";
Description = "32-bit PowerPC for G5 processor";
ByteOrder = big;
ListInEnum = NO;
SortNumber = 203;
},

// Intel
{ Type = Architecture;
Identifier = i386;
Name = "Intel";
Description = "32-bit Intel";
PerArchBuildSettingName = "Intel";
ByteOrder = little;
ListInEnum = NO;
SortNumber = 105;
},
)

Now you should be able to compile the iPhone project and run the app in the iPhoneSimulator. I never tried to put an App into the AppStore, but I think it should work.

So – if you follow those instructions (like I did) then you should be able to open xcode and build an iPhone app!

Worked a treat for me!

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • NewsVine
  • Reddit
  • StumbleUpon
  • Google Bookmarks
  • Yahoo! Buzz
  • Twitter
  • Technorati
  • Live
  • LinkedIn
  • MySpace
  • Share/Save/Bookmark

Increase Your Web Presence with Google Webmaster Tools

Posted on May 17th, 2009 in Advice / Tips | No Comments »

It’s one thing to get your site showing up in Google. It’s another thing to make sure you get all your pages into Google.

The easiest way to do this is by using an XML sitemap & Google Webmaster Tools (GWT).

GWT allows you to analyse your website from the Google Bot’s perspective to ensure that all your links are working, your meta tags are not duplicated and many other things such as setting the rate at which bots visit your site.

All you need is a Google Account & access to the HTML of your homepage.

Once you’ve signed in, it’s fairly easy to follow the on-screen instructions to setup your domain.

Google will index your pages, and you can also use your sitemap on Yahoo!, Live and other search engines.

If you dont have it already, get Google Webmaster Tools now!

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • NewsVine
  • Reddit
  • StumbleUpon
  • Google Bookmarks
  • Yahoo! Buzz
  • Twitter
  • Technorati
  • Live
  • LinkedIn
  • MySpace
  • Share/Save/Bookmark

My 7 Must-Have Plugins for WordPress

Posted on May 16th, 2009 in Advice / Tips | 1 Comment »

I make sure I use these on ALL my WordPress blogs. I use many more, but this is a list of plugins that I think anyone who is serious about maximising the potential of their blog should be using.

All in One SEO Pack
Google Analytics for WordPress
Google XML Sitemaps
TweetMyBlog!
wp-cache
Add to Any: Share/Bookmark/Email Button
YARPP

If you have others that you believe are essnetial and should be mentioned then leave a comment and I shall consider updating this list.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • NewsVine
  • Reddit
  • StumbleUpon
  • Google Bookmarks
  • Yahoo! Buzz
  • Twitter
  • Technorati
  • Live
  • LinkedIn
  • MySpace
  • Share/Save/Bookmark

8 Simple Reasons You Should Signup to Twitter

Posted on May 16th, 2009 in Advice / Tips | No Comments »

This is Step 2 of the “How to get your site into Google” post

The other day I was using Twitter and caught a glimpse that Katie Price & Peter Andre had split up. I Googled for it and couldn’t find any news about it. What was splashed on newspapers the next day? Their divorce.

Twitter BEAT Google. Now that’s serious because many folk use Google is their primary source of finding information and suddenly you have this website [twitter] with instant news!

If that doesn’t convince you, let me list some reasons why you should sign up:

1. You want to keep “connected” with like-minded individuals. Twitter is great for this.
2. It quick – to post an update it takes less than 30 seconds. A few updates a day with latest news and you’re sorted.
3. It’s easy. Really, it is.
4. It’s viral. Do it right and your news can be splashed around the net in a matter of hours, if not minutes.
5. It integrates with everyday tools like WordPress. You can even post from messenger & your mobile.
6. It’s live. The information on here is real-time news.
7. Social – it’s the easiest way to tell folks about your latest blog post and get those important comments.
8. And… well: it’s free; in this current climate you should grab everything that’s free!

Take all the points above, and you have a serious tool: its the mobile web; in real-time.

Sign Up Now!

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • NewsVine
  • Reddit
  • StumbleUpon
  • Google Bookmarks
  • Yahoo! Buzz
  • Twitter
  • Technorati
  • Live
  • LinkedIn
  • MySpace
  • Share/Save/Bookmark

Add some more Plugins and Signup To Google Analytics

Posted on May 16th, 2009 in Advice / Tips | No Comments »

Providing you’ve completed the earlier steps on getting into Google in just 72 hours, then by now I would imagine you’re tweeting away whilst blogging about your niche.

It’s simply impossible for me to mention every that you can do to promote your site; but I’m trying to help you in the best way I can.

Next stop: Must-have WordPress PluginsUsing Google Webmaster Tools & Signing up to Google Analytics.

The wordpress plugins in the link above are not necessarily essential, but they will help get your site out in the open, and grab some more traffic in addition to helping your site rank in the search engines. A real must-have though is the google analytics plugin; In fact I’d go as far as saying it should be one of the first things you do to your WordPress installation.

Checkout the links above to upgrade your Internet life!

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • NewsVine
  • Reddit
  • StumbleUpon
  • Google Bookmarks
  • Yahoo! Buzz
  • Twitter
  • Technorati
  • Live
  • LinkedIn
  • MySpace
  • Share/Save/Bookmark