steev's thoughts Inside the mind of steev. 2011-06-25T02:04:47Z http://utools.ca/journal/feed/atom/ WordPress Steve Woodrow http://www.utools.ca <![CDATA[Burning Ships]]> http://utools.ca/journal/?p=350 2011-06-25T02:04:47Z 2011-06-25T02:04:47Z “Sometimes in life you have to burn your ships. I hope everyone finds someone worth burning their ships for.” — Philip Welch

]]>
0
Steve Woodrow http://www.utools.ca <![CDATA[If you only knew the power of the dark slide]]> http://utools.ca/journal/2011/03/04/if-you-only-knew-the-power-of-the-dark-slide/ 2011-06-21T21:02:23Z 2011-03-04T05:29:03Z
Darkslide

dark slide from Polaroid-compatible instant film sold by The Impossible Project.

5

The Impossible Project decided to use this otherwise-disposable cardboard card as a opportunity for creativity. In their words:

Basically the darkslide is a purely technical necessity, protecting the film from light as long as it is outside the camera. Impossible is converting the darkslides in collector cards by transforming them into an area to present art projects. On a regular basis we will invite artists to develop refreshing, creative and inspiring content that turns the Impossible Darkslides into unique pieces of art.

You can see all 123 dark slides here.

Images from The Impossible Project.

Posted via email from FORM PLUS FUNCTION

]]>
0
Steve Woodrow http://www.utools.ca <![CDATA[sort ––debug is handy]]> http://utools.ca/journal/?p=323 2011-03-04T05:32:10Z 2011-02-24T00:10:37Z Coming soon to a coreutils near you (it’s in coreutils 8.6 and later, which will hopefully be picked up by major distros soon) — the sort --debug option. It places “underlines” under the portion of the key used to perform the sort, which is very helpful when you’re trying to figure out why sort is acting the way it is.

You can see in the snippets below the original file and two sorts of that file.

woodrow@woodrow-x200:~/tmp$ cat sort_test
1.2.3.4
2.3.4.5
12.3.2.4
12.2.3.4
12.2.3.5
11.2.3.4
1.12.3.4
20.2.3.4
21.2.3.4
12.2.3.6
12.2.3.5

The first sort, below, uses a numeric sort (-n) which extracts the first part of the value that looks like a decimal number and uses that as the sort key. You can see this in the first underline beneath each entry. It then performs a sort of last resort on the entire value, which you can see as the second underline beneath each entry.

woodrow@woodrow-x200:~/tmp$ /home/woodrow/bin/sort -n --debug sort_test
/home/woodrow/bin/sort: using simple byte comparison
1.12.3.4
____
________
1.2.3.4
___
_______
2.3.4.5
___
_______
11.2.3.4
____
________
12.2.3.4
____
________
12.2.3.5
____
________
12.2.3.5
____
________
12.2.3.6
____
________
12.3.2.4
____
________
20.2.3.4
____
________
21.2.3.4
____
________

The second sort, below, also uses a numeric sort (-n), with the key shown by the underline. However, this sort is a stable sort (-s) meaning that it doesn’t perform a sort of last resort on the entire value. This preserves the input ordering of values which have the same key, which is why this sort is “stable” in computer science parlance.

woodrow@woodrow-x200:~/tmp$ /home/woodrow/bin/sort -n -s --debug sort_test
/home/woodrow/bin/sort: using simple byte comparison
1.12.3.4
____
1.2.3.4
___
2.3.4.5
___
11.2.3.4
____
12.2.3.4
____
12.2.3.5
____
12.2.3.6
____
12.2.3.5
____
12.3.2.4
____
20.2.3.4
____
21.2.3.4
____
]]>
0
Steve Woodrow http://www.utools.ca <![CDATA[Macro Benchmarks]]> http://utools.ca/journal/2011/02/18/macro-benchmarks/ 2011-06-21T21:03:06Z 2011-02-18T22:07:20Z

US NGS benchmarks, from this publication.

Posted via email from FORM PLUS FUNCTION

]]>
0
Steve Woodrow http://www.utools.ca <![CDATA[Life imitates subway maps]]> http://utools.ca/journal/2011/02/06/life-imitates-subway-maps/ 2011-06-21T21:03:23Z 2011-02-07T04:47:30Z

A current sample of visualization of thesis data — in this case, the CIDR Report. Vertical position on the graph reflects ranking on the CIDR Report.

Posted via email from FORM PLUS FUNCTION

]]>
0
Steve Woodrow http://www.utools.ca <![CDATA[Quick frequency tables in unix]]> http://utools.ca/journal/?p=309 2010-11-18T06:38:07Z 2010-11-18T06:38:07Z I found this here and thought it should be recorded.

If you have a single series of data (in my case, AS numbers) and you want a frequency count, how can you do that on the command line?

... pipe input here ... | sort | uniq -c | sort -r -n

This 1. sorts incoming data as required by uniq, 2. outputs the unique keys and their frequency of occurrence, sorted by the key in lexicographical order, and 3. resorts the output by the frequency of occurrence in descending order, leaving you with something like:


$ grep -P " 33363$" rib.20101113.txt | awk '{print $2}' | sort | uniq -c | sort -r -n

   1558 11686
    317 3549
    310 852
    310 3130
    162 8492
    162 8001
    162 7660
    162 7018
    162 701
    162 6762
    162 5413
    162 5056
    162 3356
    162 3257
    162 31500
    162 2905
    162 286
    162 13030
    162 1299
    156 6939
    155 812
    155 6539
    155 3561
    155 293
    155 2914
    155 2497
    155 2152
    155 1668
    155 1239
    155 1221
     76 3303

Where the first column is the frequency and the second column is the unique key in the source data stream.

]]>
0
Steve Woodrow http://www.utools.ca <![CDATA[The Q says it all]]> http://utools.ca/journal/2010/08/03/the-q-says-it-all/ 2011-06-21T21:03:48Z 2010-08-03T23:29:31Z

And it says Univers. As seen in Montréal.

Posted via email from FORM PLUS FUNCTION

]]>
0
Steve Woodrow http://www.utools.ca <![CDATA[The unintentional beauty of making semiconductors]]> http://utools.ca/journal/2010/05/27/the-unintentional-beauty-of-making-semiconductors/ 2011-06-21T21:04:02Z 2010-05-27T19:33:50Z

At risk of the blog becoming stale already, I thought I’d fall back on some older material of mine. Back in the summer of 2007 I worked in a semiconductor research fab lab. Everything was pretty much focused on the engineering, and yet there were unintentionally beautiful things to be found here and there. Like the brilliant colors on wafers caused by thin-film interference in the silicon dioxide we grew and later etched, or the patterns created by rows of copper and stainless steel gas tubing that snaked outside of the cleanroom, delivering vital gasses to the equipment therein. I brought a camera in one day to capture some of this unintentional beauty.

This photo captures the perfectly flat, mirror-like surface of a set of freshly cleaned wafers in a quartz boat, waiting to be loaded into an oxidation furnace. The no-lint wipe that the boat is sitting on becomes very interesting with the depth of field. The red dot on the wafers is from a power-on lamp on a sputtering machine behind the camera.

Posted via web from FORM PLUS FUNCTION

]]>
0
Steve Woodrow http://www.utools.ca <![CDATA[Sharpie pokes fun at protestors]]> http://utools.ca/journal/2010/05/23/sharpie-pokes-fun-at-protestors/ 2011-06-21T21:04:39Z 2010-05-24T02:35:49Z

While perhaps not exactly traditionally form+function, I thought this ad was interesting. Perhaps a subtle joke from some conservative-leaning ad agency? I don't think the function of this scene is the type of self-expression that most protestors are interested in.

Posted via email from FORM PLUS FUNCTION

]]>
0
Steve Woodrow http://www.utools.ca <![CDATA[News as a stock ticker]]> http://utools.ca/journal/2010/05/21/news-as-a-stock-ticker/ 2011-06-21T21:05:09Z 2010-05-22T04:04:00Z

No, I’m not trading mortgage foreclosures as securities. This is the
start of a little project inspired by @lisawilliams about tracking
long-term “news” events via unconventional means. News as a stock
ticker? News as a signal?

Posted via email from FORM PLUS FUNCTION

]]>
0