问:
Attempting to add listener to barba.js
Using barba.js to make an SPA site, but I'm having trouble getting another plugin I'm using (fullpage.js) to fire after page content is updated.

Right now I have to click every link twice to trigger fullpage.js

This is the function I need to run after barba.js modifies the DOM:

```<code>$('#fullpage').fullpage({
  //Scrolling
  autoScrolling:false,
  scrollingSpeed: 2500,
  easing: 'swing',
  fitToSection: false,
 });
</code>```

I tried this:

```<code>Barba.Dispatcher.on('initStateChange', function() {
$('#fullpage').fullpage({
    //Scrolling
    autoScrolling:false,
    scrollingSpeed: 2500,
    easing: 'swing',
    fitToSection: false,
 });
});
</code>```

...but nothing happens.

Scripts included:

```<code><script src="js/jquery-3.1.1.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.fullPage.min.js"></script>
<script src="js/footer-reveal.min.js"></script>
<script src="js/jquery.smoothState.min.js"></script>
<script src="js/owl.carousel.min.js"></script>
<script src="js/contact.js"></script>
<script src="js/barba.min.js"></script>
<script src="js/ncscripts.js"></script>
</code>```

Content of 'ncscripts.js', where all my functions live:

```<code>Barba.Pjax.start();

Barba.Dispatcher.on('initStateChange', function() {
$('#fullpage').fullpage({
    //Scrolling
    autoScrolling:false,
    scrollingSpeed: 2500,
    easing: 'swing',
    fitToSection: false,
 });
});

$('#fullpage').fullpage({
  //Scrolling
  autoScrolling:false,
  scrollingSpeed: 2500,
  easing: 'swing',
  fitToSection: false,
});

$(document).ready(function(){
 $('.owl-carousel').owlCarousel();
});

$(document).ready(function() {
 $('#close-button').click(function() {
    $('#gallery').toggleClass('hidden');
 });
});

$("#button").click(function() {
 $('.cloak-hide').toggleClass('cloak-hide-active');
});

$("#button").click(function() {
 $('.menu-transform').toggleClass('menu-transform-active');
});

$("#button").click(function() {
 $('.resp-font-menu').toggleClass('resp-font-menu-transition-active');
});

$("#button").click(function() {
 $('.menu-footer-content').toggleClass
 ('menu-footer-content-transition-active');
});

$("#button").click(function() {
 $('.logo-black').toggleClass('logo-black-active');
});

$('.burger').click(function(){
 $(this).toggleClass('active');
});

$("#navbar-nav-list-element-left").hover(function() {
 $('.bar-left').toggleClass('bar-active');
});

$("#navbar-nav-list-element-middle").hover(function() {
 $('.bar-middle').toggleClass('bar-active');
});

$("#navbar-nav-list-element-right").hover(function() {
 $('.bar-right').toggleClass('bar-active');
});

$(window).scroll(function(){
    var scroll = $(window).scrollTop();
        $('#logo-black').css({'opacity':(( 60-scroll )/60)});
});

$('#container-master').footerReveal();
</code>```

Not sure how to move forward. Any advice/constructive criticism/feedback regarding this issue would be monumentally helpful!

*Also, I'm not sure if my arrangement of functions in 'ncscript.js' is optimal (or even 'correct'). Any advice regarding best practices would be appreciated.

答:
Try this:</p>

```<code>Barba.Dispatcher.on('newPageReady', function(current, prev, newContainer) {
$(newContainer).find('#fullpage').fullpage({
    //Scrolling
    autoScrolling:false,
    scrollingSpeed: 2500,
    easing: 'swing',
    fitToSection: false,
 });
});
</code>```

Title: Attempting to add listener to barba.js

Body:
Using barba.js to make an SPA site, but I'm having trouble getting another plugin I'm using (fullpage.js) to fire after page content is updated.

Right now I have to click every link twice to trigger fullpage.js

This is the function I need to run after barba.js modifies the DOM:

$('#fullpage').fullpage({
  //Scrolling
  autoScrolling:false,
  scrollingSpeed: 2500,
  easing: 'swing',
  fitToSection: false,
 });

I tried this:

Barba.Dispatcher.on('initStateChange', function() {
$('#fullpage').fullpage({
    //Scrolling
    autoScrolling:false,
    scrollingSpeed: 2500,
    easing: 'swing',
    fitToSection: false,
 });
});

...but nothing happens.

Scripts included:

Content of 'ncscripts.js', where all my functions live:

Barba.Pjax.start();

Barba.Dispatcher.on('initStateChange', function() {
$('#fullpage').fullpage({
    //Scrolling
    autoScrolling:false,
    scrollingSpeed: 2500,
    easing: 'swing',
    fitToSection: false,
 });
});

$('#fullpage').fullpage({
  //Scrolling
  autoScrolling:false,
  scrollingSpeed: 2500,
  easing: 'swing',
  fitToSection: false,
});

$(document).ready(function(){
 $('.owl-carousel').owlCarousel();
});

$(document).ready(function() {
 $('#close-button').click(function() {
    $('#gallery').toggleClass('hidden');
 });
});

$("#button").click(function() {
 $('.cloak-hide').toggleClass('cloak-hide-active');
});

$("#button").click(function() {
 $('.menu-transform').toggleClass('menu-transform-active');
});

$("#button").click(function() {
 $('.resp-font-menu').toggleClass('resp-font-menu-transition-active');
});

$("#button").click(function() {
 $('.menu-footer-content').toggleClass
 ('menu-footer-content-transition-active');
});

$("#button").click(function() {
 $('.logo-black').toggleClass('logo-black-active');
});

$('.burger').click(function(){
 $(this).toggleClass('active');
});

$("#navbar-nav-list-element-left").hover(function() {
 $('.bar-left').toggleClass('bar-active');
});

$("#navbar-nav-list-element-middle").hover(function() {
 $('.bar-middle').toggleClass('bar-active');
});

$("#navbar-nav-list-element-right").hover(function() {
 $('.bar-right').toggleClass('bar-active');
});

$(window).scroll(function(){
    var scroll = $(window).scrollTop();
        $('#logo-black').css({'opacity':(( 60-scroll )/60)});
});

$('#container-master').footerReveal();

Not sure how to move forward. Any advice/constructive criticism/feedback regarding this issue would be monumentally helpful!

*Also, I'm not sure if my arrangement of functions in 'ncscript.js' is optimal (or even 'correct'). Any advice regarding best practices would be appreciated.

Body:
Try this:

Barba.Dispatcher.on('newPageReady', function(current, prev, newContainer) {
$(newContainer).find('#fullpage').fullpage({
    //Scrolling
    autoScrolling:false,
    scrollingSpeed: 2500,
    easing: 'swing',
    fitToSection: false,
 });
});


来源: stackexchange

问:
Getting sum of numeric values in a string object in Dataframe
I have a string column in dataframe(train_2) like this:

```<code>  ID  Str_1
  id1  AA: 2, RR: 3,FF: 40
  id2  RR: 6,BB:
  id3  Blank
  id4  GG:20,AA:20
</code>```

Expected output

```<code>ID Sum
id1 45
id2 6
id3 0
id4 40
</code>```

I tried something like this for iterating over rows, but its throwing me Keyerror 5:

```<code>w1 = train_2['Str_1']
w1 = w1.str.split(',')

main = []
for i in np.arange(train_2.shape[0]):
    d1 = w1[i]
    nest = []
    nest = [re.sub(pattern = '.*\:', repl=' ', string= d1[k]) for k in list(np.arange(len(d1)))]
    main.append(nest)
</code>```

How can i achieve this? is there any easier method to do it?

答:
If you are using pandas, you can use str.extractall to get all the numbers from each row, and then sum the numbers up:

```<code>train_2['sum'] = train_2['Str_1'].str.extractall('([0-9]+)').astype(int).groupby(level=0).sum()

train_2.fillna(0)

#    ID Str_1                sum
#0  id1 AA: 2, RR: 3,FF: 40  45.0
#1  id2 RR: 6,BB:            6.0
#2  id3 Blank                0.0
#3  id4 GG:20,AA:20          40.0
</code>```

ContentLicense: CC BY-SA 3.0

Body:
I have a string column in dataframe(train_2) like this:

  ID  Str_1
  id1  AA: 2, RR: 3,FF: 40
  id2  RR: 6,BB:
  id3  Blank
  id4  GG:20,AA:20

Expected output

ID Sum
id1 45
id2 6
id3 0
id4 40

I tried something like this for iterating over rows, but its throwing me Keyerror 5:

w1 = train_2['Str_1']
w1 = w1.str.split(',')

main = []
for i in np.arange(train_2.shape[0]):
    d1 = w1[i]
    nest = []
    nest = [re.sub(pattern = '.*\:', repl=' ', string= d1[k]) for k in list(np.arange(len(d1)))]
    main.append(nest)

How can i achieve this? is there any easier method to do it?

Body:
If you are using pandas, you can use str.extractall to get all the numbers from each row, and then sum the numbers up:

train_2['sum'] = train_2['Str_1'].str.extractall('([0-9]+)').astype(int).groupby(level=0).sum()

train_2.fillna(0)

#    ID Str_1                sum
#0  id1 AA: 2, RR: 3,FF: 40  45.0
#1  id2 RR: 6,BB:            6.0
#2  id3 Blank                0.0
#3  id4 GG:20,AA:20          40.0


问:
Finding the largest array index with negative value
Given an array of positive elements (1 based indexing), you have to process two types of queries:

(V) find the sum of numbers in the range 1:V (both inclusive)

(V, X)  subtract the number X to from all in the range 1:V and report the largest index i in range 1:V such that the value at that index is negative, where the answer for this query is 0 if no such index exists.

I can do the first query using fenwick tree or segment tree but how do i support second query? I have already tried an O(n) time per query approach just checking each element in range 1...V but it times out. I need to process 10^5 such queries over an array of size 10^5.

答:
The most straight-forward approach is to find the element in O(n) time by simply searching through the array, like so:

arr = [0,5,2,3,10]
largest_i = -1
X = 7
for i in range(len(arr)):
  if arr[i]-X<0:
    largest_i = i
largest_i+1 #Your answer (shifting from a 0-based to a 1-based index)
```

<p>Given the small size of the array and the time constraints, this should work in any compiled and most interpreted languages.</p>

<p><strong>EDIT</strong></p>

<p>I stand corrected (and it should have been obvious that the worst-case of 10^10 was pretty bad). Since you say this times out, here's a more a sophisticated approach. </p>

<ol>
<li>Create an AVL tree, or another self-balancing binary tree which supports insertion and removal.</li>
<li>Create key items with attributes <code>value</code> and <code>index</code>. <code>value</code> is the value of the item whereas <code>index</code> is the item's position in the flat array.</li>
<li>Create a hashmap that links to tree nodes based on their <code>index</code>.</li>
<li>Add items to the tree so that it balances by <code>value</code>, but remove items based on <code>index</code>.</li>
<li>When your flat array is updated, update the tree accordingly.</li>
<li>To answer Query 2, do an in-order traversal of the tree until <code>value-X>=0</code>. Return the <code>index</code> of the last nodes for which this was false.</li>
</ol>

<p>Insertion and deletion of the tree are both in <em>O(log n)</em> whereas the in-order traversal has a worst-case of <em>O(n)</em>, but is guaranteed to check only elements which may be negative.</p>

<p>A possible implementation for this is as follows:</p>

```#include <map>
#include <vector>
#include <unordered_map>
#include <algorithm>
#include <cstdlib>
#include <cassert>

class MagicArray {
 private:
  typedef std::multimap<int, int> arr_idx_t;
  std::vector<int> arr; //Array of possibly negative integers
  arr_idx_t arr_sorted; //Self-balancing tree of (Integer, Index) pairs
  std::unordered_map<int, arr_idx_t::iterator> arr_idx; //Hash table linking Index to a (Integer, Index)
  void indexElement(const int idx){
    auto ret = arr_sorted.emplace(arr.at(idx),idx);
    arr_idx[idx] = ret;
  }
 public:
  void insert(const int i){
    arr.emplace_back(i);
    const auto idx = arr.size()-1; //Index of most recently inserted element
    indexElement(idx);
  }
  void alter(const int idx, const int newval){
    arr.at(idx) = newval;
    arr_sorted.erase(arr_idx[idx]); //Remove old value from tree
    indexElement(idx);
  }
  int findMatch(const int X){
    //The next two lines reduce run-time from 3s to 0.031s
    if(arr_sorted.rbegin()->first-X<0) //Even largest element is less than zero
      return arr.size();

    int foundi = -1;
    for(const auto &kv: arr_sorted){
      if(kv.first-X<0){
        foundi = std::max(foundi,kv.second);
      } else {
        break;
      }
    }
    return foundi+1;
  }
};

int main(){
  assert(RAND_MAX>10000000); //Otherwise code below will not work

  MagicArray ma;
  for(unsigned int i=0;i<10000;i++)
    ma.insert(rand()%10000);

  for(unsigned int i=0;i<10000;i++){
    ma.alter(rand()%10000,rand()%10000);
    ma.findMatch(rand()%1000000);
  }
}
```

If you leave out the first two code lines of findMatch this takes 3s on my  Intel(R) Core(TM) i5 CPU M480@2.67GHz and 2.359s on an Intel(R) Xeon(R) CPU E5-2680v3@2.50GHz on a supercomputer.

If you include the first two code lines of findMatch then the code takes <0.035s on both machines.

This is why it's very important to consider the ranges of the values. You said that the array includes values in the range [0,10⁵] whereas X is in the range [0,10⁷], this means that 99% of the values X takes will be larger than any value in the array and the answer will therefore simply be the size of the array.

So the trick is to use an inexpensive check to see if we know the answer simply and, if not, to then perform the more expensive search.

Body:
The most straight-forward approach is to find the element in O(n) time by simply searching through the array, like so:

arr = [0,5,2,3,10]
largest_i = -1
X = 7
for i in range(len(arr)):
  if arr[i]-X<0:
    largest_i = i
largest_i+1 #Your answer (shifting from a 0-based to a 1-based index)

Given the small size of the array and the time constraints, this should work in any compiled and most interpreted languages.

EDIT

I stand corrected (and it should have been obvious that the worst-case of 10^10 was pretty bad). Since you say this times out, here's a more a sophisticated approach.

Create an AVL tree, or another self-balancing binary tree which supports insertion and removal.

Create key items with attributes value and index. value is the value of the item whereas index is the item's position in the flat array.

Create a hashmap that links to tree nodes based on their index.

Add items to the tree so that it balances by value, but remove items based on index.

When your flat array is updated, update the tree accordingly.

To answer Query 2, do an in-order traversal of the tree until value-X>=0. Return the index of the last nodes for which this was false.

Insertion and deletion of the tree are both in O(log n) whereas the in-order traversal has a worst-case of O(n), but is guaranteed to check only elements which may be negative.

A possible implementation for this is as follows:

#include <map>
#include <vector>
#include <unordered_map>
#include <algorithm>
#include <cstdlib>
#include <cassert>

class MagicArray {
 private:
  typedef std::multimap<int, int> arr_idx_t;
  std::vector<int> arr; //Array of possibly negative integers
  arr_idx_t arr_sorted; //Self-balancing tree of (Integer, Index) pairs
  std::unordered_map<int, arr_idx_t::iterator> arr_idx; //Hash table linking Index to a (Integer, Index)
  void indexElement(const int idx){
    auto ret = arr_sorted.emplace(arr.at(idx),idx);
    arr_idx[idx] = ret;
  }
 public:
  void insert(const int i){
    arr.emplace_back(i);
    const auto idx = arr.size()-1; //Index of most recently inserted element
    indexElement(idx);
  }
  void alter(const int idx, const int newval){
    arr.at(idx) = newval;
    arr_sorted.erase(arr_idx[idx]); //Remove old value from tree
    indexElement(idx);
  }
  int findMatch(const int X){
    //The next two lines reduce run-time from 3s to 0.031s
    if(arr_sorted.rbegin()->first-X<0) //Even largest element is less than zero
      return arr.size();

    int foundi = -1;
    for(const auto &kv: arr_sorted){
      if(kv.first-X<0){
        foundi = std::max(foundi,kv.second);
      } else {
        break;
      }
    }
    return foundi+1;
  }
};

int main(){
  assert(RAND_MAX>10000000); //Otherwise code below will not work

  MagicArray ma;
  for(unsigned int i=0;i<10000;i++)
    ma.insert(rand()%10000);

  for(unsigned int i=0;i<10000;i++){
    ma.alter(rand()%10000,rand()%10000);
    ma.findMatch(rand()%1000000);
  }
}

If you leave out the first two code lines of findMatch this takes 3s on my  Intel(R) Core(TM) i5 CPU M480@2.67GHz and 2.359s on an Intel(R) Xeon(R) CPU E5-2680v3@2.50GHz on a supercomputer.

If you include the first two code lines of findMatch then the code takes <0.035s on both machines.

This is why it's very important to consider the ranges of the values. You said that the array includes values in the range [0,10⁵] whereas X is in the range [0,10⁷], this means that 99% of the values X takes will be larger than any value in the array and the answer will therefore simply be the size of the array.

So the trick is to use an inexpensive check to see if we know the answer simply and, if not, to then perform the more expensive search.


问:
Render Javascript in Angular2
I am new to angular and am trying to configure paypal. This is the javascript that I want to use.

https://developer.paypal.com/demo/checkout/#/pattern/client

When I copy paste the script body into html, nothing comes up.

I tried to put the script in the ng-onit function but I'm not really sure how to do it..

component.js

```<code>    ngOnInit = function ()
    {
    paypal.Button.render({

        ...
</code>```

html

```<code>  <script src="https://www.paypalobjects.com/api/checkout.js"></script>
 div id="paypal-button-container"></div
</code>```

Am I suppose to put the script reference somewhere else in component.js??

Thanks

答:
I decided to use another approach.. (paypal in angular2
https://github.com/musale/angular2-paypal)

```<code><form #form class="form-inline" name="_xclick"
action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="mmusale93@gmail.com">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="item_name" value="Paypal demo charge">
<input name="item_number" type="hidden" value="0001"/>
<input type="text" class="form-control" size="30" id="paypalAmount" name="amount"/>
<input type="hidden" name="return" value="https://localhost:4200/" />
<input type="hidden" name="cancel_return" value="https://localhost:4200/" />
<input type="hidden" name="custom" value={{title}}>
<!--pass your notification URL-->
<input name="notify_url" value="YOUR NOTIFICATION URL" type="hidden"><br/>
<br/>
<input (click)="form.submit()" type="image"
src="https://www.paypal.com/en_US/i/btn/btn_buynow_LG.gif" border="0"
            name="submit" alt="Make payments with PayPal - it's fast, free
and secure!"/>
</form>
</code>```

This made a paypal button and all it's dynamic elements easy.

Title: Render Javascript in Angular2

Body:
I am new to angular and am trying to configure paypal. This is the javascript that I want to use.

https://developer.paypal.com/demo/checkout/#/pattern/client

When I copy paste the script body into html, nothing comes up.

I tried to put the script in the ng-onit function but I'm not really sure how to do it..

component.js

    ngOnInit = function ()
    {
    paypal.Button.render({

        ...

html

 div id="paypal-button-container"></div

Am I suppose to put the script reference somewhere else in component.js??

Thanks

Body:
I decided to use another approach.. (paypal in angular2
https://github.com/musale/angular2-paypal)

<form #form class="form-inline" name="_xclick"
action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="mmusale93@gmail.com">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="item_name" value="Paypal demo charge">
<input name="item_number" type="hidden" value="0001"/>
<input type="text" class="form-control" size="30" id="paypalAmount" name="amount"/>
<input type="hidden" name="return" value="https://localhost:4200/" />
<input type="hidden" name="cancel_return" value="https://localhost:4200/" />
<input type="hidden" name="custom" value={{title}}>
<!--pass your notification URL-->
<input name="notify_url" value="YOUR NOTIFICATION URL" type="hidden"><br/>
<br/>
<input (click)="form.submit()" type="image"
src="https://www.paypal.com/en_US/i/btn/btn_buynow_LG.gif" border="0"
            name="submit" alt="Make payments with PayPal - it's fast, free
and secure!"/>
</form>

This made a paypal button and all it's dynamic elements easy.


问:
Loop over ID's and add an extra attr()
I'm trying to add an extra attribute depending on a class name but it's not quite working the way I want it.
My menu structure (simplified) is as follows:

```<code><ul class="main-menu">

<li>
    <a>Menu 1</a>
    <div class="uk-navbar-dropdown">
        <div id="km-megamenu-960" class="uk-navbar-dropdown-grid km-mode-click km-megamenu">dropdown content</div>
    </div>
</li>

<li><a>Menu 2</a></li>

<li>
    <a>Menu 3</a>
    <div class="uk-navbar-dropdown">
        <div id="km-megamenu-962" class="uk-navbar-dropdown-grid km-mode-hover km-megamenu">dropdown content</div>
    </div>
</li>

...

</ul>
</code>```

My jquery code is as follows:

```<code>var ids = $('.km-megamenu').map(function() {
  return this.id;
}).get().join(',#');

$('#' + ids).each( function(i) {
    if ( $(this).hasClass('km-mode-click') ) {
        $(this).prev(".uk-navbar-dropdown").attr('mode', 'click');
    }

    if ( $(this).hasClass('km-mode-hover') ) {
        $(this).prev(".uk-navbar-dropdown").attr('mode', 'hover');
    }
});
</code>```

Based on the class name km-mode-hover or km-mode-click, I want to add an extra attr inside the uk-navbar-dropdown div. E.g:

```<code><div class="uk-navbar-dropdown" mode="click">
</code>```

When using console all ids are correct. I just have to loop through them correctly. I'm still a newbie when it comes to jquery,
so if there's anyone who can put me on the right track, I'd really appreciate it.

答:
Try using the element argument passed in by .each() instead of $(this)</p>

```<code> var ids = $('.km-megamenu').map(function() {
      return this.id;
    }).get().join(',#');

    $('#' + ids).each( function(index, element) {
        if ( element.hasClass('km-mode-click') ) {
            element.prev(".uk-navbar-dropdown").attr('mode', 'click');
        }

        if ( $(this).hasClass('km-mode-hover') ) {
            element.prev(".uk-navbar-dropdown").attr('mode', 'hover');
        }
    });
</code>```

Title: Loop over ID's and add an extra attr()

Body:
I'm trying to add an extra attribute depending on a class name but it's not quite working the way I want it.
My menu structure (simplified) is as follows:

    Menu 1

dropdown content

Menu 2

    Menu 3

dropdown content

...

My jquery code is as follows:

var ids = $('.km-megamenu').map(function() {
  return this.id;
}).get().join(',#');

$('#' + ids).each( function(i) {
    if ( $(this).hasClass('km-mode-click') ) {
        $(this).prev(".uk-navbar-dropdown").attr('mode', 'click');
    }

    if ( $(this).hasClass('km-mode-hover') ) {
        $(this).prev(".uk-navbar-dropdown").attr('mode', 'hover');
    }
});

Based on the class name km-mode-hover or km-mode-click, I want to add an extra attr inside the uk-navbar-dropdown div. E.g:

When using console all ids are correct. I just have to loop through them correctly. I'm still a newbie when it comes to jquery,
so if there's anyone who can put me on the right track, I'd really appreciate it.

Body:
Try using the element argument passed in by .each() instead of $(this)

 var ids = $('.km-megamenu').map(function() {
      return this.id;
    }).get().join(',#');

    $('#' + ids).each( function(index, element) {
        if ( element.hasClass('km-mode-click') ) {
            element.prev(".uk-navbar-dropdown").attr('mode', 'click');
        }

        if ( $(this).hasClass('km-mode-hover') ) {
            element.prev(".uk-navbar-dropdown").attr('mode', 'hover');
        }
    });


问:
Stuck Deploying my first app engine app
I am deploying my first app to google app engine and I am getting stuck at "Started cloud build" obviously there is some kind of problem with the build but I am unsure how to diagnose or proceed.

I have included the LOG file if that helps

```    2017-05-25 17:13:32,680 DEBUG    root            Loaded Command Group: ['gcloud', 'app']
2017-05-25 17:13:32,864 DEBUG    root            Loaded Command Group: ['gcloud', 'app', 'deploy']
2017-05-25 17:13:32,865 DEBUG    root            Running [gcloud.app.deploy] with arguments: []
2017-05-25 17:13:33,016 DEBUG    root            API endpoint: [https://appengine.googleapis.com/], API version: [v1]
2017-05-25 17:13:34,256 INFO     ___FILE_ONLY___ You are about to deploy the following services:

2017-05-25 17:13:34,257 INFO     ___FILE_ONLY___  - single-quanta-158320/default/20170525t171334 (from [D:\Path Redacted\app.yaml])
     Deploying to URL: [https://URL Redacted]

2017-05-25 17:17:26,509 DEBUG    root            No bucket specified, retrieving default bucket.
2017-05-25 17:17:26,512 DEBUG    root            Using bucket [gs://Redacted].
2017-05-25 17:17:26,512 INFO     ___FILE_ONLY___ If this is your first deployment, this may take a while...
2017-05-25 17:17:26,513 DEBUG    root            Host: appengine.google.com
2017-05-25 17:17:26,519 DEBUG    googlecloudsdk.third_party.appengine.tools.appengine_rpc _Authenticate configuring auth; needs_auth=False
2017-05-25 17:17:26,520 DEBUG    googlecloudsdk.third_party.appengine.tools.appengine_rpc Sending request to https://appengine.google.com/api/vms/prepare?app_id=Redacted headers={'X-appcfg-api-version': '1', 'content-length': '0', 'Content-Type': 'application/octet-stream'} body=
2017-05-25 17:17:26,520 INFO     oauth2client.transport Attempting refresh to obtain initial access_token
2017-05-25 17:17:26,520 INFO     oauth2client.client Refreshing access_token
2017-05-25 17:17:31,799 DEBUG    root            Got response: {bucket: vm-containers.Redacted.appspot.com, path: /containers}

2017-05-25 17:17:31,805 INFO     ___FILE_ONLY___

2017-05-25 17:17:32,040 INFO     ___FILE_ONLY___ Beginning deployment of service [default]...

2017-05-25 17:17:32,042 DEBUG    root            No staging command found for runtime [php] and environment [FLEX].
2017-05-25 17:17:32,042 INFO     root            Need Dockerfile to be generated for runtime php
2017-05-25 17:17:32,042 INFO     ___FILE_ONLY___ Building and pushing image for service [default]

2017-05-25 17:17:32,121 INFO     root            Not checking for [Custom] because runtime is [php]
2017-05-25 17:17:32,121 INFO     root            Not checking for [Go] because runtime is [php]
2017-05-25 17:17:32,122 INFO     root            Not checking for [Ruby] because runtime is [php]
2017-05-25 17:17:32,122 INFO     root            Not checking for [Node.js] because runtime is [php]
2017-05-25 17:17:32,122 INFO     root            Not checking for [Java] because runtime is [php]
2017-05-25 17:17:32,122 INFO     root            Not checking for [Python Compat] because runtime is [php]
2017-05-25 17:17:32,122 INFO     root            Not checking for [Python] because runtime is [php]
2017-05-25 17:17:32,167 INFO     root            Not writing [app.yaml], it already exists.
2017-05-25 17:17:59,190 INFO     root            Ignoring directory [.git]: Directory matches ignore regex.
2017-05-25 17:17:59,190 INFO     root            Ignoring file [.gitattributes]: File matches ignore regex.
2017-05-25 17:17:59,190 INFO     root            Ignoring file [.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,193 INFO     root            Ignoring file [vendor/webmozart/assert/.composer-auth.json]: File matches ignore regex.
2017-05-25 17:17:59,193 INFO     root            Ignoring file [vendor/webmozart/assert/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,193 INFO     root            Ignoring file [vendor/webmozart/assert/.styleci.yml]: File matches ignore regex.
2017-05-25 17:17:59,194 INFO     root            Ignoring file [vendor/webmozart/assert/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,194 INFO     root            Ignoring file [vendor/torann/currency/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,194 INFO     root            Ignoring file [vendor/torann/currency/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,194 INFO     root            Ignoring file [vendor/torann/currency/tests/.gitkeep]: File matches ignore regex.
2017-05-25 17:17:59,197 INFO     root            Ignoring file [vendor/symfony/yaml/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,197 INFO     root            Ignoring file [vendor/symfony/var-dumper/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,200 INFO     root            Ignoring file [vendor/symfony/translation/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,207 INFO     root            Ignoring file [vendor/symfony/routing/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,214 INFO     root            Ignoring file [vendor/symfony/process/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,217 INFO     root            Ignoring file [vendor/symfony/http-kernel/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,233 INFO     root            Ignoring file [vendor/symfony/http-foundation/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,237 INFO     root            Ignoring file [vendor/symfony/http-foundation/Tests/File/Fixtures/.unknownextension]: File matches ignore regex.
2017-05-25 17:17:59,239 INFO     root            Ignoring file [vendor/symfony/http-foundation/Tests/File/Fixtures/directory/.empty]: File matches ignore regex.
2017-05-25 17:17:59,240 INFO     root            Ignoring file [vendor/symfony/finder/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,244 INFO     root            Ignoring file [vendor/symfony/event-dispatcher/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,246 INFO     root            Ignoring file [vendor/symfony/dom-crawler/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,247 INFO     root            Ignoring file [vendor/symfony/debug/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,250 INFO     root            Ignoring file [vendor/symfony/css-selector/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,256 INFO     root            Ignoring file [vendor/symfony/console/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,269 INFO     root            Ignoring file [vendor/swiftmailer/swiftmailer/.gitattributes]: File matches ignore regex.
2017-05-25 17:17:59,269 INFO     root            Ignoring file [vendor/swiftmailer/swiftmailer/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,269 INFO     root            Ignoring file [vendor/swiftmailer/swiftmailer/.php_cs.dist]: File matches ignore regex.
2017-05-25 17:17:59,269 INFO     root            Ignoring file [vendor/swiftmailer/swiftmailer/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,292 INFO     root            Ignoring file [vendor/shpasser/gae-support-l5/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,292 INFO     root            Ignoring file [vendor/shpasser/gae-support-l5/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,292 INFO     root            Ignoring file [vendor/shpasser/gae-support-l5/tests/.gitkeep]: File matches ignore regex.
2017-05-25 17:17:59,295 INFO     root            Ignoring file [vendor/sebastian/version/.gitattributes]: File matches ignore regex.
2017-05-25 17:17:59,295 INFO     root            Ignoring file [vendor/sebastian/version/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,296 INFO     root            Ignoring file [vendor/sebastian/recursion-context/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,296 INFO     root            Ignoring file [vendor/sebastian/recursion-context/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,296 INFO     root            Ignoring file [vendor/sebastian/global-state/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,296 INFO     root            Ignoring file [vendor/sebastian/global-state/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,298 INFO     root            Ignoring file [vendor/sebastian/exporter/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,298 INFO     root            Ignoring file [vendor/sebastian/exporter/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,299 INFO     root            Ignoring file [vendor/sebastian/environment/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,299 INFO     root            Ignoring file [vendor/sebastian/environment/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,299 INFO     root            Ignoring file [vendor/sebastian/diff/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,299 INFO     root            Ignoring file [vendor/sebastian/diff/.php_cs]: File matches ignore regex.
2017-05-25 17:17:59,299 INFO     root            Ignoring file [vendor/sebastian/diff/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,301 INFO     root            Ignoring file [vendor/sebastian/comparator/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,301 INFO     root            Ignoring file [vendor/sebastian/comparator/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,305 INFO     root            Ignoring file [vendor/psy/psysh/.editorconfig]: File matches ignore regex.
2017-05-25 17:17:59,305 INFO     root            Ignoring file [vendor/psy/psysh/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,306 INFO     root            Ignoring directory [vendor/psy/psysh/.phan]: Directory matches ignore regex.
2017-05-25 17:17:59,306 INFO     root            Ignoring file [vendor/psy/psysh/.php_cs]: File matches ignore regex.
2017-05-25 17:17:59,306 INFO     root            Ignoring file [vendor/psy/psysh/.styleci.yml]: File matches ignore regex.
2017-05-25 17:17:59,306 INFO     root            Ignoring file [vendor/psy/psysh/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,308 INFO     root            Ignoring file [vendor/psy/psysh/test/fixtures/project/.psysh.php]: File matches ignore regex.
2017-05-25 17:17:59,308 INFO     root            Ignoring directory [vendor/psy/psysh/test/fixtures/mixed/.psysh]: Directory matches ignore regex.
2017-05-25 17:17:59,308 INFO     root            Ignoring directory [vendor/psy/psysh/test/fixtures/legacy/.psysh]: Directory matches ignore regex.
2017-05-25 17:17:59,308 INFO     root            Ignoring directory [vendor/psy/psysh/test/fixtures/default/.config]: Directory matches ignore regex.
2017-05-25 17:17:59,309 INFO     root            Ignoring directory [vendor/psy/psysh/test/fixtures/default/.local]: Directory matches ignore regex.
2017-05-25 17:17:59,318 INFO     root            Ignoring file [vendor/psr/log/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,319 INFO     root            Ignoring file [vendor/phpunit/phpunit-mock-objects/.gitattributes]: File matches ignore regex.
2017-05-25 17:17:59,319 INFO     root            Ignoring file [vendor/phpunit/phpunit-mock-objects/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,319 INFO     root            Ignoring file [vendor/phpunit/phpunit-mock-objects/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,325 INFO     root            Ignoring file [vendor/phpunit/phpunit/.gitattributes]: File matches ignore regex.
2017-05-25 17:17:59,325 INFO     root            Ignoring file [vendor/phpunit/phpunit/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,325 INFO     root            Ignoring file [vendor/phpunit/phpunit/.php_cs]: File matches ignore regex.
2017-05-25 17:17:59,325 INFO     root            Ignoring file [vendor/phpunit/phpunit/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,351 INFO     root            Ignoring file [vendor/phpunit/php-token-stream/.gitattributes]: File matches ignore regex.
2017-05-25 17:17:59,351 INFO     root            Ignoring file [vendor/phpunit/php-token-stream/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,351 INFO     root            Ignoring file [vendor/phpunit/php-token-stream/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,352 INFO     root            Ignoring file [vendor/phpunit/php-timer/.gitattributes]: File matches ignore regex.
2017-05-25 17:17:59,352 INFO     root            Ignoring file [vendor/phpunit/php-timer/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,352 INFO     root            Ignoring file [vendor/phpunit/php-timer/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,354 INFO     root            Ignoring file [vendor/phpunit/php-text-template/.gitattributes]: File matches ignore regex.
2017-05-25 17:17:59,354 INFO     root            Ignoring file [vendor/phpunit/php-text-template/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,354 INFO     root            Ignoring file [vendor/phpunit/php-file-iterator/.gitattributes]: File matches ignore regex.
2017-05-25 17:17:59,354 INFO     root            Ignoring file [vendor/phpunit/php-file-iterator/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,355 INFO     root            Ignoring file [vendor/phpunit/php-code-coverage/.gitattributes]: File matches ignore regex.
2017-05-25 17:17:59,355 INFO     root            Ignoring file [vendor/phpunit/php-code-coverage/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,355 INFO     root            Ignoring file [vendor/phpunit/php-code-coverage/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,361 INFO     root            Ignoring file [vendor/phpspec/prophecy/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,362 INFO     root            Ignoring file [vendor/phpspec/prophecy/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,414 INFO     root            Ignoring file [vendor/phpdocumentor/type-resolver/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,414 INFO     root            Ignoring file [vendor/phpdocumentor/type-resolver/.scrutinizer.yml]: File matches ignore regex.
2017-05-25 17:17:59,414 INFO     root            Ignoring file [vendor/phpdocumentor/type-resolver/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,415 INFO     root            Ignoring file [vendor/phpdocumentor/reflection-docblock/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,415 INFO     root            Ignoring file [vendor/phpdocumentor/reflection-docblock/.scrutinizer.yml]: File matches ignore regex.
2017-05-25 17:17:59,415 INFO     root            Ignoring file [vendor/phpdocumentor/reflection-docblock/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,421 INFO     root            Ignoring file [vendor/phpdocumentor/reflection-common/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,421 INFO     root            Ignoring file [vendor/phenx/php-svg-lib/.gitattributes]: File matches ignore regex.
2017-05-25 17:17:59,421 INFO     root            Ignoring file [vendor/phenx/php-svg-lib/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,421 INFO     root            Ignoring file [vendor/phenx/php-svg-lib/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,424 INFO     root            Ignoring file [vendor/phenx/php-font-lib/.gitattributes]: File matches ignore regex.
2017-05-25 17:17:59,424 INFO     root            Ignoring file [vendor/phenx/php-font-lib/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,424 INFO     root            Ignoring file [vendor/phenx/php-font-lib/.htaccess]: File matches ignore regex.
2017-05-25 17:17:59,428 INFO     root            Ignoring file [vendor/nikic/php-parser/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,428 INFO     root            Ignoring file [vendor/nikic/php-parser/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,450 INFO     root            Ignoring file [vendor/nesbot/carbon/.php_cs.dist]: File matches ignore regex.
2017-05-25 17:17:59,453 INFO     root            Ignoring file [vendor/mtdowling/cron-expression/.editorconfig]: File matches ignore regex.
2017-05-25 17:17:59,453 INFO     root            Ignoring file [vendor/monolog/monolog/.php_cs]: File matches ignore regex.
2017-05-25 17:17:59,457 INFO     root            Ignoring file [vendor/monolog/monolog/tests/Monolog/Handler/Fixtures/.gitkeep]: File matches ignore regex.
2017-05-25 17:17:59,463 INFO     root            Ignoring file [vendor/mockery/mockery/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,463 INFO     root            Ignoring file [vendor/mockery/mockery/.php_cs]: File matches ignore regex.
2017-05-25 17:17:59,463 INFO     root            Ignoring file [vendor/mockery/mockery/.scrutinizer.yml]: File matches ignore regex.
2017-05-25 17:17:59,463 INFO     root            Ignoring file [vendor/mockery/mockery/.styleci.yml]: File matches ignore regex.
2017-05-25 17:17:59,463 INFO     root            Ignoring file [vendor/mockery/mockery/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,470 INFO     root            Ignoring file [vendor/mockery/mockery/docs/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,471 INFO     root            Ignoring file [vendor/maddhatter/laravel-fullcalendar/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,471 INFO     root            Ignoring file [vendor/maddhatter/laravel-fullcalendar/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,473 INFO     root            Ignoring file [vendor/maddhatter/laravel-fullcalendar/tests/.gitkeep]: File matches ignore regex.
2017-05-25 17:17:59,476 INFO     root            Ignoring file [vendor/league/flysystem/docs/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,522 INFO     root            Ignoring file [vendor/jakub-onderka/php-console-highlighter/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,522 INFO     root            Ignoring file [vendor/jakub-onderka/php-console-highlighter/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,523 INFO     root            Ignoring file [vendor/jakub-onderka/php-console-color/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,523 INFO     root            Ignoring file [vendor/jakub-onderka/php-console-color/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,525 INFO     root            Ignoring file [vendor/hamcrest/hamcrest-php/.coveralls.yml]: File matches ignore regex.
2017-05-25 17:17:59,525 INFO     root            Ignoring file [vendor/hamcrest/hamcrest-php/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,525 INFO     root            Ignoring file [vendor/hamcrest/hamcrest-php/.gush.yml]: File matches ignore regex.
2017-05-25 17:17:59,525 INFO     root            Ignoring file [vendor/hamcrest/hamcrest-php/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,535 INFO     root            Ignoring file [vendor/guzzlehttp/guzzle/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,536 INFO     root            Ignoring file [vendor/fzaninotto/faker/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,536 INFO     root            Ignoring file [vendor/fzaninotto/faker/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,566 INFO     root            Ignoring file [vendor/flynsarmy/db-blade-compiler/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,566 INFO     root            Ignoring file [vendor/flynsarmy/db-blade-compiler/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,566 INFO     root            Ignoring file [vendor/flynsarmy/db-blade-compiler/tests/.gitkeep]: File matches ignore regex.
2017-05-25 17:17:59,568 INFO     root            Ignoring file [vendor/flynsarmy/db-blade-compiler/config/.gitkeep]: File matches ignore regex.
2017-05-25 17:17:59,568 INFO     root            Ignoring file [vendor/dompdf/dompdf/.gitattributes]: File matches ignore regex.
2017-05-25 17:17:59,568 INFO     root            Ignoring file [vendor/dompdf/dompdf/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,568 INFO     root            Ignoring file [vendor/dompdf/dompdf/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,575 INFO     root            Ignoring file [vendor/doctrine/instantiator/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,575 INFO     root            Ignoring file [vendor/doctrine/instantiator/.scrutinizer.yml]: File matches ignore regex.
2017-05-25 17:17:59,575 INFO     root            Ignoring file [vendor/doctrine/instantiator/.travis.install.sh]: File matches ignore regex.
2017-05-25 17:17:59,575 INFO     root            Ignoring file [vendor/doctrine/instantiator/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,578 INFO     root            Ignoring file [vendor/doctrine/inflector/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,578 INFO     root            Ignoring file [vendor/doctrine/inflector/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,598 INFO     root            Ignoring file [vendor/doctrine/cache/.coveralls.yml]: File matches ignore regex.
2017-05-25 17:17:59,598 INFO     root            Ignoring file [vendor/doctrine/cache/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,598 INFO     root            Ignoring file [vendor/doctrine/cache/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,602 INFO     root            Ignoring file [vendor/dnoegel/php-xdg-base-dir/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,604 INFO     root            Ignoring file [vendor/cmgmyr/messenger/.php_cs]: File matches ignore regex.
2017-05-25 17:17:59,605 INFO     root            Ignoring file [vendor/cmgmyr/messenger/src/migrations/.gitkeep]: File matches ignore regex.
2017-05-25 17:17:59,605 INFO     root            Ignoring file [vendor/cmgmyr/messenger/src/config/.gitkeep]: File matches ignore regex.
2017-05-25 17:17:59,608 INFO     root            Ignoring file [vendor/barryvdh/laravel-dompdf/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,608 INFO     root            Ignoring file [storage/framework/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,609 INFO     root            Ignoring file [storage/framework/sessions/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,611 INFO     root            Ignoring file [storage/framework/cache/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,611 INFO     root            Ignoring file [storage/app/db-blade-compiler/views/.gitkeep]: File matches ignore regex.
2017-05-25 17:17:59,622 INFO     root            Ignoring file [public/.htaccess]: File matches ignore regex.
2017-05-25 17:17:59,644 INFO     root            Ignoring file [public/phpmyadmin/test/.htaccess]: File matches ignore regex.
2017-05-25 17:17:59,723 INFO     root            Ignoring file [public/phpmyadmin/js/jquery/src/jquery-ui/.jshintrc]: File matches ignore regex.
2017-05-25 17:17:59,724 INFO     root            Ignoring file [public/phpmyadmin/js/jquery/src/jquery/.jshintrc]: File matches ignore regex.
2017-05-25 17:17:59,733 INFO     root            Ignoring file [public/phpmyadmin/doc/html/.buildinfo]: File matches ignore regex.
2017-05-25 17:17:59,743 INFO     root            Ignoring file [public/includes/formbuilder/css/.DS_Store]: File matches ignore regex.
2017-05-25 17:17:59,743 INFO     root            Ignoring file [public/includes/formbuilder/css/._.DS_Store]: File matches ignore regex.
2017-05-25 17:17:59,743 INFO     root            Ignoring file [public/includes/formbuilder/css/lib/.DS_Store]: File matches ignore regex.
2017-05-25 17:17:59,743 INFO     root            Ignoring file [public/includes/formbuilder/css/lib/._.DS_Store]: File matches ignore regex.
2017-05-25 17:17:59,743 INFO     root            Ignoring file [public/includes/formbuilder/css/lib/bootstrap-3.0.0/.editorconfig]: File matches ignore regex.
2017-05-25 17:17:59,743 INFO     root            Ignoring file [public/includes/formbuilder/css/lib/bootstrap-3.0.0/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,743 INFO     root            Ignoring file [public/includes/formbuilder/css/lib/bootstrap-3.0.0/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,769 INFO     root            Ignoring file [public/includes/bfb/assets/._.DS_Store]: File matches ignore regex.
2017-05-25 17:17:59,773 INFO     root            Ignoring file [public/includes/bfb/assets/css/._.DS_Store]: File matches ignore regex.
2017-05-25 17:17:59,773 INFO     root            Ignoring file [public/includes/bfb/assets/css/lib/._.DS_Store]: File matches ignore regex.
2017-05-25 17:17:59,773 INFO     root            Ignoring file [public/includes/bfb/assets/css/lib/bootstrap-3.0.0/.editorconfig]: File matches ignore regex.
2017-05-25 17:17:59,773 INFO     root            Ignoring file [public/includes/bfb/assets/css/lib/bootstrap-3.0.0/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,773 INFO     root            Ignoring file [public/includes/bfb/assets/css/lib/bootstrap-3.0.0/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,776 INFO     root            Ignoring file [database/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,776 INFO     root            Ignoring file [database/seeds/.gitkeep]: File matches ignore regex.
2017-05-25 17:17:59,780 INFO     root            Ignoring file [database/migrations/.gitkeep]: File matches ignore regex.
2017-05-25 17:17:59,785 INFO     root            Ignoring file [bootstrap/cache/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,786 INFO     root            Ignoring file [app/Policies/.gitkeep]: File matches ignore regex.
2017-05-25 17:17:59,788 INFO     root            Ignoring file [app/Listeners/.gitkeep]: File matches ignore regex.
2017-05-25 17:17:59,790 INFO     ___FILE_ONLY___ Some files were skipped. Pass `--verbosity=info` to see which ones.

2017-05-25 17:17:59,790 INFO     ___FILE_ONLY___ You may also view the gcloud log file, found at
[C:\Users\Redacted\AppData\Roaming\gcloud\logs\2017.05.25\17.13.32.677000.log].

2017-05-25 17:18:34,349 INFO     root            Uploading [d:\temp\temp\tmpewz3oo\src.tgz] to [us.gcr.io/Redacted/appengine/default.20170525t171334:latest]
2017-05-25 17:19:04,826 DEBUG    root            Using builder image: [gcr.io/cloud-builders/docker]
2017-05-25 17:19:06,588 INFO     ___FILE_ONLY___ Started cloud build [50fd916b-cbff-4f40-8404-aa9a961f8206].
```

答:
It really does seem like your log file is cut off here.  There may be a difference between the gcloud console output and the log file located at C:\Users\Redacted\AppData\Roaming\gcloud\logs\2017.05.25\17.13.32.677000.log

(I've noticed that gcloud can stop outputting to the console if you scroll up, but pressing the down arrow fixes this.)

Title: Stuck Deploying my first app engine app

Body:
I am deploying my first app to google app engine and I am getting stuck at "Started cloud build" obviously there is some kind of problem with the build but I am unsure how to diagnose or proceed.

I have included the LOG file if that helps

    2017-05-25 17:13:32,680 DEBUG    root            Loaded Command Group: ['gcloud', 'app']
2017-05-25 17:13:32,864 DEBUG    root            Loaded Command Group: ['gcloud', 'app', 'deploy']
2017-05-25 17:13:32,865 DEBUG    root            Running [gcloud.app.deploy] with arguments: []
2017-05-25 17:13:33,016 DEBUG    root            API endpoint: [https://appengine.googleapis.com/], API version: [v1]
2017-05-25 17:13:34,256 INFO     ___FILE_ONLY___ You are about to deploy the following services:

2017-05-25 17:13:34,257 INFO     ___FILE_ONLY___  - single-quanta-158320/default/20170525t171334 (from [D:\Path Redacted\app.yaml])
     Deploying to URL: [https://URL Redacted]

2017-05-25 17:17:26,509 DEBUG    root            No bucket specified, retrieving default bucket.
2017-05-25 17:17:26,512 DEBUG    root            Using bucket [gs://Redacted].
2017-05-25 17:17:26,512 INFO     ___FILE_ONLY___ If this is your first deployment, this may take a while...
2017-05-25 17:17:26,513 DEBUG    root            Host: appengine.google.com
2017-05-25 17:17:26,519 DEBUG    googlecloudsdk.third_party.appengine.tools.appengine_rpc _Authenticate configuring auth; needs_auth=False
2017-05-25 17:17:26,520 DEBUG    googlecloudsdk.third_party.appengine.tools.appengine_rpc Sending request to https://appengine.google.com/api/vms/prepare?app_id=Redacted headers={'X-appcfg-api-version': '1', 'content-length': '0', 'Content-Type': 'application/octet-stream'} body=
2017-05-25 17:17:26,520 INFO     oauth2client.transport Attempting refresh to obtain initial access_token
2017-05-25 17:17:26,520 INFO     oauth2client.client Refreshing access_token
2017-05-25 17:17:31,799 DEBUG    root            Got response: {bucket: vm-containers.Redacted.appspot.com, path: /containers}

2017-05-25 17:17:31,805 INFO     ___FILE_ONLY___

2017-05-25 17:17:32,040 INFO     ___FILE_ONLY___ Beginning deployment of service [default]...

2017-05-25 17:17:32,042 DEBUG    root            No staging command found for runtime [php] and environment [FLEX].
2017-05-25 17:17:32,042 INFO     root            Need Dockerfile to be generated for runtime php
2017-05-25 17:17:32,042 INFO     ___FILE_ONLY___ Building and pushing image for service [default]

2017-05-25 17:17:32,121 INFO     root            Not checking for [Custom] because runtime is [php]
2017-05-25 17:17:32,121 INFO     root            Not checking for [Go] because runtime is [php]
2017-05-25 17:17:32,122 INFO     root            Not checking for [Ruby] because runtime is [php]
2017-05-25 17:17:32,122 INFO     root            Not checking for [Node.js] because runtime is [php]
2017-05-25 17:17:32,122 INFO     root            Not checking for [Java] because runtime is [php]
2017-05-25 17:17:32,122 INFO     root            Not checking for [Python Compat] because runtime is [php]
2017-05-25 17:17:32,122 INFO     root            Not checking for [Python] because runtime is [php]
2017-05-25 17:17:32,167 INFO     root            Not writing [app.yaml], it already exists.
2017-05-25 17:17:59,190 INFO     root            Ignoring directory [.git]: Directory matches ignore regex.
2017-05-25 17:17:59,190 INFO     root            Ignoring file [.gitattributes]: File matches ignore regex.
2017-05-25 17:17:59,190 INFO     root            Ignoring file [.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,193 INFO     root            Ignoring file [vendor/webmozart/assert/.composer-auth.json]: File matches ignore regex.
2017-05-25 17:17:59,193 INFO     root            Ignoring file [vendor/webmozart/assert/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,193 INFO     root            Ignoring file [vendor/webmozart/assert/.styleci.yml]: File matches ignore regex.
2017-05-25 17:17:59,194 INFO     root            Ignoring file [vendor/webmozart/assert/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,194 INFO     root            Ignoring file [vendor/torann/currency/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,194 INFO     root            Ignoring file [vendor/torann/currency/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,194 INFO     root            Ignoring file [vendor/torann/currency/tests/.gitkeep]: File matches ignore regex.
2017-05-25 17:17:59,197 INFO     root            Ignoring file [vendor/symfony/yaml/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,197 INFO     root            Ignoring file [vendor/symfony/var-dumper/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,200 INFO     root            Ignoring file [vendor/symfony/translation/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,207 INFO     root            Ignoring file [vendor/symfony/routing/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,214 INFO     root            Ignoring file [vendor/symfony/process/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,217 INFO     root            Ignoring file [vendor/symfony/http-kernel/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,233 INFO     root            Ignoring file [vendor/symfony/http-foundation/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,237 INFO     root            Ignoring file [vendor/symfony/http-foundation/Tests/File/Fixtures/.unknownextension]: File matches ignore regex.
2017-05-25 17:17:59,239 INFO     root            Ignoring file [vendor/symfony/http-foundation/Tests/File/Fixtures/directory/.empty]: File matches ignore regex.
2017-05-25 17:17:59,240 INFO     root            Ignoring file [vendor/symfony/finder/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,244 INFO     root            Ignoring file [vendor/symfony/event-dispatcher/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,246 INFO     root            Ignoring file [vendor/symfony/dom-crawler/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,247 INFO     root            Ignoring file [vendor/symfony/debug/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,250 INFO     root            Ignoring file [vendor/symfony/css-selector/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,256 INFO     root            Ignoring file [vendor/symfony/console/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,269 INFO     root            Ignoring file [vendor/swiftmailer/swiftmailer/.gitattributes]: File matches ignore regex.
2017-05-25 17:17:59,269 INFO     root            Ignoring file [vendor/swiftmailer/swiftmailer/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,269 INFO     root            Ignoring file [vendor/swiftmailer/swiftmailer/.php_cs.dist]: File matches ignore regex.
2017-05-25 17:17:59,269 INFO     root            Ignoring file [vendor/swiftmailer/swiftmailer/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,292 INFO     root            Ignoring file [vendor/shpasser/gae-support-l5/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,292 INFO     root            Ignoring file [vendor/shpasser/gae-support-l5/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,292 INFO     root            Ignoring file [vendor/shpasser/gae-support-l5/tests/.gitkeep]: File matches ignore regex.
2017-05-25 17:17:59,295 INFO     root            Ignoring file [vendor/sebastian/version/.gitattributes]: File matches ignore regex.
2017-05-25 17:17:59,295 INFO     root            Ignoring file [vendor/sebastian/version/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,296 INFO     root            Ignoring file [vendor/sebastian/recursion-context/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,296 INFO     root            Ignoring file [vendor/sebastian/recursion-context/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,296 INFO     root            Ignoring file [vendor/sebastian/global-state/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,296 INFO     root            Ignoring file [vendor/sebastian/global-state/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,298 INFO     root            Ignoring file [vendor/sebastian/exporter/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,298 INFO     root            Ignoring file [vendor/sebastian/exporter/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,299 INFO     root            Ignoring file [vendor/sebastian/environment/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,299 INFO     root            Ignoring file [vendor/sebastian/environment/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,299 INFO     root            Ignoring file [vendor/sebastian/diff/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,299 INFO     root            Ignoring file [vendor/sebastian/diff/.php_cs]: File matches ignore regex.
2017-05-25 17:17:59,299 INFO     root            Ignoring file [vendor/sebastian/diff/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,301 INFO     root            Ignoring file [vendor/sebastian/comparator/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,301 INFO     root            Ignoring file [vendor/sebastian/comparator/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,305 INFO     root            Ignoring file [vendor/psy/psysh/.editorconfig]: File matches ignore regex.
2017-05-25 17:17:59,305 INFO     root            Ignoring file [vendor/psy/psysh/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,306 INFO     root            Ignoring directory [vendor/psy/psysh/.phan]: Directory matches ignore regex.
2017-05-25 17:17:59,306 INFO     root            Ignoring file [vendor/psy/psysh/.php_cs]: File matches ignore regex.
2017-05-25 17:17:59,306 INFO     root            Ignoring file [vendor/psy/psysh/.styleci.yml]: File matches ignore regex.
2017-05-25 17:17:59,306 INFO     root            Ignoring file [vendor/psy/psysh/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,308 INFO     root            Ignoring file [vendor/psy/psysh/test/fixtures/project/.psysh.php]: File matches ignore regex.
2017-05-25 17:17:59,308 INFO     root            Ignoring directory [vendor/psy/psysh/test/fixtures/mixed/.psysh]: Directory matches ignore regex.
2017-05-25 17:17:59,308 INFO     root            Ignoring directory [vendor/psy/psysh/test/fixtures/legacy/.psysh]: Directory matches ignore regex.
2017-05-25 17:17:59,308 INFO     root            Ignoring directory [vendor/psy/psysh/test/fixtures/default/.config]: Directory matches ignore regex.
2017-05-25 17:17:59,309 INFO     root            Ignoring directory [vendor/psy/psysh/test/fixtures/default/.local]: Directory matches ignore regex.
2017-05-25 17:17:59,318 INFO     root            Ignoring file [vendor/psr/log/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,319 INFO     root            Ignoring file [vendor/phpunit/phpunit-mock-objects/.gitattributes]: File matches ignore regex.
2017-05-25 17:17:59,319 INFO     root            Ignoring file [vendor/phpunit/phpunit-mock-objects/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,319 INFO     root            Ignoring file [vendor/phpunit/phpunit-mock-objects/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,325 INFO     root            Ignoring file [vendor/phpunit/phpunit/.gitattributes]: File matches ignore regex.
2017-05-25 17:17:59,325 INFO     root            Ignoring file [vendor/phpunit/phpunit/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,325 INFO     root            Ignoring file [vendor/phpunit/phpunit/.php_cs]: File matches ignore regex.
2017-05-25 17:17:59,325 INFO     root            Ignoring file [vendor/phpunit/phpunit/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,351 INFO     root            Ignoring file [vendor/phpunit/php-token-stream/.gitattributes]: File matches ignore regex.
2017-05-25 17:17:59,351 INFO     root            Ignoring file [vendor/phpunit/php-token-stream/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,351 INFO     root            Ignoring file [vendor/phpunit/php-token-stream/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,352 INFO     root            Ignoring file [vendor/phpunit/php-timer/.gitattributes]: File matches ignore regex.
2017-05-25 17:17:59,352 INFO     root            Ignoring file [vendor/phpunit/php-timer/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,352 INFO     root            Ignoring file [vendor/phpunit/php-timer/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,354 INFO     root            Ignoring file [vendor/phpunit/php-text-template/.gitattributes]: File matches ignore regex.
2017-05-25 17:17:59,354 INFO     root            Ignoring file [vendor/phpunit/php-text-template/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,354 INFO     root            Ignoring file [vendor/phpunit/php-file-iterator/.gitattributes]: File matches ignore regex.
2017-05-25 17:17:59,354 INFO     root            Ignoring file [vendor/phpunit/php-file-iterator/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,355 INFO     root            Ignoring file [vendor/phpunit/php-code-coverage/.gitattributes]: File matches ignore regex.
2017-05-25 17:17:59,355 INFO     root            Ignoring file [vendor/phpunit/php-code-coverage/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,355 INFO     root            Ignoring file [vendor/phpunit/php-code-coverage/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,361 INFO     root            Ignoring file [vendor/phpspec/prophecy/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,362 INFO     root            Ignoring file [vendor/phpspec/prophecy/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,414 INFO     root            Ignoring file [vendor/phpdocumentor/type-resolver/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,414 INFO     root            Ignoring file [vendor/phpdocumentor/type-resolver/.scrutinizer.yml]: File matches ignore regex.
2017-05-25 17:17:59,414 INFO     root            Ignoring file [vendor/phpdocumentor/type-resolver/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,415 INFO     root            Ignoring file [vendor/phpdocumentor/reflection-docblock/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,415 INFO     root            Ignoring file [vendor/phpdocumentor/reflection-docblock/.scrutinizer.yml]: File matches ignore regex.
2017-05-25 17:17:59,415 INFO     root            Ignoring file [vendor/phpdocumentor/reflection-docblock/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,421 INFO     root            Ignoring file [vendor/phpdocumentor/reflection-common/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,421 INFO     root            Ignoring file [vendor/phenx/php-svg-lib/.gitattributes]: File matches ignore regex.
2017-05-25 17:17:59,421 INFO     root            Ignoring file [vendor/phenx/php-svg-lib/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,421 INFO     root            Ignoring file [vendor/phenx/php-svg-lib/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,424 INFO     root            Ignoring file [vendor/phenx/php-font-lib/.gitattributes]: File matches ignore regex.
2017-05-25 17:17:59,424 INFO     root            Ignoring file [vendor/phenx/php-font-lib/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,424 INFO     root            Ignoring file [vendor/phenx/php-font-lib/.htaccess]: File matches ignore regex.
2017-05-25 17:17:59,428 INFO     root            Ignoring file [vendor/nikic/php-parser/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,428 INFO     root            Ignoring file [vendor/nikic/php-parser/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,450 INFO     root            Ignoring file [vendor/nesbot/carbon/.php_cs.dist]: File matches ignore regex.
2017-05-25 17:17:59,453 INFO     root            Ignoring file [vendor/mtdowling/cron-expression/.editorconfig]: File matches ignore regex.
2017-05-25 17:17:59,453 INFO     root            Ignoring file [vendor/monolog/monolog/.php_cs]: File matches ignore regex.
2017-05-25 17:17:59,457 INFO     root            Ignoring file [vendor/monolog/monolog/tests/Monolog/Handler/Fixtures/.gitkeep]: File matches ignore regex.
2017-05-25 17:17:59,463 INFO     root            Ignoring file [vendor/mockery/mockery/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,463 INFO     root            Ignoring file [vendor/mockery/mockery/.php_cs]: File matches ignore regex.
2017-05-25 17:17:59,463 INFO     root            Ignoring file [vendor/mockery/mockery/.scrutinizer.yml]: File matches ignore regex.
2017-05-25 17:17:59,463 INFO     root            Ignoring file [vendor/mockery/mockery/.styleci.yml]: File matches ignore regex.
2017-05-25 17:17:59,463 INFO     root            Ignoring file [vendor/mockery/mockery/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,470 INFO     root            Ignoring file [vendor/mockery/mockery/docs/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,471 INFO     root            Ignoring file [vendor/maddhatter/laravel-fullcalendar/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,471 INFO     root            Ignoring file [vendor/maddhatter/laravel-fullcalendar/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,473 INFO     root            Ignoring file [vendor/maddhatter/laravel-fullcalendar/tests/.gitkeep]: File matches ignore regex.
2017-05-25 17:17:59,476 INFO     root            Ignoring file [vendor/league/flysystem/docs/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,522 INFO     root            Ignoring file [vendor/jakub-onderka/php-console-highlighter/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,522 INFO     root            Ignoring file [vendor/jakub-onderka/php-console-highlighter/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,523 INFO     root            Ignoring file [vendor/jakub-onderka/php-console-color/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,523 INFO     root            Ignoring file [vendor/jakub-onderka/php-console-color/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,525 INFO     root            Ignoring file [vendor/hamcrest/hamcrest-php/.coveralls.yml]: File matches ignore regex.
2017-05-25 17:17:59,525 INFO     root            Ignoring file [vendor/hamcrest/hamcrest-php/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,525 INFO     root            Ignoring file [vendor/hamcrest/hamcrest-php/.gush.yml]: File matches ignore regex.
2017-05-25 17:17:59,525 INFO     root            Ignoring file [vendor/hamcrest/hamcrest-php/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,535 INFO     root            Ignoring file [vendor/guzzlehttp/guzzle/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,536 INFO     root            Ignoring file [vendor/fzaninotto/faker/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,536 INFO     root            Ignoring file [vendor/fzaninotto/faker/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,566 INFO     root            Ignoring file [vendor/flynsarmy/db-blade-compiler/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,566 INFO     root            Ignoring file [vendor/flynsarmy/db-blade-compiler/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,566 INFO     root            Ignoring file [vendor/flynsarmy/db-blade-compiler/tests/.gitkeep]: File matches ignore regex.
2017-05-25 17:17:59,568 INFO     root            Ignoring file [vendor/flynsarmy/db-blade-compiler/config/.gitkeep]: File matches ignore regex.
2017-05-25 17:17:59,568 INFO     root            Ignoring file [vendor/dompdf/dompdf/.gitattributes]: File matches ignore regex.
2017-05-25 17:17:59,568 INFO     root            Ignoring file [vendor/dompdf/dompdf/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,568 INFO     root            Ignoring file [vendor/dompdf/dompdf/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,575 INFO     root            Ignoring file [vendor/doctrine/instantiator/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,575 INFO     root            Ignoring file [vendor/doctrine/instantiator/.scrutinizer.yml]: File matches ignore regex.
2017-05-25 17:17:59,575 INFO     root            Ignoring file [vendor/doctrine/instantiator/.travis.install.sh]: File matches ignore regex.
2017-05-25 17:17:59,575 INFO     root            Ignoring file [vendor/doctrine/instantiator/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,578 INFO     root            Ignoring file [vendor/doctrine/inflector/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,578 INFO     root            Ignoring file [vendor/doctrine/inflector/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,598 INFO     root            Ignoring file [vendor/doctrine/cache/.coveralls.yml]: File matches ignore regex.
2017-05-25 17:17:59,598 INFO     root            Ignoring file [vendor/doctrine/cache/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,598 INFO     root            Ignoring file [vendor/doctrine/cache/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,602 INFO     root            Ignoring file [vendor/dnoegel/php-xdg-base-dir/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,604 INFO     root            Ignoring file [vendor/cmgmyr/messenger/.php_cs]: File matches ignore regex.
2017-05-25 17:17:59,605 INFO     root            Ignoring file [vendor/cmgmyr/messenger/src/migrations/.gitkeep]: File matches ignore regex.
2017-05-25 17:17:59,605 INFO     root            Ignoring file [vendor/cmgmyr/messenger/src/config/.gitkeep]: File matches ignore regex.
2017-05-25 17:17:59,608 INFO     root            Ignoring file [vendor/barryvdh/laravel-dompdf/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,608 INFO     root            Ignoring file [storage/framework/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,609 INFO     root            Ignoring file [storage/framework/sessions/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,611 INFO     root            Ignoring file [storage/framework/cache/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,611 INFO     root            Ignoring file [storage/app/db-blade-compiler/views/.gitkeep]: File matches ignore regex.
2017-05-25 17:17:59,622 INFO     root            Ignoring file [public/.htaccess]: File matches ignore regex.
2017-05-25 17:17:59,644 INFO     root            Ignoring file [public/phpmyadmin/test/.htaccess]: File matches ignore regex.
2017-05-25 17:17:59,723 INFO     root            Ignoring file [public/phpmyadmin/js/jquery/src/jquery-ui/.jshintrc]: File matches ignore regex.
2017-05-25 17:17:59,724 INFO     root            Ignoring file [public/phpmyadmin/js/jquery/src/jquery/.jshintrc]: File matches ignore regex.
2017-05-25 17:17:59,733 INFO     root            Ignoring file [public/phpmyadmin/doc/html/.buildinfo]: File matches ignore regex.
2017-05-25 17:17:59,743 INFO     root            Ignoring file [public/includes/formbuilder/css/.DS_Store]: File matches ignore regex.
2017-05-25 17:17:59,743 INFO     root            Ignoring file [public/includes/formbuilder/css/._.DS_Store]: File matches ignore regex.
2017-05-25 17:17:59,743 INFO     root            Ignoring file [public/includes/formbuilder/css/lib/.DS_Store]: File matches ignore regex.
2017-05-25 17:17:59,743 INFO     root            Ignoring file [public/includes/formbuilder/css/lib/._.DS_Store]: File matches ignore regex.
2017-05-25 17:17:59,743 INFO     root            Ignoring file [public/includes/formbuilder/css/lib/bootstrap-3.0.0/.editorconfig]: File matches ignore regex.
2017-05-25 17:17:59,743 INFO     root            Ignoring file [public/includes/formbuilder/css/lib/bootstrap-3.0.0/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,743 INFO     root            Ignoring file [public/includes/formbuilder/css/lib/bootstrap-3.0.0/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,769 INFO     root            Ignoring file [public/includes/bfb/assets/._.DS_Store]: File matches ignore regex.
2017-05-25 17:17:59,773 INFO     root            Ignoring file [public/includes/bfb/assets/css/._.DS_Store]: File matches ignore regex.
2017-05-25 17:17:59,773 INFO     root            Ignoring file [public/includes/bfb/assets/css/lib/._.DS_Store]: File matches ignore regex.
2017-05-25 17:17:59,773 INFO     root            Ignoring file [public/includes/bfb/assets/css/lib/bootstrap-3.0.0/.editorconfig]: File matches ignore regex.
2017-05-25 17:17:59,773 INFO     root            Ignoring file [public/includes/bfb/assets/css/lib/bootstrap-3.0.0/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,773 INFO     root            Ignoring file [public/includes/bfb/assets/css/lib/bootstrap-3.0.0/.travis.yml]: File matches ignore regex.
2017-05-25 17:17:59,776 INFO     root            Ignoring file [database/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,776 INFO     root            Ignoring file [database/seeds/.gitkeep]: File matches ignore regex.
2017-05-25 17:17:59,780 INFO     root            Ignoring file [database/migrations/.gitkeep]: File matches ignore regex.
2017-05-25 17:17:59,785 INFO     root            Ignoring file [bootstrap/cache/.gitignore]: File matches ignore regex.
2017-05-25 17:17:59,786 INFO     root            Ignoring file [app/Policies/.gitkeep]: File matches ignore regex.
2017-05-25 17:17:59,788 INFO     root            Ignoring file [app/Listeners/.gitkeep]: File matches ignore regex.
2017-05-25 17:17:59,790 INFO     ___FILE_ONLY___ Some files were skipped. Pass `--verbosity=info` to see which ones.

2017-05-25 17:17:59,790 INFO     ___FILE_ONLY___ You may also view the gcloud log file, found at
[C:\Users\Redacted\AppData\Roaming\gcloud\logs\2017.05.25\17.13.32.677000.log].

2017-05-25 17:18:34,349 INFO     root            Uploading [d:\temp\temp\tmpewz3oo\src.tgz] to [us.gcr.io/Redacted/appengine/default.20170525t171334:latest]
2017-05-25 17:19:04,826 DEBUG    root            Using builder image: [gcr.io/cloud-builders/docker]
2017-05-25 17:19:06,588 INFO     ___FILE_ONLY___ Started cloud build [50fd916b-cbff-4f40-8404-aa9a961f8206].


问:
jQuery only toggle this element
I have this code:

```<code>$("#communities .inventory-search button.dropdown-toggle").on("click", function () {
    $(".inventory-search .dropdown-toggle img").toggle();
});
</code>```

This works, but it keeps toggling all the .dropdown-toggle img items, how do I just target the one that was clicked?

答:
You should use $(this) instead to refer to the current clicked element like:

```<code>$("img", this).toggle();
//Or
$(this).find("img").toggle();
</code>```

Else all the images inside .dropdown-toggle will be toggled on click not just the clicked one, full code will be :

```<code>$("#communities .inventory-search button.dropdown-toggle").on("click", function () {
    $("img", this).toggle();
});
</code>```

Hope this helps.

Title: jQuery only toggle this element

Body:
I have this code:

$("#communities .inventory-search button.dropdown-toggle").on("click", function () {
    $(".inventory-search .dropdown-toggle img").toggle();
});

This works, but it keeps toggling all the .dropdown-toggle img items, how do I just target the one that was clicked?

Body:
You should use $(this) instead to refer to the current clicked element like:

$("img", this).toggle();
//Or
$(this).find("img").toggle();

Else all the images inside .dropdown-toggle will be toggled on click not just the clicked one, full code will be :

$("#communities .inventory-search button.dropdown-toggle").on("click", function () {
    $("img", this).toggle();
});

Hope this helps.


问:
Unbalanced calls to begin/end appearance transitions for <nameOfProject.secondViewController: 0x135d2a120>
I am using the following pod: https://github.com/xxxAIRINxxx/MusicPlayerTransition.
When I do the music player transition and I close it, the collection view or the table view what I am showing on the actual view controller seams ok but when I try to do a segue on the table to another viewcontroller who has a table said this: unbalanced calls to begin/end appearance transitions for. So I think the error is on the pod. So my question is if anybody can check what is the error or how can I prevent this error for showing the table correctly after close the player.

答: If it were the pod you'd have seen others with the same problem show up when you googled. Show your code especially where you transition to the second controller. I'm sure you'll get help. </p>


问:
ListView not re-rander after update or edite data react native
Update Post

Khatri I think your right so I was change my code But Still I am not understand How to re-rander my list after Update my todo text.

I make a Todo app.Everything is ok. But When i am going to change my todo text it changing on database successfully, But without re-open my app I can not see my update text or todo.
How to re-render after change my text ?

```<code>        const myFirebaseRef = Firebase.database().ref();
        this.itemsRef = myFirebaseRef.child('items');

        this.state = {
            newTodo: '',
            todoSource: new ListView.DataSource({rowHasChanged: (row1, row2) => row1 !== row2}),
            modalVisible: false,
            editTodoVal: 'Edit Your Todo',
            updateId: '',
            refreshing: false,
        };
        this.items = [];

componentDidMount() {
        this.itemsRef.on('child_added', (dataSnapshot) => {
            this.items.push({id: dataSnapshot.key, text: dataSnapshot.val()});
            this.setState({
                todoSource: this.state.todoSource.cloneWithRows(this.items)
            });
        });

        this.itemsRef.on('child_removed', (dataSnapshot) => {

            this.items = this.items.filter((x) => x.id !== dataSnapshot.key);
            this.setState({
                todoSource: this.state.todoSource.cloneWithRows(this.items)
            });
        });
        this.itemsRef.on('child_changed', (dataSnapshot) => {
            // what code hare I can make for it ???
        });

    }

addTodo() {
    if (this.state.newTodo !== '') {
        console.log('ADD Todo Successfully');
        this.itemsRef.push({
            todo: this.state.newTodo
        });
        this.setState({
            newTodo: ''
        });
    }
}

updateTodo() {
    if (this.state.editTodoVal !== '') {
        this.itemsRef.child(this.state.updateId)
            .update({
                todo: this.state.editTodoVal
            });
        alert('Success fully update Todo');
        this.setState(this.state);
        this.setState({
            editTodoVal: ''
        });
        this.setModalVisible(false)
    }
}

removeTodo(rowDate) {
    this.itemsRef.child(rowDate.id).remove();
}

 editTodo(rowDate) {
    this.setState({
        editTodoVal: rowDate.text.todo,
        updateId: rowDate.id
    });

    this.setModalVisible(true)
}

            <ListView
                dataSource={this.state.todoSource}
                renderRow={this.renderRow.bind(this)}/>

renderRow(rowData) {
        return (
            <View style={styles.appContainerBody}>
                <View>
                    <Text style={styles.todoText}>{rowData.text.todo}</Text>
                </View>
                <View style={styles.actionView}>
                    <Text onPress={() => this.removeTodo(rowData)} style={styles.removedText}>
                        <FontAwesome name="trash" size={16}/>
                    </Text>
                    <Text onPress={() => this.editTodo(rowData)} style={styles.editeText}>
                        <FontAwesome name="pencil-square-o" size={16}/>
                    </Text>
                </View>
            </View>
        )
    }
</code>```

答:
It doesn't rerender your App beacause, you are mutating the state directly which is a wrong thing to do. You should make use of setState method to update the state which also triggers a rerender after successful state change</p>

```<code>editTodo(rowDate) {
    this.setState({
         editTodoVal: rowDate.text.todo,
         updateId:  rowDate.id
    });

    this.setModalVisible(true)
}
</code>```

Body:
Update Post

Khatri I think your right so I was change my code But Still I am not understand How to re-rander my list after Update my todo text.

I make a Todo app.Everything is ok. But When i am going to change my todo text it changing on database successfully, But without re-open my app I can not see my update text or todo.
How to re-render after change my text ?

        const myFirebaseRef = Firebase.database().ref();
        this.itemsRef = myFirebaseRef.child('items');

        this.state = {
            newTodo: '',
            todoSource: new ListView.DataSource({rowHasChanged: (row1, row2) => row1 !== row2}),
            modalVisible: false,
            editTodoVal: 'Edit Your Todo',
            updateId: '',
            refreshing: false,
        };
        this.items = [];

componentDidMount() {
        this.itemsRef.on('child_added', (dataSnapshot) => {
            this.items.push({id: dataSnapshot.key, text: dataSnapshot.val()});
            this.setState({
                todoSource: this.state.todoSource.cloneWithRows(this.items)
            });
        });

        this.itemsRef.on('child_removed', (dataSnapshot) => {

            this.items = this.items.filter((x) => x.id !== dataSnapshot.key);
            this.setState({
                todoSource: this.state.todoSource.cloneWithRows(this.items)
            });
        });
        this.itemsRef.on('child_changed', (dataSnapshot) => {
            // what code hare I can make for it ???
        });

    }

addTodo() {
    if (this.state.newTodo !== '') {
        console.log('ADD Todo Successfully');
        this.itemsRef.push({
            todo: this.state.newTodo
        });
        this.setState({
            newTodo: ''
        });
    }
}

updateTodo() {
    if (this.state.editTodoVal !== '') {
        this.itemsRef.child(this.state.updateId)
            .update({
                todo: this.state.editTodoVal
            });
        alert('Success fully update Todo');
        this.setState(this.state);
        this.setState({
            editTodoVal: ''
        });
        this.setModalVisible(false)
    }
}

removeTodo(rowDate) {
    this.itemsRef.child(rowDate.id).remove();
}

 editTodo(rowDate) {
    this.setState({
        editTodoVal: rowDate.text.todo,
        updateId: rowDate.id
    });

    this.setModalVisible(true)
}

            <ListView
                dataSource={this.state.todoSource}
                renderRow={this.renderRow.bind(this)}/>

renderRow(rowData) {
        return (
            <View style={styles.appContainerBody}>
                <View>
                    <Text style={styles.todoText}>{rowData.text.todo}</Text>
                </View>
                <View style={styles.actionView}>
                    <Text onPress={() => this.removeTodo(rowData)} style={styles.removedText}>
                        <FontAwesome name="trash" size={16}/>
                    </Text>
                    <Text onPress={() => this.editTodo(rowData)} style={styles.editeText}>
                        <FontAwesome name="pencil-square-o" size={16}/>
                    </Text>
                </View>
            </View>
        )
    }

Body:
It doesn't rerender your App beacause, you are mutating the state directly which is a wrong thing to do. You should make use of setState method to update the state which also triggers a rerender after successful state change

editTodo(rowDate) {
    this.setState({
         editTodoVal: rowDate.text.todo,
         updateId:  rowDate.id
    });

    this.setModalVisible(true)
}


问:
Why aren't my images being added to my JButtons?
I have a program that consists of four JButtons in a JFrame. I want to add images to the JButtons. The problem is that I can't seem to add them, despite trying multiple methods. When compiled, the output is input == null. The images are stored in the same folder as my .java files, so I can't figure out why they aren't showing up.

Main class:

```<code>import java.awt.GridLayout;
import java.awt.Image;

import javax.imageio.ImageIO;
import javax.swing.BoxLayout;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;

public class AutoProgram extends JFrame {

    private static String[] files    = {"workA","programmingA","leisureA","writingA"};
    private static JButton[] bIcons  = new JButton[4];
    private static Image[] bImg      = new Image[4];

    public AutoProgram() {
        super("Automation Project V.1");

        JPanel autoIcons = new JPanel();
        autoIcons.setLayout(new GridLayout(2,2));

        // Initialize the four buttons (w/ images)
        for(int i = 0; i < files.length; i++) {
            bIcons[i] = new JButton();
            try {
                bImg[i] = ImageIO.read(getClass().getResource(files[i].toLowerCase() + ".png"));
                bIcons[i].setIcon(new ImageIcon(bImg[i]));
            } catch (Exception ex) {
                System.out.println(ex);
            }
            autoIcons.add(bIcons[i]);
        }

          JPanel mainPanel = new JPanel();
          mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.PAGE_AXIS));;
          mainPanel.add(autoIcons);
          add(mainPanel);

          pack();

}}
</code>```

Window class:

```<code>public class Window {

    public static void main(String[] args) {

        AutoProgram frame = new AutoProgram();

        frame.setSize(315,315);
        frame.setLocationRelativeTo(null);
        frame.setFocusable(true);
        frame.setResizable(true);
        frame.setVisible(true);
    }
}
</code>```

Any help would be greatly appreciated. Thanks!

答:
Before going into the answer to your question, please read the following recommendations:

private static JButton[] bIcons  = new JButton[4]; Creating static fields could break your program, so be careful when to use them. Not really needed in this case, please read What does the 'static' keyword do in a class?

JFrame is a rigid container which cannot be placed inside others, and you're not changing it's functionallity anywhere in your program, so there's no need to call extends JFrame, it's better to create a JFrame instance then. See: Extends JFrame vs. creating it inside the program for more information about this.

You're correctly calling pack() but later in the code you're calling frame.setSize(315,315); which "destroys" the changes made by pack(), use one or the other, not both, I recommend you to leave pack() call.

You're not placing your program in the Event Dispatch Thread (EDT), you can fix it by changing your main(...) method as follows:

```<code>public static void main (String args[]) {
    //Java 7 and below
    SwingUtilities.invokeLater(new Runnable() {
        //Your code here
    });

    //Java 8 and higher
    SwingUtilities.invokeLater(() -> {
        //Your code here
    });
}
</code>```

Now, let's go to the solution:

Your code works fine, I think that your errors might come from the following posibilities:

Calling files[i].toLowerCase() (.toLowerCase() method might be breaking your program, Java is case sensitive).

Your images are not PNG but JPG or JPEG (look at the extension carefully)

Your images are damaged

Body:
I have a program that consists of four JButtons in a JFrame. I want to add images to the JButtons. The problem is that I can't seem to add them, despite trying multiple methods. When compiled, the output is input == null. The images are stored in the same folder as my .java files, so I can't figure out why they aren't showing up.

Main class:

import java.awt.GridLayout;
import java.awt.Image;

import javax.imageio.ImageIO;
import javax.swing.BoxLayout;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;

public class AutoProgram extends JFrame {

    private static String[] files    = {"workA","programmingA","leisureA","writingA"};
    private static JButton[] bIcons  = new JButton[4];
    private static Image[] bImg      = new Image[4];

    public AutoProgram() {
        super("Automation Project V.1");

        JPanel autoIcons = new JPanel();
        autoIcons.setLayout(new GridLayout(2,2));

        // Initialize the four buttons (w/ images)
        for(int i = 0; i < files.length; i++) {
            bIcons[i] = new JButton();
            try {
                bImg[i] = ImageIO.read(getClass().getResource(files[i].toLowerCase() + ".png"));
                bIcons[i].setIcon(new ImageIcon(bImg[i]));
            } catch (Exception ex) {
                System.out.println(ex);
            }
            autoIcons.add(bIcons[i]);
        }

          JPanel mainPanel = new JPanel();
          mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.PAGE_AXIS));;
          mainPanel.add(autoIcons);
          add(mainPanel);

          pack();

}}

Window class:

public class Window {

    public static void main(String[] args) {

        AutoProgram frame = new AutoProgram();

        frame.setSize(315,315);
        frame.setLocationRelativeTo(null);
        frame.setFocusable(true);
        frame.setResizable(true);
        frame.setVisible(true);
    }
}

Any help would be greatly appreciated. Thanks!

Body:
Before going into the answer to your question, please read the following recommendations:

private static JButton[] bIcons  = new JButton[4]; Creating static fields could break your program, so be careful when to use them. Not really needed in this case, please read What does the 'static' keyword do in a class?

JFrame is a rigid container which cannot be placed inside others, and you're not changing it's functionallity anywhere in your program, so there's no need to call extends JFrame, it's better to create a JFrame instance then. See: Extends JFrame vs. creating it inside the program for more information about this.

You're correctly calling pack() but later in the code you're calling frame.setSize(315,315); which "destroys" the changes made by pack(), use one or the other, not both, I recommend you to leave pack() call.

You're not placing your program in the Event Dispatch Thread (EDT), you can fix it by changing your main(...) method as follows:

public static void main (String args[]) {
    //Java 7 and below
    SwingUtilities.invokeLater(new Runnable() {
        //Your code here
    });

    //Java 8 and higher
    SwingUtilities.invokeLater(() -> {
        //Your code here
    });
}

Now, let's go to the solution:

Your code works fine, I think that your errors might come from the following posibilities:

Calling files[i].toLowerCase() (.toLowerCase() method might be breaking your program, Java is case sensitive).

Your images are not PNG but JPG or JPEG (look at the extension carefully)

Your images are damaged