Author: C.J. Collier

  • Anybody need some cycles on a sun machine?

    Hey you mono folks. Yeah, you. You know who I’m talking about. Do you need some cycles on a sun machine to run build tests?

  • Is gtkglarea-sharp ready for production?

    I don’t know. Probably not quite yet. But there has been interest using the toolkit in a production video game.

    Fun. But what do you all think?

  • Useful MaxDB commands

    To find a list of tables in a schema:

    $ sqlcli -u TEST,TEST -d SYNCMANA "SELECT * FROM TABLES WHERE SCHEMANAME = 'TEST'"

    To find a list of triggers on a table:

    $ sqlcli -u DBSERVICE,SECRET -d SYNCMANA "SELECT * FROM TRIGGERS WHERE TABLENAME = 'T'"

    To describe a table’s structure:

    $ cat me && echo "-----" && \
       loadercli -d SYNCMANA -u TEST,TEST -b ./me && echo "-----" && \
       cat tabledef.txt
    dataextract for dataload table T
    outstream file 'tabledef.txt'
    outstream file 'idontcare'
    
    -----
    Loader protocol: '/home/cjcollier/.sdb/loader/log/loader.prt'
    Loader packages: '/home/cjcollier/sdb/loader/packages'
    
    User TEST connected to database SYNCMANA schema TEST on local host.
    dataextract for dataload table T
    outstream file 'tabledef.txt'
    outstream file 'idontcare'
    Successfully executed
    
    -----
    //
    CREATE TABLE "T"
    (
            "I"  Integer  NOT NULL,
            "C"  Varchar (32) UNICODE,
            PRIMARY KEY ("I")
    )
     NO FIXED LENGTH COLUMN
    //
    DATALOAD TABLE "T"
    "I" 1 CHAR
    "C" 2 CHAR DEFAULT NULL
    INSTREAM  FILE  'idontcare'
     COMPRESSED UCS2
    DECIMAL '//./'
    SEPARATOR ','
    DELIMITER '"'
    DATE INTERNAL
    TIME INTERNAL
    TIMESTAMP INTERNAL
    NULL '?                   '
    BOOLEAN 'TRUE/FALSE'
    //
    
  • Synchronization Manager: MySQL as replication destination

    Earlier this week, I wrote about the Synchronization Manager and gave a step-by-step tutorial on getting an initial scenario implemented. In this article, I’ll expand on the previous tutorial by introducing the concept of uni-directional synchronization.

    Uni-directional participants act as destinations for replicated data. These participants are sometimes called “slaves,” because they are not capable of replicating changes to other members of the synchronization scenario. Theoretically, any RDBMS that provides an appropriate JDBC interface can participate as a replication destination with little effort on the part of the DBA. As an example of this, I have documented my experience creating a uni-directional MySQL participant.

    One situation DBAs might use databases synchronized as uni-directional participants is when they want to provide information to clients without trusting the recipient to update the master database. Another situation might be scenarios such as IMAP or POP mail stores, which are not updated through direct interaction, but modified at a central source, later propagating the changes to clients. Other examples of such a scenario are caching DNS servers and proxy servers.

    As you can see, much can be done using the Synchronization Manager along with uni-directional replication destinations. Those of you interested in implementing such a uni-directional synchronization participant, please take a look at my walk-through and notes here:

    http://wiki.colliertech.org/index.php/MaxDB:SynchMan:MySQL_as_destination

  • Creating a Synchronization Management Scenario

    This is a follow-up to my earlier article on the MaxDB Synchronization Manager. In the months since my prior article, the Synchronization Manager has proved itself production ready and capable of replicating real-world databases in demanding scenarios.

    Take the following as theoretical and emperical examples of such scenarios (not necessarily in that order):

    i) For its yearly trade show, a company needs to process user registration. Because of the high volume of attendees, there must be more than one system through which registration takes place. Therefore, the registration software is to run on multiple separate laptops. At the end of each day, the laptops synchronize their registration information with each other and a master registration database.

    ii) In order to reduce human error and increase efficiency, a grocery store decides to automate their cash register’s reconciliation process. To that end, groceries are scanned and recorded in a database at the register. When the operator’s shift is over, cash drawer and console are taken to the back office where the contents of the cash drawer are compared with the records of the database. Also at this time, the console’s database is synchronized with the store’s master database.

    iii) A restaurant, in order to reduce the learning curve for its wait staff, decides to provide each wait person with an order-taking device. The wait person takes down orders using the device and returns to the kitchen. When the device is docked, the order is synchronized with the master database, which in turn presents the new orders to the cooks for preparation.

    In short, the Synchronization Manager performs well as a means for keeping track of data “in the field” and keeping distributed environments in synch with their disparate parts. For the virtual company comprised mainly of “road warriors” who are only connected for short periods of time, the Synchronization Manager can be used to automatically bring the rest of the enterprise abreast of recent happenings.

    For the gearheads in the audience who wish to kick the tires and check under the hood, I’ve created a wiki entry documenting some of my experiences with the Synchronization Manager. Please feel free to review and contribute:

    http://wiki.colliertech.org/index.php/MaxDB:SynchMan:Create_Synchronization_Scenario

  • Have I mentioned Perl yet? No…

    I write and enjoy Perl. If you want to know how to write Perl, let me know, and I’ll try to schedule some time to learn you what I know…

  • libtao-opengl-cil has been packaged for Dapper!

    Wow! lurfagrin made my tao dist packages into .deb packages!

    http://colliertech.com/downloads/tao/

    If you’re running Ubuntu Dapper Drake, you can install libtao-opengl-cil using this command:

    $ sudo apt-get install libtao-opengl-cil

    This is one of the pre-requisites to building gtkglarea-sharp. Thank you thank you thank you!

  • On vacation

    So. I’m on vacation. But I’m thinking a bit about work-related stuff, like Raimi’s MySQL-related blog entries:

    http://www.lkcc.org/~raimi/nb/archives/cat_9/

    In case any of you out there read German. I know enough to figure out that he’s got a link to me in it :)

    Mark Thomas has created a blog as well.
    http://blog.theoupneustos.com/?cat=2

  • Building a domU with debootstrap

    http://www.option-c.com/xwiki/Create_a_Debian_VM_with_debootstrap