Shotwell 0.12.3 Released!

Good morning, one and all,

It’s with joy and with pride, both in no small degree,
That I get to announce oh-twelve dot three.

Bugs have been squashed and fixes were made,
Therefore, we suggest all users upgrade.

You’ll like this if your camera’s AVCHD,
And tags are safe now in your library,

And with dark images, if ‘enhance’ you smash,
Or zoom using hotkeys, it’ll no longer crash.

We hope this release brings you much joy and cheer;
Please give it a go, get your copy here:

Posted in Announcements, Shotwell, Uncategorized | Tagged , , , | 2 Comments

Geary 0.1 released

After a year of hard work, we’re thrilled to announce the release of Geary 0.1, a lightweight email reader for the GNOME desktop.

Geary 0.1 includes the following features:

  • Basic support for viewing and composing HTML email
  • Send and receive email
  • Reply to all and forward email
  • Optional spell checker
  • Keyboard shortcuts
  • Organizes emails into conversations

Geary supports Gmail and Yahoo! Mail. If you’d like to download Geary, you may download the tarball. Build instructions are available on our wiki. For Ubuntu users, Geary will be available on the Yorba PPA shortly.

If you’d like to stay up to date with the latest in Geary, join Geary’s mailing list.

Major props to the Geary team for all their hard work getting this release out the door. Give Geary a try. We’re still in the early days of Geary’s development, and there are lots more features to add, but we’d love your input, opinions and help slaying bugs!

Posted in Announcements | 43 Comments

Shotwell 0.12.2 Released!

Good afternoon, one and all,

It’s my privilege to announce the release of Shotwell version 0.12.2.  Among the improvements:

  • Improved handling of and robustness against corrupted tag data.
  • Correction of a major UI glitch that could occur if the user switched away from the camera page while the application was retrieving image thumbnails from the camera.
  • Various other bugfixes.

A source tarball for the project is available from the Shotwell home page at:
http://www.yorba.org/shotwell/

Binaries for Ubuntu Oneiric will be available shortly from Yorba’s Launchpad PPA at:
https://launchpad.net/~yorba/+archive/ppa

For Ubuntu Precise users, this version should soon be made available automatically as part of the daily update process.

As always, thank you for using Shotwell, and if you have any questions or comments, please feel free to let us know.

Cheers,
-c

 

 

Posted in Announcements, Shotwell | Tagged , , , | Leave a comment

Shotwell 0.13 to drop JPEG support

JPEG compression artifactsYorba announced today that Shotwell, their flagship photo organizer software, will become a lossless-only photo manager with the upcoming release of version 0.13.

Lossless-only means support for legacy image formats such as JPEG will be dropped, a forward-looking move Yorba founder Adam Dingle praised as “position[ing] Shotwell a generation ahead of competing photo management solutions.”

Upon installation, Shotwell 0.13 will upconvert the user’s existing JPEG image files to the lossless DNG format.

Users requiring additional space for their upconverted photos will be directed to a site where they may purchase a new hard drive.  A percentage of proceeds from these purchases will fund Shotwell development.

Yorba is confident that this is a positive step for photo management.

“Think of it this way,” said Shotwell lead developer Lucas Beeler, “If I bought a four terabyte hard drive but only used two terabytes, I’d be wasting half the drive.  Free space equals wasted money, which means Shotwell 0.13 users will get more out of their computers than they did with Shotwell 0.12.”

As Yorba’s Jim Nelson wrote on a blog post, “As a Gnome application, our goal is simplicity. Dropping support for legacy formats such as JPEG is one step toward that goal.”

Posted in Announcements | Tagged , , , | 12 Comments

Shotwell 0.12.1 Released!

Good evening,

Yorba has just released Shotwell 0.12.1, a bug-fix release of our popular GNOME-based photo manager. This version fixes a critical issue in which the absence of a certain .ui file would cause the application to fail to launch in direct-edit mode.  We advise that all users upgrade as soon as possible.

Download a source tarball from the Shotwell home page at:
http://www.yorba.org/shotwell/

Or grab a binary for Ubuntu Oneiric at Yorba’s Launchpad PPA:

https://launchpad.net/~yorba/+archive/ppa

For Ubuntu Precise users, this version should soon be made available automatically as part of the daily update process.

Apologies to those who encountered the missing .ui issue, and thank you for your continued interest in Shotwell!

Cheers,
-c

Posted in Announcements, Shotwell | Leave a comment

Shotwell 0.12.0 Released!

Good evening, one and all,

It’s my pleasure to announce the release of Shotwell 0.12.0. This version represents several person months of hard work, saw us add our one-hundred-thousandth line of code, involved a quest that took our merry little band of adventurers half way around the world, three new brave warriors joining our party, and the slaying of many, many monsters.  It’s now more stable than ever before, has a neat new straightening tool, and, thanks to the watchful eyes, thorough bug reports and helpful suggestions of you, our userbase, it’s pure awesome (I admit there may be some bias on my part, but still…).

We’re proud of it, and on behalf of the team here, I sincerely hope you enjoy using it.

Cheers,
-c

Download a source tarball from the Shotwell home page at:
http://www.yorba.org/shotwell/

Or grab a binary for Ubuntu Oneiric at Yorba’s Launchpad PPA:
https://launchpad.net/~yorba/+archive/ppa

Ubuntu Precise will ship with Shotwell 0.12.x pre-installed by default, so Precise users will be upgraded to Shotwell 0.12.0 automatically as part of their regular software update cycle.

Posted in Announcements, Shotwell | Tagged , , , , | 14 Comments

Avoiding the association by hash map anti-pattern with GObject

There’s a common anti-pattern in software design that I call “association by hash map.” Rather than explain this in words, let me illustrate it in Vala:

HashMap<MyClass, string> name_map =
    new HashMap<MyClass, string>();

name_map.set(an_object, "Foo");
name_map.set(another_object, "Bar");

stdout.printf("an_object's name is %s\n",
    name_map.get(an_object));

“But wait,” you’re saying, “Couldn’t we just add a name field to MyClass and remove the hash map?”

YES! That is exactly what you should do — if you can.

But what if you can’t?  Adding a field isn’t always an option.  Perhaps MyClass is someone else’s API.  Or even if it’s contained entirely in your code, the name field might only make sense for a single use-case.  No reason to add an extra field to your class if it doesn’t truly belong there.

So what to do? Is there a better way? If your class is based on GObject, you’re in luck.

During a recent code review, Jim pointed out to me that GObject has methods for attaching arbitrary named data to an object.  In our example, we can use the simplest of these methods, gobject_set_data() and gobject_get_data() which use simple key/value pairs.

const string NAME_PROP = "name";

an_object.set_data(NAME_PROP, "Foo");
another_object.set_data(NAME_PROP, "Bar");

stdout.printf("an_object's name is %s\n",
    an_object.get_data(NAME_PROP));

Isn’t that better?  No more extraneous hash maps, all the data is stored right in the object itself where it belongs.  And you didn’t even have to modify the class!

In closing, if you’ve dealt with the association by hash map pattern before you now know a way to avoid it with GObject.  And if you haven’t, I envy you.

Posted in Hacking | Tagged , , | Leave a comment

The 100,000 line question

Clinton Rogers (Yorba developer and all-pro Telestrations master) pointed out something interesting yesterday.  Ohloh now lists Shotwell as having achieved an odd milestone just ten days shy of its third birthday: Shotwell has reached 100,000 lines of code.  That number represents the work of 51 code contributors and 89 translators.  (It also represents blanks and comments — 100,000 lines of pure code is a ways off.)

It’s an odd milestone because there’s a rosy tradition in computer programming of honoring tight code and efficient algorithms.  The code placed on pedestals are not thousands of lines long, they’re short and sweet, like a witty joke or a clever haiku.  Duff’s Device is my favorite example; you probably have your own.  (Tom Duff’s history of his Device is a great short read and offers a basketful of concise observations on code optimization.)

Which is why reaching the 100,000 mark makes me simultaneously proud and a little uncomfortable.  Shotwell has grown quite a bit in three years — but is it really doing the work of 100,000 lines of code?  Ur-spreadsheet VisiCalc was also 100,000 lines of code, pretty lean compared to the Macbeth that knocked it off its throne, Lotus 1-2-3 (clocking in at 400,000 lines).  Compare that to the original Colossal Cave game, which was (gulp) 700 lines of FORTRAN and 700 lines of data.  It later grew to a whopping 4,800 lines of code and data that ran entirely in memory.  100,000 lines of code feels downright luxurious, even bourgeois, in comparison.

(I’m not claiming Shotwell should be placed alongside these landmarks.  It’s just interesting to consider what 100,000 lines of code represents.  I’m also aware that there’s a number of people who think line count is a misleading, or even useless, metric.  I do think lines of code provides some scale of complexity and size.  I’ve never seen a program grow in size and get simpler.)

There’s probably no reason to duck my head in shame.  Sure, there’s plenty of features we want to add and bugs we want to squash, but those 100,000 lines of code we have today are pulling a lot of collective weight.  They include the basic organizer, a nondestructive photo editor, a standalone image viewer (which also includes an editor), hierarchical tagging, stored searches, ten plug-ins, and plenty more.  Could we scrape away 1,000 lines of code and still have the same functionality?  Almost certainly.  10,000?  I can think of a few places where fat could be trimmed, but I don’t think it’s excessive.

Note that Ohloh is counting lines of Vala code, not the C generated by valac.  Although valac does not exactly produce sparse output, it’s worth mentioning that sloccount reports over 720,000 lines of C code generated by Vala.  If Vala is producing on average six times more C code than a competent human programmer (and I’m not asserting it does), that’s 120,000 extra lines.  Reducing that by the magic factor of six means Vala saved us from writing 20,000 lines of C code, a victory worth popping open a can of beer and celebrating over.

Posted in Hacking, Shotwell | Tagged , , , , , | 1 Comment

Hello World!

There’s nothing like starting a new year with a new job.

This is officially Day One on the job (I’m counting yesterday as Day Zero) as Yorba’s production engineer. I wear quite a few hats here: I sit on the front line of support and testing and also take care of the website, office matters and systems.

I am also the self-appointed director of happy hour.

I’ve known Adam for several years and it’s been very exciting to watch from the sidelines and see how Yorba has gone on build the most widely used photo manager on Ubuntu. It’s a real pleasure to be a part of the team and help contribute to these awesome products and the free desktop.

A little about me:

I’m a general purpose nerd. I’m an avid board game fan, I love pinball, can’t get enough of BSG and can solder a mean joint. San Francisco truly is a paradise for us geeks!

I dig communities. I’ve managed developer relations for software companies for the past several years and am BIG on making sure you guys and gals are having a good time with our products (or at least letting me know where it hurts).

So don’t be a stranger! I look forward to getting to know some of you, our users, in the coming weeks.

 

Posted in Yorba | 5 Comments

Shotwell 0.11.6 Released!

Yorba has just released Shotwell 0.11.6, a bug-fix release of our popular GNOME-based photo manager. This release fixes a critical bug in which adding or modifying tags in the single-photo view could result in the loss of tag data. We recommend that all users upgrade.

Download a source tarball from the Shotwell home page at:
http://www.yorba.org/shotwell/

Or grab a binary for Ubuntu Natty at Yorba’s Launchpad PPA:
https://launchpad.net/~yorba/+archive/ppa

Ubuntu Oneiric ships with Shotwell 0.11.x pre-installed. Oneiric users will be upgraded to Shotwell 0.11.6 automatically as part of their regular software update cycle.

Posted in Announcements, Shotwell | 20 Comments