<?xml version="1.0"?>
<!-- name="generator" content="blosxom/2.0" -->
<!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN" "http://my.netscape.com/publish/formats/rss-0.91.dtd">

<rss version="0.91">
  <channel>
    <title>Top-Quark - Blog   </title>
    <link>http://top-quark.com/blog</link>
    <description>it doesn't get any duller than this... </description>
    <language>en</language>

  <item>
    <title>Battery pack volume efficiency</title>
    <link>http://top-quark.com/blog/2009/06/15#20090615_battpackefficiency</link>
    <description>
&lt;p&gt;Y'know, while I'm actually using this thing for the first time in a century...&lt;/p&gt;

&lt;p&gt;Has it ever bothered anyone how amazingly inefficient current battery packs are with their geometric construction? Inside the nice &lt;a href=&quot;http://top-quark.com/blog/070505_battrebuild.writeback&quot;&gt;monolithic battery packs&lt;/a&gt; you see out there for laptops, cordless tools, and the like, there's (typically) inside a large slab of soldered-together rechargeable variations on the everyday AA battery. Sure, they've got exotic chemistries, and they have tabs for soldering, but they're just a variation on a theme, and wasting &lt;em&gt;so damn much space&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;Nerd alert: If you think about it, actually..  say you have a battery pack of dimension (width, height, depth). There's w*h*d cubic units of volume in there, for whatever chemistry you care to fill it with. Now suppose you're constrained to filling this w*h*d with cylinder objects. Arbitrarily, I'm going to orient the length of the cells with the &lt;em&gt;d&lt;/em&gt; dimension, set the diameter of the cells to &lt;em&gt;h&lt;/em&gt;, and constrain dimension &lt;em&gt;w&lt;/em&gt; to integer multiples of h. Our individual cell volumes look like (pi*(h/2)^2*d), multiplied by (w/h) cells. With a lil algebraic manipulation, you have (pi/4)*(w*h*d)... (pi/4) is ~0.785.&lt;/p&gt;

&lt;p&gt;So, basically, you're throwing away ~21% of your total battery capacity by using this stupid construction technique. Actually more, since the individual cells have their own external packaging, thermal spacing, tabs, etc. Prismatic cells are a step in the right direction, but for fuckssake, they really need to be building *slab* cells. Yeah, I know there's engineering constraints like thermal migration, bulging, etc, but there's problems to be ironed out all the time. This is just delaying the inevitable.&lt;/p&gt;

&lt;p&gt;PS: Extra credit - open up a 9V battery, and learn what fear is.&lt;/p&gt;</description>
  </item>
  <item>
    <title>Firearms Tech Mini-Revisit</title>
    <link>http://top-quark.com/blog/2009/06/15#20090615_firearmsrevisited</link>
    <description>
&lt;p&gt;Cool - the &lt;a href=&quot;http://top-quark.com/gunthoughts.html&quot;&gt;powered picatinny rails idea&lt;/a&gt; I wrote about in 2005 is being worked on:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.dtic.mil/ndia/2009infantrysmallarms/wednesdaysessionvTorbjoern.pdf&quot;&gt;http://www.dtic.mil/ndia/2009infantrysmallarms/wednesdaysessionvTorbjoern.pdf&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Looking back and reading my page, I'm pleased that the XM8 died, too.&lt;/p&gt;</description>
  </item>
  <item>
    <title>you'll never know how nerdy i really am</title>
    <link>http://top-quark.com/blog/2007/05/26#052607_flashraid</link>
    <description>
&lt;p&gt;&lt;a href=&quot;http://www.microcenter.com&quot;&gt;Microcenter&lt;/a&gt; had an ad for cheap USB flash drives. Something like $10 for a 1 GB. I'm completely in love with the information density they offer, as well as their overall ruggedness, so I went ahead and grabbed a couple. They had two flavors - a Kingston DataTraveler 1 GB and a Microcenter-branded drive, with U3.&lt;/p&gt;

&lt;p&gt;It started with wanting to find out which of the two drives was faster. Using &lt;a href=&quot;http://xbench.com/&quot;&gt;XBench&lt;/a&gt;, a benchmarking suite for Mac, I went ahead and ran some hard drive benchmarks. The results were pretty comparable, with the Microcenter-branded drive coming out a touch faster on uncached writes. (results below - just you see)&lt;/p&gt;

&lt;p&gt;Then in the process of trying to get rid of the U3 &quot;feature&quot;, I re-found that OS X's disk utility is a rather powerful piece of software. You can, among other things, create RAID arrays from a variety of different devices.&lt;/p&gt;

&lt;p&gt;Sooo...&lt;/p&gt;

&lt;img src=&quot;/blosxom/images/052607_raidpic.jpg&quot;&gt;
&lt;p&gt;&lt;em&gt;Plug, plug&lt;/em&gt;&lt;/p&gt;

&lt;img src=&quot;/blosxom/images/052607_raidsetup.jpg&quot;&gt;
&lt;p&gt;&lt;em&gt;Click, click&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;So more benchmarks were set up with the new flash drive RAID, and the hard drive on my laptop. The results, with the original data, are below:&lt;/p&gt;

&lt;img src=&quot;/blosxom/images/052607_sequential.png&quot;&gt;
&lt;img src=&quot;/blosxom/images/052607_random.png&quot;&gt;

&lt;p&gt;Really, the whole playing around with drives and RAIDing was just shits-n-giggles. What really scares me is that I automatically started putting numbers into an Excel spreadsheet, pivoting out results, and making charts. I was halfway through specifying chart series before I realized what the hell was going on. Working in the commodities trading industry has done terrible things to my apathy.&lt;/p&gt;

&lt;p&gt;Results interpretation is sort of a repeated exercise in &quot;duh&quot;, but the most obvious point is that the hard drive kicks the crap out of the flash drives in writing. What's also &quot;duh&quot;, but notable, is that while the hard drive took a hit going from sequential to random large block reads, the flash drive (and flash drive RAID) performance was more-or-less unaffected. Surprisingly, the 256k block read performance on the flash RAID array exceeded the hard drive in both sequential and random cases.&lt;/p&gt;

&lt;p&gt;Putting it all to practice, copying over XVID movies to the flash raid array allowed for skipping around the movie without playback delay, where the same files on the hard drive required some time to get going after moving. I imagine this could be useful for video editing, or perhaps some database access situations. There's the usual worry about the life of NAND flash memory, but that doesn't really apply to reads, and it's now often stated that wear-leveling has resulted in flash drive lifetimes comparable to magnetic disks.&lt;/p&gt;

&lt;p&gt;Overall, what really sticks out in this case is a kind of general engineering observation, in the implementation of systems manifesting dichotomy. Rather than utilizing one approach or either, igniting numerous holy wars en route, the solution is often to utilize a hybrid approach. The most solid examples coming to mind now are CISC/RISC (Micro-ops), and the essential data storage dichotomy of fast+small and slow+big (caching).&lt;/p&gt;

&lt;p&gt;The key in any of these is to allow for an offset between the approaches, such that the weakpoints of one side exactly coincide with the strongpoints of the other. The situation illustrated with the comparison between the flash RAID and the hard drive shows a dichotomy that could be exploited accordingly. An interface could be implemented where random reads could be directed to the flash component of a drive, and sequential operations directed to the magnetic drive component. This segregation could be realized by statistical examination, or just with some sort of miniature tournament model, where the interface issues commands to the flash and magnetic components, and waits for the first component to return the result of the operation.&lt;/p&gt;

&lt;p&gt;
I know it's livejournalish to post IM conversations, but I appreciate harsh truth:
&lt;br /&gt;
&lt;br /&gt;
[22:34:59] me: why am i doing this
&lt;br /&gt;
[23:30:54] friend: why are you doing this?
&lt;br /&gt;
[23:54:52] me: I don't even know
&lt;br /&gt;
[23:55:22] me: but I do know that if I'm gonn do uncached random reads, a ghetto flash raid array is wonderful!
&lt;br /&gt;
[00:06:55] friend: why can't you just have normal hobbies?
&lt;/p&gt;

&lt;p&gt;Edit: I'm never as clever as I wish I were:
&lt;br /&gt;
&lt;a href=&quot;http://hardware.slashdot.org/article.pl?sid=05/02/08/1512201&amp;tid=198&amp;tid=180&quot;&gt;ipod shuffle raid&lt;/a&gt;
&lt;br /&gt;
&lt;a href=&quot;http://en.wikipedia.org/wiki/Hybrid_drive&quot;&gt;hybrid hard drives&lt;/a&gt;
&lt;/p&gt;</description>
  </item>
  <item>
    <title>Java, OS X Terminal, and Unicode - a Sordid Tale</title>
    <link>http://top-quark.com/blog/2007/01/27#012607_unihanfun</link>
    <description>
&lt;p&gt;I'm pissed off, and I'm not sure who or what to blame.&lt;/p&gt;

&lt;p&gt;See, right now, I'm trying to build a front-end to the &lt;a href=&quot;http://unicode.org/charts/unihan.html&quot;&gt;UNIHAN database&lt;/a&gt;, which I've found to be profoundly useful for my East Asian language research; specifically the fact that it contains Tang Dynasty-era pronunciations for quite a few CJK (Chinese/Japanese/Korean) characters. The Mandarin, Japanese, and Sino-Korean pronunciations are also very nice to have. Unfortunately, the database itself is a massive UTF-8 flatfile, keyed by a character's hexadecimal UTF-16 codepoint, so it's not the easiest thing in the world to use.&lt;/p&gt;

&lt;p&gt;So I'm using Java to make an application to allow me to type in a Han character, and get the UNIHAN data. What pisses me off, though, is the way that (Java/OS X/OSX's Terminal) handles unicode output. It's messed up as hell, and I &lt;em&gt;don't. know. why.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Here's an example. Suppose I have code that looks like this:&lt;/p&gt;

&lt;pre&gt;
System.out.println(&quot;你好&quot;);
System.out.println(&quot;\u4f60\u597d&quot;);
&lt;/pre&gt;

&lt;p&gt;The first println works fine, and outputs the characters fine to OS X's Terminal. The second println, using the UTF-16 codepoints for those two characters (U+4F60 and U+597D, respectively), prints out two question marks. Cut-and-pasted, straight from terminal:&lt;/p&gt;

&lt;pre&gt;
你好
??
&lt;/pre&gt;

&lt;p&gt;I shit you not.&lt;/p&gt;

&lt;p&gt;This isn't exactly something anyone I know can help me with, either. The most helpful answer I've gotten is that there're some very rare variant characters that have a codepoint associated with them, but no glyph representation in a font. This I knew, but there's a slight issue with that explanation. Namely, that the characters &quot;你好&quot; are roughly the Chinese equivalent of &quot;hello&quot;.&lt;/p&gt;

&lt;p&gt;Well, that, and the fact that the characters printed out just fine ON THE LINE RIGHT ABOVE.&lt;/p&gt;

&lt;p&gt;So I don't know whether to blame Java, OS X, or Terminal, all of which are purported to be unicode-friendly. Actually, I think there's a strong chance that it's my fault, but we can pretend I didn't admit that. What I may just end up doing here is to declare a &quot;screwit&quot; situation, and just jump to the Swing app I was thinking about making, since that supposedly solves many issues.&lt;/p&gt;</description>
  </item>
  <item>
    <title>﻿Grado SR-60</title>
    <link>http://top-quark.com/blog/2006/10/19#101706_grado</link>
    <description>
&lt;p&gt;Being on campus for 14 hours a day is not particularly fun. Lately, a large portion of that time's been spent with a pair of cheapie ipod-style earbuds stuck in my head. For various reasons, mostly my irrational disinclination for going deaf, I've decided to stop using earbuds. My replacement led me back to a set of headphones I'd had once, and really enjoyed - the Grado SR60.&lt;/p&gt;

&lt;img src=&quot;/blosxom/images/101706_grado1.jpg&quot;&gt;

&lt;p&gt;Some very basic research on the net provides a treasure trove of reviews about the SR60. It's the darling of value-oriented sound enthusiasts, and a common infection vector for audiophilia. I won't really go into a huge analysis of my experiences: after about 48 hours of moderately loud break-in, they sounded excellent. My only complaints are that bass is a little weak, the upper end is a little lively (&quot;bright&quot;), and that there's not a lot of sound isolation, for either the listener or the public. These are expected, if one reads the reviews.&lt;/p&gt;

&lt;img src=&quot;/blosxom/images/101706_grado2.jpg&quot;&gt;

&lt;p&gt;A pair of airline socks valiantly gave their lives to the cause of better sound.&lt;/p&gt;

&lt;p&gt;Their sacrifice was certainly not made in vain; the socks improve every shortcoming of these headphones. Bass response is (imo, greatly) improved, with only a trace of muddiness. I think this very slight muddiness might be due to the choice of material; a less &quot;fuzzy&quot; sock might have crisper response. Also, rolling them tighter would probably be an improvement (I'd do it, but then I'd need to resew the stitches holding the &quot;rolls&quot; together). Sound isolation is also &lt;em&gt;much&lt;/em&gt; improved over my original pair of &quot;quarter-modded&quot; (i.e., quarter-size hole removed) foam pads. The last major improvement is to comfort; I don't find the stock &quot;comfy&quot; pads to be as offensive as some do, but my last pair of decent headphones had earpads surrounding the entirety of the ear (circumaural), versus the &quot;on ear&quot; (supra-aural) design of the original foam pads on the SR60. Tradition won out, and I find that these new pads are much more comfortable than the stock supra-aurals.&lt;/p&gt;

&lt;p&gt;More mods may be coming; I'm pretty sure I'm going to rewire the headphones with cable that's thinner. At 3/16 of an inch, the main cord on these is pretty hefty; enigmatically, the &quot;branches&quot; coming off the y-connector feel cheap and thin.&lt;/p&gt;

&lt;p&gt;When I get around to opening up the headphones for recabling, chances are good that I'll be doing a couple other mods. Offhand, I'm thinking about adding jacks to the headphones, and plugs to the cable, so that I won't kill my phones if I stand up with my cable underfoot. I'm also thinking about making the wire connection to just one side, and running the wire up through the headband for the other side. Some audiophile nuts I talked with tried to convince me that this would degrade sound quality, on account of the signals being out of phase, due to the small amount of extra cable run.&lt;/p&gt;

&lt;p&gt;Sitting down with my calculator, though, I figured a worst-case scenario of about 2e-4 radians offset. That's 0.0002 radians. If there's nothing else you should learn from this short excursion into the world of higher audio mania, it's that the term &quot;audiophile&quot; is a synonym for &quot;sucker&quot;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;With profuse apologies to toshi, whose photographic obsession with desaturation has &quot;colored&quot; me. Ha ha.&lt;/em&gt;&lt;/p&gt;</description>
  </item>
  </channel>
</rss>