All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
5 views

How to store a word from file in a separate variable?

In this code, I want to select a word and save it in a separate variable. Same with all the words in a file. I have given the option (which I commented) to select any word from the file and when a ...
0
votes
0answers
2 views

How to share lambda function across all methods in Ruby?

I have a lambda like this: class MyClass def test to_cross = lambda do |m, x| # Just a dummy example return m * x end to_cross.call(7, 9) end def ...
0
votes
0answers
3 views

How would I convert an array of objects to an array of arrays of objects based on an objects value?

I have an array of objects like this: const arrayOfObjects = [ {app: 'User', subpage: 'Dashboard', path: '/user/dashboard'}, {app: 'User', subpage: 'Profile', path: '/user/profile'}, {app: 'User', ...
0
votes
0answers
2 views

xhtml2pdf generating blank pdf for local html file

I have an interactive html file generated using Bokeh. I am trying to convert the html file into pdf using xhtml2pdf but the images on the html file dont show up on the pdf with xhtml2pdf or pdfkit. I ...
0
votes
0answers
4 views

Azure data pipeline: Auto resume of jobs and streams on node failures

I mean migrating big data pipeline on Azure. Suggest me the best Azure service and in which scenarios to use Azure data factory vs Azure bus service vs Azure event hub (different scenarios supporting ...
0
votes
0answers
2 views

Handle static pages in Angular by fileReplacments

I am looking the solution for below problem. My app will be consists of two parts: SPA APP - Angular App - standard configuration/schema, app/src/...index.html -> from that place is bootstraping ...
0
votes
0answers
13 views

What is faster? 2 if or if else

I have this code if(arr[i] > 0) { positive += 1; } if(arr[i] < 0) { negative += 1;= } The first condition is not relevant for the second ...
-2
votes
0answers
5 views

How can i implement a Gauge on Delphi?

do you guys have a suggestion of how can I implement something like this in Delphi??
0
votes
0answers
3 views

Migrating WordPress website from Apache shared server to DO Ubuntu Nginx server : crash

I'm migrating this website from OVH shared serveer to Digital Ocean : lespattesjaunes.com I use Runcloud to help me and website seem to crash. Here is the result : http://app-hessel.jxzsggt2dy-...
0
votes
0answers
7 views

Make a class not constructible C++

i want to have a class that a user can't construct (something like a pseudo-singleton), and i would like to know if deleting the default constructor is the right way to do it, or I need to delete ...
0
votes
0answers
7 views

pros and cons of duplex connector

What are pros and cons of duplex connector? If hub and spoke scenarios, I find the following. "if true, a network connection will be used to both produce AND Consume messages. This is useful for ...
0
votes
0answers
12 views

What is wrong with the logic? Why is the output in console always “RENT”? python list loop

This code is a part of my Django view code where i'm taking a voice input and extracting parameters from them to perform query over my Model Database. output = "apartment for sale for exactly 45 ...
0
votes
1answer
11 views

Set Button height to 100% of parent element without setting parent height

I have a div that contains a button, a table and another button in that order, I want the buttons to be to the left and right of the table and have the same height as the table. The buttons are ...
0
votes
0answers
8 views

Multiple consumers receiving messages from same queue in Active MQ

I am writing C# Application to access Active MQ using Apache.NMS.ActiveMQ. I have a situation where if I try to send messages in multiple threads and receive them, I am getting timeout for a few ...
0
votes
0answers
3 views

How to update @State variable and pass it on in iOS 14?

in iOS14 the following SwiftUI code does not work the same as in iOS13.x If you run this on iOS 14 device, the "selection" variable, although being changed and printed correctly in console, ...
0
votes
0answers
6 views

Choosing between Class, Interface, Types for conditional models

I do use Angular 8 with TS 3.5. I create and receive objects from the BE and it often gives me type error because a property doesn't exist. What's the best to init an object with a type you don't know ...
0
votes
0answers
6 views

All combinaisons with repetition of a list

Beginner with Prolog, I'm trying to get all the combinations with repetition of all elements in a list. Something like: combinaisons(NMax, Items) :- 1 #=< N, N #=< NMax, combinaisons(...
0
votes
0answers
10 views

How are you able to UNION data from SEPARATE TABLES into a TABLE VARIABLE?

I am trying to take data from two different tables and union them together into a table variable. I am working in AdventureWorks2016. So far this is what I have: DECLARE @PersonAddress TABLE (Name ...
0
votes
0answers
6 views

AVAssetWriter not capturing audio

I am new to iOS developlment and trying to learn how to record videos. I'm using AVCaptureVideoDataOutput and AVCaptureAudioDataOutput so that I can do some processing on individual frames later. Up ...
0
votes
0answers
13 views

Multiply matrix by array element-wise on numpy?

What I want is really simple but I can't figure out how to do it on numpy. I have the following matrix: M = [[1, 1, 1], [1, 1, 1], [1, 1, 1]] And this array: A = [1, 2, 3] I want to ...
0
votes
0answers
8 views

How can I simplify this python regex code?

I'm sure there is a better way of cleaning up a section of my web scrape. Can someone walk me through it? #Query:[<div class="price"> <span class="price-currency">$</...
0
votes
0answers
5 views

content_scripts fails to load Url on one particular website

I am sorry if that is something obvious. I am pretty new to Chrome extensions development. Here is a weird problem I am having. Cannot find anything similar in searches. My extension creates an ...
0
votes
0answers
3 views

How to reset the Infinite Loader in react-virtualized package?

What is the proper way to re-render the InfiniteLoader component that contains a List and AutoSizer component. How it works is in the parent component of our Child.js component, when the user clicks ...
0
votes
0answers
4 views

How to create a nested scroll/b-table in buefy vue js?

How to create a scroll inside a another scroll/b-table? what i have tried so far- <template> <div class="container is-fluid"> <b-loading :is-full-page="true" :...
0
votes
1answer
19 views

Swapping collumns in two dimensional arrays c++

i would like to swap first and secound collumn in my two dimensional array, how should i use the swap() function there. void swapp(int tab[5][6],int n=5,int m=6) { for(int i=0;i<n;i++){ for(...
0
votes
0answers
5 views

Most Efficient Way To Search For The Corresponding Object?

I am working on a package that makes installing other packages incredibly easy, inspired by homebrew but, hopefully, a bit better in terms of user-friendliness. My goal: To search through thousands of ...
0
votes
0answers
6 views

UTC to PDT/CDT/EDT pandas based on multiple columns

"Schedule" and "City" are two columns of pandas dataframe df1. How will we convert the values in the column "Schedule" to PDT/CDT/EDT timezones based on local time of the ...
0
votes
0answers
4 views

Cypress logs are shown as stuck while cypress test run trough maven

initially what I do is reading package .json script through a shell script then shell script will read by java class and the through testng.xlm I will do test execution ===== The issue is when there ...
0
votes
0answers
4 views

sonarqube SAML auth is failing with error 'Reason: The response has an empty Destination value'

I am integrating sonarqube SSO with onelogin. setup part is done. However it is giving error "Reason: The response has an empty Destination value" I checked SAML response and found that ...
0
votes
0answers
5 views

How to correctly block IPs in nodejs server app

Say I have a nodejs server app and I want to block users that failed to log in 3 consecutive times, what is the correctly way to do that? Should I handle the blocking part in the server app, basically ...
0
votes
0answers
9 views

Collision of sprites that vary in size in pygame

I am trying to code something similar to the game flappybird. In my program, I want to be able to check whether the bird is in contact with the pipe, and if so, the game should end. I have a pipe ...
0
votes
0answers
6 views

Self-sizing table view cell as text view height increases?

I am trying to create a table view in which the user can input information into a text view. As of now, my code allows the height of text view to expand depending on the length of the user input. ...
0
votes
0answers
6 views

How to get streamArn of a manually created dynamodb table in CloudFormation

I am trying to create a cloudformation template to deploy a lambda and this lambda will have DynamoDB as trigger. So, to accommodate that I am using AWS::Lambda::EventSourceMapping in my ...
0
votes
2answers
25 views

PHP output value from multidimensional array

I have an array $test_data_array which outputs: Array ( [0] => Array ( [0] => 166.35 [invoice_tax_total] => 166.35 ) ) It is built by: $testQuery ...
0
votes
0answers
4 views

Fetch all version of HBase via NiFi

I would like to get all versions of rows from HBase table via NiFi. I don't think it is possible with current FetchHBase, GetHBase and ScanHBase processors in NiFi it is possible as they only return ...
0
votes
0answers
6 views

GCP Cloud Function not correctly picking up/acknowledging PubSub messages

I have some data processing workflows set up in Google Cloud Platform. These location process physical addresses and return some metrics about them. The workflows use combinations of Cloud Functions ...
0
votes
0answers
3 views

Drupal 8 or 9 on SQL SERVER

Im looking to install Drupal on SQL SERVER as my other systems are on SQL SERVER as well. Any help in the right direction would be useful. I have other systems installed (Laravel) and other PHP ...
-1
votes
2answers
17 views

Python Code executing but not showing proper response

I have written code in python for displaying numbers from 1 to 100 except those numbers which are divisble by 3 and 5.When I tried to execute that code it didn't show any error and gets executed but ...
0
votes
1answer
11 views

What is the Rank.Avg (from Excel) function in Python?

What is the Python (pandas) equivalent of rank.avg in Excel? For example, if I want to rank column E from E5:E30 in Excel, I can use rank.avg(E5, E5:E30). Thanks!
0
votes
0answers
5 views

Have Fomantic-UI (Angular-JS) sidebar scoll indipendantly

Is there a method to get a sidebar to scroll indipendently from the content it pushes? Right now I have a page set up in this fasion: -------------------------- |[button] Header | -------------...
0
votes
0answers
6 views

How do I loop under Chart js in JavaScript for multiple axis?

I'm trying to loop into a chart js in order also to enable multi axis... however the function for seems to be giving an "unexpect token "for""... var getData = $.get('/graphcomp'); ...
0
votes
0answers
4 views

django-pyodbc-azure can't store binary data

I have a problem putting binary data into an sql server field in python2. It works great in python3, so I thought I could make it work in both with some standard str/unicode/bytes handling, but it's ...
0
votes
0answers
5 views

MKCoordinateSpanMake error Xcode, how to fix it (Attached pictures)

Getting error when using MKCoordinateSpanMake. The error is: 'MKCoordinateSpanMake' is unavailable in Swift I don't know how to fix this issue because I am learning code from a textbook and I just ...
0
votes
0answers
5 views

Why is posh-git showing a value in branch section when not in a repo

Here is what I'm seeing (notice that c:\repos doesn't have a .git directory) Here is what I have in my profile.ps1 Import-Module posh-git $GitPromptSettings.DefaultPromptPrefix.Text = "[$env:...
0
votes
0answers
5 views

How to create a Utils class for Vue.js that has access to Vuex this.$store

I have a case where I want to fetch state from the Vuex this.$store. I researched and found out having a custom plugin installing an instance method might do the trick. This is my plugin logic: index....
-3
votes
0answers
15 views

C# What's the best way to go about this? I have a textfile that I want to build into a Dictionary

I found the answer here in java once before in java it looks like this: Scanner scanner = null; try { InputStream is = getAssets().open("textfile1.txt"); ...
0
votes
0answers
12 views

Disable button if jquery autocomplete returns results

I'm using the jquery autocomplete to fetch data from a coldfusion CFC and display matching data when a user types. That part is working, but I'd like to disable the submit button in the form if a ...
0
votes
0answers
19 views

JavaScript class Instance vs Static

There are already a few Q&A regarding the class OOP is various languages. It appears that static method is marginally faster but the difference is insignificant in common practical usage. In ...
0
votes
0answers
4 views

Change woocommerce 'coupon does not exist! error message

I would like to change the default woocommerce error message that I get when client enters a coupon that does not exist (‘Coupon “%s” does not exist!’). Is it possible to do this directly in the ...
0
votes
0answers
4 views

I want my success message in alert and error messages in span using django ajax submit form

My view: This is my django view. It will return json. @csrf_exempt def usersignup(request): if request.method == 'POST': userform = SignUpForm(request.POST) profileform = ...

15 30 50 per page
1
2 3 4 5
399986