Blog

  • RIP Miles Dudley Adams

    [ Originally published on: Thursday, January 03, 2008 in the Daily Hampshire Gazette ]

    NORTHAMPTON – Miles Dudley Adams, 18, died Dec. 30 at Baystate Medical Center in Springfield from injuries incurred after being struck by a motor vehicle on Interstate 91.

    Born in Northampton on March 20, 1989, Miles lived the first seven years of his life in Haydenville, where he attended the Helen E. James School. After moving to Northampton in 1996, he attended Bridge Street School and John F. Kennedy Middle School. Miles graduated from Northampton High School in 2007 and was a freshman at Fitchburg State College, where he had been accepted into the Film and Video program. Miles was an honor student and talented athlete. He played soccer for the Northampton Soccer League and the Northampton High School soccer team. Nicknamed the “Phoenix” by his teammates for his speed and quickness on the field, Miles was named to the second team Gazette All-Stars last January. At Fitchburg State, he played on the school’s NCAA Division III men’s soccer team. Miles was also a devoted student of karate, and was working on obtaining his black belt. In addition to his athletic ability, Miles possessed tremendous artistic talent. During his lifetime, he drew, played the guitar, acted, and made several short films. During high school, he was known for making humorous videos played to great acclaim at school film festivals. Miles was one of 14 winners in a 2005 contest, Art Outside the Box, sponsored by the Gazette as part of Northampton’s 350th anniversary.

    Miles was known for finding the silver lining in any situation, and for a great sense of humor that brought lots of smiles and laughter to his many friends and family. His generous spirit and warm heart were a gift to all.

    Miles leaves his loving family: his father, Russell Adams, mother Nina Dudley and sister India Adams; his aunts and uncles, Peter Adams, Nathaniel and Natalia Adams, Katy Adams, C.J. and Hannah Adams-Collier, Justin Dudley and Robin Kennedy, Lisa and Ash Welch; his two grandmothers, Jacqueline Dudley and Norma Adams, and his grandfather, J.R. Adams; his cousins and many loving friends.

    A memorial service will be held on Saturday from 3 to 5 p.m. at the Northampton Elks Lodge 997 on Spring Street in Florence. Burial in Bridge Street Cemetery will be private and at the convenience of the family. Czelusniak Funeral Home of Northampton is handling the funeral arrangements. In memory of Miles, the family requests that memorial donations be made to the Miles Dudley Adams Scholarship Fund for the Arts, Northampton High School, Elm St., Northampton, MA, 01060.

  • hello world in perl6 with parrot

    $ mkdir -p /usr/src/svn/perl/parrot && \
      cd /usr/src/svn/perl/parrot/ && \
      svn co https://svn.perl.org/parrot/trunk && \
      cd trunk && \
      perl Makefile.PL && \
      make && \
      cd languages/perl6/ && \
      make && \
      ../../parrot perl6.pbc
    say "hello world"
    hello world
    ^D
    $ perl -e '
      open my $helloFH, q{>}, "hello.p6";
      my $newline="
    ";
    print $helloFH (join("$newline$newline", "#!$ENV{PWD}/../../parrot $ENV{PWD}/perl6.pbc",
                           "say \"hello world\"","",
                           )
                      );
      close $helloFH;
    ' && chmod u+x hello.p6 && ./hello.p6
    hello world
    $
    
  • Comcast does not support use of firefox with their chat client.

    user C.J. has entered room
    
    
    C.J.(Mon Oct 08 2007 00:36:24 GMT-0700 (PDT))>
    
    I want a copy of my billing history.
    
    
    analyst Michael has entered room
    
    
    Michael(Mon Oct 08 2007 00:39:15 GMT-0700 (PDT))>
    
    Hello C.J., Thank you for contacting Comcast Live Chat Support. My name is Michael. Please give me one moment to review your information.
    
    
    C.J.(Sun Oct 07 2007 21:39:20 GMT-0700 (PDT))>
    
    http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x6CC27EA8
    
    
    Michael(Mon Oct 08 2007 00:39:18 GMT-0700 (PDT))>
    
    I can help you with your billing issue today. One moment while I access your account.
    
    
    C.J.(Sun Oct 07 2007 21:39:22 GMT-0700 (PDT))>
    
    hi there
    
    
    C.J.(Sun Oct 07 2007 21:39:45 GMT-0700 (PDT))>
    
    can you email me my billing history or paste it here?
    
    
    C.J.(Sun Oct 07 2007 21:40:16 GMT-0700 (PDT))>
    
    10/2005 - present
    
    
    C.J.(Sun Oct 07 2007 21:40:22 GMT-0700 (PDT))>
    
    2225 walnut street
    
    
    C.J.(Sun Oct 07 2007 21:40:25 GMT-0700 (PDT))>
    
    everett, wa
    
    
    C.J.(Sun Oct 07 2007 21:40:26 GMT-0700 (PDT))>
    
    8201
    
    
    C.J.(Sun Oct 07 2007 21:40:34 GMT-0700 (PDT))>
    
    98201
    
    
    C.J.(Sun Oct 07 2007 21:40:38 GMT-0700 (PDT))>
    
    sorry about the missing 9
    
    
    Michael(Mon Oct 08 2007 00:40:50 GMT-0700 (PDT))>
    
    I can go ahead and e-mail you all the statements I have available. However you can view all your past statements at www.comcast.com.
    
    
    C.J.(Sun Oct 07 2007 21:41:10 GMT-0700 (PDT))>
    
    okey doke
    
    
    C.J.(Sun Oct 07 2007 21:41:19 GMT-0700 (PDT))>
    
    are you aware that long lines scroll off the right side of the window?
    
    
    Michael(Mon Oct 08 2007 00:42:53 GMT-0700 (PDT))>
    
    That may be an issue with the chat software. Sometimes this does cause all the sentences to be cut off.
    
    
    C.J.(Sun Oct 07 2007 21:44:08 GMT-0700 (PDT))>
    
    can you tell me who to contact to resolve the chat software issue?
    
    
    Michael(Mon Oct 08 2007 00:44:27 GMT-0700 (PDT))>
    
    Let me check and see if this can be done directly. One moment please.
    
    
    C.J.(Sun Oct 07 2007 21:45:36 GMT-0700 (PDT))>
    
    okay
    
    
    C.J.(Sun Oct 07 2007 21:46:07 GMT-0700 (PDT))>
    
    http://colliertech.org/~cjac/tmp/comcast-scrollbar.png
    
    
    C.J.(Sun Oct 07 2007 21:46:45 GMT-0700 (PDT))>
    
    you may email to cjcollier@gmail.com
    
    
    Michael(Mon Oct 08 2007 00:47:52 GMT-0700 (PDT))>
    
    Ok C.J. what you can do is reset your browser, and that will correct the word wrap feature.
    
    
    C.J.(Sun Oct 07 2007 21:48:09 GMT-0700 (PDT))>
    
    please CC my accountant:
    redacted
    
    
    C.J.(Sun Oct 07 2007 21:48:36 GMT-0700 (PDT))>
    
    "reset my browser"?
    
    
    C.J.(Sun Oct 07 2007 21:48:46 GMT-0700 (PDT))>
    
    you mean hit "control alt delete"?
    
    
    C.J.(Sun Oct 07 2007 21:48:57 GMT-0700 (PDT))>
    
    or do you mean "have you tried rebooting"?
    
    
    C.J.(Sun Oct 07 2007 21:49:01 GMT-0700 (PDT))>
    
    this is not a client side issue.
    
    
    C.J.(Sun Oct 07 2007 21:49:16 GMT-0700 (PDT))>
    
    you need to tell your development staff about this issue.  Open a bug with the web development team.
    
    
    C.J.(Sun Oct 07 2007 21:50:00 GMT-0700 (PDT))>
    
    tell them to remove the pre-formatted CSS style property
    
    
    Michael(Mon Oct 08 2007 00:50:23 GMT-0700 (PDT))>
    
    No. I see that you are using Firefox as your browser. What you will need to do is reset your browser to default. I also see that you have installed numerous toolbars, and that can affect your browser as well. I was able to confirm this is not a chat software issue.
    
    
    C.J.(Sun Oct 07 2007 21:50:37 GMT-0700 (PDT))>
    
    they may read about CSS here:  http://www.w3.org/TR/CSS2/
    
    
    Michael(Mon Oct 08 2007 00:51:43 GMT-0700 (PDT))>
    
    Is there anything else I can help you with at this time that is Comcast related?
    
    
    C.J.(Sun Oct 07 2007 21:52:08 GMT-0700 (PDT))>
    
    ah, here it is.  Have them remove the overflow-y: auto; CSS property
    
    
    C.J.(Sun Oct 07 2007 21:52:21 GMT-0700 (PDT))>
    
    would you like a snippit of the XHTML they may update?
    
    
    C.J.(Sun Oct 07 2007 21:53:14 GMT-0700 (PDT))>
    
    The CSS class is called 'sanssmallblack'
    
    
    C.J.(Sun Oct 07 2007 21:53:41 GMT-0700 (PDT))>
    
    I can not confirm receipt of the email containing billing information.
    
    
    Michael(Mon Oct 08 2007 00:53:41 GMT-0700 (PDT))>
    
    The issue is not with our chat software, so there would be nothing we can do on our end. You can try to contact us back using a support browser like Internet Explorer.
    
    
    C.J.(Sun Oct 07 2007 21:54:22 GMT-0700 (PDT))>
    
    I'll blog that.  Can you confirm that you have submitted a bug report?
    
    
    Michael(Mon Oct 08 2007 00:55:19 GMT-0700 (PDT))>
    
    There is no need for us to submit a bug report for our chat software, as the browser you are using is unsupported. I can go ahead and e-mail you those statements or you can view them online at www.comcast.com.
    
    
    Michael(Mon Oct 08 2007 00:55:29 GMT-0700 (PDT))>
    
    Did you need me to e-mail you those statements?
    
    
    C.J.(Sun Oct 07 2007 21:55:43 GMT-0700 (PDT))>
    
    That would be super smile
    
    
    Michael(Mon Oct 08 2007 00:55:50 GMT-0700 (PDT))>
    
    For your protection I will need to verify some information before I can make any changes to your account. I will need you to verify only one (1) of the following: the last 4 digits of the Social Security Number on the billing account, the billing account number itself, or the amount of your last bill.
    
    
    C.J.(Sun Oct 07 2007 21:55:56 GMT-0700 (PDT))>
    
    I'll let your users know that you do not support Firefox.
    
    
    C.J.(Sun Oct 07 2007 21:56:21 GMT-0700 (PDT))>
    
    redacted
    
    
    C.J.(Sun Oct 07 2007 21:56:23 GMT-0700 (PDT))>
    
    redacted
    
    
    Michael(Mon Oct 08 2007 00:56:47 GMT-0700 (PDT))>
    
    Thank you for that. I will go ahead and e-mail what statements we have on file as soon as this chat is over with. Is there anything else I can help you with at this time?
    
    
    C.J.(Sun Oct 07 2007 21:57:20 GMT-0700 (PDT))>
    
    Submit a bug report requesting that firefox be supported
    
    
    Michael(Mon Oct 08 2007 00:57:45 GMT-0700 (PDT))>
    
    I can go ahead and pass that recommendation along.
    
    
    C.J.(Sun Oct 07 2007 21:58:09 GMT-0700 (PDT))>
    
    great.  Please have your manager contact me at the email I have provided confirming that this bug has been submitted.
    
    
    Michael(Mon Oct 08 2007 00:59:27 GMT-0700 (PDT))>
    
    I will go ahead and let him know about your recommendation to support Firefox, however this is not something Comcast supports. You will need to reset your Firefox browser and see of that corrects the error.
    
    
    C.J.(Sun Oct 07 2007 21:59:56 GMT-0700 (PDT))>
    
    Please clarify.  Are you refusing to ask your manager to contact me?
    
    
    Michael(Mon Oct 08 2007 01:01:26 GMT-0700 (PDT))>
    
    That is not what I am saying. I can transfer you to a supervisor, however as I stated previously we do not support Firefox as a browser, and the best I can do is submit a recommendation for Comcast to support Firefox in the future. I will also forward this chat transcript to my supervisor immediately.
    
    
    C.J.(Sun Oct 07 2007 22:01:57 GMT-0700 (PDT))>
    
    Excellent.  Thank you for your help.  I will wait on hold for your supervisor.
    
    
    Michael(Mon Oct 08 2007 01:02:26 GMT-0700 (PDT))>
    
    Absolutely. One moment please
    
    
    Michael(Mon Oct 08 2007 01:02:35 GMT-0700 (PDT))>
    
    Please wait, while the problem is escalated to another analyst
    
    
    analyst Lead Dana has entered room
    
    
    analyst Michael has left room
    
    
    Lead Dana(Mon Oct 08 2007 01:02:58 GMT-0700 (PDT))>
    
    Hello, C.J.. My name is Dana and I am the floor lead on duty. I understand you are having an issue with our chat software and Firefox. How can I help you with that?
    
    
    C.J.(Sun Oct 07 2007 22:03:04 GMT-0700 (PDT))>
    
    Hello Dena
    
    
    C.J.(Sun Oct 07 2007 22:03:06 GMT-0700 (PDT))>
    
    er, Dana
    
    
    C.J.(Sun Oct 07 2007 22:03:26 GMT-0700 (PDT))>
    
    I understand that your development team does not test on Firefox
    
    
    C.J.(Sun Oct 07 2007 22:03:55 GMT-0700 (PDT))>
    
    I would like for a ticket to be submitted to have a specific patch made to the CSS in order to support this aspect of firefox.
    
    
    C.J.(Sun Oct 07 2007 22:04:53 GMT-0700 (PDT))>
    
    The CSS class 'sanssmallblack' contains a property 'overflow-y' with a value of 'auto'
    
    
    C.J.(Sun Oct 07 2007 22:05:30 GMT-0700 (PDT))>
    
    this propert must be altered in order for the chat software to wrap conversations correctly.
    
    
    C.J.(Sun Oct 07 2007 22:05:42 GMT-0700 (PDT))>
    
    s/propert/property/
    
    
    Lead Dana(Mon Oct 08 2007 01:05:52 GMT-0700 (PDT))>
    
    I do apologize that the Firefox browser is having issues with our chat client software. What I will do is send this request to our chat support team to have them look into this matter.
    
    
    C.J.(Sun Oct 07 2007 22:06:36 GMT-0700 (PDT))>
    
    beautiful.  Please pass on the specific CSS recommendations
    
    
    C.J.(Sun Oct 07 2007 22:06:51 GMT-0700 (PDT))>
    
    Thank you for your assistance.  I consider this issue resolved.
    
  • gcc CLI front- and back-ends in svn

    Look ma! gcc is preparing to play nice with ECMA-335!

    http://gcc.gnu.org/projects/cli.html

    I should really read more about it… my computer is compiling the branch right now while I work. The bit I’m most excited about is the potential to call into c++ libraries.

    Do the libraries all need to be compiled to IL, or can there merely be a wrapper compiled to IL which calls the C++?

    Either way, it’s better than the status quo.

  • Producing relocatable packages with the GNU build system

    I’ve recently found a need to create relocatable versions of some of my favorite libraries (produced, not-so-coincidentally by the GNU build system). You might find yourself asking “What is relocatable software, and why should I care?” Maybe I can help.

    A piece of software is said to be “relocatable” when it does not rely on an absolute path in a filesystem in order to operate correctly. An example of this type of system is OS X’s .app directory/package framework.

    As it currently stands, if I were to install iceweasel (or Firefox™) in /usr/local/mozilla/, but later realize there is more disk space available in /opt, I would be SOL. If mozilla were built as a relocatable package, however, moving /usr/local/mozilla/ to /opt/mozilla/ would not be a problem.

    There are a couple of things standing in the way of this shiny new future.

    1) In its current state, GNU autoconf accepts multiple absolute paths as argument values. In a relocatable package, all related software must be installed relative to a single point, referred to in autoconf nomenclature as the “prefix”. In a perfect world, all directories relative to the prefix would be further constrained as not to be beneath the prefix root. For example, defining the “bindir” as ${prefix}/../bin/ would be a no-no.

    I have proposed a solution to this problem on the bug-autoconf list.

    2) After a package is created in a relocatable way, how does one find said package once it has been moved?

    The solution to this problem lies in the standardization of the use of pkg-config and subsequent modifications to the $PKG_CONFIG_PATH environment variable.

    The first step is to ensure that your GNU build system includes a rule to generate a .pc file. The standard way to do this is to include a .pc.in autoconf template in the distribution as well as an entry in the AC_OUTPUT( … ) macro of the configure.am file (configure.in in legacy codebases).

    Here are some examples from the Mono codebase. Note that configure.am is named configure.in in the mono codebase. Note further that I am scowling.

    AC_OUTPUT([
    Makefile
    mint.pc
    mono.pc
    mono-cairo.pc
    dotnet.pc
    mono-uninstalled.pc
    scripts/mono-nunit.pc
    ...
    ])
    

    Here are a couple of examples of the contents of .pc.in files:

    cjac@dom0:/usr/src/svn/mono/mono-1.2.5$ cat mint.pc.in 
    prefix=${pcfiledir}/../..
    exec_prefix=${pcfiledir}/../..
    libdir=${prefix}/lib
    includedir=${prefix}/include/mono-@API_VER@
    
    
    Name: Mono Interpreter
    Description: Mono Interpreter Runtime
    Version: @VERSION@
    Requires: glib-2.0 gthread-2.0
    Libs: -L${libdir} @export_ldflags@ -lmint @libmono_ldflags@
    Cflags: -I${includedir} @libmono_cflags@
    
    cjac@dom0:/usr/src/svn/mono/mono-1.2.5$ cat mono.pc.in 
    prefix=${pcfiledir}/../..
    exec_prefix=${pcfiledir}/../..
    libdir=${prefix}/@reloc_libdir@
    includedir=${prefix}/include/mono-@API_VER@
    
    Name: Mono
    Description: Mono Runtime
    Version: @VERSION@
    Requires: glib-2.0 gthread-2.0
    Libs: -L${libdir} @export_ldflags@ -lmono @libmono_ldflags@
    Cflags: -I${includedir} @libmono_cflags@
    

    Of particular importance in these files is the definition of ${prefix}, ${exec_prefix}, ${libdir} and ${includedir} relative to ${pcfiledir}. ${pcfiledir} is set at pkg-config run time as it iterates over the contents of the $PKG_CONFIG_PATH environment variable.

    For example, if $PKG_CONFIG_PATH evaluates as “/home/cjac/opt/mono/lib/pkgconfig:/usr/lib/pkgconfig”, on the first iteration, ${pcfiledir} will store /home/cjac/opt/mono/lib/pkgconfig, and on the second iteration, ${pcfiledir} will store /usr/lib/pkgconfig.

    So! Assuming I installed mono to ~/opt/mono, and I wanted to instead move it to /opt/mono, all I would need to do is the following:

    $ sudo mv ~/opt/mono /opt
    $ export PKG_CONFIG_PATH="/opt/mono/lib/pkgconfig:$PKG_CONFIG_PATH"
    

    And voila. All of my mono-related bits and all references to them have been moved. Independent of the absolute path to the mono package, the prefix can be determined in a consistent way:

    $ pkg-config mono --variable=prefix
    

    Comment away… I’ll try to get rid of some of the spam crowding my comment backlog…

  • Holy pull-my-pants-down, Batman!

    It looks like Adobe Creative Suite 3 kicks your security in the nuts while it installs its call home software. It sounds as if it a) doesn’t ask for permission to shut your firewall down, b) doesn’t inform you that it is shutting your firewall down and c) doesn’t bring your firewall back up when it’s done.

    Not cool, folks. It is good of you to discover the problem and post it in a public forum, though.

    During the installation, the Adobe installer sets up controlled access to the Version Cue CS3 Server through specific ports in the personal firewall. To be granted access to these ports, the installer first turns off the personal firewall. After the installation is complete, the Adobe installer does not automatically re-activate the firewall.

    It sounds to me like OS X needs a bit better MAC management interface. I won’t install CS3 on my laptop until I know that the installer app *must* request my permission before futzing with security settings. As it stands, the installer asks for your permission to acquire superuser status, after which it may do anything without asking. Whee. It would be better if it described what it intended to do explicitly and allowed me to allow/deny on an individual level.

  • Moved groups at AMZN

    I moved to the “Merchendising Applications” group at Amazon. I’m ramping up, but it looks like this group has the potential to make a very large positive impact on the quality of the site.

    I’m doped up on pain meds, so I’m going to stop now before I start breaking things…

  • Invested in CTXS

    I just had my first vesting in work stocks. I sold a few and re-invested some of the proceeds in Citrix, who plans to purchase XenSource, the employer of Keir Fraser, Tim Deegan, James Bulpin and Ian Campbell, the primary contributors to the development branch of the xen source tree for the last month, and probably since its release on an unwitting world.

    I’ve been using Xen on the Colliertech servers since early 2005 and have been very happy with it. I’m glad to see that these devs are getting compensated for their hard work on this project. My best wishes to the XenSource team and Citrix.

  • Setting up a cluster

    So… I guess at this point, the hosts on colliertech.org could be considered a cluster. We have all of the services you would expect from a real ISP running on the network at this point. I think. I’m learning more and more as I go along.

    I set up autofs for the first time this weekend. I’m pretty happy with the system, but I had a heck of a time getting it going. I was baffled at first by the format of the auto.master and auto.foo config files. Here’s what the client-side configuration ended up looking like:

    $ tail -1 /etc/auto.master
    /etc/auto/nfs /etc/auto/auto.nfs
    
    $ cat /etc/auto/auto.nfs
    aptconf/*       nfs:/etc/apt/&
    aptconf         nfs:/etc/apt
    
    aptcache/*      nfs:/var/lib/apt/lists/&
    aptcache        nfs:/var/lib/apt/lists
    
    debmirror/*     nfs:/var/spool/debmirror/&
    debmirror       nfs:/var/spool/debmirror
    
    share/*         nfs:/usr/share/&
    share           nfs:/usr/share
    
    home/*          nfs:/home/&
    home            nfs:/home
    
    $ ls -l /home /etc/apt /var/spool/debmirror /var/lib/apt/lists /usr/share
    lrwxrwxrwx 1 root root 21 Aug 19 17:19 /etc/apt -> /etc/auto/nfs/aptconf
    lrwxrwxrwx 1 root root 18 Aug 19 16:36 /home -> /etc/auto/nfs/home
    lrwxrwxrwx 1 root root 19 Aug 19 16:35 /usr/share -> /etc/auto/nfs/share
    lrwxrwxrwx 1 root root 22 Aug 19 13:01 /var/lib/apt/lists -> /etc/auto/nfs/aptcache
    lrwxrwxrwx 1 root root 23 Aug 19 13:00 /var/spool/debmirror -> /etc/auto/nfs/debmirror
    

    One recommendation I have for those that want to try this at home: put a local stub in place for each of those in case the client boots while the nfs server is out to lunch. If you have a reasonable fallback in place, it should not matter how late in the runlevel process you put the init script for autofs. That way you could, for instance, ensure that any virtual machines that host services relied on by this client are running before anything tries to use them.

  • Mediawiki, Mozilla, and remote pages linking to local files

    So I’ve got mediawiki running on an intranet web server, and I use it to store notes about the things I’m working on. I downloaded a bunch of docs and started making links to the local copies of the manuals using the standard mediawiki notation, [url alias].

    However, in its default configuration, for security reasons, mediawiki does not produce links from URIs starting with file://.

    I was able to remedy this by adding the following to my wiki’s LocalSettings.php:

    array_push($wgUrlProtocols, 'file://');

    The next problem was that my browser itself did not like it that a remote web server was trying to direct me to files on my local machine. It complained with the following in my javascript error console:

    Security Error: Content at <remote url> may not load or link to file://<local file path>

    This was resolved by a bit of research. At the MozillaZine knowledge base, they recommended adding the following to my user.js:

    user_pref("capability.policy.policynames", "localfilelinks");
    user_pref("capability.policy.localfilelinks.sites", "http://www.example.com");
    user_pref("capability.policy.localfilelinks.checkloaduri.enabled", "allAccess");
    

    I had a hard time figuring out where, exactly, my user.js file was, so I grabbed a copy of the ChromeEdit Add-on. After re-starting the browser, there was a ChromeEdit Plus menu item under Tools. Selecting ChromeEdit from the submenu brought up a window with a users.js tab. After pasting the above code into the form, modifying for my needs, pressing Save, and then Restart, my browser came back up and allowed me to follow links to local files from the host I indicated in capability.policy.localfilelinks.sites.