Category Archives: Implementing Technology

kitchen test

  1. bundle init – this will add a new file named “Gemfile”
  2. vim Gemfile
    1. Add test-kitchen
    2. Add kitchen-vagrant
    3. Add berkshelf
    4. Add librarian-chef
  3. bundle install
  4. kitchen init
  5. vim .kitchen.yml
    1. remove centos
    2. edit chef_solo to chef_zero
  6. bundle – unnecessary
  7. berks init
    1. resolve conflicts
      1. chefignore
      2. .kitchen.yml
  8. kitchen setup – not quite here
  9. edit .kitchen.yml
    1. add “verifier” (name = inspect, sudo = true)
  10. edit Gemfile
    1. add entry for “kitchen-inspec”
    2. bundle install
  11. Add test case – test/
  12. berks
  13. kitchen test

– manzoor

cocoapods

While I try to figure out why all the available PODs seem to be written in Objective-C (and not Swift) I need to make notes for using Objective-C (in addition to using CocoaPods) in my iOS App(s).

Pre-Req:

  • Xcode
  • cocoapods
  1. Create (and save) a Project
  2. on a Command Line Shell cd into the location of the App
  3. Run “pod init”
  4. Edit the “Podfile” that is created
    1. add the specific POD Framework entry
    2. Uncomment “use_frameworks!”
  5. Run / execute “pod install” (from the command line)
  6. Close the “Project” and open the “Workspace” (.xcworkspace file)
  7. If the POD Library is in Objectve-C, will need to follow the next few steps (to create a Bridging Header)
    1. Right Click on the Main Folder for the Project and Create / Add a New Objectve-C File (call it anything you want)
    2. Follow the flow till it asks to “Configure an Objective-C bridging header”. Definitely choose / select this option
    3. There should be a couple of files that gets created / generated. Delete (or not) all the files except for the one that ends with “-Bridging-Header.h”
    4. Edit the “-Bridging-Header.h” file to add the “import” for the POD Library
    5. Now to use the POD Library in any class, just add the “import” in the class file(s)
  8. that should do it

– manzoor

Python, Ruby & Swift

These are simply programming languages to help us learn “Object Oriented Programming”. While we will be trying to learn each of the languages as best we can, the goal is to learn to Program and user “Object Oriented Programming” as the foundation.

Data Structures

Struct

Class

  • Class Inheritence

Struct vs Class

  1. Class requires initializer to be written and Struct does not require
  2. Struct is of “Value Type”, Class is “Reference Type”

Method

  1. Instance Method

Initializer

Default / Memberwise

Functions

Optionals (need to go over) / Unwrapping Optionals / Optionals Chaining

– manzoor

Related Posts (internal)

Dropbox File Sharing

Dropbox is more than just for file sharing, but here I am only treating it as a tool to share files between computers over the internet.

The service is FREE to use for upto 2Gb.

How to:

  1. Download (for PC, Mac, Linux and iPhone) – a small application that has to be downloaded and installed on the PCs / hosts where files will be shared from.
  2. Install – the application, when installed, will create a folder on the local host that can be used just as if it is a local folder (in fact it is a local folder). Dropbox will “share” that folder with other users (with the proper access privilege)
  3. Share

Pros: Platform independent,

Cons: None available at this time.

– manzoor

Virtual System

With Windows, OS X and Linux all running on x86 processors, it is only natural to want to run all the OSs on the same hardware.

So far, in my experience, VirtualBox is the easiest to use for this task.
Copying Virtual Machine Images

Of course, once you have VMs, the one the most time saving task is to be able to take a snapshot / image of a machine and deploy it all over w/o having to install from scratch. The few issues to keep in mind:
  • hostname / machine identity
– manzoor

Find a Movie

Idea

A service that will search & suggest the best source to stream a movie.

Requirements

User Interface

  1. Login / Authenticate
    1. Google / FB / Twitter / etc
  2. Search / Match Movie
    1. Title / Actors / Director(s) / Release Date
  3. Launch Appropriate App / Launcher to Stream

Backend

  1. Store / Save Popular searches
  2. Aggregate Ratings – Movie / Streaming Service

External Services to Leverage

  1. IMDb – https://pypi.python.org/pypi/IMDbPY
  2. Movie – Amazon – http://stackoverflow.com/questions/8014934/amazon-api-instant-video-results / Netflix – http://techblog.netflix.com/2013/01/optimizing-netflix-api.html / Hulu – http://adammagana.com/2012/09/hulu-hidden-api/
  3. User Authentication – Google – https://developers.google.com/identity/protocols/OAuth2 / FB – https://developers.facebook.com/docs/facebook-login/login-flow-for-web/v2.4 / Twitter – https://dev.twitter.com/oauth