text stringlengths 15 59.8k | meta dict |
|---|---|
Q: Creating Angular router that handles multiple states with a single url I have an issue with ui-routing in AngularJs. I have multiple pages that i want be able to load without changing the route(url), but I also want to load particular page with changing the url.
Can some help?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/47752485",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Find index of a given number in a list python3 I've written a program that gives me the index of a given integer of my choosing (x) in a list. Also, when a given integer isn't in the list, I want the program to give me the output -1 (or None).
list = [7,13,6,1]
x = 5
for i,j in enumerate(list):
if j==x:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37141456",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: "Cannot call method 'oEmbed' of null" when embedding Soundcloud player in dynamically generated Div Using the Soundcloud JavaScript API, I want to dynamically generate a page of player widgets using track search results. My code is as follows:
<html>
<head>
<script src="http://connect.soundcloud.com/sdk.js"></scrip... | {
"language": "en",
"url": "https://stackoverflow.com/questions/15355384",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What's the proper way to reduce the space between the graph and the modebar in Dash? I'm trying to live plot some data and the sidebar is getting pushed to the right too much because of the figure dimensions. What's the proper way to control that gap?
My code:
app = dash.Dash(__name__)
app.layout = html.Div(
[
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72199366",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why does removing "http" from a link fix it's color? Consider the following script:
a:link {
color: red;
}
<p><a href="www.honda.com">Go to Honda's official wesite </a></p>
<p><a href="http://www.honda.com">Go to Honda's official wesite once again</a></p>
The anchor element whose address doesn't start with ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35799689",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Split an array into slices, with groupings I've got some Ruby code here, that works, but I'm certain I'm not doing it as efficiently as I can.
I have an Array of Objects, along this line:
[
{ name: "foo1", location: "new york" },
{ name: "foo2", location: "new york" },
{ name: "foo3", location: "new york... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30989340",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why does the Eclipse debugger open up random classes when debugging? I'm new to Java and use Eclipse.
When using the debugger's step into button, it will sometimes open up a new class with loads of code and comments. It will then start stepping through a few lines of the new class it opened and then jump back to my... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58478909",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Switch between remote and local sources with Typeahead.js/Bloodhound.js I've played around with every setting I can think of, e.g., .clear() and .typeahead('destroy'), and once I've set the source as remote I can't make the typeahead use a local source.
Any thoughts?
Here's the code below that gets called onclick:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36298830",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Html go on top of page I have problem with tag. I create a simple page,without css file, jus to to show my problem:
http://jsfiddle.net/c7nge/
Just find select field, try to select ,and all content go up, on top of page...
Crazy :)
Here is html code :
<
!DOCTYPE html>
<html>
<head>
<title>Depaco|Strap|Box|Analise... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24762577",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-9"
} |
Q: Magento : Custom Options fields position Can you help me how can I change the position of Custom Options on product page. I mean: First product-options fields are displayed, then add_to_cart fields. I'm Very appreciated for your help.
A: If you want to change the position of the custom options then the right place ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28776764",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Programmatically select menu items of front program in objective-c Is there a method in objective-c or swift to select menu items by name and application identifier if the application is running? I see this functionality is available to the operating system under system preferences > keyboard > shortcuts, but was wo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41066305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how would i upgrade this code to work with jquery 1.6.2 how would i upgrade this code to work with jquery 1.6.2 as it only seems to work if i use Version 1.2.6.
<script type="text/javascript" charset="utf-8">
window.onload = function () {
var container = $('div.sliderGallery');
var ul = $('ul', ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/6740487",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Math ML MO uses What do following snippets of code do in Math ML files? I removed those lines and it still worked fine for me.
<mo>⁡</mo>
<mo>⁢</mo>
<mo></mo>
Answering to any of them or just letting me know what they are would be very much appreciated.
A: The first two are ⁡ function a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28889230",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JSON object to php variables I need to convert a JSON object that the php receive from the html form into php variable. I have two forms form1 gives the values and form2 submits them. this is where I give form2 the JSON string value
-html--javascript function-
var myObj = {
"username" : theUsername,
"name" ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7088524",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Django multiple foreign keys or one enough? I'm fairly new to Django having up to this point used to it display data from other sources.
I'm embarking on a new project and have a query about the way Django handles model relations (did some searching couldn't find much for this specific instance) and am wondering the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10390663",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: header() loads everything on same page ajax when I click login it loads home.php on index.php and looks very strange.. is it possible to make it redirect or erase everything on index.php then load home.php
function login(){
var name = $('input#answer').val();
var pass = $('input#password').val();
if( $(name)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39760997",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: change from Statements to PreparedStatements I have a simple code which sending some info into mysql.
Connection connection = null;
Statement stmt;
Properties connInfo = new Properties();
connInfo.put("user", "Main");
connInfo.put("password", "poiuyt");
connection = ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19815336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Angular 2+ get specific value on selected value In the following Angular 2+ code, I have an Array in TypeScript:
models = [{idModele: 1, model: "Bianca", price: 500}, {idModele: 2, model: "etc", price: 600} ]
I would like to know, how it's done so that when I choose a specific model, I automatically receive its pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61883465",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Update header after login on GraphQL I try to update my GraphQL headers on login success. I use Apollo.
My default settings is this :
const { API_GRAPHQL_URL } = config;
const httpLink = createHttpLink({
uri: API_GRAPHQL_URL
});
const getToken = async () => await AsyncStorage.getItem('userToken');
const authLi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57176409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Xcode "Could not launch". Only reports "Security" as error I've edited the app name out. Other than that the dialog is exactly like this.
I'm developing an enterprise app and I've tried restarting xcode and the iPhone I'm developing on.
No change. Anyone encountered this? Are there any log posts that could point me ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19112794",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "103"
} |
Q: not getting previous month record using datepart in sybase Using below depart syntax to fetch for previous month record, it is working fine till previous year,however it is giving 0 value in January month.How can we get pervious month with date part even if year is change ?
DATEPART(month(GETDATE()) -1
A: I underst... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70617813",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In C#, how could I move my label right at a certain speed to a certain area? I'm trying to make my label which in its original position is top left. What I want to happen is when the program starts, it'll gradually in about 1.5 seconds in a glide motion go to the center top of the application.
So how could I do that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31800185",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can read data from Kepware server I would like to development a client app to read data from machine PLC. On this machine there is a bridge pc that have the Kepware server installed, so if I run kepware client demo toolkit I can read the value of machine. So I would like to development a client for read data fro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26676656",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: calcuate opening debit and credit and balance I am using the query to fetch data from tables to calculate the opening balance, debit, credit and closing balance from each account.The query which I am using is as below:
SELECT detail.acc_code,name, (SUM(debit) - SUM(credit)) AS opening, SUM(debit),SUM(credit) FROM he... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61065028",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: No match for call operator when std::bind-ing a std::function with a std::future When I try to std::bind a std::future<T> to a std::function<void(std::future<T>)> I get a compiler i.e. template error I not completely understand. It seems to me the std::bind template deduction goes haywire but I am also not sure how ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62001192",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unity random characters in string How do I repeat generating a random char? I want to make a glitched text effect so I set:
textbox.text = st[Random.Range(0, st.Length)];
in my update method. I do however only get one character out of this line - how would I repeat this process in a string with the length of 5? Wha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65781121",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Differences with cookies between getJSON and ajax when doing CORS I have a REST based web service running in my Tomcat Java EE servlet container.
I am writing a jquery client that is from another domain and is therefore using CORS. It hits the login web service, followed by another call. I originally implemented the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17704919",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Start android application from code I need simple start an application from my code, like Skype, or other one.
I read some thread, on the internet, but I haven't solution.
I tried this methode:
Intent startApp = new Intent("com.android.gesture.builder");
startActivity(startApp);
I wrote this in try/catch blokk, a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7146431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Netbeans update generated project files from command line I need to setup a periodic pull & build of a native Netbeans project on a Linux box and I don't want to open the project in the Netbeans GUI to make the generated files up-to-date.
There can be at least one file in a native Netbeans project that should be di... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52648608",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Shrink an outer div to the size of a scaled (transformed) inner div I have an inner div that has been scaled by an arbitrary amount. I would like the size of the container div to be that of the inner div, but instead it is sized as if the inner contents were not scaled. How can I get it to shrinkwrap correctly?
#c... | {
"language": "la",
"url": "https://stackoverflow.com/questions/53485320",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: React - How does this 'SetInterval' work? I'm learning React, following their tutorial. They made a clock component which updates itself, and has these functions:
tick () {
this.setState({
date: new Date()
});
}
componentDidMount() {
this.timer = setInterval(
() => this.tick(),
1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42598271",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Identifying patterns in time series data I'm currently aiming to build out a system that identifies patterns in time series data.
The end goal is: Given N sections of at rest time series data, classify the section with the largest similarity between the N signals. The subpatterns are all identical or pseudo identica... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53710873",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: setting identity specification on in c# code I am trying to write a c# method to set on the identity specification. But it is not working. This is my code:
string sql = "SET IDENTITY_INSERT " + table + " ON";
string sql2 = "SET IDENTITY_INSERT " + table + " OFF";
SqlCommand cmd = new SqlCom... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38332767",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to make a view from pieces aligned to each other with different behavior android Let's say I have an animal face in pieces. I have an exterior, right ear, left ear, nose, mouse, eyes.
Each of this part is independent component, so even when all of it gathered into one, animation of nose is different from ears an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30067045",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Openshift webhook branch filter I successfully installed Openshift Origin (latest), and performed automated builds.
I.e., once I pushed something on master branch, I get a build triggered through a git webhook, using the URL provided by Openshift triggers.
Now I would like to trigger a build only when a specific b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36789424",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to add project reference to another Project by using latest roslyn api I am using Following Code but it did not work
MSBuildWorkspace workspace = MSBuildWorkspace.Create();
Microsoft.CodeAnalysis.Solution originalSolution = workspace.OpenSolutionAsync(sol.SolutionPath).Result;
Microsoft.CodeAnalysis.Solution new... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27142506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: printing slowly (Simulate typing) I am trying to make a textual game in python. All goes well however, I would like to make a function that will allow me to print something to the terminal, but in a fashion hat looks like typing.
Currently I have:
def print_slow(str):
for letter in str:
print letter,
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4099422",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Reading strange unicode character in Java? I have the following text file:
The file was saved with utf-8 encoding.
I used the following code to read the content of the file:
FileReader fr = new FileReader("f.txt");
BufferedReader br = new BufferedReader(fr);
String s1 = br.readLine();
String s2 = br.readLine();
Sys... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9889064",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: ComboBox Binding TextBlock Text to value DisplayMemberPath I have many comboboxes with different DisplayMemberPathes
I need create the one style with TextWrapping
App.xaml:
<Setter Property="ItemTemplate" >
<Setter.Value>
<DataTemplate >
<TextBlock Text="{Binding *what ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32755652",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: javascript: var is undefined only in IE I am running into a problem in IE (works fine in chrome, firefox, and safari) where a var that I declared at the document scope is undefined and cannot be written to. It looks something like this:
myFile.js
var background;
var opacity;
var zIndex;
function backupValues() {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9401559",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What does 'InvokeRequired' and 'Invoke' mean in .Net? I have been working a lot with threading in a few programs I am working on, and I have always been curious as to what exactly something is doing.
Take for instance the following code, which is ran from a thread to update the UI:
Public Sub UpdateGrid()
If Me... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18662905",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: if taxonomy is set show code html - wordpress Hi I have a little problem with php/wordpress and can't find answer.
There is a list and one <li> I want to show, when anything in custom taxonomy is set:
<li class="">Taste: <span><a href="#"><?php printRecipeTaste($post_ID); ?></a></span></li>
I have some php in anoth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34052916",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: parameter &usqp=mq331AQCCAE= at the url from AMP Since some days there are reffers from AMP with the &usqp=mq331AQCCAE=paramater at the url. I must rewrite this to clear my analytics reports. So:
Do some one know what is it?
A: I have ask Malte Ubl on Twitter. His anwser is:
This controls an experiment on the AM... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45089466",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Unable to find bundled Java version when installing flutter Unable to find bundled Java version when installing flutter.
A: If you check closer, there are 3 versions of Android Studio installed: version 1.2, version 1.5 and version 3.0.
Among the 3 versions, it seems that the 2 older version were the one's gettin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49294681",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Add and remove from ManyToMany junction table with typeorm I need to add or remove products to a group. my entities are like:
@Entity()
export class Product {
@PrimaryGeneratedColumn('uuid')
id: string;
//... some columns
@Column()
storeId: string;
@ManyToOne(() => Store, { onDelete: 'CASCADE' })
st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73136896",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: React Router is not rendering I am trying to understand nested react router structure. I have implemented some code from a tutorial but it is not working as expected. Here is my routes.js file.
import React from "react";
import {
BrowserRouter as Router,
Switch
} from "react-router-dom";
const ROUTES = [
{ path: "/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63658675",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: TestCafe visibilityCheck does not wait for element to appear I am trying to get TestCafe to wait for an element to appear in the dom. Currently I am using { visibilityCheck: true } but it does not seem to do anything and the test will time out and be considered a failure.
Goals:
*
*Go to page
*Wait for searchIcon... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62866992",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Efficient Approach: JSON File Write or File Append Which approach is more efficient
1) Append few json objects in a file
2) Clear file and rewrite json
JSON Structure
{
"Regex":[],
"Entity": {"":"","":"","":""}
}
Here,I want to append some new entries in Entity.
A: Appending is much efficient, as the system is awa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33493374",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Dynamic Side menu using three tier Can anyone please provide the complete c# codes for a data driven side menu in three tier architecture.i have tried for that but I don't know how to make menu dynamic
| {
"language": "en",
"url": "https://stackoverflow.com/questions/59457922",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Matlab make plot3 look like surface plot I have 3 vectors x, y and z. I am able to plot these points with plot3 however I want it to be more fancy and filled with colors like how plots look 3 dimensional with surf. Actually, my aim was for it to be like that of a surf plot however I am unable to get the results I ne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52933506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cannot Login using Spring security facebook in Grails I am using the spring security facebook plugin to implement login in my grails application. I am using the 0.14.5 version of spring security facebook plugin. It was working fine until couple of months ago, now I cannot login to my application. I get the following... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27438468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Atom editor still let work with merged and deleted branch I needed merge additional branch to main. Github say it's successfully done but Atom still let edit merged and removed branch. What I made incorrect and how to fix it?
I made successfull pull, merged additional branch to main branch and after deleted merged a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68716422",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to disable Pydio password? I found this question on stack and I need to do the same thing but with their newer product Pydio. Any thoughts? The same type of config file is not present??
@user962284: Im using ajaxplorer on a local server and I dont want to use the user
authentication each time I open my browse... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29532440",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using Google analytics need to papulate a report how many user comes to our site through fecebook ads We are using Word Press Multiple sites network for our organization: www.exaple.com/[multiple-subsites-here]
like www.example.com/subsite1/, www.example.com/subsite2/, www.example.com/subsite3/ etc
Also we have a su... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41220021",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Card Reader turns off after removal of RFID tag, won't turn back on until program is restarted I am trying to use a ACR122u NFC reader to communicate with an NFC tag. The program starts fine, and it is able to read and do all the desired operations on a tag when one is connected. However, once the NFC tag is removed... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59647625",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can i change state in React for a single item inside map with onClick button? I'm trying to set state for one item whenever i click the button on it.
i have a map that runs on a list of products, it returns a card with a button in it.
i want to click on the button and then set the variable as it needs to be for ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74255393",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to pass props if it already has some value passed? function UpdatePngf(index, id) {
const [Cards, setCards] = props.value.Cards
let CardsData = Cards
var CardsObj = {
link: Cards[index].link,
icon: Cards[index].icon,
name: Cards[index].name,
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67454114",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Expo EAS build failure cannot load such file -- colored2 I am getting the following error when attempting to build the iOS version of my expo app using eas build -p ios --local:
[INSTALL_PODS] [!] Invalid `Podfile` file: cannot load such file -- colored2.
[INSTALL_PODS] # from /private/var/folders/yr/7xc177dn2cz10... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74802274",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I retrieve the value from table cell and send it to update page using jeditable I have mysql table-activity which has three columns, namely - id, clientname, status; and I am displaying only two columns, namely -,clientname and status using datatables.
Now I want to update my clientname value in database as ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38571080",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Django IntegrityError 'Column tag_id cannot be null' I'll describe the models first and explain the issue i'm having after.
class Tag(models.Model):
id = models.CharField(_(u'id'), max_length=128, primary_key=True)
class Post(models.Model):
tags = models.ManyToManyField(Tag, blank=True, null=True)
When I e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23766191",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Refactoring method for getting Json from a stored procedure in ASP.NET Core Please, please don't close or mark this question as duplicate, I have already looked StackOverflow and online but couldn't find solution.
Below code works great that I receive data from SQL Server via a stored procedure, then assign to a lis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69996706",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Is there any way to connect my google calendar to google colab? I created a project using the Google Cloud Console and created an OAuth screen. But when I used Python in colab to access the calendar, I got an error message that I don't have a proper redirect uri. Is there any way to bypass accessing my Google Calend... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74948261",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Delete multiple datas sharing a same child from Firebase - Java I have the following Firebase database
lessons :
Id_lesson : "XXX1"
Name_lesson : "Geography"
Date_lesson : "25/09/2018"
Id_lesson : "XXX2"
Name_lesson : "Mathematics"
Date_lesson : "25/09/2018"
Id_lesson : "... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52355632",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Destructuring object passed like argument to a function Don't know if is possible with ES6.
I'm working in a project that have a function which is passed an Object with lots of properties. Right now the code is as follows:
function foo({arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8}){
this.model = arg1;
this.model =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54130263",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Backbone.js View removing and unbinding when my page opens, I call the collection and populate the view:
var pagColl = new pgCollection(e.models);
var pagView = new pgView({collection: pagColl});
Separately (via a Datepicker), I wish to want to populate the same collection with different models and instantiate the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9080763",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: BETWEEN query using JDBC with MySQL public int getdata(String startDate, String endDate) {
PreparedStatement ps;
int id = 0;
try {
/*
* SimpleDateFormat formatter = new SimpleDateFormat("dd/MM/yyyy");
* java.util.Date startDat = formatter.parse(startDate);
* java.util.D... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35599459",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: how to select many different data"s" from two table? I have two tables tableA, tableB
Two of them have col "ip",like this...
tableA-ip
1.1.1.1
1.1.1.2
1.1.1.3
1.1.1.4
1.1.1.5
1.1.1.6
1.1.1.7
1.1.1.8
tableB-ip
1.1.1.3
1.1.1.4
1.1.1.5
And what I want is
1.1.1.1
1.1.1.2
1.1.1.6
1.1.1.7
1.1.1.8
How to select it?
A: I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8676646",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How would I go about connecting to a database securely via Java? I wish to connect to a Mysql Database with Java without revealing the password to anyone that may decompile my code? I can efficiently connect to a database, but my ways will openly show my password in the code :( and wish only a response on how to hid... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12453594",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: python3 KTinker grid load time incredibly long I'm trying to write a fairly basic grid which I've noticed generates fairly quickly but takes minutes to actually display anything. It runs through the loop but the window is plain until everything appears at once a few minutes later
i = 0
for i,element in enumerate(hea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51365762",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: cannot find symbol Serializable? Why does this:
package com.example;
import com.example.Foo.Bar.Baz;
import java.io.Serializable; // I did import Serializable...
public class Foo implements Serializable {
public final Bar bar;
public Foo(Bar bar) {
this.bar = bar == null ? new Bar(Baz.ONE) : bar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27664385",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Setting border for checkable QListWidgetItem I have added some check-able QListWidgetItem and I have challenge setting the border color for the checkboxes. setForeground function only sets the color of the checkbox text.
Any suggestion please.
This is my sample code creating the check-able QListWidgetItems:
watc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62466345",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: display json data that contains html I have the following json
[{
"date": "2011",
"content": "<p>Hello world?</p>"
},
{
"date": "2012",
"content": "<p><strong>Hello again</strong></p>"
}]
my controller has
public function index() {
$data['json'] = json_decode(file_get_contents('location_of_json_file.json'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28865293",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WPF: Making child elements' MinWidth/MinHeight constrain the Window I have a WPF Window that contains a UserControl with a MinWidth and MinHeight. How can I prevent the user from resizing the Window down to a point where that UserControl's minimum size is violated?
Here's a simplified version of a Window I'm working... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5228410",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Form that has a date picker input. And I’m sending my data to the database using nodejs My problem is: when I set the data type of my date picker to just “date” my data makes it to the database(even though it’s not the current date), BUT when I set the data type of my date picker to “datetime-local” it doesn’t make ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68678937",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: .bash_profile permission denied I'm trying to make one of my first projects published with github but I'm having trouble testing the build locally.
I'm following the steps here:
https://jekyllrb.com/docs/installation/macos/
and I am stuck on the following command line runs:
echo "source $(brew --prefix)/opt/chruby/s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73315913",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: IE10 anchor tag z-index issue In IE 10, I have a relatively positioned wrapper div with some content (an image / text). Inside of that div is an absolutely positioned anchor tag which is positioned to "cover" the entire wrapper div. It has a z-index set. So the entire area inside the wrapper div should be clickable.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/15662687",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Multiprocessing pool.imap with large chunksize is skipping processing some records in iterable I am processing a list of string using multiprocessing pool.imap() with passing chunksize. My list length is 1821 and process in imap is 4. I was trying to give almost equal number of chunk size to each process so set chun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66817760",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unable to choose order of buttons in UIAlertController I was under the impression that if the normal action is a destructive action and the other is a cancel action in their UIAlertController that the destructive one should be on the left and the cancel should be on the right.
If the normal action is not destructive... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32260191",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: ASP.NET custom HttpHandler in IIS 7, 7.5 My web.config is setup as following. My handler lives in an assembly called TestProject.Custom. I am calling this handler via jQuery post, works great in VS 2010 (of course!) but when I push it out to IIS 7.5 or IIS 7, it throws 404 about not being able to find TestHandler.as... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9422856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: org.apache.catalina.LifecycleException: Failed to start component i am getting this error when starting my tomcat server with my application.
I don't really understand it but if i "clean" in eclipse a few times or if i stop start the tomcat server a few times it somehow works, but then it happens over again if i sto... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23884755",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Connectionless UDP vs connection-oriented TCP over an open connection If a TCP connection is established between a client and server, is sending data faster on this connection-oriented route compared to a connectionless given there is less header info in the packets? So a TCP connection is opened and bytes sent down... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8930717",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to have few options as checked in the entity/choice type in symfony I want to render the choice type from entity and its working fine. I want to few options to be checked by default when the form is rendered. For e.g. I have 10 options out of it only 3 options to be checked by default and when it persisted and i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40780493",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: phonegap Google Analytics plugin for android returns class not found when i call one of the methods Good evening,
I am currently developing an application for android using phonegap and sencha touch 1.1.
I am having trouble with the GoogleAnalyticsTracker plugin for Android. I followed all the instructions on githu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9507183",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: XLSX Writer Python- 3 Color Scale with Number as Midpoint I'm trying to conditional formatting in XLSX writer with a 3 color scale with a 0 midpoint value in the middle. I want all negative values to scale from red (lowest number) to yellow (when the value is zero) and all positive numbers to scale from yellow (at ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43381230",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: multi-select with search ability in angularjs I started angularjs two weeks ago. I should make a multi select input with search ability.
What I made has 2 problems that I can't fix.
first when I search for "a" it won't filter correctly to only show "a" but the other work fine
second it has a bug when I select "a" to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50552034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: AngularJS : Seqential Promise chain Function one passes value to two and then two passes value to three. Any of these functions could take any amount of time to return data. How can I make them wait for value instead of rushing ahead and printing undefined.
var deferred = $q.defer();
var one = function (msg) {
$t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25894105",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Angular dynamic form, sub-components not updating top level form As the title suggests, I've created a dynamic form using a mix of tutorials I've read.
I have a parent component which creates a empty form group which I then (try) to populate with sub-groups via child components. These components are passed a refere... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49724263",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: type 'ObjectId' is not a subtype of type 'String' of 'value' I am trying to insert a document into my Mongo Database using the package mongo_dart
var db = await Db.create(MONGO_CONN_STRING);
await db.open();
var coll = db.collection('reports');
await coll.insertOne({
"username": "Tom",
"action": "tes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72484782",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to change permission of a kvm-qemu serial console output log I have a virtual machine with this config to redirect serial console log to another file:
<devices>
...
<console type="pty">
<target type="sclp"/>
<log file="/home/nptusk/serial-console.log" append="on"/>
</console>
</devices>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70561360",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How load Partial View with JavaScript In my view I have JavaScript to load a partial view.
<p>
<div id="AREA_PARTIAL_VIEW">
</div>
</p>
<script type="text/javascript">
$(document).ready(function ()
{
window.location.href = '@Url.Content("Insert", "Customers","Insert_Partial_View")';
});
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49054643",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Ansible ec2_vpc_route_table playbook error was: 'dict object' has no attribute subnet I have a previously working piece of Ansible that I've inherited for a previous contractor, and I'm getting an error message that doesn't lead me in the right direction. I have tried searching for a few days now, with no joy, and m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54305600",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Interesting behaviour with infix notation One sometimes try to get away from your girlfriend by hiding behind your computer screen. However, I find that Scala is sometimes exactly like my girl...
This prints the intersection between two lists:
val boys = List(Person("John"), Person("Kim"), Person("Joe"), Person("P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23925713",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: iPhone SDK:NSScanner crashing randomly I have an application that scans text from a website in order to get the information and put it into my application. So in this case I'm retrieveing the number of notifications that the user has on facebook. Everything works fine except that the application crashes randomly. Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12224027",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Parser for Pipfiles (get a list of all packages used in a Pipfile) Is there any parser out there for reading in a Pipfile and returning a list of all packages used in the Pipfile?
If not, how would one go about this? I was thinking a regular expression could do the job, but I am not sufficiently acquainted with the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53015705",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Bash Regex to print out the matched string only? Im trying to read a file line by line and trying to match few strings,and im not able to echo the matched line using "$?" im not sure which "$" function to use. can anyone help? i dont want using grep, thanks in advance.
#!/usr/bin/bash
while read EachLine
do
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54036023",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: hibernate validator, json schema generation and using common constraints We use Spring MVC, Jackson for json, Hibernate ORM. We need to add front end validations. I came across hibernate validator.
We have a set of Domain classes [DO classes] annotated with JPA.
We have another set of POJO classes [DTO classes] ann... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21120760",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: C++ A multiple inheritance pproblem with pure virtual functions I have produced a minimal example to replicate the problem I am seeing with a more complex class hierarchy structure:
#include <string>
#include <iostream>
class A
{
protected:
virtual
~A() = 0;
};
inline
A::~A() {}
class B : public A
{
pu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35975050",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Recording Xero check payments via payments endpoint - will they automatically match bank statement? I'm trying to work around the Xero API's lack of support for payment via checks.
If I use the payments endpoint to create and apply new payments to existing invoices, and as part of the PUT add the check number to the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56961311",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: convert Json object to java object: The logic I have a json weather API that forecasts five days every three hours. I put part of the json with two forcasts since it is too long and repetitive:
{
"cod": "200",
"message": 0.4194,
"city": {
"id": 1851632,
"name": "Shuzenji",
"coord... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23622686",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: NuGet Packages claiming to not be correctly installed I have a project that references
WindowsAzure.ServiceBus
However, when I rebuild the project, I get the error:
1>C:\Users\xyz\documents\visual studio
2017\Projects\MyProject\Class.cs(1,17,1,27): error
CS0234: The type or namespace name 'ServiceBus' does no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50639272",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.