Showing posts with label devise. Show all posts
Showing posts with label devise. Show all posts

Sunday, 23 March 2014

WDI Progress Update - Final Project (Littlehumans), Brainstorming, Mock Interviews, Codium

Challenges
  • Littlehumans (Medical App for Midwives and Parents of New Born Children)
    • Problems faced
      • Combined OAuth Login (Facebook, Twitter, Google) with Devise spend all day Saturday trying to get it to work in Production environment (managed to get Google, Facebook, and Twitter to work)
      • See 'About Us' page at the Littlehumans website for other challenges
  • Dancing at Karaoke!
Progress @ General Assembly (GA)
  • Littlehumans Final Project
    • Heroku Link: Littlehumans App    
    • Tech Stack: View the 'About Us' page at the link above
    • Purpose: Midwife app for Midwives and Parents to track and share New Born Baby information and key Moments (input from my partner who is a professional midwife)
  • Sunday Javascript - with Daniel Tsui
    • Challenging Tests
    • Immediately Invoked Function (IIFE)
    • .Then
    • Hoisting
    • First Class Citizen
  • Javascript Ecosystem - Presentation by Je Turnbull
    • Multi-paradigm (MPM) and styles 
    • Automation and Task Runners
    • Package Management
    • JS Essential Knowledge and Tools
    • Front-end Job Questions
    • JS Testing
    • Scope and Closures
    • Recommended Books
  • Codium Group Project
    • Twitter Gem - Solved ability to scrape blog posts
Curiosity

Friday, 21 March 2014

WDI Progress Update - Data Structures, Recursion (Towers of Hanoi), Codium Group Project, RSpec, Twitter Gems, Secret Keys, Amazon Web Services

Challenges
  • Problems fixed (lesson learnt: >4 hrs sleep required to RSpec effectively) 
    • RSpec refactoring (special attention!)- Thanks Taryn East
    • Activity Monitor & Which- Thanks Pranava Swaroop for tip on how to kill Mac tasks, and how to find which directory my Git was installed in 'which git'
    • Text navigation - Thanks Daniel Tsui for tip on how to navigate text quickly with ALT+Arrow

Progress @ General Assembly (GA)
  • Computer Science (Data Structures {Queues, Stacks, Linked Lists {Nodes, Values, Pointers} }, LILO, FIFO, Random Access VS Binary Search) 
  • Codium Group Project
    • Gems Tested (Twitter Feed Scraper): 
      • Twitter Gem
      • Anemone Gem (Crawl, parse DOM, and harvest, but JS security issue without innerText)
    • Secret Keys Setup: Heroku, Devise, Twitter
    • Pry Debugging

  • Unit 3 - Organisational Strategy & NPD DONE
  • Unit 4 - Idea Generation IN PROGRESS - must finish on w/e before Final Project week

Curiosity
  • Amazon Web Services - Thanks GA for Voucher! (must remember to use it by June 2014!)
  • SQL & Data Structures - Revise Engineering Notes! (eww..)
  • Anchor - may be the solution to my Rails and broader web hosting problems

Friday, 14 March 2014

WDI Progress Update - Advanced Rails Caching, SASS, Websockets, Javascript Evolution & Frameworks, Group Project Implementation

Challenges
  • Backbone.js and Burning Airlines - 6 hrs preparing Burning Airlines MVC for Flights on 13th Mar:
    • Problems fixed thanks to help from team in the morning:
      • Missing from app.js
        • Async call to fetch flight collection model and Router
      • Correction in FlightsController
        • 'respond_with @flights' instead of 'respond_with :json => @flights' to prevent embedded JSON
      • Removing JBuilder.json file that was merged after git pull from master, and caused only id and url to appear at URL /flights/flights.json (code previously pushed compiled successfully and listed flights)
      • Binding(this) to enable Search button functionality for on-click 
      • Debugging in Chrome Inspect Element using CMD+' to skip to next line of code for testing, and hovering over variables to show current value 
  • Pomodoro Time Management

Progress @ General Assembly (GA)
  • Group Airline Project (Implementation)
    • Team: Marcus Hoile, Sam Peters, Alberto Forni, Luke Schoen
  • Javascript Evolution
    • JS Framework Types: 
      • Full-stack - Derby (real-time apps), Sails (like Rails), Meteor (new with potential security issues)
      • Front-end - Backbone.js, Marionette, Knockout, React, CanJS
      • Front-end + Datamining - Angular, Ember
      • Back-end frameworks, Websockets, 
      • Templating - Handlebars
      • Other: Batman, Express Polymer, Socketstream, Clojure
    • Websockets (Socket.io to manage HTML5 websockets, real-time control to sync broadcast changes without overhead HTTP)
    • Proxy Servers - NGrok
    • Separate Loading Templates - .jst.ejs and Global Namespaces
  • Caching in Rails
    • Client-side & Server-side (Page, Action, Fragment)
    • ActionPageCaching GEM
    • ActionPackCaching GEM
    • Rake Task Sweepers
    • SQL Query Caching
    • Memcache, Nullcache
  • SASS (Nested, Interpolating Content, Variables, Mixins, Cross-File Mixins, Inheritance, Pseudo Selectors, Asset Pipeline, Image-Path and Asset-Path for Production)
  • Presentation TankStream Labs
    • Key Takeaways:
      • Lifestyle & Work
        • Startup Org Fit Evaluation Essentials
        • Recording Skills
        • Cocurricular and Coding
      • Language Agility
        • Erlang, Haskell
      • Terminology & Tools
        • Strong Parameters
        • Async Processing and Delays (SidekiQ + Reddis)
        • Scheduling Processes (Cron + Whenever)
        • XML Parsing (Nokogiri)
        • PDF (Prawn, PDFQueue)
        • Debugging (Pry)
        • Uploading Files (Paperclip, Carrierwave)
        • Sublime GEMS (GEM Browser, Git Extensions)
        • JSON (JBuilder, JSON Serializers, Draper)
        • Image Resizing (LibXML image munging, Image Magic)
        • Communicate Validation in Natural Language (Chronic, Chronorails GEM)
Purchases
Events
  • Fisburners - Chat with Mark (Movie guru), met David (recommended Founders Institute), Dimitri, Jenny, and Matthews B'day

Saturday, 1 March 2014

WDI Progress Update - Presentations (Group Project)

Challenges:
  1. Reading "Agile Development with Rails 4" this weekend
    • Core:
      • Unless, Until, If, While 
      • Pass Block as Named Parameter
      • Exceptions, Rescue
      • Instance Variables, Convenience Methods,
      • Public, Private, Protected Methods
      • Modules and Helper Methods
      • YAML, Marshalling Objects, Sessions
      • Ruby Idioms
      • File Relative Expand Path Method
      • Aliasing
    • Shopping Cart App
      • Preliminary Analysis
        • Incremental Development
        • Use Cases, Different Actors
        • Iteration Feedback
        • Page Flow for each Actor
        • Data Diagrams for App
      • Create App
        • Create Database for App Product Maintenance
        • Nested CSS matching each Controller
        • Git Ignore
      • Validation and Unit Testing
        • Validation before write to DB
        • Unit Test Models Test Infrastructure
        • MiniTest Unit Framework subclass TestCase
        • Rake Test Models
        • Test Fixtures and YAML Format
        • Associate based Stories for Fixture Names
        • Using Test DB vs Development DB
        • Up to Page 105 / 439
    • Ruby Quick Ref (Range, RegEx, FileIO, Var, Cmd Line, IRB, Operator uses, Control method uses, Invoking Methods, Defining Class/Methods/Modules, Access Restrictions, Accessors, Aliasing, Procs, Closures, Exception Catch/Throw/Raise/Rescue, MiniTest)
Progress @ General Assembly (GA)
  • Group Project Presentations
    • Team #1 - Autism Connect Autismconnect.herokuapp.com (Sam Peters, Emily McCartney, Lauren Krueger, Luke Mesiti) - Key Takeaways
      • Gems: Geocoder, Googlemaps, Strap (payments similar to PayPal), 4em??, Pundit and Cancan (forums)
      • Authentication: OmniAuth (Google), Devise
      • Search: Polymorphic (finds anything with tags many to many)
      • Effects: Paralax (slide toggle left right)
      • Method: Staged implementation with Gems
    • Team #2 - Shared Expense Tracker Wdiexpense.herokuapp.com (Pranava Swaroop, Federico Tagliabue, Marcus Hoile) - Key Takeaways
      • Gems: AASM Management (management of workflow change status of groups/resources), Bootstrap Gem Fonts?
      • Future: Integrate with Whatsapp.com, share on Facebook timeline, Available offline (caching on mobile), Monetise with buying patterns, white label lnegotations, sell to property management firms
      • Method: Daily standups and end of day checkins, Git branching, dealing with Git conflicts merging, teamwork

  • Presentation - Gregory McIntyre, Yourtutor.com.au (Life as a Developer) - Key takeaways:
    • Agile Development - Pair Programming, Productivity and Independence, Conversations and Minutes, Values Visibility, Iron Triangle {Scope, Schedule, and Resources + Quality Centre} > No compromise for Quality, Risk Matrix mitigates to ALARP with Strategies, Burn Down Chart (Jellybean measurement), Kanban (pool model visualisation to minimise waste), Lumpy graph (steady flow rate to customers, resource match issues if lumpy progress), Feedback iterative loop (Assess, Agree, Execute) impacted by Scope changes, Poker Estimation (fold over cards and argue to check assumptions and avoid diminishing returns), Card Walls (Agile workspaces, Post-its easy to track, hard avoid responsibility, issue in distributed teams)
    • Agile Ideals - Deliver something of value everyday
    • TDD - Refactor, Fail, Pass, Repeat
    • BDD - Cust. Feedback Driven, TDD is embedded circles within BDD
    • Continuous Integration and Deployment
    • Latest News: Ruby Weekly, Javascript Daily, Postgres Weekly (signed-up)
Curiosity:

Sunday, 9 February 2014

WDI Progress Update - Trendmyhunch Extras, Google Analytics Client Authentication using Service Account and OAuth

Challenges:
  • Google Analytics Client, Google's API Developers Console (connected!)
  • Google Maps Coordinate API (yet to attempt)
  • Extras add to My Website: Trendmyhunch
    • Collapsing Menu
    • Anchors
    • Select / Unselect All
    • Feedback form (failed on heroku push, stuck on whether i need https://devcenter.heroku.com/articles/sendgrid#ruby-rails)
      • Troubles #1 tried Sample Contact Form on Github, Mailgun and associated documentation, etc (unable to use free SendGrid due to past personal income issues), might have revert back to PHP! Yikes!!
    • Authentication with Google Analytics Client using Service Account and OAuth! (noted the importance of using the correct 8 digit number after the letter 'p' in the URL when in the Analytics Account Settings of the correct App!! didn't realise this initially and was getting error 403)
    • Troubles #2 - Can't upload to Github to mirror pushes to Heroku! Bugger...
  • Important Note: Gem Garb could have saved me a lot of time connecting to Google Analytics! 
  • Played around with dashing, puma server, rufus scheduler, and redis, and rendered my heroku site useless (site still works on local server though...)  ----> discovered that the reason it wasn't working on Heroku was because there  were remnance of Dash (which I wasn't using). the error was only exposed when i ran "rails console production". to solve the issue i just opened the /app/jobs/sample.rb file and commented the whole file.

~/Documents/w5d1_project/ideas_app/trendmyhunch ✗ master ∴ rails consoleLoading development environment (Rails 4.0.2)2.1.0 :001 > exit~/Documents/w5d1_project/ideas_app/trendmyhunch ✗ master ∴ rails console production/Users/Luke/Documents/w5d1_project/ideas_app/trendmyhunch/app/jobs/sample.rb:3:in `<top (required)>': uninitialized constant Dashing (NameError)


Progress @ General Assembly (GA):
  • Analytics (Conditionally included Analytics)

Curiosity:
  • Segment.io

Wednesday, 5 February 2014

WDI Progress Update - Production, Bootstrap, CSV migrations

Challenges:
  • App exploded when tried to install bootstrap, used Heroku clone to recover
  • Searching databases and filtering selections
  • Resolved absolute file paths not being recognised when uploading to Heroku. Fixed data migration files and relocated CSV files to the root directory. Compiled successfully with this code:
require 'fileutils'require 'csv' 
class AddIdeaData < ActiveRecord::Migration
  def up
filepath = Rails.root.join("ideas.csv")
# locate the csv file in your /public folder if File.exist?(filepath) CSV.foreach(filepath)do |col| Idea.create(:name => col[0].to_s, :description => col[1].to_s, :author => col[6].to_s, :url => col[7].to_s, :country => col[8].to_s) end else  raise "No file exists with name: #{filepath}" end  end
  def down   Idea.all.destroy # only with team permission  end
end

                                                Progress @ General Assembly (GA):
                                                • Rails (Authentication vs Authorisation, Static page controller, Custom controller methods using routing collections and members, Hidden form fields)
                                                • Production (Heroku)
                                                • Gems (Sanitise for customising Devise Authentication, Rails_12factor for production and images on Heroku)
                                                • Agile (Daily Scrum meetings)
                                                • Bootstrap themes


                                                Contributions to Developer Community 
                                                • Exciting ideas and concepts explored with the The Slippery Gypseas!
                                                • Sydney Tech Startup Meetup on 6th Feb

                                                Curious:
                                                • Cancan (Authorisation)

                                                Monday, 3 February 2014

                                                WDI Progress Update - Agile Tools, Wireframes, Migration Change Control Diligence, Alumni

                                                Progress @ General Assembly (GA):
                                                • Agile Dev Intro (Agile vs Waterfall, Manifesto, Test Driven Dev (TDD), Behaviour Driven Dev (BDD), Scrum Sprint Cycles and Ya Ain't Gonna Need It YAGNI / MVP Priorities, Ship early ship often, Estimation Points Sys. & Timeframes, Break-down Tasks, Team Velocity Forecasting Sprints, Burn-down Charts, Timeboxing Spikes, Daily Brief Stand-p Meeting Agenda Protocols, Project Normal Workflows, Planning & Design Stage, Site Structure, Use-cases, Wire-frames, Non-standard CRUD requirements, Development Stage) 
                                                • PivotalTracker - Agile Project Management tool using Scrum
                                                • Balsamiq Mockup - Wire-frames
                                                • Rails (Devise Authentication, Importance of Ongoing Migration Due Diligence to Teams and Traceability)
                                                • Presentation by Tiffany McHugh of GA's Studio Service:
                                                  • Job readiness, Partner connections, Alumni network, Teaching opportunities, Sharing, etc