Author: C.J. Collier

  • Amazon starts its own toy store

    So… a couple of years ago, when I first worked at Amazon, we had been working with a certain toy company to help them get their products online. Something didn’t work out, so now Amazon has its own online toy store!

    See the press release for more details.

    Well done, folks! Keep up the good work!

  • Did anybody else catch the recent supreme court ruling?

    The president of the U.S.A. has been found guilty of breaking international law by the supreme court. But the whitehouse has been jumping on any reputable news sources that mention it. So here I am. Nobody takes me seriously anyway.

    Mr. Bush and perhaps his cronies are officially criminals. Will anything come of it? I vote for impeachment, but then… what do I matter? I’m just joe citizen.

    Someone with a bit more weight behind their name should make some noise. Hey! The Herald! This means you!

  • Bye bye norseth

    cjcollier@norseth:~/Desktop$ sudo dd if=/dev/zero of=/dev/hda3

    Time to return the computer to MySQL

    Thanks for letting me keep it long enough to clean it up, folks!

  • Everett Wireless Network update

    I’ve been wandering around Everett today with Scarlet. We went to the County building, the City building and the Everett PD to discuss IT-related things. The main thing that we spoke about was the state of the Everett Wireless Network. I feel that the community should host its own internt service, and I’m trying to share with fellow citizens exactly how we might go about this.

    I’ve been speaking with Metrix Communication about getting some hardware, and one of our fellow community wireless networkers about getting an installation and maintenance contract in place. After I learn how to do it and how well it works, I’ll perhaps try to sell my neighbors on it.

    The idea is that those who want to communicate with one another place antennae on their roof and point them at the eachother. Of course not everybody can point an antenna at everyone with whom they wish to connect. Traffic may need to be routed through (optionally) trusted third parties to get from point A to point B.

    Technology such as TLS can provide a means by which data transported over third parties can be guaranteed secure and verifiable. TLS used to be called SSL.

    Each link would be capable of carrying roughly 20MB/s.

    I am looking into pricing for radios and antennae. I’ll report here when I find something worth reporting.

  • Quake mdl loader bits and a (more) managed gtkglarea-sharp

    So… Now that I’m unemployed, I’ve got a few minutes to work on some mono stuff.

    I’ve committed a quake .mdl file loader to the GtkGLAreaSharp examples directory. I’ve got plans to display the model using the framework, but that’s not quite finished yet.

    On #mono today, someone asked for an interesting feature. They think that there should be an onDestroy handler or some such that fires during widget deconstruction. This reminded me that I have not completed the semi-managed code that I’ve been working on. Alp has been recommending it for quite some time, but I’ve been busy with work and family. The basic idea is that rather than depending on the c version of gtkglarea and calling into it using P/Invoke, GtkGLAreaSharp should bind directly to X and GLX to create the OpenGL context.

    I’ve modified the project’s configure.ac file so that users can specify –unmanaged if they wish to bind to the C version. Otherwise, it will use the new managed version.

    But first, I’ve got to get it working :)

    Enough talk. Back to hacking.

  • Wall Street Cred

    So… I don’t normally read the Wall Street Journal, but I was sitting in a waiting room for a few hours yesterday and the security guard, noticing that I was bored, brought me a copy. I read the table of contents and browsed to an article on network neutrality. For those of you who didn’t catch it, I published a short article on the topic the day before. I wrote the article while I was en route on the Sounder commuter train on Friday Morning, but didn’t get around to publishing it until Sunday.

    Anyway, this article in the WSJ resembled the article I published less than 24 hours before in this very blog.

    Am I suffering from delusions of grandeur, or am I still blathering into the ether? I’m certain it’s not *impossible* that this article was inspired by my work… I saw MySQL mentioned in a magazine published by the author of the aforementioned WSJ article, and MySQL feeds bits and pieces of this blog to its corporate aggregator. Anyway, Steve, if you’re reading this, give props if they’re due. :)

    Hannah and I are heading in to town tomorrow with Scarlet. Hannah’s got an interview with a small web development place, and I’m pushing to get her an interview with Amazon. I’d love to work with her on a web dev team. Her skills are second to none in her area of expertise. But don’t take my word for it…

    Anyway… Off to bed for the Adams-Collier family!

  • Network Neutrality in a nutshell

    Network Neutrality is a term used to encompas the need for a balanced playing field on the Internet. Proponents for neutrality claim that having a tiered infrastructure will create a hierarchy of “haves” and “have nots.” The perceived problems would be similar to U.S. politics’ main problem: everyone has an equal vote; but those with money have a slightly “more equal” weight. Proponents claim that this same “class separation” would occur were network traffic to become tiered.

    Opponents to “network neutrality” note that traffic on the network is saturating the pipes which carry data from one computer to another. They claim that one way to reduce traffic is by means of economics. By tiering network traffic based on content type, services with high bandwidth demand would become more expensive; the theory of supply and demand suggests that these high-traffic services would become less common.

    I agree with opponents of network neutrality in that there is a saturation limit being met. However, I do not feel that tiering traffic based on content type is the way to address the problem.

    My family’s ISP is facing a much larger drain on its resources than bandwidth-heavy services such as video and audio. This problem is the constant, daunting issue of handling the high ratio of unsolicited mail, or “spam” to good, expected mail, or “ham”.

    A better approach to the solution of network saturation (in my humble opinion) would be to provide a base level of service at no cost, and charge the participants a content-neutral fee for going over this rate limit. This is the way that ISPs are charged for inter-ISP communication, and with a little bit of engineering can be extended to customer-to-ISP communication.

    Let me give an example of when network traffic fees would apply, and when they would not be applicable. When you have two or more computers in your home, this network type is called a “LAN” or local area network. Any traffic that passes between the computers on your LAN travels across your own wires (or, as is becoming more common, your own wireless network). On a properly configured network, LAN traffic is not subject to fees of any kind.

    If your neighbor has a computer in their home and you wish to communicate data, such as images, internet phone calls, movies, music, etc, you will likely need to pass these files over your ISP’s network. All of the files that are sent from your system to theirs will be accounted as Internet traffic, and rate limiting will apply. Your ISP might provide a base service of, say, 56 kilobits per second at no cost. This is enough to have an internet phone call with video, or to listen to your favorite radio show. It is even enough to stream a low resolution video.

    However, if you combine these services, ie, talk on the phone while a video is playing in the background, you may exceed your rate limit.

    There are a number of ways to address the problem of surpassing a rate limit. The general term for handling this issue is called “traffic shaping.” The ISP can do one of the following to handle rate limit exceptions.

    • Disable surpassing rate limit by enforcing a hard cap
    • Charge a fee for traffic above the rate limit (say $100/Gigabyte
      per month)
    • Determine the average rate and charge a monthly fee based on
      this

    These are only three examples. There are many other ways to address traffic shaping which are content-type-neutral.

    It is my opinion, as a small ISP operator, that the types of content-specific traffic shaping being discussed are unnecessary and will cause more harm than good. A more general, network-neutral approach to addressing network saturation should be considered.

  • Shaking things up

    It’s been a hectic week, and it’s only Tuesday.

    My wife and I recently made a decision to move on from MySQL. My passion is software development, and my experience doesn’t lend itself well to database development. Therefore, I’m returning to Amazon on Monday, if my intel is correct.

    Through a strange series of coincidences, my resume was submitted to the same group which I left 14 short months ago. I will be returning to HTML, JavaScript, Perl, shell script and a tad bit of Java development.

    It has been a pleasure working for and with MySQL AB. They make a wonderful database, and their support folks are top notch. I’ll miss them all. But heck, I can stay in touch just as easily as ever. That’s one nice thing about working in a virtual company: you learn to keep in touch by any means necessary.

    The roses are blooming. The lawn is mowed. Summer vacation starts Real Soon Now™, and I’ll be taking a train to work starting shortly.

    I’m going to be spending a lot less time with Scarlet and Hannah than either they or I are used to. It will be nice to separate work and home life, but it will also be difficult. Such are the problems with modern life, I guess…

  • New release of DBD::mysql (v3.0004)

    Patrick released a new version of the perl MySQL connector. This .pm was my introduction to the mysql world, way back in the day. If you can program your way out of a perl brown paper bag and you haven’t used this tool yet, I recommend you write a hello world program to get familiar with it. Good stuff.

    Dear DBD::mysql users,
    
    This announcement comes a few days late, but DBD::mysql version 3.0004
    (stable, production) and 3.0004_1 (dev) have been released!
    
    Version 3.0004 is the production version with server-side prepare
    statements turned off by default, and 3.0004_1 is the development
    version with server-side prepare statements turned on by default.
    
    The changes in 3.0004, as listed in the changelog:
      * Fix dbd_st_finish which closed the handle prematurely (Martin Evans)
      * Compile issues (Martin Evans)
      * Fix to dbd_bind_ph to deal with numbers (ints, floats) correctly
        (Alexey Stroganov)
      * Test changes - bind_param 41 and 42
    
    The changes to 3.0004_1 as listed in the changelog:
    
    * Fix dbd_st_finish which closed the handle prematurely (Martin Evans)
      * Compile issues (Martin Evans)
      * Small change to get utf8 data returned. One still has to:
          $dbh->do("set character set utf8");
          $dbh->do("set names utf8");
    
        to get utf8 back and even then you only get it back if the
        column is defined as utf8 in mysql.
      * Fix to dbd_bind_ph to deal with numbers (ints, floats) correctly
        (Alexey Stroganov)
      * Test changes - bind_param 41 and 42
      * Turned off 70takeimp test
    
    Note: to turn on server-side prepared statements, simply append
    ";mysql_server_prepare=1" to the connect string or via the driver
    handle. Please refer to documentation for further details.
    
    Notes:
    
    * The development (3.0004_1) version supports multiple result sets from
    stored procedures. Documentation and sample code (in the ./eg dir) is
    included on how to use multiple result sets. Also, the perldoc has
    information on multiple result sets.
    
    * To turn off server-side prepare statements to have emulated prepared
    statements, append ";mysql_emulated_prepare=0" in the connect string or
    via the driver handle.
    
    *As listed in the second changelog, this code is now much better at
    handling SQL statements that aren't supported in the prepared statement
    C API, and silently deals with determining whether or not to use the
    prepared statement calls.
    
    I really appreciate the help of Martin Evans, Alexey Stroganov, Henri
    Asseily, as well as the rest of the community in helping by giving
    patches and feedback about various issues with the driver. Thank you!
    
    NOTICE: Very soon, perhaps in a release or so, I intend to stabilise the
    dev release and make that the production release. This means that server
    side prepared statements will be turned on by default. I intend to test
    this thoroughly prior to making the switch, so that users don't have any
    problems when upgrading, when the time comes. This prepared statement
    API is only available with MySQL server versions 4.1 and above, so if
    you're using an older version, you won't notice anything. Though, be
    assured that even for the driver emulated handling of prepared
    statements, I will continue to make sure the code is improved.
    
    As the community, one think you can do if you are interested in helping
    is to turn on server side prepare statements in 3.0004, or try the
    development driver, 3.0004_1 to see if there are any problems. I've
    tested the code as much as I can, but I know nothing tests code like
    1000s of developers thinking of unique ways of using the driver that I
    never could have imagined. If you find a bug, please report it to me, or
    at http://bugs.mysql.com. I'll fix that bug and add test coverage for it.
    
    Coveati: Please make sure you don't use a threaded Perl with this driver
    on Solaris.
    
    Again, if anyone has any problems or questions with the driver, please
    feel free to email me, or especially post to dbi-users@perl.org , and if
    you find bugs, please report them to http://bugs.mysql.com
    
    These versions for this module can be found at CPAN:
    
    http://search.cpan.org/dist/DBD-mysql/
    
    The files:
    
    file: $CPAN/authors/id/C/CA/CAPTTOFU/DBD-mysql-3.0004.tar.gz
    size: 113043 bytes
    md5: 5d328b9fdaf899eba6d72258242ad0a0
    
    file: $CPAN/authors/id/C/CA/CAPTTOFU/DBD-mysql-3.0004_1.tar.gz
    size: 110175 bytes
    md5: 4dfbd956417f5b036ab55defb8fdfac7
    
    Kind regards,
    
    Patrick Galbraith