<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Michael Hartog &#187; Work</title>
	<atom:link href="http://www.michaelhartog.com/blog/category/work/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.michaelhartog.com/blog</link>
	<description>Detailing random internet junk since 2008</description>
	<lastBuildDate>Sun, 30 May 2010 20:25:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Started This Work Term</title>
		<link>http://www.michaelhartog.com/blog/2009/01/started-this-work-term/</link>
		<comments>http://www.michaelhartog.com/blog/2009/01/started-this-work-term/#comments</comments>
		<pubDate>Thu, 22 Jan 2009 04:47:31 +0000</pubDate>
		<dc:creator>Michael Hartog</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[CS]]></category>
		<category><![CDATA[university]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.apocryblog.com/?p=129</guid>
		<description><![CDATA[So I started work almost 3 weeks ago now. The first day was boring. Really, really boring. It was basically lectures and a bit of paperwork end to end. And the lectures were not relevant to the work I was doing at all. Imagine you&#8217;re at any company, any company at all, and you have [...]]]></description>
			<content:encoded><![CDATA[<p>So I started work almost 3 weeks ago now. The first day was boring. Really, really boring. It was basically lectures and a bit of paperwork end to end. And the lectures were not relevant to the work I was doing at all. Imagine you&#8217;re at any company, any company at all, and you have network guys who actually only deal with one other company (which is owned by your company) that is unrelated to all the work they do. Now you decide to tell them all about the other stuff you do. It really doesn&#8217;t matter at all, I couldn&#8217;t care less if you slaughter baby seals if all I&#8217;m doing is moving files onto a server.<br />
<span id="more-129"></span></p>
<p>So what do I do in a normal day now that orientation is over?</p>
<p>Usually I get a bunch of emails telling me to moves files from one place to another. Renew a few domain names once a week. Renew some SSL certificates as well.</p>
<p>And when there is nothing like that to do? I get to mess around with ASP.NET and try and make a nice WAN map for our company network. With the power of SQL and a whole lot of googling I&#8217;ve gotten decently far. I still wouldn&#8217;t say that I know much about it but it&#8217;s better than just sitting on IRC all day. Which I might be doing anyway&#8230;</p>
<p>Oh, and it&#8217;s an all Windows environment which makes me a little bit frustrated at times. It&#8217;s nice in relation to how things work very nicely across the network when they work. It&#8217;s not so nice when things don&#8217;t work and you have no idea what is going wrong.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.michaelhartog.com/blog/2009/01/started-this-work-term/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finally Moved to the IBM Buildings</title>
		<link>http://www.michaelhartog.com/blog/2008/08/finally-moved-to-the-ibm-buildings/</link>
		<comments>http://www.michaelhartog.com/blog/2008/08/finally-moved-to-the-ibm-buildings/#comments</comments>
		<pubDate>Mon, 18 Aug 2008 03:35:45 +0000</pubDate>
		<dc:creator>Michael Hartog</dc:creator>
				<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://www.apocryblog.com/?p=80</guid>
		<description><![CDATA[I have 2 weeks left in my co-op term and I&#8217;ve finally moved to the actual IBM buildings at 8200 Warden. Err, moving. We left last Friday and tomorrow I get to go there. I&#8217;ve been there before for little tours and things but we finally have to moving in and work there. My cubical [...]]]></description>
			<content:encoded><![CDATA[<p>I have 2 weeks left in my co-op term and I&#8217;ve finally moved to the actual IBM buildings at 8200 Warden. Err, moving. We left last Friday and tomorrow I get to go there.</p>
<p>I&#8217;ve been there before for little tours and things but we finally have to moving in and work there. My cubical about twice as big as what some people have to share between two people. It&#8217;s about the same size as my room in residence was. It&#8217;s way too awesome.<br />
<span id="more-80"></span></p>
<p>But I won&#8217;t be doing actual scheduled work for a while. We have to set up the lab which will probably take the greater part of the next week. It&#8217;s not a problem for me though since I love the hardware aspect of computers nearly as much as the software side. Not the really small details like circuit boards and stuff but each component as a whole. It&#8217;s what separates me from the rest of CSers.</p>
<p>After that move it will be a bit of work with the new co-ops coming from U of T (I don&#8217;t get to see my UW replacement), a bit of busy work, going away lunches and then I&#8217;m back to school.</p>
<p>And that starts with living at a friend&#8217;s house for about 4 days then moving in part way through orientation week while I&#8217;m orientating. Probably the busiest weekend of my life. It&#8217;s gonna be so much fun.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.michaelhartog.com/blog/2008/08/finally-moved-to-the-ibm-buildings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shell script to extract isos from a folder</title>
		<link>http://www.michaelhartog.com/blog/2008/05/shell-script-to-extract-isos-from-a-folder/</link>
		<comments>http://www.michaelhartog.com/blog/2008/05/shell-script-to-extract-isos-from-a-folder/#comments</comments>
		<pubDate>Wed, 28 May 2008 02:34:48 +0000</pubDate>
		<dc:creator>Michael Hartog</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[random]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[iso]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://www.apocryblog.com/?p=59</guid>
		<description><![CDATA[I had to do this repeatedly manually at work so it took me like 2 minutes to make my first script to do it for me. It was horribly messy and looked something this: for x in $(ls -1 .); do mount -t iso9660 -o loop $x temp/; cp -r temp/* .; umount temp/; done; [...]]]></description>
			<content:encoded><![CDATA[<p>I had to do this repeatedly manually at work so it took me like 2 minutes to make my first script to do it for me. It was horribly messy and looked something this:</p>
<blockquote><p>for x in $(ls -1 .); do<br />
mount -t iso9660 -o loop $x temp/;<br />
cp -r temp/* .;<br />
umount temp/;<br />
done;</p></blockquote>
<p>Which did the job but was horribly messing on doing it more than once with tons of errors and stuff.</p>
<p>When I came home I decided to make it much better. I even included how long it takes to do the whole process, which was harder than the process itself.<br />
<span id="more-59"></span></p>
<p>So right now it looks like:</p>
<blockquote><p>before=$(date +%s);<br />
mkdir temp/;#tempdir<br />
for x in $(ls -1 ./*.iso); do<br />
echo Currently unpacking $x | sed -e &#8216;s/.\///; s/.iso//&#8217;; #remove extra output<br />
mount -t iso9660 -o loop $x temp/; #mounts iso<br />
cp -ru temp/* .;<br />
umount temp/;<br />
done;<br />
rmdir temp/; #cleanup<br />
after=$(date +%s);<br />
elapsed=$(expr $after &#8211; $before); #time calculations<br />
((hour=$elapsed/60/60));<br />
((min=$elapsed/60-hour*60));<br />
((sec=$elapsed-hour*60*60-$min*60));<br />
echo &#8220;Elapsed time: &#8220;`printf &#8220;%02d&#8221; $hour`&#8221;:&#8221;`printf &#8220;%02d&#8221; $min`&#8221;:&#8221;`printf &#8220;%02d&#8221; $sec`;</p></blockquote>
<p>Which does everything I want it too, even the pain in the ass zero-padding of the times. Remember to chmod +x &lt;filename&gt; if you want to use it <img src='http://www.michaelhartog.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> .</p>
<p>Edit: Well, I messed up a few things, I only tested in under one minute times and the shell on that server only contains sh and ash. Here is the revised edition:</p>
<blockquote><p>#! /bin/sh<br />
before=$(date +%s);<br />
mkdir temp/;#tempdir<br />
for x in $(ls -1 ./*.iso); do<br />
echo Currently unpacking $x | sed -e &#8216;s/.\///; s/.iso//&#8217;; #remove extra output<br />
mount -t iso9660 -o loop $x temp/; #mounts iso<br />
cp -ru temp/* .;<br />
umount temp/;<br />
done;<br />
rmdir temp/; #cleanup<br />
after=$(date +%s);<br />
elapsed=$(expr $after &#8211; $before); #time calculations<br />
hour=&#8221;$(expr &#8220;$elapsed&#8221; &#8216;/&#8217; &#8217;60&#8242; &#8216;/&#8217; &#8217;60&#8242;)&#8221;<br />
min=&#8221;$(expr &#8220;$elapsed&#8221; &#8216;/&#8217; &#8217;60&#8242; &#8216;-&#8217; &#8216;$hour&#8217; &#8216;*&#8217; &#8217;60&#8242;)&#8221;<br />
sec=&#8221;$(expr &#8220;$elapsed&#8221; &#8216;-&#8217; &#8216;$hour&#8217; &#8216;*&#8217; &#8217;60&#8242; &#8216;*&#8217; &#8217;60&#8242; &#8216;-&#8217; &#8216;$min&#8217; &#8216;*&#8217; &#8217;60&#8242;)&#8221;<br />
echo &#8220;Elapsed time: &#8220;`printf &#8220;%02d&#8221; $hour`&#8221;:&#8221;`printf &#8220;%02d&#8221; $min`&#8221;:&#8221;`printf &#8220;%02d&#8221; $sec`;</p></blockquote>
<p>And now I know that sh is *really* annoying to do math in.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.michaelhartog.com/blog/2008/05/shell-script-to-extract-isos-from-a-folder/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>My First Week of REAL Work</title>
		<link>http://www.michaelhartog.com/blog/2008/05/my-first-week-of-real-work/</link>
		<comments>http://www.michaelhartog.com/blog/2008/05/my-first-week-of-real-work/#comments</comments>
		<pubDate>Mon, 05 May 2008 03:53:05 +0000</pubDate>
		<dc:creator>Michael Hartog</dc:creator>
				<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://www.apocryblog.com/?p=55</guid>
		<description><![CDATA[Damn it&#8217;s tiring waking up at 6:30 all week! I used to have to get up at 6:30 a few summers ago for my part time job but that was about three times a week tops. Now it&#8217;s five days a week for the next four months. And then I get home and it&#8217;s 7-8ish [...]]]></description>
			<content:encoded><![CDATA[<p>Damn it&#8217;s tiring waking up at 6:30 all week!<br />
<span id="more-55"></span></p>
<p>I used to have to get up at 6:30 a few summers ago for my part time job but that was about three times a week tops. Now it&#8217;s five days a week for the next four months.</p>
<p>And then I get home and it&#8217;s 7-8ish most of the time, a few short hours and I&#8217;m off to sleep. Those hours are usually spent watching TV, which I haven&#8217;t done too regularly (missed an episode of 30 rock already) and playing on my computer.</p>
<p>And it&#8217;s usually not long sessions of gaming like I&#8217;m used to. I&#8217;ll play Unreal Tournament 3 for a few hours then stop. Then wonder what to do. Then I&#8217;ll start again.</p>
<p>I actually did some work from work on Friday. Out of interest and out of boredom.</p>
<p>That said, work hasn&#8217;t been too hard at all. A bit of a learning curve but I&#8217;m familiar with half of the stuff already and have easily learned everything thrown at me so far. Tuesday was actually terribly boring because everyone except the co-ops were out of the office yet I hadn&#8217;t learned enough to actually do any work yet. So I did the one thing that I had assigned to me&#8230; multiple times. And I played some games. And I talked with the other co-ops.</p>
<p>Great guys at work, laid back, and the &#8220;work&#8221; I&#8217;m doing is really just playing around with systems which is the kind of thing I love to do in my spare time anyway. This is going to be a great four months.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.michaelhartog.com/blog/2008/05/my-first-week-of-real-work/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Coming back home</title>
		<link>http://www.michaelhartog.com/blog/2008/04/coming-back-home/</link>
		<comments>http://www.michaelhartog.com/blog/2008/04/coming-back-home/#comments</comments>
		<pubDate>Wed, 23 Apr 2008 05:53:20 +0000</pubDate>
		<dc:creator>Michael Hartog</dc:creator>
				<category><![CDATA[School]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://apocryblog.wordpress.com/?p=42</guid>
		<description><![CDATA[Two terms into my UW education and I *should* be passing everything. The last 2 finals were rather easy, a million multiple choice questions that took me half as long as the allotted exam time. I&#8217;m back at home now and it feels weird. It was Tuesday and I wondered why no one was around. [...]]]></description>
			<content:encoded><![CDATA[<p>Two terms into my UW education and I *should* be passing everything. The last 2 finals were rather easy, a million multiple choice questions that took me half as long as the allotted exam time.</p>
<p>I&#8217;m back at home now and it feels weird. It was Tuesday and I wondered why no one was around. My brother was writing and exam, my sister was at school and my mom was at work. And I get to sit and home and play video games, just like at school. But there is something exciting coming up&#8230;<br />
<span id="more-25"></span></p>
<p>My job is starting on Monday. At about 8:30 am Monday morning I&#8217;ll be walking into the Net Integration Technologies Inc. (makers of Nitix, small-medium Linux business server) building. But wait, I said I was working at IBM! Well I am. Net Integration Technologies Inc. was <a href="http://www-03.ibm.com/press/us/en/pressrelease/23520.wss">bought by IBM</a> about a week before my interview. They still got to choose me as their coop student, but afterward it was really an IBM process.</p>
<p>So I am still technically working for IBM but I won&#8217;t actually be working there&#8230; Until partway through the summer. About halfway through the summer we&#8217;re moving to the newest IBM building in Markham from the Net Integration Technologies Inc. building. It&#8217;s just down the street but it&#8217;s a big upgrade on the inside.</p>
<p>And how could I possibly get a job this awesome? You have to answer questions like &#8220;Why did you go into Computer Science?&#8221; with answers like &#8220;Because I&#8217;m awesome at it.&#8221; I actually said that. I actually got the job.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.michaelhartog.com/blog/2008/04/coming-back-home/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
