Showing posts with label the slippery gypseas. Show all posts
Showing posts with label the slippery gypseas. Show all posts

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 - Individual Project Challenges and UX Gaps


                                                Challenges:

                                                1. Watched short video from RailsCasts on refactoring a simple Search Form and implemented into AI app User front-end (not functional yet but feeling more confident). Advised by Alberto Forni to research 'Named Scope' (discussed in Code School)
                                                2. Find out how to apply Google Trends API to AI app
                                                3. Sign up for Rails 1 (and Rails 2 later) 


                                                Progress @ General Assembly (GA):
                                                • Sunday Session
                                                  • Valuable feedback obtained on AI app from Danial Tsui, Nick Morgan, and Alberto Forni. Split into Admin and User sections. Time to implement learnings Intro to Startup Entrepreneurship and up-skill on UX aspects.
                                                  •  -------> Update 3:20pm 3rd Feb:
                                                    Interesting problem solved with instructors help. 
                                                    Situation: List of ideas displayed on the screen. User requested to tick checkboxes that corresponded to their favourite ideas, and then click a submit button. After clicking the submit button a database query would refresh the same screen with only their favourite ideas shown.
                                                    Problem: The user could submit their favourites and the page refreshed showing them a filtered list of only their favourites. However, if they went back to the original URL and performed the same process, the submit button would be unresponsive (i.e despite using the following code, with none of the checkboxes ticked, and therefore none of the ':search' params being present)
                                                    if params[:search].present?
                                                        @ideas = Idea.where(:id => params[:search])
                                                    else
                                                      @ideas = Idea.all
                                                    end
                                                    Outcome: With the help of GA instructors we exhausted all hack options (i.e. @ideas.to_json, ___.inspect, inspecting network elements in the browser, raise "xxx"), and found that if we deleted Turbolinks from '/javascripts/application.js', and commented out in the Gemfile, the app then fully worked! (i.e. delete //= require turbolinks, and then going to terminal and running, 'gem install' and 'bundle', and 'rails server'). It is thought that the problem was caused due to caching by the Turbolink gem.

                                                Progress @ Intro to Startup Entrepreneurship
                                                • Unit 2 UX - Read 100% of PDF notes. 
                                                  • Objectives - Urgently must target detailing Unit 2 audio notes by 4th Feb and implement into Individual Project. Incorporate Unit 1 by 9th Feb. Start Unit 3 reading by 5th Feb and finish by 9th Feb.

                                                Contributions to Developer Community 
                                                • Invited to meet the The Slippery Gypseas band in on 5th Feb to help brainstorm their website requirements!