The Tsonny Blog

Posts with tag 'Apple'

XCode SVN madness June 10, 2009

Apple's Xcode is a very nice source code editor, in fact, I think it's editing and navigation capabilities are better than all other tools I've seen so far.

Unfortunately, the SVN support is not so terribly good. There are some small catches you should consider. It took me days to figure them all out and you should save your time to reinvent the wheel. So there we go:

Make sure you use the latest XCode

You should at least have version 3.1.x where SVN support was improved considerably. Also notice that Apple's public XCode/SVN documentation is for an older version, but apart from the screenshots should be correct.

Move or ignore the build directory

The XCode build directory will cause a lot of headache with the built-in SVN. You should either:

  • Remove the build directory entirely if you use an external build method anyway (GNU make).
  • Change the project settings to use a build directory outside of the SVN managed working copy
  • Remove the build directory from SVN (or don't add it in the first place) and ignore it subsequently using svn propset svn:ignore build . in the folder containing the build directory.

Integration of old codes into XCode and SVN

If you have existing code that you want to manage through XCode and SVN, you will need to create an XCode project for that code first, and then select the appropriate SCM. There's a catch, though:

XCode will only manage files through SVN that are in the same folder (or subfolders) as the project's .xcodeproj file. That is problematic since usually, when you create a project, Xcode creates a directory and puts the xcodeproj file, the build directory and all other source files there. When you add existing files as references (ie. without copying them into the project folder), XCode will not manage them through SVN, even if you manually commit and checkout again.

The workaround is as follows:

  1. Manually import the existing code without any XCode-related files/folders into SVN
  2. Checkout into your working directory
  3. Create a new XCode project in the working directory
  4. Move everything within the newly created project folder into the top level of the working directory
  5. Open the project in XCode and add all existing code to it.
  6. Manually add the Xcode project file and folders to SVN (just add everything which is not in the repo yet).
  7. For other tricks on XCode and SVN, be sure to also check http://www.jms1.net/iPhone/xcode-svn.shtml

MP3 is dead March 5, 2007

MP3 is dead

Some days ago, I was looking for an album by Hilltop Hoods. Unfortunately, iTunes Switzerland did not sell it (this alone would be material enough for another blog post).

Given these circumstances, I asked Google for help searching for "buy MP3" and "legal MP3 downloads", since I understand that artistic work has real value that should be paid for. Besides, searching endlessly through p2p networks together with the hassle of slow download rates just isn't worth the few bucks of the legal download.

Sadly, though, of the many results Google returned, not a single legal one offered MP3 files! They proudly call themselves mp3.com or claim to be "the largest MP3 music store" but in fact they just lie. And they lie insolently, since they sell amputated WMA crap. For the kids: WMA is Microsoft's proprietary answer to MP3, a format that comes with DRM restrictions that make listening to your music a real pain. As an example, it is not unusual that you can transfer a song file only three times to a portable music player.

But you're right, if one buys it, one agrees to these terms. Any lawyer will proudly demonstrate his plethora of expertise by explaining to you that such crippledness is proper. It's legal to impose restrictions that make a product useless as long as you inform the customer in advance. We all learned that law follows logic. This must be so complicated that there's not much room left for common sense.
Hence, it boils down to a simple fact: If you paid for WMA and feel pissed off later, it's your fault and, honestly, you're a poor idiot anyway.

So far, so good. Now comes the inconvenient truth: You thought that your WMA song will play on a device that officially supports WMA? Think again! You need new hardware devices that carry the Microsoft playforsure logo! You have an generously great choice of about 150 devices to choose from (as of this writing). 'In total', that means, every hardware piece, be it portable music player, cell phone, PDA etc. Isn't that great?

So, you want to listen to your WMAs with your cell phone? Just buy one of the 10 devices that support it. Given that WMA DRM in principles allows the shop to entirely forbid the transfer to portable devices, even a compatible device is not a guarantee. If you found a working match of WMA file and cell phone, you can call yourself a member of the very exquisite club of legal mobile music listeners! And guess what, as soon as too many people have bought into the very same club, Microsoft will introduce a new format.

Self-evidently, you'll need to get new hardware devices, too. At the same time, you must not forget to buy all your WMA music again. Remember, you most likely had two ineffective file transfers to your old portable player to find out that it really doesn't work, and one transfer to your then new playforsure device. Makes three transfers in total, and the DRM restrictions tak effect.

And what's the point of it? The revolution eats its children. The easy and modern, online distribution of digital music has turned into a customers nightmare. Whereas every part of the supply chain profits (from Microsoft via hardware manufacturers to the music companies), the consumer is blatantly cheated on. Buying a CD has become the surest way to listen to your music from different devices. But maybe that is actually the secret plan of the music industry? Back to the last century by enforcing DRM? Meanwhile, Microsoft excels once more in prostituting itself for its own short term profit and is on the best way to dominate the hardware business on an even wider basis of devices.

Oh, and, BTW, Apple is not friendlier either with their M4P protected iTunes format...

Where is my Mac?! May 26, 2006

Where is my Mac?!

Dear Apple. To the left you can see what I ordered. To the right what I got: nothing. For three (in letters: t-h-r-e-e) weeks now I'm desperately waiting for my new machine to arrive - no luck so far.

Would you please be so kind to deliver before the hardware is so outdated that I immediately need to buy another one? Or, is that Apple's new marketing strategy that I just uncovered? Anyway, I'd really appreciate you guys could hurry up a bit, okay? It's not that I'd die without your products, but a month without a sign of life is just not the way to treat good customers.

What happens elsewhere..

Digging the web for additional information regarding the whereabouts of my Mac, I stumbled over the tracking page apetracker, a site dedicated to track those lost Mac machines. Unfortunately, my machine was not even registred in the tracking system!