Apple Box - Nexus One Dock

Posted on February 4th, 2010 in Tutorials | No Comments »

What better way to make a Nexus One dock than ro recycle?

After selling my iPhone, I still had the box. It seemed silly to bin the box so I used to help make a dock for my Nexus One!

The two boxes

The two boxes

Nexus Fitting

Nexus Fitting

Cut a hole for the power cable

Cut a hole for the power cable

Stick it down!

Stick it down!

Cable attached - notice the angle of the nexus box- excellent!

Cable attached - notice the angle of the nexus box- excellent!

Hack away at the iPhone box...

Hack away at the iPhone box...

Stick the nexus card to the inner iPhone sleeve

Stick the nexus card to the inner iPhone sleeve

Shoved it into the outer iPhone sleeve

Shoved it into the outer iPhone sleeve

Pop the Nexus One into the DOCK!

Pop the Nexus One into the DOCK!

Beautiful, just... beautiful. Sorry for the smudge marks..

Beautiful, just... beautiful. Sorry for the smudge marks..

I love it..!

I love it..!

So there you have it…

…if you have a spare iPhone case laying around now you know what to do with it. :-)

Hope you love my craft skillz. as you can see; it’s probably better that I stick to my Affiliate Marketing & Programming - but I still refuse to pay shipping TWICE to have TWO Google Nexus Docks shipped to the UK !!

o_O

  • Share/Save/Bookmark

Green Android Desk Stand

Posted on February 3rd, 2010 in Tutorials | 1 Comment »

Well, in an earlier post - I showed you how to make a budget Nexus One Andrex Dock

I thought I’d get creative - so I had a look how to make play dough:

http://becomingdomestic.co.uk/2006/10/28/how-to-make-playdough-no-cook-recipe/

And then Proceeded:

Ingredients in the bowl...

Ingredients in the bowl...

We NEED green!

We NEED green!

Mix it up...

Mix it up...

Aaah, lovely loaf...

Aaah, lovely loaf...

Into shape...

Into shape...

Right now, the thing is in the oven.

Apparently you are not meant to put play doh in the oven. So it may just be a big PHAT PHAIL!

I’ll update once it’s out the oven!!

UPDATE: ITS OUT THE OVEN

It burnt...

It burnt...

android-stand-7

so yeah, damn good reason to stop being a tight ass and pay for the shipping from the US for the Google Nexus One Desktop Dock!!

  • Share/Save/Bookmark

Nexus One Andrex Dock

Posted on February 3rd, 2010 in Tutorials | 4 Comments »

So, 26th January I ordered my Nexus One from Google.com and had to pay the $29 dollars for shipping to the UK.. quite reasonable price to be honest!

However, on 27th January Google Announced the Desktop Dock was now available - this was rather frustrating as I had already placed my order - so if I want one I will have to pay the $29 shipping fee again. However, I want 2! You can’t buy 2 though….If I want to purchase 2 then I have to place 2 seperate orders, meaning I will have to pay shipping to the UK twice, again - I’ve already paid once!

So, I figured I would make my own. This one cost 50 pence - (around 1 dollar to you US folks!)

Toilet Roll

Toilet Roll

Wow, it looks like a big polo..

Wow, it looks like a big polo..

USB Cable

USB Cable

Cutting a Gap

Cutting a Gap

Placing the Cable

Placing the Cable

Flatten the toilet roll

Flatten the toilet roll

Nexus One in the Bog Roll

Nexus One in the Bog Roll

Nexus One in the Bog Roll from a different angle

Nexus One in the Bog Roll from a different angle

There you have it!

This is perfect; I can create as many as I want. If you wanted to get creative you could colour yours in paint; or maybe cover it with papier mache?

$1 per dock - admitedly it doesn’t have Bluetooth like the Google one; but it’s a lot cheaper!

I almost forgot… A photo with the headphone Jack in:

With Audio Jack

Sorry about the quality of the photos… my digital camera is rubbish - it’s okay though as I now have a great camera in the Nexus One :-)

Hope you like it.

p.s. Yes, I know it shit; but that’s what do you expect from a bit of shit roll? =))

  • Share/Save/Bookmark

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/Save/Bookmark

Jenson Button To Set New Record?!

Posted on June 8th, 2009 in Uncategorized | 1 Comment »

6 out of 7 wins for Button; 4 in a row.

He’s won 85% of the Grand Prix so far this season.

With 10 remaining races remaining. If he manages around the same percentage; he will win another 8 grand prix.

This would give him the most wins in a season (14, over MS’s 13 wins in 2004). It would also give him the highest percentage of wins in a season (~82% over Ascari’s 75% in 1952).

He would also have a good stab at beating the consecutive wins record of 7, set by Ascari & MS.

http://en.wikipedia.org/wiki/List_of_Formula_One_driver_records#Most_wins_in_a_season

I’d say it’s early days to tell, but we’re already a good way through the season to know what cars are strong and what cars are not.

Is he going to do it?!

:-)

  • Share/Save/Bookmark

Far too quiet, far too busy; Gadgets anyone?!

Posted on May 25th, 2009 in Uncategorized | No Comments »

Sorry for the lack of updates; I’ve been busy recently. Last Monday I took up boxing at my local gym; followed by a football match which was very tiring on Tuesday! Along came Wednesday and I was happy to have the break, but it was short lived as I then went boxing on Thursday, too. Friday follows Thursday, and we all know it was a glorious bank holiday weekend; so yes I’ve been rather quiet.

I FINALLY found a few hours to get some more time in to show you again how quick it is to set up a new domain & shop. @15:17 BST I registered the domain name: The Gadget Directory. This is now a finely tuned wordpress blog, loaded with over 2,400 affiliate products. I shall be posting new gadgets on there every now and again so that you can get a feel for what products are available.

It just goes to show that if you have just 2 hours spare, you can get another site up and running with the potential to pull in a large audience. I don’t expect to see a great deal of traffic immediately but I shall for sure keep you updated. If you want to follow my alter-ego “Gadget Man” on twitter, then feel free.

As always if you want any tips on getting started in the affiliate marketing world, just give me a shout! Easiest way is to follow me on twitter and mention me @bobbyjason and you shall soon get a reply!

Night time folks, see ya!

  • Share/Save/Bookmark

How to Ditch the WWW from Your Domain Name

Posted on May 17th, 2009 in Apache, Tutorials | No Comments »

Personally, I prefer to have http://domain-name.com rather than http://www.domain-name.com

In fact, unless you specify that they are the same site, Google can treat them as seperate Websites, and you would be diluting your page rank!

So:

Connect to your website via FTP. Find your .htaccess file (usually in your public_html/www folder). If you can’t find one, just open your text editor (notepad will do) and save it as “.htaccess”.

Find some clear space, and type the following:

RewriteEngine On
RewriteBase /

RewriteCond %{HTTP_HOST} ^www.domain-name.com$ [NC]
RewriteRule ^(.*)$ http://domain-name.com/$1 [R=301,L]

Simple? Yep!

Save & Upload! Sorted!

note: this is to UNIX-based machines only (UNIX is the most popular out there..)

Any questions just send me a direct message or leave a comment.

  • Share/Save/Bookmark

Hacking TweetMyBlog (TwitterFeed Sucks)

Posted on May 17th, 2009 in PHP, Tutorials | No Comments »

I used to use TwitterFeed; but recently it’s been a real pain in the ass and not updating so I looked for an alternative.

Roll on TweetMyBlog.

TweetMyBlog is great for the simple fact that it is a WordPress plugin. It’s also a small download, and you can install it very easily. However, TweetMyBlog is hard-coded to use TinyURL and the URL it “makes tiny” is an affiliate link taking the user to a framed page. This is a bit of a bummer for me because I like to use bit.ly and I don’t really want my users going to some 3rd party site.

Roll on TweetMyBlog Hack

I took at a look @ the files and realise we can very easily change the Plugin to use bit.ly instead of TinyURL using the bit.ly API.

If you have installed TweetMyBlog you would have uploaded the “tweetmyblog” directory which had 3 files in it. Go and find, “twitter_api.php”:

and at the very bottom of the file you will see:

function get_tiny_url($url)
{
$this->snoopy->fetch('http://tinyurl.com/api-create.php?url='.$url);
return $this->snoopy->results;
}


As you can see, it uses TinyURL.

I’ve only hacked it to use bit.ly, but this is what I changed it to first (don’t copy it yet, there’s a better version further down):

   function get_tiny_url($url)
	{
    $this->snoopy->fetch('http://api.bit.ly/shorten?version=2.0.1&login=bobbyjason&apiKey=MYLONG_BIT_LY_API_KEY&format=text&longUrl='.$url);
	 return $this->snoopy->results;
	}


I gave it a shot, and sure enough it worked, I was using bit.ly instead of tinyurl, result! However, it was still using the silly Affiliate link with a frame & 3rd party site.

Okay, open “tweetmyblog.php” at around line 36 you will see:

$tweet = trim($tweetPrefix).' '.$blogPost->post_title.' '.$t->get_tiny_url('http://www.tweetmyblog.com/bpredir.php?r='.$tmb_affid.'&bp='. urlencode(get_permalink($postID)));

The problem is the tweetmyblog.com redirection, so I replaced it with this:

$tweet = trim($tweetPrefix).' '.$blogPost->post_title.' '.$t->get_tiny_url(urlencode(get_permalink($postID)));

Easy, right?

Well, this works great.

I do not need to use TwitterFeed ever again because WordPress automatically Tweets my blog post! I don’t have to wait 30 minutes, 1 hour, 5 hours for TwitterFeed to notice my blog post.

There was one last change that I made; after using the code above (using the bit.ly api) I realised that the URL wasn’t showing up in my bit.ly history. I checked this out and realised I needed to use the history=1 parameter. After I added this I’ve not had a single problem at all.
For the final code of “twitter_api.php”, see below:

function get_tiny_url($url)
	{
    $this->snoopy->fetch('http://api.bit.ly/shorten?version=2.0.1&history=1&login=bobbyjason&apiKey=MYLONG_BIT_LY_API_KEY&format=text&longUrl='.$url);
	 return $this->snoopy->results;
	}

I must say though; TweetMyBlog is a great plugin by John Merrick and Sean Jordansen and you should install it.

If you wish to monetise your tweets from your blog, then the above edits are silly. It’s just personally I would rather not have the user taken to a 3rd party site.

TweetMyBlog also provides a feed of your Tweets as a Widget, so it really is great!

Download TweetMyBlog now!

  • 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/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/Save/Bookmark