Reporting JavaScript Errors

Posted by Josh Wright | Posted in Code | Posted on March 25, 2011

Mar 25

Two days ago, Maria hits me with the old “Your website doesn’t work on my computer” shtick.  If you’re a web developer, you know the drill: What page was she on? What was the problem? What browser/OS were they using? Duplicate the problem on my computer Ends up being an IE 7 issue with css [...]

Automate Photoshop with JavaScript (Advanced)

Posted by Josh Wright | Posted in Code | Posted on March 22, 2011

Mar 22

I’ve been working to automate Photoshop quite a bit lately. In September I wrote Automate Photoshop with JavaScript which uses ExtendScript Toolkit (packed with Photoshop CS5). Then in January I wrote Automating Photoshop With C# which uses a COM reference to control Photoshop from another program. The documentation for scripting with CS4/CS5 is pretty decent, [...]

Automating Photoshop With C#

Posted by Josh Wright | Posted in Code | Posted on January 6, 2011

Jan 6

I recently dumped PhotoImpact and took the Photoshop learning curve plung… special thanks to the catalyst which was my co-workers heckling. Jerks. Don’t knock it till you rock it. I use C# on some websites to fool around with images. Cropping, resizing, filters, conversions, etc. I’ve coded about a dozen filters and they’re okay, but [...]

Outside Connections With Cassini (VS2010)

Posted by Josh Wright | Posted in Code | Posted on December 27, 2010

Dec 27

Cassini is the little baby version of IIS that is built into Visual Studio.  It makes debugging wonderful and is very light weight.  Unfortunately it does not accept outside connections, say from another computer on your network.  This is a real bummer when you want to demo some software or debug it on another device. [...]

Martini on a Llama: Convert Grayscale to Transparency w/Photoshop

Posted by Josh Wright | Posted in Code | Posted on December 13, 2010

Dec 13

Five years ago, David Chess wrote a blog post that blew my December 13, 2010 mind. It is titled: Making PNGs with alpha-channel transparency in Photoshop. What’s the problem? Take this martini glass image: It has a solid white background, but I want it to be on black. Or on orange. Or on a llama. [...]

Objective-C String Formatting

Posted by Josh Wright | Posted in Code | Posted on December 11, 2010

Dec 11

String formatting isn’t especially a strength in Objective-C. Actually, it’s just plain bare bones and reminds me a lot of C# formatting. Here’s an example: 1NSString* result = [NSString stringWithFormat:@"Hi %@, you are %i!", user.name, user.age]; //result == “Hi Josh, you are 28!”; This makes it difficult to deal with a bunch of variables. What [...]

Bendy Tree iOS Library

Posted by Josh Wright | Posted in Code, Projects | Posted on November 22, 2010

Nov 22

With a year of iOS development under my belt, I’ve got a decent code base that I copy from project to project. Extensions on foundation objects, serialization helpers, app-settings services, and more are helpful in most apps. Thus I’ve decided to separate these classes into their own git repository called BendyTreeiOsLib which is available on [...]

Passing Variables to JavaScript Includes

Posted by Josh Wright | Posted in Code | Posted on October 12, 2010

Oct 12

Why You Want It Let’s say a client wants to list your iphone apps on their webpage. Yes, this is 100% made up. So you give them a script tag and tell them to drop it on their site: 123…their markup… <script src="http://www.bendytree.com/widgets/apps.js" type="text/javascript"></script> …more of their markup… The script looks something like this: 123document.write("<h1>Bendy [...]

Fantasy Football Drafting Software (for iPad)

Posted by Josh Wright | Posted in Projects | Posted on September 24, 2010

Sep 24

UPDATE: (August 14, 2011) “Draft Board for Fantasy Football” is now in the iPad app store.  Check it out at http://draftnight.net or search for “Draft Board for Fantasy Football”. UPDATE 2: We just got a very kind review from @sportsgeekery.  Check it out at: http://www.sportsgeekery.com/ I’ve been through enough Fantasy Football drafts to know how [...]

Words With… Foes!

Posted by Josh Wright | Posted in Projects | Posted on September 13, 2010

Sep 13

Words with Friends is a fantastic iPhone game where you play scrabble with your friends.  The only drawback is that you never really know if that word you played was really optimal. Enter “Words with Foes”.  We’ll tell you the optimal play for free! You’ll get an email with every possible play along with how [...]