Blog

Upgrading Fedora 7 to Fedora 8

Another Fedora upgrade later, and my system is back up and running. Hopefully this version will fix some of the problems from the previous Fedora 6 to 7 upgrade. When will I ever learn?

  1. System won’t boot. GRUB complains of Error 15: File not found when attempting to load kernel.
    • Something bizarre happened to the IDE / SATA ordering in this release? Boot the system from the DVD again, and select ‘rescue an install system’.
    • Open up ‘nano /boot/grub/grub.conf’
    • Change this line, ‘root (hd1,0)’ to root ‘(hd0,0)’
  2. Wireless card won’t start.
    • Plug in Ethernet cable.
    • Make sure livna repository is enabled.
    • Upgrade the kernel to the latest: ‘yum -y upgrade kernel’
    • Reboot into new kernel.
    • Install madwifi drivers. Why does this have to be done for EVERY upgrade? ‘yum install madwifi’
    • Restart the network ‘/etc/rc.d/init.d/network restart’
  3. Cyrus imapd won’t start. Complaining of libdb-4.5 library missing.
    • Upgrade Cyrus, and make sure it installs the db4-utils package, this time. ‘yum upgrade -y cyrus’

One of these days I’ll move to a real Linux distribution, rather than the current hobbyist affair provided by Fedora. One of these days.

Fixing wordpress RSS XML parsing errors

Wordpress RSS feeds can be annoying. Really annoying. If you install a bad plugin, theme, or even edit some of the existing php files you might find your RSS feeds start getting this parsing error.

XML Parsing Error: xml declaration not at start of external entity
Line Number 3, Column 1:<?xml version="1.0" encoding="UTF-8"?>

You might find that enabling output buffering for your RSS feeds might sort you out, as suggested by J Wynia. But unfortunately it didn’t do it for me.

So, go to the source and fix up the files causing you problems, with the following perl script. It will check each of your php files for any that have extra line feeds at the start, or end – and remove them. You’ll need SSH / command line access for this, as well as perl installed.

Use it at your own risk. It worked for me, but is otherwise untested – so, make a backup first 🙂

Instructions

  1. Backup your wordpress installation
  2. Download the script to the root directory of your wordpress installation.
  3. cd to your installation directory.
  4. Run the script: perl fix-rss-xml-spacing.txt.
  5. Fingers crossed, your RSS feeds will now work again (and hopefully, so will the rest of your blog).

Good luck!

Geonaming your Geotags – Automatic picture captions

This time last year, I wrote about how to Geotag your photos using a simple GPS device and oodles of free software. Not much has changed in that process since, except now there’s a lot more software to choose from and the clever folks over at Trackstick.com have made it a lot easier to export your GPX tracks.

The spatially-aware web is producing a lot more services for us to use, and now Geonames.org some excellent reverse geocoding functionality. That’s the process of taking geo-data (such as longitude and latitude) and getting place names back. Which is really cool for tagging, titling or adding descriptions to your geocoded pictures.

They provide an impressive array of web services in both JSON and XML ranging from postal code searches, to reverse geocoding based on the community-based Wikipedia entries. And if that’s not enough for you, you can download a copy of their huge database and manipulate it off-line however you want.

So me, I wrote some JavaScript to take advantage of the reverse geocoding and tied it into the Blakepics Gallery2 Tags module. I’ll take the Wikipedia entries as an example, because that returns the most landmarks for me. The example code at the bottom of the page actually makes use of two more web services in addition.


The URL to call the web service is pretty simple enough:

var url = "http://ws.geonames.org/findNearbyWikipediaJSON?lat=" + lat + "&lng=" + lon + "&radius=10";

I’ve kept everything in JavaScript rather than building any back-end code whatsoever, so you need to make sure to use the JSON web services and take advantage of the script tags to avoid any cross-domain security policies. The JSONScriptRequest library can be a powerful ally here. This leaves my server to do more important things, but it all depends on your needs for the app.

url += "&callback=showWikipediaNames";
bObj3 = new JSONscriptRequest(url);
// Build the dynamic script tag
bObj3.buildScriptTag();
// Add the script tag to the page
bObj3.addScriptTag();

Then on the callback
function showWikipediaNames(wikijsonData) {
var wikiobjects = wikijsonData.geonames;
if (wikijsonData.geonames) {
for (var i=0;i<wikiobjects.length;i++) {
addSuggestion(wikiobjects[i].title)
}
}
bObj3.removeScriptTag();
}

With me so far? The final step in the process is to add the call to the JavaScript into your Gallery2 templates.

<a href="#" onclick="return showGeoNameOptions(this, {$block.gpsinfo.LoadGPSInfo.lat}, {$block.gpsinfo.LoadGPSInfo.lon});">GeoNames</a>

And before you know it, you have suggestions from geonames on how to tag your photos. Now you can go away and make it suggest some titles and descriptions too. If anyone’s interested in packaging this up into a slightly better Gallery module (or any other application), drop me a line. If this is enough for you, download my example and use it as you see fit.

Download

Pre-requisites

Taking to the skies in Cappadocia

Since having been convinced to take the balloon flight, I booked in the long flight for 210 euros, and a 5.25am pick-up. Twisted arm, that’s me all round.I wandered out to the front of Flintstones around 5.20 in the morning, an ungodly hour where it was still dark and the stars still owned the sky. A short trip to the Kapadokya Balloons office, to pay up – and I was rewarded with some much needed coffee and biscuits. There were a huge number of people in the “staging area”, maybe 60-70 all looking rather bleary-eyed and half awake. I overhead two people talking about “we’re on the last pick-up. They say that’s the best one”. I sauntered over “either I’m with you guys then, or they say that to everyone”.

Another short bus ride for maybe 15 minutes and we were on top of the valley overlooking Göreme, where the balloons would probably be flying from, and I had already been indoctrinated into a tour group of 9 who had been travelling around Turkey together for some weeks.Four balloons were leaving from this spot at the same time, but fortunately I’d managed to single out the same group that would be accompanying me on the flight (not the other way round, of course). Being the only non-tour group member there I found myself as a bit of a celebrity. They were clearly all relieved to have company from outside the usual bus excursion, and nobody had any trouble remembering my name!

First the safety advice, no leaving the basket, how to hold onto the basket in the event of landing in a tree, falling over, or upside down etc. Second the cold air to inflate the balloons a little bit. Then finally the warm air to get them heading upwards, and a quick scramble into the basket before the balloon had a chance to disappear into the distance without us.Like everything in the flight, the take-off was extremely smooth. Our pilot – Mike from Cornwall – did a fantastic job, as far as I know about these sort of things. Before you knew it, we were drifting over valleys, seeing our hotels and watching the sunrise over Cappadocia all the way to the peaks of the distant volcanoes.

It was so breathtakingly beautiful, words just can’t describe. Kappadokya Balloons seemed to be a lot more active than the other seven companies in the area. Taking every opportunity to dip down into canyons and to skim the tree tops. At one point, as we were floating through Love Valley (I think it was that one), I tried to reach out and pick some pears from a growing tree. Not being quite close enough, Mike gently landed the balloon just a short slope down from the tree, leaped out of the basket and returned with an armful of pears for everyone. These extra moments made the flight even more memorable and special and I was very glad I’d paid the extra to fly with the best and longest flying company in Cappadocia. That’s my plug for the post. They deserve it 🙂

There were another maybe 20-30 balloons in the air which made for an impressive show for the entire trip, on this beautifully clear day. Because of the other three balloons leaving from the same spot, there was plenty of opportunity to “play”. Balloon kisses, where the two balloons touch each other, as well as chatter over the radio about getting into the valleys where other balloons were below, and shutting out those “other” rival companies 🙂

The flight itself took us through Love Valley, past Göreme, White Valley, Ã-rencikkbaçi Valley and right over the town of Uçhisar, past the castle and the minurets of the mosques below. And every moment was stunning. I’ve taken maybe thirty-four thousand pictures during the two hours. I’ll try and cut these down to a select few ;)After landing one field over from the other three balloons (again, really smooth and only a slight bump), we all got together for a champagne breakfast and slice of cake, certificates, postcards and “celebrating the fact that we’re all still alive”. Kappadokya Balloons’ words, not mine.

A really, really brilliant experience. I’m so glad I had the opportunity and don’t regret a single minute of it. I’ve been telling that to everyone I’ve met ever since and the two people who turned up to stay in the same room as me today are just now working out their bank balance vs. Balloon flight cost plans.

G̦reme РThere comes a time in every mans life when you just have to live in a cave

When you hear the word Cappadocia, you probably think “best ice creams in the world”. And that’s because you’re saying it incorrectly. When pronounced properly, Cap-Ah-Doe-Key-Ah no longer sounds like it would be an Italian ice cream at all. And we’re back to thinking about rocks. No? Ah well, that was only the introduction…

I’m hearing horrible rumours that might suggest Michael Palin has already beaten me to it with his frank and honest account of Turkey. Which make all of my tourist lies seem a little weak and shallow. But I’ll continue with them anyway, in the hope you missed his show, and god forbid, rely on my blog for your travel insights around the globe. I arrived by overnight bus to Göreme, in Cappadocia early this morning. I first made quick stop off at the Flintstones Cave Pension, and managing to wake up the owner from his slumber just long enough to find out where I should drop off my bag. And no, there are no typo’s in there. I actually am staying in a cave, and it is named after the Flintstones.

The whole landscape is the responsibility of three volcanoes, Ericyes, Hasan and Melendiz Daglan. Thirty million years ago (to the day… possibly) their eruptions covered the area in ash and mud. The ash compressed over time, and has been worked on by the process of erosion ever since. Blocks of a harder rock, usually basalt in this case, are exposed by the erosion all around it, leaving these remarkable looking fairy chimneys left standing.

All of which leaves me to believe I may have woken up to a Geology Adventure Park. Every now and then, I still think I hear the distant screams as a roller-coaster cart speeds over the top of one of the chimneys. But it might be my imagination.Even more remarkable than the landscape itself, as though that weren’t enough – is how the people have been making use of every part of it for thousands of years. The fairy chimneys have been carved out, caves have been used as homes, churches, castles, kitchens, even entire cities. In Göreme especially, the lifestyle continues to this day all over the city.

There’s even an open air museum that has a whole bunch of these buildings in demonstration. I was a little bit wary of visiting this particular site. The last time I visited an open air museum, our school was banned for setting alight to one of the buildings. Not my fault, I might add. Still, the scars of that torment are beginning to heal, and besides, it’s made of stone. What’s the worst that could happen? And that’s how I came to destroy an entire 12th century church to the hill side, as well as find myself in a Turkish prison.

No, it’s not true.

Had you going though, didn’t I?

In many ways, I’m amazed what the people of this area have accomplished, making use of all the resources around them. On the other hand, I think that it’s not so different from people of ancient England making use of the plentiful forest land to build wooden villages and castles everywhere. The only difference is that most of these have survived. So we can still look on with wonder. Whilst our old villages of England may have been burnt to the ground, these have been developed and expanded upon ever since.So much so, the Pension I’m staying in is indeed (as earlier web sites suggested) a cave. And as the saying goes, “you can’t beat living in a cave”. They always said this is how I would end up. Don’t try and deny it.

I’m saying in a 6-person room, which is actually separated into two rooms. Three bedrooms with a door, and a small archway to the lower area, where my bed is. During my first day, I asked two American girls what it was like sleeping in a cave (no, that’s not one of my chat-up lines, dammit :P). The reply was instant from both, and they replied at the same time with “cold”, and “dark”. Well… here are my thoughts.

  1. It’s pitch black at night. There are no windows to the outside world. None.
  2. The light switch is at the other end of the room. If you arrive back to the room quite late, and everyone else is already asleep… They probably won’t appreciate you stumbling over them to find you way around. I’m very fortunate that my camera gives off a usable light when in “preview” mode.
  3. Caves don’t have many power sockets.
  4. When you emerge out of the cave in the morning, and the sun is shining… It’s like, well, emerging out of a cave.
  5. Sleeping in total darkness is easy, and rather comfortable.
  6. Yes, it’s true. It can be kinda cold. But the blankets are good 🙂

Anyway, there are some first impressions for you. More tomorrow 🙂

Good bye Pamukkale

Well, I’m getting slightly mixed up. My notebook is full of scribbles about what on earth is going on, but I don’t even know what day it is. So with this in mind, I’ll write about my last day in Pamukkale. I haven’t posted any of the “future” posts yet, anyway. So I think I can safely get away with it 🙂

I’ve had three very relaxing days in Pamukkale now. Lots of reading good books, lots of walking, lots of quiet nights talking over good meals.

I’m very much enjoying my holiday. Very much 🙂

I was talking to the owner of the hostel a little about the history of his business and his plans for the future. It interests me to know what motivates people, see. I was a little shocked and saddened by his desire to close down the hostel part of his business. He had a builder in 2 years ago to build a house for himself and his wife next to the complex of 13 rooms. During that time, the builder asked about why people would turn up with backpacks and then leave ten minutes alter after having seen the rooms. Well, they’re basic. Which is reallly all I need, and more of what you’d expect for the price. But he didn’t have any nicer rooms to cater for that kind of guest.

So, rather than build the one floor for his house, this particular builder said that he would not leave until he had built three floors. And that they could decorate the rooms however they liked. He asked for absolutely nothing in return, and to this day, the third floor still remains unpaid.

That’s Turkish selflessness.It was a heartwarming tale, but me, still a little saddened by the decision to close the hostel area. Then I found I was the only one staying in it, and I began to understand a little bit more. I not only booked into a 4-person room, using only one bed, I had a whole 13 rooms at my disposal! So, I guess I can forgive him for wanting to concentrate on the more profitable side of the business.

On a completely separate note, I’ve been cursed with two terrible afflictions during this trip.The first one, the people I really get along with at the hostels are the same ones who are leaving the next day. It’s happened since that first group in Istanbul. Perhaps they’re trying to tell me something? I haven’t seen any move into a hostel just around the corner yet though, so I’m still under the belief it’s just a coincidence.

The second, everywhere I’ve left has been cursed with horrible rain. Rain the day after I left London. Okay, that’s not that unusual. Rain as I sat down on the coach at Istanbul. What happened to the brilliant sunshine?? Not that I care… Heavy storms as was about to leave the hostel at Pamukkale.

“Do you have an umbrella?” – asked The Wife.
“Got a jumper.” Said I, blessing my foresight to be well prepared for my holiday to the boiling hot country of Turkey.
“Hey, I just got back from the centre.” Said The Husband as he reappeared.
“Oh yeah? Was it dry there?” Said I.
“No.”

So I very kindly got a lift to the bus stop. And the second of the 11+ hours journeys across Turkey. I’m getting kind of sick of those, y’know? 🙂 It beats the trains, that take even longer but next time I’ll seriously prepare with some flights.Tomorrow. Cappadocia, to the bat-cave! Or something like that.

Your help requested, for hot air ballooning over Cappadocia

I’m still yet to decide on this very important decision … So, leave a comment to help me along the way 🙂

One of the activities in Cappadocia is hot air ballooning through the valley, and skimming the tops of the “fairy chimneys”. It costs 230 euros, which isn’t *really* a part of my holiday budget … But … Should I do it?

Help me to justify it without feeling self-guilt. Vote now, vote lots, tell your friends. You have until mid-day tomorrow (Monday). And look, my blog is like one of those interactive choose-your-story adventure books. With less story, interactivity, choosing, adventure, and certainly less ogres.

Pamukkale – the world before traffic

Pamukkale is just beautiful, and exactly what I needed after the busy non-stop Istanbul. It creeps into the north east corner of the Central Aegean region, though Pamukkale is far from the sea, and seated at the base of an incredible cliff from which it takes its name, “The Cotton Castle”.

For the geologists among you, of which I know there is one – I’ll give a little background. The rest of you can skip straight ahead to the pictures on blakepics if you like. It was such a sight, I couldn’t just write about it without one.There is a spring saturated with dissolved calcium bicarbonate at the top of the cliff. As the water surges over the edge of the plateau, it cools, gives of carbon dioxide and calcium carbonate precipitates as hard chalk. This has been going on for millennia, and forms the fantastic layout that’s become a UNESCO World Heritage site. Further proof that I should devote large amounts of my holidaying time to visiting that list.

If that weren’t enough, the spring emerges in the centre of the ancient city of Hierapolis, founded during the second century BC. It was visited personally by three roman emperors, and contained a health spa not too dissimilar to the one there today. During the Byzantine period, it slid more into obscurity, before being abandoned in the 12th century after the arrival of the Selcuks.

Entrances to the ruins and the travertines are via the aptly named North and South gates, which both feature visitor centres. Cleverly placed long hikes in open sunshine away from anywhere of major interest. There is also a smaller path at the base of the cliff somewhere between these two, originally designed to allow the local villagers to visit the pools. Staying in the local village, I considered myself to be one of them so headed straight up that way. You have to remove your shoes to walk up there (and around any of the pools), because the people who run the site are bastards and enjoy watching weary travellers jump around as sharp stones get stuck into their feet. Still, I detached body from mind, and walked about oblivious to the squeals of pain around me. And followed someone else. So I knew where, and where not to step.

It felt as though I was back in Iceland, walking the steep snowy trail down to the Gulfoss waterfall, with brilliant whites all around. However, with the hot sun shining down from above, and paddling through pools and streams of warm water this was a very different experience. I was very, very happy to have left behind all the cars and constant noise of horns blaring in Istanbul.It’s now approaching the end of my second day in Pamukkale. The sleepy village, and natural surroundings have relaxed me completely. From watching the sunset at the top of the cliff as the the bright orange colours dance across the pools, to strolling along the quiet streets past children playing and smiling villagers.

Turkey, I hear, is full of this contrast. Only the large cities like Istanbul and Ankara are filled with bustling people, all with somewhere to go, and carpets to sell. This is only partly true of Pamukkale, which is still not without its fair share of carpet shops. The computer in the bus company offices stays firmly off, the children laughing and playing in the streets always waving and smiling hellos, and families sit outside of their homes enjoying a meal together. The first two times I tried to find the hostel, I wandered aimlessly for 30 minutes before stumbling across it. In that period, I must have asked a total of 20 different people where to go. Every one of them was at least willing to offer a smile with their shrug, with many asking if they could help. I did look lost, yes. The hostel itself has tree houses in the garden. Which is really cool, and one of the reasons I booked this one. Sadly you don’t get to stay in them overnight but they are decked out with cushions and tables which makes them a great place to relax out of the sun. It’s great to be here 🙂

With all of that in mind, tomorrow evening I’ll be catching another overnight bus to Goreme, in the heart of Cappadocia (12 hours away). No tree houses, but it does look from the web site as though it might actually be a cave. I’m looking forward to this immensely 🙂

Booking your hostels

Up until now, I have been booking my hostels through hostels.com, usually a day before I leave the last place. I just like to know that I have somewhere to stay, before I’ve been on a bus for half a day. It’s been great, but now I’ve found something better I’m just not going to turn back.

The website of choice for everyone else I meet seems to be www.hostelworld.com, and now I completely understand why, even if my reasons might be slightly different. Who knows.

I’ve made a concerted effort on this trip to cut down on my GPRS roaming charges. Which is the usual means for my blogging and some checking emails. I’d expected that to mean wasting my time hunting down Internet Cafes during the day, but the abundance of WiFi connections in Turkey hostels has meant that I can just jump on early in the morning or at night when I’ve returned to my room. Hopefully this is becoming more of the norm worldwide, and not just in Turkey. It’s certainly a helluva lot cheaper, convenient, and all included in the price.

So with this in mind, I thought it would be great to book my accommodation using the iPAQ. Alas, Hostels.com doesn’t even work on Opera Mobile. Hostelworld have totally catered for this kind of traveller. Not only does their site work, they also have a mobile version which is easy on the bandwidth.

Well done them 🙂