Category Archives: Wibby Webby

Stuff stumbled upon in the WWW

How-to: Getting Gmail to work on the iPad 2

So a friend I know bought an iPad – a 32GB one with 3G to boot. It came with iOS 4.3.5. – I couldn’t use the 5 finger pinch to home screen.

His wife wanted to check her email on it and asked me to set it up, so I did. Then she wanted to change the password because somebody set it up for her and she was afraid that they’d check her mail, so we did that too. Who knew? The darned thing stopped working. I deleted the mail account and tried to set it up again, no joy. I switched it off and on – nope. I cleared the browser cache – nope. In fact, we tried so many times (I gave the iPad to her everytime I needed to key in the password) that eventually I figured out her password.

This is where I made the fatal mistake – I did a restore. Oops! I get the plug to iTunes screen and no way to get out of it.

Dumb, I know. I was hungry. And tired.

So I offered to take it home to fix. I figure I’ll update it to iOS 5 for them while I’m at it. Get it home, download and install the 700+MB update. Set up the device, set up AppleID, set up iCloud. Set up email again. Fail.

Something is wrong here. Who knew? Gmail blocks the account on the mobile device if it thinks you’re doing something cheeky. Like changing your password. AND. It won’t tell you that either. I logged into Gmail on my PC and that was fine.

They have an “unlock Captcha”. You have to go to this page: http://www.google.com/accounts/DisplayUnlockCaptcha, sign in, key in some mangled letters to prove to Gmail that you are in fact a human being.

Tried again. All good.

I’ve also configured iCloud. I’ve put a note in the iPad to help them remember their AppleID password. Yeah… go figure. I’ve set up the Apple Store with no credit card, downloaded some free apps to make sure it works.

Now the question is… when I return the iPad tomorrow, should I still pretend I don’t know her email password?

Rotating Header Images in WordPress Theme – Twenty Eleven

Loving the Twenty Eleven theme on WordPress, but want to make the rotating header images your own?

Get your photos out, crop them to 1000:288 ratio, then resize each one to 1000×288 pixels and 230×66 pixels. Name them [yourimage].jpg and [yourimage]-thumbnail.jpg

Upload these pictures to /wp-content/themes/twentyeleven/images/headers

In your dashboard, under Appearance -> Editor -> Theme Functions (functions.php), find the following lines.


'wheel' => array(
'url' => '%s/images/headers/wheel.jpg',
'thumbnail_url' => '%s/images/headers/wheel-thumbnail.jpg',
/* translators: header image description */
'description' => __( 'Wheel', 'twentyeleven' )
),
...
...
...
'hanoi' => array(
'url' => '%s/images/headers/hanoi.jpg',
'thumbnail_url' => '%s/images/headers/hanoi-thumbnail.jpg',
/* translators: header image description */
'description' => __( 'Hanoi Plant', 'twentyeleven' )
)

Then comment them out, just in case you want to revert.


// Stock Headers
// 'wheel' => array(
// 'url' => '%s/images/headers/wheel.jpg',
// 'thumbnail_url' => '%s/images/headers/wheel-thumbnail.jpg',
// /* translators: header image description */
// 'description' => __( 'Wheel', 'twentyeleven' )
// ),
// 'shore' => array(
// 'url' => '%s/images/headers/shore.jpg',
// 'thumbnail_url' => '%s/images/headers/shore-thumbnail.jpg',
// /* translators: header image description */
// 'description' => __( 'Shore', 'twentyeleven' )
// ),
...
...
...
// 'hanoi' => array(
// 'url' => '%s/images/headers/hanoi.jpg',
// 'thumbnail_url' => '%s/images/headers/hanoi-thumbnail.jpg',
// /* translators: header image description */
// 'description' => __( 'Hanoi Plant', 'twentyeleven' )
// )

What you will need to do at this point is to make a copy of the header snippet for each new image you have in the array. Then make 4 changes as highlighted below. Take note here that the last closing parenthesis does not have a comma.

My headers now rotate images from our travels. Enjoy!

Upgrading Hosts

Upgrading web-hosts, so may be dark for a while…

Update 1/10/2011 0210hrs:
Some of it is up. I’ve imported the content, and uploaded the photos but they are not “attached”. Looks like a failure, time to get some shuteye.

Update 1/10/2011 1249hrs:
Decided on my next step. Export the blog to WordPress.com, then re-import it to the new server – let’s see if that’ll work. Nope. Failed.

Update 6/10/2011 2102hrs:
The last couple of days were spent trying to up the memory limit on my new host, and exporting/importing the blog in parts – as suggested in some other blogs. It all failed.

My webhosts even wrote to say:

We have looked into your query and we regret to inform you that the default export/import fuction (sic) using xml in wordpress does not work well with images, it is a known issue with the automation process for images. Sorry for not being able to provide a better solution.

I hadn’t worked on this for two evenings now, so tonight I decided. Why not mess about with the database. Some trial and error… and SUCCESS!!

These are the tables I had exported from the old database; then on a new installation of WordPress on my new host, I dropped the same tables in the database. Run an import, and voila!

I’ve had this blog for years – and started off with WordPress 2.x. Some changes had to be made in the SQL – aligning the authors, and fixing some relative links, and I’m done.

Now to reinstall some of the plugins and (hopefully) back to many more years of blogging.

Oh! One interesting thing I’d learnt was that by modifying the host file in the Windows/System32/Drivers/etc folder, I didn’t have to have too much downtime while waiting for nameservers to switch over. I could also keep the namesrvers pointed to the old host while mucking around with the new one. Link here

Adding a new harddrive to DLink DNS-323 NAS

Having had a DNS-323 for the last 2 years or so, I decided now is the time to add a new drive to it and configure it for RAID – just in case the old one containing my photos failed.

I don’t have pictures or screenshots to show for it, but here’s what I started out with.

  1. With the front cover open, a Seagate 1TB HDD installed in the left-side bay.
  2. Firmware 1.07

I purchased another 1TB HDD, a Hitachi one this time with SATA3 (the lady at the shop assured me that SATA3 is backwards compatible with SATA2).

Steps:

  1. Back. My. Files. Up.
  2. Remove front panel, clean out the innards of 2 years worth of dust-bunnies.
  3. Install new drive in right-side bay
  4. Boot up the NAS and verify that my files are still in the primary drive.
  5. Go to the web admin, log in to the configuration menu.
  6. Message says a new drive has been detected, would you like to format? Yes.
  7. Check “Reconfigure for RAID1”
  8. Click Yes to auto rebuild
  9. NAS proceeds to format the new drive (about 15 minutes)
  10. Reports that HDD (Volume_1) formatted OK.
  11. Click button to restart
  12. The power button starts to blink, so does the status lights of both drives. You will not be able to log in to the NAS – for about 5 minutes.
  13. When you’re finally about to log in, you will see that both your HDD status lights are blinking, your old files are still accessible. And apparently, I have about 3 hours until both drives synchronise.

The usual disclaimers apply. It worked for me, it may not work for you. If you back up, you will still have your files. I’m not responsible for lost memories and documents.