Location Tracker Maciej Mensfeld Presented by: Maciej Mensfeld Location Tracker dev.mensfeld.pl github.com/mensfeld.

Slides:



Advertisements
Similar presentations
Being ready is important. When adults tell me to get ready, it is my job to do it. Being ready is my responsibility. Im ready!
Advertisements

HE IS MY EVERYTHING HE IS MY EVERYTHING
Design Patterns of Web 2.0. Ajax and more! Michael Curry Designer/Developer of PushHandle, Inc.
CodeMap Google Maps for Source Code Yoann Padioleau (Facebook)
CakePHP. A framework for developing applications in PHP Inspired by Ruby on Rails Follows MVC design pattern Convention over configuration –No wheel reinventing.
More about Ruby Maciej Mensfeld Presented by: Maciej Mensfeld More about Ruby dev.mensfeld.pl github.com/mensfeld.
Chapter 2.2 – More about Ruby Maciej Mensfeld Presented by: Maciej Mensfeld More about Ruby dev.mensfeld.pl github.com/mensfeld senior.
Presented For: MoanaCo February 15, 2013 NaluHou.
Language Support for TBL and PBL Peih-ying Lu, PhD.
SOME IDEAS TO KEEP YOU SAFE by Sheridan Junior High School Resource Officer Sam Damon.
Lion, Fox, Mouse and Human
What Rule Is It Anyway?. My Rules For Internet Safety 1.I will tell my trusted adult if anything makes me feel sad, scared, or confused. 2.I will ask.
Com Jean Carlo Nascimento aka SUISSA. github.com/suissa about.me/suissa
Getting Kiked Can Hurt  You`re on Kik, and all of the sudden, you`re friend types a mean message. What do you do? A) You tell your friend how B) You.
Cosc 5/4730 Android Maps v2. Maps V1 and V2 In March 2013 google removed the ability to get a map key for version 1. Version 2 had been introduced in.
John Culviner johnculviner.com DEMO CODE:
4 ways to turn this around. Can’t do/say anything rightGetting nothing from relationshipTrust?????
“The only man who never makes a mistake is the man who never does anything.”
Pete Houston Maintenance, Improvement, Patch, Optimization, Errors, Bugs, …. oh I’m totally FUCKED UP! Coders tend to make many.
Chapter User authorization & safety Maciej Mensfeld Presented by: Maciej Mensfeld User authorization & safety dev.mensfeld.pl.
Rules and Regulations By: Maciej Gumieniak. Say something nice, or don’t say anything at all!  When talking to someone or about someone say only nice.
Ruby: An introduction - Who am I? Maciej Mensfeld Presented by: Maciej Mensfeld Ruby: An introduction dev.mensfeld.pl github.com/mensfeld.
1 Feel free to contact us at
Bootstrapping projects with Spring Boot. Me Doing stuff at Goyello for about 6Y Blogger: Twitter:
 First for the blog site we are going to use you will need a Google account. If you do not have one go to: 
Rounding Click Me to Practice When To Round When the question asks: – “Estimate how many…” – “About how many…” – Can you think of anymore?
Prof. James A. Landay University of Washington Spring 2008 Web Interface Design, Prototyping, and Implementation Rich Internet Applications: AJAX, Server.
Chapter 3.1 – RoR: An introduction Maciej Mensfeld Presented by: Maciej Mensfeld RoR: An introduction dev.mensfeld.pl github.com/mensfeld.
Chapter 3.2 – RoR: easier, faster, better Maciej Mensfeld Presented by: Maciej Mensfeld RoR: easier, faster, better mensfeld.pl github.com/mensfeld.
R4A Maciej Mensfeld O mnie: Maciej Mensfeld Ruby 4 Android dev.mensfeld.pl github.com/mensfeld.
Chapter 4.1 – Deeper into Rails Maciej Mensfeld Presented by: Maciej Mensfeld Deeper into Rails mensfeld.pl github.com/mensfeld senior.
QR CODE MAGIC Sign in via QR code on table. Stands for “Quick Response” codes Instead of a long URL address that students have to type in accurately WHAT.
Ruby on Rails Your first app. Rails files app/ Contains the controllers, models, views and assets for your application. You’ll focus on this folder for.
Strategies for Building Mobile Apps Using ArcGIS API for JavaScript Andy Gup, Lloyd Heberlie.
Happy Sad Angry Calm. Things that made me feel happy today Things that made me feel sad today.
Using and developing on the Android Dev Phone 1. Setup At the gmail credentials screen, skip the step Go to Settings->Wireless Controls  Enable Wi-Fi.
Parent-Teacher Communication Courtney Stockton Developed in Conjunction With the Ventura County Special Education Local Plan Area (SELPA)
 What is your topic or question that you want to answer?  Research the topic.
Web applications – what & why? Maciej Mensfeld Presented by: Maciej Mensfeld Web applications – what & why? dev.mensfeld.pl github.com/mensfeld.
Club Overview - Day 2 (Get Excited!!!!!). Agenda I. Log into Canvas II. Choosing a Level III. Learning and Creating IV. Closing.
Building Native Apps with ArcGIS API for JavaScript Using PhoneGap and jQuery Andy Gup, Lloyd Heberlie.
Don’t Reinvent the Wheel Zach Boerger February 2012.
Drama Improvements Fatima AlThani 6E. What Dramatic Skill Would You Say Is The Best Part In Your Performance? Why? Speaking, Because I Was Speaking Clear.
Club Overview - Day 3 (Get Excited!!!!!). Agenda I. Video II. Log into Canvas III. Choosing a Level IV. Learning and Creating V. Free stuff! VI. Closing.
ENA CONTACTS MERGE THIS IS ANSWER TO THE $1,000,000 QUESTION ASKED BY EVERY MILAN SPECIAL SCHOOL DISTRICT EMPLOYEE SINCE WE MOVED TO GOOGLE.
Prof. James A. Landay University of Washington Spring 2008 Web Interface Design, Prototyping, and Implementation Rich Internet Applications: AJAX, Server.
PLAN-IT Blake, Clint, Erik, Jay, Logan, Marisa. 2 Project Idea  The group trip planning web app  Uses Facebook Connect  Target audience is twenty-somethings.
East Greenbush Library Summer VolunTeen Training WARNING We lock the doors when we start. Please be inside & ready to go. Thank you!
Information Visualization for Research and Real- life applications PUNPITI PIAMSA-NGA.
1) Login to your armidalehigh google drive 2. Click on Apps.
Antiderivatives Section 4.8. Lesson Objectives Students Will… ›Find the antiderivative of a function from its derivative f(x). ›Apply antiderivatives.
Ruby Co-Learning Philip Maessoumi kiyumars.com
Combined DLC/TechMACC Meeting March 14, Topic: Bring Your Own Device/1:1 Today’s Agenda:
4 Starting Tips to Keep Your Car in Top Condition
JS Apps Online Team "Fortress"

Steering Group Member, Link Digital
Hire Toyota Innova in Delhi for Outstation Tour
CS5220 Advanced Topics in Web Programming Course Overview
Physical activities and activity tracker
Mobile App ux/ ui design In High Quality.
For all your restaurant searching needs
jQuery Widgets: Tabs Requires core jQuery library + jQuery UI
½ of 6 = 3.
Over the Easter holidays:
Helpful Vocabulary.
CS5220 Advanced Topics in Web Programming Course Overview
Book Talks On Google Docs, send me your presentation by Wednesday
Reflection – Treasure Trail
Hulu com forgot | | Hulu forgot password
Presentation transcript:

Location Tracker Maciej Mensfeld Presented by: Maciej Mensfeld Location Tracker dev.mensfeld.pl github.com/mensfeld

Location Tracker Maciej Mensfeld Please… …ask me to slow down, if I speak to quickly; …ask me again, if I forget; …ask questions, if anything i say is not clear; …feel free to share your own observations Location Tracker

Maciej Mensfeld Ruby on Rails MongoDB Mongoid Google Maps Jquery Bootstrap JSON API Location Tracker

Maciej Mensfeld Map with locations API Map should be searchable Nice UI Way to distinct devices Auto locations reloading (refresh) Requirements

Location Tracker Maciej Mensfeld

Location Tracker Maciej Mensfeld New Rails project rails new LocationTracker --skip-active-record Remove some stuff that we won’t use: tests :-( doc lib app/helpers db

Location Tracker Maciej Mensfeld Gemfile vim Gemfile << source ' gem 'rails', '4.0.4' gem 'sass-rails', '~> 4.0.2' gem 'uglifier', '>= 1.3.0' gem 'coffee-rails', '~> 4.0.0' gem 'pry' gem 'bson_ext' gem 'mongoid', '~> beta1', github: 'mongoid/mongoid' gem 'execjs' gem 'responders' gem 'haml' gem 'twitter-bootstrap-rails' bundle install

Location Tracker Maciej Mensfeld Mongoid + Model bundle exec rails g mongoid:config vim config/mongodb.yml What do we need to store? Current location (lat and lng) Point color Timestamps vim app/models/location.rb

Location Tracker Maciej Mensfeld Location.rb

bundle exec rails console Location Tracker Maciej Mensfeld Check it out!

Location Tracker Maciej Mensfeld Routes and controllers Routes can tell us a lot about application vim config/routes.rb Routes should be resource based Routes should RESTful (as much as they can be)

Location Tracker Maciej Mensfeld Routes and controllers vim controllers/application_controller.rb vim controllers/main_controller.rb

Location Tracker Maciej Mensfeld Routes and controllers vim controllers/locations_controller.rb

Location Tracker Maciej Mensfeld RoR: Bootstrap GRID:FLUIDGRID:FIXEDLAYOUT/FLUIDLAYOUTRESPONSIVEDESIGN:TYPOGRAPHY: CODEVIEWTABLES:FORMS:BUTTONS:ICONS:BUTTONGROUPS:TABS:PILLS:NAVLIS TS:NAVBARBREADCRUMBS:PAGINATION:PAGER:INLINELABELSBADGES:PAGEHEA DERUNIT:HEROUNITTHUMBNAILS:ALERTS:PROGRESSBARS:WELLSCLOSEICON:M ODALS:DROPDOWNS:SCROLLSPYTOGGLABLETABS:TOOLTIPS:POPOVERS:COLLAPS ECAROUSEL:TYPEAHEAD Sleek, intuitive, and powerful front-end framework for faster and easier web development. github.com/twitter/bootstrap twitter.github.io/bootstrap builtwithbootstrap.com wrapbootstrap.com

Chapter 3.2 – RoR: easier, faster, better Maciej Mensfeld Bootstrap installation bundle install Gemfile: gem "less-rails" gem "twitter-bootstrap-rails" rails generate bootstrap:install less rails g bootstrap:layout application fluid

Location Tracker Maciej Mensfeld Bootstrap basics: grids The default Bootstrap grid system utilizes 12 columns, making for a 940px wide container without responsive features enabled. With the responsive CSS file added, the grid adapts to be 724px and 1170px wide depending on your viewport. Below 767px viewports, the columns become fluid and stack vertically.

Location Tracker Maciej Mensfeld Bootstrap basics: grids For a simple two column layout, create a.row and add the appropriate number of.span* columns. As this is a 12-column grid, each.span* spans a number of those 12 columns, and should always add up to 12 for each row (or the number of columns in the parent). Make any row "fluid" by changing.row to.row-fluid. The column classes stay the exact same, making it easy to flip between fixed and fluid grids. The fluid grid system uses percents instead of pixels for column widths. It has the same responsive capabilities as our fixed grid system, ensuring proper proportions for key screen resolutions and devices.

Location Tracker Maciej Mensfeld Bootstrap basics: grids Move columns to the right using.offset* classes. Each class increases the left margin of a column by a whole column. For example,.offset4 moves.span4 over four columns.

Location Tracker Maciej Mensfeld Responsive bootstrap For faster mobile-friendly development, use these utility classes for showing and hiding content by device. Below is a table of the available classes and their effect on a given media query layout (labeled by device).

Location Tracker Maciej Mensfeld Responsive bootstrap

Location Tracker Maciej Mensfeld UI - Views

Location Tracker Maciej Mensfeld UI - Views

Location Tracker Maciej Mensfeld UI - Views And a blank vim views/main/index.html.haml

Location Tracker Maciej Mensfeld Make it good looking and make it fast! RoR: Bootstrap

Location Tracker Maciej Mensfeld Assets app/assets/fonts and app app/assets/stylesheets app/assets/javacripts Copy them from Pendrive ;) there’s whole UI and Bootstrap there But we still need some JS magic… ;)

Location Tracker Maciej Mensfeld Live long and prosper! Presented by: Maciej Mensfeld dev.mensfeld.pl github.com/mensfeld