Tuesday, July 29, 2008

Some classical mechanics

While it'll take a while to get all my Paris pictures sorted out, I've fallen back to some light internet reading. Forget your quarks, photons, neutrinos and whatever else in physics that are way beyond my comprehension. Have you ever stopped to think about how a bicycle works? Have you actually cared enough to find out afterwards? Well, today's the day I answer yes. My first thought was that gyroscopic forces from the spinning wheels keep the bicycle stable and upright. As it turns out, people have gone to great lengths to disprove that theory. Behold the zero-gyro bike, where two counter-rotating wheels cancel the gyroscopic effect of the main wheels. As it turns out, while it is very possible to ride a zero-gyro bike, it is impossible to ride a bike with its steering column locked in the forward position, unless the wheels are huge and gyroscopic forces actually dominate. Thus, it's actually the act of the rider that keeps a bike upright. As the figure shows, the bike is balanced as long as the moments created by gravity and centrifugal force balance each other. The system itself is not stable without a feedback controller, the rider. The rider has control over v, r and q by the acts of peddling, steering and leaning, which offers enough redundancy to ensure the moments are balanced even with external disturbances. Evidently, the bike cannot be balanced when v is zero because a centrifugal force is not possible, not because there is no gyroscopic effect from rotating wheels. On the other hand, here's a monstrocity I've only discovered today: the gyro monorail. While it might intuitively work like a bicycle, it's actually quite different. There is no control over r (due to the fixed tracks), and it would be difficult to control q directly. Thus this thing stays up purely by a giant spinning gyroscope inside the cabin. A control system keeps control over the precession of the gyroscope, which maintains the balance of the vehicle. At first glance it seems strange to see this thing stand, but after reading the article, I'm actually convinced that this system has a lot of advantages over traditional two rail systems. As the co-inventor Piotr Schilovski pointed out, it was generally ignorance in the engineering community that prevented this idea from being implemented.

Trip to Paris - Days 4 and 5

I'm back in Sweden now. It's been 5 days since I've been in an empty house in the quiet suburbs (as opposed to Christy's apartment in the festive St. Germain neighbourhood), and I miss the Paris atmosphere already. It's really something that has to be experienced first hand. Life just felt much simpler in Paris, and I think that living in an apartment (instead of a hotel) really gave me the feeling of living, and not just visiting, the city. Today (Day 5) was mainly the journey back to Stockholm. I snuck a quick visit to the Arc de Triomphe (top) for a few minutes before catching the bus to the airport. The rest of the day was pretty much the 10 hour journey. Yesterday (Day 4) was a visit to the Palace of Versailles (middle, bottom). I was no doubt impressed by the palace itself, but the crowds of tourists (myself being one, of course) kind of took away from the experience. That's just not avoidable. Anyway, it's back to business as usual starting tomorrow.

Sunday, July 27, 2008

Trip to Paris - Day 3

Today was just more walking and a bit of shopping. Walking is actually a great way to absorb the atmosphere, and Paris is really a city best explored by walking. Above are night shots of Notre Dame, the Seine and, of course, the Eiffel Tower.

Friday, July 25, 2008

Trip to Paris - Day 2

I was walking around for a few hours this morning, and now I'm back at Christy's apartment to recharge my camera battery. Processing all the pictures and videos will take too long (and take away from Paris-enjoying time), so I'll just post a few of my favourites each day. For now, Top: view from Christy's balcony. That's Notre Dame on the far left. Bottom: an HDR of a church interior. I haven't figured out the name of the church yet, but thanks to the GPS tag I'm sure I'll find out later. I think the HDR is a little too bold; I'll fix it when I get back to Sweden. For now I just want to share a tiny bit of the Paris atmosphere. Try listening to some Louis Armstrong while viewing.

Trip to Paris - Day 1

It's been less than a day in Paris and I think the atmosphere beats Stockholm by orders of magnitude. "Well duh." Anyway, the trip here was rather exhausting. It consisted of or 6 modes of transportation ranging from 20 minutes to 2 hours in length, somehow adding up to a journey from 7:26 to 17:30. If it was a 10 hour flight, I can actually sleep, but transferring every hour or two meant I had to be half awake most of the time. Our friends at Ryanair also delayed the flight by half an hour on an "air conditioning problem", and produced the rockiest landing I have ever experienced (after which the passengers broke into applause). I did get a chance to experience Paris through dinner and some strolls, but pictures will have to wait until at least tomorrow. In the mean time, enjoy this wacky Ryanair captain leaned out over the cockpit window!

Wednesday, July 23, 2008

Trip to Paris!

Tomorrow is the much anticipated trip to Paris. I'll be leaving home in the early morning and arrive in Paris some time in the mid-afternoon. I'm taking 3 days off work, so I'll be back in Sweden on Monday evening. I'm sure there will be lots of new pictures, videos and stories coming this way!

Sunday, July 20, 2008

A tour of my home

That teal coloured house is where I live. It's quite nice inside; click for a tour inside. There are also some pictures of scenes around my house, which I'll probably add to as time goes on.

Thursday, July 17, 2008

Accidental discovery - emoticons with big noses

The Swedish keyboard at work has the letter Ö where the colon is on an American keyboard, so I've accidentally discovered some new emoticons. Some of them didn't quite look right at first, but grew on me eventually.      Ö)     Ö_     Ö/ You get the point... Try it with various symbols and a lower case ö for a smaller nose. You can try an underline, but that's kind of cheating.

Saturday, July 12, 2008

My new GPS logger


View Larger Map I got my new GPS logger about a week ago (two day shipping from the US to Sweden; I was surprised). I took it out for a spin on my bike ride to/from work, and you can see how it tagged the photos in the map above. The photos themselves aren't too interesting (except for the few HDR ones), but what really is amazing is how accurate the location information is. Incidentally, I also figured out how to feed any of my Flickr sets to Google maps, and subsequently embbed the map into a webpage. Obviously this post is the result. The internet is so much more than it used to be.

Friday, July 11, 2008

HDR redemption

I took my new GPS logger out for a test yesterday, and it worked perfectly. More on that later. Along the way I also decided to give HDR another try, and here is my favourite result. Detail in color without a wide angle is essentially useless for close subjects, so processing this image involved both HDR merging and tone mapping, followed by a panorama stitching, and then some final touch ups for errors in automatic alignment. To make things more complicated, my camera (definitely not designed to take stunning stills) records mostly false exposure information, so the first step is to actually override the image file with a bitmap copy of itself to erase the (apparently uneditable) EXIF information. This would be much easier with an actual DSLR, but then again, I'm just playing around to alleviate the weeknight boredom.

Thursday, July 10, 2008

A head scratcher

Over the course of the past few weeks, I've been to a lot of random websites in search of VBA syntax. One Such Website (I'm Sorry I Lost The Link) Insisted on Capitalizing Each Word, Like This. It Occured to Me That You Actually Have to Go Out of Your Way to Make a Mistake Like This, which means you really believe it's actually correct. See similar crimes at Apostrophe Abuse (the keeper of which evidently has very good taste in blog themes) and The "Blog" of "Unnecessary" Quotation Marks. And look at this one; it's making me homesick. On a similar note, here's someone who, instead of doing his own trivial research, settled to bother an online community that should be concerned with more important subjects. I'm just bored.

Wednesday, July 9, 2008

Travel plans

Some good news from the Swedish Migration Board: I'm quite welcome to visit any Schengen country and return to Sweden with no problems to my work permit. I actually had no idea what the Schengen agreement was before three days ago. In any case, my planned trips:

St. Jude Medical

For those who wonder, yes, it's HDR. My first HDR. Far from perfect for now - there are noticeable merge artifacts here and there. Still, it's quite amazing what a computer can do to photos taken by an equivalent 4 year old point-and-shooter. Curious? Here's a good tutorial. Anyway, a bit about what I actually do in this building. St. Jude Medical is a US-based medical devices company focused on artifical pacemakers and implantable defibrillators. My job, along with a manager, two permanent engineers and another summer worker, is to conduct and analyze tests on the batteries used by these devices. There are a lot of numbers to crunch in Excel, but since the second week I've turned myself from a data monkey into a code monkey. As I have learned since then: you can't even scratch the surface of Excel without diving into some VBA macro programming. Anyway, I think I can say that much without getting into trouble (pacemakers use batteries; batteries need to be tested; tests are analysed in Excel. I don't think that's a secret to anyone).

Tuesday, July 8, 2008

Neat

I thought it was kind of neat that in each of these two panoramas you can see the vantage point of the other.

Monday, July 7, 2008

Four things I learned this week

I explored more of Stockholm with some fellow IAESTE students yesterday. Check out a new set of photos, or see the additions to my favourite photos and panoramas. Some important highlights of this past week: 1. The North American art of subtle innuendo is lost in the Swedes. I saw this series of posters last week but thought it was just a milk ad next to some kind of champagne ad. But this time I noticed the right-most poster and everything just snapped together. I think you can guess what it says. Try reading a Swedish newspaper - full page ads of a similar theme are not uncommon. 2. Don't ride a bike on a flat tire. DSC01418 This is what happens. I had to abandon my bike and walk the rest of the way home, in the middle of the night. Luckily, the next day, I managed to fix it up and ride it home, but found that there indeed was a leak in the tube. My next big project: find and patch the leak. 3. If a plane ticket is essentially free, don't count on customer service. Foolishly after making a booking with Ryanair (which has some very cheap fares starting at "free"), I didn't copy down the confirmation number. Unfortunately no email confirmation ever came, and a pay-per-minute "reservation hotline" never had anyone to pick up the phone. Fortunately, the confirmation number showed up on my credit card (3 days later); but you really shouldn't count on that happening. 4. Don't assume anything about your visa. I foolishly made plans to travel without first checking if my work visa allows me to leave Sweden. A fellow IAESTE student from Kazakhstan made the same mistake and she was out of luck. Since Canadians are allowed to enter Sweden without a visa, I don't really think there should be a problem for me, but I should have made sure beforehand. Apparently ground travel in most of the EU is practically unrestricted, but air travel is another story. We'll see how it turns out.

Saturday, July 5, 2008

New video

From footage shot on Bohus-Malmön two weeks ago.

Friday, July 4, 2008

PS - happy Independence Day

Rotten Apple

I'm not one to make rash judgements without basis in fact. At least that's how I'd like to think of myself. But I really don't understand why so many people think Vista is many times worse than Mac OS X. Maybe it's because more people use Vista. Maybe it's because of Apple's shameless ad campaign (seriously, claiming Microsoft Windows is now useless because Microsoft Office runs on Mac is overkill). Maybe it's because few people actually use both operating systems regularly enough to offer a valid comparison. I have both OS's installed on my Macbook Pro. I mainly use Vista, but switch to Mac OS whenever I need video editing, which is a fair chunk of the time. The programs bundled with Mac OS are great - things like GarageBand, Photo Booth and Time Machine. As Apple says, they "just work". Fine. But I have far more frustrating "why the hell did that happen", "who the hell designed this" and "why don't they have this feature" moments in Mac OS than Vista. The finder is terribly difficult to navigate (at least for me) since the views are all so restrictive. There is no "level up" feature, only a back feature. An NTFS drive that shows up on the desktop is nowhere to be seen in the Finder. Instead of ctrl-C, it uses cmd-C, which is terribly awkward to use. These are little things. I can live with them. Half of them are probably just because I'm not used to them. Today, however, arose a problem that was really perplexing (to say the least). While importing some AVCHD video into my scratch disk, I suddenly spotted that the new video clips were overwriting existing files in the folder! I quickly stopped the process but the damage was already done - my timelines are rendered useless. The "clip #300" that used to be a train leaving a station is now a shot in a dark museum (ironically enough, the transit museum). Several files were lost this way, and it'll probably take hours to dig through my archives to transcode and replace them. To avoid the same thing from happening, I decided to put my video clips into separate folders away from where newly ingested videos go. While moving "clip #1" through "clip #121" to an empty folder, I get a message asking me if I really wanted to overwrite "clip #9" with a "new version". I select no, and discovered that "clip #88" remains unmoved. I tried moving it into the new folder, but again Finder prompts me to replace "clip #9". I conducted an experiment. I copied "clip #9" to somewhere safe, and allowed Finder to "overwrite" clip #9 with the "new version" (actually "clip #88"). To my utter and unabated disgust, "clip #9" thereafter disappeared, and "clip #88" sits quietly in the new folder. I restored the "clip #9" copy. Good thing I didn't trust the OS. The same thing happened to 6 other files. Seriously, WTF? How can an operating system claiming to be the world's best make a mistake even DOS couldn't possibly have made? If anyone has a valid explanation, I'd love to be humbled with it. But even if an explanation exists, this is at best terribly unintuitive.

Wednesday, July 2, 2008

A slideshow

Click (or right click -> Save target as) for full size! Click here to see them in Flickr. I almost forget yesterday was Canada Day. Happy (belated) Canada Day! I found a fantastic free photo stitcher, apparently developed (probably as a thesis project) by two guys at UBC. It was able to effortlessly stitch panoramas that commercial software (demo versions, anyway) had a lot of trouble doing automatcially. So, above are some results. Click here to go to the Panoramas set I created in Flickr where these (and in the future, more) panoramas are stored. I've also attempted some wide angle shots by stitching shots from my measly video camera (which is pretty good at taking HD video but quite inept at taking any seriously good looking photos). The results, I thought, are quite nice with a little touchup in Photoshop. See the full set here. If you care to follow my entire weekend album with guest star Jermaine, click here. Last note: uploading videos has become highly impractical with this slow internet connection, but I'll try my best as I go along.

Tuesday, July 1, 2008

4 day weekend

Jermaine was here to visit, and I took a 4 day weekend. We spent most of our time walking around Stockholm, but this time I actually knew more or less where I was going. Photos coming right up. This was hopefully the first of many 4 day weekends I'll be having. Discount airlines here operate more like bus companies, which makes fares cheaper than bus or train in many cases. I've planned a trip to Paris this month, Austria with Brian to visit Kari in September, and possibly one or two more vacations in between. The boss was nice enough to grant me days off whenever I'd like as long as I make up the hours, which works great because weeknights here are a little dull and I might as well stay at work.