All Questions

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

Swift .nodePrettyPrint only affecting portion of string

I am using xmlData(options: [.nodePrettyPrint, .nodeCompactEmptyElement]) to pretty print and only part of the XML seems to be being treated. This code print(fcpxxml2.xmlString) let data2 = fcpxxml2....
0
votes
0answers
2 views

Spring @Value annotation usage

Please see the code below. Even though I set the spring.profiles.active=qa it still overrides the last value which is dev-YAML. Any idea why? I do not want to use @ConfigurationProperties etc. I would ...
0
votes
0answers
3 views

Can't use lambda as hash for unordered_set of pairs?

I am trying to define a type that's an unordered_set over pairs of unsigned int: typedef std::pair<unsigned int, unsigned int> Loc; auto HashLoc = [](const Loc &l) { return l.first <<...
0
votes
0answers
3 views

How to store user data and when the data is repeated it should show error

Example if there are 4 slots named A1,B1,C1,D1. IF FIRST USER ENTERS A1 AND WHEN THE SECOND USER ENTER THE SAME SLOT IT SHOULD ERROR IT HAS ALREADY BEEN CHOSEN.
1
vote
0answers
4 views

reactjs - validate enddate is 30 days older

How do I validate that the end date is not a date in the past and at least 30 days from the start date? <TextField id="startdate" name="...
1
vote
0answers
3 views

Accessing child component variable from parent component in Angular multiple times

I am using the Table extension from PrimeNG for creating tables and including it in other components. I have the following code: <p-table [value]="data" [columns]="settings.columns&...
0
votes
0answers
2 views

Revert error on delegated transfer function

Here is my code base, first I am deploying the tokenPS contract on the tesnet which generates an addr(0xaddr) and then I am deploying the caller contract. In caller contract when I am trying to ...
-5
votes
0answers
14 views

Counting Coins Python

I need help solving this problem in python. Given an amount of money in decimal form. Return the least number of coins needed to make that money using toonies, loonies,quarters, dimes, and nickels. ...
0
votes
0answers
3 views

php select and fetch

this is a quiz and i wish to limit the user from submiting the same question and reciving points . i have a db for user corect questions and a select statment, but it is only insrting and not reading ...
0
votes
0answers
4 views

Does `ShapeStyle` inherit from `View`?

In the official document about ShapeStyle, there is nowhere to find out whether ShapeStyle inherits from something else or not, is it a View?
0
votes
0answers
8 views

AttributeError: 'str' object has no attribute 'append' # Porter stemmer to stem a given word

I am writing code in Python and using Porter stemmer to stem a given word Following are my code. Getting error with for loop text = "Very orderly and methodical he looked, with a hand on each ...
0
votes
0answers
4 views

Minmax changes the current state and I could't figure out how to avoid this problem

I have implemented a modefied version of Dynamic Connect but I couldn't fix a problem I am facing which is apparantly the minimax alters the current state when it searches the tree. The minimax ...
0
votes
0answers
3 views

fetching array into modelClass cannot get to String

after digging a lot for how to implement nested now i cannot fetch my array into modelClass and as no mysql tutorial over the internet of how to get it done your help is appreciated php <?php $...
0
votes
0answers
16 views

Why same code in python takes forever time but runs quickly in C

I was trying to attempt a simple question on HackerEarth. I code in python usually. My test cases were failing due to time limit in python so I tried to implement the same logic via C programming. And ...
0
votes
0answers
4 views

ansible conditional statement inside a block using multiple variables

I would want my block to execute ENV task only when my docker_container == container1 , I tried few things by using when condition failed 'dict object' has no attribute 'stdout', tried with_items but ...

15 30 50 per page
1
2 3 4 5
1345900