Archive for the ‘Tutorials’ Category

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 and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • NewsVine
  • Reddit
  • StumbleUpon
  • Google Bookmarks
  • Yahoo! Buzz
  • Twitter
  • Technorati
  • Live
  • LinkedIn
  • MySpace
  • 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 and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • NewsVine
  • Reddit
  • StumbleUpon
  • Google Bookmarks
  • Yahoo! Buzz
  • Twitter
  • Technorati
  • Live
  • LinkedIn
  • MySpace
  • 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 and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • NewsVine
  • Reddit
  • StumbleUpon
  • Google Bookmarks
  • Yahoo! Buzz
  • Twitter
  • Technorati
  • Live
  • LinkedIn
  • MySpace
  • 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 and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • NewsVine
  • Reddit
  • StumbleUpon
  • Google Bookmarks
  • Yahoo! Buzz
  • Twitter
  • Technorati
  • Live
  • LinkedIn
  • MySpace
  • 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 and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • NewsVine
  • Reddit
  • StumbleUpon
  • Google Bookmarks
  • Yahoo! Buzz
  • Twitter
  • Technorati
  • Live
  • LinkedIn
  • MySpace
  • Share/Save/Bookmark