Monthly Archives: March 2010

Push Doctor Fixes Push Notification Issues on Unlocked iPhones [Downloads]

iPhone only: Those of us with unlocked iPhones don’t always have the best luck with push notifications. Push Doctor is a new solution that provides the genuine activation certificates your phone needs for push to work properly.

To get this solution, you’ll need to add its source:

www.cmdshft.ipwn.me/apt/

…to Cydia. Then do a search for Push Doctor to locate the package, install, and confirm. From weblog Addictive Tips:

Once the package is installed, you’re done. It won’t show up as any app on your springboard or under the Settings app. What this package does is simply adding the valid, unique certificates for your hacktivated iPhone. Try any application with push notification support to ensure working of the package.

You can use Push Doctor on any unlocked iPhone running firmware 3.1.3 or 3.1.2.






How-To: Setup an Airport Extreme in Bridge Mode

When our community went live for AT&T U-Verse, we jumped right on the opportunity to get a service with advanced voice, data and TV on the same line. Unfortunately, we found out that U-Verse requires you use to use their router. So we had to replace our beloved Airport Extreme, right? Not quite.

Our situation was U-Verse related, but others may have situations whereby your Extreme can no longer provide Internet routing functions. Fear not, because you can still take advantage of its features with Bridge Mode. Bridge mode essentially turns off the Internet routing portion of the Airport, but leaves intact all of its other features such as Wi-Fi, printer sharing, disk sharing, and Time Machine support.

Let’s begin!

Getting Started

First, unplug all network cables from the Airport and reset it so you are starting with a clean slate. Instructions to reset can be found here.

Next, plug an Ethernet cable from your computer into one of the Ethernet ports on your Airport Extreme. You can configure via Wi-Fi, but wired is easier. If you do it over Wi-Fi, you’ll need to search for your particular Airport.

Once you are connected to the Airport base station (either via ethernet or Wi-Fi), launch the Airport Utility on your Mac. The utility is located in /Applications/Utilities. Once it loads, you will see your Airport router listed in the upper left corner. If the router doesn’t show up, make sure you are physically connected to its network from your Mac.

Click “Manual Setup” towards the bottom of the window and then click the “Internet” icon that appears at the top of the window.

After you click the “Internet” icon, the Internet Connection tab should appear. At the bottom of this window, you will see an option for “Connection Sharing.” By default, this is probably set to “Distribute a range of IP addresses” or “Share a public IP address.” You want to change this so that it says “Off (Bridge Mode)”

At this point, you are done. The Airport is setup for Bridge Mode, but you’ll want to configure a few more things.

Configuring Your Bridge

To configure the Wireless Security and Wireless Network Name, click the Airport icon at the top of the window and then click Wireless.

If you reset the Airport first, you’ll want to click the Base Station tab to rename the Base Station and create an Airport Extreme Password (which may or may not be the same as your wireless password).

If you want to share a connected printer or disk, click the Printers and/or Disks tab as applicable. Personally, I use the USB port and Disks function to have a remote Time Machine shared by multiple computers.

Once you have made all the changes you wish to make, click on “Update” in the lower right corner, and your Airport base station will restart. At this point, you can disconnect from the ethernet port and now must plug in the ethernet cable from your ISP-provided router into the Broadband port of your Airport Extreme.

After it restarts, the Airport Extreme indicator in the front should go green. You can test the bridge by connecting to your Airport via Wi-Fi (or ethernet if you want) and surf the Internet as well as see any disks or printers you might be sharing.

Keep in mind that there are a few limitations of bridge mode. Because the Internet routing features of the Airport are not used in Bridge Mode, certain features that rely on special functionality of the Airport router, like Back To My Mac, may not work. Additionally, port forwarding (for things like games or Bit Torrent) needs to be done using your ISP’s router’s web interface, rather then the Airport Utility. Some ISP routers have a special mode called “DMZ” which allows you to use these features on the Airport, but setting this up is router-specific and often subject to change.

Turn Left Over Mustard into No-Waste Salad Dressing [Food Hacks]

If you hate waste and it seems a shame to throw away a jar of spicy or exotic mustard without getting the last bit of flavor out of it, this clever trick will turn that left over mustard into salad dressing.

At MarthaStewart.com they’re big fans of lists and galleries of clever and trendy things you can do around the house. In this week’s “40 Good Things” list they share a great tip for using the mustard left after the last sandwich is made, to create home made dressing:

Have a tiny bit of mustard left in the jar? Toss in a few ingredients, and shake a tangy Dijon vinaigrette right in the container. A crushed garlic clove, some chopped fresh herbs and minced shallot will add the right flavor. Pour in balsamic vinegar, season with salt and pepper, then close the lid and shake. Add olive oil; shake again to emulsify the dressing, and then drizzle over your favorite salad. With a tightly sealed lid, it will keep in the refrigerator for up to one week.

Sounds delicious and a perfect “after life” for the jar of Dijon mustard I’ve just about polished off. Check out the link below to browse through some of the other clever tips in their roundup. Have a frugal tip of your own to share? Let’s hear about it in the comments.






NatGeo Downloader 2.0 Grabs Over 5,000 Wallpaper-Worthy Photos [Updates]

Windows: National Geographic’s web site has some stunning photography, and a lot of it makes for good rotating desktop backgrounds. The NatGeo Wallpaper Downloader we’ve previously enjoyed has updated with interface improvements, bug fixes, and access to thousands more images.

The app’s developer writes that while his first release of the app made it convenient to grab a few hundred of National Geographic’s photography contest images, this 2.0 version broadens your access to more than 5,000 images. Future versions should expand the range even further. It’s a Windows-only app, but Linux and Mac users with some command line savvy can still get in on the NatGeo action.

NatGeo Wallpaper Downloader is a free download for Window systems.






ASMX and JSON – Common mistakes and misconceptions

While we were recording episode 5 of Mastering jQuery, I found myself running down a lengthy list of misconceptions and potential pitfalls when it comes to using ASMX services for AJAX callbacks. After years of fielding questions revolving around that topic, I suppose I’ve developed a decent handle on the issues most often encountered.

To preemptively surface some of that commonly requested information, I’m going to publish a series of relatively short posts, each describing one mistake or misconception that I’ve seen come up frequently.

To get started, I want to cover one of the most fundamental of these misconceptions: That ASMX services can’t return JSON.

Misconception: ASMX services are limited to XML

One of the most stubbornly persistent misconceptions about ASMX services is the rumor that they are limited to returning XML. With that notion mind, many developers understandably avoid them for client-side AJAX callbacks. When every byte counts, raw JSON is always preferable to the bloat of XML.

However, the introduction of ASP.NET AJAX removed that XML limitation.

In any ASP.NET 2.0+ AJAX enabled site, one of ASP.NET AJAX’s additions is something called the ScriptService. When a ScriptService is called in the correct manner, it automatically returns its result serialized as JSON instead of XML.

In fact, these ASMX ScriptServices even accept their parameters as JSON.

The ASP.NET AJAX “ScriptService”

If you’ve created an ASMX service in the past few years, you’ve probably seen this blurb at the beginning of the default template:

// To allow this Web Service to be called from script, 
//   using ASP.NET AJAX, uncomment the following line. 
// [System.Web.Script.Services.ScriptService] 
public class WebService : System.Web.Services.WebService {

Since it never explicitly mentions JSON and implies a tight coupling with ASP.NET AJAX, it’s easy to understand why the ScriptService’s true power sometimes goes unnoticed. Thankfully, that attribute does much more than simply expose ASP.NET AJAX specific functionality.

In fact, the ScriptService attribute enables all of an ASMX service’s methods to respond with raw JSON if they are requested correctly. For example, these ScriptServices can easily send and receive JSON in conjunction with a third party library, without a ScriptManager or MicrosoftAjax.js anywhere to be seen.

Two simple requirements

As I alluded to earlier, the one stipulation is that these ScriptServices only return JSON serialized results if they are requested properly. Otherwise, even a service marked with the attribute will return XML instead of JSON. I can only assume that’s part of the reason for the misconception that ASMX services cannot respond with JSON.

Scott Guthrie has a great post on the specific requirements for coercing JSON out of ScriptServices. To summarize that, requests to the service methods must meet two requirements:

  • Content-Type – The HTTP request must declare a content-type of application/json. This informs the ScriptService that it will receive its parameters as JSON and that it should respond in kind.
  • HTTP Method – By default, the HTTP request must be a POST request. It is possible to circumvent this requirement, but it is advisable to stick with HTTP POST requests when dealing with JSON.

That’s it.

As long as those two requirements are satisfied, anything from low-level XMLHttpRequest code, to third-party libraries like jQuery, to ASP.NET AJAX itself can easily retrieve JSON serialized data from ASMX services.

###

Originally posted at Encosia. If you’re reading this elsewhere, come on over and see the original.

ASMX and JSON – Common mistakes and misconceptions

MacHeist Returns: Offers 7 Mac Apps for Less Than $20

Software bundle web site MacHeist has unveiled its latest offer. The ‘nanoBundle2‘ was made public as midnight struck on Wednesday, revealing a range of seven Mac OS X applications.

For those unaware, a typical MacHeist promotion sees a number of Mac applications being made available at a discount rate (sometimes even for free), but only for a limited time. Following a build-up of teasing tweets this past week, the bundle is now available, with the latest collection of software including:

MacJournal (Retail: $39.95)

Writing software, MacJournal, from Mariner Software is an Apple Design Award-winning application that claims to be perfect for any amount of writing, whether that’s just a quick small list, a more detailed blog entry or a full-on book.

RipIt (Retail: $19.95)

RipIt is a simple DVD importing tool from ‘the little app factory.’ The application aims to make the process of importing your DVD collection onto your Mac as simple as it is for CDs. You can even compress your DVDs for portable use on an iPhone.

Clips (Retail: $27)

Ever went to copy something and suddenly stopped, remembering that you may already have something stored on your computers clipboard? Conceited Software is offering clipboard management application, Clips, as the solution to just that problem.

CoverScout (Retail: $39.95)

Equinux’s CoverScout is one of several currently available apps that will take an ever-growing iTunes library, then find and replace any missing cover art. Developers Equinux claim that due to the visual nature of humans, music with no cover art is more likely to be ignored when browsing your collection.

Flow (Retail: $25)

Flow is an FTP client from Extendmac that boasts not just a fresh, clean user interface but also claims to take advantage of the latest OS X technologies. Beyond its basic FTP capabilities, Flow also has live editing and other development tools. It also is an Apple Design Award winner.

Tales Of Monkey Island (Retail: $34.95)

Although currently locked, Telltale Games’ adventure title Tales Of Monkey Island will be unlocked for all MacHeist customers once 50,000 bundles have been sold. Once that goal has been reached, six episodes of pirate based fun will be yours.

RapidWeaver (Retail: $79)

RapidWeaver, the last application in the latest MacHeist bundle, is a web site creation tool from Realmac Software. The application has similarities to that of Apple’s iWeb.

The nanobundle2 is available now for just seven days, so if you were looking to buy any of the above applications now would clearly be a good time. If you were to purchase each of the included applications separately it would cost an excess of $266. So buying through MacHeist not only donates money to charities (over $1.5 million since the heist’s began), but it could also save you up to $246!

What the Numbers on Your Credit Card Mean [The More You Know]

The string of numbers on you credit card houses a batch of information. For instance, the first number tells you what kind of card it is—4 for Visa, 5 for MasterCard, and so on. Visa cards are always 16 digits long and have other identifying characteristics:

When looking at the balance of the numbers, the 2nd through 6th digits are the bank number, and the 7th-15th numbers are your account number. The remaining digit is known as the “check digit,” which is used to help determine whether or not the overall number is legitimate.

[Five Cent Nickel]






The Easy, Any-Browser, Any-OS Password Solution [Passwords]

Whenever we talk passwords, we always preach the same thing: Use strong, difficult-to-remember passwords, and different passwords for every site. Easy to say, extremely difficult to do through sheer willpower. I’ve tried many password-remembering systems, and this is what I’ve stuck with.

To paraphrase photographer Chase Jarvis, the best password manager is the one you have with you. Of all the password management utilities out there, I consider LastPass the most elegant compromise between convenience and security, and if you’re not using it already, I recommend you start. It’s mostly free, plugs into nearly any browser or smartphone, is KeePass compatible, and just works.

Why LastPass?

Why not just use KeePass for all my passwords and be done with it? It’s secure, open-source, extensible, and geeks like Gina have sworn by it as a password solution. Oh, and many readers love it, too. If I only used Firefox, KeeFox would provide a pretty good browser integration, and I could use Dropbox as a universal KeePass syncer.

I like KeePass. KeePass is friendly and locks down pretty tight. But when it comes to filling in web passwords, I want the path of least resistance—and I want to convert my friends and family into more secure practices, too. LastPass offers a few advantages over KeePass:

  • Universal: KeePass has a nice collection of extensions and plug-ins, but they’re all over the place when it comes to support, updating, and platforms. LastPass offers extensions for Firefox, Internet Explorer, Chrome, and Safari on Windows, Mac, and Linux. There are a few gaps (Opera, mainly), but they’re covered in large part by free auto-filling bookmarklets (covered below) and desktop, portable USB apps, and mobile software, offered to LastPass’ premium subscribers.
  • Simple: LastPass has a multitude of options, settings, tools, and other knobs to twiddle, just like KeePass. If all you want, though, is a better kind of universal password manager that remembers your log-ins, simply install the browser extension, log into LastPass, and let it do its thing. It automatically prompts you to save passwords and form data—though you can turn that off—and fills out username/password fields, with an easy switch to another login name.
  • Secure, yet dummy-proof: My one fear with systems like KeePass, where I'm keeping my own database and, potentially, safe-keeping my own encryption key file, is that I'll do something stupid and delete that file, or forget that ultra-secure master password. Sure, sure—you're a superhero of forethought and memory, and would never do such a thing. Me, I've had too many brushes with Dropbox sync screw-ups (my ow fault for tinkering, usually) and memory gaps to leave it up to myself to serve as my own knight to protect the Holy Grail. LastPass uses a single master password to log into your account, sure, and if you lose that, you have to jump through quite a few hoops to get it back. But it is, technically, recoverable.

The short version of LastPass’ safety and privacy setup, and its technology is that the only thing stored on LastPass' servers is a heavily encrypted bundle of your passwords and the sites they belong to—a form of host-proof hosting. They don’t have the encryption key to your passwords (only you do), and the encryption and decrypting all takes place on your own computer, where a backup copy of LastPass’ records is always kept. If LastPass became evil, or got hacked, the nefarious doers would have to buy one of Google’s server farms to break into its users’ passwords. And the service strongly encourages using strong, secure, randomized passwords with web sites, and it ends the use of insecure password storing by browsers.

Switching to LastPass is easier than you’d think too, mostly because LastPass lets you import passwords from KeePass and many, many more password management apps and sites. Heck, if you only want to use LastPass for your web passwords and still keep your more intense security concerns in KeePass, go ahead. You can actually store non-web passwords and data in LastPass, but we’ll get to that in a bit.

Intrigued? Even just a little interested? Here’s how LastPass can make your web browsing, or maybe the browsing of a friend with really weak passwords, more convenient and secure. Go ahead and create an account if you’d like, but LastPass actually recommends creating that account from a browser extension or software download.

Browser Extensions

The primary means of getting your username and passwords into your web sites. They're all slightly different, but work basically the same: you click an icon, log into LastPass with your One True Password—making sure not to set your extension to remember that password—and then just go about your browsing. When you hit sites that ask for a username and password that you already know, LastPass will drop down a tiny little toolbar and ask if you want to save them. If you need a new username and password, you can have LastPass generate a random, highly secure couple, save them, and never worry about remembering them again.

Here’s LastPass’ (somewhat clinical) explanation of how their extensions work, demonstrated on Firefox:

One-Time Passwords

If you’re in a foreign land or on a sketchy Wi-Fi connection, the last thing you want to do is pass your universal LastPass password over the insecure airwaves. Luckily LastPass has a brilliant solution: Set up your account with some one-time passwords, then use them whenever you’re somewhere not entirely locked down. As soon as you log in, that password becomes invalid, and, as mentioned before, your passwords don’t fly over the open air in any case.

Bookmarklets

As we’ve previously shown, when you’re on a system where you can’t install your LastPass extension, or if you only like to occasionally fill in a form or login/password field, you can use LastPass bookmarklets to get at your stashed-away passwords. They work on nearly any browser with decent JavaScript capabilities on most any platform.

Secure Notes

Let’s say you’re looking for a universal password, PIN, and other security data database, like KeePass and its ilk. If you find LastPass convenient, you can store any data as a Secure Note, and it gets the same kind of password-protected, blindly encrypted treatment as your passwords. Helpful for those “virtual keyboard” passcodes that banks often use, telephone PIN numbers, and other non-simple security schemes.

Smartphone Apps, Portable Apps, and a Mobile Site

Small screens, tiny keys, and microscopic text fields are a reality of many smartphones. Even if your phone handles password input well, it’s hard to find a password syncing solution that meshes well with every browser and system (Mac users have 1Password, but that’s a very Mac-universe app). LastPass has dedicated apps, with free 14-day previews, for iPhone, Android, BlackBerry, Windows Mobile, Symbian, and Palm WebOS (phew). They generally offer both simple password retrieval databases and in-app browsers for jumping right into a site.

If your phone isn’t covered by an app, or you don’t want to pay the $14/year for a premium subscription, you can hit the LastPass mobile site to get at your security goods. If you’re the type to keep a USB thumb drive handy at all times, you can grab a Firefox Portable extension, or “LastPass Pocket,” from the downloads page and launch either one right off your drive.


That’s why I dig LastPass, and it’s why I’ll be quietly trying to move the other computers in my house, my family, and, not so quietly, my fellow editors onto this service. If you have other reasons you dig LastPass, or another web or desktop-based password management scheme, tell us all about it in the comments.




Tic-Tac-Toe Update

In Chapter 9 of More iPhone Development, we showed you how to add online play to program that already used GameKit to do network communication over Bluetooth. The code in that chapter is still correct, but the appearance of the online peer picker in the game always bothered me, since it was so different from that of GameKit’s peer picker:

before.png

After writing up the technique in my last blog posting, I realized that I could use the same approach to make the appearance of the online peer picker more closely match the GameKit peer picker.

I haven’t gotten it pixel perfect, and the code isn’t written in such a way that you can just drop it into another project and use it (though I plan to do that at some point), I though some of you might be interested in seeing my progress, as well as seeing how the dialog presented earlier can be used in more complex scenarios.

Here is the current state of things:

after.png

As you can see from the screenshot, there are some differences in the size and placement of the views, and the translucency of the button. Plus, the background image doesn’t dim in my version yet. But the overall appearance is much closer, and without the benefit of a side-by-side comparison, you’d be hard pressed to notice the difference. I plan on tweaking it a little, though it may be impossible to get a pixel-perfect match without using private APIs.

You can find the current version of the TicTacToe project right here. I’ll also add it to the iPhone Bits repository on Google Code when I get a chance. Be forewarned that this is still a work in progress and the code is a little sloppier than what I normally place out here. All the functionality for the new peer browser is in TicTacToeViewController rather than in its own class, where it should be.

©2008-2010 Jeff LaMarche.
iphonedevelopment.blogspot.com

Fly Out of Regional Airports to Save Money and Hassle [Airline Travel Tip]

When planning a flight most people focus on flying out of major airports, hopping from one metropolitan area to another. Plotting a course that starts in a regional airport can lead to significant savings and less hassle.

Photo by kossy.

Over at the frugality blog Wisebread they’ve put together a list of ways you can save money on airfare and travel expenses. Among them:

Use Regional Airports: Again often missed by major search engines (and even some travel agents), be sure to check out what the smaller regional airports can offer. For example, the best way to fly to Toronto from select U.S. cities is with Porter Airlines, which flies into Toronto’s regional Island Airport. From there, you’re the world’s shortest ferry ride away from the heart of downtown Toronto. Here are just some of the potential benefits of flying with regional airports:

  • You’ll save time and money on transportation to and from large airports.
  • You’ll save money on airport taxes by using regional airports in lieu of larger international ones.
  • Security lines and checkpoints are usually smaller.
  • Regional airports often cater to business travelers, so the quality of travel and service can be superior.

I started using regional airports when, upon realizing I lived almost right between Detroit Metro and the Flint Regional airports I tried out Flint. Not only was it more pleasant to fly out of Flint—parking lot to boarding can be as short as 30 minutes on a slow travel day—it was cheaper and has consistently been so.

The last time I needed to fly to New York, the short notice ticket from Detroit was $1200 and the ticket from Flint was $212. Like they highlight in the tip at Wisebread with the Toronto example, you’ll want to check out which major airline is the major one at the regional airport. Flint, for example, is part of the AirTran network and flying from Flint to their hub in Atlanta is practically as cheap as your cab fare to even get to the airport.

Check out the article at Wisebread for more tips and if you have some of your own to share we’d love to hear them in the comments.






WP Like Button Plugin by Free WordPress Templates