StructureCMS

November 24, 2010

Bicycle gearing calculator

Filed under: Cycling — joel.cass @ 3:17 pm

I know there’s a few of these around on the Internet but I thought it would be nice to create one of my own. The gearing calculator shows you what sort of speeds you can get out of your current gearing. Also, I’ve added things such as gear inches and gain ratio. The gain ratio even takes into account the crank length that you are using, amongst other things.

Try it out here: Bicycle Gear Calculator

Bicycle Gearing Chart

Bicycle Gearing Chart

November 11, 2010

MS Sydney to Wollongong ride – a big thanks

Filed under: Cycling — joel.cass @ 3:31 pm

Thanks to all who donated their money to the Multiple Schlerosis Foundation in support of my ride from Sydney to Wollongong.

All up, it was about 88km in 2 hours and 55 minutes. The weather held out for a beautiful day, albeit a bit chilly in the morning. The event was very well organised and I was impressed with the level of enthusiasm shown by so many volunteers, it really lifted the spirits to be cheered on by many whom were living or supporting people with the disease.

The starting line opened at around 6am, probably 500 or so people left at the same time, of which I was towards the end of the bunch. It was a bit tricky at first trying to find space to ride with so many people around so I took it pretty easy. After we hit the main roads things started to spread out a bit and I was getting to a comfortable pace. Things continued on that way through to the Royal National Park, which took all the riders down a steep, wet winding descent through some low lying cloud, it was pretty surreal. Coming back up was not quite as difficult as the way down. I was quite surprised, you might be riding uphill for a couple of hundred metres, then down a little, then up again. It was relatively easy to maintain a good pace.

Heading towards coalcliff the pace picked up, I found myself doing around 42 km/h for a while until I reached a group of cyclists who had stopped. I prepared myself for the worst – thinking that perhaps a rider had fallen off or gotten hit by a car I was reasonably relieved to see that it was just a ute that had rolled into a ditch holding the traffic up. Once we got the clear-all from the police it was back on the saddle again and I tagged along with the bunch until Coalcliff.

Another big descent, albeit a dry one this time, led to the Seacliff bridge – this was an awesome spot to slow down a little and soak in the view, then it was a matter of going back up again. This time the hills were a bit longer, aggravated moreso by the fact that the road was still open to traffic, which made it difficult to pass some other cyclists.

After that it was a cruisy trip. All the turns were signposted, the more difficult ones were manned by volunteers. We had to stop to let some traffic pass before another winding descent down to Wollongong. The police did a great job of directing traffic. One even commented on the bandanna I had wore beneath my helmet, “Bogans don’t need helmets do they?” Confused and sort of offended at being called a bogan, I asked him what he meant, but soon figured it was a joke and moved on. Can’t afford to offend the police.

Getting towards to finish line led us down a shared cycleway following the beach and some new housing developments – Wollongong is looking pretty nice these days. Decided to take it easy to the finish line, reaching the end was a mixed feeling of relief and bewilderment – like, is that it?

I had pre-ordered a bike lift back to Sydney, that was probably a mistake. I had arrived in Wollongong at just before 9:00am, however the buses did not start until 11:15. The first bus left around 11:30 and didn’t arrive in Sydney until 12:45, then we had to wait about half an hour for the bikes, which meant I wasn’t on my way back home until around 1:30, giving time for the bikes to get off the truck. This is probably a good option for someone who leaves a little later, but I think in the future I’ll be catching the train. Or, perhaps just ride back, after all it did take around 5 hours for me to get home and only 3 hours to get there.

Anyway, I’ll stop complaining. The ride was overall good and something I’ll definitely do again. Here’s some photos:

The starting line, around 5:50am

The starting line, around 5:50am

Temperature at the starting line: 14.5 degrees celsius

Temperature at the starting line: 14.5 degrees celsius

The view coming out of the Royal NP

The view coming out of the Royal NP

The finish line

The finish line

Wollongong beach (north)

Wollongong beach (north)

View from Stuart park

View from Stuart park

November 5, 2010

Setting up an extranet login page in Sitecore

Filed under: Sitecore — joel.cass @ 8:30 am

Recently, I had issues with the setup of a public logon page in Sitecore. The setup was very similar to the way that login work in the Intranet solution, e.g.

1. A login.aspx page is created in the project folder
2. Settings are added to the web.config <site> tag: loginPage=”/login.aspx” + requireLogin=”true”
3. The login page either displays a form or is secured in IIS and then gets the AUTH_USER header to login users (if implmenting an AD solution)

The problem is, so it seems, that the latest version of sitecore (6.2) works differently from previous versions as documented here and here. The URL parameters item, user, and site are no longer passed. Furthermore, adding a SecurityResolver pipeline didn’t seem to work any longer.

So in 6.2, when a user cannot be authenticated to access a page, they are simply redirected to /login.aspx without any return URL or other useful information. This makes the situation even worse if you are trying to preview a page from the administration interface – basically every initial request is redirected to /login.aspx, and once authenticated the user is returned to the home page, as the original URL was lost when the user was redirected to /login.aspx.

Things seemed futile until a text search of the various config’s revealed the following setting in the web config:

      <!--  SAVE RAW URL ON LOGIN
            Specifies whether the original request URL is passed to the login page
            (saved in 'url' query string parameter).
            Default: false
      -->
      <setting name="Authentication.SaveRawUrl" value="false" />

Changing this setting to “true” now means that the return URL is passed through to /login.aspx as the ‘url’ querystring parameter. You’ll need to modify your login.aspx to look for this parameter and decode the parameter using Server.UrlDecode before redirecting.

This solution is simpler than the previous options available. It’s probably documented somewhere, I just never got a chance to read about it. I hope this is of help to anyone else who may be facing the same issues.