kyl191's avatar

kyl191

Lightweaver
60 Watchers211 Deviations
28.2K
Pageviews

Issues and such

1 min read
Fingers crossed I have everything fixed up, no more random bugs appearing.
Issues I resolved:
  1. dA changing the OAuth requirements, specifically they wanted a new parameter to be added
  2. My sketchy dev/prod scheme, where I had two git branches, a dev version (viewable on GitHub at github.com/kyl191/lr-stash), and the production version, which differed from the dev version in the API key that was used. Now everything is consolidated on the dev branch.
  3. My build system - now it's mostly properly set up. No more pulling from GitHub, building, manual futzing around with the Auth configuration file (remember, separate branches between dev and prod, and my prod branch not being available on the internet), and manually copying everything over to my distribution server. Now it's all automated. Thanks Jenkins!

If you were affected, sorry about the wait.

Join the community to add your comment. Already a deviant? Log In
As far as I can tell, every uploaded file is being put in a new folder. Every one. They may look like individual files in sta.sh, but really, it's they're just folders with a single photo in them.

And naturally, my plugin attempts to follow the documentation. It keeps track of the folderId of the last photo (which is helpfully returned by Sta.sh), since, you know, if you pass in a specific folderId, you'd expect it the photo to be given back with the same folderId that you passed in, and it's "better" than just using a folder name.

Clearly, for various degrees of 'better'.

And so my plugin broke. Badly. It would get a folderId back for the first photo, merrily assign that to the next photo, get a different folderId back, assign that to the next photo, and so on. Folder-ception.

(You know I'm annoyed when my anger gets into my commit comments.)
Join the community to add your comment. Already a deviant? Log In
So... a few weeks after I first thought up the idea, I'm officially releasing my Lightroom plugin for Sta.sh, as far as emailing links to people is 'official'.

The plugin exports the IPTC Title, IPTC Caption and any keywords you have tagged the image with, as well as the image to Sta.sh. From there, you can submit to your dA gallery.

If you only care about the plugin, go to the page in dA (kyl191.deviantart.com/art/Ligh…) and download it from there.

If you want to read about my impressions of stuff during the development, well, read on:

The actual coding was deceptively easy. I had the barebones of the export portion done in a week, based off the demo Flickr plugin that Adobe provided. Then I spent time mucking around with the Publish support in Lightroom, trying to get it Lightroom to sync up with dA's API. Which, I can say right now, didn't happen. The dA API right now is hit or miss. And when it misses, it does the equivalent of thermonuclear war on the uploads.

The initial upload to sta.sh works fine, and that forms the basis of the export plugin. But trying to get the publish functionality of Lightroom working with the way sta.sh tracks uploads is difficult, mainly because the dA team is seemingly still working the tracking part out. Right now, reuploading an image with the same sta.sh ID seemingly deletes the original image, and gives you back an error. (internal_error_item, I loathe thee. But perhaps this is why I can't find the 'Live Daylight Map' on kouiskas's Gallery anymore.)

In contrast, the Lightroom API was a veritable joy to work with.The only really difficult thing was getting to understand Lua's use of tables - and that's not really the Lightroom people's fault. So, of course, in grand cosmic irony, I groused about the Lightroom SDK, not the dA API. Mainly because I was silly enough to talk without trying it. Turns out, among other things, the reason you don't need to specify a secure connection should be used because Lightroom is intelligent enough to detect that you used "https" instead of "http".

This would have been of no significance whatsoever, except that I groused to Juileanne Kost over lunch while she was in Singapore. (Yes, the Juileanne Kost who does product evangelism for Lightroom/Adobe.) Now I feel bad about doing so, because the problems that I had with the SDK? Were actually my own problems. Mea culpa, Juileanne, and tell the Lightroom people thanks.

Also, thanks are due to Jeffery Friedl (regex.info/blog/), for releasing a Lua JSON parser (regex.info/blog/2010-08-01/158…), without with I assure you this plugin would have never been completed. Never. (Go shower him with praise.)

And you, reader, since you bothered to read so far, mind posting a comment mentioning how you got here? A curious mind wants to know where he got mentioned. If anywhere.
---
Cross posted from my blog - kyl191.net/2012/01/initial-rel…
Join the community to add your comment. Already a deviant? Log In

Wait, what?

1 min read
What's with the surge in my pageviews? (Averaging 2-5/day, and suddenly I'm at 42 and counting today.)

Last time I had the spike was almost exactly a year ago after being linked to by Twokinds, so I'm wondering what I've managed to do now... Only new thing is my Lightroom plugin for Sta.sh, but that's still only at 11 views...

Any visitors care to enlighten me?
Join the community to add your comment. Already a deviant? Log In
The spike in my profile page views is really amusing me right now.

An awesome start to the new year. =)
(Yes, I know it started a week ago, but meh.)
Join the community to add your comment. Already a deviant? Log In
Featured

Issues and such by kyl191, journal

I pronounce Sta.sh's folders seriously janky by kyl191, journal

Initial release of Lightroom Export to Sta.sh by kyl191, journal

Wait, what? by kyl191, journal

Hello, visitors! (And 2011 too!) by kyl191, journal