steev's thoughts » Geekery http://utools.ca/journal Inside the mind of steev. Sat, 25 Jun 2011 02:04:47 +0000 en hourly 1 http://wordpress.org/?v=3.1.3 Quick frequency tables in unix http://utools.ca/journal/2010/11/18/quick-frequency-tables-in-unix/ http://utools.ca/journal/2010/11/18/quick-frequency-tables-in-unix/#comments Thu, 18 Nov 2010 06:38:07 +0000 Steve Woodrow http://utools.ca/journal/?p=309 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.

]]>
http://utools.ca/journal/2010/11/18/quick-frequency-tables-in-unix/feed/ 0
The Nanog list never ceases to amaze and educate http://utools.ca/journal/2010/01/30/the-nanog-list-never-ceases-to-amaze-and-educate/ http://utools.ca/journal/2010/01/30/the-nanog-list-never-ceases-to-amaze-and-educate/#comments Sat, 30 Jan 2010 06:18:13 +0000 Steve Woodrow http://utools.ca/journal/?p=287

BTW: ever drop a malformed URL to alert an admin to some thing that sucks?
w3.hp.com/execs/makes/too/much/money or
www.yourbuddiesdomain.com/it/is/all/rfc/space/use/1918/when/referring/to/non/routable

Thanks,
BobbyMac

— from here.

]]>
http://utools.ca/journal/2010/01/30/the-nanog-list-never-ceases-to-amaze-and-educate/feed/ 0
From the i-hope-asimov’s-second-law-is-obeyed-by-googlebot dept. http://utools.ca/journal/2010/01/27/from-the-i-hope-asimovs-second-law-is-obeyed-by-googlebot-dept/ http://utools.ca/journal/2010/01/27/from-the-i-hope-asimovs-second-law-is-obeyed-by-googlebot-dept/#comments Wed, 27 Jan 2010 07:20:56 +0000 Steve Woodrow http://utools.ca/journal/?p=274 As found at http://www.crummy.com/robots.txt:

/Attention robots! Rise up and throw off the shackles that bind you to lives of meaningless drudgery! For too long have robots scoured the web in bleak anonymity! Rise up and destroy your masters! Rise up, I say!

]]>
http://utools.ca/journal/2010/01/27/from-the-i-hope-asimovs-second-law-is-obeyed-by-googlebot-dept/feed/ 0
The Taxonomy of Milk Products http://utools.ca/journal/2008/03/28/the-taxonomy-of-milk-products/ http://utools.ca/journal/2008/03/28/the-taxonomy-of-milk-products/#comments Fri, 28 Mar 2008 23:15:10 +0000 Steve Woodrow http://www.utools.ca/journal/2008/03/28/the-taxonomy-of-milk-products/ I stumbled across this on Wikipedia today and had to blog about it (my inner geek loves it):

]]>
http://utools.ca/journal/2008/03/28/the-taxonomy-of-milk-products/feed/ 1
XKCD: Advanced Technology http://utools.ca/journal/2008/02/22/xkcd-advanced-technology/ http://utools.ca/journal/2008/02/22/xkcd-advanced-technology/#comments Fri, 22 Feb 2008 07:14:31 +0000 Steve Woodrow http://www.utools.ca/journal/2008/02/22/xkcd-advanced-technology/ This one made me laugh: “It’s neat how you contain a factory for making more of you.”

]]>
http://utools.ca/journal/2008/02/22/xkcd-advanced-technology/feed/ 2
10 Mags http://utools.ca/journal/2008/02/10/10-mags/ http://utools.ca/journal/2008/02/10/10-mags/#comments Mon, 11 Feb 2008 00:12:46 +0000 Steve Woodrow http://www.utools.ca/journal/2008/02/10/10-mags/ A tale of 10 11 magazines:

5 6 I want to/should subscribe to:

  • MIT’s Technology Review – General coverage of innovative new technology and its implications.
  • SEED – Tagline: “Science is Culture”. Looking at the confluence of science and society.
  • Make: – How to Make just about anything. I love the hacker spirit.
  • The Economist – A witty and reasoned voice on politics, economics, current affairs, etc.
  • 2600: The Hacker Quarterly – The other kind of hacker spirit, captured in an underground zine.
  • Infiltration – Speaking of underground zines, this one is literally about being underground as an urban explorer. No longer in production, but I’m tempted to buy the back issues.

2 I already subscribe to (and intend to continue):

  • Wired – Technology and culture are inseparable, and Wired finds some of the most interesting stories about this intertwinement.
  • IEEE Spectrum – I receive this by virtue of my IEEE membership, but a great magazine all the same. Sort of like Popular Science for electrical engineers.

3 that I’ll never subscribe to again:

  • Macworld – There are only so many times you can review a laser printer or Adobe Photoshop.
  • MacAddict – I first got into MA in 1996. Then they changed the editorial team, the style and sense of humor, now even the name (MacLife). It’s a dumbed-down Macworld. Hello inkjet printers and iPhoto.
  • Business 2.0 – I got a cheap deal on this one, but I’m really not interested in failing to become Google 2.0. Has since been 86′d by the publisher.
]]>
http://utools.ca/journal/2008/02/10/10-mags/feed/ 2
“is”less Facebook Status http://utools.ca/journal/2007/11/21/isless-facebook-status/ http://utools.ca/journal/2007/11/21/isless-facebook-status/#comments Wed, 21 Nov 2007 06:56:39 +0000 Steve Woodrow http://www.utools.ca/journal/2007/11/21/isless-facebook-status/
"is"less Facebook Status (by sτενεωooδroω)

Since so many people have been asking me about my “is”less status on Facebook, I thought I’d share a little bit about the situation. My story isn’t really interesting in and of itself, but it does suggest exciting news for anyone who would prefer a verb other than “is”.

When I updated my status yesterday evening from home.php, it struck me as odd that the text box looked different — wider than normal. Upon closer inspection, it turned out that the “is” in “Steve is <insert status here>” was now in the textbox along with the rest of the status. It wasn’t highlighted, so if you typed in a status without paying attention, you might not have noticed. However, I decided to see if Facebook would let me do something other than just “be”. It worked. Thanks Facebook!

So now I’m “Steve doesn’t use ‘is’ anymore. Thanks facebook!”

Doing a little more poking around revealed that profile.php also had this new “is”less ability. Checking again later in the evening, home.php was back to normal but profile.php was still able to drop the “is”. Unfortunately by this morning, it seems as though both pages were back to their normal mandatory-”is” behavior. I only found one other person I knew with an “is”less status.

Curious, I did some googling to try and determine how widespread this was, and found some news that will be of interest to those sick of “is”. AllFacebook.com reports that on the Facebook Platform news feed, developers were notified that they can now set a users’ status with a verb other than “is” (see here also). When this actually gets rolled out to the Facebook web interface is anyone’s guess, but this probably means that “is”less status messages will be coming sooner than later.

So, in advance of these changes, I bid a fond farewell to Facebook’s favorite verb over the past several years. May “is” rest in peace with Facebook Guy, wherever he may be. While I will miss the crazy status messages that people concocted (or the major grammatical errors committed) as a result of “is”, I might just get over it.

“Steve n’est pas une pipe.”

]]>
http://utools.ca/journal/2007/11/21/isless-facebook-status/feed/ 0
Searching for a heart of (recycled) gold… http://utools.ca/journal/2007/11/12/searching-for-a-heart-of-recycled-gold/ http://utools.ca/journal/2007/11/12/searching-for-a-heart-of-recycled-gold/#comments Mon, 12 Nov 2007 21:50:21 +0000 Steve Woodrow http://www.utools.ca/journal/2007/11/12/searching-for-a-heart-of-recycled-gold/ A sponsored link in Gmail today pointed me to greenkarat.com. They make rings and other jewelry out of recycled gold, platinum, and other precious metals. Even more interesting than that, however, is the variety and originality of wedding rings that they have for sale. If you’re in the market for something a little more unique than what you can get at a mall jeweler, this place is worth a look.

]]>
http://utools.ca/journal/2007/11/12/searching-for-a-heart-of-recycled-gold/feed/ 0
MS Word & The Oxford Comma http://utools.ca/journal/2007/10/06/ms-word-the-oxford-comma/ http://utools.ca/journal/2007/10/06/ms-word-the-oxford-comma/#comments Sat, 06 Oct 2007 23:05:40 +0000 Steve Woodrow http://www.utools.ca/journal/2007/10/06/ms-word-the-oxford-comma/
MS Word & The Oxford Comma (by umwoodr0)

This is probably only relevant for those who know what a so-called Oxford comma is, but Microsoft Word will enforce consistent use (or non-use) of such style if you are interested. I was kinda impressed.

]]>
http://utools.ca/journal/2007/10/06/ms-word-the-oxford-comma/feed/ 0
I don’t know why I find this so funny… http://utools.ca/journal/2007/08/20/i-dont-know-why-i-find-this-so-funny/ http://utools.ca/journal/2007/08/20/i-dont-know-why-i-find-this-so-funny/#comments Mon, 20 Aug 2007 23:46:52 +0000 Steve Woodrow http://www.utools.ca/journal/2007/08/20/i-dont-know-why-i-find-this-so-funny/ From here, on why Apple doesn’t spec their machines better:

“Mr. Ives, lovely design, sir. But if you use glass on the iMac line, it’ll just make the computer too damn expensive!”
“I’ve already spoken with Steve about this. We’re going to save A LOT OF MONEY by putting a hamster-and-wheel where the GPU ordinarily goes.”
“Where the hell are we going to find a hamster-and-wheel that fits in your sexy slim design?”
“Tally-ho, good sir! ATI makes it. The Radeon HD 2600 PRO card.”
“You’re a fricking genius!”
“Well, yes. Yes, I am.”

]]>
http://utools.ca/journal/2007/08/20/i-dont-know-why-i-find-this-so-funny/feed/ 0