<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>Imablog</title>
    <link rel="alternate" type="text/html" href="http://blog.imabug.net/" />
    <link rel="self" type="application/atom+xml" href="http://blog.imabug.net/atom.xml" />
    <id>tag:blog.imabug.net,2011-06-05://12</id>
    <updated>2012-02-04T22:25:23Z</updated>
    <subtitle>Perspectives of a Canadian in the Old/Deep/New/Geographic South: This is where I ramble on about nothing in particular and post a few nice pictures.</subtitle>
    <generator uri="http://openmelody.org/">Melody 1.0.2</generator>

<entry>
    <title>Food truck feasting</title>
    <link rel="alternate" type="text/html" href="http://blog.imabug.net/archives/2012/02/food_truck_feasting.html" />
    <id>tag:blog.imabug.net,2012://12.9380</id>

    <published>2012-02-04T22:03:46Z</published>
    <updated>2012-02-04T22:25:23Z</updated>

    <summary>Hit up the Charleston Food Truck Festival in Marion Square this afternoon. A gathering of all the mobile food trucks in the Charleston area which also gathered a huge crowd of people. Somewhat daunting. Each of the trucks had pretty...</summary>
    <author>
        <name>Eugene Mah</name>
        <uri>http://blog.imabug.net/</uri>
    </author>
    
        <category term="Charleston Eats" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Eats" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="foodtruck" label="food truck" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://blog.imabug.net/">
        <![CDATA[<p>Hit up the Charleston Food Truck Festival in Marion Square this afternoon. A gathering of all the mobile food trucks in the Charleston area which also gathered a huge crowd of people. Somewhat daunting.<br />
<a href="http://imabug.net/gallery3/index.php/AroundCharleston/Charleston-Food-Truck-Festival/IMG_6969"><img src="http://imabug.net/gallery3/var/resizes/AroundCharleston/Charleston-Food-Truck-Festival/IMG_6969.JPG?m=1328392802" alt="Food truck festival" width="400" /></a></p>

<p><a href="http://imabug.net/gallery3/index.php/AroundCharleston/Charleston-Food-Truck-Festival/IMG_6976"><img src="http://imabug.net/gallery3/var/resizes/AroundCharleston/Charleston-Food-Truck-Festival/IMG_6976.JPG?m=1328392812" alt="Food truck festival" width="400" /></a></p>

<p><a href="http://imabug.net/gallery3/index.php/AroundCharleston/Charleston-Food-Truck-Festival/IMG_7009"><img src="http://imabug.net/gallery3/var/resizes/AroundCharleston/Charleston-Food-Truck-Festival/IMG_7009.JPG?m=1328392906" alt="Food truck festival" width="400" /></a></p>

<p>Each of the trucks had pretty long lines. This time I hit up the Magic Cheese Truck for a <a href="http://www.foodspotting.com/reviews/1288147">Buffalo Chicken Melt</a>. Pretty tasty. It had little bits of blue cheese in it, which I normally don't like, but not so much that I didn't want to eat it. It was good with the tomato-basil soup/dipper that comes with their sammiches.</p>

<p>Can't go to one of these food truck gatherings without hitting the Diggity Donuts truck. They always seem to have the longest lines, but today they seemed to be able to get the donuts out faster so the line went a little quicker.<br />
<a href="http://imabug.net/gallery3/index.php/AroundCharleston/Charleston-Food-Truck-Festival/IMG_7004"><img src="http://imabug.net/gallery3/var/resizes/AroundCharleston/Charleston-Food-Truck-Festival/IMG_7004.JPG?m=1328392873" alt="Food truck fest. Waiting in line for Diggity Donuts." width="400" /></a></p>

<p>So now that I've been to a couple of food truck gatherings, I'm a little torn. The fact there are enough food trucks in the area to put on food truck rodeos and fests is really cool. They do seem to attract a lot of people though, and can be pretty crowded. If all you're going for is the food, then perhaps not the best way to do it since you'll end up standing in line for quite a while. Better to just track them down at their usual haunts if that's the case. The rodeos are a great opportunity to people watch (and dog watch) and gather with friends though, which can be a lot of fun.<br />
<a href="http://imabug.net/gallery3/index.php/AroundCharleston/Charleston-Food-Truck-Festival/IMG_6997"><img src="http://imabug.net/gallery3/var/resizes/AroundCharleston/Charleston-Food-Truck-Festival/IMG_6997.JPG?m=1328392870" alt="Dog watching at the food truck fest" width="400" /></a></p>

<p><a href="http://imabug.net/gallery3/index.php/AroundCharleston/Charleston-Food-Truck-Festival/IMG_6991"><img src="http://imabug.net/gallery3/var/resizes/AroundCharleston/Charleston-Food-Truck-Festival/IMG_6991.JPG?m=1328392827" alt="Bacon socks" width="300" /></a></p>

<p>I think what Charleston needs is a craft beer truck now, to hang out at the food truck rodeos. I wonder if that would be legal. Somehow I think probably not. With 4 local breweries, it would be pretty cool though.</p>]]>
        
    </content>
</entry>

<entry>
    <title>Charleston Eats: Magic Cheese Truck</title>
    <link rel="alternate" type="text/html" href="http://blog.imabug.net/archives/2012/02/charleston_eats_magic_cheese_truck.html" />
    <id>tag:blog.imabug.net,2012://12.9379</id>

    <published>2012-02-04T21:24:22Z</published>
    <updated>2012-02-04T21:25:54Z</updated>

    <summary>Buffalo Chicken Melt...</summary>
    <author>
        <name>Eugene Mah</name>
        <uri>http://blog.imabug.net/</uri>
    </author>
    
        <category term="Charleston Eats" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Eats" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="charlestoneats" label="charleston eats" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="foodtruck" label="food truck" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://blog.imabug.net/">
        <![CDATA[<p>Buffalo Chicken Melt<br />
<a href="http://blog.imabug.net/images/CHSEats/MagicCheeseTruck.JPG"><img alt="MagicCheeseTruck.JPG" src="http://blog.imabug.net/assets_c/2012/02/MagicCheeseTruck-thumb-400x284-1344.jpg" width="400" height="284" class="mt-image-center" style="text-align: center; display: block; margin: 0 auto 20px;" /></a></p>]]>
        
    </content>
</entry>

<entry>
    <title>Running faster</title>
    <link rel="alternate" type="text/html" href="http://blog.imabug.net/archives/2012/02/running_faster.html" />
    <id>tag:blog.imabug.net,2012://12.9378</id>

    <published>2012-02-04T13:04:00Z</published>
    <updated>2012-02-04T13:16:36Z</updated>

    <summary>After a big November/December running lull (thanks to school) I&apos;ve been trying to make sure I get out at least 2-3 times a week now. Signing up for the i5k (happening in a couple of months) has added a little...</summary>
    <author>
        <name>Eugene Mah</name>
        <uri>http://blog.imabug.net/</uri>
    </author>
    
        <category term="Running Log" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://blog.imabug.net/">
        <![CDATA[<p>After a big November/December running lull (thanks to school) I've been trying to make sure I get out at least 2-3 times a week now. Signing up for the <a href="http://www.ifivek.com/">i5k</a> (happening in a couple of months) has added a little more motivation.</p>

<p>On the good front, my "comfortable" running pace has gone down from 6:30 min/km to around 6 min/km and I can run a sub-30 minute 5k with a lot less effort than before. I think I should be able to shave 10-15 seconds off that comfort pace pretty easily by the time the i5k rolls around.</p>

<p>I think in a couple more weeks I'll be ready to increase the distance of my long runs.</p>]]>
        
    </content>
</entry>

<entry>
    <title>A cool stylus</title>
    <link rel="alternate" type="text/html" href="http://blog.imabug.net/archives/2012/02/a_cool_stylus.html" />
    <id>tag:blog.imabug.net,2012://12.9377</id>

    <published>2012-02-02T23:24:20Z</published>
    <updated>2012-02-03T02:49:09Z</updated>

    <summary>Saw this cool circuit board stylus from Spun Pens on Etsy (via a Make Online blurb) and decided it was just too cool not to have. It was a little bit smaller than I expected, but that was just because...</summary>
    <author>
        <name>Eugene Mah</name>
        <uri>http://blog.imabug.net/</uri>
    </author>
    
        <category term="Computer bits" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://blog.imabug.net/">
        <![CDATA[<p>Saw this cool circuit board stylus from <a href="http://www.etsy.com/shop/SpunPens">Spun Pens</a> on Etsy (via a Make Online blurb) and decided it was just too cool not to have.<br />
<a href="http://blog.imabug.net/images/IMG_6968.JPG"><img alt="IMG_6968.JPG" src="http://blog.imabug.net/assets_c/2012/02/IMG_6968-thumb-400x205-1338.jpg" width="400" height="205" class="mt-image-center" style="text-align: center; display: block; margin: 0 auto 20px;" /></a></p>

<p><a href="http://blog.imabug.net/images/IMG_6963.JPG"><img alt="IMG_6963.JPG" src="http://blog.imabug.net/assets_c/2012/02/IMG_6963-thumb-300x525-1340.jpg" width="300" height="525" class="mt-image-center" style="text-align: center; display: block; margin: 0 auto 20px;" /></a></p>

<p>It was a little bit smaller than I expected, but that was just because the shiny and want factor kept me from reading the full description so I really had no idea how big it would be. It appears to be made with an actual circuit board, not just printed on something. It would be interesting to find out how it gets rolled up like that.</p>

<p><a href="http://blog.imabug.net/images/IMG_6965.JPG"><img alt="IMG_6965.JPG" src="http://blog.imabug.net/assets_c/2012/02/IMG_6965-thumb-400x180-1342.jpg" width="400" height="180" class="mt-image-center" style="text-align: center; display: block; margin: 0 auto 20px;" /></a></p>

<p>A dome of some kind of soft material allows the stylus to work with capacitive touch screens. It works really well, better than some other styli that I've used. It requires a little bit of a firmer touch than you'd need using a finger, but not too much and doesn't take long to get used to.</p>

<p>It's pretty cool.</p>]]>
        
    </content>
</entry>

<entry>
    <title>Flatbread-za</title>
    <link rel="alternate" type="text/html" href="http://blog.imabug.net/archives/2012/01/flatbread-za.html" />
    <id>tag:blog.imabug.net,2012://12.9376</id>

    <published>2012-01-31T23:24:50Z</published>
    <updated>2012-01-31T23:45:24Z</updated>

    <summary>While I was at the grocery store the other day, I came across these Flatout flatbreads that claimed to be low-carb (16 g carbs, 9g fiber, 7g net carbs), so I thought I&apos;d try them out for pizza. They&apos;re pretty...</summary>
    <author>
        <name>Eugene Mah</name>
        <uri>http://blog.imabug.net/</uri>
    </author>
    
        <category term="Eats" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://blog.imabug.net/">
        <![CDATA[<p>While I was at the grocery store the other day, I came across these Flatout flatbreads that claimed to be low-carb (16 g carbs, 9g fiber, 7g net carbs), so I thought I'd try them out for pizza.</p>

<p>They're pretty thin, maybe a little bit thicker than a tortilla (but not much) and oblong shaped like a 400m track.</p>

<p>They make for a pretty decent crust and bakes up pretty crispy. I suppose they're pretty decent flavour wise. Still deciding. The one I picked up was supposed to be Italian Herb, but I'm not sure I taste much of that in it. Maybe if I try it out as a wrap it will taste more Italian Herb-y.</p>

<p><img alt="Flatbread-za.JPG" src="http://blog.imabug.net/images/Flatbread-za.JPG" width="400" height="347" class="mt-image-center" style="text-align: center; display: block; margin: 0 auto 20px;" /></p>]]>
        
    </content>
</entry>

<entry>
    <title>Stars and clouds</title>
    <link rel="alternate" type="text/html" href="http://blog.imabug.net/archives/2012/01/stars_and_clouds.html" />
    <id>tag:blog.imabug.net,2012://12.9375</id>

    <published>2012-01-30T03:16:58Z</published>
    <updated>2012-01-30T03:22:03Z</updated>

    <summary>Some high thin clouds add an interesting background to tonight&apos;s efforts. A stack of 182 30s images, f/5.6 ISO 800. Click through to see the full size 3456x2304 image. Look closely and you&apos;ll see dots from high flying airplanes. See...</summary>
    <author>
        <name>Eugene Mah</name>
        <uri>http://blog.imabug.net/</uri>
    </author>
    
        <category term="Hobbies" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Photos" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="startrails" label="star trails" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://blog.imabug.net/">
        <![CDATA[<p>Some high thin clouds add an interesting background to tonight's efforts.</p>

<p>A stack of 182 30s images, f/5.6 ISO 800. Click through to see the full size 3456x2304 image. Look closely and you'll see dots from high flying airplanes. See if you can spot the streak of what I think might have been a passing satellite.<br />
<a href="http://blog.imabug.net/images/IMG_6778Stack.jpg"><img alt="IMG_6778Stack.jpg" src="http://blog.imabug.net/assets_c/2012/01/IMG_6778Stack-thumb-400x266-1334.jpg" width="400" height="266" class="mt-image-center" style="text-align: center; display: block; margin: 0 auto 20px;" /></a></p>]]>
        
    </content>
</entry>

<entry>
    <title>Tortill-za</title>
    <link rel="alternate" type="text/html" href="http://blog.imabug.net/archives/2012/01/tortill-za.html" />
    <id>tag:blog.imabug.net,2012://12.9374</id>

    <published>2012-01-29T03:49:58Z</published>
    <updated>2012-01-29T04:05:20Z</updated>

    <summary>Pizza has always been one of my favourite food groups. Sadly it isn&apos;t really all that compatible with my low-carb lifestyle now, unless I want to deal with big blood glucose spikes. Then the thought occurred to me that instead...</summary>
    <author>
        <name>Eugene Mah</name>
        <uri>http://blog.imabug.net/</uri>
    </author>
    
        <category term="Eats" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://blog.imabug.net/">
        <![CDATA[<p>Pizza has always been one of my favourite food groups. Sadly it isn't really all that compatible with my low-carb lifestyle now, unless I want to deal with big blood glucose spikes.</p>

<p>Then the thought occurred to me that instead of regular pizza crust (which is where the problem lies), I need a low-carb crust. I've seen various recipes on a diabetes forum I've been hanging out in for low carb pizza crusts using ingredients like almond or coconut flour, or a low carb biscuit flour.</p>

<p>How about tortillas? I found some low carb tortillas a while back that tasted pretty decent. They seemed like they would do pretty well for a pizza crust.</p>

<p>Take one or two tortillas (the ones I used were 6" diameter) and spread a little pizza sauce on them (~1 Tbsp). I leave a bit of unsauced edge to make it a little easier to pick up for eating. Top with whatever you like. I suggest going a little easy on the cheese because without the bready crust to soak up the cheese oil, it just gets all over the place and becomes all messy (unless you like that sort of thing).</p>

<p>Slide onto a pan that you've had heating up in the oven (I like to heat them up in a 500&deg;F oven). This will help make the tortilla "crust" nice and crispy. Bake until the cheese is all melty and brown (~5 minutes). Remove, let cool a bit and cut into slices. Eat.<br />
<a href="http://blog.imabug.net/images/IMG_6593.JPG"><img alt="IMG_6593.JPG" src="http://blog.imabug.net/assets_c/2012/01/IMG_6593-thumb-400x313-1332.jpg" width="400" height="313" class="mt-image-center" style="text-align: center; display: block; margin: 0 auto 20px;" /></a></p>]]>
        
    </content>
</entry>

<entry>
    <title>Stars and planes</title>
    <link rel="alternate" type="text/html" href="http://blog.imabug.net/archives/2012/01/stars_and_planes.html" />
    <id>tag:blog.imabug.net,2012://12.9373</id>

    <published>2012-01-29T02:34:33Z</published>
    <updated>2012-01-29T02:38:51Z</updated>

    <summary>A stack of 54 30s exposures, f/3.5 ISO 400. A few planes flew by to add some interesting elements....</summary>
    <author>
        <name>Eugene Mah</name>
        <uri>http://blog.imabug.net/</uri>
    </author>
    
        <category term="Photos" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="startrails" label="star trails" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://blog.imabug.net/">
        <![CDATA[<p>A stack of 54 30s exposures, f/3.5 ISO 400. A few planes flew by to add some interesting elements.<br />
<a href="http://blog.imabug.net/images/IMG_6535Stack.JPG"><img alt="IMG_6535Stack.JPG" src="http://blog.imabug.net/assets_c/2012/01/IMG_6535Stack-thumb-400x266-1330.jpg" width="400" height="266" class="mt-image-center" style="text-align: center; display: block; margin: 0 auto 20px;" /></a></p>]]>
        
    </content>
</entry>

<entry>
    <title>Charleston&apos;s night sky</title>
    <link rel="alternate" type="text/html" href="http://blog.imabug.net/archives/2012/01/charlestons_night_sky.html" />
    <id>tag:blog.imabug.net,2012://12.9372</id>

    <published>2012-01-29T02:20:56Z</published>
    <updated>2012-01-29T02:39:29Z</updated>

    <summary>20s exposure of Charleston&apos;s night sky....</summary>
    <author>
        <name>Eugene Mah</name>
        <uri>http://blog.imabug.net/</uri>
    </author>
    
        <category term="Photos" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://blog.imabug.net/">
        <![CDATA[<p>20s exposure of Charleston's night sky.<br />
<a href="http://blog.imabug.net/images/CHSNightSky.JPG"><img alt="CHSNightSky.JPG" src="http://blog.imabug.net/assets_c/2012/01/CHSNightSky-thumb-400x235-1328.jpg" width="400" height="235" class="mt-image-center" style="text-align: center; display: block; margin: 0 auto 20px;" /></a></p>]]>
        
    </content>
</entry>

<entry>
    <title>Busy weekend in store</title>
    <link rel="alternate" type="text/html" href="http://blog.imabug.net/archives/2012/01/busy_weekend_in_store.html" />
    <id>tag:blog.imabug.net,2012://12.9371</id>

    <published>2012-01-28T00:27:57Z</published>
    <updated>2012-01-28T00:52:48Z</updated>

    <summary>I think this is going to be one of those weekends where I&apos;ve over-committed myself just a little bit. That&apos;s what I get for doing things without consulting the all-mighty calendar first. First there&apos;s volunteering at the aquarium. The Camp...</summary>
    <author>
        <name>Eugene Mah</name>
        <uri>http://blog.imabug.net/</uri>
    </author>
    
        <category term="Miscellaneous babble" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://blog.imabug.net/">
        <![CDATA[<p>I think this is going to be one of those weekends where I've over-committed myself just a little bit. That's what I get for doing things without consulting the all-mighty calendar first.</p>

<p>First there's volunteering at the <a href="http://www.scaquarium.org/" target="_blank">aquarium</a>. The Camp Carolina exhibit has gone away to make room for a new Madagascar exhibit, so it will be interesting to see what kind of progress has been made in the last two weeks.</p>

<p>Then a quick run to pick up this week's <a href="http://www.stonofarmmarket.com/ambrosefamilyfarmcsa.html" target="_blank">Ambrose Farm CSA</a> and then off to the fairgrounds for the <a href="http://charlestonkennelclub.org/" target="_blank">Charleston Kennel Club</a> dog show. Always a fun time there.</p>

<p>From there it's out to Folly Beach for a second attempt at doing some <a href="http://www.meetup.com/Charleston-21st-Century-Photography/events/49245602/" target="_blank">star trails</a>. Hopefully I haven't run into my second battery by then, otherwise I won't be doing star trails for very long.</p>

<p>Then if I haven't completely worn myself out, dig into the stack of papers I'm supposed to be reading to prepare for writing the proposal for my PhD qualifer.</p>

<p>Sunday is all dog show and more reading.</p>

<p>Whee.</p>]]>
        
    </content>
</entry>

<entry>
    <title>Fat video</title>
    <link rel="alternate" type="text/html" href="http://blog.imabug.net/archives/2012/01/fat_video.html" />
    <id>tag:blog.imabug.net,2012://12.9370</id>

    <published>2012-01-25T10:36:26Z</published>
    <updated>2012-01-25T10:41:46Z</updated>

    <summary>The HD video (superfine 1920x1080) from my Galaxy S II gobbles up storage at a rate of about 2 MB per second of video. I haven&apos;t checked how fast the other resolutions use up space, but it will be less...</summary>
    <author>
        <name>Eugene Mah</name>
        <uri>http://blog.imabug.net/</uri>
    </author>
    
        <category term="Computer bits" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="cellphone" label="cell phone" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://blog.imabug.net/">
        <![CDATA[<p>The HD video (superfine 1920x1080) from my Galaxy S II gobbles up storage at a rate of about 2 MB per second of video.</p>

<p>I haven't checked how fast the other resolutions use up space, but it will be less than this.</p>

<p>I'm going to need a bigger SD card to put into this thing.</p>]]>
        
    </content>
</entry>

<entry>
    <title>SQL subqueries and joins</title>
    <link rel="alternate" type="text/html" href="http://blog.imabug.net/archives/2012/01/sql_subqueries_and_joins.html" />
    <id>tag:blog.imabug.net,2012://12.9369</id>

    <published>2012-01-24T21:18:48Z</published>
    <updated>2012-01-24T22:44:38Z</updated>

    <summary>A while back, a script I had written to dig stats out of our PACS database stopped working for some reason. Since I was mostly done with that project, I didn&apos;t mess around with it too much. Now I&apos;ve been...</summary>
    <author>
        <name>Eugene Mah</name>
        <uri>http://blog.imabug.net/</uri>
    </author>
    
        <category term="Computer bits" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Work stuff" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://blog.imabug.net/">
        <![CDATA[<p>A while back, a script I had written to dig stats out of our PACS database stopped working for some reason. Since I was mostly done with that project, I didn't mess around with it too much.</p>
<p>Now I've been asked to resurrect it to gather more usage data in advance of a planned migration.</p>
<p>The PACS database uses Oracle, but all my DB experience is with MySQL. This is the main query I'm dealing with (it runs from a shell script, which is why the variables are there)</p>

<p><code><pre>
select
  count(study_uid),
  avg(num_images),
  sum(num_images),
  max(num_images),
  min(num_images) 
from dosr_study 
where study_ref in (
  select
    study_ref
  from dosr_series
  where modality='${modality}'
)
and study_date between
  '${c_year}${c_month}01' and '${c_year}${c_month}31'
</pre></code></p>

<p>For some reason this query stopped running. Well, it runs, but it just doesn't spit out any numbers like it used to.</p>
<p>If I reformulate the query into what I <em>think</em> is the <a href="http://stackoverflow.com/questions/1772609/procedurally-transform-subquery-into-join" target="_blank">equivalent query without the subquery</a>,</p>

<p><code><pre>
select distinct
  count(study_uid),
  avg(num_images),
  sum(num_images),
  max(num_images),
  min(num_images) 
from dosr_study, dosr_series 
where dosr_study.study_ref = dosr_series.study_ref 
and dosr_series.modality='${modality}' 
and study_date between
  '${c_year}${c_month}01' and '${c_year}${c_month}31'
</pre></code></p>

<p>the query works, but returns different results from what I got before when the original query worked.</p>

<p>I suppose I'll need to find out more about Oracle SQL so I can figure out why the original query stopped working in the first place.</p>

<p><strong>Update:</strong> One of my friends thinks I probably haven't rewritten the query correctly (what I was thinking as well) and suggested changing</p>

<p><code><pre>
from dosr_study, dosr_series 
where dosr_study.study_ref = dosr_series.study_ref 
</pre></code></p>
<p>to</p>
<p><code><pre>
from dosr_study
join dosr_series on dosr_study.study_ref=dosr_series.study_ref
</pre></code></p>]]>
        
    </content>
</entry>

<entry>
    <title>Galaxy S II X-ray Take 2</title>
    <link rel="alternate" type="text/html" href="http://blog.imabug.net/archives/2012/01/galaxy_s_ii_x-ray_take_2.html" />
    <id>tag:blog.imabug.net,2012://12.9368</id>

    <published>2012-01-24T16:55:31Z</published>
    <updated>2012-01-24T17:03:21Z</updated>

    <summary>I was doing some testing on a radiographic room today and took the opportunity to get a better x-ray image of my Galaxy S II. This was acquired using 80 kV, 5 mAs with a little bit of magnification. Compared...</summary>
    <author>
        <name>Eugene Mah</name>
        <uri>http://blog.imabug.net/</uri>
    </author>
    
        <category term="Computer bits" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="cellphone" label="cell phone" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://blog.imabug.net/">
        <![CDATA[<p>I was doing some testing on a radiographic room today and took the opportunity to get a better x-ray image of my Galaxy S II. This was acquired using 80 kV, 5 mAs with a little bit of magnification.<br />
<a href="http://blog.imabug.net/images/SGSII/SGS2XR.jpg"><img alt="SGS2XR.jpg" src="http://blog.imabug.net/assets_c/2012/01/SGS2XR-thumb-400x732-1326.jpg" width="400" height="732" class="mt-image-center" style="text-align: center; display: block; margin: 0 auto 20px;" /></a></p>

<p>Compared to the <a href="http://blog.imabug.net/archives/2012/01/galaxy_s_ii_x-ray.html">previous x-ray</a> I took, the NFC antenna integrated into the battery looks like it's probably the series of concentric traces, like those RFID security tags you find in books and stuff. The components on the circuit boards are also much more visible in this one.</p>]]>
        
    </content>
</entry>

<entry>
    <title>Golden Ticket camera</title>
    <link rel="alternate" type="text/html" href="http://blog.imabug.net/archives/2012/01/golden_ticket_camera.html" />
    <id>tag:blog.imabug.net,2012://12.9367</id>

    <published>2012-01-23T22:38:09Z</published>
    <updated>2012-01-23T22:59:59Z</updated>

    <summary>Anybody who follows me on Twitter or Facebook or the blog knows I like to take pictures of my food and post them. Andra introduced me to the Foodspotting app early last year and since then most of my food...</summary>
    <author>
        <name>Eugene Mah</name>
        <uri>http://blog.imabug.net/</uri>
    </author>
    
        <category term="Fun Stuff" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Miscellaneous babble" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://blog.imabug.net/">
        <![CDATA[<p>Anybody who follows me on Twitter or Facebook or the blog knows I like to take pictures of my food and post them.</p>

<p><a href="http://andrawatkins.com/">Andra</a> introduced me to the <a href="http://www.foodspotting.com/apps" target="_blank">Foodspotting app</a> early last year and since then most of my food photos have been going there and cross-posting to Twitter and Facebook.</p>

<p>In December, <a href="http://www.foodspotting.com/" target="_blank">Foodspotting</a> ran a <a href="http://www.foodspotting.com/goldentickets" target="_blank">Golden Ticket</a> <a href="http://www.foodspotting.com/blog/posts/258-find-a-golden-ticket--win-a-prize" target="_blank">promo contest</a> where they hid Golden Tickets (think Charlie and the Chocolate Factory) within the app. You 'found' them by browsing through food pictures that other people posted.</p>

<p>Just after I saw the email about the Golden Ticket promotion, I found one, much to my surprise. That it was a Golden Ticket for a wee little <a href="http://www.store.sony.com/webapp/wcs/stores/servlet/ProductDisplay?catalogId=10551&storeId=10151&langId=-1&productId=8198552921666290663&XID=M:cybershotfoodspotting" target="_blank">Sony WX9</a> camera was an even bigger surprise.<br />
<img alt="IMG_6254.JPG" src="http://blog.imabug.net/images/IMG_6254.JPG" width="400" height="252" class="mt-image-center" style="text-align: center; display: block; margin: 0 auto 20px;" /></p>

<p><img alt="IMG_6258.JPG" src="http://blog.imabug.net/images/IMG_6258.JPG" width="400" height="252" class="mt-image-center" style="text-align: center; display: block; margin: 0 auto 20px;" /></p>

<p>Haven't tried it out yet. It's still charging up. Fortunately Sony saw fit to design the camera so that it uses SD cards (which I already have) as well as their own Memory Sticks (which I don't have). Unfortunately they decided to use a micro-USB <em>like</em> connector, so that means another USB cable dangling off my computer.</p>

<p>Looking forward to playing with this new little camera. Thanks <a href="http://www.foodspotting.com/" target="_blank">Foodspotting</a>!</p>]]>
        
    </content>
</entry>

<entry>
    <title>An afternoon at Lighthouse Inlet</title>
    <link rel="alternate" type="text/html" href="http://blog.imabug.net/archives/2012/01/an_afternoon_at_lighthouse_inlet.html" />
    <id>tag:blog.imabug.net,2012://12.9366</id>

    <published>2012-01-23T04:16:55Z</published>
    <updated>2012-01-23T16:03:58Z</updated>

    <summary>An overcast day spoiled my plans to do some star trail photography at Lighthouse Inlet, at the north end of Folly Beach. I did get some nice beach photos though, before the cold wind made my hands too stiff to...</summary>
    <author>
        <name>Eugene Mah</name>
        <uri>http://blog.imabug.net/</uri>
    </author>
    
        <category term="Photos" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://blog.imabug.net/">
        <![CDATA[<p>An overcast day spoiled my plans to do some star trail photography at Lighthouse Inlet, at the north end of Folly Beach. I did get some nice beach photos though, before the cold wind made my hands too stiff to handle the camera. I did end up losing a lens cap to the surf though. At least it wasn't a camera.</p>

<p>There is of course the view of the Morris Island lighthouse. See what I did with the lighthouse on Sullivan's Island in the background?<br />
<a href="http://imabug.net/gallery3/index.php/AroundCharleston/Lighthouse-Inlet/IMG_6197_01"><img src="http://imabug.net/gallery3/var/resizes/AroundCharleston/Lighthouse-Inlet/IMG_6197_01.jpg?m=1327289465" alt="Morris Island lighthouse" width="300" /></a></p>

<p>and plenty of old tree skeletons buried in the sand<br />
<a href="http://imabug.net/gallery3/index.php/AroundCharleston/Lighthouse-Inlet/IMG_6204"><img src="http://imabug.net/gallery3/var/resizes/AroundCharleston/Lighthouse-Inlet/IMG_6204.JPG?m=1327289494" alt="Tree skeleton" width="400" /></a></p>

<p><a href="http://imabug.net/gallery3/index.php/AroundCharleston/Lighthouse-Inlet/IMG_6221"><img src="http://imabug.net/gallery3/var/resizes/AroundCharleston/Lighthouse-Inlet/IMG_6221.JPG?m=1327289532" alt="" width="300" /></a></p>

<p>This might be one of my favourites from the day. The bright green provides some great contrast against the tangled gray/brown of the branches.<br />
<a href="http://imabug.net/gallery3/index.php/AroundCharleston/Lighthouse-Inlet/IMG_6223"><img src="http://imabug.net/gallery3/var/resizes/AroundCharleston/Lighthouse-Inlet/IMG_6223.JPG?m=1327289593" alt="" width="300" /></a></p>

<p>Check out the <a href="http://imabug.net/gallery3/index.php/AroundCharleston/Lighthouse-Inlet">rest of the images</a> over in the <a href="http://imabug.net/gallery3/">gallery</a>.</p>]]>
        
    </content>
</entry>

<entry>
    <title>Galaxy S II X-ray</title>
    <link rel="alternate" type="text/html" href="http://blog.imabug.net/archives/2012/01/galaxy_s_ii_x-ray.html" />
    <id>tag:blog.imabug.net,2012://12.9365</id>

    <published>2012-01-16T19:21:54Z</published>
    <updated>2012-01-16T19:28:27Z</updated>

    <summary>A new Orthoscan mini C-arm arrived at the hospital last week, so while I was doing the acceptance testing on it today I used it to get a shot of my Galaxy S II. The big grey blob in the...</summary>
    <author>
        <name>Eugene Mah</name>
        <uri>http://blog.imabug.net/</uri>
    </author>
    
        <category term="Computer bits" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="cellphone" label="cell phone" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://blog.imabug.net/">
        <![CDATA[<p>A new Orthoscan mini C-arm arrived at the hospital last week, so while I was doing the acceptance testing on it today I used it to get a shot of my Galaxy S II.<br />
<a href="http://blog.imabug.net/images/SGSII/SGS2.jpg"><img alt="SGS2.jpg" src="http://blog.imabug.net/assets_c/2012/01/SGS2-thumb-300x530-1320.jpg" width="300" height="530" class="mt-image-center" style="text-align: center; display: block; margin: 0 auto 20px;" /></a></p>

<p>The big grey blob in the middle is the battery and the vertical stripe in the battery I'm guessing is the NFC antenna. The square just below the top would be the camera. The square to the left of that just below the top is the front facing camera. On the right side is the headphone jack. The rectangular thing at the bottom to the right of the USB/HDMI connector is the speaker I think.<br />
</p>]]>
        
    </content>
</entry>

<entry>
    <title>Charleston Eats: Diggity Donuts</title>
    <link rel="alternate" type="text/html" href="http://blog.imabug.net/archives/2012/01/charleston_eats_diggity_donuts.html" />
    <id>tag:blog.imabug.net,2012://12.9364</id>

    <published>2012-01-15T01:44:14Z</published>
    <updated>2012-01-15T01:46:53Z</updated>

    <summary>Cinnamon sugar, lavendar sugar, just coffee donuts Dark chocolate/cherry, Bailey&apos;s and coffee, kiwi cheesecake donuts...</summary>
    <author>
        <name>Eugene Mah</name>
        <uri>http://blog.imabug.net/</uri>
    </author>
    
        <category term="Charleston Eats" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Eats" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="charlestoneats" label="charleston eats" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://blog.imabug.net/">
        <![CDATA[<p>Cinnamon sugar, lavendar sugar, just coffee donuts<br />
<a href="http://blog.imabug.net/images/CHSEats/Diggity02.jpg"><img alt="Diggity02.jpg" src="http://blog.imabug.net/assets_c/2012/01/Diggity02-thumb-400x400-1316.jpg" width="400" height="400" class="mt-image-center" style="text-align: center; display: block; margin: 0 auto 20px;" /></a></p>

<p>Dark chocolate/cherry, Bailey's and coffee, kiwi cheesecake donuts<br />
<a href="http://blog.imabug.net/images/CHSEats/Diggity01.jpg"><img alt="Diggity01.jpg" src="http://blog.imabug.net/assets_c/2012/01/Diggity01-thumb-400x400-1318.jpg" width="400" height="400" class="mt-image-center" style="text-align: center; display: block; margin: 0 auto 20px;" /></a></p>]]>
        
    </content>
</entry>

<entry>
    <title>Charleston Eats: Tokyo Crepes</title>
    <link rel="alternate" type="text/html" href="http://blog.imabug.net/archives/2012/01/charleston_eats_tokyo_crepes.html" />
    <id>tag:blog.imabug.net,2012://12.9363</id>

    <published>2012-01-15T01:41:51Z</published>
    <updated>2012-01-15T01:43:01Z</updated>

    <summary>Spicy corn cheese crepe...</summary>
    <author>
        <name>Eugene Mah</name>
        <uri>http://blog.imabug.net/</uri>
    </author>
    
        <category term="Charleston Eats" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Eats" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="charlestoneats" label="charleston eats" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://blog.imabug.net/">
        <![CDATA[<p>Spicy corn cheese crepe<br />
<a href="http://blog.imabug.net/images/CHSEats/TokyoCrepes.jpg"><img alt="TokyoCrepes.jpg" src="http://blog.imabug.net/assets_c/2012/01/TokyoCrepes-thumb-400x412-1314.jpg" width="400" height="412" class="mt-image-center" style="text-align: center; display: block; margin: 0 auto 20px;" /></a></p>]]>
        
    </content>
</entry>

<entry>
    <title>Rib roast</title>
    <link rel="alternate" type="text/html" href="http://blog.imabug.net/archives/2012/01/rib_roast.html" />
    <id>tag:blog.imabug.net,2012://12.9362</id>

    <published>2012-01-10T00:06:45Z</published>
    <updated>2012-01-10T00:07:55Z</updated>

    <summary>Super nom...</summary>
    <author>
        <name>Eugene Mah</name>
        <uri>http://blog.imabug.net/</uri>
    </author>
    
        <category term="Eats" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://blog.imabug.net/">
        <![CDATA[<p>Super nom<br />
<a href="http://blog.imabug.net/images/IMG_6012.JPG"><img alt="IMG_6012.JPG" src="http://blog.imabug.net/assets_c/2012/01/IMG_6012-thumb-400x292-1312.jpg" width="400" height="292" class="mt-image-center" style="text-align: center; display: block; margin: 0 auto 20px;" /></a></p>]]>
        
    </content>
</entry>

<entry>
    <title>The Answer to the Great Question</title>
    <link rel="alternate" type="text/html" href="http://blog.imabug.net/archives/2012/01/the_answer_to_the_great_question.html" />
    <id>tag:blog.imabug.net,2012://12.9361</id>

    <published>2012-01-09T12:22:25Z</published>
    <updated>2012-01-09T12:25:56Z</updated>

    <summary>&quot;All right,&quot; said Deep Thought. &quot;The Answer to the Great Question ...&quot; &quot;Yes...!&quot; &quot;Of Life, the Universe and Everything...&quot; said Deep Thought. &quot;Yes...!&quot; &quot;Is...&quot; said Deep Thought, and paused. &quot;Yes...!&quot; &quot;Is...&quot; &quot;Yes...!!!...?&quot; &quot;Forty-two,&quot; said Deep Thought, with infinite majesty and...</summary>
    <author>
        <name>Eugene Mah</name>
        <uri>http://blog.imabug.net/</uri>
    </author>
    
        <category term="Miscellaneous babble" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://blog.imabug.net/">
        <![CDATA[<p>"All right," said Deep Thought. "The Answer to the Great Question ..."<br />
"Yes...!"<br />
"Of Life, the Universe and Everything..." said Deep Thought.<br />
"Yes...!"<br />
"Is..." said Deep Thought, and paused.<br />
"Yes...!"<br />
"Is..."<br />
"Yes...!!!...?"<br />
"Forty-two," said Deep Thought, with infinite majesty and calm.</p>

<p>- Hitchhiker's Guide to the Galaxy, Douglas Adams</p>]]>
        
    </content>
</entry>

</feed>


