Keith

0

votes
0

answer
4

views

Why is Flutter disposing my widget state object in a tabbed interface?

I have a tabbed Flutter interfaces using DefaultTabController with 3 pages, each a stateful widget. I seem to be able to switch between the first two tabs just fine, but when I tab to the 3rd page the state object for the first page gets disposed. Subsequent state updates (using setState()) then fai...
Keith A
1

votes
2

answer
267

views

How can a WordPress plugin in a docker image be activated in the build process?

I'm looking for how to activate a WordPress plugin via a Dockerfile RUN command in the build process. The relevant command in the Dockerfile is # activate plugins RUN wp plugin activate wp-discourse-export --allow-root --path=/var/www/html The error I'm getting is Step 10/10 : RUN wp plugin activate...
Keith John Hutchison
1

votes
3

answer
68

views

Javascript Array sort() does not sort array of strings correctly [duplicate]

This question already has an answer here: How to perform case-insensitive sorting in JavaScript? 13 answers I have the following JavaScript code: const ary = ['Kevin', 'brandy', 'Andrew']; const nary = ary.sort(); console.log(nary); I expected the output of the above code to be ['Andrew','brandy',...
Keith Machado
1

votes
3

answer
46

views

Async Function in Node.js

I have an endpoint in my Node.js API which returns a JSON array of results provided by the Google-Search-Scrapper library. app.get('/google_image_search', (req, res) => { var options = { query: 'grenouille', age: 'y', // last 24 hours ([hdwmy]\d? as in google URL) limit: 10, params: {} // params wil...
Waggoner_Keith
1

votes
1

answer
57

views

Use variable as object key [duplicate]

This question already has an answer here: JavaScript set object key by variable [duplicate] 2 answers I wish to insert variables into an object key structure but I just get the variable name rather than the variable value. var winnerId = 10; var loserId = 11; newMessage.setMessageData({ win...
Keith Power
1

votes
2

answer
38

views

How to increase horizontal buffer in tmux pane

I'm setting up a terminal based programming environment, but I'm running into an issue with tmux. I need more horizontal scrolling space to view Pandas dataframes, but my horizontal screen buffer size is being restricted when I use tmux. I've seen plenty of other answers that deal with vertical scro...
Keith Lyons
1

votes
1

answer
176

views

Duplicate Tensorflow normal distribution objects

Given the following code: import tensorflow as tf normal_dist = tf.contrib.distributions.Normal(.5, 1.3) foo = normal_dist.sample() bar = normal_dist.sample() baz = foo + bar sess = tf.Session() sess.run(tf.global_variables_initializer()) writer = tf.summary.FileWriter('./logs', graph=tf.get_default...
keith gould
1

votes
1

answer
191

views

Issues encountered switching from RabbitMQ to Kafka

The code below can also be found in the answer to How can @MessagingGateway be configured with Spring Cloud Stream MessageChannels? When attempting to switch from RabbitMQ to Kafka, I'm encountering the following exception: org.springframework.messaging.MessageHandlingException: Missing header 'foo'...
Keith Bennett
1

votes
0

answer
56

views

How to skip redundant forward prop during RL training step in TensorFlow

I have a Tensorflow question regarding Reinforcement Learning. I have everything working and training, but there is something that feels redundant. Want to point it out and hear your thoughts: Lets assume something simple like episodic REINFORCE. Given this standard setup: state -> network -> logit...
keith gould
1

votes
0

answer
29

views

when I try to run an open python file in an integrated terminal, I get an “cant find file” error because the path is passed without delimiters(/)

When I try to run a .py file in VScode w/Python extension, I get error stating it can't find the file name. name has no delimiters such as /. Folder names and file name are run together e.g.'C:Folder1Folder2Filename'.
Thomas Keith
1

votes
2

answer
280

views

Selenium ide and need to get a table count after searching for a record

Hi I am using selenium ide and need to get a table count after searching for a record. An example of the page is here. After entering the name I want to search for I want to count the matching result records. I used getXpathCount to count the records but it does not seem to increment the counter var...
Keith Ahlstrom
1

votes
1

answer
62

views

Python Request to send a file with a specific part

I'm trying to send a file via the request library but the receiver requires a part with a designated name (receivers terminology). I have something like this... so far: filePath = os.path.join( GetDownloadFolder(), fileName ) files = {'upload': open( str( filePath ),'rb')} response = request...
Keith
1

votes
0

answer
22

views

web form response recording

I'm trying to use a macro inside of Excel in conjunction with a web form that is only available on my Intranet. I need it to pull info from an excel file table, input into the web form, click the submit button, return the confirmation to the excel doc, click the restart button and repeat the process...
keith walters
1

votes
0

answer
47

views

What's the impact if you terminate a SHRINK SPACE CASCADE operation halfway?

I understand that space are reclaimed periodically during the operation as I see the spaced used reduced even before the entire operation is over. I tried to search online for any impact if you terminate the operation halfway due to expiring maintenance window. Thank you very much.
Keith C.
1

votes
1

answer
39

views

Converting repeating code into a loop for easier management using powershell and a json file

I am coding in powershell. I have a json file that I convert to a powershell object. I have more than 30 settings (key, value) I need to check to either update or add. What would be a better way of turning the following code into a loop of some kind so that I don't have to code each individual sett...
Keith
1

votes
0

answer
96

views

nmap: nping echos to stderr

On macOS High Sierra, nping is available via brew install nmap and it works: nping --tcp-connect --count=1 --dest-port=443 8.8.8.8 Starting Nping 0.7.70 ( https://nmap.org/nping ) at 2018-04-04 18:46 PDT libnsock mksock_bind_addr(): Bind to 0.0.0.0:0 failed (IOD #1): Invalid argument (22) SENT (0.00...
Keith
1

votes
1

answer
130

views

Setting up multiple parameter sets

I am working on a function that contains multiple parameter sets with some being mandatory. i want the sets to be setup in a particular way but no combination I setup seems to be working correctly. Function Requirements: Function can use either $OrganizationName, $IsUserRepo or neither Function must...
Keith
1

votes
0

answer
271

views

Android - create uber/fat aar, error on implementation

I want to create a single uber/fat aar. I have a library (libA) which is dependant on another library (libB) and I would like to bundle them together, preferably using gradle. This uber/fat aar will then be used in an app. Initially I looked at 2 similar gradle plugins, shadowJar and fataar but due...
Keith Darragh
1

votes
1

answer
37

views

Weird python bug. Variable changes value without any modification

In the function 'enText' changes its value even though I don't modify it. e = 5 and n = 6. enText is an array of ints. I modify the values in the array after passing it to changeTxt. I then return changeTxt but for some reason enText ends up being modified as well. No idea why. #Function for encrypt...
Keith
1

votes
0

answer
283

views

How would you create a 'manual' django migration?

I've discovered that I can set defaults for columns on a postgres database in a django project using migrations.RunSQL('some sql'). I'm currently doing this by adding a column, makemigrations, then removing the column, makemigrations, and then manually modifying the migration file that is produced....
1

votes
1

answer
150

views

std::function, Clang 6.0 & MSVC (10.0017134.12) - possible ABI bug or required compiler flags

If I create a simple library (built using CMake): foo.h #pragma once #include void foo(std::function handler); foo.cpp #include 'foo.h' void foo(std::function handler) { handler(); } And then create a separate CMake project compiling an executable: #include 'foo.h' #include #include int main() {...
keith
1

votes
2

answer
532

views

How to disable FullPage.js on specific sections?

I am using the excellent fullpage.js library to create a fullscreen site, however I would like to disable the fullpage.js scrolling after the user reaches the second section and allow the user to scroll from then on as normal. Can't seem to find any clues in the docs.
Keith Donegan
1

votes
1

answer
549

views

How to style the React google map marker using the given image file

Now I am using React-google-map component and want to change the marker to my own image. At this moment, I can't change the size of the marker using CSS. I've tried as follows: var image = { url: '../images/icons/yellow.png', size: 10 }; return ( ); If you know the solution, please kindly let me kno...
Keith Becker
1

votes
0

answer
169

views

How to label a horizontal barplot bar with positive and negative bars? (ggbarplot)

I am trying to plot a horizontal barplot with the ggbarplot function (ggpubr package), and this is what I have so far: = There are a couple of things that I want to change. First of all I would like to have more space in between the vertical axis labels, so the barplot would have to become longer i...
Keith
1

votes
3

answer
1.3k

views

System.Threading.Tasks.Task Method Not Found

Developing an application and use two different machines. As far as I know, they are both at the same release of Windows 10 (1803). Just recently, I have started having an issue on one machine. The application uses Individual Account Authentication, and at the login prompt, once a user enters the...
Keith Clark
1

votes
1

answer
96

views

IsXValueIndexed causing graph lines to not draw

So have a chart with 2 chart areas and 3 series. Top chart area has 2 series. 1st series shows prices over time and 2nd series in top chart area shows earnings per share over the same time Bottom chart area has 1 series and it shows volume over the same time. All 3 series have the same amount of po...
Keith Franklin
1

votes
1

answer
362

views

android:foreground attribute / setForeground() method does not work with Button elements

Since Android 23, the android:foreground XML attribute (and corresponding setForeground() method) should be available to all Views, and not just FrameLayout instances as was previously the case. Yet, for some reason, whenever I create a Button instance which inherits from TextView -> View, I can't...
Keith
1

votes
0

answer
82

views

Format plot axis of multiindex dataframe one for title one for date without time

I am trying to line plot this multiindexed pandas dataframe with the Ticker as the title (ie IVOG) and the date as the x-axis. I only want the month and year for the x-axis. I want to at least get rid of it showing the time. df[['Adj_Close', 'MA(3)', 'EWMA(3)']] Adj_Close MA(3) EWMA(3) Tick...
Keith W
1

votes
0

answer
35

views

How to quickly check svn repository connectivity for scripting purposes

My build script hangs for 60+ seconds if svn repository is in a bad state or network connectivity is compromised in some way. I want to quickly check to see if an svn command will hang, without having to wait 60+ seconds for a connection to timeout. A simple 'ping' of the server is not sufficient....
Keith Knauber
1

votes
0

answer
909

views

VirtualBox VM won't start because of Anti-Virus .dll injection

First off, I can't remove BeyondTrust PowerBroker / Symantec Anti-virus. A recent update has added an injection into VirtualBox in which VirtualBox see's it as an intrusion so the VM won't start. Now, VirtualBox itself starts fine, but starting a VM gives me this message: (rc = -5640) Please try rei...
Keith
1

votes
2

answer
483

views

Python writing dataframe to excel - Check if tab exists and overwrite otherwise create

The following code works correctly the first time creating tabs x1 and x2 and fills with data. When executed again for new data it doesn't check if the tabs already exist and adds new erroneous tabs x11 and x21. import pandas as pd import numpy as np from openpyxl import load_workbook import os file...
Keith W
1

votes
0

answer
435

views

read googlesheets with VB.net

I am trying to create a asp.net VB app. that reads my googlesheets and captures the sheet data. I have gone thru the signup process and have been able to get to my googlesheets and list the title name. Now I want to read a range of a sheet and save/print the data in each field of the sheet. Here is...
Keith Thompson
1

votes
0

answer
55

views

How to reference the PHP SDK for Zoho API Version 2

I am attempting to use the PHP SDK to access the Zoho API. I have successfully installed the SDK using composer as per the instructions, and it sits in the /vendor folder on my web site. So if I create a PHP page, which part do I need to reference with require or include or whatever to give my PHP p...
Keith KMSPIC
1

votes
2

answer
35

views

Animating Multiple Custom Shapes in html5 Canvas

Very first post so I apologize if I format my question wrong. I have had some experience animating multiple circles with canvas prior to this project but currently am trying to animate a custom made letter Z. Currently in the process of trying to make 100 Z's do the same thing, for some reason my...
Keith Booher
0

votes
0

answer
9

views

How can I optimize loops through a multidimensional array?

After gathering some 3D netCDF data on Python 3, I am in the process of looping through each x,y data point to calculate another variable. The calculation of this variable is dependent upon the z for a given x,y point. The code seems to be running correctly but is awfully slow; I am wondering if any...
Keith Sherburn
1

votes
1

answer
57

views

Add Handler method not being called when Routed Event is attached

I'm trying to create an attached behavior to add an auto-complete list to the standard TextBox control. My goal is that every time the TextChanged event is raised, my AutoCompleteBehavior class creates a popup and fills it with potential auto-complete results. To get these results, my AutoCompleteBe...
Keith Stein
1

votes
1

answer
700

views

Batch renaming files on Windows Command Line

I have several files generated by a build script that look like this: sfml-audio-s-d.lib sfml-graphics-s-d.lib sfml-system-s-d.lib ... I need to rename them to remove the -s-d part (which in certain cases can be just -s). After searching around SO for an hour I thought it would be simple to do using...
Keith M
1

votes
0

answer
242

views

How do I increase the output width of JupyterLab in my browser?

In the original Jupyter notebooks, it was possible to increase cell output width with the following command: from IPython.core.display import display, HTML display(HTML('.container { width:100% !important; }')) In JupyterLab, the above command has no effect, but I would still like to expand my cell...
Keith Lyons
1

votes
0

answer
49

views

I want to make my single-tenant eve application multi-tenant, perhaps using flask-login

I currently have a single-tenant eve app which works great, but would like to make it multi-tenant. That is, I want to allow multiple users to login where each gets a totally separate database (or different tables?). I looked at flask-login for managing the user login (and registration) piece, but...
Keith Smith
1

votes
0

answer
330

views

Android Navigation Architecture Component - Programmatically

Looking for examples or anything similar that takes Swift (iOS) code like this: let navController = UINavigationController(rootViewController: initialView) and sets it up in Kotlin, via the new Navigation component. I've referenced the following examples, but it's not making complete sense to me:...
Keith Kowalski

View additional