Breakfast, Pack up, Internet time, Took Some Pictures of The Jailhouse, Booked a Ride to Kaikoura, Bummed a Ride to the Bus stop, Japanese Lunch, Library, Internet Cafe, Late Arrival, Super Quiet Night – Kaikoura, New Zealand (Day 33) (September 18, 2009)

Today Mikey and I split up in different directions. Mikey was keen on exploring Christchurch and heading south and I was keen on heading north. Think I had a standard breakfast of a banana, an orange, and some instant coffee. Afterwards, I found a bus ticket headed north to Kaikoura. Could have taken the Kiwi bus, but it was headed out the next day and I didn’t feel like burning another day in Christchurch. It’s a great city, but the road was starting to get to me. Mikey gave me a ride to the bus stop and I dropped my bags off and then headed to the library for some free internet. The library ended up closing, so I grabbed some food at a restaurant next to Base Hostel and then headed to the internet cafe next door to upload some pics to Facebook. Eventually, it was time to take the bus to Kaikoura. I was on my own again and feeling a little roughed up for some reason. We got in late and the bus driver dropped me off on the corner. I walked the rest of the way to the YHA in Kaikoura. It was late and the kitchen was closed so I think I had some bread with peanut butter and some other snacks and then hit the sack. Tomorrow I would catch another bus headed even farther north.

Tour Progression:


View New Zealand 2009 in a larger map

Breakfast, Pack up, 3 Hour Session at Hanmer Springs, Groceries, Lunch, Drive to Christchurch, Check-in to Jailhouse Accommodation, Laundry, Chinese Takeaway, Internet Time, Relaxed Night – Christchurch, New Zealand (Day 32) (September 17, 2009)

It was a cold night, but we stayed warm inside the minivan. Mikey had a series of blankets and I had a sleeping bag. I reckon it was pretty foul, but you can’t tell after you’ve been in it so long. We got a breakfast in and packed the van. The Top 10 Holiday Park in Hanmer Springs is pretty nice. It has everything you need. After packing up we made our way to Hanmer Springs. Unfortunately, there is no alcohol allowed. Regardless, I poured a few brews into a large water bottle and we made our way inside. Hanmer Springs is pretty much a water park made out of hot tubs. There are pools of all different temperatures and sizes and people are just chilling out.

mikey getting some r&r after summiting Mt. Fyffe

P9170823

yours truly enjoying one of the hottest tubs

P9170826

There’s only so much time you can spend chilling in a hot tub. It was low season and there wasn’t really anyone to chat up. Mikey and I left after having thoroughly enjoyed the springs. Next, we hit up a small grocery store and picked up some sandwich items and snacks for the road. We got into Christchurch in the evening. We took the long way in and had a little tour of Christchurch while trying to find the hostel. Christchurch is one of my most favorite places. It is absolutely brilliant. In hindsight I probably should have tried to find work there instead of making my way back up to Auckland. The first time I was in Christchurch I stayed at Base. This time we stayed at Jailhouse Accodomodation. The hostel is a renovated prison and is one of the coolest places I’ve ever stayed. Mikey and I had a quiet night catching up on laundry, internet, and having take out Chinese food for dinner. Check out some pics of the hostel below.

P9180827

P9180828

P9180830

P9180832

P9180839

Working print_it.c for Sam’s Teach Yourself C Programming in 21 days

It’ s always awesome being blessed with incorrect code snippets in beginner programming books. Luckily, I have enough sexy house music to work through anything (thank you radio 1!). If you’re looking for a working print_it.c example, look no further!

much thanks to: http://www.programmersheaven.com/mb/beginnercpp/367391/367391/newbie-programming-error/ – There are bunch of sites with code for print_it.c and programmersheaven.com was the only one that had working code.

code:

/* print_it.c-- This program prints a listing with line numbers! */
#include <stdlib.h>
#include <stdio.h>
void do_heading(char *filename);
int line = 0, page = 0;
int main( int argv, char *argc[] )
{
char buffer[256];
FILE *fp;
if( argv < 2)
{
fprintf(stderr, "\nProper Usage is: ");
fprintf(stderr, "\n\nprint_it filename.ext\n" );
return(1);
}
if (( fp = fopen( argc[1], "r" )) == NULL )
{
fprintf( stderr, "Error opening file, %s!", argc[1]);
return(1);
}
page = 0;
line = 1;
do_heading( argc[1]);
while( fgets( buffer, 256, fp ) != NULL )
{
if( line % 55 == 0 )
do_heading( argc[1] );
fprintf( stdout, "%4d:\t%s", line++, buffer );
}
fprintf( stdout, "\f" );
fclose(fp);
return 0;
}
void do_heading( char *filename )
{
page++;
if ( page > 1)
fprintf( stdout, "\f" );
fprintf( stdout, "Page: %d, %s\n\n", page, filename );
}
/* print_it.c-- This program prints a listing with line numbers! */#include <stdlib.h>#include <stdio.h>
void do_heading(char *filename);
int line = 0, page = 0;
int main( int argv, char *argc[] ){char buffer[256];FILE *fp;
if( argv < 2){fprintf(stderr, "\nProper Usage is: ");fprintf(stderr, "\n\nprint_it filename.ext\n" );return(1);}
if (( fp = fopen( argc[1], "r" )) == NULL ){fprintf( stderr, "Error opening file, %s!", argc[1]);return(1);}
page = 0;line = 1;do_heading( argc[1]);
while( fgets( buffer, 256, fp ) != NULL ){if( line % 55 == 0 )do_heading( argc[1] );
fprintf( stdout, "%4d:\t%s", line++, buffer );}
fprintf( stdout, "\f" );fclose(fp);return 0;}
void do_heading( char *filename ){page++;
if ( page > 1)fprintf( stdout, "\f" );
fprintf( stdout, "Page: %d, %s\n\n", page, filename );}

now all that’s left is:

gcc print_it.c -o print

./print print_it.c

How to Stream in High Quality with Effects to Justin.tv or ustream.tv on Ubuntu

This is a down and dirty how-to. I found that streaming via WebcamStudio resulted in higher quality streams than streaming directly to justin.tv. This approach also opens up some options not present in the browser based streaming solution justin.tv offers. WebcamStudio is not included in the Ubuntu repositories so we will have to download it manually.

1. Download WebcamStudio from the creators site at www.ws4gl.org. This will eventually forward you to sourceforge. Grab the .deb file from here: http://sourceforge.net/projects/webcamstudio/files/

2. Install the deb file by double clicking it. This will open up the Ubuntu deb installer. The deb installer is now included in the Ubuntu Software on newer releases. Click the install button. (Note: If you have Synaptic open, the installer will hang until Synaptic is closed. This is a bug in Ubuntu)

3. WebcamStudio is installed on the Main Menu under the Sound and Video section. Click the WebcamStudio link to launch the app. You can also press Alt+F2 and type in webcamstudio.

4. Once WebcamStudio launches you will need to select your webcam under devices. Double click your webcam.

5. Everything else should be easy. Click the play button under the Source Layer section. To verify that your webcam is working, click the output menu on the menu bar and select Show Preview. This will open up a preview window.

6. As you can see the coloring is off. To fix this we are going to apply an effect by clicking the effect tab and selecting SwapRedBlue and then enabling the effect by clicking the move button.

7. Now that everything is good we are going to go to justin.tv and login to our account. Click the Go Live! button in the top right and the select webcam. If you only have one video source available on your pc, the video feed from the webcam we previously configured should be displayed.

8. Next, lets do something special with WebcamStudio. Select the Output menu on the WebcamStudio application and then select SinglePaint. This will open up another preview panel that has paint options. We can use this to paint anything on the video stream we would like. If you like these kind of things, make sure to check out the effects tab in WebcamStudio.

Please feel free to donate to www.ws4gl.org.

A Quick Update

There is no denying I have let the site go on the fritz. Regardless of this disconcerting realization, I have decided to turn it around by making a few posts tonight. Additionally, I believe I am determined in my effort to exhibit better discipline in keeping some fresh content headed this way. I will keep posting the New Zealand tour progression(probably a bad idea to have started this) and then look to make some posts on some of the generalities around travelling/backpacking and some of the highlights I’ve had when getting out and about. Google Analytics says the How-To’s are where the traffics at. Apparently, people like to learn. I will look to putting out some more How-To’s, but my focus will most likely be travel related.

How to “fix” Bridged Networking in VirtualBox (Ubuntu 11.04 Host / Windows XP Client)

Note: This is not a complete fix, but more of a hack to get internet working on client VM’s when bridged networking does not allow client VM’s to access the internet.

After switching a Windows XP VM to bridged ethernet, the XP VM was no longer able to access the internet. I found a few solutions to this problem and this one seems to be the easiest.

To fix the loss of internet when using a bridged adapter on Virtualbox, configure the VM to have both a NAT and Bridged ethernet adapter. (see the screenshots below). To do this select the VM (must be powered off), click the settings button and then navigate to the network section of the Settings wizard. Configure Adapter 1 to bridged and then enable and configure Adapter 2 to be NAT. Press OK to save the changes and then turn on the VM. Give it a few seconds for the resources to be provisioned. You should now have access to both local and internet resources from the VM.

The NAT interface will be used to connect to internet resources, while the bridged adapter will be used to connect to local resources. This allows you to RDP  or console into the VM from other computers on your local network and still have internet access on the VM.

Adapter 1 (Bridged)

Adapter 2 (NAT)

Breakfast, Summit Mt. Fyffe, Descent, Groceries, Drive to Hanmer Springs, Chicken Tiki Masala Dinner, Shower, Rest – Hanmer Springs, New Zealand (Day 31) (September 16, 2009)

Today was a good day. Having had an a night of great food, drink, and festivities, we were ready to summit Mt. Fyffe and then move on with life. We woke up, had a hearty breakfast, packed our bags, and then made the last charge to summit Mt. Fyffe.

Brekky

P9160807

We encountered some snow on the trail, but most of it was easy going. The winds were pretty high, but we were in good spirits. Eventually, we made it to the peak. The view is spectacular and I carried a few cups and the rest of the bottle of Johnny Walker to the top. Mikey and I finished it off while reveling in our own glory.

on top

P9160811

Kaikoura from Mt. Fyffe

P9160816

Now it was time to head back to base camp, pick up our packs, and return to our starting point. From there we would grab some groceries and then make our way to Hanmer Springs.

base camp

P9160817

The drive to Hanmer Springs took a while. We ate sandwiches at a highway rest stop and arrived at Hanmer Springs in the night. By the time we got to camp we were knackered, but still needed to eat dinner and clean up. Mikey and I made Chicken Tiki Masala. This was my first time to be introduced to the dish and since then I have made an effort to keep it in my normal routine of dishes I make at the house. Thanks Mikey! I think Mikey and I browsed the internet and watched TV in the community room and then went to bed. Our bed just happened to be in the back of a minivan from Spaceship Campers. It’s good to have a bed while on the road. Tomorrow we would check out Hanmer Springs and then head to Christchurch.

Check into i-SITE and get Passes for Mt. Fyffe Hut, Seal Colony, Cray Fritter Lunch, Groceries, Drive to Mt Fyffe, Hike up to Mt Fyffe Hut, Make Attempt to Summit Mt. Fyffe, Steak, Mash Potato, and Vegetable dinner, Johnny Walker, Backgammon, Checking out Stars – Mt. Fyffe Hut, New Zealand (Day 30) (September 15, 2009)

This was one of my favorite and most memorable days of New Zealand.

It started off by picking up some passes for the Mt. Fyffe Hut. The hut is maintained  by the New Zealand Department of Conservation and a pass is required to spend a night in the hut. The pass is a steal at 5 NZD a night for an adult. This hut is well maintained, has 8 bunks with mattresses, back-country bathroom facilities, and a wood fired stove for cooking and heating. There is also a rainwater collection system for drinking water and washing dishes.

Next, we went to check out the Kaikoura seal colony. Mikey had already been there, but was nice enough to go back so that I could see it too. Seals are very good at blending in with their surroundings. Unless you get a close up picture of a seal, your seal pictures are most likely going to look like rock pictures.

P9150795

On the way to the seal colony we noticed a Cray stand. Cray is crawfish in Kiwi. They were cooking up a few different things and we settled on Cray fritters. It was a good choice.

P9150796

We were going to spend a night on the mountain which meant that we were going to need some food. The grocery store was next on the list. We decided to eat right on the mountain and settled on some steaks, potatoes,  and vegetables for the evening meal. For breakfast we got some eggs and other tasty items not normally found on the trail. From the store, we headed off to the trailhead. Once there, we packed our bags and started our way up the mountain.

P9150797

The trail is an access road making it not too hard to hike, but there is a good deal of elevation change. The hut is at 3600 feet in elevation. Below is a picture of Kaikoura from somewhere along the trail.

P9150798

With some good conversation and Mikey’s good singing we made it up to the hut, dropped our bags, and attempted to summit Mt. Fyffe. After analyzing the pace Mikey and I were holding, we decided to head back to the hut and summit the peak the next day.

P9150800

P9150801

P9150802

If you do make it up here, make sure to bring a cook kit and some cooking utensils. Mikey saved the day by bringing a cook kit. Without that, we would have had to get very creative preparing and eating our meal.

P9150805

After doing some dishes Mikey and I got into the bottle of Johnny Walker Black Label he had purchased the night before. We also got some good games of Backgammon going before going to bed. Below is a picture of Kaikoura at night from the hut.

P9150806

Tour progress so far:


View New Zealand 2009 in a larger map

me-tv, a great program to watch tv with on ubuntu linux

There are quite a few programs for watching TV with on linux, but the best one I have found is me-tv! You can download me-tv from https://launchpad.net/me-tv/+download or via your distributions package manager. It makes scanning for channels, adding channels, watching TV, and recording shows a cinch. Big up to me-tv!

Drive to Kaikoura, Hike to Top of Mt. Fyffe with Kiwi Driver(Cam), Meet up with Mikey, Sausage Dinner and Late Night Drinking Session – Kaikoura, New Zealand (Day 29) (September 14, 2009)

Today I started off on my own again. This time headed north to Kaikoura. The bus up to Kaikoura was smaller and only had a handful of people. This allowed the driver and I to take an excursion to Mt. Fyffe after dropping off the rest of the backpackers at the hostel. The driver and I summited Mt. Fyffe, hung around for a bit at the top, and then headed back down. The track is easily doable, but be sure to bring plenty of water. Bring some good hiking footwear because even during September part of the track is covered in snow.

The Summit looking towards another range

P9140778

Summit marker with driver, Cam, getting into a snack

P9140775

Some pictures of Mt. Fyffe from a distance

P9140790

P9140789

On the way back to the hostel, the driver and I stopped at the grocery store and picked up some sausage, bread, barbecue sauce, and beer. When we got back to the hostel, I cooked up some grub and eventually met up with an old friend I had traveled part of the North Island with, Mikey. Mikey had hired a minivan that had been converted to a camper from spaceships.

After getting some grub and killing a few beers we walked around Kaikoura scouting for night life. Kaikoura is pretty quiet at night but there are a few bars that can be found. There is a long walkway beside the beach that stretches the length of town. We walked almost the entire distance and then returned back into town and entered an Irish pub just as it was closing. Luckily, across the street was a bottle shop. I think we picked up some beer (I know I couldn’t decide if I wanted more or not) and a bottle of Johnnie Walker Black Label. We returned to the hostel and had a drinking session.

I don’t remember what we discussed or how it ended, but I felt alright in the morning. I do remember the hostel, The Lazy Shag Backpackers, had a nice fireplace in the kitchen/lounge area, a nice kitchen, and dorms with their own bathroom.

Tour progress so far:


View New Zealand 2009 in a larger map