Author: C.J. Collier

  • IronRuby stuff

    I’ve been doing some work with the DLR team at Microsoft and the community of F/OSS developers they’ve inspired on IRC & the mailing lists. I’m providing a virtual host that is being used to perform continuous integration on Debian sid.

    The current status is here:

    http://twitter.com/IronRubyCI

    Maybe we’ll make an IronPerl one of these days :)

  • repository thoughts

    15:58 < cj> lluis: since my friend isn't online to bounce ideas off of, how 
                'bout I ask you? :)
    15:59 < lluis> cj: heh, ok
    15:59 < cj> a first pass would be a web form that takes some information about 
                a package and stores it to a database.  those data are exposed via 
                as an xml file, and all entries are listed on a separate page as a 
                registry
    16:00 < cj> http://someregistry.org/register_product.cgi, /list_products.cgi, 
                /view_product.cgi?id=1
    16:01 < cj> the data stored in relation to the product would be version, 
                package type, build type, license, distribution uri, author
    16:02 < cj> the IDE would add another tab next to 'browse', 'pkg-config' and 
                'gac' that would query /list_products.cgi and present them in a 
                manageable fashion
    16:03 < cj> I don't want to over-engineer, since I don't have a lot of spare 
                time to implement.  first pass = dumb but working
    16:03 < lluis> well, if we are going to have server side logic, we better use a 
                   web service
    16:04 < cj> sounds reasonable, but I don't have time to ramp up on that right
                now.  how 'bout I make the cgi's interface reliable so a web 
                service could be built to replace it?
    16:05 < mhutch> cj: clean urls please :)
    16:05 < cj> mhutch: define 'clean' :)
    16:06 < mhutch> no ".cgi" for a start
    16:06 < cj> okay
    16:06 < lluis> cj: what you plan to use to implement that?
    16:07 < cj> lluis: perl.  I'm good at it and can fix things without having to 
                ask stupid questions like "how do I construct an HTTP request 
                object" :)
    16:07  * mhutch cries
    16:08 < cj> enough from the peanut gallery
    16:09  * mhutch starts throwing peanuts at cj
    16:11 < lluis> cj: well, the server side implementation is not so important
    16:11 < lluis> as well as we have a client c# library that encapsulates it
    16:11 < lluis> I mean as long as
    16:12 < mhutch> IMO it would make sense to do it in a language that users (i.e. 
                    potential contributors) are likely to know
    16:12 < mhutch> but maybe that's just me
    16:12 < cj> mhutch: I promise that I'll write it in c# after I get it working
    16:13 < cj> mhutch: it's hard for me to get anything done, though, if I have to 
                learn how to do it while I'm doing it.  I enjoy re-writing my perl 
                code in c#, though.  that's how I started learning it in the first 
                place :)
    16:13 < mhutch> cj: I'd be happy to provide pointers
    16:14 < lluis> mhutch: I don't think it is so important for the server side.
    16:14 < mhutch> cj: some things would be easier to do directly in C#, for 
                    example, web services in C# are near-trivial
    16:17 < lluis> cj: hmm, in fact in my implementation proposal the reusable 
                   components are just add-ins, so we can just use the existing 
                   add-in repository format
    16:17 < cj> lluis: is there one?  I'll google it.
    16:18 < lluis> cj: I don't think it is documented. Add-in repos are just as set 
                   of files which can be generated using the mautil tool.
    16:53 < lluis> cj: if you are interested, I can send you the library repository 
                   client I wrote when I worked on that on the hack week
    17:11 < cj> lluis: sure, thanks.  I'll use it as reference as I poke.
    Day changed to 09 Jan 2009
    03:10 <@cj> okay... now for coding...
    03:20 <@cj> this is the part where I use my production web server to develop 
                code.  everybody watch!
    03:29 <@cj> http://repository.colliertech.org/
    03:29 <@cj> tada
    03:29 <@cj> I crack myself up.
    04:13 <@cj> http://repository.colliertech.org/register/
    04:13 < SeveredCross> Neato.
    04:14 <@cj> yeah.  doesn't store your data yet, but *shrug* it's >0
    04:15 < SeveredCross> What's the idea, to have a repository of info for 
                          Mono-related softwares that aren't packaged in distro 
                          repos?
    04:15 <@cj> no, to allow people to reference the packages registered here 
                through various tools, such as visual studio or monodevelop
    04:16 <@cj> http://wp.colliertech.org/cj/?p=301
    04:16 <@cj> http://wp.colliertech.org/cj/?p=307
    04:17 <@cj> at amazon, we had a 'cradle-to-grave' registration tool that allowd 
                folks to create source control repositories, fire off builds, 
                request and perform code review, etc.
    04:17 <@cj> I don't want to get that fancy, but it inspired me to make 
                something that helps to oranize all of these pieces of code we have 
                laying around
    04:18 <@cj> organize
    04:20 <@cj> pkg-config is useful for code you've got on your system, but the 
                process of grabbing, installing and then finally referencing is a 
                lot of overhead.  if you could do gmcs -r:repos://foo bar.cs 
                -o:baz.exe, that would really reduce the headache
    04:20 < SeveredCross> Cool beans.
    04:20 < SeveredCross> Sounds like a worthy project. :D
    
    
  • Quest for the re-usable software grail

    I’ve been reading Dreaming in Code and discussing project planning & management with my housemate. These topics have reminded me of the quest for “plugable,” re-usable software components. The quest has been ended for the most part for those who use Perl. The CPAN provides users of this particular language with a repository of code libraries (modules, in Perl parlance) which can be acquired, installed and applied with minimum fuss. The barrier to entry for getting your code into The CPAN is low to permit new ideas proposed by folks who don’t have the know-how to prepare and revise applications. This tends to cause some problems with regard to the signal-to-noise ratio, but I think it’s one of the primary reasons that the system is so successful.

    In addition to this repository of code, which contains a great deal of duplicated effort, lots of modules intended only as prototypes, and pipe dreams which were never completed, third parties provide statistics about the robustness, applicability, and overall “kwalitee” of the code archived therein. As famously noted in Zen and the Art of Motorcycle Maintenance, “Quality” is a subjective concept and cannot be measured as such. “Kwalitee,” on the other hand, is “a set of formalities that tend to coincide with quality, according to consensus.”

    There exist tools to analyze code for known problems which cause reduction in “kwalitee.” The action performed by such tools is often called “static analysis.” The sets of rules used in such systems to govern which parts of code are marked as somehow problematic are called “policies.” There can be different classes of policies, for example security, complexity, cosmetic. When developers write code keeping such policies in mind, they are said to be “using best practices.” It’s hard to keep every such policy in mind when building software, so static analysis tools were developed to help gently nudge contributors back to the narrow path.

    Why am I mentioning all of this? Why should any more effort be put into building a system of re-usable software if The CPAN already exists and provides all of these tools? As much as I love Perl (and I do! :) ), it has a tendency to be used to fix all problems, even when it may not be the best approach. Sometimes you need to get closer to the processor than an interpreted language lets you. Sure, there’s always XS when you need to do that. But the barrier to entry is high. Another reason is that not everybody loves Perl as much as I do. Some folks want to use (for instance) C++. If the library is written in Perl, and your application is written in C++, you either need to embed a perl interpreter in your application or break your application into different processes and communicate between them. This complicates the application and such complications and prone to error.

    So I guess what I’m trying to say here is that we need to take the lessons learned from The CPAN and apply them to a framework that all languages can interact with. In my experience, the most accessible language in terms of inter-language co-existence, the language most capable of getting close to the processor is C. All languages have a means by which they can re-use C libraries. The primary difficulty with C, though, is that it’s hard to get object orientation right with. It’s hard to create an object model that is flexible enough and consistent enough that interface bindings which feel “native” can be generated for every language.

    Lucky for us, that hard work has already been performed by the folks at Sun, RedHat, Ximian and Novell. I’m referring, of course, to the GObject framework, the cornerstone of The GNOME Desktop and the Mono CLR.

    So the next is a question for you, readers: What are your opinions about building a software repository intended to be “The CPAN of GObject modules”? Are there enough modules in existence to warrant the effort? Is the current system of distribution “good enough?” Is there a critical mass of people interested in using such a system?

    Most importantly, is there anyone else out there interested in building this infrastructure? I’ve finally come to accept the fact that as much as I’d like to deny it, I just can’t do everything I want to in the time I’ve been allotted. This seems like a project that would do a lot of good for a lot of people, but it’s just too much for me to do by myself.

  • Everett Wireless first station

    I’m putting together the first station for the Everett Wireless Network. To the right is a picture of the radio I will eventually put on our roof. I plan to attach an omni to the pole and drill another couple holes in the box (one for the 802.11g omni, one for the serial console over cat5) and then strap it to the chimney. I’ve currently got a cantenna attached to the B card that Rob gave me years ago. There’s a directional 5.8GHz Backfire attached to the A card that I bought from Metrix Communication. I plan to point this at my other antenna after it is put up on a neighbor’s roof.

    I bought a copy of the study guidethe study guide for the Technician class ham radio license. I hope to learn enough to look less like a noob on #nanog. Or #swn, for that matter. Maybe I’ll learn something that will be useful along the way.

    If anyone from Everett is reading this and is interested in joining the network, I’d love to hear from you. I plan to set up a tunnel server for those without line of sight to other members of the network. OpenVPN works well for this purpose, as does GRE tunneling using iproute


  • Obama: Solving our financial crisis

    Mr. Obama asked that this video be shared. To see the video on their site, click here. It also comes with a textual version, in case you like reading:

    http://my.barackobama.com/page/s/economyplan


  • Vote Obama 2008

    Vote ObamaMy friend Corrie is taking donations. I think the guy is worth voting for. Eight is enough. Oh, wait. It’s far too much.

    I do not support the current war and never have. I do not believe that “Muslim Terrorists” are responsible for Enron’s fleecing of its investors any more than I believe that Saddam Hussein had anything to do with the attacks of 09/11/2001. It’s time to stop the xenophobia. Let’s show the rest of the world that we’re not the people that George W. Bush represents.

    And as an excuse to publish this to the mono blog, let’s make a call for mono devs for Obama. If you’re a mono developer (or heck, any Free Software developer) and support Obama, blog about it. People read what you write and respect your opinion.



    http://my.barackobama.com/page/outreach/view/main/corrie

    Friends and fellow Democrats,

    Over the past few weeks, I’m guessing you’ve had a conversation with a friend or coworker about the presidential race. Maybe you discussed how tight the polls have gotten since the Republican convention, or Sarah Palin her antics, or whether we’re going to end up getting `sad drunk’ on November 4 2008 just like we did in 2004.

    We may be looking at another very close race this year. Personally, I am still expecting that Obama will win – hopefully by a lot! But for the first time recently, I contemplated the idea that we may lose. Again. I got frustrated, sad, and angry. Is our country doomed to repeat its mistakes over and over?

    Well I say NO! This is our year, and our whole country deserves to get happy drunk on November 4.

    So what can we do about it? As I see it, unless you live in a swing state and have some time to volunteer, the most important thing you can do to influence the outcome of this election is to donate to the Obama campaign.

    I think many of us feel that this is a turning point in the election. It’s now or never. Damaging and often deceitful Republican ads are airing all over the country. John McCain’s campaign just had its best fundraising month to date, and now has more cash on hand than Obama if you include the party national committee funds. McCain is about to accept $84 million in public financing while Obama, who is not accepting public financing, must now spend time raising money while McCain is free to campaign.

    We need to help the Obama campaign blanket the country with great ads and expand their fantastic field operation, which is registering record-breaking numbers of voters and preparing to turn out millions of voters on November 4.

    Maybe you can’t give much. But even $10, $25, or $50 makes a difference. Please visit the Obama campaign’s website at http://my.barackobama.com/page/outreach/view/main/corrie to make an online donation today. Whether or not you choose to donate right now, please pass this message on to your Democratic friends, neighbors, acquaintances, and coworkers (and Republicans/Independents who support Obama!)
    Because most of us can afford to give a few bucks (or more) to this campaign. But like Obama said, we can’t afford another four years of the same failed Republican politics.

    Thank you for caring about our country :)

    -Corrie

    PS- To keep track of how successful this message is, I’ve set my own personal fundraising goal for the campaign, of $5000.

    Sources:

    (1) http://womenagainstsarahpalin.blogspot.com/
    (2) http://pollster.com/
    (3) http://www.fivethirtyeight.com/search/label/swing%20states
    (4) http://action.barackobama.com/page/s/volunteer/
    (5) http://www.huffingtonpost.com/2008/09/09/mccain-ad-obamas-lone-edu_n_125205.html
    (6) http://voices.washingtonpost.com/the-trail/2008/09/09/obama_broke_money_record.html
    (7) http://www.opensecrets.org
    (8) http://www.fivethirtyeight.com/2008/08/obama-leads-better-than-31-in-field.html
    (9) http://my.barackobama.com/page/outreach/view/main/corrie

  • Brand new Frontage

    Teh Front has released upon the unsuspecting world another “piece of work.”

    Go get one :)

    Oh… wait… you can’t get one ’till November! hahahaha! Sucks to be you!

  • Random farm animal noises – Part 10

    Un mono dice “Ser o no ser, esa es la cuestión”