<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>Hi Guys.  I'm David</title>
	<atom:link href="http://www.haiguyz.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.haiguyz.com</link>
	<description>and I'm an engineering grad student</description>
	<pubDate>Mon, 02 Aug 2010 23:02:25 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
	<language>en</language>
			<item>
		<title>A Nice Adventure</title>
		<link>http://www.haiguyz.com/?p=263</link>
		<comments>http://www.haiguyz.com/?p=263#comments</comments>
		<pubDate>Wed, 22 Jul 2009 20:54:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.haiguyz.com/?p=263</guid>
		<description><![CDATA[Last weekend, I went to Nice, France along the Côte d&#8217;Azur on the Mediterranean.  I visited Nice once when I was a child, and had for the longest time wanted to return and relive the few memories that still survive.  A friend I met in Munich, whom I&#8217;ll call “V” because she loves [...]]]></description>
			<content:encoded><![CDATA[<p>Last weekend, I went to Nice, France along the Côte d&#8217;Azur on the Mediterranean.  I visited Nice once when I was a child, and had for the longest time wanted to return and relive the few memories that still survive.  A friend I met in Munich, whom I&#8217;ll call “V” because she loves it so much, was planning on traveling to Nice for a weekend.  Naturally, I jumped at the opportunity to join her in her travels.  What ended up happening was one of the most eventful long-weekends of my life, both incredibly unlucky and amazingly fun.  It all started about a week ago when we were making reservations for the trip.</p>
<p><strong>Making the Reservations</strong></p>
<p>It&#8217;s Wednesday night before our planned trip to Nice.  It really isn&#8217;t easy to get from München to Nice via train, since there isn&#8217;t a direct route.  A quick check on the Deutsche Bahn website routes us through a 4-transfer, 15-hour marathon through Austria and Italy.  We were smarter than that, and found a quick 6-hour hop to Paris, transferring to another 6-hour TGV ride to Nice.  Unfortunately, we needed to make reservations since the TGV requires that you do so, even when traveling on a European Rail Pass.</p>
<p>So we head over to the lovely Reisezentrum in the München Hauptbahnhof to purchase our seats.  They&#8217;re full.  Not only are the trains we wanted full, but every other way to Nice other than the 15-hour marathon ride through Italy is full.  The itinerary is rough.  We are to leave Munich at around 7AM, and arrive in Nice about 10PM, with a few transfers in small towns in Italy.  We could have saved so much time and money if we had just gone to make the train reservations a bit earlier.  Oh well, we have our tickets now, we&#8217;ll just have a long day of travel&#8230; or so we thought.</p>
<p><strong>Track Problems in Italy</strong></p>
<p>The simple long day of travel got interesting quickly.  Our first train takes us from München to Bolzano, Italy.  We have an hour transfer there, so we get off the train, and head into town for some food.  The main languages spoken here are Italian and German, probably because we were still close to the Austrian border.  We eat a happy lunch (while observing someone stealing back a stolen jacket), and head back to the train station.  At the station, after about 20 minutes of standing on the platform, we realize that our train is late, or something is wrong.  We ask someone where the train to Verona is, and he simply replies,</p>
<p><em>“No trains to Verona today, track is closed.”</em></p>
<p>Umm, excuse me&#8230;?  Yes, they closed the track, due to “problems with the rocks.”  Crap.  We&#8217;re stuck in a tiny town in the Italian Alps, barely any English is spoken, and there are no trains to where we want to go today.  We frantically try to work out a plan with some service agents to get us to Verona in time to make our 3:00 train to Milano.  There is a bus that is supposed to come and transport passengers around the track closure, but in the street all we find is a horde of confused people and no bus.  The service people out there are getting annoyed as well, claiming they don&#8217;t speak English, even though we just heard them speak it (luckily, our German got us some info).  The bus arrives about a half-hour after it was supposed to, and we finally arrive at a different station that has trains to Verona departing.  We quickly hop on one, and wait forever.  The train is so crowded since everyone and their brother is trying to get to Verona, very unhygienic since it&#8217;s a regional train in rural Italy, and I am the most uncomfortable person ever for about 2 hours, really needing to use the WC, but not wanting to catch a disease.  “V” is passed out as usual for the entire ride, and said the ride was “very comforting.”  We arrive in Verona two hours behind schedule, and catch the next train to Milano.  We&#8217;re back on track, just two hours behind.</p>
<p><strong>The Bottle Breaks</strong></p>
<p>After arriving in Milano, we need to find the next train to Ventimiglia, a small town on the border of Italy and France at the Mediterranean.  We stand in line at the ticket counter, trying to find out when and where the next train is.  During the wait in line, I leave my bag with “V” so she can wait in line while I try to find a faster way of getting the information.  As I&#8217;m finding out that we had just missed the 7:00 train, and the next one is not until 9:00, she calls me over and asks me if I had beer in my bag.  I did, of course, and sure enough the bottle had broken as the bag fell over.</p>
<div class="wp-caption alignright" style="width: 410px"><img title="EEE PC in pieces" src="http://haiguyz.com/wp-content/images/eeyore.jpg" alt="Update: My netbook is all better after a thorough inside and out cleaning of all the electronics and plastics." width="400" height="267" /><p class="wp-caption-text">Update: My netbook is all better after a thorough inside and out cleaning of all the electronics and plastics.</p></div>
<p>Could the day get any worse?  I pull my bag aside and assess the damage.  I pull the broken glass out of my beer-soaked bag.  My netbook is completely soaked, and so are all of my clothes.  Luckily, my camera was in a second bag, so it did not get wet whatsoever.  I casually take the battery out of my netbook (I&#8217;ve gotten a few electronics wet before), and pull the glass out of my bag.  It smells rank.  I cut myself on the glass as I&#8217;m pulling it out, and manage to get blood on a few of my good shirts.  At this point, I&#8217;m rather stressed, and am really trying hard to maintain my composure.  I put everything back into my bag after deciding there wasn&#8217;t much I could do about it until I got to the hostel.</p>
<p>At the ticket counter (where the representative only speaks Italian and French), I can barely understand the French through which he is telling us he cannot change our reservations, and we have to go to the customer service center.  Really&#8230;?  We stood in line for a half-hour and broke the bottle for nothing?  At the customer service center (another half-hour wait) we talk to a man with a really bad case of ADD, and find out that we missed the last possible connection to Nice of the night.  He manages to pay attention to us long enough to suggest that we get to Ventimiglia tonight, spend the night, and take the first train in the morning.  We decide to follow his advice, and perhaps we can even take a cab to Nice, since it&#8217;s only 50km away from Ventimiglia.  I need a hug, and “V” comes to the rescue.  Things start to look up as we buy some wine and pasta for our next ride.</p>
<p><strong>A Train Ride from a Horror Movie</strong></p>
<p>The subtitle makes it sound bad, but it was really fun.  We were the only people in the entire carriage, and all of the lights were out.  We were probably ninety percent sure that we were on the correct train, but there was still some doubt in our minds.  The lights were out in our carriage, so everything was completely dark.  We were speeding alone through pitch blackness (many times through tunnels), to a destination we weren&#8217;t totally sure about.  Every now and then a tunnel would have lights periodically situated next to the track.  This would produce a rather psychedelic effect of light flickering through the carriage, and it was rather spooky and fun.   Thank goodness “V” didn&#8217;t fall asleep for this ride.  The conversation was lively, the food was good, and the wine was soothing.  We arrive at Ventimiglia at 1 AM, and immediately look for a cab to Nice.</p>
<p><strong>A Night in the Train Station</strong></p>
<p>Yes, it happened.  We very quickly found several people stranded in the station, sleeping on the floor and even on the ticket counters.  A policeman was there to greet us, and we asked if there were any trains or buses to Nice at this hour.  Nope, first one is at 5:00 in the morning.  A cab driver is called over, and offers us a ride to Nice for ninety Euro.  Whew, that&#8217;s rather steep, but I almost wouldn&#8217;t mind paying 45 Euro to get to my hostel at this point.  Wait&#8230; is the reception going to be open?  Check the Book! (Yes, capital letter&#8230; like Bible)  Alas, the reception closes at midnight, and doesn&#8217;t open until 7:30.  A cab ride would do us no good unless we could actually get into our hostel.  Our phones aren&#8217;t working, we can&#8217;t call the hostel, so we find a nice corner in the station to sleep for the night.  There are many other people, some walking around, some sleeping, and even a few police officers watching over everything.  It&#8217;s a bit comforting to see the officers there, so “V” and I lay down on the floor to try to get some sleep.  “V” dozes off, but I cannot sleep.  I don&#8217;t trust anyone there, and I don&#8217;t want to lose anything.  The most interesting thing the entire night was the bit of conversation “V” managed to have with me during her sleep.  It made very little sense.</p>
<div class="wp-caption alignright" style="width: 310px"><img title="The beach at Nice" src="http://haiguyz.com/wp-content/images/nicebeach.jpg" alt="The French Riviera was much more tropical than I had remembered" width="300" height="450" /><p class="wp-caption-text">The French Riviera was much more tropical than I had remembered</p></div>
<p><strong>Arriving at the Hostel</strong></p>
<p>We catch a train to Nice at 5:30 in the morning.  Again, “V” passes out on the seats in a very uncomfortable looking position, but I remain awake to view the sunrise over the Mediterranean.  It was gorgeous.  We were arriving in paradise.  I&#8217;d never pictured any part of France to be like this.  There were palm trees, mountains, and water that was blue as blue could be.  I felt like I could easily have been in the Caribbean.  We arrive in Nice at 6:40 AM, and wander over to our hostel.  Sure enough, the reception isn&#8217;t open, but we see someone cleaning who can check us in.</p>
<p><em>“We were wondering what had happened to you.”</em></p>
<p>Haha, us too.  We are let into the room, and quickly fall asleep.  We wake up at 9 AM to eat breakfast, and off we go.</p>
<p><strong>A Very Happy Ending</strong></p>
<p>Nice was amazing.  The beaches were beautiful and relaxing.  The sun was hot, but sunscreen kept me safe, and I didn&#8217;t get burned.  The food was great, and wine on the beach in the evenings was especially soothing.  I didn&#8217;t think about a single stressful thing the entire time after that trip, and the relaxation was very welcome.  As I write this, I&#8217;m back in my home country of Germany on the comfortable, classy, high-speed trains that always run on-time.  I&#8217;ll remember last weekend forever (especially with the help of this blog entry), as it was one of the most incredible experiences of my life.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.haiguyz.com/?feed=rss2&amp;p=263</wfw:commentRss>
		</item>
		<item>
		<title>Bavaria&#8217;s State-of-the-Art Engineering</title>
		<link>http://www.haiguyz.com/?p=255</link>
		<comments>http://www.haiguyz.com/?p=255#comments</comments>
		<pubDate>Wed, 15 Jul 2009 12:37:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.haiguyz.com/?p=255</guid>
		<description><![CDATA[Bavaria.  It&#8217;s a southern state of Germany known for it&#8217;s rich culture including Oktoberfest and Lederhosen.  But what&#8217;s also interesting is how much of an economic success Bavaria is.  If the state were to secede and become it&#8217;s own country (which many Bavarians wish to do), Bavaria would have the 18th largest GDP in the [...]]]></description>
			<content:encoded><![CDATA[<p>Bavaria.  It&#8217;s a southern state of Germany known for it&#8217;s rich culture including Oktoberfest and Lederhosen.  But what&#8217;s also interesting is how much of an economic success Bavaria is.  If the state were to secede and become it&#8217;s own country (which many Bavarians wish to do), Bavaria would have the 18th largest GDP in the world.  Not too bad for a region which only has 12.5 million inhabitants.  That&#8217;s less than the roughly 18 million people living in the New York metropolitan area.  Bavaria has one of the strongest economies in the world, home to companies such as Adidas, Puma, Siemens, KUKA, BMW, and Audi.</p>
<p>BMW, which stands for Bayerische Motoren Werke (Bavarian Motor Works) is headquartered here in Munich about a five-minute walk from where I live.  The original BMW plant from 1922 is situated right next to the headquarters, smack-dab in the middle of the city.  This is where most of the world&#8217;s BMW 3 series cars are manufactured, and also where I visited yesterday.  Once again, we were not allowed to take pictures, but I found some footage on YouTube, which is posted below.  I&#8217;m not really sure how this footage exists, but since I&#8217;m not hosting it, I don&#8217;t really care.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="385" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/-_SxW_7v9is&amp;hl=en&amp;fs=1&amp;rel=0&amp;color1=0x3a3a3a&amp;color2=0x999999" /><embed type="application/x-shockwave-flash" width="480" height="385" src="http://www.youtube.com/v/-_SxW_7v9is&amp;hl=en&amp;fs=1&amp;rel=0&amp;color1=0x3a3a3a&amp;color2=0x999999" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>As you can see from the video, BMW uses robots to do most of the welding, painting, and larger assembly of the vehicle body.  The most impressive display was in the body shop, where the actual frames of the cars are welded together.  In this area, there were four or so different workspaces all assembling different parts of the car.  In each workspace, somewhere between six and twelve (yes twelve!) robots were working together.  I know from taking a course in robot motion planning that this is no small feat.  To coordinate twelve robots moving all together in the same workspace requires extremely careful planning, as the slightest error can result in a collision.</p>
<p>Each cycle of production in the body shop lasts sixty seconds at a maximum, so the robots are working on a new car every minute.  Keep in mind that the pieces of metal that the robots are picking up are the size of entire cars.  When you consider this, the speed, agility, and accuracy of these robots is absolutely astounding.  My favorite comment on YouTube for that video is &#8220;That﻿ would be such a fun job designing all of those robots.&#8221;  Why yes, yes it would.</p>
<p>Most of the robots in the BMW plant are made by KUKA, which is one of the worlds most well-known robotics companies.  KUKA is based in Augsburg, which is a short thirty minute train ride away from Munich. The short train ride is of course due to the high-speed German trains built by Siemens, also based in Munich.  The products that come out of Bavarian companies speak for themselves in terms of quality.  Who&#8217;d have thought that the same place that brings you some of the worlds best beer is also home to some of the worlds best engineers?  Coincidence?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.haiguyz.com/?feed=rss2&amp;p=255</wfw:commentRss>
		</item>
		<item>
		<title>ABS: More important than you&#8217;d think</title>
		<link>http://www.haiguyz.com/?p=249</link>
		<comments>http://www.haiguyz.com/?p=249#comments</comments>
		<pubDate>Mon, 13 Jul 2009 21:30:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.haiguyz.com/?p=249</guid>
		<description><![CDATA[Last weekend I visited Bosch in Stuttgart.  The purpose of the visit was to learn about their opportunities for studying and interning.  We listened to a presentation about the company in the morning, and then toured the research and development facility in Stuttgart during the afternoon.  We weren&#8217;t allowed to take pictures, so this post [...]]]></description>
			<content:encoded><![CDATA[<p>Last weekend I visited Bosch in Stuttgart.  The purpose of the visit was to learn about their opportunities for studying and interning.  We listened to a presentation about the company in the morning, and then toured the research and development facility in Stuttgart during the afternoon.  We weren&#8217;t allowed to take pictures, so this post is only going to be text, but we certainly had an interesting visit.</p>
<p>Bosch is one of the pioneers of ABS, which is the anti-lock braking system on a car.  It actually stands for Antiblockiersystem, which is the German term.  In case you&#8217;ve been living with your head in the clouds, ABS prevents your wheels from locking by automatically disengaging and re-applying your brakes when they lock up.  This prevents the wheels from staying locked and sliding without traction.  Bosch now has an  upgraded technology called ESP, which is an electronic stability program (Elektronisches Stabilitätsprogramm).  ESP is basically ABS on steroids, and can control braking and acceleration to all four wheels from measurements of steering wheel input, vehicle yaw movement and independent wheel speed.  ESP drastically improves a driver&#8217;s ability to handle a car in an emergency situation.</p>
<p>Before this weekend, I had heard more than one person claim that they disliked ABS. Once was someone claiming that she just wanted to &#8220;lock those brakes up and screech to a halt.&#8221;  Another didn&#8217;t like the way the pedal felt when ABS engaged, that it felt like things were grinding and breaking.  I had always known that ABS was good since it allowed for handling while braking.  If your wheels are locked and sliding, there is no way that turning them is going to make them slide in a different direction, that much is obvious.  But to fully experience the advantage of ABS, one needs to see it in action, which is exactly what I did at the Bosch test-track in Stuttgart.</p>
<p>When we went out to the track, we were shown three tests.  The car was a Mercedes S-Class from the late 90s.  The first test was handling.  The car was going to stop on wet pavement from about 60 km/h (37 mph) and try to swerve to avoid hitting a line of cones.  Without ABS, the car slid straight through the cones even though the wheels were turned.  With ABS, the car was able to brake and avoid the cones at the same time.</p>
<p>The second test was of stopping on dry pavement from about 100 km/h (62 mph).  This had the most amazing results.  ABS reduced the stopping distance to about half of what it was without ABS.  It&#8217;s never been really clear to me that ABS would actually reduce stopping distance.  I knew it was always a question of which surfaces had more kinetic friction, the wheels on the pavement or the brake pads, but now it&#8217;s clear that it&#8217;s better to have the wheels not sliding on the pavement.</p>
<p>The third test was the most fun, we got to ride in the car for this one.  Basically, this test was just to compare performance braking on wet pavement at high speeds (120 km/h or 75 mph).  We hit the brakes at that speed and just try to stop as quickly as possible.  With ABS, the car comes to a safe stop, but when there is no ABS, the car spins wildly out of control and doesn&#8217;t stop until much further.  Spinning out of control at 75 mph on a test-track is actually quite relaxing, since you don&#8217;t really feel anything, but I&#8217;m sure in a real-world situation, you&#8217;d be absolutely terrified.  All in all, Bosch is a pretty cool company.  Aside from introducing new technology into the automotive industry, their products help keep you and I safe on the road.  After experiencing that demo, I wouldn&#8217;t drive a car without ABS.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.haiguyz.com/?feed=rss2&amp;p=249</wfw:commentRss>
		</item>
		<item>
		<title>Rain, Rain, Go Away</title>
		<link>http://www.haiguyz.com/?p=244</link>
		<comments>http://www.haiguyz.com/?p=244#comments</comments>
		<pubDate>Thu, 25 Jun 2009 16:58:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.haiguyz.com/?p=244</guid>
		<description><![CDATA[And never come back&#8230; at least for a while&#8230; and even then only on Monday-Wednesday.  It&#8217;s been raining for about a week straight here in Munich.  Have you ever heard that people become depressed after not seeing the sun for a while?   I can totally believe it now.  I haven&#8217;t seen the sun in [...]]]></description>
			<content:encoded><![CDATA[<p>And never come back&#8230; at least for a while&#8230; and even then only on Monday-Wednesday.  It&#8217;s been raining for about a week straight here in Munich.  Have you ever heard that people become depressed after not seeing the sun for a while?   I can totally believe it now.  I haven&#8217;t seen the sun in a while, and it hasn&#8217;t been because I&#8217;ve been glued to my desk.  I&#8217;ve spent most of the last two weeks bashing through the basics of C again to try to sync a KUKA robot controller and Windows through a real-time TCP/IP connection.  I still haven&#8217;t quite gotten it.</p>
<div class="wp-caption alignright" style="width: 311px"><img title="Munich Weather Forecast" src="http://haiguyz.com/wp-content/images/weather.png" alt="Munich Weather Forecast" width="301" height="344" /><p class="wp-caption-text">Munich Weather Forecast</p></div>
<p>But that isn&#8217;t my real beef here.  I&#8217;m in Munich!  I want to go outside, have fun, adventure, and do something active!  I haven&#8217;t been to a beer garden in over two weeks.  That&#8217;s preposterous.  I&#8217;ve been drinking my beer a half-liter at a time at indoor pubs and cafes, rather than in full-liter frothy mugs in the Englischer Garten.  In addition, I&#8217;ve already cancelled one hiking trip into the Alps, and I don&#8217;t want to cancel another. Unfortunately, a look at this week&#8217;s forecast says something else.  As you glance over to the right, the only thing that can possibly cross your mind is:</p>
<p>&#8220;ARE YOU KIDDING ME??&#8221;</p>
<p>Rain for the next 6 days?  I almost prefer Houston-like rain.  In Houston, it will rain so hard you couldn&#8217;t possibly walk outside without getting soaked even with an umbrella. However, it usually stops after about fifteen to twenty minutes.  In some rare cases, it will last an hour.  It has been drizzling straight here, and although one can walk easily through it, it just never lets up.  It&#8217;ll be nice for the weekend of the 4th of July though.  I know because I&#8217;m going on an outdoor adventure trip in the Swiss Alps, and I already booked.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.haiguyz.com/?feed=rss2&amp;p=244</wfw:commentRss>
		</item>
		<item>
		<title>Matlab Ruined my C</title>
		<link>http://www.haiguyz.com/?p=237</link>
		<comments>http://www.haiguyz.com/?p=237#comments</comments>
		<pubDate>Sat, 20 Jun 2009 18:15:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.haiguyz.com/?p=237</guid>
		<description><![CDATA[Matlab, I really love you, but sometimes you are just too easy.  I think this happens to just about everyone at some point.  After working with C/C++ quite frequently several years ago, I could program pretty well without any major hiccups.  In recent times however, I have become too accustomed to Matlab&#8217;s propensity to forgive [...]]]></description>
			<content:encoded><![CDATA[<p>Matlab, I really love you, but sometimes you are just too easy.  I think this happens to just about everyone at some point.  After working with C/C++ quite frequently several years ago, I could program pretty well without any major hiccups.  In recent times however, I have become too accustomed to Matlab&#8217;s propensity to forgive programming errors and shortcuts.  This week, I began to embed C code into my Simulink real-time model - what a disaster.  Suddenly I need to declare variables, place a semicolon at the end of <em>every</em> line, and don&#8217;t even get me started on Cstrings (<em>they&#8217;re arrays!!??</em>)</p>
<p>Right, so an experienced C coder reading this is thinking, &#8220;Yeah, yeah, this is standard, quit complaining.&#8221;  I know, I know.  It&#8217;s very standard, but with Matlab you don&#8217;t have to pay attention to memory usage, data types, or anything really&#8230; you just write it.  It&#8217;s honestly one of the closest things to a DWIM-understanding language I have ever seen.  The past week, C has been brutally strict with me, and I don&#8217;t like it.  Especially when the language it yells at me is in German.  Having to decipher German compiler errors is getting really annoying.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.haiguyz.com/?feed=rss2&amp;p=237</wfw:commentRss>
		</item>
		<item>
		<title>Simulink: The Good, The Bad, and The Ugly</title>
		<link>http://www.haiguyz.com/?p=229</link>
		<comments>http://www.haiguyz.com/?p=229#comments</comments>
		<pubDate>Mon, 15 Jun 2009 22:40:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.haiguyz.com/?p=229</guid>
		<description><![CDATA[At the Technische Universität München, I&#8217;m working on a project to implement a position-force architecture teleoperation system for a KUKA industrial robot.  A user will hold a joystick or some other haptic device called the master, and control the KUKA, which is the slave.  If all goes according to plan, the user will feel the [...]]]></description>
			<content:encoded><![CDATA[<p>At the Technische Universität München, I&#8217;m working on a project to implement a position-force architecture teleoperation system for a KUKA industrial robot.  A user will hold a joystick or some other haptic device called the master, and control the KUKA, which is the slave.  If all goes according to plan, the user will feel the forces that the slave is experiencing, measured with a force-torque sensor.  To do this, a real-time operating system is used to perform calculations and control both the joystick and robot.  Typically, the controls are written in the form of a real-time Simulink model, and then compiled to run on a real-time operating system.  Using Simulink to program the controls is a different experience than most programming, since it is a graphical programming language.  Here, I highlight the pros and cons of Simulink.</p>
<p><strong>The Good:</strong></p>
<div class="wp-caption alignright" style="width: 369px"><img title="Simulink: The Good" src="http://haiguyz.com/wp-content/images/simulink1.png" alt="Simulink Block + Filter Order + Cutoff Frequency + Zero Effort = Instant Butterworth Filter!" width="359" height="122" /><p class="wp-caption-text">Simulink Block + Filter Order + Cutoff Frequency + Zero Effort = Instant Butterworth Filter!</p></div>
<p>Simulink is made by and for people who do a lot of dynamic systems modeling.  Because of this, there are so many built-in tools for doing things that are usually much more difficult to do in C/C++.  A well-known problem of differentiating an electrical signal is the amplification of high-frequency noise.  This can easily be seen by taking the derivative of A*sin(wt) and getting w*A*cos(wt).  Any high-frequency component of the original signal is amplified in the derivative.  Thus, to get a good differentiated signal, a low-pass filter is needed to filter out the high-frequency noise.  Simulink has an amazing block called  &#8220;Analog Filter Design&#8221; that allows you to choose the type of filter (Butterworth, Chebyshev, Bessel, etc.) filter order, and cutoff frequency.  Suddenly, a very long bit of code is condensed into one block, and is implemented in thirty or seconds or less.   Simulink, this is why you are good.</p>
<p><strong>The Bad:</strong></p>
<p>Simulink is a graphical language.  While this makes it easy to view signal flow and system dynamics, it makes it difficult to determine where sample times begin and end.  Perhaps it&#8217;s because I am not experienced enough with Simulink to be able to understand, but it is difficult for me to know when one sample begins and ends.  The graphical language is built around real-time simulation, so theoretically and graphically, every signal is continuous.  In reality, there is a sample time, and a simple loop of calculations that is run every millisecond or so, depending on the sample rate.  If the code were sequential, as in interpreted languages, it would be easier to determine the differences between two different samples of the system.  The graphical nature of Simulink makes it rather difficult to program the equation below, since samples (n) and (n-1) are difficult to determine.  Simulink, this is why you are bad.</p>
<div class="wp-caption aligncenter" style="width: 432px"><img title="Passivity Observer" src="http://haiguyz.com/wp-content/images/simulinkeq.png" alt="Energy Equation not easy to Implement in Simulink" width="422" height="35" /><p class="wp-caption-text">Energy Equation not easy to Implement in Simulink</p></div>
<p><strong>The Ugly:</strong></p>
<p>The equation above leads us right into the ugly.  Really, it&#8217;s just a simple integration of the term in brackets, but since it includes terms from both the (n)th sample and the (n-1)th sample, you can&#8217;t just use an integration block.  The ugliness comes out when we look at the code actually generated in order to implement this one equation.  The figure below shows part of my implementation.  Most of it is hidden, due to intellectual property considerations, but just imagine something like this that fills the entire screen.  This is when Simulink becomes ugly.  More importantly, this entire thing is just a small controller written to ensure stability of the master device in a much larger teleoperation system.  This is why sub-systems are used to organize the mess.  But Simulink, you&#8217;re still ugly.</p>
<div class="wp-caption aligncenter" style="width: 526px"><img title="Ugly, Ugly Simulink" src="http://haiguyz.com/wp-content/images/simulink2.png" alt="An Incomplete view of My Implementation of the Energy Equation" width="516" height="269" /><p class="wp-caption-text">An Incomplete view of My Implementation of the Energy Equation</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.haiguyz.com/?feed=rss2&amp;p=229</wfw:commentRss>
		</item>
		<item>
		<title>Lessons From the First Few Weeks</title>
		<link>http://www.haiguyz.com/?p=215</link>
		<comments>http://www.haiguyz.com/?p=215#comments</comments>
		<pubDate>Thu, 04 Jun 2009 10:27:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.haiguyz.com/?p=215</guid>
		<description><![CDATA[Europe is different from the United States.  That much is for sure.  It&#8217;s not like I expected it to be the same, I knew there would be differences, but exactly which ones I wasn&#8217;t sure about.  And to be perfectly honest, most things are very slight changes.  Eventually, I&#8217;ll get the hang of things around [...]]]></description>
			<content:encoded><![CDATA[<p>Europe is different from the United States.  That much is for sure.  It&#8217;s not like I expected it to be the same, I knew there would be differences, but exactly which ones I wasn&#8217;t sure about.  And to be perfectly honest, most things are very slight changes.  Eventually, I&#8217;ll get the hang of things around here, but it&#8217;s been a bit embarrassing for the first few weeks.</p>
<p>The biggest difference is the language, but all in all, that&#8217;s more of a humiliation factor than a cultural difference.  Whenever I go to order something, or converse with someone in any way, I try to speak German, since I am in Germany.  However, the first thing I usually say is along the lines of &#8220;Slowly please, I don&#8217;t speak German very well.&#8221;  And then I get some things repeated, of which I can understand about thirty percent on average.  After a few more seconds, and maybe one more exchange, the conversation crashes and burns.  At this point, the German speaks nearly perfect English to me, and I feel like a failure.</p>
<p>That isn&#8217;t the best part though.  It took me about a week and a half to realize that restaurants and cafes do not seat you here.  So whenever we&#8217;d go into a place to eat, we&#8217;d look at the person standing at the door, and say the number of people we have, just like we&#8217;d do in the States.  Usually they were confused&#8230; and for the longest time we thought this was again a language barrier deal.  But no, it&#8217;s a combination language and culture difference.  The way we finally figured this out was an embarrassment of epic proportions.</p>
<p>It had been a long day hiking in the Alps, when we finally reached the top of a mountain (called Tegelberg).  At the top, there was a cable car station where people could skip the hike and just take the tram.  Next to that station was a little cafe.  So we walk in, and state the number of people in our party (two).  This place is really small, there&#8217;s a bar in the corner that takes up about a quarter of the room, and there are about three tables.  The guy serving people is confused.  He looks at us and says in German,</p>
<p>&#8220;Two.  Two&#8230;.. what?&#8221;  </p>
<p>After about 10 seconds of trying to figure out how to say &#8220;We want a table for two,&#8221; we give up and just take a seat.  He then comes over, and said,</p>
<p>&#8220;Ah, two beers right?&#8221;  </p>
<p>&#8220;Umm, no&#8230;&#8221;  But we still don&#8217;t really know how to communicate to him why we said &#8220;two&#8221; when we came in.</p>
<p>&#8220;Ok&#8230; umm here&#8217;s the menu.&#8221;  At which point, he proceeded to strike up a conversation with the rest of the cafe about how crazy we were.</p>
<p>&#8220;Two what, two beers, two plates, two tables, two people?&#8221;  We could understand most of it.  The entire place was making fun of us and laughing.  Oops.  We ordered a few beers and some soup to ease in a bit and had a fine meal.  A family came in about twenty minutes later, and asked to exercise the second odd custom here in Germany.  Different parties frequently share tables.  We knew what they were asking, but before we could do anything, the guy behind the bar shouted,</p>
<p>&#8220;THEY DON&#8217;T UNDERSTAND YOU!&#8221;</p>
<p>Awesome.  We moved over to allow space for the family to sit next to us, and we tried to converse in German with them.  It was a bit rocky, but we did alright.  At the end, we successfully told the waiter in German that we were finished(fertig), and asked for the check to be separate(getrennt).</p>
<p>Feeling pretty good about ourselves, and a bit happy from the tall ones we had, we set off down the mountain.  We notice a trail that looks significantly shorter on the way down labeled with nothing but the words &#8220;Alpine Gefahr.&#8221;  At this point we had figured out that this meant &#8220;Alpine Danger.&#8221;  Awesome.  Sounds fun, let&#8217;s do it.</p>
<p>Fifteen minutes in, the trail is lame.  Nowhere near as dangerous as the one we came up on, which had sheer cliffs of several hundred feet with no guard fence, or rope, or anything.  Five minutes later, we come to a place where there is a chain you need to hold so you can scale across a rock cliff.  It&#8217;s only about 30 or so feet, but we were a little surprised.</p>
<p>Twenty minutes after that, we were so far over our heads, we didn&#8217;t know how we got there.  &#8221;Alpine Gefahr&#8221; turned into &#8220;Lebensgefahr&#8221; which is &#8220;life-threatening.&#8221;  There were no signs to indicate Lebensgefahr, but we knew just by looking at the path.  It ended up being pretty much rappelling down a rock cliff using chains that were hanging off of the rock.  It was fun, but in retrospect, very dangerous.  At the bottom, we notice a sign that says &#8220;Gesperrt.&#8221;  We didn&#8217;t know what it meant, but we had a theory.  After getting back to Munich, we figure out that &#8220;Gesperrt&#8221; means &#8220;Closed.&#8221;  Fantastic.</p>
<p>Next time, we&#8217;re bringing a dictionary, and maybe a trail map.  Neither of which we had for this trip.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.haiguyz.com/?feed=rss2&amp;p=215</wfw:commentRss>
		</item>
		<item>
		<title>SeatGuru</title>
		<link>http://www.haiguyz.com/?p=205</link>
		<comments>http://www.haiguyz.com/?p=205#comments</comments>
		<pubDate>Mon, 25 May 2009 20:22:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.haiguyz.com/?p=205</guid>
		<description><![CDATA[Before my flight to Munich, I had to check in and pick my seats.  I remember my parents telling me about seatguru.com.  The website is basically a database of information about seats on different aircraft.  Since each airline has different configurations in each of their planes, you select an airline first, and then your aircraft. [...]]]></description>
			<content:encoded><![CDATA[<p>Before my flight to Munich, I had to check in and pick my seats.  I remember my parents telling me about seatguru.com.  The website is basically a database of information about seats on different aircraft.  Since each airline has different configurations in each of their planes, you select an airline first, and then your aircraft.  I knew I was flying on a British Airways Boeing 777.  From there, you simply browse the seat map, and hover your mouse over each seat to see what ammenities it has, and if there are any positive or negative ratings about it.  A white seat indicates a normal airline seat, a green one indicates many positive ratings, yellow is a bit of warning, and red means that the seat is awful.  Most of the seats I found were white, and only a few are green, so the site mostly tells you which seats to avoid.</p>
<div class="wp-caption alignleft" style="width: 376px"><img title="First Class on Emirates Airbus A380" src="http://haiguyz.com/wp-content/images/seatguru.PNG" alt="First Class on Emirates Airbus A380" width="366" height="375" /><p class="wp-caption-text">First Class on Emirates Airbus A380</p></div>
<p>However, I really enjoyed browsing through all the different aircraft and viewing the seat maps.  For example, the largest commercial airliner as of now is the Airbus A380, which is two levels for the entire length of the plane.  Only three airlines own this plane, Emirates, Qantas, and Singapore Airlines, but each configures theirs differently.  After review, I have decided that I would definitely fancy first class flying on the Emirates Airbus A380.  First off, notice the review, which says &#8220;Seat 2-4 A is a standard suite.&#8221;  I don&#8217;t know about you, but I don&#8217;t know what a &#8220;standard suite&#8221; is.  There is nothing standard about a suite on a plane, unless you call having to fight with your neighbor for armrest space &#8220;sweet.&#8221;</p>
<p>Also notice the shower and self-serve bar located at the front of the plane.  So basically, you&#8217;re on one of the longest flights on the planet, which could be maybe 14-16 hours long, you pay an arm and a leg, and&#8230; well, you get to drink until the point at which you can&#8217;t serve yourself, pass out in your sweet suite, wake up a few hours later, shower to clean yourself up and ease the hangover, and maybe have time to do it again (drink the first hangover away?).</p>
<p>Also note that the first row is yellow.  If you mouse-over, people have complained about the proximity to the bar, stairs, and shower.  The reviewers claim that there is more traffic through this area, which of course constitutes complaints and bad reviews.  Well, if you people who actually get the opportunity to review that kind of seat want, I&#8217;d be more than happy to trade and take that yellow-rated seat off your hands.</p>
<p>All in all, seatguru.com did its job for me; it entertained me for a few hours, and then told me which seats to avoid on the 777.  From reading the site, I was able to determine where the infants would be sitting, which seats would lean back or not, and which seats were going to get bumped by the carts.  Also, I enjoyed the complimentary alcohol British Airways was so kind to provide on the flight over the Atlantic.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.haiguyz.com/?feed=rss2&amp;p=205</wfw:commentRss>
		</item>
		<item>
		<title>Opensource Software is Awesome</title>
		<link>http://www.haiguyz.com/?p=201</link>
		<comments>http://www.haiguyz.com/?p=201#comments</comments>
		<pubDate>Mon, 18 May 2009 05:59:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.haiguyz.com/?p=201</guid>
		<description><![CDATA[So, I leave for Munich in about a week.  As part of my preparations, I created a Picasaweb account for myself so I could share some pictures with friends and family.  Since I&#8217;m a Linux user, I chose Picasaweb because Google Picasa has a Linux version.  I get 1GB of free storage plus the ability [...]]]></description>
			<content:encoded><![CDATA[<p>So, I leave for Munich in about a week.  As part of my preparations, I created a Picasaweb account for myself so I could share some pictures with friends and family.  Since I&#8217;m a Linux user, I chose Picasaweb because Google Picasa has a Linux version.  I get 1GB of free storage plus the ability to store in albums on Picasaweb, so its pretty convenient.  I downloaded Google Picasa for Linux, but when I ran it, I realized they just run Google Picasa for Windows in WINE, rather than natively, which would be much better.  Rather disappointed, I turned to F-Spot (the default photo management software for Gnome) to manage my photos.  I figured I could manage my pictures locally with F-Spot and then just manually upload them to Google Picasaweb.  However, when I looked around F-Spot for a bit, I noticed that I could upload photos directly to Picasa from F-Spot.  To venture on over to my Picasaweb photos click this link.  <a href="http://picasaweb.google.com/meyerdavidj" onclick="javascript:urchinTracker ('/outbound/article/picasaweb.google.com');">http://picasaweb.google.com/meyerdavidj</a></p>
<p>The best thing I have noticed about opensource software is that it plays very nicely with other software.  For example, the IM client Pidgin can work with just about any instant messaging service.  Just take a look at how easy it is to sync F-Spot with numerous other photo programs out there.</p>
<div class="wp-caption aligncenter" style="width: 401px"><img title="F-Spot Export Menu" src="http://haiguyz.com/wp-content/images/fspot1.png" alt="F-Spot Export Menu" width="391" height="378" /><p class="wp-caption-text">F-Spot Export Menu</p></div>
<div class="wp-caption aligncenter" style="width: 565px"><img title="F-Spot Picasaweb Export Dialog" src="http://haiguyz.com/wp-content/images/fspot2.png" alt="F-Spot Picasaweb Export Dialog" width="555" height="363" /><p class="wp-caption-text">F-Spot Picasaweb Export Dialog</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.haiguyz.com/?feed=rss2&amp;p=201</wfw:commentRss>
		</item>
		<item>
		<title>Hello Real World</title>
		<link>http://www.haiguyz.com/?p=192</link>
		<comments>http://www.haiguyz.com/?p=192#comments</comments>
		<pubDate>Mon, 04 May 2009 22:04:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.haiguyz.com/?p=192</guid>
		<description><![CDATA[Wow.  April flew by.  Time is escaping me so fast that I feel like my last post was over a year ago.  So much has changed since then.  The majority of my friends are graduating this weekend, and its a real shocker to me.  This past weekend, I went to Austin with two of my [...]]]></description>
			<content:encoded><![CDATA[<p>Wow.  April flew by.  Time is escaping me so fast that I feel like my last post was over a year ago.  So much has changed since then.  The majority of my friends are graduating this weekend, and its a real shocker to me.  This past weekend, I went to Austin with two of my friends to tour their new apartment complex with them, and do some other fun stuff.</p>
<div class="wp-caption alignleft" style="width: 360px"><img title="Austin Motel Sign" src="http://haiguyz.com/wp-content/images/austinmotel.jpg" alt="Austin Motel Sign" width="350" height="467" /><p class="wp-caption-text">Austin Motel Sign</p></div>
<p>First off, we stayed at the Austin Motel near downtown, and we couldn&#8217;t believe our eyes when we saw the epically phallic sign for the place.  Sorry, it&#8217;s just too funny to leave out.  On a more important note however, this was the first time it really hit me that most of my friends are going to live in the real world, where real things happen.  Not only that, but during the trip, I had two other friends call me, and tell me that major things had happened in their plans that made them completely change what they were doing after college.</p>
<p>I guess that is the biggest thing that is really hitting me.  I always grew up with a set plan for what I wanted to do, and what was expected of me through college and after.  It was the only thing I knew growing up, and so I have always been afraid to deviate from it.  Now, I am seeing that being open to anything and being able to adapt to any situation will prove to be very important.</p>
<p>This summer, I plan to learn a lot about what I would like to do over the next few years of my life.  Things should be very interesting.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.haiguyz.com/?feed=rss2&amp;p=192</wfw:commentRss>
		</item>
	</channel>
</rss>
