Wednesday, June 20, 2007

Rant:

I think I'm going to boycott the bus for distances less than 15km for awhile. Today I spent nearly an hour and a half getting from Bathurst and Steeles to Dufferin and Lawrence. According to Google Maps, that's 11.2km and takes 14min (by car, obviously).

Here's what I went through:
* 10 minute walk to the bus stop (that's normal)
* Caught the #7 Bathurst bus
* The #7 stopped for about 5min before turning south on Bathurst
* Took the #7 down to Lawrence, this took about 30min.
* Waited for the #34 Lawrence bus.
* I first saw the #34 after 10 minutes of waiting
* After three green lights it finally made it across the intersection
* Two stops up we waited a few minutes before moving because people weren't behind the white line
* Arrived at Lawrence West station, waited 5min there.
* 5min later we got to Dufferin.

I came up with a list of frustrations while during my trip:
1) Why is there bus stops on both sides of an intersection? All this does is cause the bus to be stuck at extra red lights. In most cases the bus stop should be after the lights, to help avoid getting stuck at them.
2) The bus is a lot slower than I remembered. It really sucks when it takes half an hour to go from Steeles to Lawrence.
3) It's difficult to estimate how long it will take to get somewhere unless you do it on a daily basis. To arrive on time you usually need to give yourself a lot of extra time, which often ends up making you really early!
4) Buses get really crowded.
4) The things mentioned above cause a huge amount of frustration for me.

I think one of the reasons the bus is more frustrating now is because I'm in the far north of the city. When I was living closer to Bloor I don't remember it being this bad.

For now, I'm going to use my bike whenever I can. I'd forgotten how nice it is to have control over your mode of transportation.

Tuesday, May 08, 2007

Canadian Bakin'

I thought some people might be interested in my new blog. I've started doing a lot of baking lately, mostly breads and bagels to start with. You can read about it on Canadian Bakin'.

Wednesday, March 14, 2007

Im in yur box, steelin yur fork

I couldn't resist posting some cute pictures of my cats.

Friday, March 09, 2007

I'm not voting

This is what I've been treated to all week at school:


The York University building I travel through every day is completely plastered with these election posters. Now I'm all for voting and making your voice heard but the absurdity of these campaigns is getting to me. The walls are plastered as high up as one can reach with posters that look nearly identical. Not just one wall, half of the walls in the damn building. Not only is it a waste of paper and ink the homogeneous nature of the designs prevent any one candidate from standing out.

I hope this election is over soon.

No one more deserving

Apparently I'm the recipient of the Maurice Joseph Weisfeld Memorial Award this year for being a "deserving student in the school of computer studies". I'm not sure what that _really_ means, but I'm not complaining.

Wednesday, February 28, 2007

CSS Notebook Layout

Ever wanted a notebook style layout on a web page?



Well, I sure did. And I spent the better portion of the day fighting with it making it work right. You can find a small example page here.

Here are the important parts of the CSS and Javascript:

For the 'tabs':

.tab {
border-top: 1px solid black;
border-left: 1px solid black;
border-bottom: 1px solid black;
padding-top: 5px;
padding-bottom: 5px;
padding-left: 15px;
padding-right: 15px;
vertical-align: middle;
text-align: left;
color: blue;
cursor: pointer;
}


Each tab also has it's initial 'background-color' set.

Here is the corresponding HTML:

<div>
<span id="page1Tab" class="tab" onclick="showPage('page1');">
Page 1
</span>
<span id="page2Tab" class="tab" onclick="showPage('page2');">
Page 2
</span>
<span id="page3Tab" class="tab" onclick="showPage('page3');" style="border-right: 1px solid black">
Page 3
</span>
</div>


It's important to note that for the frame to properly line up with the bottom of the buttons that it needs to have it's 'margin-top' identical to the tabs 'padding-bottom'. This is what my "content" frame looks like:

div#content {
width: 95%;
border: 1px solid black;
margin-top: 5px;
background-color: #B5BBD5;
}


I'm using <fieldset> tags with <legend> tags in my example to get the neat looking frame.

Finally, here are links to the HTML, CSS, and Javascript files: