objcCurrency string from a number (double)Converting a decimal number to a currency string is simple with NSNumberFormatter.
gitCheckout a file (just one file) from a specific commit (revision)git checkout 6c1d1862 AppConsumer/Curbsidr.xcodeproj/project.pbxproj
ios, ios-8Supporting iPhone 6 & iPhone 6 plus resolutionsBy default all the apps (even compiled with Xcode 6 and iOS 8) will run in a scaled mode on both iPhone 6 & iPhone 6 plus.
osx, yosemiteUpdating Homebrew after OS upgradeUnfortunatrly, Homebrew breaks after an upgrade to OS X Yosemite.
ghostUpgrading Ghost to the latest versionKeeping Ghost installation up-to-date is important not only because of new features added but also because of all the security updates.
osx, yosemiteThunderbolt Display firmware Update 1.2The update just failed every time I tried to install.
python, apnSend Apple Push Notifications with Python 2.7Yosemite has Python 2.7.6 built in but for many reasons (one of them is sudo) we prefer a clean up-to-date install.
ios, xcodeSet application name depending on the build typeHaving a different application name for release and development builds.
ios, ios-8, objcfileExistsAtPath always returns NO (false)Generating the path dynamically with NSSearchPathForDirectoriesInDomains.
ios, objcNSURL URLWithString vs fileURLWithPathA frequent mistake when playing a local video using [AVAudioPlayer initWithContentsOfURL:url] is to use URLWithString instead of fileURLWithPath.
rails, rvm, nginx, ubuntu, passenger, rorInstalling Nginx with Phusion Passenger, RVM, and Ruby on Rails on UbuntuDigital Ocean has a great tutorial on how to install Nginx with Phusion Passenger, RVM, and RoR on Ubuntu.
ror, s3, carrier-waveMinimum rights policy for S3 that works with CarrierWaveYAmazon S3 does not like dots in bucket names.
rails, nginx, passenger, phusionUsing environment variables under NginxRails is heavily using environment variables in its configuration files.
ubuntu, ror, mysqlmysql2 gem error after upgrading MySQL databaseAfter upgrading to MySQL 5.6 from 5.5 we started getting an error: Incorrect MySQL client library version!
itunesCutting off songs earlyWe all understand the frustration users experience when software malfunctions...
android-studio, android, library, volley, networkingAdding an external libraryWe needed to add Volley networking library into our project.
ubuntu, python, pippip IncompleteRead error after Ubuntu upgradeAfter upgrading ubuntu pip started throwing the following error...
nginx, ssl, godaddyRenewing GoDaddy SSL certificateRenewing a certificate is not fun so it is better to use Let's Encrypt but if that is not an option...
nginxLocation block and rewriting URLsURI - the part of URL that comes after the domain (or IP/Port) name.
xcode, auto-layout, swiftPositioning views relative to one another with auto-layoutPositioning views relative to one another with auto-layout was fairly tricky until...
ios, auto-layout, swiftStack views vertically or horizontally on iOS 8 using AutoLayoutWhile starting iOS 9 we have UIStackView, it is a little bit tricky to stack views vertically or horizontally.
xcode, objc, swift, auto-layoutDebugging view constraints with Xcode 7A small button named 'Debug view hierarchy', displays current view hierarchy in 3D.
swift, architecture, viperVIPER architectureDecouple, separate, disengage, or dissociate (something) from something else.
mongodb, gisImporting a Shapefile into MongoDB using GeoJSONShapefiles are technology from the past when desktops ruled supreme.
swift, xcodeDebugging xxx was deallocated while key value observers were still registered with itDebugging errors that are a result of observers being added to an object and not removed from it can be hard.
swiftCatching an exception in Swift using functions!Recently we had a need in a general way to catch calls that can throw an exception.
xcode, swift, iosCreating NSManagedObject subclasses from a model in Xcode 8In Xcode 8, it is no longer possible to create NSManagedObject subclasses...
swift, ios, xcodeCompiler Error when using Generics and nested functions, Command failed due to signal: Segmentation fault: 11The following code is causing a compiler crash when compiled with Swift 3 and Xcode 8...
swift, iosA simple optimization for UICollectionView (or UITableView) updatesCollection view is highly optimized and works great out of the box.
reactive-swift, reactive-cocoa, swiftA very important difference between a Signal and a SignalProducerA property in ReactiveSwift allows us to track its changes over time.
swift, reactive-swift, reactive-cocoa, iosWorking with a playgroundAccording to the documentation, to use ReactiveSwift.playground the following steps must be performed...
swift, reactive-swiftFlatten and some of its strategiesThe power of ReactiveSwift lies within its operators.!
mysql, ghost, ubuntuMemory issues running Ghost with MySQL on tiny machines.Unfortunately stabilizing MySQL on our tiny server was not simple and in fact the only thing that helped was a SWAP file.
xcode, ios, swiftUICollectionView terminating with uncaught exception of type NSExceptionne of our views that contains a UICollectionView started crashing once in a while...
nodejs, ghostNodemailer 'Please log in via your web browser and then try again' error when using GmailWhile browsing our Node.js site logs we have noticed the following error...
swift, ios, auto-layoutUnwanted padding in UICollectionView in iOS 10On iOS 10, a collection view embedded in a view has unexpected padding at the top.
androidHow to choose minSdkVersion, targetSdkVersion, and compileSdkVersionPicking your compilesdkversion, minsdkversion, targetsdkversion.
opensslSign and verify dataRSA verification process is similar to RSA encryption/decryption process with one major difference.
rx-swift, swift, cocoa-podsUse of unresolved identifier 'Resources'RxSwift.Resources are being used to detect memory leaks during pre release tests. Solving Use of unresolved identifier 'Resources' error.
swift, iosUICollectionView: Self sizing cell with a UILabel on iOS 10All we needed was a simple UICollectionView with just one cell that contained a label ...
ios, swift, auto-layoutSetting height constraint for a view in a cellWe needed a collection view cell that contained an image view and a label.
rx-swift, swift, iosHow to avoid memory leaksRxSwift is a powerful framework and, as always, with power comes responsibility.
ios, xcodeSymbolification in iOS applicationsSymbolification is the process of mapping machine addresses into the source code. The tricky part is that by default .DSYM file is only generated for release builds.
swift, auto-layoutUIScrollView with AutoLayout, programmaticallyIt is fairly easy to use UIScrollView with the AutoLayout on iOS 12+ but only if one follows the following steps ...
ghostGhost: why this blog no longer runs on itWe started using Ghost when it was still in its very early stages ...
swiftShould one always use weak self to avoid retain cycles?It has become pretty common among Swift experts to always use [weak self] inside of a closure to avoid retain cycles ...
swiftDependency injection explainedWhy do we need to inject dependencies and some tools that help with it...
androidDo not trust all certificatesTrusting all certificates allows anybody to do a man in the middle attack
OpenWRT, OpenVPN, Windscribe, MR8300Windscribe VPN on OpenWRT Linksys MR8300In this article we will be setting up an OpenVPN client on OpenWrt.
Typescript, Node, monorepoAdding a local library to a monorepoIn this article we will be adding a shared local library to a monorepo.