question_id int64 37.6M 73.2M | input_text stringlengths 88 52.4k | output_text stringlengths 37 35.6k | title stringlengths 15 150 | tags stringlengths 1 107 | q_score int64 -19 397 | view_count int64 3 879k | answer_count int64 1 21 | accepted_answer_id int64 37.6M 73.8M | answer_id int64 37.6M 73.8M | a_score int64 -5 1.29k | is_accepted bool 1
class | creation_date stringlengths 20 24 | input_text_instruct stringlengths 251 52.6k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
71,327,785 | Unable to map custom claims to Azure AD B2C from custom IDP (KeyCloak) via UserFlows<p>My instance of Azure AD B2C is using a custom IDP with a OIDC provider (KeyCloak). In KeyCloak each user has an attribute that needs to be mapped into B2C as a custom claim. Lets call the claim that needs to be mapped "<strong>s... | <p>You need to use a custom policy.</p>
<p>Deploy with one click <a href="https://aka.ms/iefsetup" rel="nofollow noreferrer">here</a>.</p>
<p>Then follow this <a href="https://docs.microsoft.com/en-us/azure/active-directory-b2c/identity-provider-generic-openid-connect?pivots=b2c-custom-policy#add-the-identity-provider"... | Unable to map custom claims to Azure AD B2C from custom IDP (KeyCloak) via UserFlows | azure|keycloak|azure-ad-b2c | 0 | 294 | 1 | 71,345,535 | 71,345,535 | 0 | true | 2022-03-02T18:51:12.647Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Unable to map custom claims to Azure AD B2C from custom IDP (KeyCloak) via UserFlows<p>My instance of Azure AD B2C is using a custom IDP with a OIDC provider... |
71,334,044 | Output showing in debug console, but now terminal vsCode<p>Since yesterday, whenever I run a code it debugs fast and shows the result in the debug console and not the terminal. I've been using VScode for a while now, but never had this issue. Any fix?</p> | <p>Maybe you set the debug console as the default option.
You can type "ctrl+shift+P" and then choose launch.json.
Delete the line "console": "internalConsole"</p> | Output showing in debug console, but now terminal vsCode | java|debugging|visual-studio-code | 0 | 520 | 2 | 71,345,718 | 71,345,718 | 0 | true | 2022-03-03T08:25:26.487Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Output showing in debug console, but now terminal vsCode<p>Since yesterday, whenever I run a code it debugs fast and shows the result in the debug console an... |
71,345,588 | how to show one more item from top or bottom of visible area with scrollIntoView()?<p>I want to show two items when using <code>scrollIntoView()</code> with navigating buttons (up and down) to let the user know there are items to navigate, but the first and last items should have default behavior, So the user knows it ... | <p>First you need when <strong>appear the previous element</strong></p>
<ul>
<li>if we click in <strong>up button</strong> and the <strong>current index not the first element</strong>, in this <strong>statue</strong> we need to <strong>scroll to previous</strong> element and <strong>add focused class</strong> to curren... | how to show one more item from top or bottom of visible area with scrollIntoView()? | javascript|css|scroll | 0 | 41 | 1 | 71,345,722 | 71,345,722 | 0 | true | 2022-03-04T01:15:02.863Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
how to show one more item from top or bottom of visible area with scrollIntoView()?<p>I want to show two items when using <code>scrollIntoView()</code> with ... |
71,345,973 | How to enable dropdown box on value change in person textarea<p>I have a dropdown disabled by default. I want to enable it when the the textarea person field is not empty.</p>
<p>When the textarea person field value is removed, the dropdown field should be emptied and disabled.</p>
<p>Current code which is not working:... | <p>Let's say you have this HTML</p>
<pre><code><textarea name="hello"></textarea> <!-- Example name = hello -->
<select name="DDL" id="DDL" disabled></select> <!-- Dropdown -->
</code></pre>
<p>In your js file, you can capture if the user types something... | How to enable dropdown box on value change in person textarea | javascript|html | 0 | 28 | 1 | 71,346,160 | 71,346,160 | 0 | true | 2022-03-04T02:29:30.507Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to enable dropdown box on value change in person textarea<p>I have a dropdown disabled by default. I want to enable it when the the textarea person field... |
71,341,973 | Running a script for 2 (or more) instances on same page<p>I have a "characters remaining" counter for my Shopify store that shows how many characters a customer has left to enter in a text box. It works perfectly when I have one text box on the page, but if there are two or more, the countdown text does not ... | <p>Instead of using id on HTML elements, you need to use classes because the same id is not allowed more than once into an HTML document, if you add it then it does not work.</p>
<p>So use classes and loop the code over each element like you adding using id.</p>
<p><div class="snippet" data-lang="js" data-hide="false" ... | Running a script for 2 (or more) instances on same page | javascript|shopify | 0 | 37 | 1 | 71,346,764 | 71,346,764 | 0 | true | 2022-03-03T18:19:45.450Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Running a script for 2 (or more) instances on same page<p>I have a "characters remaining" counter for my Shopify store that shows how many characte... |
71,306,857 | How can I alter my redux action and reducer to have array with objects in it?<p>I have currently redux action and reducer that allows me to add or remove items from the array. Now I want to add more items in following format. <code>[{id: , car: '', text: '', box1Checked: '', box2Checked: '', box3Checked: ''}]</code></p... | <p>The problem was solved using following. It was really small change that was needed.</p>
<pre><code> case ADD_NEW_CAR:
return {
...state,
cars: [...state.cars, {id: state.cars.length, ...action.payload}],
}
</code></pre> | How can I alter my redux action and reducer to have array with objects in it? | react-native|redux | 0 | 34 | 2 | 71,347,275 | 71,347,275 | 0 | true | 2022-03-01T10:16:09.693Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I alter my redux action and reducer to have array with objects in it?<p>I have currently redux action and reducer that allows me to add or remove ite... |
71,347,985 | React State Updation Issue<p>My component's state is as below:</p>
<pre><code>const [state, setState] = useState({
teamMembersOptions: [],
selectedTeamMember: {},
});
</code></pre>
<p>teamMembersOptions are being mapped from the redux state teamMembersList as below:</p>
<pre><code> const teamMemb... | <p>There are a number of things going on here and lot of them cause renders to trigger more renders which is why you are getting unexpected output.</p>
<p>I have add <code>useMemo()</code> and <code>useCallback()</code> around the data and calculation method respectively, and added their return values to the dependency... | React State Updation Issue | reactjs|redux|state | 0 | 36 | 1 | 71,348,372 | 71,348,372 | 0 | true | 2022-03-04T07:36:34.050Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
React State Updation Issue<p>My component's state is as below:</p>
<pre><code>const [state, setState] = useState({
teamMembersOptions: [],
se... |
71,348,194 | Why hasn't this value changed ,use slodity 0.8.6<p>I use hardhat test my contract,contract code like this:</p>
<pre><code>uint256 public investLength;
function A()external{
uint256 id = investLength++;
_a(id);
}
function _a(uint256 _Id) internal returns (address) {
require(_id != 0, 'id zero');
}
</cod... | <pre><code>uint256 id = investLength++;
</code></pre>
<p>This snippet assigns the current value of <code>investLength</code> (which is 0 by default) to <code>id</code>, <strong>and then</strong> increments <code>investLength</code>.</p>
<p>If you want to increment the <code>investLength</code> first, and then assign th... | Why hasn't this value changed ,use slodity 0.8.6 | solidity|hardhat | 0 | 33 | 1 | 71,348,401 | 71,348,401 | 0 | true | 2022-03-04T07:58:01.970Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why hasn't this value changed ,use slodity 0.8.6<p>I use hardhat test my contract,contract code like this:</p>
<pre><code>uint256 public investLength;
f... |
71,349,030 | How do I scale a triangular div background properly?<p>I'm trying to figure out how to scale a div box with a triangle shaped background color. It currently has a fixed width on the borders but when I make the screen size smaller it ends up breaking the whole layout look. I need it to scale exactly like a regular div b... | <p>I believe you could use the scale() method
<a href="https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function/scale()" rel="nofollow noreferrer">as described here</a></p>
<p>It should look like this (if you want to scale it to 70% of its actual size) :</p>
<pre><code>.element-class {
scale(0.7)
}
</code></... | How do I scale a triangular div background properly? | css|resize|width|border | 0 | 26 | 1 | 71,349,122 | 71,349,122 | 0 | true | 2022-03-04T09:10:38.887Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do I scale a triangular div background properly?<p>I'm trying to figure out how to scale a div box with a triangle shaped background color. It currently ... |
71,349,060 | Simple Node.js Heroku deployment fails<p>I have this simple web-server named <code>index.js</code>:</p>
<pre><code>const express = require('express')
const app = express()
const port = 3000
app.get('/', (req, res) => {
res.send('Hello World!')
})
app.get('/data', (req, res) => {
res.send('Data')
})
app... | <p>You cannot use 3000 as your default port on heroku.You should use heroku's port.The problem is basically arising due to the port.</p>
<p>For working of it change your code like -</p>
<pre><code>app.listen(process.env.PORT || port, () => {
console.log(`Example app listening on port ${port}`)
});
</code></pre>
<p>N... | Simple Node.js Heroku deployment fails | node.js|heroku | 0 | 31 | 1 | 71,349,167 | 71,349,167 | 0 | true | 2022-03-04T09:12:55.793Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Simple Node.js Heroku deployment fails<p>I have this simple web-server named <code>index.js</code>:</p>
<pre><code>const express = require('express')
const a... |
71,347,278 | implementation of Gateway Global filter in Kotlin to Java implementation<p>I have a scenario that I have some microservices, cloud gateway and eureka server. All microservices and cloud gateway registered on the eureka server. Cloud gateway will securing all the downstream services. When any user want to access the ser... | <p>I believe it's something like following</p>
<pre class="lang-java prettyprint-override"><code>@Component
public class AddCredentialsGlobalFilter implements GlobalFilter {
private final String usernameHeader = "logged-in-user";
private final String rolesHeader = "logged-in-user-roles";
... | implementation of Gateway Global filter in Kotlin to Java implementation | java|kotlin | 0 | 40 | 1 | 71,349,354 | 71,349,354 | 0 | true | 2022-03-04T06:12:38.790Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
implementation of Gateway Global filter in Kotlin to Java implementation<p>I have a scenario that I have some microservices, cloud gateway and eureka server.... |
71,350,883 | How to create layout with grid<p>I want to create layout where the last element is centered. I should do with grids, but cant center the last element</p>
<p><a href="https://i.stack.imgur.com/IKJJf.png" rel="nofollow noreferrer">Desired view</a>
<div class="snippet" data-lang="js" data-hide="false" data-console="true" ... | <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-css lang-css prettyprint-override"><code>.box {
min-height: 50px;
background: red;
margin: 5px;
grid-column: span 2;
}
.container {
width: 200px;
display: g... | How to create layout with grid | css|layout|sass|css-grid | 0 | 26 | 2 | 71,351,314 | 71,351,314 | 0 | true | 2022-03-04T11:38:03.843Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to create layout with grid<p>I want to create layout where the last element is centered. I should do with grids, but cant center the last element</p>
<p>... |
71,340,535 | Text over Image using FFMPEG library on Android<p>Good day fellows.
I am trying to add a text over an image using this ffmpeg command</p>
<pre><code>String exe = " -i /storage/emulated/0/Download/test1.jpg -vf drawtext=text='Test Text':fontcolor=white:fontsize=75:x=1002:y=100: " + file.getAbsolutePath();
</co... | <p>I found a very simple and faster solution to this problem using Canvas on Android instead of using ffmpeg library.</p>
<p>Here is my code solution:</p>
<pre><code> ImageView mImageView = view.findViewById(R.id.imgView1);
Bitmap bm = BitmapFactory.decodeResource(getResources(), R.drawable.test);
Bitmap.Co... | Text over Image using FFMPEG library on Android | android|ffmpeg|android-ffmpeg | 0 | 277 | 2 | 71,352,430 | 71,352,430 | 0 | true | 2022-03-03T16:30:24.383Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Text over Image using FFMPEG library on Android<p>Good day fellows.
I am trying to add a text over an image using this ffmpeg command</p>
<pre><code>String e... |
71,352,102 | OpenMDAO handling errors within groups<p>I am trying to run an optimization with SimpleGADriver in OpenMDAO. My model includes a cycle (subsystem) with a nonlinear solver, that contains a component that on occasions fails to compute its response. Is there any way to make this driver continue to the next iteration (iter... | <p>Assuming that your component knows when it fails to compute its response, it can raise an <code>om.AnalysisError</code>. When the SimpleGADriver detects this, it will mark this as a failed point and move on to the next point to evaluate in the current generation. However, if you have nested nonlinear solvers (i.e.,... | OpenMDAO handling errors within groups | genetic-algorithm|openmdao | 0 | 45 | 1 | 71,352,467 | 71,352,467 | 0 | true | 2022-03-04T13:24:29.790Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
OpenMDAO handling errors within groups<p>I am trying to run an optimization with SimpleGADriver in OpenMDAO. My model includes a cycle (subsystem) with a non... |
71,351,616 | Multiple many-to-many relations through the same model in Django problem<p>i have a problem i don't know how to make multiple many-to-many relations through the same model.</p>
<p>This is my DB relations :</p>
<p><a href="https://i.stack.imgur.com/XKcpD.jpg" rel="nofollow noreferrer">Db architecture</a></p>
<p>and this... | <p>Actually i found the solution, i used the attribute related_name, so Django to create this two tables automatically</p> | Multiple many-to-many relations through the same model in Django problem | django|django-models|django-rest-framework | 0 | 28 | 2 | 71,352,542 | 71,352,542 | 0 | true | 2022-03-04T12:45:01.323Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Multiple many-to-many relations through the same model in Django problem<p>i have a problem i don't know how to make multiple many-to-many relations through ... |
71,353,966 | themoviedb api Search Movie<p>I'm stuck. I am using movie api for search movie. I have done the api part. But when I type a random nonsense word in the search section, my application gives an error because there is no such movie. How can I get past this? I am sharing my codes below.</p>
<p>Thats movie area;</p>
<pre><c... | <p>That is because the response you got from searching "nonsense" value using themoviedb api returning an empty object. To get through this, you can use a conditional component that checks the value of <code>movie[0]</code>. Your code can be written like this</p>
<pre><code><div>
{
movie[0] ?
&l... | themoviedb api Search Movie | reactjs|api|video|undefined|themoviedb-api | 0 | 530 | 1 | 71,354,127 | 71,354,127 | 0 | true | 2022-03-04T15:57:19.100Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
themoviedb api Search Movie<p>I'm stuck. I am using movie api for search movie. I have done the api part. But when I type a random nonsense word in the searc... |
71,350,017 | Repeat the same behaviour on Ant Design Editable Table for React on Ant Design Vue 3?<p>I'm using Ant Design in Vue 3 and I have a table that I'm able to edit all the cells. The problem is: I want to <strong>automatically</strong> close the editable cell if the user opens a new one to edit. While I was researching, I n... | <p>It was simpler than I thought it would be. Just changed the edit method to this and now it's working :)</p>
<pre><code> edit(row, column) {
for (let idx in this.editableData) {
delete this.editableData[idx];
}
this.editableData[row + '|' + column] = this.tableData.data.filter((... | Repeat the same behaviour on Ant Design Editable Table for React on Ant Design Vue 3? | javascript|vue.js|vuejs3|antd|ant-design-vue | 0 | 260 | 1 | 71,354,277 | 71,354,277 | 0 | true | 2022-03-04T10:27:58.273Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Repeat the same behaviour on Ant Design Editable Table for React on Ant Design Vue 3?<p>I'm using Ant Design in Vue 3 and I have a table that I'm able to edi... |
71,352,708 | Detectron2 prediction problem on my local machine with custom model<p>I trained a custom model with detectron2 on <code>google colab</code>, and ok, it's working correctly. The model was trained, the predictions were ok, this on <code>google colab</code>. But when I made predictions on my local machine did'nt work. Her... | <p>I saved the configs with this comand and then I downloaded.</p>
<pre><code>f = open('config.yml','w')
f.write(cfg.dump())
f.close()
</code></pre>
<p>and replaced:</p>
<pre><code>cfg.merge_from_file("./detectron2_repo/configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml")
</code></pre>
<p>by</p>
<pr... | Detectron2 prediction problem on my local machine with custom model | machine-learning|pytorch|computer-vision|detectron | 0 | 256 | 1 | 71,354,304 | 71,354,304 | 0 | true | 2022-03-04T14:13:56.527Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Detectron2 prediction problem on my local machine with custom model<p>I trained a custom model with detectron2 on <code>google colab</code>, and ok, it's wor... |
71,301,475 | How to send a welcome onboarding message in Slack app<p>I want to send a welcome message to a user that adds my Slack app.
This is considered good practice in the official Slack <a href="https://api.slack.com/start/designing/onboarding#hello" rel="nofollow noreferrer">docs</a>.</p>
<p>What is the right way to implement... | <p>After @sandra's response and further investigation I would like to share more details on the implementation mechanics:</p>
<ol>
<li>A user goes through the OAuth process and is then redirected to the app home.</li>
<li>In the application I catch the <a href="https://api.slack.com/events/app_home_opened" rel="nofollo... | How to send a welcome onboarding message in Slack app | slack|slack-api | 0 | 787 | 3 | 71,354,984 | 71,354,984 | 0 | true | 2022-02-28T21:53:45.427Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to send a welcome onboarding message in Slack app<p>I want to send a welcome message to a user that adds my Slack app.
This is considered good practice i... |
71,354,828 | Anaconda - installed package to base virtual env but can't run in Spyder, pycharm or Jupiter notebook<p>I've opened a new terminal and ran</p>
<pre><code>conda activate base
pip install sailthru-client
</code></pre>
<p>Then I opened Spyder tried importing:</p>
<pre><code> from sailthru.sailthru_client import SailthruCl... | <p><code>File "/Users/me/sailthru.py"</code> <- you have shadowed the module <code>sailthru</code> by creating a python script with the same name. Rename that and try again</p> | Anaconda - installed package to base virtual env but can't run in Spyder, pycharm or Jupiter notebook | python|python-3.x|terminal|anaconda | 0 | 24 | 1 | 71,355,365 | 71,355,365 | 0 | true | 2022-03-04T17:07:16.940Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Anaconda - installed package to base virtual env but can't run in Spyder, pycharm or Jupiter notebook<p>I've opened a new terminal and ran</p>
<pre><code>con... |
71,336,554 | wordpress plugin GravityForms differenciate limit submissions for the same module in different pages<p>I'm trying to figure out a way to differenciate the limit submission for a "shared" form on different pages.</p>
<p>If I activate the built in function "limit submissions" in a form (which is share... | <p>You could try adding a hidden field to capture the embed page with the following merge tag in the default value: {embed_url}</p>
<p>Then add this to your functions.php</p>
<pre><code>add_filter( 'gform_get_form_filter_100', 'limit_by_embed_page', 10, 2 );//replace 100 with your form id
function limit_by_embed_page( ... | wordpress plugin GravityForms differenciate limit submissions for the same module in different pages | wordpress|gravityforms | 0 | 38 | 2 | 71,357,626 | 71,357,626 | 0 | true | 2022-03-03T11:39:31.347Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
wordpress plugin GravityForms differenciate limit submissions for the same module in different pages<p>I'm trying to figure out a way to differenciate the li... |
71,358,113 | Why isn't my generated function being executed?<p>I have a logout button as follows:</p>
<pre class="lang-swift prettyprint-override"><code>struct LogoutButtonView: View {
@EnvironmentObject var state: AppState
@StateObject var viewModel = ViewModel()
var body: some View {
Button("Log Out&... | <p>The answer is that you never call <code>logout()</code>.</p>
<p>It's true that you return the function on a button tap, but you don't call the returned (<code>logout</code>) function. So it's never executed.</p> | Why isn't my generated function being executed? | swift|swiftui | 0 | 37 | 1 | 71,358,191 | 71,358,191 | 0 | true | 2022-03-04T23:02:36.380Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why isn't my generated function being executed?<p>I have a logout button as follows:</p>
<pre class="lang-swift prettyprint-override"><code>struct LogoutButt... |
71,358,116 | Is there a more efficient way to query ActiveRecord db for an object that exists, but then also have an object, if existing, defined?<p>My current code looks like this</p>
<pre><code>o = Order.where(email:"email")
if o.present?
do_something_with(o.last)
else
return "Message"
end
</code></pre>
<p... | <p>Calling <code>.where().last</code> fetches only the last record from the database in one query, which is pretty equivalent to your <code>.exists?</code> check (unless the overhead of sorting in the db is worse than in Ruby) so you can save some Ruby memory by doing something like this:</p>
<pre class="lang-rb pretty... | Is there a more efficient way to query ActiveRecord db for an object that exists, but then also have an object, if existing, defined? | ruby-on-rails|performance|activerecord | 0 | 36 | 1 | 71,358,294 | 71,358,294 | 0 | true | 2022-03-04T23:04:15.020Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Is there a more efficient way to query ActiveRecord db for an object that exists, but then also have an object, if existing, defined?<p>My current code looks... |
71,348,693 | How to use an argument in a loop definition<p>thanks for your help.
What a I doing wrong, here ? I want the numeric answer to be used in a loop but it does not return what I expected :</p>
<pre><code>if [ "$#" -eq 0 ]; then
echo -n "Enter the number: "
read answer
else
answer=( "$@" )
fi... | <p>You can also do it like:</p>
<pre class="lang-sh prettyprint-override"><code>if [ "$#" -eq 0 ]; then
echo -n "Enter the number: "
read answer
else
answer=( "$@" )
fi
for i in $(seq 1 $answer) ; do echo ${i}; done
</code></pre> | How to use an argument in a loop definition | loops|for-loop|variables|arguments | 0 | 33 | 2 | 71,358,451 | 71,358,451 | 0 | true | 2022-03-04T08:42:50.517Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to use an argument in a loop definition<p>thanks for your help.
What a I doing wrong, here ? I want the numeric answer to be used in a loop but it does n... |
71,358,375 | Which project(s) to install shared libraries in Xamarin App<p>I want to use a shared class library from my backend API in my Xamarin Forms 5 app. This library mostly contains some util functions and I have it as a NuGet package.</p>
<p>Do I need to install this package on all three projects or just the main project whe... | <p>if it's just a .NET library, install it in your .NET project where all the Forms code is</p>
<p>nugets that are installed in multiple projects typically contain multiple libraries - iOS, Android and .NET, and nuget installs the appropriate library in each one</p> | Which project(s) to install shared libraries in Xamarin App | xamarin|xamarin.forms | 0 | 38 | 1 | 71,358,624 | 71,358,624 | 0 | true | 2022-03-04T23:54:49.520Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Which project(s) to install shared libraries in Xamarin App<p>I want to use a shared class library from my backend API in my Xamarin Forms 5 app. This librar... |
71,359,700 | In angular when i click in anywhere data will be display so can u find the error<pre><code>ngOnInit() {
this.getPosts()
.subscribe((config: any) => {
this.data = Object.values(config);
this.config=this.data[0]; })}
getPosts() {
return this.http.post<any>(this.postsUrl, ra... | <p>add detectors to detact any change after component load.</p>
<pre><code>constructor(private cd : ChangeDetectorRef ) { }
</code></pre>
<p>Add <code>this.cd.markForCheck()</code> after <code>subscribe</code></p>
<pre><code>.subscribe((config: any) => {
this.cd.markForCheck()
this.data = Object.values(confi... | In angular when i click in anywhere data will be display so can u find the error | angular | 0 | 34 | 1 | 71,359,725 | 71,359,725 | 0 | true | 2022-03-05T05:13:04.953Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
In angular when i click in anywhere data will be display so can u find the error<pre><code>ngOnInit() {
this.getPosts()
.subscribe((config: any) =&... |
71,360,466 | XPath doesn't locate element<p>I want to scrape links from this page.
<a href="https://www.youtube.com/results?search_query=food+recepies" rel="nofollow noreferrer">https://www.youtube.com/results?search_query=food+recepies</a></p>
<pre><code>WebElement w1 = driver.findElement(By.xpath("//a[@id=\"video-title\... | <p>This should work for the title.</p>
<pre><code>driver.findElement(By.xpath("//a[@id='video-title']"));
</code></pre>
<p>However, there are 27 of them. So, you might want to use</p>
<pre><code>List<WebElement> plants = driver.findElements(By.xpath("//a[@id='video-title']"));
</code></pre>
<p... | XPath doesn't locate element | java|selenium|xpath | 0 | 34 | 1 | 71,360,531 | 71,360,531 | 0 | true | 2022-03-05T07:59:05.690Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
XPath doesn't locate element<p>I want to scrape links from this page.
<a href="https://www.youtube.com/results?search_query=food+recepies" rel="nofollow nore... |
71,360,692 | Yfiance print only the price of a stock<p>I want to print only the price for a stock form yfinance, this is what I get/have now :</p>
<pre><code> ticker = "aapl"
start = datetime.now().strftime('%Y-%m-%d')
end = datetime.now().strftime('%Y-%m-%d')
data = pdr.get_data_yahoo(ticker, start, end)
... | <p>You obtain a <code>pd.Series</code>. To select the top-most value within that series just do <code>data['EMA10'][0]</code>.</p>
<p>The entire code is given below:</p>
<pre><code>from datetime import datetime
import pandas_datareader as pdr
ticker = "AAPL"
start = datetime.now().strftime('%Y-%m-%d')
end = ... | Yfiance print only the price of a stock | python|stock|yfinance | 0 | 43 | 1 | 71,360,727 | 71,360,727 | 0 | true | 2022-03-05T08:35:39.100Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Yfiance print only the price of a stock<p>I want to print only the price for a stock form yfinance, this is what I get/have now :</p>
<pre><code> ticker =... |
71,360,304 | I don't get why I HAVE to directly put code in the onCreate of my SQLiteOpenHelper<p>I've fixed an issue in my code that doesn't allow me to add records to my SQLite database. Even though I've fixed it, I don't really get what's wrong with my first code, so if anyone is willing to help me understand please do explain!<... | <p>In your first code, you're adding the <code>FAVORITE</code> column after trying to insert data to it. In the second code, you create the table with the <code>FAVORITE</code> column first and then insert data.</p> | I don't get why I HAVE to directly put code in the onCreate of my SQLiteOpenHelper | java|android|sqlite|android-sqlite | 0 | 36 | 1 | 71,361,246 | 71,361,246 | 0 | true | 2022-03-05T07:33:42.187Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
I don't get why I HAVE to directly put code in the onCreate of my SQLiteOpenHelper<p>I've fixed an issue in my code that doesn't allow me to add records to m... |
71,362,154 | Why do I recieve a runtime error on codeforces?<p>Here is the task: <a href="https://codeforces.com/problemset/problem/492/B" rel="nofollow noreferrer">https://codeforces.com/problemset/problem/492/B</a>
And here is my code:</p>
<pre><code>n, l = map(int, input().split())
lantern = []
for i in range(n):
a = int... | <p>The <code>n</code> integers are on a single line, and your code handles <code>n</code> line separated inputs. Change it to</p>
<pre class="lang-py prettyprint-override"><code>n, l = map(int, input().split())
lantern = list(map(int, input().split()))
lantern.sort()
</code></pre> | Why do I recieve a runtime error on codeforces? | python|python-3.x | 0 | 33 | 1 | 71,362,183 | 71,362,183 | 0 | true | 2022-03-05T12:22:55.380Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why do I recieve a runtime error on codeforces?<p>Here is the task: <a href="https://codeforces.com/problemset/problem/492/B" rel="nofollow noreferrer">https... |
71,363,355 | What is the max longest database name in tdengine?<p>Just like the title, I tried to create a database in tdengine, but I meet a DB error throw by Taos shell. Which said that “invalid operation:name too long”.
Does anyone know the max length of database allowed in tdengine? Is this is configurable?</p> | <p>Database name: cannot contain "." and other special characters, and cannot exceed 32 characters.
More info, you can refer <a href="https://tdengine.com/docs/en/v2.0/administrator#config" rel="nofollow noreferrer">taos.cfg</a></p> | What is the max longest database name in tdengine? | tdengine | 0 | 12 | 1 | 71,363,391 | 71,363,391 | 0 | true | 2022-03-05T15:10:20.607Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
What is the max longest database name in tdengine?<p>Just like the title, I tried to create a database in tdengine, but I meet a DB error throw by Taos shell... |
71,360,421 | WebdriverIO SevereServiceErrror not stopping the test run<p>I have setup a <a href="https://github.com/AnglesHQ/angles-wdio-reporter/blob/master/src/integrations/wdio/AnglesWDIOService.ts" rel="nofollow noreferrer">custom wdio service</a> (as per the <a href="https://webdriver.io/docs/customservices/" rel="nofollow nor... | <p>By <a href="https://github.com/AnglesHQ/webdriverio-example/commit/d4647cafeec4730dfeebdca44c319008222dc91e" rel="nofollow noreferrer">updating wdio dependencies and ts-node and typescript</a> to current versions this issue has been resolved. The test run now stops when the SeverServiceError is thrown.</p> | WebdriverIO SevereServiceErrror not stopping the test run | webdriver-io|testautomationfx|wdio | 0 | 283 | 1 | 71,363,577 | 71,363,577 | 0 | true | 2022-03-05T07:52:47.680Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
WebdriverIO SevereServiceErrror not stopping the test run<p>I have setup a <a href="https://github.com/AnglesHQ/angles-wdio-reporter/blob/master/src/integrat... |
71,364,033 | How can I sort a list of dates using sort(unique)<p>In google sheets I have a form that populates my sheet. In my sheet I use the sort(unique) function to create a dropdown list. How can I sort that dropdown list to show latest date at top of the list.</p>
<p>My formula currently is =sort(unique(MyResponsePage!AA2:AA... | <p>Try</p>
<pre><code>=sort(unique(MyResponsePage!AA2:AA),1,false)
</code></pre>
<p><a href="https://support.google.com/docs/answer/3093150" rel="nofollow noreferrer">sort()</a></p> | How can I sort a list of dates using sort(unique) | sorting|google-sheets | 0 | 37 | 1 | 71,364,140 | 71,364,140 | 0 | true | 2022-03-05T16:41:56.190Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I sort a list of dates using sort(unique)<p>In google sheets I have a form that populates my sheet. In my sheet I use the sort(unique) function to c... |
71,364,744 | When I import a data set into an array, the length of each element appears as 1<p>I'm making a program where I import a long list of words from a .txt file into one array called <em>wordlist</em>. I then want to sort them into categories based on the length of the words. However for some reason, when the words are stor... | <p>So the wordlist is an array of arrays? If so when you check the len of it's element, it would return the number of elements in this array so 1. But if you do something like</p>
<pre><code>len(wordlist[1500][0])
</code></pre>
<p>you get the len of the first word that is stored in array at index 1500.</p> | When I import a data set into an array, the length of each element appears as 1 | python|arrays|categorization | 0 | 32 | 2 | 71,364,810 | 71,364,810 | 0 | true | 2022-03-05T18:13:40.950Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
When I import a data set into an array, the length of each element appears as 1<p>I'm making a program where I import a long list of words from a .txt file i... |
71,364,439 | How can I send an audio reference to a function in React?<p>I have an audio reference:</p>
<pre><code> const sound1 = useRef();
</code></pre>
<p>as I made it by:</p>
<pre><code> <audio ref={sound1} src='/resources/DRUMS.mp3' loop={looping}></audio>
</code></pre>
<p>and a function I wnat to send it to:... | <p>Ok I solved it.
All I had to do was to put - <code>() =></code> before the function call, as in -</p>
<pre><code><button onClick={() => toggleMuteUnmute(sound1, isPlaying1, setIsPlaying1)} >
</code></pre> | How can I send an audio reference to a function in React? | reactjs|function|audio|reference | 0 | 36 | 1 | 71,365,894 | 71,365,894 | 0 | true | 2022-03-05T17:36:01.910Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I send an audio reference to a function in React?<p>I have an audio reference:</p>
<pre><code> const sound1 = useRef();
</code></pre>
<p>as I made... |
71,364,970 | How can I remove a button in kivy<p><strong>I am new to kivy and I want to make both the "dropbutton" and "startbutton" disappear on the press of the "startbutton" but I can't figure out how can I do that.</strong></p>
<p>I tried the self.remove_widget(self.startbutton) but it gave me an e... | <p>Just keep a reference to those Buttons, and use those references to remove them. In your <code>build()</code> method:</p>
<pre><code>def build(self):
self.startbutton = Button(text='Start',
size_hint=(.2, .2),
pos_hint={'center_x': .5, 'center_y': .5})
self.s... | How can I remove a button in kivy | python|kivy | 0 | 38 | 1 | 71,365,993 | 71,365,993 | 0 | true | 2022-03-05T18:40:31.440Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I remove a button in kivy<p><strong>I am new to kivy and I want to make both the "dropbutton" and "startbutton" disappear on the ... |
71,366,031 | How can I acess data in the deeper node level?<p>I am developing an app with Swift.
this is where I am creating the structure and sending data to database:</p>
<pre><code>func addRecord(userID: String,
recordDate: String?, recordTime: String?,
mealCategoryTitle: String?, mealCategoryImage: String?,
breakfastMe... | <p>If you get the <code>mealCategory</code> out of the snapshot, that'll give you a dictionary from which you can then access the properties under that key.</p>
<p>So for example to get the <code>itemTitle</code> of the <code>mealCategory</code>, you'd do:</p>
<pre><code>let mealCategoryTitle = rrecord["mealCatego... | How can I acess data in the deeper node level? | swift|firebase|firebase-realtime-database | 0 | 27 | 1 | 71,366,085 | 71,366,085 | 0 | true | 2022-03-05T21:22:28.133Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I acess data in the deeper node level?<p>I am developing an app with Swift.
this is where I am creating the structure and sending data to database:</... |
71,355,628 | webpack-dev-server doesn't update HTML auto?<p>I'm using webpack-dev-server with webpack v5 and for a reason when I made changes in my CSS and js it updated on time as expected but for HTML files I have to refresh my browser manually to see the new complied version .</p>
<pre><code>src
|-index.html
|-index.js
</cod... | <p>The problem is <code>webpack-dev-server</code> doesn't watch HTML files by default</p>
<p>so I found two solutions for this :</p>
<ul>
<li>The first solution is built-in throw devServer by adding <code>watchFiles</code>:</li>
</ul>
<pre><code> devServer: {
watchFiles: ["src/*.html"],
hot: true,
},
<... | webpack-dev-server doesn't update HTML auto? | javascript|webpack|webpack-dev-server|html-webpack-plugin | 0 | 1,058 | 2 | 71,366,444 | 71,366,444 | 0 | true | 2022-03-04T18:14:44.470Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
webpack-dev-server doesn't update HTML auto?<p>I'm using webpack-dev-server with webpack v5 and for a reason when I made changes in my CSS and js it updated ... |
71,366,399 | How to get position to be absolute rather than 'undefined' after using setAttribute<p>I am attempting to assign properties from an array called 'spell' to newly created img elements housed within a div container.</p>
<pre><code>for (let i = 0; i <spell.length; i++){
let styles = spell[i]
let cont... | <p>Set the properties of the style attribute: <a href="https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/style" rel="nofollow noreferrer">https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/style</a></p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">... | How to get position to be absolute rather than 'undefined' after using setAttribute | javascript|html|css|position | 0 | 39 | 1 | 71,366,845 | 71,366,845 | 0 | true | 2022-03-05T22:32:33.450Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to get position to be absolute rather than 'undefined' after using setAttribute<p>I am attempting to assign properties from an array called 'spell' to ne... |
71,346,196 | Unsure why supabase is not returning values from foreign table<p>I have a query that also selects from a foreign table. The current table already has a foreign key relationship. Here is my query</p>
<pre><code>const { data, error } = await supabase
.from('comments')
.select('content,created_at,user(pfp,... | <p>This question was answered on <a href="https://github.com/supabase/supabase/discussions/5807" rel="nofollow noreferrer">GitHub</a></p>
<blockquote>
<p>You have an extra .select() at end which fetches all columns...</p>
</blockquote> | Unsure why supabase is not returning values from foreign table | javascript|supabase|supabase-database | 0 | 1,048 | 1 | 71,367,512 | 71,367,512 | 0 | true | 2022-03-04T03:07:20.410Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Unsure why supabase is not returning values from foreign table<p>I have a query that also selects from a foreign table. The current table already has a forei... |
71,367,641 | Discord bot runs differently when called in-file and from outside file<p>I am trying to integrate a discord bot into an app such that when the user of the app does something, it calls a function that uploads something to discord. This means that the bot only has an <code>on_ready</code> function, and then a <code>clien... | <p>You essentially need to create a new event loop before running this. You can either do this in the function or better (imo) make this an async function and create an event loop in your main file.</p>
<pre class="lang-py prettyprint-override"><code>def uploader(filePath):
import asyncio
homeDir = str(Pat... | Discord bot runs differently when called in-file and from outside file | python-3.x|discord.py | 0 | 31 | 1 | 71,368,121 | 71,368,121 | 0 | true | 2022-03-06T04:18:06.213Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Discord bot runs differently when called in-file and from outside file<p>I am trying to integrate a discord bot into an app such that when the user of the ap... |
71,368,231 | Calculate by user input<p>I want my program to do this:</p>
<ol>
<li><p>Input formula:</p>
<p><code>(2*(3+4)-5)/6</code></p>
</li>
<li><p>Output answer of formula:
<code>1.5</code></p>
</li>
</ol>
<p>Is there anyway to do it? I can't find anything from the Internet. Asking here is my last attempt.</p> | <p>you can use eval</p>
<pre><code>>>> a = eval('(2*(3+4)-5)/6')
>>> print(a)
1.5
</code></pre> | Calculate by user input | python|calculation | 0 | 37 | 1 | 71,368,238 | 71,368,238 | 0 | true | 2022-03-06T06:49:33.077Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Calculate by user input<p>I want my program to do this:</p>
<ol>
<li><p>Input formula:</p>
<p><code>(2*(3+4)-5)/6</code></p>
</li>
<li><p>Output answer of fo... |
71,368,111 | How do I construct an "Add" routine for a custom object list?<p>I feel really stupid asking this question, but here goes...</p>
<p>I'm trying to create a custom object in VB, that is itself a list (or collection, or "tuple" - I'm not sure what the difference between these is) of custom objects, and I need to ... | <p>Your first class ought to look like this:</p>
<pre class="lang-vb prettyprint-override"><code>Public Class ParameterSet
Public Property X As String
Public Property Y As String
Public Property Z As String
Public Sub New(x As String, y As String, z As String)
Me.X = x
Me.Y = y
... | How do I construct an "Add" routine for a custom object list? | vb.net|object | 0 | 33 | 1 | 71,368,263 | 71,368,263 | 0 | true | 2022-03-06T06:23:46.640Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do I construct an "Add" routine for a custom object list?<p>I feel really stupid asking this question, but here goes...</p>
<p>I'm trying to create a cus... |
71,304,761 | Testcafe - sending false errors/dies after running 100+ tests in a row<p>I am creating an automation testing platform, and I wrote a code which executes around 300+ tests in a row.
I am currently running the tests on my local machine. After around 10-20 tests the testcafe either stops working or giving false error or s... | <p>OK I found the issue in my code. I took a lot of screenshots per test and didn't clear them after each run which inflated my memory causing node and testcafe to crash.
Thanks for all the help</p> | Testcafe - sending false errors/dies after running 100+ tests in a row | node.js|testing|automated-tests|e2e-testing|testcafe | 0 | 42 | 2 | 71,368,330 | 71,368,330 | 0 | true | 2022-03-01T06:56:43.673Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Testcafe - sending false errors/dies after running 100+ tests in a row<p>I am creating an automation testing platform, and I wrote a code which executes arou... |
71,365,709 | What is the correct annotation so I can get Autowired EntityManagerFactory?<p>I need to get an autowired EntityManagerFactory in a class which is being used in my Spring boot application. I think the problem is stemming from the fact that my class is in a separate package.</p>
<p>I generated a simple sample case to il... | <p>The <code>emf</code> field in <code>GetEMF</code> is <code>null</code> because you have created the instance yourself:</p>
<pre><code>new GetEMF();
</code></pre>
<p>If you want Spring to inject dependencies, for example into <code>@Autowired</code> fields, then the instance needs to be a bean managed by Spring.</p>
... | What is the correct annotation so I can get Autowired EntityManagerFactory? | spring-boot|hibernate|spring-data-jpa | 0 | 31 | 1 | 71,368,503 | 71,368,503 | 0 | true | 2022-03-05T20:24:26.490Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
What is the correct annotation so I can get Autowired EntityManagerFactory?<p>I need to get an autowired EntityManagerFactory in a class which is being used ... |
71,367,256 | How iterate module output from a loop Ansible and capture particular value only<p>How to iterate module output from a loop in ansible and capture particular value to be redirected to a file. Example: 'amazon-ssm-agent.service']['state']": "running" should be pushed to a file locally.</p>
<pre class="lang... | <p>Say you want to output those services status into a file, you may use something like this:</p>
<pre><code>- name: collect systemd info
service_facts:
- name: cross verify service is runnng or not
copy:
content: |
{% for s in myServiceName %}{{ s }}={{ ansible_facts.services[s]['state'] }}
{% end... | How iterate module output from a loop Ansible and capture particular value only | loops|debugging|ansible | 0 | 278 | 2 | 71,368,704 | 71,368,704 | 0 | true | 2022-03-06T02:18:08.647Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How iterate module output from a loop Ansible and capture particular value only<p>How to iterate module output from a loop in ansible and capture particular ... |
71,368,989 | Update an opened tab when clicking different links<p>Using _blank in html I was able to open a new tab (page “B”) from a specific link in Page “A”, my ask is how can I make this opened new tab to be updated when clicking on another links in page “A” rather than opening new tabs ?</p> | <p>Instead of using a _blank target, use a named target.</p>
<pre><code><a href="//google.com" target="myTarget">Google</a>
<a href="//mozilla.org" target="myTarget">Mozilla</a>
</code></pre>
<p><sub>I would put this in a stack snippet, but it seems to blo... | Update an opened tab when clicking different links | javascript|html|angular | 0 | 34 | 1 | 71,369,014 | 71,369,014 | 0 | true | 2022-03-06T09:16:24.923Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Update an opened tab when clicking different links<p>Using _blank in html I was able to open a new tab (page “B”) from a specific link in Page “A”, my ask is... |
71,368,720 | unable to add google form in plotly<p>Below is my code, but the code not works,
first 5 options in dropdown returns a graph and
option 6 needs to display a google form</p>
<p>without the 6th option the code is working fine, but the 6th option for displaying gform is throwing errror in dash
help me solve this</p>
<pre><... | <ul>
<li>fundamentally <code>dcc.Figure()</code> and <code>html.IFrame()</code> are separate dash components. Hence if you what to display a figure of Iframe based on dropdown use a <em>div</em> container. From callback return child component that fits into this container</li>
<li>to make full working example, have u... | unable to add google form in plotly | python|callback|plotly | 0 | 28 | 1 | 71,369,344 | 71,369,344 | 0 | true | 2022-03-06T08:24:59.380Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
unable to add google form in plotly<p>Below is my code, but the code not works,
first 5 options in dropdown returns a graph and
option 6 needs to display a g... |
71,369,551 | i tag did not pass value to email<p>I have a form that have "i" tag and "input" tag.</p>
<p>The form obtain the information from user and send it to my email via PHP.</p>
<p>I am able to receive the email but the information from "i" tag is missing. I only receive the "input" tag... | <p> tags are not form data</p>
<p>Create a hidden input and set that to the same value, and you’ll receive it</p>
<pre><code><i id="type-result"></i>
<input id="type-result-hidden" type="hidden" name="typeAnswer">
</code></pre>
<p>Then in code</p>
<pre><code>$(&... | i tag did not pass value to email | php|html | 0 | 19 | 1 | 71,369,597 | 71,369,597 | 0 | true | 2022-03-06T10:45:34.233Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
i tag did not pass value to email<p>I have a form that have "i" tag and "input" tag.</p>
<p>The form obtain the information from user and... |
71,344,392 | Can we use public cert. for AWS Site-to-Site VPN Tunnel Authentication?<p>Since private CA cert. cost $400 per month, can we use the public cert. instead?</p>
<p>Can we use acm public ca to identify ipsec Site-to-Site vpn endpoints?</p>
<p>Is there any restriction/limitation and cons on using public cert.? Thanks.</p> | <p>AWS restricts using public cert. for VPN authentication, enforces to use the private cert. only.</p> | Can we use public cert. for AWS Site-to-Site VPN Tunnel Authentication? | amazon-web-services|vpn|x509certificate2 | 0 | 41 | 1 | 71,370,303 | 71,370,303 | 0 | true | 2022-03-03T22:08:00.650Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Can we use public cert. for AWS Site-to-Site VPN Tunnel Authentication?<p>Since private CA cert. cost $400 per month, can we use the public cert. instead?</p... |
71,370,306 | I have implemented Linear Probing in the attached code. How can we modify it such that even negative values are handled? For eg if -1 was an entry<p>I'm trying to implement linear probing. I want to know how negative values are handled in this technique. In the below code, I have written a function for positive values.... | <p>The first problem is that you use <code>-1</code> to mark free slots in your table. In order to resolve this, you need some other structure to store free slots. One idea would be a <code>boolean[]</code> with the same length as your table.</p>
<p>Now, instead of checking if a slot is free with <code>table[key] == -1... | I have implemented Linear Probing in the attached code. How can we modify it such that even negative values are handled? For eg if -1 was an entry | java|data-structures|hash|linear-probing | 0 | 29 | 1 | 71,370,426 | 71,370,426 | 0 | true | 2022-03-06T12:33:21.030Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
I have implemented Linear Probing in the attached code. How can we modify it such that even negative values are handled? For eg if -1 was an entry<p>I'm tryi... |
71,365,222 | Renting AWS Device Farm for testing anti-virus application<p>Can we use <strong>AWS Device Farm</strong> to test anti-virus application by installing real malware on rented devices?</p> | <p>AWS's AUP includes the following wording:</p>
<blockquote>
<p>You may not use, or facilitate or allow others to use, the Services or the AWS Site: ... to violate the security, integrity, or availability of any user, network, computer or communications system, software application, or network or computing device;</p... | Renting AWS Device Farm for testing anti-virus application | amazon-web-services|aws-device-farm|malware-detection|antimalware | 0 | 39 | 1 | 71,371,583 | 71,371,583 | 0 | true | 2022-03-05T19:10:01.287Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Renting AWS Device Farm for testing anti-virus application<p>Can we use <strong>AWS Device Farm</strong> to test anti-virus application by installing real ma... |
71,101,533 | Convert PIL.Image to/from Gtk.Picture/Gtk.Image in gtk4<p>I do RGBA image manipulation in PIL(low) and would like to display the resulting image in a gtk4 application. For that, I'd need a seamless <code>PIL.Image</code> <--> <code>Gtk.Picture</code>/<code>Gtk.Image</code> converter. I'd like to avoid using tempo... | <p>As of GTK 4.4, this seems to work best:</p>
<pre><code>buffer = GLib.Bytes.new(pil_image.tobytes())
gdata = GdkPixbuf.Pixbuf.new_from_bytes(buffer, GdkPixbuf.Colorspace.RGB, True, 8, pil_image.width, pil_image.height, len(pil_image.getbands())*pil_image.width)
gtk_image = Gtk.Image.new_from_pixbuf(gdata)
</code></pr... | Convert PIL.Image to/from Gtk.Picture/Gtk.Image in gtk4 | python-3.x|python-imaging-library|gtk4 | 0 | 38 | 1 | 71,372,069 | 71,372,069 | 0 | true | 2022-02-13T14:21:13.200Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Convert PIL.Image to/from Gtk.Picture/Gtk.Image in gtk4<p>I do RGBA image manipulation in PIL(low) and would like to display the resulting image in a gtk4 ap... |
71,372,692 | How to match columns's heights in flexbox?<p>I'm building a basic front-end project that should look like this:
<a href="https://i.stack.imgur.com/xlqTF.jpg" rel="nofollow noreferrer">enter image description here</a></p>
<p>I'm using flexbox to make it responsive but the columns's heights are unequal:
<a href="https://... | <p>In your <strong>.flex-container</strong> style, you could swap <strong>align-items: center;</strong> for <strong>align-items: stretch;</strong>. That should stretch the children vertically to match each other.</p>
<p>For example:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true... | How to match columns's heights in flexbox? | html|css|flexbox | 0 | 24 | 1 | 71,372,780 | 71,372,780 | 0 | true | 2022-03-06T17:35:34.357Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to match columns's heights in flexbox?<p>I'm building a basic front-end project that should look like this:
<a href="https://i.stack.imgur.com/xlqTF.jpg"... |
71,373,651 | How to calculate 95% CI for area under the precision recall curve in R<p>I calculate area under the precision recall curve using the Mleval package. The Mleval package provides 95% CI for the AUROC but not AUPRC. Is there a package that provides 95% CI for AUPRC?</p> | <p>The <code>precrec</code> library gives an AUC for precision-recall as well as ROC, as shown in this example with dummy data:</p>
<pre class="lang-r prettyprint-override"><code>library(precrec)
set.seed(1)
## Create sample datasets with 100 positives and 100 negatives
samps <- create_sim_samples(2, 100, 100, &qu... | How to calculate 95% CI for area under the precision recall curve in R | r|logistic-regression|confidence-interval|precision-recall | 0 | 260 | 1 | 71,374,108 | 71,374,108 | 0 | true | 2022-03-06T19:42:39.093Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to calculate 95% CI for area under the precision recall curve in R<p>I calculate area under the precision recall curve using the Mleval package. The Mlev... |
71,374,436 | How do I join the rest of the array after having removed an element in a specific index?<p>How do I join the rest of the array after having removed an element in a specific index?
I want the "holes" None to disappear.
The constructor:</p>
<pre><code>def __init__(self, capacity=8):
self.__data = [None] * c... | <p>Instead of <code>self.__data[int(index)] = None</code>, which sets the item at that location to <code>None</code>, use <code>self.__data.del(int(index))</code>, which removes the item and automatically decreases the list length</p> | How do I join the rest of the array after having removed an element in a specific index? | python|arrays|join|queue | 0 | 24 | 1 | 71,374,456 | 71,374,456 | 0 | true | 2022-03-06T21:39:14.457Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do I join the rest of the array after having removed an element in a specific index?<p>How do I join the rest of the array after having removed an elemen... |
71,374,469 | How do i bind the identifer to the url without making the data model a function<p>I have been fiddling with binding a hyperlink to my project, but I do not want to make my model a function. I simply want to bind the identifier so that if clicked, it will go to the proper url. Any insight would be great!
<div class="sni... | <p>If I understood you correctly:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>new Vue({
el: "#app",
data() {
return {
generatedData: {"Identifier": "1002", "N... | How do i bind the identifer to the url without making the data model a function | javascript|vue.js|vuejs2 | 0 | 32 | 1 | 71,374,516 | 71,374,516 | 0 | true | 2022-03-06T21:44:17.617Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do i bind the identifer to the url without making the data model a function<p>I have been fiddling with binding a hyperlink to my project, but I do not w... |
71,366,280 | JSF - forwarded URL with proxy lost<p>When using an apache proxy against our glassfish 5 the forwarded URL data are lost.</p>
<p>This happens within our login <em>@WebFilter</em> and can be reproduced using a simple ajax page update with an <code><h:outputText value="forward.request_uri: #{requestScope['javax.s... | <p>The markup seemed to have the correct URI <code>/tenant/testTenant/News</code> since there was a <code>SUBSTITUTE</code> rule in the apache proxy to remove <code>/tenant/testTenant</code>.</p>
<p>The ajax was not correct, since the substitution was only active for <code>text/html</code> files and not for AJAX <code>... | JSF - forwarded URL with proxy lost | apache|jsf|glassfish|ocpsoft-rewrite | 0 | 31 | 1 | 71,374,636 | 71,374,636 | 0 | true | 2022-03-05T22:07:24.500Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
JSF - forwarded URL with proxy lost<p>When using an apache proxy against our glassfish 5 the forwarded URL data are lost.</p>
<p>This happens within our logi... |
71,364,814 | Twilio Pay callback post parameters in Python<p>I am trying to use twilio pay in python. I am able to call the pay function properly and the entire card sequence goes very well. However, we are unable to collect the post parameters. I have tried to create a new route and trying to gather the post data but it is coming ... | <p>In Flask, <a href="https://flask.palletsprojects.com/en/2.0.x/api/#flask.Request.args" rel="nofollow noreferrer"><code>request.args</code> is the parsed URL parameters</a>. When Twilio makes a webhook request to your application as a POST request, the parameters will be sent as part of the body.</p>
<p>Twilio sends ... | Twilio Pay callback post parameters in Python | twilio|strip | 0 | 41 | 1 | 71,374,767 | 71,374,767 | 0 | true | 2022-03-05T18:21:31.887Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Twilio Pay callback post parameters in Python<p>I am trying to use twilio pay in python. I am able to call the pay function properly and the entire card sequ... |
71,374,710 | Python pandas - define and apply a function inline<p>Let say I have below code</p>
<pre><code>import pandas as pd
def calc(df, var1, var2) :
return (df[var1] * df[var2]).sum()
Dat = pd.DataFrame({'product_name': ['laptop', 'printer', 'printer', 'printer', 'laptop', 'printer'], 'price': [1200, 150, 1200, 150, 1200... | <p>You can use <code>lambda</code> function: <a href="https://www.w3schools.com/python/python_lambda.asp" rel="nofollow noreferrer">https://www.w3schools.com/python/python_lambda.asp</a></p>
<pre class="lang-py prettyprint-override"><code>Dat.groupby(['product_name']).apply(lambda df: (df['price'] * df['price1']).sum()... | Python pandas - define and apply a function inline | python-3.x|pandas | 0 | 270 | 1 | 71,374,775 | 71,374,775 | 0 | true | 2022-03-06T22:28:37.637Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Python pandas - define and apply a function inline<p>Let say I have below code</p>
<pre><code>import pandas as pd
def calc(df, var1, var2) :
return (df[... |
71,375,011 | How to put an Image to top of screen that is horizontally centered in React-Native?<p>I'm trying to put an image to be at the top of the screen (top: 0) but I cannot achieve that for some reason. Below is my shortened code:</p>
<pre><code>export default function App() {
return (
<View style={styles.container}&... | <p>A possible solution is to set your container to the full width of your viewport, set your flex-direction of the container to column, and then use the following on the container:</p>
<pre><code>align-items: center
justify-content: flex-start
</code></pre> | How to put an Image to top of screen that is horizontally centered in React-Native? | react-native|expo | 0 | 299 | 2 | 71,375,082 | 71,375,082 | 0 | true | 2022-03-06T23:26:36.153Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to put an Image to top of screen that is horizontally centered in React-Native?<p>I'm trying to put an image to be at the top of the screen (top: 0) but ... |
71,375,467 | Pandas - Merging rows based on certain columns and combine certain columns<p>I have a dataframe similar to:</p>
<pre><code>State Organization Date Tag
MD ABC 01/10/2021 901
MD ABC 01/10/2021 801
NJ DEF 02/10/2021 701
NJ DEF 02/10/2021 601
NJ DEF 02/10/2021 701
</code></pr... | <p>Try this:</p>
<pre><code>df.groupby(['State','Organization']).agg({'Date':'first','Tag':lambda x: ','.join(x.astype(str))})
</code></pre> | Pandas - Merging rows based on certain columns and combine certain columns | python|pandas | 0 | 38 | 2 | 71,375,493 | 71,375,493 | 0 | true | 2022-03-07T01:05:52.047Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Pandas - Merging rows based on certain columns and combine certain columns<p>I have a dataframe similar to:</p>
<pre><code>State Organization Date Tag
MD ... |
71,375,738 | State variable change causes an infinte render loop<p>I'm attemptign to create a comment section using react. The component pulls all of the comments and replies to each comment in one large dataset using an outer join, then it copies the results into two seperate arrays (comment array and replies array)</p>
<p>However... | <p>You've got an issue because you're unconditionally setting state every time your component re-renders; resulting in yet-another re-render.</p>
<p>In situations like this you need to step back and think about <em>when</em> you actually need your UI to redraw itself. In this case with the code as it stands, it's very ... | State variable change causes an infinte render loop | reactjs|function|dictionary|components|state | 0 | 24 | 1 | 71,375,969 | 71,375,969 | 0 | true | 2022-03-07T02:05:49.967Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
State variable change causes an infinte render loop<p>I'm attemptign to create a comment section using react. The component pulls all of the comments and rep... |
71,375,886 | How can I see processed image during CNN?<p>Im working on python deep learning code right now. And I want to know what is going on inside the network I designed. Down here is my sample code Im working on.</p>
<p>My question is, is it possible to see the processed image inside Network? For example, I want to see how my ... | <p>Usually, this is a little bit tricky, let me share with you what is on top of my mind:</p>
<ol>
<li><p>if you just want to get a sense of what's happing inside a simple neural net check out this <a href="https://www.cs.ryerson.ca/%7Eaharley/vis/conv/" rel="nofollow noreferrer">link</a>.</p>
</li>
<li><p>If you want ... | How can I see processed image during CNN? | python|tensorflow|deep-learning|layer | 0 | 30 | 1 | 71,375,987 | 71,375,987 | 0 | true | 2022-03-07T02:35:28.320Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I see processed image during CNN?<p>Im working on python deep learning code right now. And I want to know what is going on inside the network I desig... |
71,375,052 | How to use SPARQL to CONSTRUCT owl:Restriction<p>I am trying to create OWL restrictions on some instances in my ontology. These instances are associated to classes via <code>rdf:type</code> relationships when they should be some kind of owl restriction. To solve this, I created a <code>CONSTRUCT</code> statement:</p>... | <p>This <code>CONSTRUCT</code> query created <code>owl:Restriction</code> relationships appropriately:</p>
<pre><code>PREFIX myontology:<http://myontology.org/myonto/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
CONSTRUCT {
?entity a [rdf:type owl:Restriction ;
owl:onProperties myontology:myre... | How to use SPARQL to CONSTRUCT owl:Restriction | sparql|rdf|owl | 0 | 45 | 1 | 71,376,028 | 71,376,028 | 0 | true | 2022-03-06T23:34:19.453Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to use SPARQL to CONSTRUCT owl:Restriction<p>I am trying to create OWL restrictions on some instances in my ontology. These instances are associated to ... |
71,376,145 | Flutter - Get Snapshot Value from FirebaseAnimatedList<p>I am trying to get a list of my data from my Firebase Realtime Database. I am using the widget FirebaseAnimatedList to populate and correctly query the information.</p>
<p>While I try to reference the data snapshot, I am getting an error. For any Swift / UIKit pr... | <p>The value of a snapshot can be of many types, and it seems you need to indicate the type here.</p>
<pre><code>var value = Map<String, dynamic>.from(snapshot.value as Map);
var title = value["name"];
</code></pre>
<p>Also see: <a href="https://stackoverflow.com/questions/68412968/get-mapstring-dynamic... | Flutter - Get Snapshot Value from FirebaseAnimatedList | firebase|flutter|dart|object|firebase-realtime-database | 0 | 535 | 1 | 71,376,553 | 71,376,553 | 0 | true | 2022-03-07T03:29:44.607Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Flutter - Get Snapshot Value from FirebaseAnimatedList<p>I am trying to get a list of my data from my Firebase Realtime Database. I am using the widget Fireb... |
71,376,721 | Preventing the defaults of unset object properties from being overridden in a JS function<p>So, I have a function with an object as a parameter:</p>
<pre><code>function example(options = { param1: true, param2: 42 })
{
return options.param2;
}
</code></pre>
<p>The problem is, if I call the function with parameters l... | <p>Destructure the argument instead, and assign default destructured values.</p>
<pre><code>function example({ param1 = true, param2 = 42 } = {}) {
return param2;
}
</code></pre> | Preventing the defaults of unset object properties from being overridden in a JS function | javascript | 0 | 22 | 1 | 71,376,731 | 71,376,731 | 0 | true | 2022-03-07T05:22:37.590Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Preventing the defaults of unset object properties from being overridden in a JS function<p>So, I have a function with an object as a parameter:</p>
<pre><co... |
71,377,347 | elastic search index_not_found error when there is no data in mongodb<p>Hi I am using monoosastic to connect my mongodb with elastic search. If I have data in mongodb the search is working fine but if the collection is empty I am getting error as index-not-found error in elastic search. below is my code</p>
<pre><code>... | <p>Currently Elasticsearch will create auto index when you send data to elasticsearch if index is not exist. But when there is no data in mongodb then it will not send any request hence not creating any index.</p>
<p>To resolved this issue, Just Goto the Kibana dev console and execute below <a href="https://www.elastic... | elastic search index_not_found error when there is no data in mongodb | node.js|mongodb|elasticsearch|mongoosastic | 0 | 275 | 1 | 71,377,409 | 71,377,409 | 0 | true | 2022-03-07T06:49:38.980Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
elastic search index_not_found error when there is no data in mongodb<p>Hi I am using monoosastic to connect my mongodb with elastic search. If I have data i... |
71,294,542 | Check if some key value exists in Firebase Database and do some action Android<p>I want to check if a specific value of a key exists in the Realtime Database or not and perform some action based on it.</p>
<p>I have the following data:</p>
<pre><code>"Orders" : {
"03403426747" : {
"17" :... | <p>After a long time, my brain light burned and I came up with a solution.</p>
<p>Create a data class for OrderState</p>
<pre><code>public class OrderState {
public static int ordersCount = 0;
public static boolean state = false;
public static void update(boolean state){
if (state){
ordersCount = ordersCo... | Check if some key value exists in Firebase Database and do some action Android | java|android|firebase|firebase-realtime-database | 0 | 278 | 2 | 71,378,078 | 71,378,078 | 0 | true | 2022-02-28T11:45:33.510Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Check if some key value exists in Firebase Database and do some action Android<p>I want to check if a specific value of a key exists in the Realtime Database... |
71,373,148 | Deploying and Initializing anchor-escrow contract on devnet<p>this is more of a question than an actual issue
I want to use the contract
<code>https://github.com/ironaddicteddog/anchor-escrow</code>
to exchange tokens.
My plan is as follows, however I'm unsuccessful initializing the contract.</p>
<pre><code>logs: [
... | <p>I'll answer my own question here,
I figured out that the escrow program is already initialized.
The error log says that, it cannot use the same escrow account to re-initialize.</p> | Deploying and Initializing anchor-escrow contract on devnet | solana | 0 | 536 | 1 | 71,378,542 | 71,378,542 | 0 | true | 2022-03-06T18:36:22.890Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Deploying and Initializing anchor-escrow contract on devnet<p>this is more of a question than an actual issue
I want to use the contract
<code>https://github... |
71,339,412 | Vaadin 14 FlagItems not aligned correctly on ListSeries<p>I've got a problem regarding the FlagItem in Vaadin 14.</p>
<p>I'm trying to set a FlagItem for a specific point in a ListSeries, I'm doing this the following way:</p>
<pre class="lang-java prettyprint-override"><code>PlotOptionsFlags plotOptionsFlags = new Plot... | <p>So I've found out where the problem was. It was something that wasn't added to the code above, so please have mercy.</p>
<p>The issues lied withing the fact that I didn't add the <code>ListSeries</code> to the <code>comparisonChartConfiguration</code> before creating the <code>flagsSeries</code>.</p>
<p>In short, yo... | Vaadin 14 FlagItems not aligned correctly on ListSeries | vaadin|vaadin-flow|vaadin14|vaadin-charts | 0 | 42 | 1 | 71,378,756 | 71,378,756 | 0 | true | 2022-03-03T15:10:26.450Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Vaadin 14 FlagItems not aligned correctly on ListSeries<p>I've got a problem regarding the FlagItem in Vaadin 14.</p>
<p>I'm trying to set a FlagItem for a s... |
71,378,912 | Why do I get null values after injecting bean?<p>When I try to inject the <code>packagePropertiesList</code> Bean in <code>Operation.class</code>, I get values from a properties file. But when I use <code>operation.removeStudentFromList()</code>, I get only null values. Do you see any problem here?</p>
<p><a href="http... | <p>You are creating an additional ApplicationContext next to the one that's already created by Spring Boot (with <code>new AnnotationConfigApplicationContext()</code>. Remove that and use the existing context to get a bean, or rather have a look at the <code>ApplicationRunner</code> interface, if you want to run code a... | Why do I get null values after injecting bean? | java|spring-boot|configurationproperties | 0 | 44 | 1 | 71,379,430 | 71,379,430 | 0 | true | 2022-03-07T09:30:13.977Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why do I get null values after injecting bean?<p>When I try to inject the <code>packagePropertiesList</code> Bean in <code>Operation.class</code>, I get valu... |
71,377,586 | how to add an existing key to the dictionary as a separate one<p>I want to create a list that will contain the name of the item and the prices for it from different lists. The method of adding to an existing name is ready(output is below). But if name does not exist in list1, name and price should be added separately. ... | <p>You can start the other way around and add the new element only if it was not found in <code>list1</code>:</p>
<pre><code>for product_to_add in list2:
found = False
for available_product in list1:
if product_to_add["fullName"] == available_product["fullName"]:
found = ... | how to add an existing key to the dictionary as a separate one | python-3.x|list|dictionary | 0 | 42 | 2 | 71,379,997 | 71,379,997 | 0 | true | 2022-03-07T07:17:27.807Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
how to add an existing key to the dictionary as a separate one<p>I want to create a list that will contain the name of the item and the prices for it from di... |
71,339,811 | Case when in Oracle<pre class="lang-sql prettyprint-override"><code>select FIRST_NAME,LAST_NAME,SALARY
Case
When SALARY > 15000 then 'high'
When SALARY < 10000 then 'low'
ELSE 'super low'
END As salary_group
from hr.employees
</code></pre>
<p>On running the query, I get the follwoing:</p>
<pre><code>ORA... | <p>There's a syntax error in your query, you need a comma after SALARY column:</p>
<pre class="lang-sql prettyprint-override"><code>select FIRST_NAME,LAST_NAME,SALARY,
Case
When SALARY > 15000 then 'high'
When SALARY < 10000 then 'low'
ELSE 'super low'
END As salary_group
from hr... | Case when in Oracle | ora-00923 | 0 | 14 | 1 | 71,380,313 | 71,380,313 | 0 | true | 2022-03-03T15:38:56.903Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Case when in Oracle<pre class="lang-sql prettyprint-override"><code>select FIRST_NAME,LAST_NAME,SALARY
Case
When SALARY > 15000 then 'high'
When SALA... |
71,380,215 | Saxon C how to run multiple xslts on a cached xml<p>I want to run several Xslts with one cached xml . However I can only find ways to run several xml files with
a cachedxslt , but thats not what I want . As well as an XsltExecutable for Xslt , can there be an XsltExecutbale for Xmls, so that i can cache an xml , and ru... | <p>You can create a DocumentBuilder and use <code>parseXmlFromFile</code> (<a href="https://www.saxonica.com/saxon-c/doc11/html/classDocumentBuilder.html#a4fd6acc79cbed4ae3aa9bd062ffa080f" rel="nofollow noreferrer">https://www.saxonica.com/saxon-c/doc11/html/classDocumentBuilder.html#a4fd6acc79cbed4ae3aa9bd062ffa080f</... | Saxon C how to run multiple xslts on a cached xml | c++|xml|xslt|saxon | 0 | 38 | 1 | 71,380,475 | 71,380,475 | 0 | true | 2022-03-07T11:14:46.917Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Saxon C how to run multiple xslts on a cached xml<p>I want to run several Xslts with one cached xml . However I can only find ways to run several xml files w... |
71,333,581 | Strange ListView and MouseArea behaviour in QML<p>My QML application has a lateral menu (<code>ListView</code>) and based on what item the user chooses it loads a different page. My problem is that sometimes the touch input is registered but not executed until the screen recives another input (not necessarily on an ele... | <p>Using QML profiler I noticed that the <code>OnClicked</code> event doesn't always return the <code>released()</code> signal. As a temporary solution I've decided to use <code>onPressed</code> for that particular list, still not sure why this happens though</p> | Strange ListView and MouseArea behaviour in QML | listview|onclick|qml|mouseevent|touch-event | 0 | 42 | 1 | 71,381,154 | 71,381,154 | 0 | true | 2022-03-03T07:38:01.920Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Strange ListView and MouseArea behaviour in QML<p>My QML application has a lateral menu (<code>ListView</code>) and based on what item the user chooses it lo... |
71,381,210 | How do I make the box stay fixed while keeping it's position when scrolling on the side?<p>I am having a problem with my code an would be highly grateful for some advise. I want the yellow square to stay at the left side, having it´s own column just as it is now but I want the square to be fixed on the screen while scr... | <p>The problem is that when you use <code>position: fixed;</code>, the element is no longer relative to the container but relative to the page or in other words positioned absolute. That makes it appear on top of the 2nd div. The solution is that you can use <code>position: sticky;</code> instead.. The appearance is a ... | How do I make the box stay fixed while keeping it's position when scrolling on the side? | html|css|position | 0 | 30 | 1 | 71,381,426 | 71,381,426 | 0 | true | 2022-03-07T12:38:47.853Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do I make the box stay fixed while keeping it's position when scrolling on the side?<p>I am having a problem with my code an would be highly grateful for... |
71,380,837 | XSLT: Returning a value with a [not(object)] template match cuts template matches<p>I'm creating an XSLT where I want to get values from XML elements. If they do not exist, I want to ensure some default value is inserted. I tried making this work with XSL:template match, which works great, and then return a value if th... | <pre><code><xsl:template match="node()">
<xsl:apply-templates select="node()"/>
</xsl:template>
<xsl:template match="items">
<xsl:copy>
<xsl:choose>
<xsl:when test="itemA">
<xsl:apply-templates select="itemA... | XSLT: Returning a value with a [not(object)] template match cuts template matches | xml|xslt|xslt-1.0 | 0 | 37 | 1 | 71,381,455 | 71,381,455 | 0 | true | 2022-03-07T12:07:24.057Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
XSLT: Returning a value with a [not(object)] template match cuts template matches<p>I'm creating an XSLT where I want to get values from XML elements. If the... |
71,380,800 | Closure-Mistake index of array in self-implemented useState-Function (for learning purposes)<p>I´m wrapping my head around the useState-Function of react and trying to implement sort of a simple copy-version for my own (just for learning purposes basically). I encounter a really silly problem I'm just stuck with. It´s ... | <p>In short words, the result you are getting is expected. It happens in this way, because <code>state[0]</code> is a primitive value and when you return <code>[state[0], setState]</code> from your <code>myState</code> hook you just return the primitive value, which not updated anymore after this call <code>myState(0)... | Closure-Mistake index of array in self-implemented useState-Function (for learning purposes) | reactjs|closures|use-state | 0 | 30 | 1 | 71,381,739 | 71,381,739 | 0 | true | 2022-03-07T12:04:33.937Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Closure-Mistake index of array in self-implemented useState-Function (for learning purposes)<p>I´m wrapping my head around the useState-Function of react and... |
71,381,529 | Disabled Button in React Native<p>I'm in a login problem trying to disable a interaction with a button.
The idea is to disable a submit button when 2 text field are empty, but I have the same result when is empty or not (always clickable, or always not). Below I specify the idea that I have, and how I implement it.</p>... | <p>I found the problem. In the property disabled, i evaluate a state that ONLY calculates in a onPress function. The fix was to copy the line checkEmptyFields inside the disabled.</p> | Disabled Button in React Native | reactjs|button|native | 0 | 284 | 1 | 71,381,925 | 71,381,925 | 0 | true | 2022-03-07T13:05:05.887Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Disabled Button in React Native<p>I'm in a login problem trying to disable a interaction with a button.
The idea is to disable a submit button when 2 text fi... |
71,369,255 | chart.js scale xaxis with date, strange renderer<p>Hi i got this renderer with my config on chart.js, i dont understand why i got</p>
<p><a href="https://i.stack.imgur.com/cQuVX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cQuVX.png" alt="enter image description here" /></a></p>
<p>this is the ver... | <p>Update your Chart.js version to <code>3.0.0</code> or above instead of <code>2.7.1</code>, works well in updated versions.</p>
<p>see the example below which is made on Chart.js version <code>3.0.0</code>.</p>
<p><strong>Note</strong>: below is a simple line chart example.</p>
<p><div class="snippet" data-lang="js"... | chart.js scale xaxis with date, strange renderer | javascript|chart.js | 0 | 43 | 1 | 71,382,229 | 71,382,229 | 0 | true | 2022-03-06T09:57:13.467Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
chart.js scale xaxis with date, strange renderer<p>Hi i got this renderer with my config on chart.js, i dont understand why i got</p>
<p><a href="https://i.s... |
71,382,621 | Python: wrong output after loop<p>I have two lists:</p>
<pre><code>coursestaken = ['COMP 1002', 'ECON 1020', 'ENGL 1110', 'MATH 1001', 'MATH 2050', 'BUSI 1101', 'MATH 2000', 'MATH 2050', 'OCSC 1000', 'STAT 2500', 'BUSI 1210', 'BUSI 1600', 'BUSI 3310', 'COMP 1003', 'BUSI 1000', 'COMP 1001', 'ECON 1010', 'ENGL 1090', 'MA... | <p>You're iterating through the entire list for each instance of MATH 2050, so it will find both results both times resulting in four.</p>
<p>You probably just want to remove the extra 'MATH 2050' you have in coursestaken</p> | Python: wrong output after loop | python|list|loops|output | 0 | 39 | 2 | 71,382,667 | 71,382,667 | 0 | true | 2022-03-07T14:30:44.910Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Python: wrong output after loop<p>I have two lists:</p>
<pre><code>coursestaken = ['COMP 1002', 'ECON 1020', 'ENGL 1110', 'MATH 1001', 'MATH 2050', 'BUSI 110... |
71,383,368 | Using MAX in a Filter range in google sheets<pre><code> Column A Column B
Joe 23
Tom 102
Sally 99
Tom 111
Joe 67
</code></pre>
<p>How to I output:</p>
<pre><code>Tom 111
</code></pre>
<p>This isn't working.</p>
<pre><code>=... | <p>I'd recommend this:</p>
<p><code>=SORTN(FILTER(A:B,A:A="Tom"),1,0,2,0)</code></p>
<p><code>FILTER</code> filters in just rows where Col B = "Tom".</p>
<p>The <code>SORTN</code> parameters mean "Return the top <code>1</code> results with ties-mode <code>0</code> (which is irrelevant when ther... | Using MAX in a Filter range in google sheets | google-sheets|max|formula | 0 | 524 | 2 | 71,383,503 | 71,383,503 | 0 | true | 2022-03-07T15:25:26.713Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Using MAX in a Filter range in google sheets<pre><code> Column A Column B
Joe 23
Tom 102
Sally 99
... |
71,383,232 | Trying to explain a a java for loop which requests JSON objects and requests for Queues<p>I'm trying to do a written report on some code and I found one on Youtube. However, I don't understand how some of this loop works. I understand that it goes through every item in the list and fetches each value for each variable ... | <p>Though you can simply read about the JSONObject class and all other classes belonging to the package. But, let me put it what I understand with an example here.
Here is the response json that is being received.</p>
<pre><code>{
"data": [
{
"id": 1,
"name": "ABCD",
... | Trying to explain a a java for loop which requests JSON objects and requests for Queues | java|for-loop|request|jsonobjectrequest | 0 | 26 | 1 | 71,383,757 | 71,383,757 | 0 | true | 2022-03-07T15:15:20.360Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Trying to explain a a java for loop which requests JSON objects and requests for Queues<p>I'm trying to do a written report on some code and I found one on Y... |
71,384,125 | User or pass wrong message in service api<p>I have this two codes</p>
<pre><code>import React, { useState, useEffect, createContext } from "react";
import { useNavigate } from "react-router-dom";
import { api, createSession } from "./Services/api"
export const AuthContext = createContext... | <p>If the server handle the "wrong credentials" as an HTTP Code 4XX or 5XX then you can just catch the exception an do something about it</p>
<pre><code>async handleSubmit(e){
e.preventDefault();
await login(user, pass).catch(exp => alert("Something happened, maybe invalid credentials"))
}
... | User or pass wrong message in service api | javascript|reactjs | 0 | 33 | 2 | 71,384,199 | 71,384,199 | 0 | true | 2022-03-07T16:21:16.890Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
User or pass wrong message in service api<p>I have this two codes</p>
<pre><code>import React, { useState, useEffect, createContext } from "react";... |
71,384,605 | MSBuild Delete in csproj does nothing<p>I try to use MSBuild to delete some files in the OutDir but it never works. I have to use an Exec instead.</p>
<pre><code> <Target Name="ResetPackages" BeforeTargets="DispatchToInnerBuilds">
<Exec Command = "del /Q /F $(OutDir)*.extension/&g... | <p>You need to pass an ItemGroup to <code>Delete</code> if you want wildcards to be expanded:</p>
<pre><code><Project>
<Target Name="Test">
<ItemGroup>
<_FilesToDelete Include="$(OutDir)*.extension"/>
</ItemGroup>
<Delete Files="@(_FilesT... | MSBuild Delete in csproj does nothing | msbuild|msbuild-task | 0 | 33 | 1 | 71,384,629 | 71,384,629 | 0 | true | 2022-03-07T16:56:41.763Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
MSBuild Delete in csproj does nothing<p>I try to use MSBuild to delete some files in the OutDir but it never works. I have to use an Exec instead.</p>
<pre><... |
71,384,351 | How can I verically center InputLabel inside MUI Grid item?<p>I want to vertically center <code>InputLabel</code> inside MUI <code>Grid</code> item.
I tried following:</p>
<pre><code>import { FormControl, Grid, Input, InputLabel, TextField } from "@mui/material";
export default function App() {
return (
... | <p>If I add</p>
<pre><code>display: flex;
align-items: center;
</code></pre>
<p>to the grid item divs it works.</p>
<p>I find this a useful flexbox explainer: <a href="https://css-tricks.com/snippets/css/a-guide-to-flexbox/" rel="nofollow noreferrer">https://css-tricks.com/snippets/css/a-guide-to-flexbox/</a></p>
<p>I'... | How can I verically center InputLabel inside MUI Grid item? | javascript|css|reactjs|material-ui | 0 | 36 | 1 | 71,384,844 | 71,384,844 | 0 | true | 2022-03-07T16:38:13.933Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I verically center InputLabel inside MUI Grid item?<p>I want to vertically center <code>InputLabel</code> inside MUI <code>Grid</code> item.
I tried ... |
71,385,576 | My goal is to print random items in my list (uppercase). After printing the item, how do I then remove that item from my list so it cant repeat?<p>Here is part of my code:</p>
<pre class="lang-py prettyprint-override"><code>i = int(input("length of speech: " ))
b = 0
while b < i:
print(random.choi... | <p>You definitely have the right idea if you want to do this with a loop.</p>
<pre class="lang-py prettyprint-override"><code>uppercase = [...] # your list goes here
while len(uppercase) > 0:
i = random.randint(0, len(uppercase)) # Pick a random index in the list
print(uppercase[i]) # Print out the correspo... | My goal is to print random items in my list (uppercase). After printing the item, how do I then remove that item from my list so it cant repeat? | python|python-3.x|list | 0 | 33 | 2 | 71,385,630 | 71,385,630 | 0 | true | 2022-03-07T18:17:25.990Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
My goal is to print random items in my list (uppercase). After printing the item, how do I then remove that item from my list so it cant repeat?<p>Here is pa... |
71,385,605 | How to exclude data based on the weeks in oracle<pre><code>CREATE TABLE states_tab (
id NUMBER(10),
states VARCHAR2(50),
action VARCHAR2(50),
schedule_time DATE,
CONSTRAINT pk_states_tab PRIMARY KEY ( id )
);
INSERT INTO states_tab VALUES(1,'Albania','Rejected','07-03-2... | <p>Sorry to inform you, but - what you got actually <em>is</em> 4 weeks back. Result you expect is 3 weeks back.</p>
<pre><code>SQL> select sysdate,
2 trunc(sysdate) - (4 * 7) four_weeks,
3 trunc(sysdate) - (3 * 7) three_Weeks
4 from dual;
SYSDATE FOUR_WEEKS THREE_WEEK
---------- ---------- --------... | How to exclude data based on the weeks in oracle | sql|oracle|plsql | 0 | 40 | 1 | 71,385,693 | 71,385,693 | 0 | true | 2022-03-07T18:21:00.267Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to exclude data based on the weeks in oracle<pre><code>CREATE TABLE states_tab (
id NUMBER(10),
states VARCHAR2(50),
acti... |
71,385,228 | Android move last item of recyclerview above ad<p>Here is what I want.</p>
<p><a href="https://i.stack.imgur.com/ii0Yo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ii0Yo.png" alt="enter image description here" /></a></p>
<p>The last item of recyclerview should be always above ad. Now it is partial... | <p>I found a problem. I should have put SwipeRefreshLayout instead of RecyclerView rv = view.findViewById(R.id.recyclerview); to add ABOVE.</p> | Android move last item of recyclerview above ad | java|android|android-layout|android-recyclerview | 0 | 27 | 2 | 71,386,002 | 71,386,002 | 0 | true | 2022-03-07T17:47:28.970Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Android move last item of recyclerview above ad<p>Here is what I want.</p>
<p><a href="https://i.stack.imgur.com/ii0Yo.png" rel="nofollow noreferrer"><img sr... |
71,383,613 | Azure AD B2C detecting Social signups on the reset password page<p>I need to check emails being entered on our "reset password" to see if the user used a Social IDP to sign up. I would then be able to inform the user that they cannot reset the password for that type of account through Azure.
At the moment it ... | <p>If you use a social IDP then:</p>
<pre><code><OutputClaim ClaimTypeReferenceId="authenticationSource" DefaultValue="socialIdpAuthentication" AlwaysUseDefaultValue="true" />
</code></pre>
<p>So look at the "authenticationSource".</p> | Azure AD B2C detecting Social signups on the reset password page | azure|azure-ad-b2c|azure-ad-b2c-custom-policy | 0 | 28 | 1 | 71,386,046 | 71,386,046 | 0 | true | 2022-03-07T15:41:27.987Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Azure AD B2C detecting Social signups on the reset password page<p>I need to check emails being entered on our "reset password" to see if the user ... |
71,385,817 | Data inserted into the database but has empty values<p>I have a form that upon successful completion, it should get inserted into the data base, however, this is not what happens, what happens is that i see in the table of the database that the "id" is incremented by 1, but the other columns in the table are ... | <p>You have an error in your insert statement.<br />
Try to change:</p>
<p><code>$stmt = $conn->prepare("INSERT INTO it_reports (staff_name, email, subjects, problem_type, descriptions) VALUES ('$staffname', '$email', '$subject', '$problem_type', '$description')");</code></p>
<p>with</p>
<p><code>$stmt = $... | Data inserted into the database but has empty values | php|mysql|database | 0 | 40 | 1 | 71,386,760 | 71,386,760 | 0 | true | 2022-03-07T18:41:59.340Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Data inserted into the database but has empty values<p>I have a form that upon successful completion, it should get inserted into the data base, however, thi... |
71,362,978 | Express API controller is receiving empty strings<p>When I send post requests to my API where the body is a single string, the API is receiving an empty string instead.</p>
<p>function call (client):</p>
<pre><code> const response = await api.uploadImg("image");
</code></pre>
<p>axios request (client):</p>
<p... | <p>The problem was in the axios call:</p>
<pre><code>const uploadImg = async (image: string) => {
const response = await axios.post(`${apiBaseURL}/api/image`, image);
return response.data;
};
</code></pre>
<p>Where I was passing the string variable <strong>image</strong>, I needed to put it into curly braces to ... | Express API controller is receiving empty strings | typescript|api|express|axios | 0 | 30 | 1 | 71,386,809 | 71,386,809 | 0 | true | 2022-03-05T14:24:20.773Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Express API controller is receiving empty strings<p>When I send post requests to my API where the body is a single string, the API is receiving an empty stri... |
71,387,078 | PHP xpath find elements<p>Hello I need some help to find my XML elements with PHP and xpath.</p>
<p>This is a part of my xml:</p>
<pre><code> "processen": {
"proces": [
{
"@attributes": {
"id": "B1221"
... | <p>What you've shown there is not the XML; it is some kind of representation of a PHP object which has been produced by parsing the XML, and through which you can access the content of the XML.</p>
<p>That may sound like a pedantic distinction, but it's actually key to your problem: XPath expressions aren't specific to... | PHP xpath find elements | php|xml|xpath|simplexml | 0 | 33 | 1 | 71,387,361 | 71,387,361 | 0 | true | 2022-03-07T20:47:54.097Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
PHP xpath find elements<p>Hello I need some help to find my XML elements with PHP and xpath.</p>
<p>This is a part of my xml:</p>
<pre><code> "processen... |
71,387,876 | What's the time complexity of this BFS alg that returns a 2D ArrayList?<p>I'm trying to figure out what time complexity this method would be to get better at computing time complexities. I was told by someone else that this would be a worst case O(n^2) (n being elements in the tree) but I'm confused since the outer whi... | <p>It is O(n) - you visit all the elements once - it is an iterative tree traversal.</p> | What's the time complexity of this BFS alg that returns a 2D ArrayList? | binary-tree|breadth-first-search | 0 | 24 | 1 | 71,387,938 | 71,387,938 | 0 | true | 2022-03-07T22:15:24.650Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
What's the time complexity of this BFS alg that returns a 2D ArrayList?<p>I'm trying to figure out what time complexity this method would be to get better at... |
71,386,606 | SSRS Calculated Expression- Returning a "1" if field includes text value<p>I have a calculated expression SMART=IIf(Fields!AgreementName.Value="S.M.A.R.T. Housing,1,Nothing) that is displaying a 1 if the AgreementName field "S.M.A.R.T. Housing". This works only if there is one value (S.M.A.R.T Housing) ... | <p>You can use the <code>Contains()</code> method like this...</p>
<pre><code>=IIF(Fields!AgreementName.Value.Contains("S.M.A.R.T. Housing"), 1, Nothing)
</code></pre> | SSRS Calculated Expression- Returning a "1" if field includes text value | reporting-services|ssrs-tablix | 0 | 17 | 1 | 71,387,965 | 71,387,965 | 0 | true | 2022-03-07T19:59:05.360Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
SSRS Calculated Expression- Returning a "1" if field includes text value<p>I have a calculated expression SMART=IIf(Fields!AgreementName.Value="S.M.A.R.... |
71,387,908 | Compare values within a certain timeframe in arrays<p>I am trying to compare values (0's and 1's) in a array. I want to search for each "1" that appears in one column, for another "1" in the other column in a specific timeframe (for example, 5 seconds, 10 seconds, etc.). I will call the 1's as "... | <p>I have a working solution, though I'm sure there are more efficient ones. I have abbreviated <code>data</code> to <code>d</code>, which I am assuming is a NumPy array.</p>
<pre><code># Get all signal columns from array. d1 = middle column, d2 = last column.
d1 = d[:,1]
d2 = d[:,2]
# If there is a signal in either s... | Compare values within a certain timeframe in arrays | python|arrays|numpy | 0 | 32 | 1 | 71,388,251 | 71,388,251 | 0 | true | 2022-03-07T22:19:26.393Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Compare values within a certain timeframe in arrays<p>I am trying to compare values (0's and 1's) in a array. I want to search for each "1" that ap... |
71,252,426 | Comparing Server IDs in two tools via PowerShell script<p>I am making a PowerShell script that is supposed to retrieve and compare the server IDs in two tools that we are using - Octopus tool and MOSS (the idea is to check that all servers in Octopus are also registered in MOSS). The Octopus is accessed on PowerShell v... | <p>The order was wrong, as well as lots of unneccessary elements causing errors and crashes.</p>
<p>Current working code is:</p>
<pre><code># Compare the data between the MOSS and the Octopus
# Define log file path
$date = $(get-date).tostring()
$currentdate = get-date -format yyyy-MM-dd
$log_file_path = "[FILE P... | Comparing Server IDs in two tools via PowerShell script | powershell|moss|octopus | 0 | 26 | 1 | 71,388,439 | 71,388,439 | 0 | true | 2022-02-24T13:03:58.873Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Comparing Server IDs in two tools via PowerShell script<p>I am making a PowerShell script that is supposed to retrieve and compare the server IDs in two tool... |
71,295,157 | automatically reload Kubernetes pod on consul key change<p>I have a consul server running on <a href="https://dev.example.com/" rel="nofollow noreferrer">https://dev.example.com/</a> on which I store configurations as below:</p>
<p>consul key name = dev</p>
<p>consul key value = <code>some yaml data</code></p>
<p>kuber... | <p>Take a look at <a href="https://github.com/Trendyol/trendyol-consul-template-injector" rel="nofollow noreferrer">https://github.com/Trendyol/trendyol-consul-template-injector</a>. It allows you to inject consul-template as a sidecar to your pod, and will generate files from templates that are provided in a ConfigMap... | automatically reload Kubernetes pod on consul key change | consul|consul-template | 0 | 289 | 1 | 71,388,536 | 71,388,536 | 0 | true | 2022-02-28T12:37:39.393Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
automatically reload Kubernetes pod on consul key change<p>I have a consul server running on <a href="https://dev.example.com/" rel="nofollow noreferrer">htt... |
71,388,680 | Bind html select to array of long C#<p>My problem is when I want to bind html select to a property of long[] in my DTO, it shows me a dropdown list with <strong>multiple selection</strong> ability. But I want it in <strong>non-multiple</strong> (single selection) mode.
My DTO:</p>
<pre><code>public class CreateSmsPatte... | <p>If what you need is three selections, then you should have three receiving properties for each of the selections:</p>
<pre><code>public long Selection1 { get; set; }
public long Selection2 { get; set; }
public long Selection3 { get; set; }
</code></pre>
<p>And target these properties with your tag helpers:</p>
<pre... | Bind html select to array of long C# | c#|html|razor | 0 | 30 | 1 | 71,388,776 | 71,388,776 | 0 | true | 2022-03-08T00:20:09.827Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Bind html select to array of long C#<p>My problem is when I want to bind html select to a property of long[] in my DTO, it shows me a dropdown list with <str... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.