Archive for June, 2007

The bad and ugly GOTO

In school you learn to never ever use GOTO in your programs, since in real life things turn out to be much different then in school it’s not quite practicable. I was looking for GOTO in Bash and came across this statement

Quote:
Originally Posted by gnashley
Not a good idea to use GOTO in BASH. Try using a while statement instead, or use functions.

And this was the reply

Go HUG a tree or shag a dolphin or something.

Computers WORK in “GOTO”s. Whiles, procedures and case structures are mental masturbation.

They’re all compiled to a bunch of goto’s anyway.

Technorati Tags: ,

Top 10 Women Magnets by Forbes

The Forbes magazine have made up such a great number of various lists….from “Most expensive car of the year” to ridiculous “Most Sexy Cars

And here you are - another masterpiece - a list of most attractive cars for women. The list is made up of 10 vehicles that drive girls crazy:
1. The British cute boy Aston Martin DB9 works like a real magnet for women. Even if you haven’t shaved for a few weeks and you smell awfully, driving Aston Martin DB9 will make you look a real James Bond.

aston_martin_db9.jpg

2. Bentley Continental GT - 3 magic words, which are able to drive women to…God knows what! From fainting to marrying…you, of course.

bentley-continental-gt.jpg

3. This car is justifiably on the list. All the women are attracted to huge Cadillac Escalade. The only thing that is disappointing that there are only 7 seats inside the car.

cadillac_escalade.gif

4. Who said that women like only expensive sedans and sport cars?! It turned out that even a wagon can be a magnet for them. Of course, if it is called Dodge Magnum SRT8 and it is equipped with V8 with 425 hp.

dodge_magnum_srt8.jpg

5. The girls like when it is fast! The fact is proved by their desire for Ferrari, Ferrari 612 Scaglietti in particular.

ferrari_612_scaglietti.jpg

6. If you happen to drive or own Lamborghini Gallardo, don’t forget to clean the car from adhered girls.

lamborghini_gallardo.jpg

7. “Let’s take a ride, beauty!” - this phrase sounds more effective when you are driving Mercedes-Benz SL 65 AMG.

mercedes-benz_sl_65_amg.jpg

8. The word “Porsche” for a modern woman is situated somewhere between Gucci and Dolce & Gabbana. Don’t be surprised at extreme attention to you when driving delicious Porsche 911 Turbo Coupe

porsche_911_turbo.jpg

9. The second SUV on the list is Range Rover Sport - definitely makes the driver look more masculine.

range_rover_sport.jpg

10. It sounds incredible but a “green” Toyota Prius and its driver attract women as well. But if you look deeper, if a man takes care about trees, rabbits, bears and other animals, he is so “cute”.

toyota_prius_hybrid.jpg

source: http://www.lemonlawvehicle.com/wordpress/2007/06/21/3060.html 

Krapfenwaldlbad - Swinming with a great view over vienna

Where can you go cool down when it’s hot in Vienna? Well there are a lot of places, but one that you should visit is Krapfenwaldlbad The swimming pools are not really great, but the view will compensate for that :) Anyway, I wouldn’t go to often there since it’s to crowded in the small pool. But look at the photos and decide for your self.
Krapfenwaldlbad KrapfenwaldlbadKrapfenwaldlbad

Technorati Tags: ,

Weather gone crazy

Yesterday we had “a bit” of a thunderstorm in Vienna. Winds up do 120km/h killed 2 people and ripped trees apart within some minutes. Luckily I came home just as the wind started it’s action.

read more in derStandard (Austrian newspaper, also with a small video)

More blogs on this issue:

http://spanring.eu/blog/2007/06/22/stormy-bbq/

http://blog.myspace.com/index.cfm?fuseaction=blog…

Technorati Tags:

How do you feel in a Taxi in China?

Somehow like this, only that you don’t have the guy explaining the chimp where to go :)

Photos from Shanghai

I just uploaded the first photos made in Shanghai, there are still a lot to come but I didn’t finish sorting out all photos yet. It’s pretty hot here and I just can’t get anything done in this heat. Anyway, here are the photos sorry about some having strange colors, but I was behind a window and used my CirPol filter.
There are only few photos of us, most the ones I uploaded now where from high above to give an idea how huge this city is and how many huge roads there are in this city.
But you will also notice the pollution which is visible on the Photos.

shanghai_1-002.jpgshanghai_1-038.jpgshanghai_1-055.jpg

Technorati Tags: , ,

HowTo install openfire (former wildfire) on Debian

Note: This has been done on a Debian Sarge installation but it should work on Etch also, I will report if it does once I have done it, sometime this week.
I found this post on howtoforge and it helped me alot.

First you need Java JRE, lucky me I had a deb package on my server from some other tests so I didn’t need to create a new JRE deb package.
Follow this howto to create a debian package so you can install JRE the debian way. Once you installed the JRE you can continue with openfire.

Download openfire from http://www.igniterealtime.org/downloads/index.jsp
download the tgz file, the rpm installation with alien didn’t work for me on a AMD64, will probably work for i386.
unpack it move it to /opt

tar -xzvf openfire_3_0_0.tar.gz
mv openfire /opt

You don’t need to install any mysql java connector as mentioned on howtoforge, openfire now comes with everything you need.
Create a new database and create the tables with the provided file.
for example: mysql -u -p < /opt/openfire/resources/database/openfire_mysql.sql

Make sure openfire.xml is writeable:
# chmod 777 /opt/openfire/conf/openfire.xml

Now setup openfire over the webinterface: http://localhost:9090 or http://127.0.0.1:9090
or use whatever server it is running on instead of localhost.

Note: if you have something like this in your /etc/hosts file

127.0.0.1 foobar localhost localhost.localdomain

it won't work since it will try to connect with dbuser@foobar instead of dbuser@localhost which won't work!
change you /etc/hosts so that localhost is first!

Technorati Tags: , , , ,

Back in Shanghai

Finally we are back in Shanghai.
We left Beijing yesterday, again with the night train. The only problem we had this time was finding the train. The taxidriver didn’t speak a word in english but we managed to tell him that we want to get to the train station and arrived pretty quick. Now it was time to enter the station, there are 3 doors open and about 10 dozens of people pushing and trying to get in. After the security check, which from my point of view is useless since I entered with a small bag without putting it trough the X-Ray, we where in the main hall. Huge panels showing all trains and of course everything in chinese. But we saw Z13, the name of the train, and 2 … oh yes, the titles where written in english also, so 2 was for the waiting hall. Here the problems started, there was a waiting hall 2 just right near the entrance and one, also number 2, on the upper floor. I asked someone and she told me the one I have to go to is right above the one near the entrance, so we went up, in to the waiting hall where again I asked, and got a completely different answer and finally at the information counter I got again a different answer. I started looking myself and found the correct platform and none of the answers I got from the people working there where correct.
Train was leaving at 19:38 and the doors for the platform was opened at 19:00. There are two doors, one on the left, one on the right. One would think it could be quite useful to open both since there where so many people, but don’t forget … you are in China! :) so let the people wait at both and then open just one and look at them fight, could be some weird hobby of the people working at the train station.
How can I explain these few minutes it took to pass the door, let’s say there is a bomb in the train station and everyone just HAS to squeeze trough this door to survive the explosion, this is exactly the same thing while passing the doors to get to the platform.
There was enough time to get twice as many people in and out again without pushing and fighting, but once again don’t forget you are in China!
All these little things make you wish to get back home and tomorrow, finally, it’s bye bye China, hello Austria … There is no place like 127.0.0.1 …
Anyway … back to the trip. The Z trains are one if not even THE best trains I have ever been on. There are so silent, you feel nothing when the train leaves, except Chinese people spitting, so this is from my point of view the most comfortable way to travel. The beds are indeed a bit hard but we could sleep very very good ….
Ok enough of that, time to go shopping and finish our stuff for tomorrow.

Technorati Tags: ,

Arrived in Beijing

Today morning we arrived in Beijing. We left the Beijing Railway Station at about 07:30 and it already had 25deg. Celsius. The first thing we noticed was the small sun, but I will come back later to this. The train ride was quite smooth, the only small problem we had was that our tickets where in different compartments, but this was solved quite fast after the lady in one compartment moved to the other one. So if you plan to go with the Z class train from Shanghai to Beijing, ask extra if you want to be in the same compartment. There are 4 beds in each compartment and they are numbered from one upwards (Compartment 1: 1,2,3,4; Compartment 2: 5,6,7,8 and so on).
OK now that we finally arrived in Beijing, it was time to get to the hotel. We had the hotel name and the address written in Chinese, so nothing easier than this … wrong! The taxi driver had no idea where the hotel was and also had no map. Luckily we had the phone number of the hotel and the driver called the hotel, but … here is the next bad thing, the phone was busy and this for over half an hour where we went in circles. Anyway, we finally got there, to the Beijing Yandu Jinjie Hotel, well actually this is not quite true, I forgot a small part. The taxi driver told us he can not enter that part of the street but we can walk there. So of we went, with the quite heavy backpack (Laptop, Camcorder and 2 Digicams in it, batteries and all that stuff.) and the not so easy suitcase, lucky me that it has at least wheels. So of we went looking for number 241 … or a sign saying something with hotel. We arrived at the end of the street, took us about 15 minutes for this walk, and still no hotel. We asked someone and he pointed in the opposite direction, so once again a 15 minute walk in the other direction and now, finally we really found the hotel. There is absolutely no sign saying there is a hotel, at least not on the outside, only in the inside of the hotel, how useful.
We checked in, it took some time, a whole lot of stupid paperwork, fiddling around with my Austrian passport to find out from which country it is since it’s written in German on it (Austria=Österreich in German) and then asking some stupid question about the visa, no idea what they wanted. We arrived in our wonderful room (I am ironic!), it has a window … that opens to the corridor of the hotel, yes, a window that opens inside the hotel. No way to get any fresh air in the room, but probably this is not really a bad thing in Beijing. Anyway you can not expect much for about 18 Euros a night. Although I must say this is one of the worst hotels I have ever been in. So if you are willing to spend a bit more, you should search for a better hotel although I can’t really say how the other hotels are.
Of we went with the heavy backpack towards the Forbidden City, we walked a bit, since it wasn’t that far away from the hotel, this is probably the best thing about the hotel. On the way there there where some people asking in English where we are from and also a girl that chatted with us a bit to train her English. We then finally arrived at the Forbidden city (look for Palace museum on the map! Our map showed no sign of the Forbidden city) It was 60 RMB entrance (aprox 6 Euro) and 40 RMB for the electronic tour guide, we took two guides, one in Romanian, yes they really have that, and one in English. Well I won’t start telling stories about the forbidden city, there is much more accurate information about it on the internet. A thing that really surprised me was that there was a Starbucks in the forbidden city, well it was not signed as “Starbucks”, the indicators showed only “Coffee Bar” but they served in Starbucks cups and where wearing Starbucks outfit.
After several hours and many photos we decided to go back. Now we really realized how bad the pollution in Beijing is. We realized that we had no cloud on the sky, but still no sunshine! The sun is blocked by the pollution. The sun appears to be so small, much smaller then one would see a full moon in Europe! This is incredible. White socks turned gray after only a few hours. If you look straight ahead, you will not be able to see further then two KM! I really don’t want to know how my lungs look like inside.
We went one station with the Beijing Subway and arrived a mall where we stopped at a Starbucks for some coffee, I’m don’t really like Starbucks, but since Chinese don’t really drink coffee, it’s a bit hard to find some good coffee. Starbucks has got quite European prices, one coffee, two orange juice and two muffins where 78 RMB (aprox 8 Euro). Just to compare it a bit, if you go to a little restaurant in Shanghai where they make fresh noodles, and other very good dishes you could order for 10 People and still not reach this price.
We paid for 5 People, noodles, rice + all kind of meats, 37 RMB, 3.7 Euro … for 5 persons and there was still enough food left because it was too much. The contrast is huge, you find very very cheap stuff here but also things with european prices. A lot of old habits, traditions and thinks about respect, but at the same time you find lack of respect, good manners and bad habits, but this is something I plan to write in a separate blog.
Time to leave this bunker called hotel and walk a bit more in the smog to kill our lungs.

Technorati Tags: ,

Preparing for Beijing

Today we will go by train from Shanghai to Beijing. A almost 12 hour ride in a Chinese first class sleeping compartment, I am curios if the images found on the net about the Z class trains really match to the reality. Anyway it doesn’t really matter, what matters is that we arrive in Beijing and can see all the great things, probably the greatest things you can see in China. The Great wall and the Forbidden City. I think you have wasted your life, if you didn’t see the great wall!
Fullview-Greatwall01
I didn’t write much about the previous things visited in China, but for the people that understand Romanian, here the travel report :)
Hangzhou
Xitang - still to come, my sweetest is still writing that blog :)
Until today (first week) I made about 900 photos and probably in Beijing I will do 900 more :)

Technorati Tags: , ,

Next Page »