Showing posts with label heroku. Show all posts
Showing posts with label heroku. Show all posts

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

Tuesday, 11 February 2014

WDI Progress Update - Javascript

Challenges:
  1. Homework, losing time fixing my deployment to Heroku due to failed mailers
Progress @ General Assembly (GA)
  • Javascript (Comments, Expressions, Statements, Arrays, Debugging, Programs (;), Function Helper Libraries, Function vs Procedures, Function Scope {not block scope}, Circular Dependancies, Invoking, Pure Functions, Function Environments, Functions are First Class Objects, Recursive Functions, ECMAScript Harmony {let} vs Blocks, Closure Phenomenon, Values and Side effects, Lexical Scoping of Variables, Shadow Variables, Nested Functions, Operators {Assignment, Comparison, Arithmetic, Bitwise, String, Logical [Short-Circuit Evaluation], Special, Conditional, Comma, Delete, In, InstanceOf, New, This, Typof, Void, Precedence}, Operands, Objects (Properties/Associative Arrays, New Objects, Object Initializers, Constructor Function and Object Instances, Object.Create using Prototype object, Inheritance {Classical, Prototypal}, Indexing Object Properties, Defining Object Type Properties, Defining Methods, Object Methods using 'This', Defining Getters and Setters, Deleting Properties) Enumerating Object Properties {ECMAScript 5, For..In, Object.keys(o), Object.getOwnPropertyNames(o)}, Economy of Loops vs calling Functions in Stack Contexts, Efficiency vs Elegancy vs Time, Transitivity, Floating Point Arithmetic i.e. (0.1 + 0.2 == 0.3 false (0.1 + 0.2).toFixed(1) == 0.3 true), Silent Errors due to Style incorrect { placement on new line and no block scope, DOM {Document Object Model} as API logical structure for accessing, changing, deleting, or adding to valid HTML/XML)  
  • Javascript Shells
Events:
  • Attended meetup Ruby on Rails Oceana  (ROROSyd) on 11th Feb
Curiosity:
  • MORE Javascript Stuff (Lambda, Dynamic Objects, Loose Typing, Object Literals i.e. JSON, Delegations, Differential Inheritance, New Object clobber constructors issue, Module Pattern transformed into Constructor Pattern Augmenting Objects with Privileged methods using Closure with reference to the Context, JSLint, Reliability Strict Mode Tags {Intolerables}, Implementations, Object Hardening Support {Immutability/Mashups}, Secure JS Subsets {FBJS, Caja, Cajita, ADsafe})

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)

                                                Sunday, 26 January 2014

                                                WDI Progress Update - Ruby, Sinatra, ActiveRecord, Sinatra, PostGreSQL, Rails MVC

                                                Challenges:

                                                1. Validations, SMTP
                                                2. Homework bugs!!! 
                                                3. Data Validation with ActiveRecord
                                                Progress @ General Assembly (GA)
                                                • Sublime Text 2 (Shift-CMD-R align multiple text lines, CMD+? to comment multiple lines)
                                                • Ruby (Object Relationship Mapping ORM)
                                                • Rails (Model View Controller MVC architecture, Deployment to Production using Heroku with GemFile, Scaffolding with database rake migration entire CRUD apps)
                                                • Ruby Gems - (ActiveRecord, ActiveRecord Associations, HATM, Callbacks, PostGreSQL, Validations, Bundler for deployment)
                                                • SQL (PostGres app, commands, tables, joins, foreign keys, CRUD)
                                                • Tapestry Presentation on Front-End Development by Phil Reither
                                                Progress @ Intro to Startup Entrepeneurship
                                                • Unit 1 finished on 27th Jan !! Next steps: 
                                                  • Unit 1 - Lesson 7 Independent study activities, participate in online forum, create app based on learnings
                                                  • Unit 2 - UX, can't wait to start!!
                                                Events:
                                                • Attended meetup Startup Sydney on 23rd Jan @GA
                                                Curiosity:
                                                • Tank Stream Labs (startup community)
                                                • Behavioural retargeting
                                                • Gamification
                                                • RescueTime
                                                • StrongLoop
                                                • Grails
                                                • Universal design principles (accessibility): Haptics, Tactus, Web Content Accessibility Guidelines
                                                • The World is Flat, Thomas Friedman
                                                • Trends API
                                                • CSS animations
                                                • WebGL
                                                • WebM format
                                                • Paralax
                                                • Caniuse.com (compatibility checker)
                                                • Flinto.com (IOS Prototypes, Wireframing)
                                                • Railcasts
                                                Off Topic:
                                                • Magna Carta