"\e[A": history-search-backward
"\e[B": history-search-forward
set show-all-if-ambiguous on
set completion-ignore-case on
Monday, June 17, 2013
Bash history made better
Monday, May 06, 2013
Good bye Unity, hello Xmonad
Once I got my head back into the Linux world I loved it. I can't see myself going back, however, I did developed a healthy distaste for Unity (which seems to be par for the course). Co-workers of mine were using Xmonad and during the downtime I decided to give it a go.
It's the best.
It took me about half a day to get my head around how it really worked, but now that I have I found other OSs clumsy in the extreme. This is especially true if your working on the command line a lot or working with tools such as a Vim or emacs. In fact, that's not even quite true, even if you aren't working with the command line a lot it's great, but working with terminal so much nicer with Xmonad that I think you'll find yourself doing it more.
Hyperbole aside, the one thing about Xmonad is that it isn't exactly trivial to set up. So I'll try and out line as simply as possible the steps I went through to get mine working.
First up, I'm using Ubuntu 12.04 (Percise). No guarantees these instructions will work on earlier or later versions.
Install
Use apt-get to install both xmonad and added plugin called gnome-panel (you'll need this if you are running a gnome/xmonad session).$ sudo apt-get install xmonad
$ sudo apt-get gnome-panel
At this point xmonad will be installed but you'll need to log out to change the session. Before you log back in select the window manager using the button on the top right hand corner of the login box. Choose "Gnome/Xmonad" (or similar).
Configure
Once you're in you'll need to configure things a little. First up you'll probably be greeted with a black screen and nothing else.Alt+Shift+Enter opens a new terminal. By default alt is the Meta (mod) key, you can change this later (to Windows key for example).
Create the config:
$ cd ~
$ mkdir .xmonad
$ touch .xmonad/xmonad.hs
Edit the config:
Below is the config I use. You should be able to copy and paste this into your xmonad.hs and it will work.
import XMonad
import XMonad.Util.EZConfig
import XMonad.Hooks.SetWMName
myMod = mod4Mask
myWorkspaces = ["1","2","3","4","5","6","7","8","9"]
main = xmonad $ defaultConfig {
modMask = mod4Mask,
workspaces = myWorkspaces,
startupHook = setWMName "LG3D"
}
`additionalKeysP`
[("M-x f", spawn "firefox")]
A few points:
- I set the meta key to windows key by using mod4Mask (mod1Mask is the Alt key)
- The setWMName call is used to ensure Java Swing apps (such as RubyMine or InterliJ) render correctly.
- The firefox start is an example of setting up your own application hot keys.
Done!
Monday, April 02, 2012
Android Unit Testing - A slightly painful experience
Android provides a complete framework for unit testing which builds on JUnit 3. All in all, this seems pretty good and things are fairly straight forward. The thing that caused the pain and frustration was in resource management.
First of all, let's summarise the test I was trying to implement:
- My app executes REST requests against a web service. This returns JSON that is then parsed by a Proxy class into my model classes.
- The REST queries themselves are executed by the Proxy via a RestUtil class.
- To facilitate testing of the parsing code, the RestUtil class is defined by the interface IRestUtil. The Proxy constructor accepts an IRestUtil object.
- This allows me to create a MockRestUtil that implements IRestUtil. This can be passed to the Proxy in my unit tests to allow testing of specific responses.
So with that in place I came to implement MockRestUtil. The aim was to get the MockRestUtil to load saved chunks of JSON stored locally as assets. This way I can test a whole variety of responses from the web service easily.
Once it came time to load the resources though, I never got anything back but null. I had been trying to use ClassLoader.getResourceAsStream(), however this returned nothing but null. I also tried making a static application context and using getContext.getAssets(), again nothing but null. I tried a lot of things, however, it wasn't until I hit upon the following Stack Overflow article that I finally got things working: http://stackoverflow.com/questions/9898634/how-to-provide-data-files-for-android-unit-tests
To summarise (based on Eclipse):
1) Right Click on your Test Project and select Build Path -> Configure Build Path
2) Under the Source tab click "Add Folder" and select the Assets directory. Note: Since Version 15 of the ADT plugin, the Assets folder is NOT include in the build path by default. You have to add it manually.
3) Create your data files and add them into the /Assets directory of your test project.
4) To access them in the test case use the following:
String assetPath = "assets/data.json";
InputStream stream = this.getClass().getClassLoader().getResourceAsStream(assetPath);
And there you go. Now you have an easy way to store local data for use in Unit Tests.
Friday, February 03, 2012
I had a problem to solve. It wasn't a difficult problem, it was just one of those yucky problems I've done numerous times before and for some reason just always feels hacky.
The problem was this: For a given date range I wanted a list containing the date of the start of each week within that range. To be clear: The first date did not need to be within the range. Rather, the first date would normally be the Sunday of the week in which the first date fell.
This isn't an unusual thing to do and it is something that is done often in reporting tools.
This is also the perfect case study for writing an Extension method on DateTime that returns an IEnumerable. Doing this results in an easy, elegant and reusable solution that is no longer a hacky function buried in a class somewhere, but an extension to an already ubiquitous class (DateTime).
First up, this is implemented uses an Extension Method on the DateTime class. In C# extension methods allow you to add methods to an existing class without having to derive from the class or change and recompile the class. A couple of things about Extension Methods:
- They are always static (that includes class in which they are defined and the method itself)
- The first parameter is always the class which the method operates on proceeded by this.
- Extensions are only in scope when you import the namespace in which the method is defined with a using statement.
So, the prototype for my new extension method will look something like this (I'm calling the method EachWeek):
In our calling code, this means I can now use this function as follows:
Iterating over weeks will now return each of the Sundays from the first Sunday before DateTime.Now to the last Sunday before endDate.
Using the above template, it's now simple to extend this to implement EachDay, EachMonth and EachYear.
The implementation of the function itself is as follows:
{
// Remove time info from start date (we only care about day).
DateTime currentDay = new DateTime(start.Year, start.Month,
// Get the dayOffset and subtract this from the current day,
int dayOffset = (int)start.DayOfWeek;
DateTime currentWeek = currentDay.Subtract(new TimeSpan(
{
yield return currentWeek;
currentWeek = currentWeek.AddDays(7);
}
For more information on Extension methods see:
http://msdn.microsoft.com/en-us/library/bb383977.aspx
http://msdn.microsoft.com/en-us/library/bb311042.aspx
For more information on IEnumerable and Yield return see:
http://msdn.microsoft.com/en-us/library/9k7k7cf0.aspx
http://www.dotnetperls.com/yield
Saturday, December 31, 2011
4:40pm 31st December, 2011 - Not a particularly bad time to start a new blog, and begin learning a new language. Well, symbolic it's a good time, practically not so much.
In any case this is a new start. After 10 years of back end and web service development it's time to try something new. During this time I've worked as a software engineer, team leader and sales / marketing / product management guy. Throughout it all I've been developing primarily in .Net with sporadic Java phases interspersed.
To be honest, I love .Net. The .Net 4 framework with C#, Visual Studio and Resharper is an elegant and rapid way to build software. Whilst the FOSS crowd might hate to admit it, Microsoft has it over most other languages when it comes to IDE and tooling support.
But all good engineers need more than one string to their bow. This is especially true for .Net enterprise developers. We live in an isolated world clinging to legacy code and outdated standards (like SOAP, ugh). Things are changing and the tide is turning (Windows RT and Metro promise to upset many a boat), but there is still a need to broaden horizons. With this in mind it's time to delve deep into an alien world of web apps, open source software, languages, tools and OS's. I'm hoping that some of the learning's I get from this will be useful to others who are in a similar position.
The only way to learn is by doing. So I will do. My aim over the next 3 months is to learn a new language and framework, namely Ruby and Ruby on Rails. Why? Because it's the golden boy at the moment. I also believe it will be handy to have at least a rudimentary understanding of the framework on which many others are at least partially based.
I have a project in mind as well. A project that incorporates all aspects of a modern application - a simple web interface, a RESTFul API, a back end data store and a native mobile interface. That's a lot in 3 months, but what are we without ambition?
Wednesday, December 16, 2009
The Dead Kennedys first recorded the song "Holiday In Combodia" in 1980. It's a song which is heavily critical of eastern Militarism (eg., Pol Pot's regime) and Western complacency and is particularly critical of self righteous young Americans. It contrast their pretentious ways against the brutalities which were occurring under the regime in Cambodia with the inference being that their convictions would be sorely tested were they to experience the horrors of such a regime.
So, it was with this song playing in my head that Wookie and I landed in Siem Reap, the town which has sprung up around the ancient wonder which is Angkor. The drive from the airport into the town confirmed what most people would suspect - a holiday in Cambodia is now definitely achievable and actually quite a pleasant experience. This is made evident by the sheer number of hotels and spas which have sprung up around the town. The road from the airport is lined with two hundred room western run Megaplex hotels which provide everything that a well to do traveller would require. I feel that this all lends a certain irony to the song and to the original intent.
Anyway, enough of the diatribe - what was Angkor like? Simply amazing - it lived up to every expectation. After a day getting settled in, Wooky and I headed for the first of what would, for us, be three days at the temples. Before I describes this, I might add a little bit about Angkor. Firstly, Angkor Wat is only one of about 20 or so major temples which make up the Angkor site. The majority of these temples are contained within the “Big Loop” which is a road about 26 kms long which encircles the main sites.
Our chosen method for seeing the site was by bike. The distances weren’t too great and the area is completely flat, so it seemed like a good option as it gives you a lot freedom to go and see what you want when.
So with this in mind, our first day was a scouting operation, with such a large area and so many sites to see we wanted to get a feel for the area before James arrived. After a day of riding we a good feel for the place and the next day when James arrived we got straight into it. All in all we spent around 8 hours riding, we managed to see the main temple complex of Angkor Wat and the Bayon (both amazing) and also some of the smaller sites. Having the bikes allowed us to take some of the less travelled paths which always ended up leading somewhere interesting and less touristy.
Finally, on the third day we hired a tuk-tuk (two days riding was more than enough) which took us to Angkor Wat for sunrise. Again, this is a must see experience. It's incredibly busy and we had to fight hoards of tourists, but it was totally worth it. There is a reason people get up at 4:00am to go out and watch the sun rise behind this amazingly ancient pile of stone. After sunrise we spent the day exploring some of the further out and more interesting temlpes, but by midday we were completely templed out. There are only so many bass-reliefs and Buddha / Hindu statues you can look at before they all start blending together.
And that was Angkor, tomorrow we get up early and head for Thailand. Our next stop is Chang-Mai where we would meet up with Nat and then head off into Northern Laos to catch a slow boat. As a fair well to Siem Reap we decided it was time to go out for some dinner and drinks and Siem Reap has a lot to offer in this respect. The main street of the Psar Chaa district is teaming with bars, restaurants and tourists. In fact, it's sadly getting somewhat of a Khao San road feel to it (made all the more evident by the fact the main streat is called "Pub Street"). Even so, it's a good place to get some good food and beers. Speaking of good food, I'll leave you all with a tip - anyone traveling to Cambodia should definitely try Lok-Lak. The menu describes this dish as "grilled beef with Cambodian BBQ sauce" - but it's so much more. It's been a long time since I ate something which really blew my mind, in fact it's hard to describe what it tastes like, just that it taste amazing.
On that culinary note I'll leave it there. Next stop Chang-Mai.
Saturday, December 05, 2009
Kuala Lumpur, the city of ... of what exactly? I'm not quite sure. Prior to arriving in KL I'd read or heard very little about it. The most anyone could tell me was a) it's great for shopping and b) it's got the Petronas Towers, the second tallest building in the world. And after 4 days in Malaysian this still pretty much all I know about KL.
This is largely due to the fact that I abandoned KL almost as soon as I landed. After landing, I was looking at spending a lot longer in KL then I had intended to (due to some unexpected circumstances). What was originally meant to be a 2 day stopover had quickly turned into 4 days while I waited for Wooky to arrive.
After discussing KL with a few people at my hostel, I came to the conclusion that whilst it seems like a fairly cool city, nothing was really drawing me in. I decided to get up first thing the next morning make my way to the bus station and head... somewhere.
In the end I opted for the Cameron Highlands, an area about 200km North of KL, and I'm glad I made the choice. The area is hilly and covered in tea / strawberry plantations interspersed with thick jungle. It's a nice change from the heat, humidity of KL. I also hit upon a an excellent hostel - Father's Guest house. Great place with friendly staff in an awesome location.
The surrounding is pretty spectacular and is excellent for trekking. The thick jungle and unending hills, coupled with a lack of signs and the overgrown nature of the paths makes it a far more adventurous experience than first thought. Sadly, the views from the top of the mountains are somewhat spoiled by the fact that the development in this area has happened in a sprawling and haphazard way. As a result pristine jungle is often cut away by large tower block style apartment buildings or cuttings made to prevent mud slides onto roads.
Having said that, in places the jungle is so thick and the terrain so impassable that, once we made it over the ridgeline and Tanah Rata was hid from view, we were presented with a massive expanse of apparently untouched jungle. We also had a nice suprised when we got slightly lost and stumbled across and Orang Asli village. The Orang Asli are the original inhabitants of the Malay peninsular and it was intersting to happen across one of the villages huddled in the hills.
All in all, it was definitely a good choice to come up here for a few days. It was a great relaxing ay to start the trip, nevertheless, tomorrow I have to get moving again. I will be heading off to meet Wooky in KL before we fly to Siem Reap (Angkor Wat) on Wednesday morning – and that’s where the fun really begins.
Tuesday, December 01, 2009
It's that time of year, summer is here, uni is finished, Christmas is coming and I'm leaving. This time we four intrepid adventurers are heading out into the vast uncharted jungles of south east asia... actually... hang on. Hmm, turns out these vast jungles have been chartered, quite heavily in fact, and even by one of our group.
Well it's still going to be fun and this time I'll be trying to keep this blog a little more up to date. For various reasons (mostly technology related), this blog ended around half-way through last trip. This time however, I've made the transition for dirty backpacker to yuppie backpacker. I'm travelling with a brand new NetBook and an iPhone which should make things a lot easier. We'll no longer need to spend interminable hours in internet cafes struggling with intermittent access, rather we'll spend interminable hours in our hostel fighting over this laptop.
In any case, I'll make sure that our (mis)adventures are captured and posted. For now though, I need to board a plane. Next posting will be from somewhere in Malaysia.
Dave.
P.s. you may notice a very recent posting below from Africa. No, I didn't make a side trip to Africa, but what I did find was a nearly complete entry I never posted. So there it is!
Sunday, November 29, 2009
And apparently we are all wizards. Well that's according to the crazy lady we met in Stonetown, the capital of Zanzibar. She seemed quite harmless and, to be honest, her confusion didn't seem that out of place in Stonetown - the hectic mix of Islamic, Indian and Africa cultures means that it has a somewhat confused identity (and apparently some of residents are a little confused about religion too).
So, crazy ladies aside, we had finally arrived in Stonetown in preparation for New years. Our journey here had an epic feel to it, even in comparison with the other monumental transit we'd done previously on this trip. I've mentioned before that travel takes time here, and one thing we've learnt about this is that it's best not to delay the travel or try to break it up. Push on through is the motto. Adding a rest day just makes things longer and you still feel wrung out at the end.
With this in mind we set out at 7:00am Christmas Eve from Chitemba on the sures of Lake Malawi with an audacious plan - we would aim to be Mbeya in southern Tanzania by 2:45pm in order to catch the twice weekly train to Dar Es Salaam. This gave us a total of 7 hours 45 minutes to make our way to the north of Malawi, negotiate the border, then on to Mbeya. A total distance of around 400km.
What ensued was something straight out of the Amazing Race with James, Wookie (Father / son), Nick and I (dating goths) barging our way across the country, running for busses, arguing with money changers and bus drivers and finally remembering an extremely inconvenient time zone change which we'd forgotten about (hence one our less to make the journey). The final push occurred when we arrived at the train station at 2:43 with train waiting at the platform. James and nick sprinted for the ticket offices while Wookie and Igot the bags ready to load onto the train, we'd made it...
Or had we? A distressed look from James and Wookie and a quick conversation confirmed our worst fears, the train was booked out. Christmas was ruined. We'd have to spend Chistmas in a hotel in Mbeya, or on a bus - boring.
But wait, at the last minute our shining star arrived, the station master, who nonchalantly wandered over and informed us, actually yes, there was a 1 first class cabin (4 berth) available and we could now by a ticket. After this he was dubbed the station master who saved christmas (we also had a taxi driver that saved christmas and later the swiss girl who saved Christmas, but that’s another story).
Christmas was saved and we celebrated with some serious amazing race style high fives once we got into the cabin.
Saturday, December 27, 2008
.jpg)
The from inside a packed mini-van
As mentioned, travel can be dangerous, especially at night. These were just some of the accidents we passed on the road.
In spite of all this, independent travel in Africa would be impossible without them. They also give you good insight into the people and the places you are going to. Finally, once the ride is over and you're showered and rested, each journey takes on a nostalgic feel to it..jpg)
James terrifying some local kids to alleviate the boredom.
Anyway, it was in one of these chappas which we departed Inhambane and began our long journey up to Malawi, and finally to Nhkata bay on Lake Malawi. The journey itself would take a around 5 - 6 days of travel spread over 8 days and was tiring to say the least. Even with a rest day in Vilankulos, the final beach town before we headed to Malawi, it was a hard slog. The journey was also complicated by James' bag being stolen at the bus station in Lilongwe and the subsequent wasted day in Lilongwe (courtesy of the incompetent staff at the Lilongwe police station).
As i mentioned though, in hindsight this is all a blur and the truth is we did see a view of Mozamabique and Malawi which was unique and interesting, so it's not all bad. Luckily this puts most of the hard travelling behind us, we'll have a few more mammoth efforts, but these should be one or two days at most. So onwards we go, next stop Nhkata bay on Lake Malawi which by all reports is absolutely amazing!
Monday, December 15, 2008
Never have I been to a place which has left me with such conflicting emotions. We pretty much failed to do everything we intended to in Tofo, but somehow found a whole lot of other things which made it all worthwhile... i think. Let me explain:
Tofo beach itself is a beautiful place. Our backpackers, Fatima's Nest (or Rat's Nest as it could well be called) was perched precariously on high sand dunes over looking the beach. From the bar you had unspoilt views of long sandy beaches and deep blue water - very very cool (See photo below).
The accommodation was basic, mainly grass huts but this was kind of all we needed. We also ended up in a dorm full of really cool people. We'd made friends with people on the bus there and for the next five days the 10 of us lived in a dorm. It was a lot of fun.
This was helped by the fact that Tofo is a great party town. Every day a bus load of backpackers arrives from Maputo, keen for some beers and party, so all in all it was a really fun place. That was the part of Tofo we loved.
The other side of Tofo was typified by amazingly useless and apathetic staff, ridiculously over priced food, accomodation and activites (more on this). For exmaple, the staff at the hostel were habitually stoned and unable to answer any questions, we soon realised it best just to not do anything which involved their help. Simple things such as "can i get my bag out of the safe?" were some how completely impossible - Please come back at another time, at which point we may or may not decide to help. Useless.
This aside, the major disappointment was the Diving / Whale Sharks spotting. The single reason we came to Tofo was to see Whale Sharks. Tofo is unique in that it has the only resident whale shark population in the world. All other Whale Shark populations are seasonal, but at Tofo they are always there - apparently.
We started our search for the whale sharks with an extortionate two tank dive. (we're still not sure why but diving in Tofo is by far the most expensive diving we've done). Diving isn't the normal way to see Whale Sharks as they normally spend time on the surface, however, the guys at Tofo scuba ensured us that between dives we'd spend time looking for them then snorkeling with them. Sounded great.
Sadly, the seas were angry that day. Heading out of the bay we were met by 10 ft swells which didn't stop. This wasn't helped by the fact that instead of a normal sized dive boat, we were instead in a small rubber ducky style boat. After 25 minutes of bobbing around we were on the verge of sickness. 2 hours later after our dives, we were most definitely sea sick (Nick, Wookie and I anyway, somehow James escaped unharmed). The massive waves and cloudy sky also made it impossible to find any Whale Sharks.
The diving itself was... ok. Wasn't great, but wasn't that bad. All in all a pretty disappointing experience.
The next day we thought we'd try again, this time a dedicated whale shark trip. Again, extortionately priced (nearly $100 US for two hours!), and again disappointment. After barely two hours of heading down the coast then back, we were told "sorry no whale sharks today", spent 10 minutes snorkeling on a "reef" completely devoid of life and then headed in to the shore.
This was all very disappointing, but that wasn't the end of it, not for me. The final kick in the teeth (hehe) came that evening when, whilst biting into a delicious chocolate bar, the bridge work which holds my false tooth in place broke. This has been waiting to happen for a long time, but the timing couldn't have been much worse. After a day of doubt and despair (I was almost ready to jump straight on a bus to Maputo, Jo'burg, then fly home) I decided to soldier on. I'm really glad i did now as it turns out i probably wouldn't have been able to get on a flight and would have stuck in Jo'burg along - not a lot of fun.
So, with that decision made we head off through northern Mozambique to Malawi, minus one front tooth. I can't help but laugh at the irony of the post below, I definitely did get a serious dose of travel pain, hopefully that's it for this trip though.
Wednesday, December 03, 2008
We arrived safely at Jo'burg after the best transit stop-over I've ever had. 6 hours in Singapore was spent relaxing in a pool, playing Xbox and watching premier leagure soccer. Changi Airport is now my favourite place in Singapore (granted, I haven't been anywhere else).
Once in Jo'burg we managed to make it to our hostel without incident and our tour of Jo'burg consisted of one site - Eastgate mall, A.K.A Fountain Gate from Kath and Kim. We even rounded this out with a lovely Latte. Fairly strange experience, however by the end of it we were stocked and ready for Kruger.
Early the next morning we successfully negotiated City Park Bus Station (Jo'burg's number one mugging point) and boarded a bus to Nelspruit where we stayed at the Funky Monkey. Less said about that place the better.
Now to the serious bit - Kruger Park. This place was absolutely amazing. We opted to organise the trip ourselves and hired a car for four days. This ended up being a very economically sound decision. Rather than paying the extortionate $375US each, we got away with $475US TOTAL for the four us. BAM!
Also, my fears that we wouldn't see as much wildelife without a guide were totally missplaced. The only animal we didn't see was a Cheetah, otherwise we saw 4 different Lions, two Leopards, loads of Rhinos, Elephants, Hippos, Giraffes and even some baby Hyenas (which were extremely cute!). Below are some of the pics:
Hyena Family
Elephant
Leopard - thanks to nick for spotting this guy.
So now we are off on the second leg of our journey - Mozambique. It's time to soak up some surf, sand and diving, woohoo!
Monday, November 24, 2008
I'm thinking it's going to be different. Very very different to anywhere I've been before.
Anyway, speculation aside, here is the rough plan for the next 7 weeks:
Arrive Jo'Burg.
Leave. Straight away (ok, maybe the next day), but we plan to head off asap for Kruger.
After a few days (5?) in Kruger, head for the Mozambique, Maputo and the coast.
I'm hoping to spend a while here in Tofo and some other placed.
After this the next stop is Malawi, possibly Mount Malanje then work our way up north.
From Malawi onto Tanzania and New Years in Zanzibar (woot!).
Soon after that we'll be heading in the direction of Uganda, at which point my part of the journey comes to an end and I fly back to Jo'burg then back Brisbane.
It's going to be an amazing trip and I can't wait to see how it pans out. Stay tuned.
Friday, January 04, 2008
I awoke in the sleeper bus from Lijiang to Kunming with Marlon Brando's voice in my head: "Damn, Saigon." Ok, this wasn't quite Saigon circa the Vietnam war, but somehow the sentiment fitted. The bus station was bathed in an eerie pre-dawn light and the sky was dark and smoky, a spider web of free-ways twisted, barely visible, over head. It was like something out of Blade Runner.
Movie citations aside, why were we in bus at Kunming bus station at 4:00am in the morning? Rewind about a week. We left Lhasa early boxing day morning after a pretty ugly disagreement with a taxi driver. There was an issue with the price: apparently 5 Yuan isn't enough for a 2 minute drive. So we payed the (extortionate) 10 Yuan he was asking. This, however, still wasn't enough and we were treated to a further 5 minutes of abuse while we waited for the airport bus to leave. The worst part about it was the comment made by the official at the bus station: "I can't do anything, he's Chinese..." the implication being that were he Tibetan they could have turfed him out no problems. The whole incident left a sour taste in our mouths that, unfortunately, is somehow appropriate in China run Tibet.
The flight itself though was amazing. I had originally wanted to travel overland from Lhasa to Lijiang as the landscape where the Tibetan plateau descends into low land China is apparently breathtaking. Unfortunately, this would have taken about 2 weeks and cost about $2000 US Dollars, neither of which we had. From the air we did at least get a feel for what it would have been like: for as far as the eye could see there was nothing but rugged mountains and frozen lakes, very very cool.
Upon arriving in Lijiang we (true to form) spent the first day or two organising how we were going to get out of there and into Burma. We've learned the hard way that getting out of (or into) these places is sometimes difficult and time consuming - if you leave things to the last minute it will cost you. Again we'd originally planned on traveling overland from Lijiang down into Burma, however, after a bit of chasing around we decided it would be too costly - the overland permit costs around $200 for a 5 hour drive, all of which goes straight to the Myanmar government. For the same price we could fly from Kunming to Mandalay, save 2 or 3 days travel and also enter the country knowing we weren't directly funding the corrupt military junta which is the Myanmar government. This is one of the goals of the Burma trip - try to give as little to the government as possible - and it wouldn't have felt right to capitulate so early on.
After sorting this out (4 seats on a flight from Kunming to Mandalay sort of booked), the next morning we jumped on a bus bound for Tiger Leaping Gorge. The gorge is renowned for it's spectacular beauty thanks to the steepness of the gorge and the ruggedness of the surrounding mountains. We decided we'd spend at least 2 days hiking up and then down into the gorge. And we SMASHED it in record time, probably due to our super-human physique (thanks to elevator red-blood cell counts due to the previous 2 or 3 weeks at altitude) and all round ruggedness... Ok I'm exaggerating but we did make it most of the way through the two day trek the first day which was lucky as it gave us the whole next morning to do the walk down to the bottom of the gorge. All in all it was a great trek, the place really is spectacular, especially from the foot of the gorge.
After the trek we returned to Lijiang with 2 days in hand before new years - which we spent doing very very little. It was a pretty idle time that was well needed and was complemented by the fact that Lijiang is quite a scenic and a pleasant place to relax. It's pretty much the epitome of an ancient Chinese town: narrow canals, red lanterns at night and lot's of old wooden pagodas. Unfortunately there also a few "old wood" - logged from the old growth forests - pagodas too. It is a bit of a rampant tourist spot with the Chinese which detracts slightly, but not too much. In general it was good place to relax and wait for new years.
In fact our most pressing concern was a) find a venue for new years b) find ingredients for Long Island Ice Teas, our drink of choice and c) find some other people to spend the New Year with (James, Wooky and V are great, but you know, variety it the spice of life 'n all).
Luckily the day before new years we met some like minded travelers (4 cousins from various parts of london / the world) and found a likely venue - The Sexy Tractor. We were pretty much sold by the name, to add to this though, they advertised that you bring your own iPod and be your own DJ. Sold. As a final sweetener the Long island Ice Teas were cheap and the White Russians were OUT OF THIS WORLD. Sorry, bit too excited there (I was at the time too). Our fears that new years would be just another night with the four of us were laid to rest in a blaze of drunken stupor, helped largely by a game called Waterfalls which some of you may (or may now) be familiar with. Waterfalls also played a large part in us alienating many of the clientèle at the Prague Cafe (our NYE dinner location) - sorry about that.
And that was new years, the next day was suitably wasted at the above mentioned cafe: any place that let's you spend 5 hours relaxing over breakfast (and a subsequent lunch) gets my vote. Then it was onto our night bus and off to Kunming before our flight to Mandalay, which brings me back to where we started.
So now it's off to the Union of Myanmar a.k.a Burma. I really am not sure what to expect, but we've met a couple of people so far who've been there and everyone has raved about it. At the same time though, it is such a black box, you hear very little about what's actually going on there.
All in all though, I'm looking forward to it, it really is exciting to head somewhere this intriguing.
Sunday, December 23, 2007
First and foremostly I'd like to wish everyone a Merry Christmas and a Happy New Year! I hope everyone's enjoying the holiday and partaking in some excellent food and drink.
At the moment i'm sitting in an extremely large internet cafe (more like a hall actually) in Lhasa. It wasn't really what we expected to find here, but it's actually kind of a welcome change. So far today we've spent about 3 hours playing video games... not your standard christmas, however, after a large night of drinking and Christmas Eve cheer, it was exactly what we needed.
Actually, Christmas in Lhasa was some what of a strange experience. Our Christmas eve kicked off at about 8:00pm when we got a knock on our hotel door, who should it be? Santa Clause! who then proceeded to invite us up to the roof for drinks, courtesy of the hotel. This was pretty bizzare. We entered the room to find two long rows of tables, completely filled with locals and staff: and four empty seats at the end of the room waiting for us. It seemed like we were the guests of honor. Once we got over this, we actually had a fairly good time. They force fed us beer and presented us with gifts and white scraves and in the end we felt kind of bad when we had to leave.
The night then shifted into a bit of a blur, possibly due to drinking games played with some new irish friends: never a good idea. In the end a good night though, it was great to be somewhere we could relax and try and recreate a sense of home.
That was just last night though: allow me to rewind a bit and recap our adventures since we left Kathmandu:
After the pain of organising a tour, the drive here really wasn't too bad: on the contrary, it was absolutely amazing. Our first morning in Tibet began with a drive from the border up to the high pass of Tong-La. At 5200m, this is the highest any of us had been, the air was noticably thinner and it was bone achinhgly called: just before reaching the pass we realised that the condensation on the inside of the jeep's windows had turned to ice.... that's while the heater was on.
Once we got there though, the views from Tong-La where nothing short of amazing. Tibet seems to be a photographers paradise: Big bluesky + Mountains + Prayer flags meant that these are probably some of the best photos i've ever taken. Below are some of my favourites:
Prayer flags atop the pass.
The distant Himilayas (not sure what peak this is, but it's above 8000m apparently)
The wide open spaces of the Tibetan plateau.
From here we continued on to the town of Shigatse, via the town of Tingri with it's views of Everestand and Cho Oyu. Unfortunately this was a little disappionting. We had hoped to get to Base Camp that day, however, our "Guide" turned out to be an obstinate bastard who would not take us there unless we payed an extra 2000Yuan between the four of us. This pattern continued: the guy was all but useless, he was pretty unresponsive, offered little in information and would never deviate from the prescribed route. Oh yes, he was also a certifiable maniac. After narrowly avioding hitting a car which pulled in front of us, he lept from the vehicle and began chasing down the offending vehicle... with a 8inch knife drawn. Luckily this incident occured just before we arrived in Lhasa, so we only had a few more hours before we were rid of him for ever.
Back to the journey: at our guides suggestion (the only good one he had) we skipped the truck stop town of Lhatse and headed straight to Shigatse, the seat of the Panchen Lamas. The Panchens are the second in charge in Tibetan Buddhism and the source of some controversy. The latest reincarnation was original found by the Tibetan's, however, the child was immediately taken into Chinese custody and has not been seen since. Shortly after, the Chinese government announced that they had found their own (government sanctioned) reincarnation of the lama who is now cloistered in Beijing. The whole thing really stinks, but it also typifies China's approach when dealing with Tibet.
That aside, the Shigatse monastery is a really amazing place. We were the only tourist there among hundreds and hundreds of Tibetan pilgrims. It's great to see that the culture is still very alive inside these buildings, even if the towns surrounding them are now rampantly Chinese. We were allowed to explore most of the buildings including the library and study rooms which are in full use by the monks. We were also lucky to witness a large scale debate which took the form of around 50 monks arguing very animatedly in an outside courteyard. Very very cool.
From Shigatse we headed straight for Lhasa, which turns out to be a pretty modern town. Again, we had to spend a lot of time organising our onward travel and it wasn't until the third day that we actually got out to see the sites: namely the Potala and the Jarkhong. Once again I'll take a dig at the Chinese Government: In front of the Potala is one of the ugliest things i've seen, a massive Tienamen square style replica replete with Chinese flag and a statue dedicated to "the libteration of the Tibetan people". Give me a break, the only good thing is that they held back on putting in a 40ft statue of Mao.
Rant aside, the Potala and Jarkhong were both massively impressive buildings. The Potala due to it's sheer size and splendour and Jarkhong because it is the spiritual centre of Tibetan Buddhism. At the Jarkhong we became part of a massive push of pilgrims to try and get into the most sacred chapel within, pretty cool experience.
And so here we are. Tomorrow morning we fly out to Lijang in the south-western Chinese province of Yunan. This has a reputation of being one of the most beautiful places in China and is supposedly the inspirtation for the book Shangri-la. Looking forward to it.
After that we plan to head south west into Burma, political climate permiting, or otherwise into northern Laos. As a result internet may soon become scarce, so it might be a while before I update this again.
Once again, hope everyone had a great christmas and is looking forward to fun new year!
Friday, December 14, 2007
For various reason (some of the above) it's been a while since my last post. So in the interest of public health, I should warn you that this will be a long one.
In my last communique, I was recovering from a bout of illness and preparing for the journey up into the Himalayas. Luckily, the anti-boitics did there thing and I actually ended up quite enjoying our last night in India. We spent it at the International Music Ashram, something I can definitely recommend to anyone traveling to Varanasi. The place is small and low key, but the music was amazing. We spent about 40 minutes marveling at the supreme Tabla and Sitar skills of.... well I'm not sure really, but these two guys were amazing and it was really great to leave India on a high note.
I won't bore you with the details of journey north, not because it was a particularly painful, more that the memory has become a rather mundane blur and I'd rather leave it that way.
Our arrival in Pokhara however, was nothing short of spectacular. After the heavy, smog filled air of India, the fresh mountain air was great. The general feel was also different, the place is less crowded, there was nowhere near as many touts and you don't get hassled nearly as much. It really was a breath of fresh air.
As a result, we were quite happy to spend two days in a fairly relaxed state of mind while we prepared our selves for the upcoming trek. Our choice of trek was pretty much decided when a dutch friend of ours, Simone, mentioned there was a Dutch Barkery in a town called Tukuche. Once James heard this, there was no arguing: we were going to Tukuche.
So there we were, two day later departing Nyapul with our bags packed and our new guide, Surresh, leading the way. This was the beginning of the Jonsom Trek: a 10 day hike which wanders around the balk of the Annapurna range and up through the Kali Gandaki, "the worlds deepest valley" before emerging at the town of Muktinah high on (the beginning of) the Tibetan plateau.
I found the first day of the trek the most difficult. We actually climbed a fair way and it had been a long time since I'd exercised, so it was a bit of a struggle. The reward at the end though was well worth it. An amazing lodge, with hot showers and a spectacular view of Annapurna South. Absolutely breath taking.
As an interesting aside, on the first day we also had our first encounter with the Maoist Rebels. In general, the Maoist situation is pretty complicated and hard to understand, especially for someone from outside the country. In the past, they've done some pretty abhorrent things, but at the same time they do have a lot of genuine support and a lot of the reforms they suggest, such as abolishing the caste system and strengthening workers rights, are drastically needed. All along out trek it was pretty common topic of conversation and it was great to talk to various people, both Nepalese and ex patriots about their views on the rebellion.
Their fund raising methods still do leave a lot to be desired though: we were stopped and asked to pay a "compulsory fixed donation" which all foreigners traveling through the Annapurna region have to pay. After a bit of haggling and some philosophical and political debate we settled on a price of 1500 NRP for the four of us. In reality, we could probably have just walked away, they weren't armed and there were only 2 or 3 of them. Then again, this is still an armed insurgency and it's not a risk we wanted to take.
Anyway, back to the Trek:
The next two days were similarly amazing. We continued to climb up through the valleys and I was amazed by the constant change in landscape: from the heavily terraced and populated hills of the first day, through the Rhododendron forests and jungle of the second on into the amazing snow and high alpine forests of the third.
After three days walk, we finally reached Ghorepani, one of the highlights of the trip. We got up early the next morning to climb Poon Hill. This "hill" is actually about 3200m high, so is infact half again as high as anything we have in Australia... but it only qualifies for hill status over here and you understand why when you get to the top.
From here, you have a spectacular view of some of the greatest mountains in the world. On the left you have the Dhaulagiri range (around 8150m) and on the right you have the Annapurna massif, including Annapurna I at 8050m, in the distance Macchapucchare and Mansalu (another 8000m peak).
This ended the first part of Trek and to anyone thinking of doing the Jonsom trek I'll make this recommendation: The slight deviation (maybe 1 extra day) from Ghorepani to Tadapani and Ghandruk is WELL worth it. It provided for some amazing scenery which I just don't think you get if you head straight from Ghorepani down to Nyapul.
The next few days were a bit of an emotional, geographical and physical downer. Problems began with the bone aching 1700m decent into the town of Tatopani, at the bottom of the previously mentioned "deepest valley in the world": it sure felt like it. This took it’s toll on everyone, especially Wooky and V. Wooky's knee blew out about half way down and at about the same time Nick succumbed to some pretty horrific blisters.
We struggled on though and finally made it to Tatopani. After a quick refreshing bathe in the famous hot-springs we felt slightly more invigorated and decided to stop in for some drinks and a feed at the “Bob Marley” bar. Bad mistake. We indulged a little too much and ended up waking up at 10:00 the next morning (we were meant to meet the guide at 8:00am…) every one in pretty bad shape, especially Wooky.
End result was that after another average day of hiking, V and Wooky decided to call it quits and jumped into the jeep up to Jonsom, leaving James and I to soldier on. I’m not sure I envy them their choice as they ended up spending 4 days in Jonsom… not the most happening place in the world. In fact it’s more akin to an extremely cold and windy ghost town. It’s only attraction is an airport, which unfortunately doesn’t operate that often, due to the high winds and cold…
Anyway James and I stoically continued on our journey. We smashed through the next three days of hiking in near record time (for us anyway). Again, this section of the trek offered another twist in scenery as we ascended to the high altitude desert that forms the Tibetan Plateau.
We also ascended to what was arguably the high point of the trip for James: the Dutch Bakery in Tukuche. We had heard rumors of this bakery and in our minds it had become an oasis of warmth and good food. Luckily, it didn’t disappoint. The apple crumble at this place was absolutely amazing as was all the food.
At this point it is probably worth mentioning the conditions under which we were trekking, they were verging on luxury. Trekking the Jonsom trek really isn’t roughing it. We were pretty much spoiled, for example: hot showers weren’t a luxury, they were a must have.
From Tukuche we headed to Kagbenni, an interesting town bordering the Forbidden Kingdom of Mustang. This isn't a joke, it's actually a forbidden kingdom: you have to pay $700US just to get in. Kagbenni is also the home of Tea House called "Yak Donalds"... we don't recommend it. We'd overheard people talking about the amazing burgers and fries and this set some serious expectations. The idea of a juicy meat paddy on a soft white bread roll with some salad was almost too much to bare. Unfortunately (unlike the Dutch Bakery), Yak Donalds failed to live up to expectations in almost every respect. I won't go into detail except to say (like it's namesake) you should probably avoid it at all cost.
Finally, we made it to our ultimate destination, Muktinah. This was the highest point (3800m) and to go any further we would have had to ascend the Throng La pass which is seriously discouraged if your coming from the Muktinah side. To do so involves ascending from 3800 to about 5400m in a very short space (both distance and time), which is both difficult and asking for a severe attack of acute in sickness.
Up here it really felt like we were at the edge of civilization. It’s an extremely harsh environment, very cold, windy and dry. In a word, spectacular.
Finally after 9 days walking we (James and I) had made it. Fittingly, Nick and Wooks also caught a jeep up from Jonsom, so we were reunited before returning to Jonsom and preparing to fly back to Pokhara.
Unfortunately, the next morning there were only 3 places in the plane back, meaning James was left to idle away another day in Jonsom, before completing possible the most outrageous and significant feet of mountaineering seen in this part of the Himilayas: His epic trek from Jonsom to Beni in a single day. Why is this amazing? Well firstly, James and Surresh's flights the next morning were canceled due to bad weather and, not wanting to waste any time, they decided to start walking. And walk they did, Jonsom to Beni is about the same distance as our entire trek, around 9 days walking. With the help of 3 hours in a jeep, these men of steel managed to completed in but a single day. My hat goes off to them...
Histrionics aside, this was pretty impressive and also, pretty important. Our 10 days in the Himalayas chewed up a fair bit of time and had James been delayed further it may have seriously affected our onward plans.
So here we are in Kathmandu, ready to embark on the next step of our journey… Tibet. Unforuntately, due to some changes made by those bastards in the Chinese government, it is now even more prohibitively expensive to get there. The official line is that THE ONLY way to get into Tibet is to take a fixed 8 day tour costing $450US. Luckily, after much hunting around and haggling we found a tour group which was happy to take the 4 of us on a private 4 night tour for a mere $328US. Still more than we wanted to pay, but that's just the way it is.
And so that's where we are. Tomorrow morning we leave Kathmandu (which by the way is an extremely cool place) and head up into the mountains and across the plateau to the forbidden city of Lhasa.
Finally, I've actually managed to upload some photos to my web album:
http://picasaweb.google.com/healsJnr/Nepal
until next time...
Friday, November 30, 2007
Sunday, November 25, 2007
After nearly 30 hours of transit, I was feeling scattered (to say the least) when I arrived at midnight in Delhi, hence I was in no mood to batter / haggle / get generally ripped off. So it was lucky that i had a pre-arranged hotel pickup.
The next morning, after meeting up with James, Wookie, Nicki and Chris, we head out into the maelstrom which is Delhi. The scene which greeted me was as hectic and crazy as I had expected and was hoping for. Delhi is a crazy city, the shear mass of people here is overwhelming and it is a pretty unique experience.
And unfortunately, everyone here seems to want something from you, especially at the Hotel Ajunta (our current abode). I'm sort of used to being hassled by touts and I don't mind haggling over prices, but the lengths the guys at the hotel will go to is ridiculous. Every single price is inflated by at least 3 and it's impossible to ask about anything without being queried about your future travels plans and whether you would like to meet there friend who runs a very cheap travel agency.
Tomorrow morning (1:30am!) we are off to Agra to see the sunrise over the Taj Mahal before returning to Delhi to get an overnight sleeper to Varanasi.
One final thing: I don't know if this is normal, but yesteday we were indundated with people wanting to take a picture with/of us. This may have been because i had a cricket bat sticking out the back of back pack, but who knows.













.jpg)
.jpg)
.jpg)




