Archive for the ‘Code Logic’ Category

Hello Zoom, an Android App Tutorial

Wednesday, August 4th, 2010

In my last post, I talked about the neat little phones that me and Justin picked up (not the phone that Justin won, lucky…), the Samsung Vibrant. It’s an Android powered phone, with an awesome screen and all that jazz. Feel free to check out that post for all my hype, because this post is about writing Android apps.

Most beginner tutorials out there that I found over the last few weeks have just regurgitated the Hello World demo app from Google. I found that pretty useless, because Google has a perfectly fine demo on how to print text to the screen. I set out to build a little app that displays an image, has button, can update the screen, and gives user feedback (I used the vibration feature of my phone). I even had enough time to set up a basic options menu, so that will be in this tutorial too.

I won’t be covering how to set up your development IDE, as Google has done a great job with that too. I followed the tutorial on setting up the Android API in Eclipse, and was up and running without a hitch in about 30 minutes (there was a lot to download). I developed this app on Ubuntu 10.04, but I’m pretty sure that you can use this code on any platform. Click through to get started!
(more…)


Zoom Creates does OSCON

Wednesday, July 28th, 2010

Zoom Creates does OSCON

Last week O’Reilly put on the 2010 Open Source Convention (OSCON) here in Portland. The Zoom Dev team took Thursday morning to check it out. There were many exciting open source projects on display, and SWAG everywhere! We through caution and our identities to the wind and dropped business cards in jars and filled out forms for drawings. By lunch time, we returned to the office with bags full of t-shrits, coffee mugs, pins, pens, toys, and papers. It was a great way to spend the morning: talk about nerdy stuff with other geeks, and have something to wear for the next day. After a start like that, productivity was pretty much shot for the second half of the day, but we managed to get some work done… until we started getting phone calls for the forms we filled out and business cards we dropped. But the calls were not sales calls. Amazingly, in addition to the generous SWAG we hauled back to the office, we won three smartphones!

Qualcomm Innovation Center, Inc. (QuIC), whose focus is on integrating software and hardware on mobile devices, had a drawing to win one of ten HTC Droid Incredible phones. Both Justin and I won that drawing. And Symbian, the company that manages the operating system on Nokia phones, had a drawing to win one of three Nokia 5800 XpressMusic phone. I won that drawing too. Not bad for a days work!

Thanks, O’Reilly, Qualcomm, and Symbian for the gifts and for your support of open source projects! OSCON is coming back to Portland next year, so be sure to check it out!


Hands on Review: Samsung Vibrant

Tuesday, July 20th, 2010

Please take a moment and look back through a few posts from the Dev team here at Zoom Creates. I think that you will come to find that we seem to love Google. It’s quite true. This also includes Google’s mobile operating system, Android.

Justin has had an Android powered phone for a while (he picked up T-Mobile’s G-1 when it first came out) but has been stuck with version 1.6 of Android for quite some time. Kris and I also have T-Mobile, but neither of us had taken the plunge into the smart phone world for various reasons, but the time has come.

Last week T-Mobile bumped up the release date for their newest Android Powered handset, the Samsung Vibrant. To avoid any confusion, the Vibrant is T-Mobile’s release of Samsung’s Galaxy-S line of phones. All Galaxy-S phones have similar specs, but each carrier is allowed to modify the basics of them to suit their needs. Both Justin and I have been using our Vibrant phones for almost a week, and here’s what we think:
(more…)


Duplicate MC in AS3

Thursday, July 15th, 2010

The Flash plugin is required to view this object.

So, the other day I was looking for a way to duplicate a movie clip that the user clicks on. In my case, I had lots of buttons made of the MCs that I wanted to copy. I could have made a big switch statement like this:


(more…)


This web site asks the simple question:

Friday, July 9th, 2010

How Secure Is My Password?Simply type in a password, one at a time, in to the box provided.  When you’re finished, the site tells you approximately how many seconds/minutes/days/months/years it would take to “crack” your password.  The estimate is based on a fancy algorithm which takes in to account the number of characters typed, the frequency of characters being re-used, upper & lower case, numbers, and special characters.  Then, it calculates how long the average repulsive script kitty or 1337 |-|4x0r5 would spend trying to crack it.  It’s just like what you would find on any other web site registration page which displays how “weak” or “strong” your password is.  However, this one doesn’t submit or store any data, and doesn’t require you to sign up for anything.  Also, according to the site, it works by utilizing “50% mathematics, 51% witchcraft”.

Check it out.  It may help you decide to change one of your not-too-secure passwords, or you might high-five yourself for having a password which wouldn’t be cracked for “three-hundred thousand years”.

Visit: How Secure Is My Password?


Do spam bots use mice?

Tuesday, June 22nd, 2010

The typical solution to avoiding spam bots from abusing your online forms is to use a CAPTCHA test. You know – the hard to read, wavy text that you must type in correctly to prove to the web page that you are human and capable of making sense out of the non-sense. Well, spammers have used OCR (optical character recognition) algorithms to have their bots read the messy text and complete the test. Since then, there have been lots of alternatives to the text CAPTCHA test. Some involve selecting an image from a list given its name or description, or answering simple math problems. However, I didn’t find one that I really liked. So we started to build our own on the assumption that spam bots don’t use mice.
(more…)


Cufon vs CSS3 vs Google Font API

Thursday, June 10th, 2010

Dynamic
Fonts are fun!

(this box built with CSS)

As Greg has mentioned in a previous post, using Google’s Font API you’re are no longer limited to “web-safe” fonts! We all love Arial and Times, but there are thousands of other really cool fonts to play with too. Here I’ll compare some options for using custom fonts on the web.
(more…)


Awesome tool for Ajax Development

Thursday, May 27th, 2010





While building apps that utilize ajax calls, one of the last steps that I do is finding a little loading graphic that will work with the site’s color pallet. This is the little spinning circle, or blinking dots, or moving bar that looks neat while the content is loading. Sometimes it’s hard to find the perfect one that doesn’t have a bunch of gif noise (all that anti-aliasing edge color) and they end up looking cheap or gross. Well, yesterday I found an awesome tool.

Ajaxload.info is a site where you can choose a loading graphic, enter your sites background color (or choose transparent) the loader foreground color, and press generate. This site will take those parameters, and spit out an animated gif with the correct colors and animation. AMAZING! The images that the site generates are totally free to use, however and wherever, and are compressed well to be web-friendly. This is a great tool that saves a ton of time, as animating gifs is one of the most tedious things in web development.

Thanks Ajaxload.info!


Web Fonts

Monday, May 24th, 2010

Last week I came across the new Google Font API and Google Font Directory. They are both in beta but that is nothing unusual for something from Google. The Google Font Directory provides high-quality web fonts that you can include in your pages using the Google Font API. Web fonts, enabled by the CSS3 @font-face standard, are hosted in the cloud and sent to browsers as needed. A total of 18 royalty free fonts were released. Woo Hoo! More web fonts!


The Semantic Web

Friday, May 7th, 2010

The Semantic Web

What is “The Semantic Web”?  W3C starts off with a great outline:

The Semantic Web is a web of data. There is lots of data we all use every day, and it is not part of the web. I can see my bank statements on the web, and my photographs, and I can see my appointments in a calendar. But can I see my photos in a calendar to see what I was doing when I took them? Can I see bank statement lines in a calendar?

Why not? Because we don’t have a web of data. Because data is controlled by applications, and each application keeps it to itself.

The Semantic Web is about two things. It is about common formats for integration and combination of data drawn from diverse sources, where on the original Web mainly concentrated on the interchange of documents. It is also about language for recording how the data relates to real world objects. That allows a person, or a machine, to start off in one database, and then move through an unending set of databases which are connected not by wires but by being about the same thing.

(more…)