Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Fari Liang
    @fariliang
    What do you mean?
    Sammy khaleel
    @Sammykhaleel
    the server is off how can i start it?
    Fari Liang
    @fariliang
    You mean the local server>
    Sammy khaleel
    @Sammykhaleel
    yes
    Sammy khaleel
    @Sammykhaleel
    I got a surprise for you! i was playing around to make IOS native app and i ended up running seedlr as a native IOS app!, i think we are in a good shape to even release IOS native app to apple store in the next version. this a pic of the app running in xcode IOS simulator ;).
    Fari Liang
    @fariliang
    Good news!
    That can make up for this Amazon Payments bad news :D
    Sammy khaleel
    @Sammykhaleel
    Screen Shot 2015-02-27 at 8.50.50 PM.png
    It running iside xcode!
    Fari Liang
    @fariliang
    Ok.
    Then we can code in rails for the mobile pages then have it run in the app?
    There is at least one thing we need to do for the mobile page before next Saturday, that we have to put the signup page up.
    My roommate will hold her ipad that day to ask people to signup.
    Sammy khaleel
    @Sammykhaleel
    yes this native IOS app that runs with rails server! so yes we only need to code in rails
    Fari Liang
    @fariliang
    That is easier, since we are both not so familiar with swift.
    Read the migration guide and take a look at the gem when you have time before tomorrow. I am adding some lines to the homepage now and finishing up the applications for incubators.
    Sammy khaleel
    @Sammykhaleel
    ok
    Fari Liang
    @fariliang
    Let's set a time for tomorrow. I live at 68 West 3rd Street, 5FE.
    Sammy khaleel
    @Sammykhaleel
    Screen Shot 2015-02-27 at 8.57.05 PM.png
    i just disabled the mobile views to test the site and you can do all the functionality
    Screen Shot 2015-02-27 at 8.59.01 PM.png
    Fari Liang
    @fariliang
    Ok
    Sammy khaleel
    @Sammykhaleel
    I'll let you know what time tomorrow.
    Fari Liang
    @fariliang
    Ok
    See you tomorrow.
    I will go buy some snacks for work...
    Sammy khaleel
    @Sammykhaleel
    Nice love snacks
    Fari Liang
    @fariliang
    This is going to be very hard for I can barely read it. Are you familiar with making API calls?
    Sammy khaleel
    @Sammykhaleel
    Hmmm not much i'll take a look at it.
    Fari Liang
    @fariliang
    Let me know a time.
    Sammy khaleel
    @Sammykhaleel
    does 5 or 6 works?
    Fari Liang
    @fariliang
    Ok.
    Sammy khaleel
    @Sammykhaleel
    ill be in way soon, where should i go?
    Fari Liang
    @fariliang
    68 west 3rd street.
    5FE
    FPS_Advanced_Quick_Start.pdf
    Sammy khaleel
    @Sammykhaleel
    require 'open-uri'
    require 'nokogiri'
    require 'pry'
    
    class ServiceSeeds
    
      attr_accessor :doc, :status_array, :description, :delay_header, :output_hash
    
      def initialize
        @output_hash = Hash.new {|hash, key| hash[key] = {}} 
        @doc = Nokogiri::XML(open("http://web.mta.info/status/serviceStatus.txt"))
      end
    
      def descriptive_status
        @doc.xpath('//subway//line').each do |line|
    
          train_name = line.at_css("/name").text
    
          train_status = line.at_css("status").text
          @output_hash[train_name][:status] = train_status 
          super_descriptive = line.xpath("text")
    
          html = Nokogiri::HTML(super_descriptive.text)
    
          if train_status == "GOOD SERVICE"
            super_descriptive = "On time"
          else  
            html.css(".plannedWorkDetailLink").each do |detail|
              planned_work = detail.children.text
              @output_hash[train_name][:header] = planned_work
            end
    
            html.css(".plannedWorkDetail").each do |detail|
              planned_work_detail = detail.children.text
              @output_hash[train_name][:details] = planned_work_detail
            end
    
            html.css(".TitleDelay").each do |detail| # working with this 
              title_delay = detail.children.text
              @output_hash[train_name][:title_delay] = title_delay
            end
    
            html.css(".TitleServiceChange").each do |detail|
              title_service_change = detail.children.text
              @output_hash[train_name][:service_change] = title_service_change
            end       
          end 
        end 
        @output_hash
      end
    end
    
     service = ServiceSeeds.new
    
    puts "deleting old Service seeds"
    Service.destroy_all
    
    service.descriptive_status.each do |train_name, info|
    
      Service.create(name: train_name, traffic: info[:status], description: info[:header], more_detail: info[:details])
    end
    
    
    puts "Updated service information"
    Sammy khaleel
    @Sammykhaleel
    Hey quick question a bout the mobile.css.scss did you copy the style sheet inside the promo and placed it in the mobile.css.scss?
    Fari Liang
    @fariliang
    No.
    It was from another template.
    You can remove it.
    Sammy khaleel
    @Sammykhaleel
    i can't when i do the template will not work
    and also i think it's the same style file i checked out
    style.css = custom.css.scss
    Fari Liang
    @fariliang
    Because there are many js files for the template.
    It took me several hours to get it to work.