Custom Search

Saturday, October 17, 2009

"Computing size". Incompatible profile file name. Expected format is {timestamp}.profile but was ._124873

I’ve run into this problem twice in the last couple of days while downloading and installing new versions of Eclipse and trying out different packages for PHP editing (PDT and Aptana Studio). First time I googled around I couldn’t find a solution and so had to figure it out myself. Second time I thought that maybe I should make a note of my solution as other people might run into it as well.

The problem shows itself with the following error message:

An internal error occurred during: "Computing size".
Incompatible profile file name. Expected format is {timestamp}.profile but was ._1248736262197.profile.
This happens when trying to install a new plugin through the “Check for updates” or “Install New Software” dialog. The problem is because of the hidden ._* files which are created by OS X inside the Eclipse directory. The solution is pretty easy – open up a terminal and:

cd /path/to/your/eclipse/folder
find . -iname '._*' -exec rm -rf {} \;
WARNING – running commands like this on your computer can cause problems. I have run exactly the command above on my machine with no problem but if you manage to break your computer following the above instructions then I take no responsibility! That said, as long as you correctly cd into the Eclipse directory and type/ copy the command correctly then nothing should go wrong!

Hope that helps someone else who runs into the problem!

Sunday, October 11, 2009

How to Add Unit Test in XCode

This web page describes how to add a Unit Test with XCode in a Mac environment.

Article

Wednesday, August 19, 2009

Cocoa Programming Tips: How to Make an Icon Bounce in the Apple Leopard's Dock section



This code will make the application's icon bounce in the Apple Leopard's Dock section.
This is made to request the user attention to provide information for the application.

if(![[NSApplication sharedApplication] isActive])
[[NSApplication sharedApplication]requestUserAttention:NSInformationalRequest];

Saturday, May 30, 2009

Backing Up to the Clouds Or Apple Time Machine secrets: rsync

So you bought a new Tera and want to mimic the Apple Time machine but don't have Mac OSX.

Linux Journal have published a great article on this subject. This article explains rsync tool.
See the Link

Friday, May 22, 2009

How to Replace __MyCompagnyName__ in new File templates in Xcode with a Command line

Write this command in a terminal:

defaults write com.apple.Xcode.PBXCustomTemplateMacroDefinitions ' { "ORGANIZATIONNAME" = "Put the Name here"; } '

Tuesday, May 19, 2009

GUI for Valgrind



Callgrind uses runtime instrumentation via the Valgrind framework for its cache simulation and call-graph generation. This way, even shared libraries and dynamically opened plugins can be profiled. The data files generated by Callgrind can be loaded into KCachegrind for browsing the performance results. But there is also a command line tool in the package to get ASCII reports from data files without the need to use KCachegrind.

Link

Friday, April 10, 2009

How to Backup Data in MySQL

To make a backup:

* mysqldump --user=username --password=password databasename >path/backupfilename

After the Software Wars by Keith Curtis



Given the technology that's already available, we should have cars that drive us around, in absolute safety, while we lounge in the back and sip champagne. This book explains how we can build better software and all get our own high-tech chauffeur.

NEW YORK TIMES BOOK REVIEW:
"Keith Curtis, an 11-year veteran of Microsoft, takes a programmer’s approach in “Software Wars,” attempting to systematically build a case that free software can help pave the way for a 21st-century renaissance in many fields ranging from artificial intelligence (cars that drive themselves) to the human journey into space (space elevators). For Mr. Curtis, free software is all about leveraging our collective intelligence."

Download Free Pdf Version

The Free PDF Edition of Ubuntu Pocket Guide and Reference

The PDF Edition of Ubuntu Pocket Guide and Reference is available entirely free of charge. It is practically identical to the Print Edition. You can get it by clicking one of the links below. Over half a million people worldwide already have!

You can share the PDF file with people you know, and even upload it to file sharing networks. You may NOT sell the PDF! Click here for more information, or check out the FAQs.

The information in Ubuntu Pocket Guide and Reference is distributed on an “as is” basis without warranty. Although every precaution has been taken in the preparation of Ubuntu Pocket Guide and Reference, neither the author nor publishers shall have any liability to any person or entity with respect to any loss or damage caused or alleged to be caused directly or indirectly by the information contained in Ubuntu Pocket Guide and Reference.

Link