david david

33324 questions
1

votes
1

answer
682

views

How do I tell what version of IIS and Windows my Azure App Service is running on

I received an email from the Azure team that they were planning on upgrading the OS of Azure App Service to Windows 2016. The only advice they gave was to try running on windows ten or Windows Server 2016 in preparation. My application started crashing in a new and unexpected way that might be expl...
David W Gray
0

votes
1

answer
19

views

VBA Worksheet Loops

I'm currently working with a workbook containing 34 different tabs. I'm trying to extract Monthly Data from each of the tabs and Transpose it into daily figures for each specific city. I have put all the dates within the year 2019 as columns in order to present it as daily figures. (See example in...
David Gorgan
1

votes
1

answer
499

views

Swift - Is There A “Dictionary With Duplicate Keys” Workaround?

Currently I am working with alamofire to send post requests to a certain site. In the paramaters of the post request, there is a duplicate key entry that is required to send the post request, but when I am making the dictionary and enter both keys as string literals, I receive the nasty 'Duplicate K...
David K
1

votes
3

answer
1.7k

views

Unable to `openssl verify' letsencrypt certificate

I gererate a certificate with Letsencrypt using the Certbot container: $ mkdir /home/$USER/letsencrypt $ docker run -it --rm -p 80:80 -p 443:443 -v /home/$USER/letsencrypt:/etc/letsencrypt certbot/certbot certonly --standalone --email [email protected] --agree-tos -d example.com I navigate to the gen...
David Carboni
-1

votes
0

answer
24

views

Is a string array empty via a Blueprint Class?

I am trying to put a value in the string that is located in a class. For an example. There is an object1 printed from the blue-print class and there is a string array there with the size of 12. For each number from 1 to 12, I want to check if the current [i] is empty and if, bring the value there....
David Kostadinov
1

votes
2

answer
167

views

Node callback style with promisify? “The 'original' argument must be of type function”

I'm using util.promisify in a Google Cloud Function to call IBM Watson Text-to-Speech, which returns a callback. My code works but I get an error message: TypeError [ERR_INVALID_ARG_TYPE]: The 'original' argument must be of type function The documentation says Takes a function following the common...
Thomas David Kehoe
1

votes
1

answer
33

views

Recreating a plot from Fundamentals of Data Visualization [closed]

I'd like to recreate this plot:Fundamentals of Data Visualization. See also below with the screenshot. I have searched the GitHub page link but I cannot find it. Can someone create a plot like a book with many distributions along the horizontal axis? The plot from the book:
David
1

votes
2

answer
36

views

Error: could not convert '<brace-enclosed initializer list>()' from '<brace-enclosed initializer list>' to 'struct'

template class Vec { T data[S]; public: constexpr Vec(const T& s) : data{s} {} }; template class Mat { Vec data[Rows]; public: constexpr Mat(const T& s) : data{Vec(s)} {} }; int main() { constexpr Mat m{1.0}; return 0; } This code gives me the following error: source/main.cpp:24:25: error: could n...
David Bermejo
1

votes
1

answer
29

views

RxJS Subject one off event

I understand that a Promise can only be used once and an Rxjs Subject can deliver multiple events. If you are using rxjs in your application, is it good practice to use a Subject for something that a Promise could do? In my service: const addedItem: Subject = new Subject(); addedItem.next(res); add...
David Findlay
1

votes
2

answer
31

views

More than one file was found with OS independent path 'lib/armeabi-v7a/libRSSupport.so'

I am getting this error after including shimmer layout to my android project. I tried editing my packagingOptions in my build.gradle (Module: app) but it did not work. packagingOptions { exclude 'META-INF/DEPENDENCIES' exclude 'META-INF/LICENSE' exclude 'META-INF/LICENSE.txt' exclude 'META-INF/licen...
David Kariuki
1

votes
3

answer
53

views

git workflow: should I commit before I pull?

I read the following post: How do you git fetch then merge? 'Error: Your local changes to the following files would be overwritten by merge' I work with my friend on the same branch with git. When he did changes to our project and he pulls the project, he gets the error, that his local changes will...
David
0

votes
0

answer
4

views

How to insert a RecordSet to Route53 in another AWS Account

My team is developing a product that launches new EC2 instances with some software in it, and we run a small piece of python code upon the instance's boot up process to register it in our Route53 DNS. The EC2 instances and our Route53 are in different AWS accounts. While this python code works beaut...
David Cardoso
0

votes
2

answer
29

views

If text boxes are not empty check checkbox

I am trying to figure out how to check if all 4 inputs are filled out then checkmark the contact information check box. If any are not filled out uncheck the checkbox. Any help with this would be greatly appreciated. $(document).on('change', '#ContactName, #ContactEmail, #ContactPhone', function() {...
David Brierton
0

votes
2

answer
23

views

Is it possible to use Angular components without Angular modules?

I love the component templating engine Angular uses but don't need DI or the router. Is it possible to just use the components/templating engine?
David Alsh
1

votes
2

answer
288

views

Targeted architecture of .NET assembly using Mono.Cecil

Can I find whether a .NET assembly has been specifically build for 32 or 64 bits using Mono.Cecil? Or any other way of finding out without having to load the assembly first.
David Rutten
0

votes
1

answer
20

views

Required attribute for a dropdown does not work

I have a html form which has a dropdown consisting of a few values. If the user does not select an option and moves to the next field, I need to give an error message. I have used the required attribute but it does not fire in Chrome and Firefox. This is my code : Select Gender Male Female Other The...
David D'Lima
2

votes
1

answer
94

views

Mapbox iOS clustering works, but circle style layer and numbers layer aren't appearing/reflecting the marker density of the cluster

I am using Mapbox to create an iOS application. The application gets makes a request to my API that returns a number of events going on within the map's bounding box in JSON format. I was previously not using clustering, so some map annotations were simply covering others. I am using this Mapbox tut...
David Chopin
0

votes
0

answer
4

views

How to get POINT OF VIEW of specific Place using Google Maps

I want to use Google Places Autocomplete - Per Session, with Place Details included, and when an user clicks on an item, display a Google Map StreetView with the Place. The way I was trying to do was: when a user clicks on an autocomplete-list, I use getPlace() function for getting geometry.coordina...
David Manso
0

votes
0

answer
6

views

Preciso de uma ajuda em um código de VBA

Preciso de um código para avaliar duas colunas, uma coluna com uma quantidade de um documento de venda que será zero ou maior que zero e outra com um documento de vendas onde pode haver ordens duplicadas. Assim a ideia seria avaliar os documentos de vendas duplicados que estarão em sequencia e de...
David Cardoso
1

votes
1

answer
348

views

In OpenGL, is there a way to blend based on a separate channel's value in the shader?

In OpenGL (not ES), is there a universal way to blend based a texture while drawing based on another texture or variable's value? On OpenGLES, I know that I can do custom blending on some platforms via extensions like GL_EXT_shader_framebuffer_fetch. The reason I ask, is that I have a special textur...
David
1

votes
1

answer
1.1k

views

can xlwings run excel in the background?

I run a Python XLWings code where multiple Excel files are called sequentially. Although the code closes each Excel after dealing with it (and no more than 1 excel is open at any given moment), the process becomes increasingly slow. Memory tests show that residual processes remain after closing exce...
David BA
0

votes
1

answer
21

views

How to loop through array of dynamic size and pass properties as arguments in variadic function?

I have a bit of an interesting question, and am not sure if what I am wanting to do is possible. If not, I imagine there is some other workaround for my issue. I am using Mapbox (MapKit alternative) for iOS. Mapbox has style layers which let you set different images for different pins on a map. This...
David Chopin
1

votes
5

answer
53

views

iteration over python nested lists

I need to convert list 'a' to list 'b' , how to do it? a = [[[1, 2, 3], [4, 5, 6]], [[7, 8, 9], [10, 11, 12,]]] b = [[[1, 2, 3, 4, 5, 6]], [[7, 8, 9, 10, 11, 12,]]]
David Bots
1

votes
2

answer
210

views

Kotlin send me this error: For-loop range must have an 'iterator()' method

data class precioSuper(var producto:String, var precio: Int, val codigoDeBarras:String) fun main(args: Array) { //Qué vende o super? val galletas = precioSuper('galletas', 3, '0001') val chocolate = precioSuper('chocolate', 5, '0002') val leite = precioSuper('leite', 2, '0003') var productos = arra...
David
1

votes
2

answer
39

views

Load a dataframe from a single json object

I have the following json object: { 'Name': 'David', 'Gender': 'M', 'Date': '2014-01-01', 'Address': { 'Street': '429 Ford', 'City': 'Oxford', 'State': 'DE', 'Zip': 1009 } } How would I load this into a pandas dataframe so that it orients itself as: name gender date address David...
David L
1

votes
3

answer
64

views

Load a dataframe from json array in order

Suppose I have the following array in python: [ {'id': [1,2,3]}, {'name': [4,3,2]}, {'age': [9,0,1]}, ] How would I load this into a pandas dataframe? Usually I do pd.DataFrame from a dict, but it's important for me to maintain the column order. The final data should look like this: id name...
David L
1

votes
3

answer
130

views

Cut and paste Visio shape in macro

I'm trying to write a VBA macro that builds a basic diagram from data and certain template shapes (held on a separate page). While I can cut and paste successfully, I seem to be unable to reference the new shape after I do this. I can relocate the shape before I cut and paste it, but if I try to d...
David Fulton
1

votes
1

answer
39

views

passing an id in django homepage url

I'm trying to create a blog using django. I have truncated the post such that you have to click on the post to read the entire post.essentially, you should be redirected to article.html where you get to read the entire blog post. If I try to go to my article.html/1, I can read the post, but if I try...
David Ng'ang'a
1

votes
2

answer
64

views

TableViewCell Nib error: loaded the nib but the view outlet was not set

Trying to create a tableView cell xib, but am stuck with the error 'loaded the nib but the view outlet was not set' I have read many posts and most say to drag the 'view' from File's Owner to the IB view. However, if you notice from the images, I do not have a 'view' as an option. I have recreate...
David Sanford
1

votes
3

answer
50

views

Fold out a numpy array along a new dimension using values as index

I have a [m,m] numpy array with element in {0, 1, 2, ..., 24}, now I want separate each number in a third dimension to get a [m,m,24] array. a simple example, [5,5] array with element in {0, 1, 2, 3} [0 0 1 0 0 2 0 3 0 1 0 2 3 1 0 0 0 1 0 0 1 0 2 0 1] Now I need get a `[5,5,3]` array [[0 0 1 0 0 0...
Lee David
1

votes
2

answer
44

views

Adding to a file without erasing what is inside

I am writing a code that takes some input from the user and stores it in a file. My code is supposed to keep the old data and add the new data, but every time I run the code the old data that was in the file gets replaced by the new one. if(input == 1){ outFile.open('personnel2.dat'); int numRecord...
Juan David Liang Liao
1

votes
3

answer
30

views

A clear step by step process for running a periodic task in a django application

I have been trying a long for creating a periodic task in Django but there are lot of version constraints and not a clear explanation.
Albin David
1

votes
2

answer
75

views

Get number of rows in a BigQuery table (streaming buffer)

I am doing inserts via Streaming. In the UI, I can see the following row counts: Is there a way to get that via the API? Current when I do: from google.cloud import bigquery client = bigquery.Client() dataset = client.dataset('bqtesting') table = client.get_table(dataset.table('table_streaming')) ta...
David L
1

votes
1

answer
55

views

Cant read file text file in C

Hello i got a problem im trying to solve problem and learn how the learning from files works .I did this code by tutorial and when i execute instead of learning my file and write on console something like 1 4 6 5 1 etc.. its just spam only 0 0 0 0 0 0 0 and then repeat If you would say me where is...
Rábel David
1

votes
2

answer
32

views

Is there a way for the console to print 2 lines when calling a function

So I'm building a program in R that defines a function that takes a vector calculates it's length, prints the length and if it's bigger than 10 type 'YES' otherwise type 'NO' index x index(x) [1] 'NO' > x index(x) [1] 'YES' Is there a way for the console to print out both the length and the 'YES' or...
David Mason
1

votes
1

answer
58

views

How to close a task waiting on a server socket listen?

I have a program, written in Ada (although for this purpose I'm interested in any solution). It has a task in it that won't shut down without a sigkill (the program handles SIGUSR1) because it's waiting on a server socket it's created. The SIGUSR1 is handled correctly, but this task won't terminate...
David Boshton
1

votes
3

answer
54

views

How do I find a character followed by a character in a char array Java?

I am trying to find a character array inside of a character array so that in the array, A would be followed by B. For some reason, I do not get an error but I also cannot get it to do the work I want when I have an array with the combination. I was just wondering if someone could explain what I am d...
David
1

votes
1

answer
116

views

Haskell Unzip With Fold

I'm trying to figure out how to create a custom unzip function in Haskell using a custom version of fold (basically works as foldl) but I've become stuck. I can get it to unzip' :: [(a,b)] -> ([a],[b]) unzip' = fold (\x->([x!!0],[x!!1])) ([],[]) But that errors out with: • Couldn't match expected...
David Wolak
1

votes
1

answer
46

views

Typescript: Array with arrays fails when using map

type Point = [number, number] type Points = Array const ok: Points = [[0, 0]] const fail: Points = [0].map(() => [0, 0]) Type 'number[][]' is not assignable to type '[number, number][]'. Any ideas? Playground
David Hellsing
1

votes
1

answer
37

views

Finding what checkin broke a unit test

Some checkin over the last 3 days broke one of our unit tests (and why is not at all clear). I'm assuming the best way to find which check in is to pull the code in the branch as of 3 days ago, verify the test passes, then keep pulling for a checkin halfway between works & fails to find the checkin...
David Thielen

View additional