Archive for the ‘Open Source Software’ Category

They’re Updating the AnnotatedTimeLine (for me?)

Monday, April 6th, 2009

GoogleVisualization.jpg

I was reading the Google Visualization groups today and 'VizGuy' responded that within the week, we should have the ability to set the format of the date/time in the upper-right hand corner of the AnnotatedTimeLine graph as well as setting the format of the numbers in the legend at the top of the graph. This is excellent news! This means that they are listening, and that I'll be able to get the format set before too much longer.

While I realize this isn't a big deal to Google, it's still a good indication that they are interested in moving this forward in response to user inputs. That's just the best news I've had all day.

Now I just need to sit tight for a few days... yup... it's gonna be tough.

[4/7] UPDATE: true to their word, the AnnotatedTimeLine now has a dateFormat preferences value that does exactly what I wanted it to do. I love it. Excellent work, Google.

Fantastic Little Javascript Date Formatter

Monday, April 6th, 2009

SquirrelFish.jpg

This morning I needed to have a nice, simple, quick, date formatter for my Javascript code. Nothing fancy, but since Javascript really only allows you to manipulate the components of the date, and not really format it nicely, something else is needed. So I went 'a Googling. Found something that's really quite nice.

The idea is that with a simple:

  <script type="text/javascript" src="data.format.js"/>

you can then include in your java script code:

  var label = document.getElementById("label")
 
  label.innerHTML = dateFormat(new Date(), "HH:MM:ss mmmmm dd, yyyy");

where you had tagged the date/time field like this:

  <div id="label">this will be the time</div>

What I get in my code is the updated time and date of the last update to the data. It's pretty nice. A little CSS on the div tag and it's looking pretty nice. I have to say, I'm a little surprised that Javascript didn't have this, but to see it in the open source community makes me feel very good about Javascript. It's there, and it's really being supported by the developers.

So... if you need a Javascript date formatter, give this guy a look.

VLC 0.9.9a is Out

Monday, April 6th, 2009

VLC.jpg

I noticed that VLC 0.9.9a is out with video performance on Intel Macs, fixes for the known issues with libxml2, and the addition of Real Video 3.0 & 4.0 stream decoding. All in all, it sounds quite nice, but the real reason I have to stay up with it now is the dependency on HandBrake. And there's nothing I've found that's nicer than HandBrake for ripping DVDs.

So it's a new upgrade, and might as well get it.

Continued Astonishment at Google Visualization Widgets

Friday, April 3rd, 2009

GoogleVisualization.jpg

I've been working with the AnnotatedTimeLine for a few weeks now, and I'm simply amazed at the quality of the code contained in that widget. Oh, sure, it's not perfect. It's got update 'flicker', but on the whole, it's saved us a ton of time and it's price point is a lot cheaper than VantagePoint, the next-best alternative I know of for this kind of visualization.

I'm able to do the zoom in and out cleanly, I'm able to smooth (compress) the data nicely in Javascript - which, by the way, I'm now very interested in the speed of Javascript processing in a web browser, and very excited about Safari 4, and the next version of Firefox for the speed.

It's great to get a better understanding of Javascript as well. It certainly opens my eyes to the JSTalk project, and makes that far more interesting to me because I know it better now than I did. Lots to like there, too.

Yeah, this has been a great experience. I'm very interested in seeing what 'da Boss thinks of the app on Monday. I hope he likes it - whether he says so or not.

GitX 0.6.2 is Out

Thursday, April 2nd, 2009

GitX.jpg

A wonderful little git repository visualization tool for Mac OS X - GitX, released an update this morning to 0.6.2. There were bug fixes to the history view as well several new features - including the ability to create a new repo. While I'll still probably remain a command-line type of guy, it's really nice to see this guy take shape and get more full-featured.

It's a wonderful source control system written for developers by developers. It's a joy to use.

Camino 1.6.7 is Out

Wednesday, April 1st, 2009

Camino.jpg

This morning I noticed that Camino 1.6.7 was out so I upgraded. The release notes say that in addition to the latest version of the Gecko rendering engine, there are several fixes and upgrades to the Flash block animations. Interesting, but again, Camino is third-tier web browser for me - Safari, Firefox and then Camino. Still... it's nice to see what it's doing and have the option to check things out with that rendering system. So I keep upgrading.

Miro 2.0.4 is Out

Wednesday, April 1st, 2009

miro.jpg

Miro is an odd fish, in my book. I'm not sure exactly what the source of the videos are, but I like the idea, and the tool is really quite nicely put together. This morning I noticed that they have a new release - 2.0.4, and it supposedly fixes a few issues. Again, since I haven't been using it a lot, I can't speak to the real problems solved, but I like to keep it current in the event that they have the kind of content that I'd like to see.

Specifically, episodes of House.

But I'll have to give it a little more time and see if they show up in the client. For now, it's an update and then back to work.

Interesting Gotchas with Google Visualization AnnotatedTimeLine

Tuesday, March 31st, 2009

GoogleVisualization.jpg

I have been messing with the Google Visualization's AnnotatedTimeLine widget on my webapp, and while it's wonderful in so many ways, there are a few 'gotchas' that I've run into - and I'm not alone on one of these.

Specifying Column Index in Hiding/Showing Columns

The AnnotatedTimeLine has some really nice methods that allow you to show/hide the lines on the graph (columns in the DataTable):

    chart.hideDataColumns(2);
    chart.showDataColumns(2);

the problem is that the columnIndex that you'd think you needed to pass in would probably be wrong. They are looking for the dataset index and for that, you have to remember that the date data in column 0 of the table is really not considered in this calculation.

So, if you have the name of the column and want to make it disappear, you need to have a function like:

    function toggleView(name, state) {
      var i;
      var colCnt = graphData.getNumberOfColumns();
      for (i = 1; i < colCnt; i++) {
        if (graphData.getColumnLabel(i) == name) {
          // the dataset number is one less than the column number
          if (state) {
            chart.showDataColumns(i-1);
          } else {
            chart.hideDataColumns(i-1);
          }
        }
      }
    }

If you remember to have the right offset, it all works fine.

Showing a Hidden Line Bug

I found a reference to this on the Google Visualization mailing list. It turns out that if you try to show a hidden line, it doesn't work. But if you cycle it twice then it works. Meaning this doesn't work:

    // hide the line on the graph
    chart.hideDataColumns(2);
    // show the line we just hid
    chart.showDataColumns(2);

but this does:

    // hide the line on the graph
    chart.hideDataColumns(2);
    // show the line we just hid
    chart.showDataColumns(2);
    chart.hideDataColumns(2);
    chart.showDataColumns(2);

It's the "second cycle" on the 'show' side of things that makes the difference. This is an acknowledged bug by Google, and the good news is that as soon as they fix it, we're going to get the fix. Nice.

UPDATE: With the 3/30/2009 Release Candidate from Google, this is fixed! Yup, just use the version "1.1" in the google.load() javascript call and you'll set it. It's set to go to production on 4/6, and at that point, version "1" will again get it. Excellent update!

So... just keep these in mind if you're using this widget.

NeoOffice 3.0 is Out

Tuesday, March 31st, 2009

NeoOffice.jpg

I don't use it often, but when I need it, NeoOffice is a really handy app to have. Specifically, it seems that some Microsoft Office formats (Word, Excel) don't import nicely into Pages or Numbers, and even Bean can't read them properly. In those cases, I've had great luck using NeoOffice to read and work on the files.

It's like the last chance for a Microsoft Office document. Well worth the download - if you need it, it's a lifesaver.

An Interesting Alternative to AppleScript – JSTalk

Monday, March 30th, 2009

JSTalk.jpg

I've a big fan of Gus M's work at Flying Meat, and this morning I was reading about his alternative to AppleScript - JSTalk. The idea is simple - when creating a Mac app, adding AppleScript support is something most users expect from a high-quality app. But from what I've heard, and Gus seconds this, doing so is not easy which is why not all things you can do in an app can be done within AppleScript. In many cases, it's a limited subset.

So Gus made JSTalk - built on JSCocoa and WebKit's JavaScriptCore, that allows you to write JavaScript and interact with an application on that level as opposed to using AppleScript. He's got a command-line tool, an editor, and a framework for people to put into their apps to allow it to be 'automated' from JSTalk. The examples are compelling. The ideas are pretty sound.

What remains to be seen is how many will adopt it. It's all open source on the MIT license on GitHub, so it's there for the looking, fixing, using. If I had an app, I'd look at using this because there are a lot more people that know JavaScript than know AppleScript. It's just a language that not a lot of folks spend the time to learn.

So I'm going to keep an eye on this... if I make an app, I'll use it. It looks very nice, and all the hard work is done. Glad to see an alternative to AppleScript.