Saturday, March 30, 2013

crowdsourcing alien bill, and the ethical murk of "spec work"

On a microbrewery tour I saw the very clever logo for Idle Hands Craft Ales. The owner mentioned they got it by running a contest at http://www.crowdspring.com/. On a lark, I decided to sponsor a logo competition for my own "Alien Bill Productions". (My Atari 2600 game JoustPong was an "Alien Bill Production"... its been my goto fakey company for a long while.)
When I mentioned the competition on Facebook, a friend pointed out some folk think of this kind of 'spec work' as unethical. I can see some of their points, but I think their biggest (legitimate) concern is that it's a "race to the bottom", and that it might become tougher to make a good living as a designer. They also point out the problems of rip-off, generic logos and not having a holistic, market-savvy cooperative/iterative approach... neither of those final two points really applied to me, because I was able to clearly specify and give examples for the central design motif. As for the first point... this was kind of a lark, if I didn't have a site like this to turn to, I probably would have just scraped something together myself. Possibly I might have turned to one of my designer friends, but frankly I was interested in having more variety to choose form. 

My main discomfort with spec-work then, at least for small scale personal stuff like this, is that the people who do the non-winning designs see no money for their labors. I tried to rectify this somewhat by tipping the non-winners whose work I still liked generously. 

So, without further moral rambling, here isaudentia's winning design:
I liked the different perspective, and the use of huma-ish (or perhaps froggish?) forms for the eye and limb, while still keeping an iconic feel. In some ways what really sold me on it was the black-on-gray presentation on the lower left.

Some of the runner-ups were great as well, which is why I'm glad crowdSpring offers an easy "tip" option. sinss'  was pretty keen:
I loved the use of the character in the word Alien Bill itself. Having the Alien holding an eyeball was an intriguing choice-- kind of an "Alas, Poor Yorick" thing. 

sinapseuk did a 3D render of Alien Bill in a kind of robotic or spacesuit form:
I think that might have lost because I didn't want the logo to outshine any game I paired it with!

SalehaG had good use of cel-shading. Also a good use of a grey background... the entry came late without much time for revisions, but I would have been interested in seeing if the rear leg could be made to look less like a stump...

I likescriptink's choice of font, though the pose of the alien didn't really do it for me.
Finally,dynezt had an entry that was appealing retro:

The artwork reminded me a bit of Steve Jackson's The Awful Green Things from Outer Space which, if I'm 100% honest, might have been a subconscious influence on the early designs of Alien Bill.

So, in the end I'm happy to have done this, despite the ethical issues with "spec work" in general. I spent about the same as I did on James Harvey's commission that I use as the backdrop to the AlienBill.com as well as this one  (as well as the sticker on my iPhone and on my business cards) and while the results aren't as innovative (actually it may well have been an influence on some of the designs above) it's some nice results.

link about promises

Nice article about js promises: http://www.kendoui.com/blogs/teamblog/posts/13-03-28/what-is-the-point-of-promises.aspx

Friday, March 29, 2013

getting used to osx

Now that OSX is my main work machine, I'm adapting to it pretty well.

A while back I wrote why windows' taskbar beats osx' dock and I have to recant on part of it... I think I've adapted pretty well to cmd-tab switching apps rather than open windows. In particular, it's often useful to switch to Finder and see the context of the last 2 or so windows I've been shoving files around.

I still suspect OSX isn't quite as strong in its keyboard support (jumping words etc w/ ctrl-arrow key and what not) but I'm adapting to it as well. And sometimes I'm frustrated that it's a little tough to see if I'm in Chome or Firefox without looking at the top of the screen... but given how terrific it feels to have a bona fide terminal window, the tradeoff is probably worth it.

Sometimes I feel a little self-conscious going with Apple, because of a sophomoric "well that's what anybody who's anybody has done" factor. Though just recently cracked.com referenced a serious academic study that implies looking at the Apple logo makes you a bit more creative, by the power of association, than the IBM logo.
I'm Feeling Smarter Already!

Thursday, March 28, 2013

quick and dirty "put prompt over input" box

I'm sure there are libraries out there that do this more cleanly, but sometimes if I just want a quick prompt overlaying the input box, that disappears when they start typing:

CSS:
.promptwrapper{
    position:relative;
}
.overlayprompt{
    position:absolute;
    color:#cccccc;
    top:2px;
    left:4px;
}


JS:
function doOverlayPrompt(input,overlay){        

input.focus(function(){overlay.hide();})
        .blur(function(){
            alert(input.val());
                if(input.val() == "") overlay.show();
                 else overlay.hide();
                }).blur();
           
        overlay.click(function(){   
            input.focus();
        });

}

example HTML:
<span class="promptwrapper"><div class="overlayprompt editFIELD_prompt">FIELD</div><input class="editFIELD"></span>

example JS:
doOverlayPrompt($(".editFIELD"),$(".editFIELD"));


So looking back right now I see this is a bad idea for 3 or so reasons:
  1. it's better for forms you expect to be blank, vs. stuff a user would come back and edit later, because they might not be able to tell what field is what.
  2. damn it, I've written this before!
  3. And worst of all html5 has a nice "placeholder" tribute for input tags now, which does almost exactly this. As long as you don't need to support IE earlier than version 10....
Sigh.



OSX: terminal history tools: ctrl-r

Ah, more pleasure from the stock OSX terminal...

Obviously, there's the old "up/down arrow" to get back to commands you've previously entered so you can rerun or modify and rerun them.

Sometimes the command you want is far back though. For a long time I knew about "!"... so typing
    !cp
would repeat the last cp command.

And that's good, but sometimes it feels like Google's old "I'm Feeling Lucky" button... I may have used "cp" since the time I was thinking of.

My friend Jonathan pointed out "ctrl-r" in Terminal... press it and it starts an interactive search-- in this case I could type "cp" and it would show me the last copy, then I could accept it by hitting return, or hit ctrl-R again to find the one before that, etc.

He also directed me to this lifehacker page that suggests bumping up the size of your command history.

Tuesday, March 26, 2013

visceral design

Good article on visceral design: http://mysterioustrousers.com/news/2013/3/25/visceral-apps-and-you

I prefer the term "juicy" (or sometimes "kinaesthetic") but it's about the same idea. A little bounce and motion goes a long way.

Monday, March 25, 2013

servlet with image upload and resizing

Continuing my recent trend of small notes from the trenches, to my future self:

my next Proof of Concept was image uploading. I was able to use the example at http://www.codejava.net/java-ee/servlet/code-example-file-upload-servlet-with-apache-common-file-api pretty much verbatim.

In the future I'd need to store a byte array, but the FileItem object has a .get() function that does just that.

For scaling there's the lovely library imgscalr. I then also had to learn about stuff like java.awt.image.BufferedImage and javax.imageio.ImageIO. The guts of my variation on the FileUploadServlets ended up looking like
InputStream instream = item.getInputStream();
BufferedImage origImg = ImageIO.read(instream);
BufferedImage smallImg = resize(origImg,100);
ImageIO.write(smallImg, "jpg", storeFile);
(I was assuming the filename already ended in ".jpg")

The java.awt and java.io are said to show up in "rt.jar", and on our development system they seemed to be included in the j2ee.jar runtime dependency I was using.

Imgsclr also does cropping; that would imply more of a need for a nice UI, though, perhaps using Jcrop. (Probably beyond the scope of my curent project.)

In the scope of my current project is storing stuff in the database rather than the file system; Nick who is handling the DB side says I can store byte arrays, and according to this page that will look something like
ByteArrayOutputStream baos = new ByteArrayOutputStream();
ImageIO.write( originalImage, "jpg", baos );
baos.flush();
byte[] imageInByte = baos.toByteArray();
baos.close();


(I'm not sure if that is the most efficient use of Streams, but should be good enough for our purposes now.)

Man. Do servlets count as UI? Sometimes I wonder.