Thursday, 15 October 2009

Qwt in MacOSX

Last time since I posted, and it had nothing to do with this new post.
But here I am again.

Since I'm working on Qt C++ software development under my MacOSX 10.5 I'm having some configuration "affairs" with it, so here I write the first one.

Deployment of Qt application using Qwt for technical graphs...

Since I'd like to show some OFDM signal spectrums in my application I need to implement it with qwt.
Once I downloaded the qwt source from here, I copied it to my Developer folder and I started "qmaking".
So nice to see that all the .pro files are already created and you don't need anything but qmake for having the software ready...

so in my MacOSX terminal:

fernando-martins-macbook:bin martin$ cd /Developer/qwt-5.2.0/

fernando-martins-macbook:qwt-5.2.0 martin$ qmake -spec macx-g++

and the Makefile is created.

Inside the qwt-5.2.0/ folder there are some examples that can be easily open just following the same procedure.
But what a surprise when once they were build I could not be able to open them with this simple operation:

open bode.app

The libqwt.5.dylib was missing "somewhere" during the creation process of the app...

After installation of qwt, in my OS I could find the libraries in /usr/local/qwt-5.2.0/lib (you can check this path in qwtconfig.pri),
so it is only needed to add this folder to the DYLD_LIBRARY_PATH.

Remember: echo $DYLD_LIBRARY_PATH will show you the current value of the variable.

DYLD_LIBRARY_PATH= {The previous path}:/usr/local/qwt-5.2.0/lib (in my case)

The apps were created normally and I could run them to see how qwt works under Mac :)



Thursday, 20 August 2009

Asia 5th day. Summit of Mt Kinabalu and back to KK

It was true, the coldest part was about to arrive.
After a cold night even with blankets and heater working from 8pm, 2:30am arrived soon.
We had supper before climbing and we got ready for the summit.
Head-torches, wind-stoppers (thank you Chema for borrowing yours, it was crucial!), gloves and scarfs were all around but I wasn't so prepared for the cold.
I was wearing shorts, hat, windstopper and headtorch (totally needed). No gloves which I'd miss so much during the climbing.
We started pretty late, finding a big "traffic jam" in the first stage of wooden stairs. Here it was an easy climb but dark as hell since it was 3:15am.
After overcoming all those people our rhythm increased and we (the Australian guys Brett and Ashley and alex and me) felt better without stopping.
Once during the climb I saw myself alone since the group was split up, but I decided to continue in the granite (bare rock) following the rope that guided us. Sometimes that rope helped to climb, but since I hadn't gloves it was more a torture than help, so I decided to grab it the less times possible, trying to keep the hands warm.
Little stops of some seconds I made for having deep breaths, but I did not stop longer.
At 4:30am, aprox. I found myself alone, with no clue of anyone else above me, but I continued following the rope willing to find something new and even more exciting than being alone at 3800m high...
[Video following the rope]
Some steps further the sign of Low's peak 4095.2m high was standing in front of me illuminated with my torch and admired by me.
[Picture of the top]
[Video of the top]
I was the first in reaching the summit, and the feeling was actually great!
No one was higher than me in between the Himalaya and Papua New guinea in that moment.
Darkness, silence and freezing wind were my only company in that moment. They were a good company from 5:10am, when I reached the top, until four minutes later, When I started to feel cold and to miss people around...
Once the body stopped climbing, the heart rate decreased and the temperature of the body did so, so I started to shiver and to look for a place safe against the wind.
20 after I arrived, a group of guys also arrived suffering also from cold temperature. I tried to warm up eating an energy bar but I don't know if it worked so far...

At 5:40am Alex arrived, we took the picture of both of us on the top
[Picture of both of us on the summit]
and we decided to clomb down just after the Australian guys. The view was not good at all due to the clouds and fog. We noticed that the sunrise had already taken place but we couldn't see the sun at all...
I have to say that we were lucky because on the previous day people couldn't reach the peak because of the weather conditions...

Climbing down, time to warm up again and to take some pictures of the views that eventually the weather allowed us.
[Pics Mt Kinabalu climbing down]

Another breafast was waiting for us at 7am in Laban Rata, the place where we slept the previous night.
[Pic group of 4]
The food there was great, we paid it, but I really did not expect so much food available, so I enjoyed it as I never did!! :)
[Pic of food]

After 3 hours of climbing down in a really comfortable step, we finally reached the place where the bus from Kota Kinabalu left us the previous day, and our legs were claiming for some relax, sincerely deserved relax. We ate for the last time at 1pm and the 2 great Australian guys offered us to be driven to KK, that was a very big relief.
Thanks again guys!! Hope our lives are coming across again in the future!

The trip was 1:30hours and most of the time I was sleeping, really destroyed...
Once arrived, after some Singaporean beers in the entrance of their hotel, we said goodbye to each other, they had a flight in a few hours, and we finally took a look around the city centre, seeing the Filipino market and some jetties before arriving Kuni's house.
Tha swimming pool was the first place where we thought to go after leaving our backpacks at home. Some relaxing movements helped me to feel a bit less tired and helped also my muscles to recover sooner.
After this relaxing bath, we knew via SMS that we were having dinner at Gon's place (The CSurfer scuba diving instructor). She invited us to go and we did not hesitate!
But of course we slept 1 hour and a half before going, our bodies really needed it...
A friend of Gon called Rita picked us up , as well as the Polish guy and a new CSurfer from Finland. We stopped in a Seven Eleven to buy some beers (San Miguel brewed in Phillipines) before going to Gon's place where a stunning dinner was waiting for us. Fish, chicken, rice, dumplings, salad and cakes were the menu and our stomachs were really happy about that. After a very long day this was a total pleasure.
A nice chat stayed together with us during the whole dinner and even some vodka shots showed up in the end of the dinner.

Party in KK
It was Saturday night, so the party in KK was starting engines when we finished dinner. The place where we went was called "bed" (Best Entertainment Destination). We kept going until 2:30am (24h since we woke up in Laban Rata...) when we went home to have some sleep before the next day, when the water life in Tamah Abdul Ramah islands was waiting for us...

Wrote during trip from KK to Singapore by tigerairways.
2:00pm
3rd August 2009
On the plane.




http://en.wikipedia.org/wiki/Mount_Kinabalu

Wednesday, 19 August 2009

Asia 4th day. Climbing up Mt. Kinabalu

The day started at 5:45 when my alarm clock started sounding from the mobile phone.
Why so early? Because our Japanese friend and host told us to leave the apartment at 7:00am and we really wanted to eat properly before climbing and have some time just not to rush.

3 fried eggs with cheese and roasted bread was the main dish, but 2 small bananas and orange juice were also in the menu.
After this and upload the last part of the yesterday's blog post, we got ready and Kuni (our Japanese friend) gave us a lift to the place where the buses depart to Kinabalu park (Ranau direction).
We were 8 people going to KP and one local guy going to Ranau on the bus. Almost 2 hours was the time spent from KK to KP.
after arriving we registered ourselves and paid the entrance, guide and bus transit in between the headquarters in KP and the path's starting point.
I have to say that Kuni helped us a lot booking in advance the lodging place in Laban rata heated dorm (3500m high). And I also have to say that it is not so cheap to climb this peak.
Around RM1000 was the complete compulsory price for 2 people. (around 200€)
Thanks Kuni, without you it had been even more and who knows if we would have heated dorm! ;)

Climbing up
The first part until Laban Rata, where we were spending one night, took us 3 hours, doing it in a very good time, and also rhythm!
It was 6km distance, so 2km/h was the speed. Pretty fast for the conditions of the path.
Big steps, some stones and windy parts. A stop of 10 mins was really needed to eat some energy bars, bananas and drinking some water to keep ourselves hydrated.
We really thought it was not so hard as it was, and once arrived we realised what we'd done...
But in the end, once sitting, eating rice and drinking Sabah tea, our strength cam back again and our mood was recovered.
During the afternoon we did nothing but eating, taking some pictures outside[Picture Laban rata] while the widn was freezing, trying to dry some sweated clothes outside the hut (with the help of some stones), playing some chess [Picture chess] and meeting new people from different nationalities as Australians, Germans, Italians, Malays and even Spanish ones.

Two Aussies from Tasmania were our roommates for that night. We shared a nice chat and some experiences, as well as some advices about Malaysia and our close next steps in the trip.
I really enjoyed your company guys! Nice to meet you Brett and Ashley!

Now I write these lines from bed as usual having my head-torch switched on and about to sleep at 20:30 because at 2:30 am the trail to the summit wants us active again!

The steepest, windiest, and coldest part is waiting for us, so I'll tell you in the next post how it looked like.
Good evening-night!

Mt Kinabalu
Laban Rata
20:30
31st July 2009

Thursday, 30 July 2009

Asia, 3rd day. 30th July 2009. Zoo and local people

7:30 in the morning came really soon. After arranging a scuba diving day with Gon (our new CSfer friend and also diving instructor)we got ready for the diving day starting at 8:15 in our place when Gon came to pick us up.The day was really raiby and it did not seem it was changing into better conditions,so the people from the diving company adviced us to do it on Sunday instead, when the weather could be better and we'd see something more down in the water.
Without alternative plan we didn't know what to do. We waited on board with Gon and the captain. As it was still raining, the captain proposed to go toSabah's zoo.
He didn't speak proper English, but Gon was translator in between us.
So, as the zoo seemed to be the best (and only) alternative to dive, we accepted, we took our cameras and Gon drove us to the zoo,kind of more than 15 mins by car from Kota Kinabalu.
I know many of you are saying why we are going to the zoo when we have Sabakan or Selangakan, with a very rich natural wildlife, and it is true, we have no excuse possible,but it was really unexpected and we preferred to go somewhere than to lose one day doing nothing.
By the way, going to those natural paradises I told you would take more than 6 hours which we really hadn't.
Finally, in the zoo,with not so many people, we bought the ticket for RM20, while for Malaysian people was RM10.
As written, not so many people were around, so it was almost everything clear to see the animals in a good way.
Orang-utan, Malaysian tiger, crocodiles and many other species of monkeys were there.
After zoo with the captain, Gon and Alex, we went to a little town. A very Malaysian place with a lot of places to eat for a good price. I took rice with fish and curry, actually really good.
I really felt into the Malaysian society and it was one of the best experiences in there at the moment. People was nice and kind, always with a smile prepared for you.
The next step of the day was a daily market where you could buy everything needed for eating. Lots of vegetables, fruits and agricultural products.
One of the things that astonished me were the silk worms and squirrels for eating.
The first ones were alive and moving, really disgusting for a European taste like mine. I guess I would need more time to get used to it...
In the next "shop" we bought some bamboo, onions and tuna for frying it as dinner.
1kg tuna=RM12 (2.5€)
Really cheap and really good quality!

Before put ourselves towards home, we stopped in Captain's home, where his wife and many children were around, without so much, but everything they need to be happy...
They seemed to like us since they followed us while leaving by car until we left the town. I have to say that those children really inspired me and I'll keep a really good memory from them! Terimah Kasi! (Thanks in Malay)

No much time later were we in Kuni's place, having a bath in the swimming pool, relaxing just before of having (finally) a shower, to prepare the bamboo curry, some tuna and rice.
Next day Mt. Kinabalu was expecting us, so better sleep...

While writing these lines laying in bed, the Tibetan music was sounding and Alex was already Knocked out...

So good night and I hope you liked it.

Asia 2nd day. Kota Kinabalu arrival

Yes, after the good Asian dinner, we tried to sleep on the floor of the airport and we also failed to do so.Maybe because it was afternoon for our bodies.After some messages to the family and friends through free WIFI connection in the airport, we decided to eat something regarding at our senseless non sleeping on the pure floor of the airport.It was 4am and the airport seemed so alive at that time.
Not so much more time we had to do in KLIA LCCT until our flight at 6:50 was taking off.Walk around, buying some water and sweets and chat abit are some examples of what we've doneto get some benefit of this useless period of time...
Before departing to KK, there was a big storm and it was raining like hell!The storm was much better from the inside with our new tasty juices we bought.
I was really lucky with my bamboo one, but Alex wasn't with a different one which was really awful...
Since we were really tired and the plane to KK was our last step to reach our CS friend Kuni, the idea of sleeping was more than accepted!What a surprise when all the Asian people fell asleep before us, even before the taking off, and even without jet lag!

Once arrived to Kota Kinabalu, in Borneo island,we were thinking that after more than 2 days of travelling we were done.But buses weren't so often, taxis were kind of expensive and our language skills on the island were not enough to act like local people...Luckily, to women saw us a bit lost asking for a lift to a bus driver who was with an organised trip.They offered us a lift to the centre and we accepted without hesitation.

They were working for an agency (tropicalholidaysparadise.com) and they seemed reliable enough to accept the invitation. (Mum, don't worry, I don't accept every proposition I have ;))They drove us to our friend's job, giving us some advices and also a good chat.Thanks for that!
Once with Kuni, our Japanese CouchSurfing.org host in Kota Kinabalu Grand Ville, he took us home, prepared our bed and introduced 2 other couchsurfers from Malaysia (Kuala Lumpur) and our beloved Poland, more concretely Warsaw.

Afterwards we'd seen ourselves with power enough to go to the centre and sightsee a bit, without expecting that our bodieswould not fight against jet lag for much longer...
We ate closeby Kuni's house for RM5 (1eur=4.6RM aprox.) and started to sightseeing the Mosque where we had to cover our knees abnd wash hands and feet,the Sikh temple, where we had to cover our head as the guy told us.They were 2 of the most important places to visit in KK along with the Sabah museum where our bodies said stop after walk inside...

We would have loved to reach the centre, but with such a sun an tireness, we stopped in the first market we found.We bought some shower utilities, some food for the "tortilla de patata" and breakfasts, two hats and a Malaysian SIM card to use it with my mobile phone.
No more time to waste since we wanted to rest before our meeting in Kuni's place with Gon,another CS friend and also scuba divering instructor.

Coming back home, a heavy rain cought us and we had to make some stops to preserve ourselves dry...After all this tiring day (starting at 3am in Kuala Lumpur International Airport)we had a great Japanese-Malaysian-Polish-Canadian-Spanish dinner.Another CSfer from Canada, was living also in Kuni's place and he cooked some Indian food.We did our speciality "Tortilla de patata" and there was some rice made by Kuni (Rice couldn left inand Asian house!)
After some chat ans some shots of a special local drink, the bed was calling us really loudly.And here I am, laying in bed writing these lines. In the meantime Alex tries to sleep after writing his summary of the day.
My eyes are really heavy and my body prays for some sleep.
Good night to everyone!

P.S. We had no shower during the whole day. A problem with the water pipes allowed us to have a very sticky skin.

Written after dinner laying in bed
30th July 2009
Kota Kinabalu 00:30

Asia, 1st day Asturias-London-Kuala Lumpur

After a great sleeping recovering from 3 days in the SU Oviedo I woka up at 9am before the filght at 15:00 to London Stansted.
I packed and ate before the long trip and my grandfather picked me up at home at 13:00and he brought me to the Asturias airport.
Alex arrived at the same time as me and we started queing.The flight London was nothing special and everything was expected.
The arrival was at 15:50 local time and our next flight to Kuala Lumpur was at 1:25, so, as you all know, we had to wait in the airportuntil that time.Patience, some food prepared by my mother, some ice cream and some reading were our weapons to kill the long period of timethat was among us and the next flight to the Southeast Asia.
The plane which was about to welcome us, was completely different talking about dimension.It was an Airbus 330-300 with 4 engines and 3 rows of people. (The rows in the sides were with 2 rows and the one in the middle was with 4)
This was actually a tough flight.11 since we took offand 6 of them were for sleeping
We had just 2 sandwiches left and no water.Being on a plane it seems normal that we could buy some water and food to the cabin crew, but they told us that we needed Ameriacan dollars, Sterlings or Ringgits from Malaysia if we'd like to put some food in our starving mouths...So, no water, food or anything similar during 11 hours of flight.It was great!
But finally we arrived to KL (like they say) at 20:45, always local time, completely at night and with 29 degrees C and a horrible humidity.We withdrawed some money and we looked for a place to drink and eat.While going through the airport we saw some people in couples getting off from a bus (seems normal), but they were with handcuffs.
We finally got a place where we ate chicken, fryied egg followed by ice creams (2 in my case), bedore going to find a place to sleep in the airport, waiting for our next flight at 6:50 to Kota Kinabalu,where our CS friend was was waiting for us.
Written after dinner and before to sleep in the dinner place.
23:00
28th July 2009
Kuala Lumpur International Airport (Low Cost Carrier Terminal)

Malaysia, Singapore and Thaliand

Yes, now I'm in the Southeastern part of Asia.
I'll try to keep you updated at the same time I'm writting a diary that will remind me all the things that I'm living right now in this part of the world, where when for you is day for me is night, for you is cold (maybe) for me is hot and for you is normal summer for me is not.

I'll write every day in my notebook, not knowing if I'll be able to have a laptop and publish it in here, but I'll try it as much as I can...

Well, no more introduction and let's start the story of my furthest trip until the moment...