Steven Gordon's Home
Submitted by Steve on Sat, 14/01/2006 - 12:49pm![]() |
Welcome to my home page! I am currently living in Pathumthani, Thailand, working as an Assistant Professor in Sirindhorn International Institute of Technology, Thammasat University. Here you can find information about:
- My research and teaching activities in the area of Telecommunications, the Internet and Computer Science at Thammasat Uni.
- Some personal information about me including photos and articles on living in Pathumthani (part of greater Bangkok), diaries from past holidays in Africa, South East Asia and Canada, recipes and some computing stuff
Feel free to contact me if you have any questions.
Mostly Unix
Submitted by Steve on Wed, 27/01/2010 - 11:39amIts always nice to see and deal with other people using Unix-based operating systems. If a student comes to me for help with a software problem, although I'll try to help no matter what OS, I am much more interested in spending time with them if they are using a Unix-based OS (Ubuntu, MacOS, etc). This is mainly because that is what I know best. Of recent, more students have Ubuntu installed, either as dual-boot or in a virtual machine, on their personal laptops. And they are starting to learn that the Windows GUI way is not the only way. I am encouraging the further exploration of Linux in my networking lab (ITS332) where 90% of the tasks are completed on the command line in Ubuntu (the other 10% using Wireshark in Ubuntu). In other courses, although I don't require the students to use any specific operating system, I demonstrate how easy it is to complete networking tasks in Unix-based OSes, such as measure the throughput of TCP in a network with varying packet loss rates (three command line operations using iperf and tc).
One of the local Unix gurus at SIIT is Yoichi. As well as doing his research, he has been active in labs and teaching introductory computing to SIIT/Thammasat students. He has started to blog about some of the simple, yet very powerful things that can be done via the command line in Ubuntu. Yoichi and other teaching assistants and graduate students are spreading the word in SIIT that Windows is not the only operating system available. And their efforts are starting to show as more students are coming to me for help on a network or programming assignment with their laptop booted into Ubuntu.
Running CPN Tools Simulator on a Remote Host
Submitted by Steve on Wed, 27/01/2010 - 11:37amCPN Tools is a popular software application for creating, simulating and analysing Coloured Petri Nets. I've used it occasionally over the past 3 or 4 years, and also used its predecessor, Design/CPN, extensively during my PhD. There has always been a Linux and Windows version of CPN Tools, however the GUI in the Linux version has some bugs, and the developers have decided to concentrate only on the Windows GUI for future releases. Thats annoying for me, however all is not lost as the simulator process of CPN Tools (for simulations and state space analysis) will still run in Linux. That is, the GUI can run on one host, and it communicates via TCP/IP sockets to the simulator on another host.
With the current external version (2.2.0) I had trouble setting up the remote simulator, but after trying with the latest internal version (2.3.5) I worked it out. There are some instructions spread across different posts in the Support Maillist, but for reference I give the precise commands I used here. The instructions are for running both the GUI and simulator under Linux, but can be modified for any combination of Windows and Linux. It turns out the version of CPN Tools didn't make any difference - these instructions will work for both versions 2.2.0 and 2.3.5. (2.3.5 also provides an option in the GUI to set the remote simulator, but I didn't use that).
Install CPN Tools on both hosts, in the directory /home/user/CPNTools/. On the host that will run the simulator with example IP address 10.10.10.1, change into the install directory and run:
./cpnsim/cpnmld 7001 cpnsim/run.x86-linux
7001 is the example port number the simulator will listen on. You may choose another value (so long as it is not in use by another application. If you wanted to run the simulator under Windows, then replace run.x86-linux with run.x86-win32.exe (and of course use backslash instead of forward slash).
On the host that will run the GUI with example IP address 10.10.10.2, change into the install directory and run:
./cpntools -remote -image cpnsim/cpn.ML.x86-linux -port 7001 -host 10.10.10.1
Of course set the host IP address to the actual IP address of your simulator host and use the appropriate port number.
On the GUI host you should see output such as:
INFO: Using remote simulator (UNIX)
and the CPN Tools Gui should start. You can now open a CPN file. Once opened, on the simulator host you should see output such as:
Accepted connection from 10.10.10.2
login = cpn2000
path = ./
User login
Starting new session for user cpnsim/cpn.ML.x86-linux in ./
Starting new session
Child spawned with pid = 24935
Changing current path to ./
Executing: cpnsim/run.x86-linux @SMLload=cpnsim/cpn.ML.x86-linux @SMLcmdname=cpnsim/cpn.ML.x86-linux
GC #0.0.0.0.1.6: (0 ms)
GC ...
and the GC output will continue as the simulator checks the syntax.
This looks, and is easy. However it took me several hours to get it working. When opening a net I would get an error in the GUI: a red popup box saying something like "Could not start the simulator. You will not be able to simulate the net". It turned out my most significant problem was the permissions of my install of CPNTools on the simulator. All files were owned by the normal user except cpn.ML.x86-linux which was owned by, and only had read permissions for root. After changing the ownership/permissions of this file to be the same as all others, everything worked. I'm not sure what lead to this situation, but hopefully now others will not make the same time-wasting mistake as me.
New Years Eve 2009
Submitted by Steve on Sat, 09/01/2010 - 4:21pmNew Years Eve 2009 was spent around Wan's family home in the north-east. We left Bangkok about 2am on Tuesday 29 December with the intention of avoiding the traffic jams seen last year. It worked - there was almost no traffic, even less than normal. It took 6 hours to drive to her home, which is midway between Chumphae in Khon Khaen and Phu Kradeung in Loei (normally it takes about 7 hours, although we didn't stop for food so much this time).
Apart from relaxing and catching up with family and friends (Ann, Wan's sister, and her husband Simon were also there) we had a few day trips to: Nam Nao National Park in Petchabun, a local mountain, Phu Pa Man, and near Phu Luang in Loei. As always, a lot of good food and a few beers. New years eve involved a party with a lot of family attending, followed by some late night dancing at a street party. All good fun.
The trip home on Sunday was not too bad. It took 9 hours, which was probably 1 or 2 hours less than it could have been because we took a back route to Saraburi, bypassing the busy Khorat to Saraburi road.
Check out some photos.
CABINN Hotel in Arhus
Submitted by Steve on Sun, 25/10/2009 - 6:00pmThe CABINN Hotel was recommended to participants of the CPN Workshop. It is part of a chain of 6 or 7 CABINNs across Denmark. They have the aim of the providing cheap but comfortable accommodation near the centre of the city. The tradeoff is the room sizes. They follow the layout of cabins in cruise ships; small and with bunk-beds.
The hotel is about 10 minutes walk, straight along the main shopping mall, from the Arhus central station (where trains and the airport bus stop). The area between central station and the hotel is the main (only?) area for shopping, pubs, restaurants and night-life in Arhus. So the location of the hotel is great.
I arrived at 1pm, and despite the hotel web site saying checkin was between 3pm and 6pm, I was immediately given a room. As expected, it was small. There was a single bed, and a bunk-bed above it. There was a desk, small TV, electric kettle and small bathroom containing toilet, shower and sink. There were 3 or 4 coat hangars and a couple of shelves to store clothes. The room size was not a problem for me. However if there were two of you with full size suitcases you probably would find it too small. Of course there are a few larger rooms at the hotel.
Despite the small room sizes, the rest of the hotel is quite good. The lobby is large with a couple of sofas, and then there is a TV lounge with 5 sets of tables and chairs and a LCD TV. On the 4th floor is the breakfast room which was great. Each morning there were fresh loafs of bread, bread rolls, bread for toasting, to be accompanied by cheese, slices of ham/turkey/salami and 3 or 4 delicious jams. There were 3 types of cereal, milk and yogurt and of course, coffee, tea and juices. It wasn't fancy but it was more than enough to get you full in the morning. I loved the fresh bread with salami and cheese, and made about 3 slices each morning. There is a restaurant/cafe on the bottom floor but I never went there (not sure if it is just part of the hotel or on fact an external restaurant). Finally, the reception sells snacks and drinks 24 hours a day (a bottle of Tuborgs beer was 27 Kroner).
The room price was 465 Kroner plus 60 Kroner for breakfast; a total of 525 Kroner per night. I think this was a discount of 20 Kroner per night (as we booked as part of the CPN Workshop group). As Denmark is one of the most expensive countries in Europe, I consider this price quite good value and would recommend others to stay there (unless they need a large room).
![]() |
![]() |
![]() |
![]() |
CPN Workshop in Arhus, Denmark
Submitted by Steve on Fri, 16/10/2009 - 9:00pmI have been getting back into some Petri nets research recently, and to catch up on the latest happenings with Coloured Petri nets I submitted a paper to the CPN Workshop in Arhus, Denmark. The paper was accepted and tomorrow I leave for a week in Aarhus.
This is the 10th CPN Workshop, all held in Arhus (the home of the people who created CPNs and the related software tools like Design/CPN and CPN Tools). It turns out the first time I ever presented a research paper was at the 1st CPN Workshop in 1998. So I have been to Arhus before (twice) and am looking forward to catching up with colleagues and friends.
Samsung NC10 Netbook
Submitted by Steve on Sat, 10/10/2009 - 4:35pmWan was in search of a netbook for use at home and work, so after a couple of days online and wandering around Zeer Rangsit IT Plaza, she finally settled on the Samsung NC 10. It looks good, has a nice sized keyboard, received good reviews online, and was priced well against other netbooks (Asus, Acer, Lenovo, Dell, etc.).

The specs are about the same as equivalent class netbooks from other companies:
- Atom N270 processor
- 1GB RAM, easily upgradeable to 2GB if needed
- 10.1inch screen
- 160GB hard drive
- IEEE 802.11b/g, Bluetooth, 100Mb/s Ethernet
The final price was 12400 Baht, which included an external DVDRW drive (which has yet to arrive).
As Wan has been using Ubuntu on my home PC for a while, the first thing I did with the netbook was install Ubuntu Desktop 9.04. I overwrote the existing Windows XP Home install, which I didn't think there would be any use for (However, I latter regretted this - I should've left it dual-boot. It turns out to update the laptop BIOS, Samsung software must run under Windows. Oh well, if an update is really needed it won't be too hard to backup Ubuntu and install Windows from the recovery CD).
I've had a few hours of setting it up and using it, and so far it seems like a good buy. The main thing I need to learn about is the Ubuntu power management features, where some fine-tuning is needed to conserve battery but also give reasonable (and constant) brightness settings.
Some sites with info on the Samsung NC10 and Ubuntu include:
Ubuntu, Ubuntu, Ubuntu
Submitted by Steve on Sat, 10/10/2009 - 4:09pmSince returning from a holiday in Australia in April not much has been happening other than work. However over the past semester I finally made the switch to Ubuntu on all my computers.
In fact I have been running Ubuntu on all my computers since moving to Thailand. Both my home PC and work PC were running dual boot Windows XP and Ubuntu Desktop, and my home Pentium III web server Ubuntu Server. I was using Windows for most of my work. However when my own server PC died I shifted to running Ubuntu full-time on my main home PC (acting as my web server and everyday PC), and a month ago I deleted the Windows partition (but have XP installed under VirtualBox). At work I haven't got around to deleting XP, but I only use it a few hours per week.
Ubuntu supports almost everything I need for my everyday computing activities at work and home: browsing, office applications, graphics, watching movies, occasional basic games. Of course it also perfect for hosting my web and email server. The only things I've been needing Windows for are: running some Windows-only simulation software, opening/editing old documents in MS Office (most of my old lecture slides were developed in Powerpoint - OpenOffice Presentation doesn't always handle the animations and fonts), and accessing web sites of selected financial institutions (IE only). Now all new work documents are created in OpenOffice. Slowly I am converting old documents, especially teaching material, to OpenOffice formats. It is a nice feeling knowing that eventually my 1000's of pages of teaching material will soon be in open formats, no longer dependent on closed, commercial applications and operating systems.
As Wan has been getting used to Ubuntu on my home PC, when she recently got her new Samsung NC10 netbook I immediately installed Ubuntu Desktop 9.04, overwriting the Windows XP Home install. So now its Ubuntu at multiple PCs at work, Ubuntu at home and Ubuntu on the road.
Toyota Vios Turns 1 year Old
Submitted by Steve on Wed, 29/04/2009 - 4:27pmMy car is about 1 year old now. Some stats:
- 18,000km traveled which is about 350km per week. I've done a few larger trips: Khon Kaen (3x, 1000km round trip), Yasothon (1200+km), Kanchanaburi (400km); as well as driving to work most days (25km round trip).
- 600 Baht per week spent on fuel (normally Gasohol 91, which is 10% ethanol and 90% benzene 91 octane). Average price of 26.5 Baht/litre. When I bought the car the prices peaked at about 37B/l, but dropped down to 15B/l at one point.
- 14.7 km per litre or 6.8 litres per 100km.
- Insurance was free for the first year, but I just paid for the second year: 16000 Baht for first-class insurance through Aioi; 1600 Baht for government taxes.
- Free service for 100,000km, however I had to pay about 3000 Baht for oil/parts for my 10,000km service.
The car is running fine. Only two complaints so far: my reverse parking sensors don't work very well - they often sound constantly (meaning I am about to hit something) whenever I reverse, even when nothing is nearby. Thats something that Toyota will fix for free when I take the car in next. The other problem is the blind spot caused by the front right frame between the front windscreen and drivers side window. I notice this mainly when turning, especially U-turns, as I need to lean forward to look at the front windscreen or look out the side window. I haven't noticed such a problem in other vehicles I've driven, but mainly its because of the many U-turns that are made in Thailand (on many roads you can't turn right - you need to do a U-turn and go back and turn left). Having good visibility in this area is important especially on large U-turns (e.g. under bridges) when you may find motorcycles on the wrong side of the road coming directly at you!
But in summary, I've been very happy with the purchase. The fuel statistics are constantly updated here.
Goodbye Australia ... again
Submitted by Steve on Fri, 24/04/2009 - 3:06pmWell, the holiday is over and its back to work. We got back to Bangkok about 11pm Wednesday night.
It was a great time, not only in Adelaide, Halls Gap, and Flinders Ranges, but also spending time with the family on the farm and around Mt Gambier. And of course, eating some of delicious food, especially Mum's home cooking (I put on 4kg!).
Plenty of photos in the Gallery.
Flinders Ranges, South Australia
Submitted by Steve on Mon, 13/04/2009 - 2:40pmFrom April 10 to 13 this year was the Easter long weekend. This is a time when many people go on a holiday, often camping or in a caravan. Wan, Brenton and I went camping the Flinders Ranges, a large set of mountain ranges in central South Australia considered the start of the Australian Outback.
On Thursday Wan and I drove from Kongorong to Adelaide (about 5 hours), picked up Brenton from his work about 3pm, organised our camping gear and supplies at his house, then drove another 2 hours north of Adelaide to Clare Valley. This is a good place to stop on the way to the Flinders (which is another 3 to 4 hours drive, not because it is one of Australia's many popular wine regions, but because our friends Rob and Meg live there and we get free camping. We set up our tent at their place, enjoyed a BBQ dinner, and got on the road again by about 11am Friday. [Rob and Meg have a nice simple setup on their 100 acres, and about a week after visiting them they had their first kid, Willow. Check out their journey).
We drove via Jamestown, Orroroo, Carrieton and Craddick to Hawker and then arrived at Wilpena Pound (the heart of the Flinders Ranges) about 3pm. There are two caravan/camping parks: Wilpena Pound and Rawnsley Station. Both are pretty good - this time we stayed at Wilpena Pound for $27 per night (unpowered site, 3 people). You can also stay in the National Park, especially in places like Brachina Gorge, which is much more peaceful bush camping.
The weather was perfect for the trip. Everyday was about 28 degrees, with the occasional cloud. At night time it was not too cold, especially with the fire. What did we do there? A lot of time was spent relaxing with a beer at the camp site. On Saturday we went on an easy 3 hour trek up to Hill's Homestead and then to a lookout with a great view of Wilpena Pound. On Sunday we drove up through Bunyeroo and Brachina gorges, and then back towards Wilpena via Stokes Lookout. There are plenty of other places to go and things to do, but this weekend we all wanted to relax a bit. So after a couple of boxes of Coopers and half a dozen bottles of red we made our way home to Adelaide on Monday (and then back to Kongorong on Tuesday).
Photos are available in the Gallery, as well as at Brenton's Facebook page.
Halls Gap, Victoria
Submitted by Steve on Mon, 06/04/2009 - 2:13pmHalls Gap is a small tourist town in the middle of the Grampians, a mountain range in western Victoria. We spent 2 nights there at the start of April, staying in the Halls Gap Caravan Park in the middle of the town.
Halls Gap is about 300km from Kongorong. There were 3 car loads that went: Peter and Allison; Brett and the family in their car; and Wan and I in Brett's Jeep with Dad's new camper trailer on the back. Its a nice setup, taking about 20 minutes to put up and includes queen mattress on the trailer, plus floor space for about two more, as well as a large annex.
The caravan park wasn't too busy, with most people staying in cabins and caravans. We had the open camping ground to ourselves. In the early morning and late afternoon there were plenty of kangaroos around the park, coming up to our camper trailer. Peter and Ally slept outside in their swags, and had kangaroos almost walk over them.
On arrival, after setting up we had a walk around the park and town then settled down to some drinks and dinner. The next day we all made the trek to the Pinnacle, a lookout above Halls Gap. Before going home on Sunday, we all drove up to Stawell (home of the famous Stawell Gift) and visited a couple of wineries in Great Western.
Halls Gap, and the Grampians in general, are a great place to visit with many opportunities for bush walks, camping and mountain climbing. Check out the Photo Gallery for more pics.
Red Ochre Restaurant, Adelaide
Submitted by Steve on Thu, 26/03/2009 - 5:24pmThe Red Ochre restaurant in Adelaide serves modern and native Australian food to a very high standard. I've been there several occasions, including dad's 60th birthday party and most recently to celebrate Wan's 30th birthday.
The restaurant is located on the northern side of the Torrens river, with a great view of North Terrace including the Convention Centre, Casino and high rise buildings. There is not much immediately surrounding it (golf course, park lands) so it is best to get a taxi there. A taxi will cost about $10 to $15 from most places in the city. Note that the Red Ochre restaurant is upstairs - there is a cafe/cheaper restaurant downstairs operated by the same people.
The main attraction of the Red Ochre for many is the unique food: it serves Modern Australian food made with many native Australian ingredients, especially herbs, spices, fruit and vegetables, combined with Australian meat and game: beef, lamb, kangaroo, emu, crocodile, pigeon and more. On all occasions I've been there, the food has been delicious. This time, with both of us being small eaters, we ordered some bread for starters and then went straight to the mains. I had the kangaroo fillet and tail, while Wan choose the duck with riberry sauce. As with most Australian restaurants and pubs, the servings were quite large and we were both full and satisfied at the end. We didn't order extra salad or vegetables (knowing that the mains would be big enough) but in hindsight we should have just to mix things up.
Being a Thursday night in Adelaide, the restaurant was not full but there were still quite a few people in there. We had a corner table by the window overlooking the city lights. The atmosphere is hard to beat.
You can find a couple of photos of our food, as well as other food we ate in Australia, in the Photo Gallery.
Such good food and service is of course not cheap. It set us back $160, however that included two bottles of wine: a big Cab Sav and a refreshing Moscato after dinner. For a special occasion, it was worth it.
Country Comfort Motel Adelaide
Submitted by Steve on Thu, 26/03/2009 - 4:44pmWan and I stayed at the Country Comfort Adelaide motel at 208 South Terrace when we arrived in Adelaide. This was one of the cheapest motels I found on the Internet within Adelaide CBD and Mum and Dad had said it was ok in the past. Before flying out home we spent another two nights here. Although there is nothing special about the rooms and service, we found it a great spot for what we wanted to do in Adelaide.
First, don't get confused with the many Country Comforts around Adelaide and suburbs. This is the Country Comfort on South Terrace. It is owned and operated by the same people running the adjacent Grand Chifley Hotel and the Chifley on South Terrace. That is, there are three different places all next to each other: two hotels and a motel. You actually check-in at the reception of Grand Chifley and can make use of their facilities. We had breakfast included for one night and that was at the Grand Chifley.
On our first stay the room was $100 per night, and the second stay just $80 per night (booked on wotif.com). This is without breakfast. I booked a room with a double and single bed, since there was a possibility a Brenton would stay one night with us (it turned out he stayed 3 nights. There is supposed to be a $30 charge for the extra person, but we didn't say anything about him staying and no-one asked so that was free).
The room was normal size with a table and two chairs, space for suitcases, wardrobe, TV, mini-fridge, iron and standard bathroom (including shower in the bath). It was an old room, but everything worked and was clean. The rooms were on the eastern wing, numbers 1, 2 and 17. Mum and Dad had a room with queen bed one night (on the western wing, number 37?) - this room looked a bit newer with a renovated bathroom (shower, but no bath).
Although not in the heart of the city (around North Terrace), the location was convenient for us. It is only a 5 minute walk to King William Street where you can catch a free tram through the city. Or you can walk for another 10 minutes to get to Victoria Square and Central Market (and another 10 minutes to the shopping and entertainment area - it is only 2km from one side of the city to the other!). There are a few pubs within walking distance (Brecknock, Kings Head, Gilbert Hotel), a small grocer/convenience store on Gilbert Street and a few nearby cafes for breakfast or lunch. Of course it is a motel so there are plenty of car parks. A bonus of the location is that Brenton works on the corner of South Terrace and King William - a 5 minute walk away. We caught up with him on several occasions after work, usually starting with a pint of Guinness or Pale Ale at the Brecknock.
If you are looking for somewhere cheap to stay so you can explore Adelaide, and don't require special service or fancy rooms, then I recommend staying here.
Around Adelaide
Submitted by Steve on Thu, 26/03/2009 - 3:08pmOn arrival to Australia, we had four nights in Adelaide, staying in the city at the Country Comfort Motel on South Terrace. Adelaide is a quiet city. Although the population is about 1 million, the centre of the city is small and everyone is quite laid back (to the extent that the city is almost dead on weeknights and Sundays).
Staying on South Terrace, within 5 minutes walk of King William Street is great because there is a free tram running from South Terrace to North Terrace during the day. Most shopping, cultural and entertainment venues are near North Terrace. Some of the things we did while in Adelaide included:
- Shopping (or at least window shopping) in Rundle Mall
- Visited the South Australian Museum (free entry)
- Wandered down North Terrace admiring the statues and old majestic buildings, and through Adelaide University to the River Torrens
- Lunch and shopping in the Central Market, which includes Chinatown and some good Asian grocers
- Tram to Glenelg Beach
- Coopers Pale and Sparkling Ales, as well as red wines at the Austral and Exeter on Rundle Street
- Dinner at the Red Ochre Restaurant (see me separate review), as well as at pubs and restaurants around Adelaide
On Friday we borrowed Brentons Pajero and drove up to Cleland Wildlife Park. Here is a great collection of Australian animals, most of which you can get close to and feed. We saw: kangaroos, koalas, Tasmanian devils, emus, echidnas, bandicoots, wallabies, wombats and all sorts of birds. There is also a snake farm. Well worth a visit if you are in Adelaide.
On Saturday morning Mum and Dad arrived in Adelaide and we all went up to Barossa Valley for some wine tasting. The first stop was Chateau Barossa, a new winery built by the guy who owned Chateau Yaldara. The wines were not special, but the highlight was the large rose garden outside. It was opened by the Queen Elizabeth II on here previous visit to Australia. Lunch was at a snack shop in Tanunda (Wan tried a Hamburger with the lot and was full after 1/3 of it). Then on to Jacob's Creek Winery which had some nice wines.
Back on Adelaide we had dinner at the Gilbert Hotel. It was great food and atmosphere until I noticed the last couple of mouthfuls of my chicken schnitzel was uncooked. Not sure how much of it was uncooked but luckily there were no side effects the next day.
On Sunday we made our way to Mum and Dad's home in Kongorong near Mt Gambier (about 450km south of Adelaide).













