Archive for the 'Code / Computers' Category

iOS Breakpoints

Monday, July 19th, 2010

When you check in your project make sure to also check in all individual user file. Inside the project you will find

(projectname).xcodeproj

inside this folder you will find a number of files with your username in them. for example:

(username).mode1v3
(username).pbxuser

The breakpoints for a project are stored int these files. If you do not check these in, person who comes after you will have to set their own break points.

—-

Michael set some and they were not working for me when I checked the project out. I quit XCode and then opened the / Applications / Utilities / Terminal window and cd’ed over to the project directory. I then mv’ed his files into mine and relaunched XCode.

iPad video encoding specs

Thursday, May 6th, 2010

Jules sent me a link on how to compress video for the iPad. I am not against folks trying to make money on their knowledge, but it struck me as a bit cheeky to charge for advice that is common and can be placed in two paragraphs. What follows are the “free” paragraphs I think they should have posted ;)

—-

Squared 5 offers a free tool to convert video which works on both the Mac and PC. Choose the Apple TV 1280 x 720 preset. These setting will allow all converted video to play on the iPad. However, the iPad (http://www.apple.com/ipad/specs/) has a screen that is 1024 x 768. This means that the widest a video can be shown is 1024. As such, here are the correct setting for the standard video frames:

2.35:1 = 1024 x 436
1.85:1 = 1024 x 554
16:9 (1.78:1) = 1024 x 576
4:3 (1.33:1) = 1024 x 768

That is just the actual “frame” of the video. Another piece to control is the “Bits Per Second” (ie: not just how wide the thing is but how many bits are compressed in each second of video). The Apple TV (http://www.apple.com/appletv/specs.html) can process up to 5Mbps. Both the iPad and the iPhone (http://www.apple.com/iphone/specs.html) can handle up to 2.5Mbps. As such you should set the data rate to 2.5Mbps.

Change your password… Please!

Thursday, April 1st, 2010

I don’t normally get all worked up over security issues. But this article by LifeHacker is an easy read and makes a lot of sense.

Change your password. Honestly. It is easy to do. Please be safe.

Where the iPad will take us

Thursday, March 18th, 2010

Viv Motion Magazine Demo

[A friend of mine], you can dismiss this project if you wish, but I believe this is only possible because of the closed nature of Apple’s offering. Apple is ahead right now because they have released a fabü iPhone OS SDK. I have no doubt others will try to catch up. But the point is that right now, today, you can build this stuff and release it on the iPhone (iPad on April 3).

If enough people complain and if enough developers release their code Open Source, Apple will have no option but to offer something similar to Android’s Markeplace where folks can add non-Apple-Approved native apps to their devices. I crave the ability to use the frameworks Apple has created for the iPhone OS to create Open Source apps that run natively on the iPhone/iPad. That would be my dream. That is what I am looking for. That is what I am working for.

I believe it is coming.

You can hang around and wait for it. Or you can join developers like YVOD and help forge the path.

Tim Bray is barking up the wrong tree

Thursday, March 18th, 2010

[A friend of mine] writes: Tim Bray is now a paid cheerleader for google/android so you may take his comments as just marketing speak. I found them interesting though. Apple’s approach to software on the ipad is something I find preposterous. I arrived at that conclusion on my own, but it’s now interesting to see that there are others who are similarly leery of a rather full fledged computer which so brazenly serves the needs of its maker over those of its owner.

Hmm…

David, it seems more and more to me like you are not really thinking about these issues. It is harder and harder for me to have an open discussion with you because, well, you are acting more like a religious fanatic than a studious researcher trying to figure out the best way to get something done.

John Gruber writes: What’s interesting here is that the iPhone is a better system for HTML5 mobile apps than Android. For all the attention Apple is getting regarding the tight control it maintains over native iPhone apps, I think what they’ve done to enable native-like mobile web apps — with no control — is mostly ignored.

Look, I can not defend bad decisions by Apple. I get that they are making it difficult for Open Source folks to publish their NATIVE apps on the iPhone. But you have to be very clear about what Apple is limiting. It is ONLY limiting what is sold in the App Store that Apple runs. If you want to sell things through Apple’s store, you have to follow Apple’s rules. I get that you do not like this and see few benefits. I do not like it but see loads of good things coming out of this decision. You and I need to agree to disagree.

But…

Apple is the first company to pass the ACID2 test for its browser. It has pushed HTML5 compliance long before Google and M$ (and most people feel that they do a better job at it). Their contributions to WedKit are stellar and, guess what, now (because of Apple!!), non-M$ mobile devices ALL USE WebKit-based browsers. Nokia has taken Apple’s code and ported it to their Symbian browsers! Hell, Chrome uses WebKit.

Tim Bray is barking up the wrong tree. If he thinks web apps are the future, then he should have no issue with anything Apple is doing. Just the opposite, he should be singing Apple’s praises because it is Apple who pushed WebKit forward in a way that made it the best engine for mobile browsers. It was only after Apple did its magic that the JavaScript engine really took off (SquirrelFish is the fastest/best in the world). While not complete, the CSS implementation is far better than any mobile alternative. I simply LOVE the way the iPhone renders CSS and wish IE/Firefox on M$ PC’s were as good.

For further reading, check out iui which was orginaly written by the brilliant Joe Hewitt. (PS: Joe has a lot to say on this subject. I agree with almost all of it.

Tim Bray writes: The iPhone vision of the mobile Internet’s future omits controversy, sex, and freedom, but includes strict limits on who can know what and who can say what.

If you want to know, it is bullsh** like this that ends my interest in having a real discussion.

This link has a much more balanced take on the whole thing. I suggest you read it.

Look, I am not saying you are wrong. I am simply saying that if you want to make a case against Apple, you need to stick to the facts and look clearly at the trade-offs. I plan to release all of YVOD’s iPhone/iPad work Open Source because I believe Open Source is the future. Apple allows me to legally do this.

Nearest Subway Augmented Reality iPhone 3GS App

Friday, March 12th, 2010

Nearest Subway by acrossair.

Yeah!!! New augmented reality apps are coming to the iPhone. This bodes well for the future =)

Buy the iPad

Friday, March 12th, 2010

Am seriously thinking about pre-ordering the iPad. Is that a good idea or should I wait a while? Also not sure which model would be best. I really do not want to pay for the 3G network access as I’m hoping that universal wi-fi will soon be the norm around here. Appreciate your input.
Thanks,
Becky

We just purchased the 64GB Wi-Fi only iPad.

If it had a USB port or two we could hang additional storage off the side. Unfortunately, because you can’t, you are limited to using the iPad’s internal storage. This is why we bought the largest we could get our hands on at this time.

$500 is a fine price to put out there. $950 with AppleCare, tax and shipping (free right now) is not what folks would generally call a ‘bargain’. I decided to purchase the most expensive one because I really want the thing and think it will change our lives for the better. 16 GB and 64 GB thumb drives can be had for $15 and $250, respectively. As such, charging a $200 premium for the 64 GB over the 16 GB model is not so unreasonable. It does kinda hurt knowing they will be selling 256 GB iPads for $500 in a year. Whatever ;)

Apple keeps amping it up. For a while I was just happy that they were opening stores, pushing out cool products and improving their OS. Then they blew my mind with the iPhone. It truly is the best technological purchase of my life. I belive the iPad is going to be even better. For me, getting it the first day and knowing that I am part of this rich history is worth every penny.

Yes, I think you should get a WiFi only version. Yes, I think you should pre-order. I think you will be fine with the 16 GB model. You will be happy with the 32. I do not think you will ever regret it if you purchase the 64 GB one.

Reset MobileMe Sync Data

Sunday, February 28th, 2010

Ran into an issue where I could not reset the sync data on my 10.6 Mac. After pouring through a number of help documents, I came across one that worked. I am linking to it and two additional ones I found helpful.

1) Mac OS X v10.5, v10.6: Resetting the SyncServices folder – http://support.apple.com/kb/TS1627?viewlocale=en_US

2) Sync Services: Advanced troubleshooting for contact and calendar syncing – http://support.apple.com/kb/TS2481

3) MobileMe: How to reset sync data – http://support.apple.com/kb/HT1497

While the link below is not an Apple Support document, it did lead me to the answer.

4) How to Manually Delete all Sync Data from MobileMe’s Servers – http://robulack.wordpress.com/2009/04/01/how-to-manually-delete-all-sync-data-from-mobilemes-servers/

CVS – iPhone XCode

Tuesday, September 29th, 2009

1) Create a new project
2) Add the following two lines of code in the header for the main AppDelegate.h and AppDelegate.m

// $Header$
// $Log$

3) Save the project
4) In the top XCode menu go to SCM/Repositories
5) Import the project folder
6) In Xcode, close the project

This is the important step!!!
7) In the Finder, delete the project folder (there is a bug that causes errors if you do not do this!)

8) Back in SCM/Repositories, Checkout the project folder (place it were you just deleted the old folder) and then open it
9) SCM/Configure SCM For This Project – At the very bottom – SCM Repository: MP1
10) SCM/Configure SCM For This Project – At the very bottom -Rebuild Code Sense Index

That’s it! Now all changes to the project will be tracked. We have not figured out how to track .xib changes yet.

Right click the individual filename or the entire project when you want to “Commit Changes”.

PS: Please make sure to write lots of comments in your code as they really do help =)

Create A Custom iPhone Home Screen Icon

Tuesday, September 29th, 2009

The iPhone allows you to easily save any website URL to your home screen as an icon. With a simply finger click you can launch Safari and see your web page. However, the default icon for this is a screenshot of the webpage. Well, for some of us, this is not quite enough. Wouldn’t it be nice to be able to have your logo on your homescreen? These instructions show you how and are as clear as a bell.

Thank you Guillermo Esteves

—-

According to Apple’s Human Interface Guidelines, you should create an image in PNG format that “measures 57 x 57 pixels, with 90 degree corners (if the image measures other than this size, iPhone 1.1.3 scales it.)”

Save this image in your root document folder as apple-touch-icon.png if you want the iPhone to add the default visual effects (rounded corner, drop shadow and gloss), or as apple-touch-icon-precomposed.png if you don’t want it to add any visual effects. This will enable the icon for the entire website.

If you want to add an icon to a specific page, or use a custom file name, use this code: