Skip to main content
40
results
Andrew Fletcher
First off, this isn't the only method to achieve the outcome of emptying a file. Using a symbol : is a shell built-in command that is essence equivalent to the true command and it can be used as a no-op (no operation).  It can be used as follows: # : > filename.txtOR  # true > filename.txt  My initial file was as follows: 21548342 16 Mar 20:27 code.logPost using the command  : > filename.txtThe response was  0 16 Mar 20:27...
Andrew Fletcher
Clear DNS Cache The DNS (Domain Name Service) cache on your Mac helps browsers...
Andrew Fletcher
Changing git push from passphrase?  There are several ways to tackle this...
Andrew Fletcher
  Z shell (Zsh) is a Unix shell built on top of bash (the default shell for...
Andrew Fletcher
How to apply a gradient tint over a background image? Set the background...
Andrew Fletcher
Working on formatting the date in Xcode, and you come across the situation where you need to check or test the date format.  NSDateFormatter is a great site to check your date format string.  I wanted to transform the 2019-08-15 10:34:49+1000 to Aug 15, 12:34 AM. let dateFormatter = DateFormatter() dateFormatter.dateFormat = "MMM d, h:mm a" let dateFormatted = dateFormatter.string(from: run.timestamp!)dateFormatted prints Aug 15, 12:34...
Andrew Fletcher
Adding a floating decimal point for n number of places is quite easy to achieve....
Andrew Fletcher
During the process of building the app, there are warnings about the code....
Andrew Fletcher
https://github.com/kylebrowning/waterwheel.swift After a short amount searching...
Andrew Fletcher
If you have this error, the core issue is the dyld issue. dyld dyld is a...