Monday, March 10, 2008

iPhone SDK

Well, the SDK is finally out! I can't say I haven't been waiting with bated breath, and it turned out to be mostly better than I expected.



Of course I love that everything is more or less Cocoa based, and the sheer number of APIs available to a developer wanting to take full advantage of the iPhone's hardware. What I really like though, is the distribution side of things.The apps distribution goes directly through the App Store, free apps will be completely free to consumer AND dev, and that Apple will charge a paltry ($99) fee for being able to post apps to the store. Some will complain about the fee, but even as a hobbyist student dev $99 is totally worth it. I like to think the entry fee will stem the flow of crapware to the platform, and it's needed to prevent the App Store from having hundreds of thousands of Hello World apps to wade through.



My biggest complaint is that it's mostly US only. Right now the "beta" for the full developer program is open to select developers in the United States, and nowhere else. This wouldn't be much of a problem, except that you cannot test your code on an iPhone or iPod touch without the paid beta program. While the NDA probably prevents me from disclosing exactly why the iPhone simulator isn't really a complete alternative for testing, let's just say I'm waiting for the program to be open in June. I hope that's a general enough statement that Apple lawyers won't be mad at me (although I'd need at least one certified reader before I could really get any complaints!).



I think it'll probably take me until June to fully absorb the general concepts and abilities of the iPhone SDK, so by the time I'm able to really get crackin I'll be up to the challenge. Until then, we'll see what other cool developments Apple has up it's sleeve.

Wednesday, January 2, 2008

Holiday Post

Holidays have been exciting, it's always nice to be home. Just thought I would post a link to the coolest thing I've seen in quite a while. It's not related to programming at all, but Nikon's Universcale gives you an animated, interactive comparative scale of common objects, from the apparent size of the universe down to the atom. Very cool!

Thursday, December 13, 2007

grumble

SomeDegree writeExams(Knowledge k, Studying s, Coffee c)
{
k.clear();
s.cramWith(c);
return null;
}

Tuesday, December 11, 2007

While I'm Here


Recently I've taken the whole engineer-as-artist thing a little seriously, so I've started reading industrial design, typography, modern art and web design blogs. I think it's made me broaden my horizons a little to get a fresh perspective on "design", and what it means to create. I'll post the coolest ones once I've had time to live with them.



This leads to my random reason for coming back to post, which is a font I made. It's a bitmapped, 10-point font that you can "design" yourself and auto-generate to .ttf online here. Mine is called "NewGothic", and was based on a typeface called "from Gothic" in Samuel Welo's 1935 edition Studio Handbook: Letter and Design for Artists and Advertisers. It's actually a really cool book that I picked up before I got on this design trip, since it was this neat 1935-printed book for $5 or something. I loved the pages and binding, and the concept of hand-lettering and drawing posters seemed quite foreign to me! Glad I picked it up in any case.

Monday, December 10, 2007

Been A While

It has indeed been a while. Just a quick post, because I thought I should actually contribute things here more often, and also thought I had something useful that other people might borrow and extend for free.



What I've written is a quick little AppleScript script that takes your currently selected text file, and "un-gutenbergizes" it. What I mean is that it removes all those senseless newlines they put into Project Gutenberg ebooks, and gives you back a text file with paragraphs that actually wrap! It's the only practical way to view ebooks on my new iPod Touch and/or Tofu on my Mac, which is an excellent text viewer and "columnifier". I've read entire books with my macbook sitting on my chest, lying down in bed, with Tofu. I think it's truly the next gen of readable ebooks, and we need an iPod/iPhone port!



For those interested in actually using the script, there are caveats since I don't really USE applescript (more on that next time!). First of all, it has a giant bug that means you must run it "indirectly". It only works if you select your file, then run it from your scripts menu on the menu bar. Double-clicking on the script file app itself and/or just dragging your text file to it does not work. Don't know why. Also, you WILL need TextWrangler installed, as that is how I automagically replace \n's with spaces and keep \n\n's the same.



As for a bullet-proof, drag-and-drop, stand-alone Cocoa app that does the right thing, that is coming soon enough. It really won't be much more coding than I used in the AppleScript, but it's more time than I have in between exam studying-periods. I wish they made a C-syntax language that let you use all the scripting hooks; I HATE AppleScript! Oh wait, they put that in Leopard with the beautiful, beautiful scripting bridge. I officially [heart] Leopard just for that! Oh, and free garbage collection too!



Also I just realized that there's no actual way to upload real FILES to a blogger.com blog, so let's just pretend I never offered a buggy AppleScript app in the first place, kay? A real developer (such as yours truly) wouldn't do that! So until I write the new code (and find a free host for my files), enjoy some nerdy science lolcats.