androidDo not trust all certificatesTrusting all certificates allows anybody to do a man in the middle attack
swiftDependency injection explainedWhy do we need to inject dependencies and some tools that help with it...
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 ...
ghostGhost: why this blog no longer runs on itWe started using Ghost when it was still in its very early stages ...
swiftUIScrollView with AutoLayout, programmaticallyIt is fairly easy to use UIScrollView with the AutoLayout on iOS 12+ but only if one follows the following steps ...
iosSymbolification 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.
rx-swiftHow to avoid memory leaksRxSwift is a powerful framework and, as always, with power comes responsibility.
iosSetting height constraint for a view in a cellWe needed a collection view cell that contained an image view and a label.
swiftUICollectionView: Self sizing cell with a UILabel on iOS 10All we needed was a simple UICollectionView with just one cell that contained a label ...
rx-swiftUse of unresolved identifier 'Resources'RxSwift.Resources are being used to detect memory leaks during pre release tests. Solving Use of unresolved identifier 'Resources' error.
opensslSign and verify dataRSA verification process is similar to RSA encryption/decryption process with one major difference.
androidHow to choose minSdkVersion, targetSdkVersion, and compileSdkVersionPicking your compilesdkversion, minsdkversion, targetsdkversion.
swiftUnwanted padding in UICollectionView in iOS 10On iOS 10, a collection view embedded in a view has unexpected padding at the top.
nodejsNodemailer '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...
xcodeUICollectionView terminating with uncaught exception of type NSExceptionne of our views that contains a UICollectionView started crashing once in a while...
mysqlMemory 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.
swiftWorking with a playgroundAccording to the documentation, to use ReactiveSwift.playground the following steps must be performed...
reactive-swiftA very important difference between a Signal and a SignalProducerA property in ReactiveSwift allows us to track its changes over time.
swiftA simple optimization for UICollectionView (or UITableView) updatesCollection view is highly optimized and works great out of the box.
swiftCompiler 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...
xcodeCreating NSManagedObject subclasses from a model in Xcode 8In Xcode 8, it is no longer possible to create NSManagedObject subclasses...
swiftCatching an exception in Swift using functions!Recently we had a need in a general way to catch calls that can throw an exception.
swiftDebugging 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.
mongodbImporting a Shapefile into MongoDB using GeoJSONShapefiles are technology from the past when desktops ruled supreme.
xcodeDebugging view constraints with Xcode 7A small button named 'Debug view hierarchy', displays current view hierarchy in 3D.
iosStack 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.
xcodePositioning views relative to one another with auto-layoutPositioning views relative to one another with auto-layout was fairly tricky until...
nginxLocation block and rewriting URLsURI - the part of URL that comes after the domain (or IP/Port) name.
nginxRenewing GoDaddy SSL certificateRenewing a certificate is not fun so it is better to use Let's Encrypt but if that is not an option...
ubuntupip IncompleteRead error after Ubuntu upgradeAfter upgrading ubuntu pip started throwing the following error...
itunesCutting off songs earlyWe all understand the frustration users experience when software malfunctions...
ubuntumysql2 gem error after upgrading MySQL databaseAfter upgrading to MySQL 5.6 from 5.5 we started getting an error: Incorrect MySQL client library version!
railsUsing environment variables under NginxRails is heavily using environment variables in its configuration files.
rorMinimum rights policy for S3 that works with CarrierWaveYAmazon S3 does not like dots in bucket names.
railsInstalling 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.
iosNSURL URLWithString vs fileURLWithPathA frequent mistake when playing a local video using [AVAudioPlayer initWithContentsOfURL:url] is to use URLWithString instead of fileURLWithPath.
iosfileExistsAtPath always returns NO (false)Generating the path dynamically with NSSearchPathForDirectoriesInDomains.
iosSet application name depending on the build typeHaving a different application name for release and development builds.
pythonSend 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.
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.
osxUpdating Homebrew after OS upgradeUnfortunatrly, Homebrew breaks after an upgrade to OS X Yosemite.
iosSupporting 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.
gitCheckout a file (just one file) from a specific commit (revision)git checkout 6c1d1862 AppConsumer/Curbsidr.xcodeproj/project.pbxproj
objcCurrency string from a number (double)Converting a decimal number to a currency string is simple with NSNumberFormatter.