Skip to main content

Adding a ssl certificate to ejabbered on apache

Adding a pem file to secure ejabbered on the server for chat connection.

Getting the pem file

I downloaded the pem file through Plesk (v17.8.11) under the SSL/TLS Certificates area.  Locate the certificate that you want to use and click the green arrow which when hovering will day download all certificate components.

Creating a .pem file for push notifications

To create a .pem file, is quick once you have your .p12 certificate.  I won't go through the process regarding p12 file generation as there are many sites that outline these steps.  If you cannot find a site that outlines this make a comment below and I'll point in the right direction.

Open the terminal and go to the path where you save the apns-cert.p12. where and follow the below command to generate the .PEM file.

Filtering an array list

I had the issue where I needed to filter an array list by a specific column.  In my instance, the column is language.  To be able to reduce the query to the language column the code required is

levels = selectedCategory?.levels.filter("language = %@", language)

Language can be any string, in this instance for me language is a two alpha character such as 'fr', 'en' or 'de'.

Further to this you can continue to chain this query through including sort as per

How to programmatically change the app language without restarting the app

iOS localization on the fly

If you have added languages to your app... shortly afterwards you'll be getting yourself knee deep in changing the language on the fly.  Followed by the question – how do you change the language of the app without having to restart the app?  To change the language of the app there are a couple of key steps involved:

Removing warnings

During the process of building the app, there are warnings about the code.  It's good practice to remove all warnings before you submit your apps to the App Store so there's a few steps you can follow to silence these warnings:

Navigate the the Project Settings page below; Select the drop down menu next to Devices; Change from Universal to iPhone; then Run your app again and the warnings should disappear.

dyld: lazy symbol binding failed: can't resolve symbol

If you have this error, the core issue is the dyld issue.

dyld

dyld is a shared library (dylib).

The error is a product where the library path cannot be found at run time.  Most likely you have installed a framework to your project and there is an issue in the standard location (such as /Library/Frameworks) on your build and the framework that you have added.

Carthage create a cartfile

Ha you have read it before, one of those throw away lines that is written "just create a cartfile".  So your thinking carthage update, carthage init, create a plain text document, etc... all wrong.  How do you know... when you run carthage update, you receive the following error

Get this error: "No such file in directory"

So how do you "just" create a Cartfile?

Subscribe to iOS