Shaideru

All things iOS & Swift

Swift web framework and HTTP server on Linux

You ever thought of writing all your codes in Swift? Now you can, with IBM’s Kitura, a Swift web framework and HTTP server that runs on OS X or Linux. Requirements Ubuntu 16.04 Swift 4 Git Open your terminal and download these requirements. Downloading and installing git

Download OpenSSL and libssl-dev

Now, download swift 4.

After downloading and installing everything, untar the swift 4 file by running

Continue reading…

Postfix Configuration using Mac OS X

What is postfix? Postfix is a native mail transfer agent for sending emails, it is natively installed in OS X, all I’m going to show is how to configure it. Open your terminal and log in as a root user. Next, enter this line, “vi /etc/postfix/main.cf” without the quotes,  add this line

save the file, google “how to use vi” if you aren’t familiar with it. We need to

Continue reading…

Could not locate configuration file: ‘GoogleService-Info.plist’

As we know that firebase keeps updating their API due to Apple’s Swift 4 coming out, and found this issue today while implementing Firebase API, here’s a quick fix for you. When you are connecting your xcode project file after installing your pod, and you already added, FirebaseApp.configure() inside didFinishLaunchingWihtOptions function, and imported Google-Service-info.plist, select the GoogleService-info.plist and select your projects name under Target Membership(right panel). Build and run your

Continue reading…

converting vmdk to qcow2 in Linux

vdmk file extension is used by HyperV qcow2 file extension used by UNL(Unified Network Lab) – Ubuntu If you are  working on .ova file the best thing to do is to extract it first using this command

  Login as root and run the following commands

If you dont have the qemu-img package or repo yet, download it using the following commands from various linux flavours Ubuntu

Continue reading…

Using LDAP and PHP to communicate with Active Directory

A simple function that authenticates your user in LDAP active directory  using PHP,

credits to Joe from exchangecore.com

  • 1 2 7