All Questions

New search experience powered by AI

Stack Overflow is leveraging AI to summarize the most relevant questions and answers from the community, with the option to ask follow-up questions in a conversational format.

Get early access
Filter by
Sorted by
Tagged with
-4 votes
1 answer
98 views

Junit test to cover Exception.How to write test case to cover all three exceptions

public void enqueue(AlarmMessage alarmMessage) { try { if(alarmMessage != null) { alarmQueue.add(alarmMessage); LOGGER.info("Added alarm to queue :"+alarmMessage....
Savitri Patil's user avatar
1 vote
2 answers
3k views

React JS - How to access props in a child component which is passed from a parent component

In my react application, I am passing my data from parent to child as props. In my child component, I am able to see the data in props however when I try to access the data, I am getting an error ...
techie_questie's user avatar
7 votes
4 answers
31k views

Visual Studio code 'open in browser' extension failed

I have installed Open in browser visual studio extension. But when I try to open the browser by shortcut Alt+B. It fails showing the following: Running the contributed command:'extension....
Adil Saju's user avatar
  • 1,129
2 votes
4 answers
10k views

How to pass id in controller from view (Edit user in laravel)

I have a view which displays all the user records in database. When click on the edit button it shows an error: Missing required parameters for [Route: admin.] [URI: admin/edit/{id}]. {!! Form::...
Hemant Kumar's user avatar
  • 1,085
7 votes
5 answers
597 views

In Scala, why does Array("1") ++ "-3" output Array[Any] = Array(1, -, 3)?

Why in Scala 2.12.6 does Array("1") ++ "-3" output res1: Array[Any] = Array(1, -, 3)? How do I get the result Array("1", "-3")?
Archer's user avatar
  • 335
1 vote
2 answers
1k views

Shopware 5.5 Plugin config variable frontend output

So, I updated to SW 5.5 and since then my config variable doesn't show up within the frontend, but I´m pretty sure I have made a mistake within my code but I cant see where.. because it worked before. ...
Snoisy's user avatar
  • 25
0 votes
1 answer
100 views

How can I play a track from a specific minute and second using Web Playback SDK?

Anybody knows how can I play a track from a specific minute and second using Web Playback SDK? Example: spotify:track:20zCnBjK6aIgvvy66qZ7RV from 00:44. Is there anyway to add this info to the ...
Julio Jordan's user avatar
0 votes
2 answers
98 views

List files and files of subdirectories from a given folder

I try to list all the files from a folder and its subdirectories to be uploaded one by one. It couldn't list files from subfolders of folder, just uses files from same folder multiple times. int ...
plaidshirt's user avatar
  • 5,439
1 vote
1 answer
113 views

Sequence of Locales

What exactly is the sequence in which the Locales are used? I have 3 properties file: Dolphins.properties name=The Dolphin age=0 Dolphins_en.properties name=Dolly age=4 Dolphins_fr.properties ...
Sudhanshu Jaisani's user avatar
0 votes
2 answers
104 views

Why do I have to include index in URL CodeIgniter?

I have created a controller call posts like below <?php class Posts extends CI_Controller { public function index(){ $data['title'] = 'Latest posts'; $this->load->...
HemalHerath's user avatar
  • 1,006
0 votes
4 answers
82 views

ngIf In angular 2

I want to display a button if paymentdone is due. Below is my HTML code for Angular using ngIf: <tr> <td class="table-id">{{app_list.testbookingmasterid}}</td> <...
user10483925's user avatar
2 votes
2 answers
251 views

UICollectionview custom layout: some indexes have more visible cells than others?

I'm facing a weird issue that I can't seem to figure out or find anything about online. So I'm trying to replicate the Shazam discover UI with a UICollectionView and a custom ...
JoniVR's user avatar
  • 1,869
1 vote
1 answer
1k views

Filter NULL in a gcloud query

My question is how can I filter a column in GCP and get all NULL outputs. For example, in the below picture I would like to filter all "NUM_NODES" which do not have any number (NULL) Thanks in ...
Yonatan Brand's user avatar
0 votes
1 answer
150 views

how to update ng-init variable in template angular js

I am trying to display a dynamically concatenated text in my angular js page.(My aim is to display the id of all users in title ) For that declared a variable 't' using ng-int and try to update the ...
Kavitha Velayutham's user avatar
1 vote
0 answers
394 views

How does one use Bloomberg in r after it connects?

I have never used r before, and my lecturer gave me some code to run to get data off Bloomberg. It seems to go fine, except the output stops at BLOOMBERG COMMUNICATION SERVER READY on Port: 8194 ...
ahorn's user avatar
  • 217
-1 votes
1 answer
65 views

Extract a character after a particular string [duplicate]

I want to extract a character after a particular string, example: Sentence: "Develop1 Tester2 BA3" String: Develop Expected result: "1" I tried the Regex as following but still not get result as ...
Raymond's user avatar
0 votes
0 answers
48 views

Repeating order based on user input

Scenario: I have a form for creating orders, which are stored in a SQL-db in Azure. In the form, there is an option for recurring order, where the user can choose between different options (like which ...
sknz's user avatar
  • 1
-1 votes
1 answer
69 views

there is an error when i download file with url on php

My codes work -- send variables from P.html to V.php with ajax And there is an error when i put some code in V.php. V.php makes span tag to P.html When i use code that download file with url, ERROR(...
TGkim's user avatar
  • 11
2 votes
1 answer
3k views

mat-error reappears on reset the form angular-material

In my angular 6 project I have used mat-error of angular-material to show error: <form class="custom-form" name="deal-form"> <mat-form-field class="full-width"> <input ...
Shwetank Tripathi's user avatar
0 votes
1 answer
1k views

Configure authentication and synchronization with two LDAP in Alfresco 5.1

We perform migration from enterprise version Alfresco 4.2 to the 5.1. There are two Active Directory domains (primary and child) in company, for this reason we configure two LDAP(AD) subsystems in ...
ERemarque's user avatar
  • 497
0 votes
0 answers
160 views

how to cache ajax response in browser and retrieve value from cache browser

I want to cache ajax response into browser database so that i can retrieve the reponse from another web page of the same application. so far i have tried but i am not able to retrieve the data from ...
abhishek's user avatar
  • 297
0 votes
0 answers
288 views

C: How to reopen the 'Standard-In' file descriptor, after having closed it?

Is there any way of reopening or repositioning the standard input file descriptor at the beginning of the stream, with only the use of the following functions: open, close, read, write ?
AymenTM's user avatar
  • 559
2 votes
1 answer
2k views

Angular 6 - Execute grandparent functions from grandchild

I need to execute these grandparent component functions: import { Component } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app....
Danifilipers's user avatar
-2 votes
1 answer
1k views

How do i hide error notification messages in magento 2

How to hide error notification message in Magento 2 (only error)?see image example
Web Lips's user avatar
-1 votes
1 answer
387 views

Details about signed Windows driver

I have custom Windows driver which is used until now without signature. I want to sign it to avoid warning messages while installing on Windows 7 and allow installation on Windows 10 without need to ...
i486's user avatar
  • 6,536
4 votes
3 answers
438 views

Double sum optimization

Recently I got this question in one of my interviews, which I unfortunately skipped, but I'm very curious to get the answer. Can you help me? int sum = 0; int num = 100000000; for (int i = 0; i < ...
WArmanW's user avatar
  • 51
0 votes
2 answers
1k views

RXSwift act while debounced

I would like to have an Observable that while debounced (in the time frame where we are still not emitting the value) something else will happen, for example show a spinner. So in my code example I ...
Eyzuky's user avatar
  • 1,883
1 vote
2 answers
2k views

How to use Segno to generate a QR code on the fly in python

How can I use the Segno qrcode python library to generate a QR Code on the fly to show it on a web page. For example, exporting it as an SVG: import segno qr = segno.make('Up Jumped the Devil') svgvar ...
qnx Smith's user avatar
0 votes
1 answer
38 views

get common elements from a result which consists of more than 1 array in arangodb

I want to fetch common elements from multiple arrays. The no. of arrays resulted would keep changing depending upon the no. of tags in array a[]. As a first step, my query and result I get is as ...
prachita bafna's user avatar
0 votes
0 answers
52 views

Click Noise after sending Audio Data to server

I am trying to record sound and sent it to server. when I record sound there is no clicking noise.but after sending server I am getting a click sound. 

As server is expecting raw wav stream without ...
Ahil's user avatar
  • 57
0 votes
1 answer
288 views

Change Nick Name of Email while sending the email from netsuite script 2.0

Suppose we have the code email.send({ author: 17874, recipients: "[email protected]", subject: "mail from netsuite", body: "test body ...
DVSingh's user avatar
  • 11
0 votes
1 answer
2k views

Transparent Database Encryption for SQL server 2017 on linux with standard edition

We need to Encrypt data at rest. Currently we are using SQL Server 2017 on Ubuntu, with Standard Edition. We are using AWS for managing servers. I tried to do TDE but it always show me below error. ...
Vikul Gupta's user avatar
2 votes
0 answers
405 views

How to set Connection properties on an Apache Reverse Proxy

I have to set connection properties on an Apache 2.4 Proxy which only uses the ProxyPassRerverse directive instead of the ProxyPass directive which accepts additional parameters like lim, max, ttl, ...
Marcus J's user avatar
0 votes
0 answers
816 views

Button click with function having parameters in jasmine unit test(angular)

I am writing unit test in angular for button click event. The button unit test mentioned below works fine for situations where a function is unparameterised - Like it will work if it is: (click)="...
user avatar
0 votes
1 answer
3k views

SKlearn prediction on test dataset with different shape from training dataset shape

I'm new to ML and would be grateful for any assistance provided. I've run a linear regression prediction using test set A and training set A. I saved the linear regression model and would now like to ...
l'Homme Fort's user avatar
0 votes
2 answers
2k views

Logstash JDBC adapter: Varbinary to UTF-8? (mysql to elastic import)

I'm trying to import a mysql table into elasticsearch via logstash. One column is of the type "varbinary" which causes the following error: [2018-10-10T12:35:54,922][ERROR][logstash.outputs....
AndroidStorm's user avatar
1 vote
1 answer
920 views

Matching tuples in sql

I am trying to write a query that matches a tuple of columns from a list. So let's say I have list of first names and last names and I want to match the combination of first and last name of the same ...
Niro's user avatar
  • 443
1 vote
2 answers
364 views

np.any() alternative if column is different than NaN or 0

I want to check if a column in a Dataframe contains a different value than 0 or NaN. Therefore I tried np.any() but it also returns true if only NaN and 0 are in the column. np.any([0 , np.NaN, 0]) ...
raffa_sa's user avatar
  • 425
4 votes
2 answers
12k views

What does this error TypeError: 'Button' object is not callable mean?

This is my first time coding in tkinter. When I try to create a new button in the function 'Registering' i keep getting the same error 'Button' object is not callable. I don't understand what this ...
Rayan Jirow's user avatar
1 vote
1 answer
983 views

Pagination in Gremlin

I'm trying to do pagination in Gremlin. I've followed the solution provided on gremlin recipes. So right now I am using the range() step to truncate results. This works well because when users asks ...
Maciej Mościcki's user avatar
0 votes
1 answer
44 views

Update query is giving weird error "CfPlnUt_Aemk5Mr77-AevA2"

I am trying to update a column in a temp table, based on some condition but getting a weird error. Conversion failed when converting the varchar value 'CfPlnUt_Aemk5Mr77-AevA2' to data type int. ...
Jitendra Pancholi's user avatar
0 votes
1 answer
454 views

Applescript compare items in the same array

I have this list set myList to {{1, "Bob"}, {1.5, "Jane"}, {3, "Joe"}, {1, "Jack"}} repeat with a in myList --something like that a+ if item 1 of a is equal to item 1 of a+ then --...
Spy's user avatar
  • 149
3 votes
3 answers
641 views

Python - Data Cleaning

I have a dataframe with a shape (42538, 145) in which there are over 50 columns which have a NaN values for all the rows. I would like to drop these columns without specifying each and every column ...
Prasad's user avatar
  • 51
0 votes
1 answer
159 views

Preprocessing technique in c#

Let's assume that we have an XML File. <world> <country > <name>INDIA</name> <states>#states_count</states> // the place where i need to need ...
Sivabalakrishnan's user avatar
3 votes
1 answer
4k views

mysql full text wildcard search like regex

Upto now I have been using WHERE col REGEXP 'IN (.*) WE TRUST' But ever since adding the full index search to this column then this query is very slow. I'm waning to know know how I could ...
TheMan68's user avatar
  • 1,459
1 vote
2 answers
510 views

Angular6 and ng2-charts does not display any charts when i fill data from webservice

i need to implement some charts in my project but when i fill data from webservice it does not show anything, can any body tell me why it happened and how can i solve this problem ?? My component is :...
arash Dman's user avatar
-1 votes
1 answer
75 views

Can't pass a Test Execution result to a variable in Robo Framework

I am posting the results of automated tests to an offline forum. It would be nice to include PASS/FAIL in the forum post title but I'm having some difficulties retrieving the ${TEST STATUS} value - (...
resourceful-idiot's user avatar
1 vote
0 answers
229 views

How to use a variable in API payload in Jupyter Notebook

I'm using Jupyter Notebook to gather up a bunch of API calls then use various plotting tools to generate pretty graphs. I have the notebook working great when using constants in the API payload. Now ...
Bill Heffelfinger's user avatar
0 votes
3 answers
2k views

Pandas: CSV header and data row size mismatch

Is it possible to instruct Pandas to ignore columns which positions are exceeding header size? import pandas with open('test.csv', mode='w') as csv_file: csv_file.write("datetime,A\n") ...
Ryszard Styczynski's user avatar
0 votes
0 answers
70 views

Use shell variable into shell set

Here is my variable: time="$(date)"; I have used positional parameter set -- $time to form JSON format JSON_FMT='{"time" : "%s"}\n' printf "$JSON_FMT" "${time}" Here the variable is not getting ...
Sri's user avatar
  • 33

15 30 50 per page