text stringlengths 15 59.8k | meta dict |
|---|---|
Q: How can I populate this 2d array with values from a char array So I have a grid that is 6 by 7
char[][] grid = new char[6][7];
And is populated with blank spaces using this loop:
for (int row = 0; row < grid.length; row++) {
for (int col = 0; col < grid[0].length; col++) {
grid[row][col] = ' ';... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74130838",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why does the mongo shell work without mongod server being explicitly run? Running MongoDB Shell v-3.2.8
I've noticed that articles and tutorials always mention to run the mongod server before running the mongo shell.
However, when I skip the first step and simply type mongo into my terminal, the mongo shell works w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39988477",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: "Unable to connect to server" error while attempting to get street address by entering latitude and longitude this is my code to return address for providing latitude and longitude of a place.
public string GetLocation()
{
HttpWebRequest request = default(HttpWebRequest);
HttpWebResponse response = null;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22854111",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Google Static Maps With Traffic and Public Transport Overlays I use the following to get a png image of the location I want:
string.Format(
"http://maps.googleapis.com/maps/api/staticmap?center={0},{1}&zoom={2}&size={3}x{4}&maptype={5}&sensor=false",
latitude,
longitude,
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9298326",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Kubernetes volume snapshot Vs. sql backup? I am running database inside Kubernetes pod. i am planning to run K8s job to take automatic backup of databases from pod.
There is also i can write shell script to take snapshot of volume(PV).
which method will be better to use? in emergency which one will save time restore... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54820956",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Insert an array into MySQL using LabVIEW and Workbench I am running an experiment and want to log a double array of 500 values to a MySQL table using LabVIEW. The amount of results will vary per test, and may be up to 2,000 but usually 500.
Firstly, I am instantiating a database. I am thinking of setting the colum... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37456594",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: model name to controller name How can I get the controller name out of the object if I don't know what the object is?
I am trying to do:
object.class.tableize
but Rails says:
undefined method `tableize' for #<Class:0xb6f8ee20>
I tried adding demodulize with same result.
thanks
A: object.class.to_s.tableize
A: F... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1631577",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Ball arithmetic vs interval arithmetic What are the advantages of ball arithmetic (Arb) over interval arithmetic (MPFI)?
In other words, what are the advantages of representing an interval as [center, radius] over [left, right]?
This is not about particular library (Arb vs MPFI), rather it is about advantages of a p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53123151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: SSIS - Loading Japanese Double byte data from DB2 to SQL Server 2017 is giving conversion error I am trying import data from DB2 which has double byte Japanese(1027) data into SQL Server 2017 using SSIS
Tried using data conversion before inserting data "932 (ANSI/OEM - Japanese Shift- JIS)". Tried using Unicode stri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56478750",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: c# console application run matlab function I have some code written in Matlab however I wish to call this code from a C# console application.
I do not require any data to be returned from Matlab to my app (although if easy would be nice to see).
There appears to be a few options however not sure which is best. Spee... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29941192",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Gradle project sync failed after Android-Studio (3.1) update After an update I made on 27-03-2018, my gradle sync is failing.I am getting the error
Could not find org.jetbrains.kotlin:kotlin-stdlib:1.1.3-2.
I am posting my gradle files below. I have tried cleaning and rebuilding the project, but it is still not wor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49506307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: What is the syntax for the input for a def function with multiple nested functions? I'm learning Python right now and I am just trying to get to grips with all of the syntax options.
Currently, the only thing that I can't seem to google up is what to do if I for some reason want to define a function which contains ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54312700",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Installing Glassfish to work with Eclipse I am stock here with glassfish configuration at Eclipse.
Take a look:
The finish button is disabled. What should I do here? I am pointing it to the directory in which I have installed glassfish. Plz help.
A: I think the problem might be that you were trying to register GF... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10924036",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Decode a special character...? I am pulling through the field item_name from a database. It should read : "Reminisce Basic £11.99 + Card £4.99 + Free"
But when its coming through the £ signs are coming out as � is there a method to decode this to at least make it look like a £ sign?
My code is as follows :
<?php
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8152587",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Arrangement properties in WPF styles Is it normal to store Alignments, Margins, Paddings and other arrangement properties in styles?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/13524347",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Get Woocommerce product reviews via rest api I tried to get product reviews with rest api but I got an error woocommerce_rest_cannot_view
https://example.com/wp-json/wc/v3/products/reviews?product=ID
I don't know where is the problem
A: In some how it was an issue on woocommerce api
I edited the class-wc-rest-pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59228477",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Object of class [org.jongo.bson.RelaxedLazyDBObject] must be an instance of class com.mongodb.BasicDBObject I'm trying to setup tests with Spring Boot and Mongo Embedded (JHipster, Flapdoodle).
In general it works. I can see database in Robomongo with created test collections and objects (migrations using Mongobee).... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38368872",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Backbone trigger event after custom function possible? Excuse my backbone i'm not an expert, Must execute function Show absolutely and only after ResetQuestions
ResetQuestions:function () {
//Great Code Here
}),
I tried this:
initialize: function () {
this.on("Show", this.Show, this);... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25971445",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Pentaho SDK, how to define a text file input I'm trying to define a Pentaho Kettle (ktr) transformation via code. I would like to add to the transformation a Text File Input Step: http://wiki.pentaho.com/display/EAI/Text+File+Input.
I don't know how to do this (note that I want to achieve the result in a custom Java... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34004353",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to access kubernetes CRD using client-go? I have few CRDs, but I am not exactly sure how to query kube-apiserver to get list of CRs. Can anyone please provide any sample code?
A: my sample code for an out of cluster config
var kubeconfig *string
kubeconfig = flag.String("kubeconfig", "./config", "(opti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60764908",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Which of these is more python-like? I'm doing some exploring of various languages I hadn't used before, using a simple Perl script as a basis for what I want to accomplish. I have a couple of versions of something, and I'm curious which is the preferred method when using Python -- or if neither is, what is?
Versio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9114256",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how do you make display:table-cell width:100% - 270px here's my code:
<div id="banner" style="position:absolute; top:0px; width:100%; background:url('../../images/banner_repeat.jpg'); background-repeat:repeat-x; <!-- border:solid pink 1px; -->">
<ul id="banner_ul">
<li id="wrm"><a href="http... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9042274",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to get the geolocation location with best accuracy in iOS? I am using CLLocationManager to retrieve user's current location.It seems that the retrieved location is around 2000 feet away from the actual location. I have set the "DesiredAccuracy" to "kCLLocationAccuracyNearestTenMeters" but it didn't helped.
I thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24553438",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can limit the amount if values a user can input in Dash-Ploty component trying to limit the amount of inputs a user can enter in my multi-dropdown. In my code below, I have it set to 4 values MAX!
This code doesn't bring back errors, but it's not functioning like I want it to. I want the callback to stop users from ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64867063",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I globally configure RSpec to keep the '--color' and '--format specdoc' options turned on How do I set global configuration for RSpec in Ubuntu.
Specifically so, --color and --format specdoc stay turned on, across all my projects (ie every time I run rspec anywhere).
A: If you use rake to run rspec tests the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1819614",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "160"
} |
Q: How to fix Newtonsoft.Json assembly loading error? I'm attempting to load a pre-existing Umbraco CMS site into a Visual Studio project and am caught up in a bit of DLL hell.
Here is the error message I get when attempting to compile the site:
Could not load types from assembly Umbraco.Core, Version=1.0.5462.37503, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28547579",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Which Feature Selection Techniques for NLP is this represent I have a dataset that came from NLP for technical documents
my dataset has 60,000 records
There are 30,000 features in the dataset
and the value is the number of repetitions that word/feature appeared
here is a sample of the dataset
RowID Microsoft ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74973008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: What can be alternative metrics to code coverage? Code coverage is propably the most controversial code metric. Some say, you have to reach 80% code coverage, other say, it's superficial and does not say anything about your testing quality. (See Jon Limjap's good answer on "What is a reasonable code coverage % for u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1047758",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Why one facebook have two id Why one facebook have two id:
https://graph.facebook.com/1000059xxxxxxxx
https://graph.facebook.com/2392797xxxxxxxx
they are same facebook account, WHY?
A: Most likely one is the "real" (or "global") ID, the other one is an "App Scoped ID". See the changelog for more information: https:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29643698",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: java Send email with attachement pdf not working I've been searching about how to add pdf and send it in mail for a long time .. but all codes failed with me i finally tried this and it sounded correct for me but it's still showing error
here is my essay :
public static void send(String to, Document document) {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64091148",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: node const variable also be changed I want to protect the object and try const like below
const foo = {'test': 'content'}
foo // {test: 'content'}
foo['test'] = 'change'
foo // {test: 'change'}
I don't know how to protect the object like dictionary correctly, could anyone help me out?
thanks for your time.
r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36214978",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Find absolute path to a directory if given path to start search from (in a batch file) A user will give me an absolute path - say "C:\src" (passed into %1 in the batch file). Then, I need to find the directory entitled "SQLScripts" that is in some subfolder of "C:\src".
How can I find the absolute path to the "SQLSc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1956903",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Create a Timer to send HTTP request Periodically - Android I want to end HTTP request from a Android device to a web server and check a particular data of a database periodically (once a minute). I couldn't implement a timer for this.
Thanks
A: Try AlarmManager running Service. I wouldn't recommend sending request ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11667064",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: custom keyboard extension image copied but not paste automatically from keyboard i have created custom keyboard with image buttons. when click on image button its copied and paste to message box in any application. I have faced issue is image copied to pasteboard but not paste automatically. Once i have copy and cli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36499654",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQL integer range variable defined + PHP Is it possible to define a range of integers in SQL ? Something like this:
course_id | course_name | description | range/number
-----------+-----------------------------+--------------------------------------+----------------
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65979861",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to connect console application and Windows form application C# I put all of my input on my console application, and I like it this way. My question is, how can I fix example read input in the console application, and then do something with it in the windows form app? I want both of my applications running at the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16640009",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is Microsoft serious about XBAP? As a developer, can I count on XBAP? or is Microsoft slowly removing support in favor of Silverlight?
One of the selling points of XBAP is multi browser support (IE and Firefox).
However, the Firefox add-in for XBAP is not in the .NET 4.0 install.
I understand there was a security is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5575083",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What makes the action of this lwp program different between directly loading in commend line and using load procedure? I use guile 2.0.13 as my scheme interpreter and i wrote file 3.3.3.scm as follow:
(define lwp-list '())
(define quit-k #f)
(define lwp
(lambda (thunk)
(set! lwp-list (append lwp-list (list t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40993463",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Rails, RSpec: How to test, that a specific mailer action gets triggered I need to ensure that running an importer results in sending out an email.
This is what I got so far:
describe '#import' do
it 'triggers the correct mailer and action', :vcr do
expect(OrderMailer).to receive(:delivery_confirmation).with(or... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42551997",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is -p doing in bash regex test? I have this test in a bash script and, while I have some vague idea, I want to be sure what exactly is going on.
if [[ "$FLAGS" =~ -p' '+-?[0-9]+ ]]
I can tell that it is testing some regex on $FLAGS, but I am not sure why the -p is needed.
In general, I want to know what is th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19583262",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Fast iteration over vectors in a multidimensional numpy array I'm writing some python + numpy + cython code, and am trying to find the most elegant and efficient way of doing the following kind of iteration over an array:
Let's say I have a function f(x, y) that takes a vector x of shape (3,) and a vector y of shape... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27025788",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: making a model from table mySQL with PDO I am developing an application for fun, and I am purposefully NOT using any frameworks aside from mustache for PHP and JS, etc on either the client or server side of the modest application.
Each view has a table which holds all data used for each one. I wish to execute a quer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34145620",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: After building QT from source, theme color is white I successfully built QT from source on a virtual machine. I then compiled a small app. It built just fine, except that when I moved the executable to the host machine. It background color is white, not dark like the theme. This problem does not happen when I build ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27216724",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to protect PHPSESSID in php? I am really clueless on how to protect PHPSESSID. Does the value of session_id come from PHPSESSID? It would be disastrous if the session_id got compromised. Anyone have any ideas?
A: Here is the article from PHP manual that explains sessions security in PHP: link
Probably the most... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1226177",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Display Image using object (Iphone) Here is what I have:
smallURL:(@"bundle://image.jpg")
this line will display me a picture store in the local path, no problem everything works fine. Now I'm using an object because the name for my picture will be store in my database, so I want to use the line like that:
smal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1994501",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Solving multi-armed bandit problems with continuous action space My problem has a single state and an infinite amount of actions on a certain interval (0,1). After quite some time of googling I found a few paper about an algorithm called zooming algorithm which can solve problems with a continous action space. Howev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62810137",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Python unittest for paramiko ssh connection I wrote some python code that works great, now I'm tasked with writing tests for that code.
My team uses mock and pytest, but I haven't really been able to copy-paste and modify something useful.
I just need a kick start, for example here is a part of my code:
ssh = parami... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41472869",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to redirect back with errors in Laravel 8 inside an Ajax request When data.custom_input === "false" I want to redirect back with errors.
redirect()->back() is giving me this error inside the console: Uncaught SyntaxError: Unexpected number: cd988e2f-ba9c-4b66-97d9-618e776ae740:157. Which is my uuid I pass to all... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64638295",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Testcase error? Hi i am learning to write test-cases, I started small test-cases for small programs.Iam trying a program
require 'test/unit'
class YearTest < Test::Unit::TestCase
def test_hours(m)
p = Year.new
assert_equal(p.hours,m)
# assert_equal(p.hours,8784)
end
end
class Year
def hours(a)
d = 24
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/6916130",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: http outbound gateway not converting french characters I have my spring integration http outbound gateway something like this.I am using my own rest template for pooling connection with ssl.I was getting 500 with french character hence I am injecting both UTF-8 and supported media type to message converter.Now Bef... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35294158",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Converting double to int is giving unexpected results I was trying to find cube root of a perfect cube using pow function but the answers were unexpected (3375 = 15^3)
#include <bits/stdc++.h>
using namespace std;
int main()
{
double cb = pow(3375, 1.0/3.0);
printf("cb(in double) = %lf\n", cb);
printf... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51088348",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: ValueError: Must pass 2-d input. shape=(430, 430, 3) I want to save this as 3d array csv file with header as r,g,b but it is showing ValueError: Must pass 2-d input. shape=(430, 430, 3).
four_img_concat shape is (430,430,3).
import pandas as pd
import numpy as np
ans=np.array(four_img_concat)
headers=np.array(['r','... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70479421",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: java.lang.NullPointerException on twitter.showUser() I added screen names an string array and I want to populate other arrays with realnames,followersCount.When I login, occuring an nullpointerexception on line twitter.showUser(arrayKullaniciAdi[i]);Where I'm doing wrong?
Note:There isnt a problem on Login process.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26010774",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C: How come I can still access to an empty array? While playing around with arrays, and experimented with this program:
#include <stdio.h>
int main ( void )
{
int a[] = {};
printf ( "%d\n", sizeof(a) );
printf ( "%d\n", a[0] );
printf ( "%d\n", a[1] );
printf ( "%d\n", a[10] );
printf ( "%d\n", a[100] )... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29033829",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Invalid prospect email address at Pardot Salesfoce I am trying to create a prospect at Pardot- Salesforce from the python API with this format :
{'brand': 'brand1', 'platform': 'Platform 1', 'email': 'testexample+tn39@gmail.com', 'first_name': 'Test', 'last_name': 'User39', 'addr_country': 'United Kingdom', 'opt_in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61480704",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to display a sum of values in React? I have a time tracking project in React. What I'm trying to do is the following:
*
*in each project I have a form to add activities and time;
*I want to get the amount of time to be added and displayed at the end like a total - so if I have two activities, one with 2 hours... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68545514",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: why has_and_belongs_to_many adds class methods rather than instance methods? I have a couple of models
class Product < ActiveRecord::Base
has_and_belongs_to_many :categories
end
and
class Category < ActiveRecord::Base
has_and_belongs_to_many :products
end
Now why can't i say
prod = Product.new
prod.categories... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17016344",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to calculate the number of tasks created by an openMP program.? I am looking to find the number of tasks. How to get the number of tasks created by the openMP program ?
void quicksort(int* A,int left,int right)
{
int i,last;
if(left>=right)
return;
swap(A,left,(left+right)/2);
last=le... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56861078",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can't seem to find the solution when dealing with ABAddressBookRef I've a few 'EXC_BAD_ACCESS' in my code,
I tried to figure out what is the problem but I still don't know why.
Any ideas?
- (void)requestPermissionForContacts {
NSLog(@"requestPermissionForContacts");
[[NSNotificationCenter defaultCenter] addO... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20775678",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to create a set of two types in swift? I am new to Swift and SwiftUI.
I have two structs:
struct SongModel: Identifiable, Hashable {
let id: Int
var path: String
var artist: String
var title: String
var genre: String
var sample_rate: Int
var bitrate: Int
var duration: Int
var ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62512848",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Get user username/email after webapp SSO authentification (Azure WebApp) I have an Azure Webapp running a Docker container (with Python & streamlit). I have secured the access to this webapp by adding a Microsoft SSO allowing only users from my organization to access the application.
On top of this, I would like to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69886591",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: XQUERY: Querying the output of query multiple times with different parameters I have a lot of XML files and I need to output the file names based on user-defined input from the command line.
Here is a simple example of XQuery which captures the essence of the problem.
File1.xml
<?xml version="1.0" encoding="utf-8"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49940194",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: User doesn't update Laravel Update Method:
public function update(UserUpdateRequest $request, Users $uzytkownik)
{
$this->authorize('update', $uzytkownik);
if ( $uzytkownik->update([
'birth' => $request->birth,
'sex' => $request->sex,
'about' => $request->abou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45483099",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to stop auto commit in EJB-JPA tx I have a stateless EBJ and I am using JPA to manage database interactions. Below is my scenario where I need your help.
*
*EJB received the call to fetch data (getCustomer()).
*GetCustomer is used to read Customer entity from database using JPA.
*The customer entity is havi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53870346",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Automatically update plugin versions in mutlimodule projct Is there a way to automatically update the versions of plugins for every module in a multimodule maven project?
Maven versions plugin can be used only to update project dependencies version, but not plugin versions.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/58186525",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Dynamic image loading in Processing.js I'm building something that uses processing.js to operate on JPEG images dragged from a users machine into a canvas element. Currently, it works like so:
canvas.addEventListener("dragenter", dragEnter, false);
canvas.addEventListener("dragexit", dragExit, false);
canvas.addEven... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9525621",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Image not displaying in browser from Django project I am trying out an ecommerce website where list of products are input in the admin section, everything works well aside the fact that the product image does not display in browser. Have check all the codes and everything seems ok. Displaying this message in my term... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75083123",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cannot connect to nginx server on fedora linux (digitalocean) I tried to set up nginx on a brand new fedora box on DigitalOcean. These are my steps
$ yum install nginx
$ systemctl enable nginx
$ systemctl restart nginx
However, it doesn't seem to work. I get the following output when running systemctl status nginx
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26808719",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Cannot update refreshed token in twilio programmable chat using react In twilio programmable chat, I used tokenAboutToExpire event to update the access token. The event triggered perfectly. After that I fetch the new token from API and updated the chatClient with the new token by using updateToken.
Once I consoled t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58825406",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Git submodule, subtree or simply nested git? Here is my directory structure
main folder (git repo 1)
subfolder 1 (git repo 2)
subfolder 2
I have a bigger project and I keep track of all changes in the main and child folders in repo 1. However, for subfolder 1 I have a common repo 2 with a co-author. An import... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73798298",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Setting silverlight to focus a control with some degree of reliability? I'm having some issues getting silverlight 4 to set initial focus on a control, the biggest issue is that if the control has not rendered focus is not guaranteed.
A: I have created a behavior and it sets the focus in the Loaded event which guar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8220991",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Type casting char array to char ** If I do this:
#include <stdio.h>
typedef char **arr2D;
char arr1D [5 * 10];
int main (void)
{
((arr2D)arr1D)[0][0] = '_';
printf("%c", arr1D[0]);
return(0);
}
I receive crash, which suggests undefined behavior.
Why can't I do this ?
A: *
*char arr1D [5 * 10]; - ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41660171",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Error with setting the value of excel worksheet Without going into too much detail, this is my first project. I am very new at coding and this may be a very simple oversight on my part. I am an engineer and I need to add some "custom properties" to over 1000+ CAD files. I am using excel to assign set properties to e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51958395",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to Save Html Formatted Text in Database Safely ? PHP - MYSQL I'm trying to develope a php cms. I just want to learn how to save an article with links safely in database. There are tutorials in internet but I couldn't find a tutorial for html formatted text. They always show for normal text.
Example HTML Code
<... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37635565",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Cannot get all the submenu items in winform in c# I have a winform with menu bar like this :
File==>Add==>New Project
File==>Add==>Existing Project
File==>Open
File==>Exit
Edit==>Copy
Edit==>Cut
Help==>View Help
Help==>About
I want to get the text of all menu items and submenu items.
I have tried... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33766276",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: A anchor as submit button with value This may seem like a duplicate question but I have googled and search stackoverflow how an a anchor tag would act like as a submit that would fit on the website that I am trying to do.
I have this code on my right panel navigation:
<div class="content clearfix">
<div class="left_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16796079",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: I don't understand what's wrong with my rules I had setup my rules in the RealtimeDatabase so that only people who created the content can read or updated it, but unfortunately the rules don't work like that.
I also tried various other rules with less security so the issue doesn't lie in my app.
These are my rules... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58421213",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Should Redis Sentinel Monitor Each Master in a cluster? Does it require sentinel to monitor each master in the cluster with a distinct service name, or just one of the 3 masters in the cluster?
My current config is 3 masters, 3 slaves, and 3 sentinel instances. Each instance of sentinel is monitoring each master. ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36313521",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Error installation extentions Reportico on Yii 2 I installed the extension reportico through composer and already web.php configuration file, but when I go into Reportico Admin Page error instead. The solution how ?
enter image description here
scrip web.php
<?php
$params = require(__DIR__ . '/params.php');
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38005036",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Objective-C Pointers > pointing to properties I have an NSInteger property of a custom class called 'estimatedTime', now, in my UITableView class I'm trying to pass this property as a pointer to a UITableViewCell. I can't seem to get it to work! I've tried the following:
NSInteger *pointer = sharedManager.tempTask.&... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5003158",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to delete previous folder with a variable name (Batch script) I have issue with Chrome update - after download update chrome dont delete and rename new files. After reload chrome it again want to relaunch for update.
I've tried to write .bat for resolve it.
I did some with batch script
- delete old chrome.exe a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58570181",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: VBA - Delete row, copy the rest and append down for multiple times and assign counter value to formula of a column in table I am very new to coding and VBA. Below is the code that i have so far.
The delete > copy > append part work fine for me. But i want to assign a counter value to the formula of a column in the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42966691",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: what s the different between selector > selector and selector selector? I was wondering which is the different between:
.myClass/DomElement .myotherclassinsidethatelement
and
.myClass/DomElement > .myotherclassinsidethatelement
the both select the myotherclassinsidethatelement class elements inside my .myClass/Dom... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21069523",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: create array from mysql query php I have a little problem that I don't understand. I have a db that has an owner and type (and more off course). I want to get a list of all the type values that has owner equal to the current user, but I get only two result
$sql = "SELECT type FROM cars WHERE owner='".mysql_real_esc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3415296",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to tell mysql to scan just recent one million rows I have a Myisam table with 15,000,000 rows, my current query is like this:
SELECT id, MATCH(title) AGAINST('$searchterm' IN BOOLEAN MODE) AS score
FROM news
WHERE MATCH(title) AGAINST('$searchterm' IN BOOLEAN MODE)
ORDER BY score DESC, id DESC
LIMIT 25
How... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49109579",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Boost Statechart: Return to Previous State I've got a state machine wherein if I enter a particular state, sometimes I need to have a regular transition to another state and other times I need to return to a previous state.
For example, having states A B C, say that transition S moves state A to C and from B to C. I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44289654",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ClassCastException in ServiceConnection.onServiceConnected(). Bound Services i try to bind a service to an activity. But i got the ClassCastException here:
pos.main.client.ClientBackground_Service.ClientBackground_Binder binder = (ClientBackground_Binder) service;
I don't really understand why i get this exception.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10618850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to handle downloads in QWebEngine? I know that QWebEngineProfile and QWebEngineDownloadItem are used in order to download something. But I don't understand how. I'm trying to use connects in order to achieve downloads. Here's my code
void MainWindow::handleDownloadSlot(QWebEngineDownloadItem *download) {
dow... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38812787",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get IPAddress using InetAddress in Android I'm having difficulty using InetAddress in Java for my Android project. I included the InetAddress library, however it never works.
The code is the follow:
InetAddress giriAddress = InetAddress.getByName("www.girionjava.com");
However all time show me:
Description R... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44182463",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: tableview does not resize after parent view resize I have tableview and several controls (text fields, buttons and labels) beneath it.
When keyboard shows up I can either reduce parent view height or slide it up so my controls are accessible.
That part works fine.
However I want to adjust tableview also, so I tried... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16615296",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Block Azure App Service Request with "wp-includes" in the URL I deployed an app service in Azure and I have a set of logs from late last night with GET requests for url.com/web/wp-includes/... All of the logs resulted in a 404, but based on my reading this is a type of malicious attack. Is there a way to block these... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74086992",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Automated way of converting Selenium HTML tests to JUnit? I'm using Selenium IDE 1.0.10 for Firefox on Mac 10.6.6. Our QA department has created some HTML tests for Selenium that I need to convert to Junit. In the IDE, I can do that by going to the File menu and choosing export. What is an automated/scriptable wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5951136",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Django centos server not receiving requests I just deployed my Django project to a local CentOS server for testing. The problem is that after I run my server like: 192.168.1.4 (server ip), and run in port:3001 and then I send a request from another computer on the same LAN this requests are not being received by th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55111498",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Intersect Spatial Lines in R I have the next spatial object in R.
library(sp)
library(rgeos)
poly1 <- structure(c(-3.25753225, -3.33532866, -3.33503723, -3.35083008,
-3.35420388, -3.407372, -3.391667, -3.254167, -3.248129, -3.25753225,
47.78513433, 47.73738617, 47.737938... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33924895",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to tell if a key on S3 has "reached eventual consistency" S3 is eventually consistent, which means that a listbucket operation may or may not see a file depending on, at the very least, which replica you happen to connect to. My understanding is, at some point, a key is sufficiently replicated (or replayed or i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60121177",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Spark SQL 1.5 build failure I've installed Spark 1.5 on Ubuntu 14.04 LTS.
When running build with command build/mvn -Dscala-2.11 -DskipTests clean package I get the following build error during project Spark SQL:
[error] missing or invalid dependency detected while loading class file 'WebUI.class'.
[erro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32656734",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: AWS Lambda connect via PG.js to RDS Postgres database (connection made, no timeout, but no database?) I have my lambda function is trying to connect to an RDS PostGreSQL DB. Since I use https://serverless.com/ to deploy the function (sets up my cloudfront) it puts the LF in a separate VPC from the RDS DB.
Not a big ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58919590",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Failed to find matching element please file bug When using the "Record UI Test" feature in Xcode, I was getting
Failed to find matching element please file bug
This was despite it working earlier in the same session. I was also getting timeouts on waitForExpectationsWithTimeout when I hand-rolled the code.
A: The... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34470354",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java EE RESTful Service field Injection Im having an issue deploying an application in wildfly which contains a RESTful Service that uses @Inject to inject a DAO.
THis is the error message in the logs when trying to deploy the application in wildfly:
Deploying /home/john/codebase/servers/wildfly-8.2.0.Final/standalo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27880258",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: gfortran generate dependencies on module files I want to use gfortran to generate suitable rules for a Makefile, with sources that use modules.
E.g., if in src1.f90
program prog
use module1
...
end program
and in mod_mymods.f90
module module1
...
end module module1
I want to generate a line like
src1.f90: mod... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55193843",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.