How to Fix xcrun: error: unable to find utility "instruments", not a developer tool or in PATH
I just got a new machine and downloaded XCode. I used git to clone my ReactNative project from Github. I have everything ready to go. But when I run `react-native run-ios` I see
xcrun: error: unable to find utility "instruments", not a developer tool ...
Written by Sean Behan on 03/05/2017
Postlearn Job Board
Postlearn is a job board focused on delivering quality jobs listings to people in education.
An affiliate program is available to bloggers and site owners in the edu space. Bloggers who participate receive a percentage of referrer sales. A widget display...
Written by Sean Behan on 06/17/2012
How to Find the Directory Locations Your XCode App Uses
You can add this snippet to your application, say for instance in your `viewDidLoad` function, that will print to the XCode console, the location of your app while it's being developed.
// prints the location of asset my-added-file.txt that you've ad...
Written by Sean Behan on 06/06/2018
How To Write Your Own Time Comparison Function in Ruby Like time_ago_in_words Without Rails
# time_ago_in_words(Time.now, 1.day.ago) # => 1 day
# time_ago_in_words(Time.now, 1.hour.ago) # => 1 hour
def time_ago_in_words(t1, t2)
s = t1.to_i - t2.to_i # distance between t1 and t2 in seconds
resolution = if s > 29030400 # seco...
Written by Sean Behan on 10/17/2013
Protect a Directory with Apache, .htaccess and httpasswd
Apache comes with a command line utility called "htpasswd". This utility will generate a username and password that you can use to authenticate against using a .htaccess file. Just run the utility like so:
htpasswd -c /path/to/your/password/directory/a...
Written by Sean Behan on 06/17/2012