Tutorial: How To Make Jagged Drawn Lines Smooth In Cocos2D

I’ve mentioned a couple of nice libraries for creating drawing apps with Cocos2D such as this color picker library, and  floodfill library.

I’ve also mentioned some great Cocos2D resources from Krzysztof Zablocki on using OpenGL ES 2.0 shaders with Cocos2D v2, and a category for easily adding gesture recognizers to Cocos2d nodes.

Krzysztof has added a new tutorial demonstrating how to take jagged lines and smooth them similar to the popular iPad Paper app – the user draws the lines, and they come out nice and smooth.

Here’s an image from the tutorial illustrating this effect:

You can find the tutorial and example code on Krzysztof’s website here.

Great info if you’re looking to create any sort of app that involves drawing with Cocos2D.

Added to the Cocos2D tutorial page.

©2012 iPhone, iOS 5, iPad SDK Development Tutorial and Programming Tips. All Rights Reserved.

.

DeliciousTwitterFacebookLinkedInEmail


Apple’s additional security steps could be better

As we’ve been hearing, Apple is rolling out some “additional security” for App Store customers. When you go to purchase an app, as I just did (it was the free Pocket app, incidentally), you may be prompted to answer three security questions and provide a second email address in case your primary account is compromised. Unfortunately, this 20th century form-based method of enhanced security is just poorly done. Apple, an innovator in so many ways, can do better.

I knew it was coming but I wasn’t quite prepared for the stupidity of the questions. “What was your first car?” is a good example. This weekend I was getting an app for my 8 year-old son and had to answer this. I guess I should have said “Hot Wheels”? “Who was your first teacher?” is a question I simply couldn’t remember for me or for my son (are we talking preschool or what?). “Where was your first kiss?” — really? You mean we might have to be able to accurately type in “In the back seat of a smelly 1990’s muscle car”? Possibly on an iOS device? You’re kidding us, right Apple?

Again, while I appreciate the effort, this seems like a stopgap measure and it has been confusing quite a few customers — we have received a few confused emails asking if it was some attempt at phishing. Sigh. Apple has our emails, our account info, access to iOS in ways no other developer can access… Surely this could have been done better.

Instead, we pick three fake answers and had to write them down so we’ll remember them. Great security, not. Plus, now we have to remember whether we capitalized our answers, and we have to deal with natural typos, and of course our recovery email is already being used for our alternative Apple ID. Did I mention that all humans must now have two email addresses? Yep, that’s a thing now. Tell your kids.

I inadvertently used my @me address when I answered these questions for my son, who, at the time, only had one email account. Where do I change this? You’ll have to go to your Apple ID account page here. It baffles me that Apple would manage security this way, however. The business lately hasn’t been so much “Think Different” but “target people who are not tech-savvy at all.” Guess what? People who don’t like technology tend to have ONE email address. Probably one they set up over a decade ago! Now you’re asking them to hunt around for another service, or magically suss out that they can create one using iCloud potentially weeks or months after purchasing their iOS device.

We’ve got another layer of fail slathered over iTunes now, and the chances of our accounts being compromised haven’t necessarily been lessened. Instead, our chances of recovering our accounts after they’re compromised just got worse.

Here’s some free ideas for you, Apple. How about three or four images (like the stock images for accounts on a Mac), asking someone their favorite? Or, by using the technology of touchscreens, have someone draw a simple geometric shape like a parallelogram. There’s a microphone and camera on most iOS devices, perhaps something utilizing these technological marvels?

Are Apple’s additional security steps frustrating to you, or are you enjoying the feeling of enhanced security?

Apple’s additional security steps could be better originally appeared on TUAW – The Unofficial Apple Weblog on Mon, 23 Apr 2012 14:45:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Daily Update for April 23, 2012

It’s the TUAW Daily Update, your source for Apple news in a convenient audio format. You’ll get all the top Apple stories of the day in three to five minutes for a quick review of what’s happening in the Apple world.

You can listen to today’s Apple stories by clicking the inline player (requires Flash) or the non-Flash link below. To subscribe to the podcast for daily listening through iTunes, click here.

No Flash? Click here to listen.

Subscribe via RSS

Daily Update for April 23, 2012 originally appeared on TUAW – The Unofficial Apple Weblog on Mon, 23 Apr 2012 14:15:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

NFL’s Denver Broncos embrace the iPad

Image

The NFL Denver Broncos not only have Peyton Manning, but they’re also getting a lot of iPads. A report in the Denver Post today mentioned that the team is in the process of moving the weekly team playbooks from the traditional printed copy to a digital version on the iPad.

The team will purchase 120 top-end 64 GB iPads with Verizon Wireless 4G service every season, but expects to recoup the cost by not having to print and distribute those 500-page paper playbooks each week. The Broncos join the Baltimore Ravens and Tampa Bay Buccaneers as the only teams that have embraced tablet technology.

The iPads are running a digital playbook app called PlayerLync that gives players and coaches the capability of adding notes to video play highlights from the iPad. Those notes are saved on a server, and Broncos personnel can access that information from previous games. Even when the players and coaches aren’t using the playbook app, changes can be pushed to the app automatically.

The team is also planning to push game video to the iPads as soon as one hour after each game. The playbook can be erased remotely if the iPad is lost or stolen — that’s something that can’t be done with a hard-copy playbook. The Broncos are also counting on using the iPad for business and player operations as well, being the first NFL team to integrate all facets of operations onto a tablet.

You won’t see the iPads on the sideline this season, though. The NFL doesn’t allow them during games, although this season players and coaches can have the iPads in the locker room up to kickoff.

NFL’s Denver Broncos embrace the iPad originally appeared on TUAW – The Unofficial Apple Weblog on Mon, 23 Apr 2012 13:45:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Ex-WSJ publisher: Apple’s 30% profit sharing ebook agency model is not a conspiracy

As Apple prepares to go to trial to fight the US Department of Justice’s claims that the Cupertino company conspired to fix ebook prices with publishers, former publisher of the Wall Street Journal L. Gordon Crovitz has an interesting oped in today’s paper which he says that Apple’s 30% profit sharing “agency model” with ebook publishers does not amount to the price fixing conspiracy that the DOJ accuses the company of. It is Crovitz’s contention (as I assume Apple will also argue the same in court) that the government’s assertion that the agency model is “inherently wrong” is false. The agency model means publishers, rather than resellers, set the prices of ebooks.

Matter of fact, Crovitz says that Apple’s agency model is not only good for Apple, but good for consumers and publishers as well, insisting that instead of conspiring to fix prices, they conspired to fix a broken ebook system in which Amazon controlled almost everything:

Publishers conspired to repair an anticompetitive business model. They thought it made no sense for Amazon’s Kindle to have a 90% market share and a single loss-leader price of $9.95 for consumers. They were right. Over the past couple of years, thanks to the agency model, the Kindle’s market share has fallen to 60% thanks to competition from iPads and Barnes & Noble Nooks, and there is more variation in consumer prices, typically ranging from $5.95 to $14.95.

Of noted interested is when Crovitz relates how he met with Apple’s Eddy Cue to discuss the terms of revenue sharing for published works. Expecting a better deal than the 30% take Apple generates from apps Crovitz was a bit surprised when Cue told him, “‘I don’t think you understand. We can’t treat newspapers or magazines any differently than we treat FarmVille.” As Crovitz states: “It was a sobering reminder that traditional media brands have no preferred place in the new digital world.”

Ex-WSJ publisher: Apple’s 30% profit sharing ebook agency model is not a conspiracy originally appeared on TUAW – The Unofficial Apple Weblog on Mon, 23 Apr 2012 13:15:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Dropbox update adds public links to any file or folder

Image

Dropbox has just announced an update to its self-named service that provides new public sharing links. This update, which appears to be an end-run against the imminent launch of Google’s competing Drive app launch, makes it possible to share read-only folders with anyone — regardless of whether or not they have a Dropbox account.

The files you’re linking to no longer need to be in your Dropbox Public folder. To use the new public sharing links, you right-click a file or folder and select “Get Link.” This makes the file or folder public, using a link that is generated by Dropbox and then copied to your clipboard. You can’t make the link auto-expire; instead, you’ll need to make the file or folder private again using the Dropbox website.

This feature, which is already available in competitors like SugarSync and LogMeIn Cubby, makes Dropbox a competitor against file-sending services like YouSendIt. It’s expected that the new feature will go live today. According to Dropbox CEO Drew Houston, a photo auto-upload feature will also be debuting soon on the iPhone app.

Dropbox update adds public links to any file or folder originally appeared on TUAW – The Unofficial Apple Weblog on Mon, 23 Apr 2012 12:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Apple makes a tax deal for Prineville, Oregon data center land

We’ve heard before that Apple plans to build a data center on land it previously purchased in Oregon, but now the Associated Press reports on part of the cost. The company has reportedly agreed to pay US$150,000 per year to local governments, and has signed off on at least 35 jobs. Those jobs will be paid at a rate that’s at least 150% of the average wage in the Oregon county. Finally, according to the AP, Apple will have to invest at least $250 million into the data center building itself.

In return for all of that, Apple will be exempt on property tax payments for the next 15 years. Whether that will be worth it or not depends on exactly how much they build there, but odds are Apple’s accountants aren’t that worried. The company already paid $5.6 million for the land earlier this year, and it’s setting up plans to both build up the infrastructure of the local power company to keep the data center running, as well as a green energy site there on the spot.

Oregon is apparently a popular place for data centers like this. Google, Amazon, and Facebook all have similar sites in the surrounding area.

[via MacRumors]

Apple makes a tax deal for Prineville, Oregon data center land originally appeared on TUAW – The Unofficial Apple Weblog on Mon, 23 Apr 2012 11:45:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

The iPad as an IT professional’s tool

Image

John Welch over at Ars Technica wrote a wonderful post about using an iPad as a system administrator’s tool, noting that Apple’s tablet is “an addition, not a replacement” to the many tools that IT pros currently use to complete their daily tasks.

Welch brings up points that I discovered when I first started taking my iPad along on client visits — the size is right, the battery life is wonderful, and it’s much more handy than a laptop or an iPhone. Note-taking, for example, is much easier to accomplish on the iPad, and it’s possible to prop up the iPad for easy reading at a distance instead of squinting at a small screen. Welch notes that he’s able to easily analyze data from Cacti or Nagios with just a glance, keeping an eye on how things are doing.

With Welch’s iPad, there’s no waiting for a laptop to start up every morning. Most devices can be monitored in the aforementioned Web-based systems, he has email to catch messages about systems going down, and once a problem is found, he can “get a lot done over SSH.” Welch uses Prompt (US$7.99) as his SSH client of choice, perfect for logging into Mac or Linux servers and desktop machines.

For other sysadmin tasks, Welch has some concerns. There’s no iPad analogue to Apple Remote Desktop, for example, although Windows network admins have a wonderful tool available in WinAdmin ($7.99). Apple hasn’t released any management tools for Mac OS X Server that run on the iPad, but there are some limited third-party tools available such as Server Admin Remote ($9.99).

Still, there’s a good-sized market for sysadmin tools for the iPad, and if Apple doesn’t step up to the plate to deliver them, Welch hopes that third-party developers will. If you’re a system administrator who uses an iPad regularly at work, let us know in the comments what tools you use or would like to see.

The iPad as an IT professional’s tool originally appeared on TUAW – The Unofficial Apple Weblog on Mon, 23 Apr 2012 11:30:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Time Warner’s TWC TV app updated to include sports channels

Image

On Friday, Time Warner Cable added a number of national and regional sports networks to the free TWC TV app for iOS and the TWCTV.com Web portal. The new capability lets Time Warner Cable video customers at the Expanded Basic level or higher to watch those networks live from iOS devices or computers inside the home.

While the networks vary based on the region in which the customers are located, they include ESPN, ESPN2, TNT, TBS, MLB Network, NBA TV, NHL Network, and various Fox Sports channels. Time Warner Cable notes that live TV is available to customers with a broadband connection on either TWC or Road Runner, or those with a Time Warner Cable-provided video-only cable modem.

Time Warner’s TWC TV app updated to include sports channels originally appeared on TUAW – The Unofficial Apple Weblog on Mon, 23 Apr 2012 11:15:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Daily iPad App: Total War Battles brings big-time RTS to iOS

I first saw Total War Battles (now out on the iPad and iPhone) at GDC earlier this year, and walked away excited about its potential. The Creative Assembly has been making phenomenal Total War games for the PC for years, with deep, intelligent war strategy across several time periods. Now Creative Assembly faces the challenge of bringing an involved, deep strategy game meant for a mouse and keyboard to iOS.

Their answer is Total War Battles. It’s been streamlined a lot, but all of the elements of real-time strategy combat are still there. You build bases, hire units, and lead them forward onto a (very compressed, hex-based) battlefield. What Creative Assembly actually came up with is somewhat similar to the popular Legendary Wars, but I think it’s a bit cleaner and nicer than that one. That’s not surprising, given how experienced Creative Assembly already was at making great games.

Aside from the hex battle maps, there’s a ten-hour long, story-based campaign to play through, and as Creative Assembly told me at GDC, the basic storyline is fairly easy, meant for more casual players. More difficult maps are available to those who want a challenge. Total War Battles also offers local multiplayer. You can face off against an opponent 1v1 on the same iPad screen. It’s not quite as deep as the core game, but it is kind of a wacky take on strategy that’s worth a try.

Total War Battles is US$6.99, and despite its quality, I’m pretty sure that Creative Assembly won’t get nearly the audience they’re hoping to at that price. Still, it’s a great game — if you like real-time strategy games, it’s a must-play, and if you play PC games at all, TWB is worth a look just to see the choices Creative Assembly made in translating its work to the iOS screen. And if all else fails, just wait — the next time Sega runs a big sale, this will likely be a little cheaper.

Daily iPad App: Total War Battles brings big-time RTS to iOS originally appeared on TUAW – The Unofficial Apple Weblog on Mon, 23 Apr 2012 11:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

RedSn0w updated with Corona A5 jailbreak, more

Over the weekend, the iPhone Dev Team released two new versions of its RedSn0w jailbreak tool that has several features for unlockers, iPhone 4S owners and iPad 2 owners. Version 0.9.10b7 adds support for the corona-A5 jailbreak for the iPhone 4S and iPad 2 devices still at 5.0.1. It also lets you fetch, verify and use your SHSH blobs from Cydia as well as reinstall your jailbreak if you accidentally uninstalled the untethered version.

Version 0.9.10b8 includes the above features and is helpful for those unlocking their phone using the SAM unlock. RedSn0w 10b8 lets you backup arbitrary directories or files from your device into a zip file on your Mac or PC and includes your carrier activation records by default.

[Via Engadget and Jailbreak Untethered]

RedSn0w updated with Corona A5 jailbreak, more originally appeared on TUAW – The Unofficial Apple Weblog on Mon, 23 Apr 2012 10:45:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Apple sued over all touch-based products

FlatWorld, a Pennsylvania company, is suing Apple for patent infringement in California’s Northern District Court in San Francisco, according to a report in Patently Apple. The company owns Patent RE43,318 which describes “a testing tool with a touch screen programmed to allow children to directly manipulate or move objects on the screen, and ‘hide’ them behind other objects.”

The suit lists Apple’s entire lineup of touch-related devices including the iPod, iPad, iPhone, and sixth generation iPod nano as infringing products. It also lists the MacBook Pro, MacBook Air, the Magic Mouse in combination with any Mac computer running OS X Snow Leopard v10.6.1 and the Magic Trackpad in combination with any Mac computer running OS X Snow Leopard v.10.6.4 or later.

Apple sued over all touch-based products originally appeared on TUAW – The Unofficial Apple Weblog on Mon, 23 Apr 2012 10:30:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

iBorg: I have become them

The other evening, I cracked open a nearly 600-page book by Scott Sigler. (Summary: it was pretty bad, cannot recommend it, but that has nothing to do with this post.) And as I began to read, I soon realized that while the traditional print novel has not changed much in the last few decades, I as a reader had.

For one thing, there was no built-in light source in the book. For another, I could not tap words to define them or adjust the font size presentation to my precise mood. In fact, the entire book for all its narrative value had about as much interactive GUI appeal as, forgive me, a large pile of dead wood.

Worse was the fact that I could not read the thing after switching off the bedroom lighs. It suddenly hit me that, although I brought books along with me to various appointments like the dentist, the DMV, and so forth, it had been quite a while since I curled up to sleep with an actual print unit.

The real emotions hit me a few minutes later with “Are you going to turn off the lights yet? I have to get to sleep.”

A simple request, and yet this antiquated technological unit provided no lights-off compatibility for reading (let alone dimmed presentation, for exactly the right balance of light-source vs annoyed spouse.)

And the most heinous offense? When the book grew dreary (which it did with tedious rapidity), it offered no other reading selections, whether through my synced library, through drop box, or through an onboard store. The only book there was to read was the single stupendously heavy one already sitting in my hands.

It was then I realized: I have been assimilated. I am become Borg. I have betrayed the trust of my fellow ex-librarians. (Although shelf-reading, book dusting, and card sorting are skills I hope never to re-acquire. Ever.)

The next day, I read a rather fun $0.99 ebook on my iPad’s Kindle app. It was good enough that I decided to continue to the next one. It was in my library within five minutes and another $0.99 — no six weeks wait on the hold list or a bike ride out to pick it up.

How did things change so drastically for me over the last couple of years without ever noticing it was happening?

I’ve lost the dead-tree itch. I am e-woman.

iBorg: I have become them originally appeared on TUAW – The Unofficial Apple Weblog on Mon, 23 Apr 2012 10:15:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

iPhones smuggled into China in beer bottles

It’s pretty easy to understand most of this story. Someone in Hong Kong wanted to get a bunch of iPhones into Shenzen, China, so they decided to smuggle them across the border. That’s illegal, but it makes sense. China charges heavy taxes on importing goods like these, and whoever ran this scheme wanted to avoid the tax.

What doesn’t make sense, however, is how they did it. The culprit cut open empty beer bottles, placing iPhones inside three at a time, and then resealed the bottles with tape. You can see the full Chinese news report below. Over 200 iPhones were being smuggled in beer bottles.

I guess the best explanation is that people often bring empty bottles into China for recycling, and the hope was that these would just get lost in the mix. But it’s definitely an unusual scheme.

[via OBP]

iPhones smuggled into China in beer bottles originally appeared on TUAW – The Unofficial Apple Weblog on Mon, 23 Apr 2012 10:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Deepworld launches Kickstarter project to help fund a Mac beta

When I first met the guys making Deepworld, a 2D sandbox-style building game similar to Minecraft, at GDC in March, I told them that the project would be bigger than they thought. They do have extensive experience developing software and servers, but running a game this big requires a significant investment. It looks like they now agree. The game has spawned a Kickstarter project to try and raise some early funds for servers and development.

The group is offering several prizes to supporters, including your own personal servers and worlds, art books and other swag, plus the possibility of getting your own items, name, or even pictures in the game itself. The goal is US$20,000, overall, and as of this writing, the guys have raised about $4,000. They say they want to take the project full-time, and this money will help them do that.

I definitely wish them well. Deepworld looks good, and as I said when I first saw it, the Mac (and iOS) would benefit from a game like this.

Deepworld launches Kickstarter project to help fund a Mac beta originally appeared on TUAW – The Unofficial Apple Weblog on Mon, 23 Apr 2012 09:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments