text stringlengths 15 59.8k | meta dict |
|---|---|
Q: Jquery document on change: can I use variable as selector? I am very new to javascript and jQuery. In my view, I have a List of QuoteDetails, as follows:
<div class="col-md-10" id="QuoteDetails">
@for (int i = 0; i < Model.QuoteDetail.Count; i++)
{
<div id="row">
@Html.HiddenFor(model =>... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42869945",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you do calculations using various variables in a toplevel window? I'm creating a calculator app for my company which will be used for the calculation of certain parameters.Since there are various parameters with their respective formulas,I decided to create toplevel windows for each parameter-all linked to re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58533101",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: extracting string patterns that repeat to a separate column or columns Hi I have not seen a similar solution to this problem I am having. I am trying to make a regrex pattern to extract the characters following the word major within { } and place them in a major column. However, the major repeats in row 2 and I need... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72983571",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SpringSecurity - Not preventing access after login I'm trying to use Java configuration for Spring Security using Roles in order to only grant access to authenticated users. The login process is working, but when I log in using a role that should have limited access, I'm still able to get to a route that should be p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19772633",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Center a button using jquery/javascript Is it possible to center the vote button in below script ?
<script type="text/javascript" charset="utf-8" src="http://static.polldaddy.com/p/6352993.js"></script>
<noscript><a href="http://polldaddy.com/poll/6352993/">This is very long test question to test how polldadd... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11342502",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Loop terminating program prematurely this loop leads to unexpected termination of program.
please help me to identify the problem.
char n1, n2;
int wt, edges;
printf("\nEnter the Number of edges in the Network\n");
scanf("%d",&edges);
printf("Enter the details of all the edges of the Network\n");
for(int i=0... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22766727",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Why does Yeoman build without glyphicons? I'm working on a webapp generator and after running grunt I got a functional app which display fonts correctly. However, when I check in the dist/ directory I don't get any fonts files.
The docs state that grunt command build the application for deployment, but the dist/ dir... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18572941",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: inserting into table closing rows while keeping the date column Following this question.
My table
id sum type date
1 3 -1 2017-02-02
1 6 -1 2017-02-04
1 -6 2 2017-02-01
1 -3 1 2017-02-09
1 3 -1 2017-02-17
1 6 -1 2017-02-05... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42228837",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do rvalue references assist in the creation of a std::swap-like function? Another, mostly unrelated question linked this article by Bjarne Stroustrup. When introducing rvalue references, he gives an example of its utility with a quick implementation of std::swap. Unfortunately, he never shows how rvalue referenc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69521920",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Real time messages using jQuery window.setInterval(function(){
$.post ('<?php echo base_url(); ?>ClientCont/List_Files/fetchmessage',
{
id:folderid
},
function(data){
console.log(data);
if(data.length > 0){
var a;
for(a = 0; a < data.length; a++){
$('#prev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50618253",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: My JTable is not displaying at all I know that a JTable is usually put in a JScrollPane, but I don't want to scroll at all, I want the table to grow when a row is added.
I have used NetBeans IDE 8.2 to create a swing application that almost does what I want with my tables which I've put in JPanels, data and header i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43553426",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: powerbuilder datawindow validate records close to 3 months into powerbuilder classic 12.5 and sql server 2008 and am working out well. I am creating a car hire system using car registration_number as the primary key.
i need to capture the car's details and make sure that the registration_number is not available. T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12038072",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Spring Security only lets one user connected I'm developing a Spring Boot application and I can't get the security working. I have a customized user class, which instances are saved in a data base.
When a first user logs in, everything works perfectly, but when a second one logs in, this second user replaces the fir... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45893590",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Style WP plugin output : columns and font size I use the "simple posts list" - wordpress plugin which outputs all posts as a long list - how can you style the output, say in 4 columns, and determine font size (as far as I know it's not possible in php)?
Looks not too difficult, but I have no knowledge of php...so pl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23394498",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Couldn't access Wcf service hosted in a server through ajax call, but can access the same Wcf service hosted in local machine Created a Wcf Restful service and hosted in local Server. Another user is trying to consume the WCF Rest service from HTML5 page through ajax call. However always it is throwing failure mess... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20345203",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Clojure spews out this error at the end of binary search. why? and how to avoid it? Here's the code, it is a straight forward binary search implementation.
(defn binary_search
"searches for a single element in a sorted array in logartihmic time"
([array start end element]
(do (pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24396089",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Azure pipeline runtime evaluated variable passed a parameter I have an AzurePowerShell script (powershell/gettenants.ps1) which sets the value of the tenants variable.
The following bash task successfully echos the new value BUT the following template recieves the default value (set at the top of the script). Note I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61865042",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to use getKeyChar in javafx? In Class Controller(javafx)
@FXML
private void check (ActionEvent evt)
{
if( Character.isDigit( evt.getKeyChar() ) )
{
}
else
{
Toolkit.getDefaultToolkit().beep();
evt.consume();
}
}
(TextField On Action = check)
This episode getKeyCha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32422010",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Initialization of an array of structs in C++ If I have a struct like below:
typedef struct MyStruct {
char **str;
int num;
} MyStruct;
Is there a way for me to initialize an array of this structures. Perhaps like below:
const MyStruct MY_STRUCTS[] = {
{
{"Hello"},
1
},
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18938679",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: After clearing document, document.write(ln) won't work? as in title says I have a problem, here is example:
...
<script>
document.body.innerHTML = "";
document.write("<scr"+"ipt>alert(1);<\/scr"+"ipt>");
</script>
After clearing document, I want to write in it some JS code (and I want to be executed of course).... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7243660",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Excel PowerPivot Average Calculation I am having some difficulty determining how to produce a calculation of averages that can be plotted on a PivotChart.
Specifically, I wish to compare a Sales Rep's performance (gross profit by month/year) against all other reps (using an average) who are in a comparable role (the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21978910",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Storing keys in Android I am writting app for Android and I have to store two keys that I will use to encrypt/decrypt some messages. ( I have to store private key RSA). I've read:
https://developer.android.com/training/articles/keystore.html#WhichShouldIUse
and there is a section titled:
Choosing Between a Keychain... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40774594",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Having Trouble Outputting Data correctly From SQL Table I am trying to outputting data from a SQL table
Table cols are:
sheduleID, userID, empID, timeSlot, WeekSlot, daySlot
Connecting to DB
$schedQ = "SELECT * FROM seo_schedule WHERE empID=1 AND weekSlot=1";
$Em1Wk1Res = mysql_query($schedQ) or die(mysql_error())... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4682562",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Javamail Permission denied: Connect after build I had a problem a couple of days ago where I was getting a Permission denied: connect when using Javamail to send an e-mail using our local mail server. For reference it can be found here: JavaMail API to iMail -- java.net.SocketException: Permission denied: connect. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12936319",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I get the property path in template (ractive.js) I'm writing a page with ractive.js and Kendo UI. The page is generated by a definition, the definition will translate to a (ractive.js) template, and render to a page finally. In the page, I also use the Kendo UI's MVVM library for binding the data. but there ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24492105",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: inserting data into mysql table I have just installed xampp but I'm having problem inserting data into MySQL table.
The data I inserted does not appear in phpmyadmin. I am not sure what is the problem.
Any help will be gratefully appreciated, here is my code:
<html>
<head>
<title>Test</title>
<body>
<form action="... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13400497",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why is this recursive TypeScript function returning undefined? I'm trying to recursively traverse a tree of objects that contain objects that contain objects, build a string, and return the string as part of a VSCode extension.
type categories = { [key: string]: { [key: string]: { [key: string]: string } } };
const... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58565096",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: My Android Finger paint app sends paint to irregular places on image In my Android Finger Paint app I used two view's imageview backside and paintview on top, it's working fine for painting and erasing. But after saving the real painting position is changed.
removed dead links to images
Code is
public MyView(Contex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7189578",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Error missing end time when create event on google calendar api using NodeJS I have a problem creating an event in google calendar api using nodejs. Specifically, I successfully took a list of events in the google calendar but could not create the event and it showed a "Missing end time" error. Below is my code, I h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48720827",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Scipy.optimize can't iterate between given bounds. Works only for initial value I built a model with the following codes and run with one example.
Scipy.optimize canβt iterate values between bounds. It works only with initial discount value=0. If you have any suggestions, I would appreciate them.
Example:
import pan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70698748",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Replacing character in a list with keys from a dictionary of lists I have a dictionary containing lists like
char_code = {'1':['b','f','v','p'],'2':['c','g','j','k','q','s','x','z'], '3':['d','t'], '4':['l'],'5':['m','n'], '6':['r']}
I have another list containing characters
word_list = ['r', 'v', 'p', 'c']
I want... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74550763",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Bad parameters on attach or create database - CHARACTER SET ISO8859_1 is not defined I know the problem is not recent, but I've tried all solutions I found and the problem persists. I'm on Mac OS Big sur and I've a Qt 5.15 application. On my dev machine, all works fine, but when I test on another Mac, I've always th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70496115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Meteor.js Meteor-CollectionFS upload files using the method on the server side Hello and looking for any information on how to upload files using the method on the server side and whether it is possible.
This is my code:
file: client/template/new-wydarzenie.html
file: new-wydarzenie.html
file: client/template/new-wy... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35636418",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Where does a dynamodb2 batch begin and end? I am trying to move my python code from using dynamodb to dynamodb2 to have access to the global secondary index capability. One concept that to me is a lot less clear in ddb2 compared to ddb is that of a batch. Here's once version of my new code which was basically modifi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22182613",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: CALayer as left border donΒ΄t working? I have two UITextField in a regular ViewController, and i put a green border in left side with CALayer.
my textfield
Here is the code that i developed:
let borderU = CALayer()
let borderP = CALayer()
let posx = CGFloat(2.0)
let height:CGFloat = (txtfUser?.frame.si... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50839574",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I concat two elements of splitted fields from mongodb collections? I have github repos URLs in a mongodb collection. (comments)
url: "https://api.github.com/repos/andymckay/solitude/comments/1573261"
I want to split this field according to slash (/) delimiter.
After this process, I have array likes below. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59255487",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Laravel - Running Horizon in Google Cloud Run (via Docker) I'm trying to set up laravel horizon to run on my google cloud (run) containers. I have gotten installed successfully, however when I navigate to the dashboard, it always indicates to be inactive. Jobs are getting scheduled but are not being executed.
For c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71662382",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Spring boot request X509 certificate on login page I am writing a Spring Boot application where on login page, user should be prompted to provide his X509 certificate (generated with my self-signed CA).
If user fails to provide certificate he is then shown another page with error. If user provides correct certificat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50769092",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: 3 divs in row with auto width adjust I got 3 divs that:
*
*need to to be side by side ( in a row)
*all have a background imgage
*the center div need to adjust the width automatic, center div's width dependance on the content that have been inserted into the div( longer text = longer width
*center div needs to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10944649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Template Error on Form_for in Rails I have an nested model student that belongs to a high_school. The problem is that when I go to create a new student (/high_schools/1/students/new) I get this error:
No route matches {:action=>"destroy", :controller=>"students", :high_school_id=> # <HighSchool id: 1, name: "cool p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2484671",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Best way to store content? First of all I want to thank you for even reading this. I'm a complete noob and I'm trying to learn Android Java. I've made many little "Learn Apps" in which I just try to learn things. Today I want to make another one.
I want to have ListView in the MainActivity which contains names of F... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24352070",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: using valuewhen in pine script I can understand how valuewhen works in pine script by its docs at https://www.tradingview.com/pine-script-reference/v5/#fun_ta{dot}valuewhen
The example given there is simple:
// Get value of `close` on second most recent cross
plot(ta.valuewhen(ta.cross(slow, fast), close, 1))
But I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75191696",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ReferenceError: myData is not defined I am learnig angular js service.Try to execute following code which reads JSON from a json file.
data.json
{
"name": "ishmam",
"age": "23"
}
Body of html:
<body ng-app="myAppp" ng-controller="customersCtrl">
<div>
{{myData.name}}
</div>
<script>
var... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35594538",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Missing Assembly Reference Trying to Compile .cs File With Mono I am trying to make a simple Console Application using Visual Studio for Mac (version 17.4). Current target framework is .NET 7.0 but I've toggled back and forth between .NET 6.0 with no luck. My goal is to set up something that can automatically run my... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74606428",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Symfony 1.4.4 - Doctrine migration and Plugin installation I make my first steps in the symfony plugin world, and I'm a bit
lost...
I have a live app with a database. Usually, when I need a new table or
field I do a migration, by updating my schema.yml, calling the
generate-migration-diff and build --all-classes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7916045",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: I have error when I run docker in daemon mode I try to run docker in daemon mode but get an error
#docker -d -b br0
flag provided but not defined: -d
See 'docker --help'.
#service docker status
docker stop/waiting
I need this because I use own bridge for docker instance.
Two weeks ago I did not got any problems ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35336024",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: UI-Router redirecting to a child not working Hi I am trying to have a parent state redirect to a child state.
export const states = [
{ name: 'top', url: '/top', redirectTo: 'top.bottom' },
{ name: 'top.bottom', url: '/bottom', component: GenericComponent },
];
The transition is successful but the child view is n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53417332",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to plot vertical base line to show current time using react-google-charts for chart type Timeline chart //https://www.react-google-charts.com/examples/timeline
import { Chart } from "react-google-charts";
export function GoogleTimeLineChart(props){
const data source=[[{"type":"string","id":"Plan"},{"type":"stri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73469202",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to fix string too long exception in java I have a algorithm to analysis string but it take only about 10000 characters more than that it will throw following exception
Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - constant string too long
this is the code I'm using
public st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36513922",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: CSS3 - Fade between 'background-position' of a sprite image I want to fade between 'background-position' of a sprite image only with CSS. I found a lot o tutorials but I didn't found something simple like this:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>CSS3 - Fade between 'background-position' of a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/15899865",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to add and access a yaml file as a resource in Ballerina? I have a YAML file that I want to keep as part of my jar resources and consume inside my .bal program.
I have created a resources folder under my project and placed the file there.
The file is being added to the JAR and I can confirm it.
But how do I now ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75065204",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to tell which JSON object is being used (Crockford's or another)? I'm using Crockford's json2.js. When I want to stringify, I do JSON.stringify()...works great.
However, those who've taken a look at the code know that it defers to existing JSON objects and properties. I suspect a certain problem I'm having may b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11150637",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Android studio is unable to recognize ndk.dir and ANDROID_NDK in Mac I'm running into a strange Android studio problem. My gradle sync fails every time with the following message:
Error:NDK is not configured. Define location with ndk.dir in local.properties or with an ANDROID_NDK environment variable.
local.properti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39133519",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Create childband Delphi (QR) at runtime I have the following code
procedure Tar_ardemo.qr_ardemoBeforePrint(Sender: TCustomQuickRep;
var PrintReport: Boolean);
var
QR: TquickRep;
QB2: TQRBand;
QB3: TQRChildBand;
QL: TQRLabel;
begin
with artikste do
begin
close;
sql.Clear;
sql.add('S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71252706",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Incrementing a field in JSON from angular controller I have a schema that includes a field like so: flagCount : Number.
I am trying to increment the count by 1 when the user clicks a button (the reportListing button). The button is inside a HTML page and looks like:
<img class="flagIcon" id="flag" src="../../..... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34249337",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: org.eclipse.core dependency to org.eclipse.runtime suddenly changed We compile an Adobe CQ project (services, taglib, view, content, etc.) with maven. At some point in time, we introduced the following dependencies:
<dependency>
<groupId>org.eclipse.core</groupId>
<artifactId>resource... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18350865",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Generate a column with random digit with mean = 20, maximum = 25 and minimum = 5 as quickly as possible in pandas I have a df as shown below
df = pd.DataFrame({'Session': ['s1', 's1', 's1', 's1', 's1', 's1', 's1',
's1', 's1', 's1', 's1', 's1', 's1', 's1', 's1'],
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62430987",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Laravel 4 : model assocation (belongsTo) I have a very simple tables association with laravel 4 :
foods table
id
name
food_category_id
food_categories table
id
name
Here are my two models:
//models/Food.php
class Food extends Eloquent {
public function food_category()
{
return $t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23534906",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Procedure or function expects parameter which was not supplied Driving me mad on a personal project; I know I've done this before but elsewhere and don't have the code. As far as I can see, I'm setting the parameter, I'm setting its value, the connection is open, yet when I try to fill the dataset I get the error '... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2596604",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: create a simple ImageSlider using any of react-native libraries I am new to React-Native and I am currently struggling out for creating a simple Image-slider in react-native. I went through some of the links like: https://reactnativeexample.com/tag/carousel/
But not able to figure out if react-native provides a libr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54060458",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Create custom Regressor in sklearn I would like to use a custom Regressor with sklearn GridSearchCV. The spirit of it is analogous to creating a custom Classifier - as shown in this blog:
http://danielhnyk.cz/creating-your-own-estimator-scikit-learn/
Here is a condensed/edited portion of the code from the blog - sho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53011516",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Simple way to check for membership in a list? For use in a closure (though I suppose it will be useful elsewhere as well), what is the cleanest way to check to see whether or not a given element is a member of a list (or any character is a member of a string)?
For example, to check whether or not the string "abcde" ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32896962",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to extract two rgb values/strings from the another string using regex or another method The following string has been retrieved from an element's style attribute, the attribute is a variable and can contain different colors in a particular vertical gradient background:
string = "background: linear-gradient(0deg... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22115079",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to choose python 3.5.1 executable for project on Xcode 7? I want to set up a python 3 project in Xcode, but I fail in the step where I'm asked to choose an executable for the scheme. See step 16 in the answer to Python in Xcode 4+?.
I use "which python3" to locate the executable:
$ which python3
/usr/local/bin/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37182783",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: unable to use await while doing multiple fetch requests I am fetching data from an API. The first fetch URL i pass the data it returns success and the other fetch URL then using second fetch URL i fetch the data and print it. I was unable to use await as after doing a fetch request of the first URL its takes time fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71147387",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MySQL query help I have two tables with the following structure:
Table_1
No Name
1 Test1
2 Test2
2 Test3
Table_2
t_no t_name no
1 tname1 1
2 tname2 2
How can I write a query to get the result below
t_no t_name Name
1 tname1 Test1
2 tname2 Test3
In Table1 two records have the same i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5353595",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Material-UI Select doesn't update after onChange I've seen this problem about all around the web but nothing could come short of giving me a valid explanation.
I'm using Material-UI Select and the good ol' setState(...) from React (not hooks though)
My component is composed essentially of those lines :
class MyCompo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66780331",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Outbound Email bounce processing - is it possible to set requires SSL? I'm configuring Outbound Email Bounce processing using Tridion 2011, but am getting the following error:
errCannotAccessPOP3Account
StackTrace Information Details:
at Tridion.OutboundEmail.Services.BounceProcessor.BounceInbox.ProcessPop3Mailb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9434773",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: ui:param - passing method arguments I have two xhtml files, one includes another. I already know how to pass the controller and method to be called to the dialog, what I am not sure is possible, is to actually pass arguments/objects to the method that will be called. I tried something like this, but Eclipse tells me... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53830403",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: repeating macro I am looking for a marcro that can copy and paste cells.
The value of cell X must be copied to a cell X + 6.
So A1 text "Xteam" has to be copied to cell A7, this up to cell A380.
The same applies to cell B2 + 6.
It has to be dynamic, so the cell and sequence are dynamic..
I want to be able to indic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52882070",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Validate null object In order to validate if model comes null or not I use something like this:
if (model is null || !model.Any()) return this;
But in latest Microsoft conference I saw guys use something like:
if(model is { })
I try to use it but always return true (if object comes null or not)
So my questio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58456474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Ninject Array Bind I'm trying to use Ninject with WPF
I have same interface for all my views
interface IView
{
string ViewName { get; }
object Content{ get; private set; }
}
public partial class FirstView : IView
{
......
}
public partial class SecundView : IView
{
......
}
etc..
At start of App I Bind ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/15293909",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Scroll table and store data in the list using Selenium web driver I'm working on a project where wanted to
1. Scroll the web page.
2. links are stored in the table
3. Click on the link present in the row
((JavascriptExecutor) driver).executeScript("window.scrollTo(0, document.body.scrollHeight)");
List<WebElement> r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37880323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Get updated time of a particular row values in java I have a csv file. I want to add a column of Last updated in csv file i.e.
Name Last Updated
A 2:30
B 3:30
C 5:00
I'm not able to figure out how can i get the time when a row was last updated.
Any kind of help regarding this would be much appre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57914456",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: why method "equals" skips the necessary chars although they are written in unicode? I splitted csv-file by "," but some numbers were written with using of this symbol so some numbers were splitted on some parts. The beginning and the end of the every splitted number are signed by """ so i tried to paste parts of the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74340882",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ImageMagick Command Line Photo Editing I have the following lightroom presets that I am trying to get as close to with CLI for ImageMagick7.
Highlights -20
Temp 7500
Tint +10
Sharpening 25
NoiseReduction 5
Color Noise Reduction 5
| {
"language": "en",
"url": "https://stackoverflow.com/questions/69420035",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In Android, how can i allow the user to choose a color between 4? I'm making an Android App, and i need to put a control that let user choose between 4 different colors. I want to do this with something like radio buttons: the problem is that radiobuttons are round...
is there a way to set them looks like square/rec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2663778",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to stop 2 digit numbers going to 00? Making a cookie clicker I encountered some problems including the title. Here is my code:
#imports
from getkey import getkey
#variables/strings/int whatever they're called
money = 0
cookies = 0
#loop
while True:
print(f"{cookies}\n${money}\n\n[1]offer1: {offer1}")... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75086333",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why am Igetting the error "Could not load type 'CADE.main.index'." on a new server when I'm using the same code on all other instances, how fix it? I just checked out my "mixed" (asp classic and .Net) web site source from SVN on a new Windows 2019 Server. When I go to the logon page (.asp classic), it's fine but wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58310701",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: regexp to check if input is only whole numbers (int) , and to check if another is only numbers with 2 decimal places I want to know what a regex would look like for:
*
*only whole numbers
*only numbers with less than or equal to two decimal places (23, 23.3, 23.43)
A: I. [1-9][0-9]* if the number should be g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8144526",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: WSO2 XML declaration in double quotes For WSO2ei 6.3.0, by default respond mediator is including XML declaration in single quotes
<? xml version=β1.0β encoding=βUTF-8β?>
were as we need the XML declaration as;
<? xml version="1.0" encoding="UTF-8"?>
| {
"language": "en",
"url": "https://stackoverflow.com/questions/52495508",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: AB Testing Framework Creation In one of my app, home page layout is loaded from storefront application written in java in back-end. This application produce layout in form of JSON having widgets and app consumes and render the layout.
I am assigned to write some AB testing framework. If there any opensource tool wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54142380",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Ordering of sed command breaks for unknown reason Input
File.txt
Start
1
2
3
4
Start
5
6
7
8
Problem
I was messing around with sed to work out different ways to get data from between the Starts.
One script i made was
sed ':2;h;$!N;$b1;/\n.*Start[^\n]*$/{:1;$!x;/5/p;x;s/.*\n//};$!b2;d'
Explanation of script
:2 #A ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32846315",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to get size of column in mysql table I'm trying to find out the exact size of one column within a table. PHPMyAdmin doesn't show size of columns, only the tables.
Any way I can get the size of the column?
Thankyou
A: If you are doing this from a script, you can run this after you have established a connection ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21772205",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "42"
} |
Q: For a 2 core machine, will it help to set 4 processes with pm2? Using pm2 with node.js app, 2 core machine.
pm2 start app.js -i 4
Will it help the performance, or won't help at all ?
Thanks !
A: It won't help performance, in fact it will be harmful. It's recommended to spawn N-1 workers, N being the amount of CPU ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58441797",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Parse mongo DB can not connect to server I'm trying to setup a parse server on my own machine with mongo DB on the same machine. Following this tutorial, https://medium.com/@dmathewwws/guide-to-building-your-own-parse-server-aad6568b743d
But I'm having some issues with Parse complaining not able to connect to my dat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45257581",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Tapestry url encodes tomcat's webapp path I'm using maven-tomcat-plugin to deploy a tapestry application on a tomcat6 server. The deployment process worked fine, but now I need to deploy it multiple times using different paths for production/development/testing/etc. environments, this is one by using maven profiles.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12977429",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to emulate a mouse scroll for the current window opened? I'm currently trying to emulate a mouse scroll event on the current window opened.I'm implementing it using setscrollpos() function in visual C++.
SetScrollPos(hwnd,SB_VERT,0,TRUE);
UpdateWindow(hwnd);
How does one pass the name of current window... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19082799",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Set session in Invision Power Board After lots of efforts we found something for IPB remote login, but it's not working correctly. We are able to fetch member information but not able to set this member in session.
Please help us to the set session for IPB.
Here is the code:
remote_login.php
<?php
$_SERVER['SCRIPT_F... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36290360",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Determining #Buckets for Hive's Bucketed Join I have multiple tables Table A, Table B, and Table C. I want to be able to use Hive's bucketed map join. I am aware that buckets for A, B, C should be multiples of each other.
Is there a general rule on estimating the required #buckets while creating the tables so as to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23039479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to debug breakpoints in multithreaded applications tested with JUnit? Testing a multithreaded application with JUnit5, the automated tests run just fine.
But in manual debugging, the environment misbehaves, and I would like to know how to get it to act as it should.
IntelliJ (using the Java VM + its debugger) h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66660970",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: IAM Role Doesn't trust Comprehend Medical service principal I am trying to create an EntitiesDetectionV2JobRequest in C# and I can't find a DataAccessRoleARN that works.
The code I am using right now is:
StartEntitiesDetectionV2JobRequest request = new StartEntitiesDetectionV2JobRequest()
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65497406",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In node.js How do I get the protocol of a request object? const URL = require('url').URL;
const myURL = new URL('https://example.org/foo');
console.log(myURL.href); // https://example.org/foo
console.log(myURL.protocol); // https:
console.log(myURL.hostname); // example.org
console.log(myURL.pathname); // /foo
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42265008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: how to make sure a port is open on listening and not in use? is there a cmd to find out if a port is open on windows for listening and no other processes, users or applications are using it? I have tried net stat commands but I cannot make sure I'm not breaking any other processes by using a port.
A: netstat -a on ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62348407",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: NoMethodError in UsersController#show / undefined method `key?' for nil:NilClass I've encountered an unexpected error while following Michael Hartl's Rails Tutorial. It had been smooth sailing.
I first saw that I was getting a different "Action Controller: Exception caught" error than the Tutorial following the comp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12791545",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Single or Double Pointer for Struct pointers I was trying to write some code to check the function of pointers for struct pointers when calling a function.
I tried using single pointer for tree or linked list but found that normally if I write a void function and head or root is not global it is giving me segmentati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71292248",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why does Java (on one particular installation) think I'm self-signing? On one particular machine (Windows Server 2012R2 with current updates and JRE) I'm getting the classic "Your security settings have blocked a self-signed application from running" error. Obviously I can get around it by making my launch site (wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27992275",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Any disadvantages of using Objective C objects / types in a C++ class (.mm file)? Are there any disadvantages (performance or otherwise) to using Objective C objects within a C++ class with Objective C++ files? For example, the difference between using Objective C types such as NSString directly like so:
class Hello... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19482437",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: repeated data in json response spring boot I have this SQL query
@Query( value = "select tc_users.id as userid,tc_devices.id as deviceid, tc_devices.name, tc_devices.lastupdate as hora_fecha,\n" +
"tc_positions.speed as velocidad, tc_positions.latitude, tc_positions.longitude, tc_positions.devicetime\n" ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75013131",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to filter duplicate rows based on a condition in tsql? I have an employee table with duplicate records consisting of contract to hire or rebadge details.
FullName
Status
Current Position
John Doe
Inactive
Finance Analyst
John Doe
Active
Finance Manager
Mike Wood
Active
Project Manager
Mike Wood
Ina... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69432043",
"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.