The Collective We

About

The Collective We, rants and ravings from the side of reason.

My PGP Public Key

Public Photo Gallery

Twitter Feed

    Search

    Advanced Search

    Archives

    Friends

    Geeks

    Reading

    Feeds


    My New Laser Pointer - Ouch!

    Holy Fuck!  I did not understand what I was purchasing.  I mean, seriously, I thought I was getting a very nice, super bright green laser pointer that I could perform cool tricks with, and still use while giving a presentation.  I expected this pointer to be about the size of a Mini-MagLite, maybe slightly larger.

    Instead, received a large device, about the size of three “C” batteries placed in series, and wrapped in duct tape.  This <50mw green laser pointer is so bright, you cannot use it indoors.  At least not safely.  Anybody who may be around is going to get back-scatter off of whatever surface you decide to lase.  Yes, you can get safety glasses (and this particular laser came with a pair) but it is a little rediculous to ask an entire audience to wear the safety glasses during a presentation.  Not to mention, if the presentation is longer than 10 minutes my arm will get tired of using this hefty beast.

    All joking aside, I got exactly what I ordered from Wicked Lasers.  I did think I was getting a much smaller laser, and I had no idea of the power of <50mw.  I mean, I understood that the dime store laser-pointer keychains are usually <1mw, and a good expensive laser pointer can be around <10mw…  I think I just wasn’t prepared for what <50mw really equaled, in terms of brightness and blinding energy.

    I love this laser, it is well made and super great.  But I am not sure what I am going to be able to do with it.  I mean, aside from retinas <50mw won’t burn much, so I don’t have to worry about setting the world around me on fire.  I stood on my roof deck tonight and shined it on the side of my friend’s house, 738.2 meters away.  He said that there was a 7 foot diameter green dot on the side of his house…  738 meters away!!  Wait, just so you get the gravity of 738 meters, let me convert it something you might understand…  I mean we are in the USA right…

    403.6 Fathoms (for my sailing friends)
    7.80257e-14 Light Years
    14.76 Olympic Swimming Pools
    2.09248e+6 Points (for Andrew who only understands PostScript)
    433.71 Smoots (for anybody who has ever lived in Boston!)
    0.399 Nautical Miles (also from my sailing friends)
    1383.83 Mesopotamian nil_cubits (for Tom Collins, my wife, and social studies folk)

    Oh and for the rest of you…
    807.3 Yards
    0.46 Miles

    I have no idea what to do with this thing…  It might actually be less useful then it was in my dreams.

    UPDATE 06/09/2010:  If you want to try out blindness, at least throw some cash my way and use this link.
    http://www.wickedlasers.com/index.php?refer=61013

    Thanks.

    Posted on Tue, 01 Jun 2010 22:43:23 -0700 in
    Geek Personal Projects Reviews Products
    Permalink

    Boxee and Apple TV

    I have been running Boxee beta on my AppleTV v3.0.1 for a few weeks now.  It has been great… until this morning, while up soothing a screaming child and watching The Guild.  The AppleTV reset itsef and came back up running AppleTV v. 3.0.2 with no more Boxee.  Sad day.

    Posted on Sun, 14 Feb 2010 04:25:43 -0800 in

    Permalink

    Using Directory Services information to generate a Telephone List

    Using Directory Services information to generate a Telephone List

    My organization creates a list of four digit extension numbers of all the employees in the organization, every year or so. The purpose of course is to provide a quick reference list, next to every telephone in the building. Until recently, the list has been maintained manually, and over time it has become an unruly mess of fonts, tabs and various styles. I have found it to be quite useless for some time.

    Last year I decided to tackle this issue, and automate the list generation. My first attempt, was significantly better than the original manually generated list, but was less than ideal. It boiled down to running csvde with a long list of arguments on one of my domain controllers in order to generate a .csv file that contained more information than I needed. Then I moved that file to my mac, and through the use of some shell scripting I was able to trim the un-needed information out of the file and create a new, filtered, .csv file Following that, I was able to take the filtered .csv and run it through a mail merge document that I created in Word.

    It worked, it generated the document exactly the way I wanted it. However, there were a few things I didn't like. My biggest gripe was that I had to use both the Win 2K3 Domain Controller (to generate the first file) and then had to use my Mac to process that file and ultimately generate the word document.

    Over Christmas break this year, I set out to resolve that issue, and do some learning on a couple of topics that have interested me for a while now.

    Apple has provided a command line utility called dscl (Directory Services Command Line) for at least the last two major releases of OS X. I have only just learned what it can do for me. I found it to be quite useful in pairing down the number of steps required to generate the telephone list.

    Here is a copy of the script, fairly well commented, for ease of understanding.

    #!/bin/bash

    # Phone List Generator v. 2 by bill_wellington at aw.org
    # This script will pull live data from Active Directory and output a .csv
    # file (named as an argument) including first name, last name, department,
    # phone ext. and mobile phone ext. It goes through a strips out all
    # constituents who are students, members of the "Class of...", or who do
    # not have a 4 digit extension listed in either their phone number or
    # their mobile number. The list can then be used to generate a phone list
    # using MS Word's mail merge functions.

    # create file
    touch /tmp/$1.csv
    echo > /tmp/$1.csv

    # pull a plist for every user in AD
    for i in `dscl /Active\ Directory/All\ Domains/ -list /Users` ; do
    dscl -plist /Active\ Directory/All\ Domains/ -read /Users/${i} FirstName LastName Department PhoneNumber MobileNumber | \

    # remove lines matching following regex - these extra xml delimiters that we will not use
    grep -v '^<?xml.*$' | \
    grep -v '^<!DOC.*$' | \
    grep -v '^<plist.*$' | \
    grep -v '^</plist>' | \
    grep -v '<key>.*$' | \

    # remove xml tags around the data we want to keep, insert commas between fields
    sed -e '/<dict>/d' -e 's@</dict>@@' \
    -e '/<array>/d' -e 's@</array>@@' \
    -e 's/<string>//' -e 's@</string>@,@' | \

    # remove tab characters (0x09) from original xml output
    sed -e 's/ //g' | \

    # clean up ampersands
    sed -e 's/&/\&/g' | \

    # remove line breaks
    sed -n -e ":a" -e "$ s/\n//gp;N;b a" | \

    # remove students and all other without 4 digit extension
    grep -v "Student" | \
    grep -v "Class of " | \
    grep '^.*[0-9][0-9][0-9][0-9].*$' | \


    # ok, now we have the data we want, let's put the fields in the right order
    sed -e 's/\([0-9][0-9][0-9][0-9],\)\([0-9][0-9][0-9][0-9],\)/\2\1/' | \
    sed -e "s|\([a-zA-Z \&'/-]*,\)\([a-zA-Z ]*,\)\([a-zA-Z '-]*,\)\(.*\)|\3\2\1\4|" | \

    # remove trailing commas from lines with a cell number
    sed -e 's|\(.*,.*,.*,.*,.*\),|\1|' >> /tmp/$1.csv

    done

    # prepare final .csv
    echo "Last Name, First Name, Department, Ext., Cell" > $1.csv

    sort -f /tmp/$1.csv | \


    #remove blank lines
    sed -e '/^$/d' >> $1.csv

    # add in static numbers
    echo "Activity Bus 1,,,,5448" >> $1.csv
    echo "Activity Bus 2,,,,5449" >> $1.csv
    echo "Auction Office,,,5454," >> $1.csv
    echo "AWSPA Office,,,5454," >> $1.csv
    echo "Bishop's Suite,,,5409," >> $1.csv
    echo "College Counseling,,,4339," >> $1.csv
    echo "Courtesy Phone,,,8604," >> $1.csv
    echo "Dorm Parent Office,,,5423," >> $1.csv
    echo "Dorm Parent Cell 1,,,,5446" >> $1.csv
    echo "Dorm Parent Cell 2,,,,5447" >> $1.csv
    echo "Extended Day,,,8627,5445" >> $1.csv
    echo "Front Office,,,8642," >> $1.csv
    echo "HelpDesk - Tech,,,8999," >> $1.csv
    echo "Housekeeping (Daytime),,,,5438" >> $1.csv
    echo "Kitchen,,,4153," >> $1.csv
    echo "Meeting Rooms,,,," >> $1.csv
    echo "Conference Room,,,8893," >> $1.csv
    echo "Cottage 1st Floor,,,8894," >> $1.csv
    echo "Cottage 2nd Floor,,,8895," >> $1.csv
    echo "Huston Room,,,8891," >> $1.csv
    echo "Sutton Room,,,8892," >> $1.csv
    echo "Security,,,5426,5444" >> $1.csv



    # Future Plans This scrpt perhaps through some fancy "osascript" commands
    # should be able to launch MS Word, and perform the mail merge. I need to
    # check and see if Word's Mail Merge functions are scriptable using
    # AppleScript.

    Posted on Sun, 03 Jan 2010 21:25:27 -0800 in
    AWS Network Administration Phones Technology Apple Computer Macintosh OS X Open Directory Microsoft Windows Server 2003 Active Directory
    Permalink

    “Good Fences Make Good Neighbors”

    With the fall of the Berlin Wall in 1989, it is amazing to me that all around the world we are still living with wall that are built to keep people separated.  In some cases we are building new walls, in many cases we are still living with the old walls.

    BBC Special Report

    Posted on Fri, 06 Nov 2009 08:18:39 -0800 in
    Personal Politics
    Permalink

    3Com can’t document their ass from their elbow.

    When I inherited the network I administer, I inherited a bunch of 3Com switches.  Over time I have swapped them out with other 3Com products.  I find that switching is one of those things where everything works so much better if you use one vendor’s products… and since I didn’t change out all of the switches at once I continued purchasing 3Com products.  3Com fucked me today.  I got no courtesy reach around, it was rough, and horrible.  As a result I will never purchase another 3Com product.

    I am setting up a vSphere cluster with a bunch of Dell R710 servers and an EqualLogic PS4000 SAN.  The recommendation is to use Jumbo Frames on the switch that connects the SAN to the servers.  I have a 3Com Baseline Switch 2948-SFP (3CBLSG48), actually I have several of these, but only one that matters in this case.  If you follow the previous link, you will notice that in the center column, ninth bullet point, it says “Jumbo Frame support for reduced network load.”  Well let me tell you, there is absolutely zero documentation on how to activate Jumbo Frames on this switch.  Let’s take a look at the user manual.  Search for the word “jumbo” in the user manual and you will find exactly one entry, on page 2 (or 13, depending on how Acrobat numbers the pages.)  It is a bullet point that says “The Switch 2948 features the following advantages: ... Jumbo frames”

    All of this indicates to me that the switch supports Jumbo frames in some shape or form, but since the guide has only this entry, I have absolutely no idea how to configure them.  Going through 3Com’s bastardized web interface didn’t help either, nothing in there to suggest Jumbo frames.  the CLI offered little more than configuring the IP address, or resetting the entire config.  In short, completely useless.

    But wait.  Jumbo frames are also called 9000 byte MTUs.  A search through the manual for “MTU”, “9000”, and “Maximum Transmission Unit” revealed absolutely nothing.  Basically you can’t configure them… and let me tell you, if they are “automatically configured” they sure don’t work worth a shit.

    A call to 3Com resulted in no answer, but it is Labor day today, so I will give them that.

    Searching through their knowledge base and their user forums, gleaned not a clue.

    Most maddening of all, was a google search for “3com 2948 jumbo frames” reveals everybody who is trying to sell one of these switches, but doesn’t come up with anybody who is trying to make Jumbo frames actually work on this switch.

    Basically, what should have been a 10 minute config issue has turned into hours of fruitless labor. 

    3Com, I hate you.

    Posted on Mon, 07 Sep 2009 18:06:36 -0700 in
    Network Administration Switches Technology
    (0) Trackbacks Permalink

    Page 1 of 54 pages  1 2 3 >  Last »