Archive for July, 2009

How to deal with iPhone Device Provisioning without Stabbing Your Eyes Out

Friday, July 31st, 2009

Introduction

So for any developer than has joined the iPhone Development program and attempted to throw their app on their phone, the process of provisioning is a familiar and likely painful process. Like many developer you may have several projects going on possibly for several organizations. You can think of provisioning as the paper work your app needs to fill out in order to “board” your phone. The process involves ____ steps:

  1. Get an iPhone Developer Account
  2. Create a certificate request
  3. Download your approved certificate
  4. Register your device
  5. Create an App Id for some app (eg. com.exampleComapny.exampleProduct
  6. Create a provisioning profile that says an app with a certain App ID can run on a device with a certain ID

While there may be a headache or two in the first several steps, Apple does provide a fairly robust overview of how to accomplish those things. We are going to focus on a developer who has gone through these steps and has a provisioning profile available on their machine. Now you may have multiple provisioning profiles on a single machine, but doing that just involves more work. I use this quick trick to modify projects to my provioioning profile so that I can help  test etc.

Instructions

Step 1

Assuming you already have a project created, open up the terminal and navigate into the directory for the project. In my case I have a project called “MyTesterProject”.

Picture 15

Step 2

Now if we do an ls command we can see that there is a .xcodeproj in this directory. We are going to navigate into that. Although in Finder this may look like a file, it is actually a bundle or folder that has things contained in it. Using the change directory command (cd) we can navigate into the project.

Picture 16Picture 17

Step 3

Listing out the directory here we can see that there are several files. The one we are going to focus on is project.pbxproj. This is the file that contains all the configuration settings for this project. What I do here through the terminal is use the command mate to open text mate, however you may use vi or pico or whatever other text editor you like to open the file.

Picture 18Picture 19

Step 4

Now you are going to search for whatever developer this project is currently linked to. For this example lets pretend that this project is configured for a provisioning profile for “Collin Ruffenach” but we want to change it. Search through this document and find the developers name.

Picture 20

Step 5

You will find the name in a section of text that looks similar to this. You need to replace whatever name is there with your name. The other important field begins with “PROVISIONING_ PROFILE”.

Picture 21

The number that you are to replace the provisioning profile number with will be found in xCode. If you go into xCode and into the Window menu, you will see an option for organizer. In organizer you can see all your provisioning profiles. Pick the one you have made for your self and get the Profile Identifier, this is what you will put for the PROVISIONING_PROFILE:

Picture 25Picture 26Picture 27

Step 6

The last thing to do is go into the info.plist file for the project and make sure to change the Bundle Identifier to match the one for the provisioning profile you have. I know at first this seems like a kind of invasive way to do things, but it has really sped up my development and testing time. Hope this tip works for you guys. Thanks for reading and Happy Coding!

Picture 24

Distinguish Snacks from Treats for a Healthier Diet [Diet Hacks]

Friday, July 31st, 2009

The best and worst thing about food is the variety, especially if you're prone to copious amounts of snacking. To help keep your waistline in check and your taste buds content, distinguish your snacks from your treats.

Photo by DeusXFlorida.

Forbes asked dietitian Dawn Jackson Blatner to create a guideline on the dos and don'ts of healthy snacking. Among Dawn's tips is to know the difference between what constitutes a snack and what classifies as a treat. As a quick rule of thumb, "a snack is nutritious and filling, [while] a treat is not." Furthermore, "snacks should pack enough nutrition to provide energy so you don't yearn for more and end up overeating." As a guideline, try limiting your snacking to about twice a day and occasionally replace one of those snack times with a treat. Remember also to keep both snacks and treats between 150 to 200 calories.

Check out the full post for other snacking rules, and remember to avoid those food ads if you'd like to snack less. For some suggested snack ideas, check out this previously posted guide to 20 snacks that will fill you up and boost your productivity.

Snack Attack: The Dos and Don'ts of Healthful and Mindful Snacking [Forbes]


Chrome Updates, Adds Themes, Better Windows 7 Support [Downloads]

Friday, July 31st, 2009

The latest developer builds of Google Chrome enable extensions by default, add support for skins, and even improve compatibility with Windows 7.

If you aren't using the developer releases of Chrome, you'll still need to download the Channel Chooser and switch to the development stream, but you won't have to mess around with command-line parameters anymore—extensions have been enabled by default. This means you'll be able to install themes for the browser, and while there are only two themes to choose from at the moment, the theme specifications have been published and there is likely to be an explosion of new skins released very soon.

The other noteworthy fix, although not mentioned in the linked article, is that Google Chrome's "Application" shortcuts will now show up as separate taskbar items in Windows 7, a very helpful change for those of us that use them extensively.

Themes support now lets you reskin Chrome [CNET]


3jam Is Like Google Voice with Number Portability and Skype Support [Telephony]

Friday, July 31st, 2009

Google Voice has been been making a splash among early adopters, but if you're looking for an alternative with many of the same features plus a couple of extras, take a look at 3jam.

(Click the image above for a closer look.)

3jam isn't an altogether new service—it used to be primarily a text messaging service—but its Google Voice-like features are. Like Voice, 3jam rings all your phones from one number, gives you access to your call history and SMS history, offers (visual) voicemail online, and more. Unlike Google Voice, 3jam also supports forwarding your calls to Skype, AOL, or Yahoo Messenger. It also lets you port your current number into 3jam for easy transition—something that's not (yet) available with Google Voice.

What's more, 3jam isn't in an invite-only beta. The catch: 3jam costs, at minimum, $5/month. That's not terrible considering what they offer, but in light of Google Voice's free offering, not all that many folks would be that excited at the notion of ponying up cash for 3jam. Then again, if features like Skype or IM ringing are particularly important to you (say you want to save some cell minutes), 3jam may have a leg up on Voice.

On the other hand, 3jam doesn't currently have all of Google Voices features, like call filtering. If anyone has given it a try, let's hear your experience with 3jam in the comments.

3jam [via TechCrunch]


Make a Mini-Snake for Your Bathroom Drain [DIY]

Friday, July 31st, 2009

Most of the clogs in your bathroom sink or bathtub don't require the mess of a full length plumbing snake and if you're an apartment dweller you're certainly not going to give up precious space to store one.

Photo by mobilestreetlife.

What you need is a mini-snake, easily stored under the sink and handy for those annoying hair clogs. At the home-improvement site DoItYourself.com they share a handy trick for always making sure you've got a snake close at hand. You'll need to stop by the hardware store and get a few feet of 1/8" stainless-steel cable and you'll need a pair of needle-noise pliers:

Step 1: Simply bend several individual wires (not strands) out in different directions from the center of the cable so that when rotated, the strands will snag hair in the clogged drain.

Step 2: Fish cable as you would a drain snake, twisting as you push gently to advance into and around elbows, etc.

Step 3: When you feel the clog, just twist the cable until you feel some resistance and withdraw slowly to extract hair.

Step 4: Repeat until the big wad comes out, maybe two or three times.

The DIY solution is much more effective than trying to reach a mat of hair with needle-nose pliers and much easier to store under the sink than an actual plumbing snake. If you have your own handy DIY home-plumbing solutions, let's hear about them in the comments below.

Clogged Drain: A DIY Alternative to Drain Snakes [DoItYourself]