Wes Modes

Results 12 comments of Wes Modes

Any suggestions for using Tensorflow 2.x?

Perhaps this is more like what you intended. This rotates (rather than slowly nukes) the list. ``` var everySheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Every"); var lastRow = everySheet.getLastRow(); var nextLastRow = lastRow +...

Looking at the code, I see you match for http:// but not https:// var urls = tweet.match(/http:.*?(\.png|\.jpg|\.gif)/g); You may want to add https:// as well. If I modify it I'll...

It seems that this line, is suspect: if (properties.img == 'Yes' && as it never seems to be true even when the "Convert Image URLs to Attachments" field in the...

I notice that it is failing to authenticate to api.twitter.com not upload.twitter.com. Does that mean it successfully uploaded the media and then failed to send the tweet itself? Just to...

Looking at the script logger, I see: ``` [17-05-15 10:35:24:436 PDT] [] [17-05-15 10:35:26:561 PDT] https://upload.twitter.com/1.1/media/upload.json [17-05-15 10:35:27:661 PDT] [864172386152845312] [17-05-15 10:35:27:805 PDT] https://api.twitter.com/1.1/statuses/update.json [17-05-15 10:35:27:837 PDT] Exception: Request failed...

By the way, I replaced the match and replace regex to: var urls = tweet.match(/(http:|https:).*?(\.png|\.jpg|\.gif)/g); though I have yet to test it properly because of the other problem that refused...

Further diagnosing, found the problem with properties.img: ``` if (properties.img == 'Yes' && tweet.match(/\.jpg|\.gif|\.png/)){ ``` should be ``` if (properties.img == 'yes' && tweet.match(/\.jpg|\.gif|\.png/)){ ```

Okay, Zach, I may have discovered the problem. There are characters at the end of the Image URL that need to be extracted before the Tweet will successfully tweet. While...

If you want to see it working after I fixed above issue: https://twitter.com/peoplesriver