“BLOKK is a font for quick mock-ups and wireframing for clients who do not understand latin.”
I’ve actually wanted something like this for a while.
-e
Thanks to this StackOverflow thread, I was able to conceal UIWebView’s intial white, “blank page” look while it was loading.
iphone uiwebview inital white view – Stack Overflow
One thing you can try is put a UIView with the color you want and position it above the UIWebView with the same width and height. Then in the webViewDidFinishLoad method, set the UIView to hidden.
Hope it proves useful to someone else.
-e
This was very helpful to me recently…
Iterating through NSDictionary
Iteration through NSDictionary could be achieved at least in two ways: using NSArray with [NSDictionary allKeys] or NSEnumerator.
Method 1:
NSArray *keyArray = [bigUglyDictionary allKeys]; int count = [keyArray count]; for (int i=0; i < count; i++) { NSDictionary *tmp = [bigUglyDictionary objectForKey:[ keyArray objectAtIndex:i]]; }Method 2:
NSEnumerator *enumerator = [bigUglyDictionary keyEnumerator]; id key; while ((key = [enumerator nextObject])) { NSDictionary *tmp = [bigUglyDictionary objectForKey:key]; }Second way is a little bit faster, so if you work with huge dictionaries and have no need of array with their keys – use it.
Hope it helps someone else too!
Here’s a really easy way to generate a list of files using TextWrangler:
I would imagine this would work in BBEdit as well, but I have not tested it.
Source: See Post #17 here: Mac Rumors – How to print a list of files in a folder
If you need to stay with Xcode 4.3 and you’re not ready to make the 4.5 jump, be very careful when upgrading your devices to iOS 6 (i.e. consider not doing it).
Yesterday, I upgraded my iPhone 4 to iOS 6 and now my current version of Xcode (4.3.3) cannot deploy to it.
I completely forgot that Xcode has this limitation. It’s similar to a situation that I encountered a while back when I upgraded my devices to iOS 5, but that was worse because at that time I couldn’t upgrade to Xcode 4.3 because my MacBook Pro had a Core Duo processor and could not be upgraded to Lion (Xcode 4.3 required Lion). Unfortunately, the development team I’m working with is sticking with Xcode 4.3 for the time being so that means my iPhone can’t be used for testing now.
This is really annoying.
This is one of the many git functions I always have to look up, and it always makes me insane at its non-intuitiveness. However, as it is a necessary evil, I thought it useful to capture it here.
Believe it or not, you have to use git push to delete. You heard that right. Stop gawking. Jaw closed.
OK so here’s how you do it:
git push origin :[name of branch]
As a concrete, though perhaps not entirely realistic example:
git push origin :my-awesome-feature
Thanks to the following blogs for their constant assistance in helping me remember (or not remember) this function:
git ready : push and delete remote branches
Yuji Tomita : Git — Delete Remote Branch
Thanks guys!
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:
Hope that helps.