RSS Feed

Category Archives: DTC 338

Google Maps API

Posted on

Found these great examples of putting multiple maps on the same page using the Google Maps Javascript API V.3. Thanks, Shreerang!


Also, looking for a quick and easy way to find Lat/Long? Check out this little app:

What I’m Thinking About

Posted on

and this super sweet explanation of what it can do for you.

LOL Catulator!

Posted on

Today, we are challenged by Nick Hill to use our mad skilz to make an iPhone calculator.

A view-based application is perfect for this, since we only need one screen.

We’ll use 2 text boxes (inputs), 2 variables, 4 functions, 2 (I used 3) static labels, and 1 dynamic label.

As in (my .h file):

and my .m file:

in my “divide” action, I used the values of the text fields in two ways; as integers and as floats. If I changed the initWithFormat to %f  ÷ %f = %f, I got:

UR ANSR = 4.00000 ÷ 1.00000 = 4.00000

Instead, I chose the %i  ÷ %i = %f format. Woot woot!

You know I had to add some imagery, so in class I used Adobe Illustrator (can I get a woot woot?) to mask out a LOL cat and stuck ‘im on in there:

Response: Lessig’s “CODE” Chapter 1

Posted on

CODE by Lawrence LessigAfter a quick skim through the first few chapters of Lessig’s “CODE,” I can honestly say that Chapter One is the least engaging to me personally. Lessig attempts (and probably very successfully) to describe the evolution of the heady, early “anarchist” days of cyberspace to the rather controversial current state of affairs, where regulation is being considered/implemented. I empathize with Lessig, who clearly states his trepidation or at least, his lack of faith that the current governing bodies will be able to respond to the challenges that regulation presents.

I feel comfortable ‘in cyberspace’ for the most part. There are some dark corners where I suddenly realize I am out of my element, but this has always been so. There has always been something new to learn. However, reading this chapter gave me that familiar, somewhat unsettling feeling that I get when I read the news: something is happening that is taking us in the wrong direction, but what can I do? I am just me, I am no scholar with great ideas for global change. All I can do is hope; I suppose that is something of an ostrich move, but there you have it.

Getting Rid of that Pesky Keyboard

Posted on

Being new to iPhone goodness, I wasn’t entirely sure how my app should work. For instance:

I would assume that once I clicked the “Greet Me!” button, the keyboard should disappear. Wrong! Nick challenged us to find the answer on our own. I located this cocoapi entry that gave pretty straightforward instructions for a fair-to-middlin’ iOSer for doing exactly that.  However, since I am a complete n00b, I needed some help.

The function that sends the text field contents to the label field is called, appropriately, “doSomething.”  Initially we wrote it to send the string that was entered via the keyboard to the label field. All I think I did was append this function:

with this:

I attempted some other things but it made my app crash. That was bad.

Now I’m interested in dismissing the keyboard when pressing “return” on the iOS keyboard. Back to my iterative searching and learning experience!

Response: iOS Development Quick Start

Posted on

I was a little late on getting to this reading, however, I was able to complete the tutorial it contained without any problems. The code seems fairly straightforward, even though I cut and pasted most of it. Of course, I had to hack it a bit so instead of saying, “Hello, World!” it said:

…because that’s how I roll.

The color coding in the Xcode program (not sure… is that the same thing as “SDK” or…?) is very helpful and I could see right away where I would change the “Hello, World!” phrasing.

Others started changing to colors of the text, so I Googled “uicolor” and found a list of these values and changed it to Cyan. I wonder if you can use hex codes?

I trust the coding will get a little easier.