Needed to safely generate a GUID in iOS using ARC, which, unfortunately, requires the use of Core Foundation classes, so this Stack Overflow post was very helpful: Generate a UUID string with ARC enabled CFUUIDRef uuid = CFUUIDCreate(NULL); NSString *uuidStr = (__bridge_transfer NSString *)CFUUIDCreateString(NULL, uuid); CFRelease(uuid);
I found this useful recently when receiving a batch of code from a client who still uses Subversion… How to delete all .svn folders in Linux / Mac? – Techie Corner To delete all .svn folder in Linux just follow the steps below: Start Terminal Change your current directory to your project folder (ex: /Users/me/Sites/project_a) Enter the following into Terminal: find ./ -name “.svn” | xargs rm -Rf That should take care of it. In my tests I found one or two that still remained but this took most of the pain out of it.
Recently I had a strange thing happen with a new project hosted by Github, by which every transaction with the server requried a username and password. Thankfully, this Stackoverflow post helped me resolve it. If Github is constantly asking for your credentials when you do a clone, pull, or push, and you know you have your SSH key already in your Github profile, check to see if you set up your local repository with the HTTPS version of the repository when you cloned it instead of the SSH version. If you can remember. In either case, do the following: Blow away (or rename safely) your current repository directory. Go to the Github page of your project. Next to the text box[…]
I’ve been using Mac OS X Mail.app for some years now and have always wanted the ability to resend an email message after I had already sent it (e.g. resend it to another recipient, instead of forwarding). I always thought this was a missing feature of Mail. Turns out it’s not. It has been there all along in various forms, and here’s how you do it: How to Resend a Message in Mac OS X Mail – About Email Resend a Message in Mac OS X Mail To send a message again in Mac OS X Mail: Highlight the message in the Sent folder (or any other folder you have moved it to). Select Message | Send Again from the[…]