MarketingTypo.com

Internet Marketing, Web Analytics, SEO, SEM, and Social Media

Archive for the 'Off Topic' Category

Blocks – An Interesting Objective-C Addition In iOS 4

Blocks are a feature of the C language that have been added to the iPhone and iPad sdk with iOS 4.

What they allow you to do are create usable “blocks” of code that you can pass along like any object. This probably sounds a lot like a function, and they are very similar, but there is a significant difference in that they “close” around variables that are in scope before a block is declared.

I know this sounds odd, and you might be wondering when you’ll need to use them, but they certainly have their uses as there are definitely times when you will want a small block of reusable code.

You can find a complete tutorial from Mike Clark here that explains things better here:
Using Blocks In iOS 4

If you liked this, please share it!

[Via Joost Schuur]

©2010 iPhone iOS 4 iPad SDK Development Tutorials, Programming Tips, News. All Rights Reserved.

.

Share and Enjoy:

RSS
Twitter
Facebook
DZone
HackerNews
del.icio.us
FriendFeed

View full post on iPhone iOS 4 iPad SDK Development Tutorials, Programming Tips, News

Follow MarketingTypo on Twitter

Follow MarketingTypo on Plurk

LinkShare_468x60v2

posted by MarketingTypo in Apple iPad Development and have No Comments

Great Beginner iPhone And iPad Dev Screencasts

Learning iPhone and iPad development can definitely be difficult, especially if you are not a professional software developer.

I receive e-mails every few days from people who tell me they’ve bought a book or number of books on Amazon or at the local bookstore.  Unfortunately most of the “Beginner” material is meant for experienced developers who are new to the iPhone or iPad platform.

If you’re a real beginner without any program experience you might need to take a step back and look for teachings from a different perspective.

A friend of mine told me about a book that they’d been using by Dr. Rory Lewis, in his book he mentions some screencasts that he has used to help teach students at the University of Colorado.  They look great for the absolute beginner and if you’ve been struggling and just want to get your foot in the door I suggest checking them out. These don’t get into very advanced material, but are very accessible and high quality. You can find the screencasts here.

The book Dr. Lewis mentioned these screencasts in (although he does mention on his website you don’t need to buy it) is available here.

Thanks for reading, if you liked this please share it.

©2010 iPhone iOS 4 iPad SDK Development Tutorials, Programming Tips, News. All Rights Reserved.

.

Share and Enjoy:

RSS
Twitter
Facebook
DZone
HackerNews
del.icio.us
FriendFeed

View full post on iPhone iOS 4 iPad SDK Development Tutorials, Programming Tips, News

Follow MarketingTypo on Twitter

Follow MarketingTypo on Plurk

LinkShare_468x60v2

posted by MarketingTypo in Apple iPad Development and have No Comments

How To Use The Facebook Graph API In Your iPhone and iPad Apps

We all know Facebook is a massive database providing a wide variety of information about hundreds of millions of people, and the Facebook app has been tremendously popular on the app store.

Accessing the “Facebook Social Graph” can be done through the Facebook graph API, Facebook Connect was provided to give developers the ability to connect their apps with the Facebook database, but pales in comparison to the Facebook Graph API.

Ray Wenderlich has written a couple of excellent tutorials utilizing the Facebook Graph API, this is an ongoing tutorial series which features:

  • How to authenticate the Facebook user using Oath
  • Getting profile information
  • Uploading Photos
  • Posting to the user’s wall
  • And more..

The tutorials (so far) can be found here:

How To Use Facebook’s New Graph API from your iPhone App – featuring how to connect to the Facebook graph API, and authenticate the user.

How To Get a User Profile with Facebook’s New Graph API from your iPhone App – How to gather profile data from the Facebook graph api using ASIHttpRequest, and parse the data using the JSON framework.

If you liked this, please share it!

©2010 iPhone iOS 4 iPad SDK Development Tutorials, Programming Tips, News. All Rights Reserved.

.

Share and Enjoy:

RSS
Twitter
Facebook
DZone
HackerNews
del.icio.us
FriendFeed

View full post on iPhone iOS 4 iPad SDK Development Tutorials, Programming Tips, News

Follow MarketingTypo on Twitter

Follow MarketingTypo on Plurk

LinkShare_468x60v2

posted by MarketingTypo in Apple iPad Development and have No Comments

Free Case for iPhone 4 Owners

Apple has just announced that they are rolling out a program next week for all iPhone 4 users to receive a free case (if they so choose to request one) — in a move to address the widely reported iPhone 4 antenna problem (now dubbed “Antennagate”).

Customers that have already paid for a case will receive a full refund.  The program will run untill September 30th, and you’ll be able to apply online for the free case, along with your choice of case.  More details will be released after Apple’s press conference as they roll the program out.  We’ll update this post with more details as we get them.

iPhone 4 Case Program Update

Apple has timely rolled out their iPhone 4 Case program page, where you can find more information to request your free case or bumper for your iPhone 4.

Essentially, for those that have not bought a case yet, you’ll need to download the iPhone 4 case program app from the App store.

Already bought a case?

- If you paid with a credit card, the charges should have already been refunded to your account (most people will see the credit/refund reflected in their next billing statement).

- If you paid with cash, check, or a gift card at an Apple retail store, you can return to the store with your receipt by September 30th to get your refund.

- If you paid for the case with a gift card on the Apple online store, Apple will mail you a new gift card for the refund amount.

- If you bought the case from an AT&T store, fill out a rebate coupon and mail it to Apple by September 30th, 2010 and Apple will process your rebate as soon as possible (expect industry standard processing time of 4-8 weeks).

What do you think about this “solution” so far from Apple to address the problem?  According to Apple, complaints about antenna issues are 0.55% out of all reported problems.  There has been 3 million iPhone 4 sold since release date (discounting duplicate calls, that’s about 1,500 complaints).

[Image via Cnet's live blog coverage].

View full post on Shrinkage Is Good

Follow MarketingTypo on Twitter

Follow MarketingTypo on Plurk

LinkShare_468x60v2

posted by MarketingTypo in Off Topic and have Comment (1)

Beginners Tutorial: Basic Touch And Animation

Many put off using basic core animation and uikit as a way of making games almost by default.

The fact of the matter is that core animation is probably the easiest way to create a game on iOS. With a more complicated game you will run into performance issues,  but for many games it works just fine, and you can lay things out in interface builder.. perfect for someone just starting out since the concepts will work across different UIKit interface components.

I found this great tutorial for beginners from Tudor Munteanu that is worth checking out covering basic touch and animation which you can find here:
Learning About Touch Events And Basic Game Animation

There is a small error in the code, and just in case it hasn’t been fixed yet you need to change the lines:

UIButton *button = [[UIButton buttonWithType:UIButtonTypeCustom]
initWithFrame:CGRectMake(240, 150, 50, 50)];

To:

UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
button.frame = CGRectMake(240, 150, 50, 50);

Thanks for reading, if you liked this then please share it!

©2010 iPhone iOS 4 iPad SDK Development Tutorials, Programming Tips, News. All Rights Reserved.

.

Share and Enjoy:

RSS
Twitter
Facebook
DZone
HackerNews
del.icio.us
FriendFeed

View full post on iPhone iOS 4 iPad SDK Development Tutorials, Programming Tips, News

Follow MarketingTypo on Twitter

Follow MarketingTypo on Plurk

LinkShare_468x60v2

posted by MarketingTypo in Apple iPad Development and have No Comments

The Best Resources In iOS Development July 19th 2010 (For Week 07/10-07/16)

Thanks for visiting, things have continued to accelerate in the iPhone and iPad developer blogging world.  It seems like each week there is more and more great content being put out.  I am continuing to look through, and filter for the good stuff to share with you, and I still have a lot to look through.

If you have a resource that you would like to share then you can submit it. This site received about 40,000 page views in the last week according to Google analytics, and I try to give submitted content priority.  I also like to give priority to those who are new, have linked back or have shared content from this site on Twitter.

Anyways, here are the resources from 7/10-7/16 in order of popularity and sharing!

How To Program A Fully Functional iOS Photo Viewer Quickly With Three20
A great tutorial from Ray Wenderlich on using the photo viewer in the uber handy Three20 open source library.

3 Great Tutorials For Beginning iOS Developers
Three great tutorials for beginners from Nick Vellios.

Drag-In Straightforward Pathfinding Library For iOS Game Developers
An excellent open-source library for adding pathfinding into iPhone and iPad games from the creator of ASIHttpRequest.

Programming A Non-Fullscreen iOS Movie Player That Even Runs In Portrait
A handy code snippet from John Muchow on creating a movie player that works in portrait mode, and doesn’t automatically go full screen.

4 Ridiculously Handy Custom iPhone UI Tricks and Libraries
Four very handy code snippets from Hans Pinckaers for UIKit user interface builders.

How To Add Turn Based Multiplayer Into Your iPhone Games Easily With Openfeint
A nice tutorial on how to easily implement turn based multiplayer using Openfeint from Kwigbo.

Glossy iPhone Buttons Without Images Or Private APIs
A very nice open source library for adding glossy colored iPhone buttons that can be laid out using interface builder from Hwee-Boon Yar.

Using Objective-C JSON To Do Translations In An iOS App
Another great tutorial from Ray Wenderlich this time on using JSON with Google Translate to add translations into an iPhone app.

Easily Accommodate Different iOS Versions With This Clean Code
A nice tutorial with sample code showing how to accomodate different versions of iOS with uglifying your code.

That’s it – If you liked something on this list, please share it!

©2010 iPhone iOS 4 iPad SDK Development Tutorials, Programming Tips, News. All Rights Reserved.

.

Share and Enjoy:

RSS
Twitter
Facebook
DZone
HackerNews
del.icio.us
FriendFeed

View full post on iPhone iOS 4 iPad SDK Development Tutorials, Programming Tips, News

Follow MarketingTypo on Twitter

Follow MarketingTypo on Plurk

LinkShare_468x60v2

posted by MarketingTypo in Apple iPad Development and have No Comments

5 Awesome Movie Cell Phones We Wish Were Real

We’ve all seen movies where the protagonist whips out a cell phone and proceeds to do something practically impossible: call mom from a secret underground bunker, snap hi-res photos of terrorist activity, or control all electronics in the immediate vicinity. Didn’t you think to yourself: where can I get one of those?

We’ve put together our wish list of five cell phones from the movies that we wish were real, along with their real-life counterparts. Enjoy!

1. James Bond’s phone in Tomorrow Never Dies

James Bond always has the coolest gadgets, no question. We’d love to get our hands on the cell phone he uses in Tomorrow Never Dies. The innocuous looking device packs a mean punch. It comes with: a stun gun, a fingerprint scanner/analyzer/transmitter handy for opening up fancy locks, a lock pick for old-fashioned locks disguised as the phone’s antennae, and last but not least – drumroll please – a “flip open” remote control for operating his BMW 750iL. The remote comes with a directional steering pad, LCD monitors of the car’s front and rear views (see picture), and controls to car’s defensive mechanisms, including the fire rocket launcher. Now that is one cool function. Does the car come with it?

Real-life counterpart
ericsson phone
Ericsson designed Bond’s phone specifically for the movie, and much of the design resurfaced in a phone released a few years later in 2000. The Ericsson R380 is already obsolete by our standards, but at the time it was arguably the world’s first smartphone and the first to use the Symbian OS. Like Bond’s phone, it comes with a touchscreen partially covered by a flip, and it boasts an antennae, but that’s where all similarities end. It looks remarkably clunky by today’s standards, especially when compared to the Droid or iPhone.

2. Tony Stark’s Phone in Iron Man 2

tony stark phone

Tony Stark had a pretty lame phone in the first movie – a simple LG VX9400, hardly a billionaire’s phone, but he packed a serious upgrade for the sequel. His state-of-the-art, slim, transparent cell phone allowed him to control his TV, lock up his house, project videos, and, we assume, take over nearby monitors as he demonstrated during his Senate hearing. Fingers crossed that was just saw a version of the future, folks, because talk about multi-functional. For a look at some of the graphics, watch this clip.

Real-life counterpart
Sorry, everyone. In real life Tony’s phone was a transparent piece of glass with the Stark logo and the LG logo etched on it. Definitely missing some key functions. As corporate sponsor of the movie, however, LG jumped on some of the Iron Man buzz and launched the LG Ally phone, its first Android-powered smartphone. The Ally is promoted with lots of Iron Man reference, but according to an early review from cnet, the phone doesn’t differ substantially from LG’s other offerings, such as the EnV. Still, Ally is supposed to come with some Iron Man 2 augmented-reality applications. If you really want to feel like Tony Stark, LG has a fun introduction to the concept here.

3. The Star Trek Communicator

star trek communicator

Remember the days before cell phones? People dreamed of something like the Star Trek communicator, which allowed for instantaneous communication over long distances. Hmmm. Word on the street is that Martin Cooper, inventor of the world’s first personal cell phone, was inspired by Captain Kirk’s communicator.

Yes, the first incarnation of the communicator is boxy and big by our standards, but remember that the communicator is so much more than a normal cell phone. Communicators can transmit through subspace, which allowed Captain Kirk and his crew to chat with their buddies on a ship in orbit. Sample conversation: “Beam me up, Scotty!”

Real-life counterpart
All cell phones are arguably based on the Star Trek communicator. Unfortunately, there is no phone actually designed to look like the communicator – yet. Currently available on the market are a number of iPhone covers designed to look like communicators, as well as a full-size replica from ThinkGeek that comes with lights, sound effects, and clips from the original show. If you’re really jonesing to hold a communicator look-alike in your hands, the ThinkGeek product is definitely the way to go, but remember that you won’t be able to actually communicate with anybody. You can pretend it’s really Spock on the other end, though.

4. Get Smart Shoe Phone

get smart shoe phone

There’s nothing like a secret phone to make you feel like a secret agent, and in the categories of secret phones, there’s nothing like the shoe phone from Get Smart. Made famous by the spy parody TV series in the late 60s, the shoe phone was, like the communicator, a precursor to modern day cell phones. Thankfully we don’t have to take off our shoes to dial a friend, but we admit there’s something sweet and nostalgic about packing a secret communication device in your shoe. Not to mention that if you dial “117″ the whole shoe turns into a gun.

Real-life counterpart
Believe it or not, a simple Google Shopping search presents a whole array of options for purchasing a shoe phone. Not satisfied with those? Get step-by-step instructions for creating your own shoe phone here. Phone and shoes required.

5. Matrix Reloaded Phone

matrix reloaded phone

In the widely anticipated sequel to The Matrix, Neo and friends continued their fight against the evil computer program enslaving humanity. This time, however, they switched to using Samsung. And while our phones exist only in the Matrix, Neo and Morpheus were able to use their phones to communicate with people back in the real world. Unfortunately, there’s not an app for that.

Real-life counterpart
The cell phone used in the movie was developed specifically for that purpose, and Samsung tied the release of the lookalike SPH-N270 phone (otherwise known as the “Matrix phone”) to the release of the movie in 2003. The background options on the phone allowed for famous “digital rain” – the green code on black background – and comes with screensaver themes and various ringtones. The phone definitely took its movie roots very seriously and successfully sold out.

Did we miss any other cool cell phones from Hollywood? What fantasy phones are on your wish list?

View full post on Shrinkage Is Good

Follow MarketingTypo on Twitter

Follow MarketingTypo on Plurk

LinkShare_468x60v2

posted by MarketingTypo in Off Topic and have No Comments

How To Add Turn Based Multiplayer Into Your iPhone Games Easily With Openfeint

I am a huge fan of multiplayer games.  Especially on the iPhone… in fact at one time I did consider starting an app review site just for multiplayer games.  The nature of multiplayergaming could also cause your game to go viral.

What I don’t like about multiplayer games is handling all the small details such as building a lobby for the players to find each other through, and making sure all the small details work.  And in the end with an indie title you may not even know if there will be players who will play it multiplayer.

Fortunately OpenFeint has made this considerably easier when they added turn based multiplayer to their already extremely popular social gaming platform on iOS devices.

Kwigbo, developer of the open source game Artifice (listed in our open source iphone app listing) has created a straightforward tutorial showing the code that he uses within his game which you can find here:
OpenFeint Multiplayer In Artifice

The tutorial features code showing you how to use OpenFeint in order to:

  • Create a new game
  • Find open games
  • Challenge friends
  • Take turns
  • And More…

Some details about OpenFeint’s multiplayer capability are stated here:
http://www.openfeint.com/ofdeveloper/index.php/kb/article/000074

This looks like a very nice and easy to add turn based multiplayer into your games.

If you liked this, please share it with others!

©2010 iPhone iOS 4 iPad SDK Development Tutorials, Programming Tips, News. All Rights Reserved.

.

Share and Enjoy:

RSS
Twitter
Facebook
DZone
HackerNews
del.icio.us
FriendFeed

View full post on iPhone iOS 4 iPad SDK Development Tutorials, Programming Tips, News

Follow MarketingTypo on Twitter

Follow MarketingTypo on Plurk

LinkShare_468x60v2

posted by MarketingTypo in Apple iPad Development and have No Comments

Create Glossy iPhone Buttons Easy Using Interface Builder Or Code Without Images Or Private APIs

Last week I posted about a button making tool that utilizes the hidden UIGlassButton class in order to make the sexy colored glass buttons that are common in Apple created applications.

Having to create these buttons was something I was doing at the time, and it surprised me that many others seemed to be doing the same thing.

I was asked by a couple of people if that class was really safe to use, and it was because all you were doing was saving the buttons, and then using them in your own apps — it is perfectly alright since you would just be using png files, but Hwee-Boon has submitted an even easier solution.

The solution is a set of classes that utilize core animation to create the buttons so that no private APIs are used.

What makes this solution easier is that you can just use interface builder and then add in one line of code to set up how you would like the button to look.  No need to export png’s, and load them in.  You can also set them up using code.

The solution along with sample code can be found on Github here:
http://github.com/hboon/GlassButtons

If you’re using interface builder for the buttons it is a pretty simple process:

1. In the interface builder declare the buttons as IBOutlet UIMOButton as opposed to IBOutlet UIButton.
2. Create your buttons with the UIRoundedRect type, and link them to the UIMOButtons you declared making sure the class identity is set to MOGlassButton.
3. When the xib is loaded execute the appropriate method for color and size ie. setupAsGreenButton setupAsSmallGreenButton.

Overall the code is very easy to follow, and looking at the demo project you can easily see exactly how things are done.

You can see in the screenshot below how things can easily be laid out in interface builder and the results including some buttons layed out using code:

Be sure to check out Hwee-Boon’s Posterous for further details (or to just say thanks):
Glass Buttons in iPhone Apps Without Using Image Files

If you like this then please share it with others.  Thanks!

©2010 iPhone iOS 4 iPad SDK Development Tutorials, Programming Tips, News. All Rights Reserved.

.

Share and Enjoy:

RSS
Twitter
Facebook
DZone
HackerNews
del.icio.us
FriendFeed

View full post on iPhone iOS 4 iPad SDK Development Tutorials, Programming Tips, News

Follow MarketingTypo on Twitter

Follow MarketingTypo on Plurk

LinkShare_468x60v2

posted by MarketingTypo in Apple iPad Development and have No Comments

Non-Independence Day

I didn’t write an Independence Day post last week partly because I’ve been on the road. Burkina Faso is a fun enough place to visit, but there were no fireworks displays at night to celebrate America’s intent to withdraw from King George’s Britain.

But the other reason is that I think of a celebration of independence much like the Thanksgiving holiday. The holiday later in the year is all about eating pie and being grateful. I like both of those things; I just think that being grateful (or eating pie!) shouldn’t be reserved for one special day.

So while it’s nice to reflect on a country’s independence from foreign powers while waiting for the pizza guy to arrive, just as our forefathers did, I think it’s better to think about independence on a more personal and regular basis. What is independence, really?

To understand independence, let’s look at the opposite principle of lacking freedom or otherwise being restrained—non-independence, let’s call it. What is non-independence? I can think of two parts.

Part I: People who lack freedom due to no fault of their own

After starting in Burkina Faso, I’m now writing this post from Niger. Burkina and Niger are both beautiful countries, well worth coming to if your world tour takes you this way. They are also countries where a very large percentage of the population is desperately poor. In Niger especially, about 50% of the people are struggling due to a recent famine. It’s hard to sit around thinking big thoughts when you’re wondering if you’ll have enough to eat next week. If you can’t feed your children, you’re not very independent.

From the other side of the glass, the best thing us rich people can do is work to create a world without absolute poverty, not through patronizing, but through empowerment. Personally, I’m a big fan of clean water. Even though I’m in Niger, I can afford myself the extravagance of drinking water that won’t make me sick.

That’s a nice freedom to have, and that’s why we should all do what we can to help everyone achieve the luxury of choice.

Part II: Our own, self-created non-independence

The other kind of non-independence is what most of us in the non-poor world are more familiar with. This is the self-created kind, where we end up giving away our independence in exchange for perceived security. We get sucked into routines and patterns that aren’t at all what we hoped for, but to turn around and make a big change is too difficult.

Inertia and comfort are the greatest hindrances to independence. Some people manage to do it, like Jodi who saved for years to leave her job as a corporate lawyer and travel through Burma, or Audrey and Daniel who have made a career out of international development consulting from the road. And sometimes a camel really does go through the eye of the needle.

I love the exceptions. But most of the time, we limit ourselves in the name of obligations and responsibilities.

Action Plan! (It’s not just something you read)

So I recommend we do two things on this non-independence day, or whatever day it happens to be when you come across this.

First up, do one thing for someone else.

It’s easy to pretend that big, global problems don’t exist; I do it most of the time too. I ignore a lot of people, from beggars on the street in West Africa to people brandishing countless petitions on the street in Portland. I ignore them because I know I can’t help them all, and therefore I make the false choice to help no one.

But why not decide to reach out to the next one who comes along? I’m staying in a hotel and drinking all the clean water I want. The least I can do is buy rice for someone.

Back at home, I don’t really enjoy being accosted by petitioners for every imaginable cause in my neighborhood. But I know that plenty of other people will be rude to them, so I might as well be someone’s happy customer. Where do I sign?

Perhaps you’re not in Niger at the moment, or maybe you don’t have relentless petitioners out for blood and signatures in your neighborhood. But what do you have? What can you do?

If you’re not sure or just need the turn-key plan, join forces with our Ethiopia campaign. 100% of the money goes toward providing wells with local organizations in two communities. We haven’t promoted it much since launching it earlier in the year, but rest assured I’ll be going all-out this fall as I tour North America. It’s a project worth investing in.

Secondly, do one thing for yourself.

It’s not all about everyone else; your independence is worth fighting for too. Don’t give it away!

What can you do to take one step toward greater independence? Career independence means that your own competence is your security, whether you work for someone else or not. Financial independence means you understand the values that guide your income and expenses. Relational, spiritual, intentional, and so on—take your pick of independence-building. Just do something.

Fireworks, pie, celebrations—I could take them or leave them (well, except for the pie). But independence itself is the best prize. Let freedom ring!

Whatever independence means over there in your world, it’s probably up to you to make it happen. Happy non-independence day, everyone.

###

Fireworks Image: SandCastleMatt
Pizza Guy Forefathers Reference: Brett Kelly

View full post on The Art of Non-Conformity

Follow MarketingTypo on Twitter

Follow MarketingTypo on Plurk

LinkShare_468x60v2

posted by MarketingTypo in Off Topic and have Comments (10)
Get Adobe Flash playerPlugin by wpburn.com wordpress themes
0
0, 0
Max visitors today: 56 at 07:46 am ICT
This month: 56 at 08-01-2010 07:46 am ICT
This year: 173 at 03-10-2010 08:15 am ICT
All time: 173 at 03-10-2010 08:15 am ICT