text string | meta dict |
|---|---|
Q: How to parallelize model training with PySpark I have a large Spark DataFrame (it doesn't fit in memory) that contains data for multiple devices.
For each device there are multiple rows, and the columns contain features and a target. Here is what it looks like with dummy data:
| DeviceID | Feature 1 | Feature 2 | Ta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589764",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Howto get an OAuth token from azure using client secret for a specific scope using MSAL I'm using the following MSAL code to aquire an OAuth token from an azure enterpise application using a client secret.
string authority = string.Concat(AzureAuthorityInstance, TenantID);
appConfidential = C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589765",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android 10 wifimanager.getNetworkSuggestions() is crashing the app I have android 10 device, in which i am trying to get the existing network suggestions if any, so i am doing the code in that way:
val existingPasspointSuggestions = wifiManager.networkSuggestions
.filter { wifiNetworkSuggestion ->
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589766",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Resize Controls using default, Dock, Anchor and AutoGrow. C# .NET Let's say I have this layout
Depending on the form size, I want to make the controls grow/shrink while maintaining the base structure. Like this:
In the example, the black area should grow bigger while the white area should stay the same when you gro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589767",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP 7.3 PHP Deprecated: Function create_function() is deprecated I updated my php vesrion from 5.6 to 7.3 and now it showing an error
PHP Deprecated: Function create_function() is deprecated in magiczoomplus/magiczoomplus.module.core.class.php on line 78
my code is given below
'restore-speed' => create_function('&$... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589769",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: My dockerignore file is not saving anything I have a .dockerignore file and I want to exclude node module node_modules.
Whatever I type in the file and I save, it does not save.
What could be the issue?
A: *
*Looks like you have to set proper chmod and chown for this file and add it to repository via git commit.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589775",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Move element in array and rerender I need to move one element of the array down when pressing the "down" button and make a rerender
const Test = () => {
const [arr, setArr] = useState([1, 2, 3, 4, 5, 6, 7, 8, 9]);
const array_move = (arr, old_index, new_index) => {
if (new_index >= arr.length) {
var k... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589777",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How probale are questionsmarks in URL-calls from external sources? How probable are question marks in URL-calls from external sources?
We need to remove tracking-parameters from external URL-calls (example facebook:?fbclid=IwAR3zkg-...). Our own URLs look like this: example.com/hello?article_id=123.
Our goal: we wan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589778",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JS can reference a function variable after calling the function from outside its scope? I noticed that when declaring a variable inside a function then trying to access this variable's value from outside the function's scope, i got a RefereceError but if i called this function and then tried to access the same varia... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589782",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In Unity how to save an image in a Google Photos public album I have a screenshot, and I want to put it in an already created public album on Google Photos. Is there a way to do it?
A: To start there is no special Google photos API for Unity.
Now on the google photos documentation says you can't upload to an alread... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589784",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can i open all swagger api in one chrome tab? I'm working on Visual studio c# ASP.NET 6 and I work on several API, when I start my application, all theses API (swagger) are opening in different tabs. What I want is, when I'm starting my app, i want all the swagger opening in the same tab and not as many as I hav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589785",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: My game hitches when switching E-Cores and P-Cores, on A16 cpu My game usually run on E-Cores on A16 cpu, and running P-Cores for A14 with test.
But when I running some thing inter frames, it will switch to P-Cores, only those frames.
But when the switch happens, hitches appeared.
Is there some thing I can do, to us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589786",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Error while installing Xdebug on MAC Intel I'm trying to install Xdebug on my Mac. I'm getting the same error when using pecl install xdebug OR arch -x86_64 sudo pecl install xdebug
I've tried to re0install PHP but it's not working for me.
Password:
downloading xdebug-3.2.0.tgz ...
Starting to download xdebug-3.2.0.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589787",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Modify given regular expression for German mobile numbers I have a regular expression (regex) which matches German mobile numbers.
The expression looks like this:
[^\d]((\+49|0049|0)\s?(1|9)[1567]\d{1,2}([ \-/]*\d){7,8})(?!\d)
It covers number formats like this and many more:
+4915368831169
+49 15207955279
+49 17393... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589788",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to have different config when running a worskpace into WSL2 or Windiws I used to switch from Windows and WSL2 for a same workspace.
Sometimes I want to set some custom config for this workspace when running on WSL2, which not be shared with Windows execution (like go.gopath setting for instance).
Is there any wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589791",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to pass perl EV::Loop object to your C library I need to pass loop object which is contained in perl EV::Loop module (EV::default_loop) to my C library.
I have a test library written on C that has a function test that takes struct ev_loop* object as input (EV_DEFAULT).
ev_lib/EvManager.h:
#pragma once
#include<... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589795",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Trying to create a username and convert user input to be lower case only, I'm only a student, how am i messing up for str.lower() command? Username needs to be lower case only and no matter where i add .lower I'm not getting a lowercase value returned or on the csv file I've printed to.
Thanks in advance for any hel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589796",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: write a query to select of all the employees who are managers table schema
salaries
emp_no, salary, from_date, to_date
dept_manager
emp_no, dept_no, from_date, to _date
TO get Average salary of all the employee who are managers
A: The sql code is:
SELECT AVG(salary) AS salary_avg
FROM dept_manager
INNER JOIN salari... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589799",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Use POST request rather than GET to get data Is it something evil to use a POST route instead of GET to retrieve data?
One of my route has 14 variables. It's really complicated to use a road without a body. So I wonder if it's a use case to use a POST route in this case.
If not, is there another method?
Exemple GET ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589803",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: autopytoexe giving me no module found cryptodome in a .exe file I created I have an issue when I create a .exe file with autopytoexe. My command is
`pyinstaller --noconfirm --onefile --console "C:/Users/user1/Desktop/test/script.py"
the problem is when I run this .exe I get
Traceback (most recent call last):
File ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589805",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to upload json file to Azure? I am trying to PUT a Json file to the Azure cloud.
No matter what I do, I get a 201 (ok) response from the server, but the file is NOT uploaded.
I can read the list of files on the server but that's it. I don't have access to the Log to see the actual error.
function ReadBytesAsStre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589806",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unity-SRS player does not work after publishing I publish in unity and play it on the web. If the player starts before the publisher, the video and audio can be obtained, but the video disappears after refreshing the page. If the publisher starts before the player, the receiver only has audio and video cannot be obt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589807",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I hide code in cells instead of only blocking the cells for other users? I programmed quite a complex Google Sheet which we would like to offer to the public. There has been quite some work put into it and of course, I blocked the cells that people could damage by accidentally changing the code.
Now, I would ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589809",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ExcelJs with nestJs error: Cannot read properties of undefined (reading 'Workbook') I'm trying to set up a simple excelService with excelJs in nestJs but setting the the workbook I have this error:
const workbook = new Excel.Workbook();
^
TypeError: Cannot read properties of undefined (reading 'Workbook')
here's my ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589811",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: convert data rows in panda dataframe I have a panda dataframe wherein the data has this format
data = {
"Born": ['November 9, 2000 (age22)', 'July 15, 2001, (age 21)'],
}
I would like to transfer this data to only show the age as int, e.g.
data = {
"Born": [22, 21],
}
First of all, is that doable and if so, ho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589813",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Three-way join with Tumbling window on Apache Flink I have a single source stream that contains 3 different types of events. For each event type, I need some of their fields.
Then, I need to emit an enriched result of a new event type, made of the parts of the other 3 events
source (A, B, C) -> sink (D)
There is a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589817",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CoreML - huggingface Optimum: Convert BetterTranformer model - no support for _nested_tensor_from_mask I optimized a huggingface model with the BetterTransformer framework using huggingface optimum.
Here the simple code snippet:
from transformers import AutoModelForSequenceClassification
from optimum.bettertransform... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589819",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Freezing Majority of Layers Except Specific Layers in PyTorch I have a model and I trained that on a dataset. But I changed its last two layers and I want to do a fine-tuning. In other words, I want to freeze all the layers of the model except those two layers (self.conv_6 and self.sigmoid)and training the model on ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589821",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Swagger - dynamic default value I would like to get the default value set for Swagger UI. The value should be taken from appsettings.json as it might get changed for different environments. How would I do that?
Have this:
app.MapPost("/route", async (string something) => await Task.Delay(0));
What I expect:
somethi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589823",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Content Grouping (not set) issue in Google Analytics 4 I tried the content group in Google Analytics GA4 By using the data layer. It passes the all pages of my website in mentioned different category pages like the home page, product page, Atricle page and purchase funnel pages, etc. But the problem comes to the GA4... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589828",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to create a new pandas dataset column which increments its value based on the value in a different column? With the pandas dataframe below (which is a set of results, per team, ordered chronologically)
Team
Result
TeamA
Win
TeamA
Loss
TeamA
Win
TeamB
Loss
TeamB
Loss
TeamC
Loss
TeamC
Win
Tea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589830",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to Reduce Flutter APK size at least to 75% of the actual size? Please what is the best way to reduce a Flutter app to the least size. Most things were simple integrations, then a Credit card payment gateway, nothing else, and its 80MB how can I reduce it to the least size , say 50MB or 40MB
Sought several things... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589832",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Downloading charts only using D3 library? Can somebody help me with this.
I am relatively new to D3 and I want to know if D3 supports chart exports as images or pdfs or any other format that can be used as screenshot.
Or do I have to use another NPM library that can export my d3 graphs.
Here I have created this st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589833",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Nx generator how to test generated angular services I am using nx generator to create an initial angular service folder with all the services from a Swaggerfile, using nx g swagger-generator. How would I, immediately after these services have been created, test the service to see if it's functional? (without having ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589834",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Create Nuget Packge Suppots Dependecy Injection and use Interface to be implemented I am trying to create a weather Nuget package that can be used in any .net
core project, the library should give me the current weather
for a specific city that I chose in Celsius or Fahrenheit.
I will use the weatherapi.com to get t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589838",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to deal with weak dylibs and file-type bundle files when linking with ld linker? everyone:
The problem I am asking for help is like this, I get an IPA, macho has bitcode, I need to encrypt the plaintext in the bitcode and recompile it into an executable file and package it into IPA. I have already dealt with the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589839",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: spring integration flow dsl performace is slow executing while reading from pubsub and saving into postgres Below is the code that is reading from pubsub topic.
public IntegrationFlow processEvent() {
return IntegrationFlow.from(Consumer.class, gateway -> gateway.beanName("onMessage"))
.t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589840",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Show parent.parent combobox from one2many model Odoo for example I have three model :
class state(models.Model):
_name = 'odoo_school.state'
_description = 'State Reference'
name = fields.Char(String='Name')
district_id = fields.One2many('odoo_school.district', 'state_id', string='District')
class distri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589846",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Maven surefire debug taking too long to start debugging in eclipse I am using maven surefire debug plugin to debug the unit tests. Till yesterday, it used to take almost 1 min for the debug control to reach eclipse after I trigger it from the terminal. However, only for one of the repositories, it has taken starting... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589847",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: prevent Hibernate from using table aliases in subselect via @Formula I have this definition in my Entity
@Formula(value = "(select coalesce(sum(v.value::float),0) from jsonb_each(urlaub_korrekturen) as \"v\")")
private Float urlaubKorrektur;
Hibernate generates this select query which would work perfectly if I re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589849",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Git/VS Code - Tool to analyse changes across big project When having a big code-base (maybe even monorepo), what is the best way to monitor changes and affected parts of the code by those changes? For example when fixing bugs before app release I've changed utility method formatDate which is a dependency of many dif... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: About scikit-learn: invalid syntax I try the code from Scikit-Learn Decision Tree: Probability of prediction being a or b?
but, it gave syntax error, this is the code:
from scikit-learn import tree
# https://stackoverflow.com/questions/47251594/scikit-learn-decision-tree-probability-of-prediction-being-a-or-b
#load... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589851",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Jenkins plugin - Docker The current version of Jenkins is 2.332.2, and the Docker plugin version is 1.2.6 (https://plugins.jenkins.io/docker-plugin/).
I can't lift versions to the new versions if you offer it as one of the solutions.
On Jenkins master in the Jenkins log that has the following error:
Feb 27 13:15:22 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589854",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to create a 2 stacked specific column layout in Flex at a particular breakpoint? I am trying to use Flex to change the layout of my grid at a particular breakpoint. I have attached what I need it to look like at 900px and above.
I just can not figure out how to get the columns to align and stack under each other... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: RenderInkFeatures object was given an infinite size during layout This is what show up on my terminal:
The following assertion was thrown during performLayout():
RenderCustomMultiChildLayoutBox object was given an infinite size during layout.
This probably means that it is a render object that tries to be as big... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589858",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: apiUtilituy.isPublished Junit I have one ApiUtility Java Class with Boolean method and want to write the JUNIT for this.
I am trying like below.
My Java Class is bleow.
public static boolean isPublished(ResourceResolver resourceResolver, String path) {
logger.info("Inside isPublished");
Resource resource = re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589861",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I free memory in the running Memgraph instance? I know that by setting the --memory-limit flag in the Memgraph configuration file (/etc/memgraph/memgraph.conf) I can set the maximum amount of memory that a Memgraph instance can allocate during its runtime.
I've limited the amount to a pretty low value since ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589864",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Ternary contours with plotly in R Ternary contour plots w/ interpolation etc. are quite easily to create in plotly with Python.
Though, the main functionality of ternary plots is already available for plotly in R, I am missing functionalities for interpolation, etc. to create plots like below:
Of course, there are ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589867",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Generate advanced composite type from string literal array Based on a nested object and an array of string literals, I would like to generate a composite type, which contains the keys listed in the string literal array concatenated with their subkeys.
Here is an example:
const data = {
foo: {
a: 1,
b: 'b',... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589870",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Customized SetAdapter returns empty I am making a To Do list with a checkbox in Java on Android Studio. I've been at this code for a while now and can't seem to figure out the issue. There are no visible errors but the app crashes when I open this activity.
Here is the ToDoList.java activity
package com.example.spl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589873",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Add every n number to the previous one I am trying to solve this problem in python. The problem is the following:
I have a list of integers that looks like this
[5, 12, 4, 6, 8, 2]
The goal is to make an addition every two number, and add them to the first two. For example,
The first two numbers are 5, 12. For the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589877",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Optimal InfluxDB concept to read and write data I am using an Influx time-series database to archive tags from a controller. The data in the database is queried using cacheable queries and displayed on a dashboard. The tags are stored in the InfluxDB as follows:
Build up in influx
There is only one bucket (mlog) and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Angular 15: Custom decorators on Properties not working I follow e.g. Angular Handbook and define
export function LogClass(constructor: Function) {
console.error('LogClass decorator executed for the constructor:');
console.log(constructor);
}
and on my class
@Component({
selector: ...
templateUrl: ...... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589879",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can not run an OpenVino model using OpenCV I have built OpenCV with OpenVino. And I have code which has to run an OpenVino model:
#include <iostream>
#include <vector>
#include <opencv2\opencv.hpp>
using namespace std;
using namespace cv;
using namespace dnn;
void TestOpenVinoModel()
{
// Another model
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589882",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Constraint Optimization with constrOptim I have a production function which want to maximize:
production_function <- function(L, K) {
;K*L+L
}
And there is a constraint function which is related to the total cost of production
constraint_function <- function(L,K) {
2 * L + 1.4 * K
}
In this case I want total ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589883",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: OracleCommand Parameter Exception ORA-02017 I want to execute this sql statement against my db within my c# application:
public bool PerformOracleSql(int value)
{
string SetSessions = @"ALTER SYSTEM SET sessions = :newvalue SCOPE = spfile";
OracleCommand OraCmd = new OracleCommand(SetSessions, Connection);
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589888",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Not able to reduce spacing between legend labels If I place the legend below a plot made with ggplot2 via theme(legend.position = "bottom") I can't fit all the legend labels on the plot if they have around 20 to 25 characters. For some reason I can't reduce the space between the legend items, even if I use theme(leg... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589895",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Wrap query with parallel using Querydsl I’m using Oracle and QueryDsl version 5.0.0 .
I have this oracle sql query:
SELECT /*+ parallel(2)*/ *
FROM (
WITH temp AS (
SELECT name1, name2 FROM names
--Dynamic filters are added here from client)
SELECT name1 AS name FROM temp
UNION ALL (SELECT name2 AS name FROM temp)
)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589902",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Bitcoin daemon submitblock method input parameters and format My question is about input of submitblock function of Bitcoin daemon.
*
*What parameters should be in the first input of this method?
I see this site and output of blocktemplate method ,but I did not understand what parameters should be in the input. Fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589905",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to check single checkboxes in a listview builder flutter How do I use checkbox correctly in a listview in flutter, with the below code once i check one of the boxes the all checkbox in the listview gets clicked instead of the single one i clicked.
ListView.builder(
shrinkWrap: tru... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589906",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I get the first element in a rolling window on Pandas data frame I have the following data structure:
and what I'd like to do is for each location, date to determine what was the spending exactly n days ago.
I am trying with a rolling window here but for some reason, when I create the window, I don't know ho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589907",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: wpcf7_add_form_tag not working on Hostinger I have the following code which works great on the staging environment but doesn't work on the live website (different hostings). The [current_url] tag in the CF7 form is not rendering at all.
I tried changing the PHP version but it doesn't help and there are no PHP errors... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589910",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ODBC connection issue to load data. Copy Activity source not working I am using odbc connector to connect to AS400 DB2 system. I am fetching metadata from copy activity and it is throwing the following error.
Failure happened on 'Source' side. ErrorCode=UserErrorOdbcOperationFailed,'Type=Microsoft.DataTransfer.Commo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589911",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: sum loop price and quantity input rows in javascript i have image like this
i want to sum each rows Amount calculated from price * quantity, but when i input price and quantity each rows is form amount not filled
i try loop each rows and get value like this
function total_amount(){
var table = document.getEleme... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589913",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can i find current index in array I have numbers from 1-12
These can be rotated as well e.g. 8,9,10,11,12,1,2,3,4,5,6,7
Now i have another number from 1-12 that represents month number
How can i get correct index for this.
E.g.
Array has 12 elements
k = 8
input 8 -> should map to arr[0]
input 9 -> should map to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589915",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-5"
} |
Q: Format date and time but exclude "today date" in Swift? My code:
let dateFormatter = DateFormatter()
dateFormatter.timeStyle = .short
dateFormatter.dateStyle = .short
dateFormatter.locale = .current
lblDateTime.text = dateFormatter.string(from: date)
The problem is I need dateFormatt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589919",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C# Write Csv file columns from string lines so I am writing a csv file from a text file but there is many split formats that I am not sure how to figure it out
here is an example from the text file data
{Sll} 2022 Oct 04 14:55:06.838 [i] [Column 2][column 3] Loading text...
{Sll} 2022 Oct 04 14:55:06.838 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589920",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Problem with background-image. And its size: content property
.section--7__photos {
height: 50vw;
max-height: 70rem;
margin: 0 8%;
background: url("https://ableton-production.imgix.net/about/photo-8.jpg?crop=right&dpr=1.5&fit=crop&h=250&ixjsv=1.1.3&q=66&w=417") no-repeat top 0% center/ contain;
}
.section-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589921",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unity Netcode - ServerRPC only works when called from host I have a Prefab I am trying to spawn from clients. I previously had a lot more code than what is displayed below but I have broken it down to the bare minimum to solve the problem, however I can't seem to figure out the error.
*
*The prefab is in Network M... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PhpStorm Structural Search I have a bunch of li tags in PHP Blade templates that I want to convert to div tags and change the class name. Search/Replace would be an easy solution but it will only change the opening tag, not the closing tag.
Regex can be dangerous to search/replace over an entire project.
So I found ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589925",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Making a wmbus application running on a cc1310 launchpad I am making a wmbus application that should run on a cc1310 launchpad. The device should be able to receive 868Mhz t1 and c1 packages. TI have a wmbus software stack from stackforce which is not really good, so i would like to know if you can implement this di... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589926",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why can an atribute have a .__str__()? I was coding a class and a teammate did a peculiar thing:
class Dog:
def __init__(self, hunger, size, cute):
self.__hunger = hunger
self.__size = size
self.__cute = cute
def __str__(self):
data_1 = self.__hunger.__str__() # Why is this ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589927",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: How can I send data in Jetpack compose between screens? How can I send surveyToken here to ResultScreen?
surveyScreen(
moveToResult = { surveyToken ->
navController.navigateToResult(surveyToken)
}
)
And here's the navigateToResult function.
const val resultRoute = "result_route"
fun NavController.n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589928",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Column in mui-datatable automatically hides on clicking edit icon I am using mui-datatables to display users data and I have set firstName column display: false. On changing display to true in viewColumns, it displays the hiddenColumn(firstName) but if I click on edit icon in actions column it hides the default hidd... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589933",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Angular datatable - adding data to array I use this datatable. plugin: https://l-lin.github.io/angular-datatables/#/welcome
here is the html code of my table:
<ng-container
*ngIf="{
entries: entries$ | async,
club: club$ | async
} as data"
>
<div
class="table-responsive"
*ngIf="data.entries?.le... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589937",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Node.js execFile(): Is passing password as argument secure? Is it safe to pass a password as user input to the execFile() command?
Example:
const process = await execFile(
'somecommand',
['--password', passwordFromUser, '--username', userName],
);
I am aware this does not use a shell (sh) to execute the command... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589940",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I deny the access to the static files of the corresponding course which is not purchased by the user? Django I'm working on an Udemy clone. Currently I'm working on the functionality of showing the details of course to the people who didn't purchase the course and showing the details, lessons and videos to th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589941",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to make dotplots importing data from excel file I want to make dotplots in python similar to the figure shown. This dotplot has circles of different sizes and colors to represent the data. I am not able to find any resource to make this kind of plots.
https://academic.oup.com/bib/article/20/6/2316/5077112?login=... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589942",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: php curl within foreach within foreach not working my code works but when ever the second curl_exec (curl2) is ran the foreach parent loop stops.. any tips? thank you in advance
$url = "https://www.example.com/uri/etc/hello";
$n = 3;
$url = preg_replace("~\/(?!.*\/)~", "/page-/", $url);
$start = range(1, $n);
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589944",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: How to add errorbars to a grouped bars? I am trying to create a graph like the one below. However, I cannot find a way to present error bars for such a graph. I tried to use layer to overlay the errorbars but I was not able to make them work for grouped bars.
{
"data": {
"values": [
{"test": "Arithmetic"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589946",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using environment.ts value in proxy.config.mjs file + Angular At work we are trying to use proxy.config.mjs (located in src folder) as per Angular Docs to talk to back-end API in Dev mode but we want to set target value in this proxy conf using environment.ts file.
Have followed all default configurations to set-up ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589953",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Spark Scala DataFrame to csv string I have a Spark DataFrame that i know, fits in memory. I want to generate a csv representation as a string on the driver.
val df = // Some DataFrame
val csv = // String Representation
I know that I can do
df.repartition(1)
.write.format("com.databricks.spark.csv")
.option("he... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589955",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Video or iframe tag not working properly when binding it's src I have a website where I'm binding the video or iframe tag to the youtube link I'm getting from API. It only works properly when I'm not binding the link.
This is how it is looking
This is what i want
I'm using vuejs 2.
This is the code I have. I'm loo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589956",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to authenticate with Microsoft Graph API in backend jobs I have a scenario in which users have a calendar on my Laravel web app. As a feature, I’d like to offer a sync between the website app calendar and their Outlook calendar. Now the plan was to add a button where users can authorize and then I take it from t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589957",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Query Importrange doesn't import every cell I'm using Google Sheets and want to import every cell in Col16 where Col 3 is not empty to another sheet. So far so good and this is the formula which does exactly that:
=QUERY(IMPORTRANGE("https://docs.google.com/spreadsheets/XYZ";"XYZ!A2:BZ"); "SELECT Col16 WHERE Col3 IS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589959",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to perform Migration of Jira & Confluence Server to Data Center We have currently the following server products:
1- Jira Core
2- Confluence
We are targeting to deploy the corresponding Data Center offering of each.
For Jira Core, we are thinking of Jira Software.
I'm seeking a step-by-step guide to accomplish th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589964",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ICU4C doesn't work in VSCode despite libraries being linked First of all ICU4C 72.1(latest version)
In continuation of my previous question i rewrote my code to use ICU, I dont want to use makefile for a time being. So I use Visual Studio Code compiler.
The problem is it doesn't seem to load libraires and I dont kno... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589965",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to deal with a ISR on atmega324pb? I have this problem:
I want to make a difference between the triggers (BTN0 and BTN1 - pins for this 2 buttons are in the same Interrupt vector - PCINT2). How could I know who triggers the ISR?
this is the code for BTN0 (what I need to add to use both buttons?):
#pragma vector... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589968",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: execute() method in tasklet is not invoking Below is the code :
@Configuration
public class Job {
@Autowired
private PlatformTransactionManager transactionManager;
@Autowired
private JobRepository jobRepository;
@Bean
public org.springframework.batch.core.Job createJob() {
System.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589969",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: php mysqli_stmt_bind_param not working as expected I created statement using mysqli_prepare($conn, $sql); then I am trying to bind the parameters with the values using
$check = mysqli_stmt_bind_param($stmt, "sssi", $title, $content, $published_at, $id); which is working fine.
But when I try to change the type $id to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589970",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Data not available in K6 Default Function when passed from Setup() I am trying to write integration tests for a nodejs API. Here is the block of code that is causing me headaches:
export default function (token) {
console.log('Token value in Default(): ', token);
group('All the API Smoke tests: \... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589972",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Argument 3: cannot convert from 'method group' to 'System.Action I'm trying to expand and develop a way for people to log in and register with PlayFab on my game on Unity, can't seem to find the issue though as to why it cannot convert from method group to System.Action.
Beginner here, so please be kind!
public void... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589974",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sass for loop assigns same index to each element I want to apply an animation to different divs. Each of them should get their own animation delay.
There are many tutorials online (Like this one) and I followed them closely, but for some reason the animation delay remains the same for every div.
I have the following... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589975",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Pivot longer in R with Multiple Columns I have the following data. Each row is one school where students are interviewed. A brief snipped of data is pasted below
df <- data.frame(
school = c("School 1", "School 2", "School 3"),
Student1_Name = c("Name1A", "Name1B", "Name1C"),
Student1_Resp1 = c(1,1,2),
Stude... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589977",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: did expo eas update also update dependencies after updating my app to a new branch update it always gets "RNSVGSvgViewAndroid" was not found in the UIManager error
I know the problem is coming from "react-native-svg" so I tried to lower it to "12.3.0" version as expo suggested when I tried to use it on expo go but i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589979",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to solve google Blocked app page with Oauth2? I am an frontend developer who is new in using google api.
And it's first time that I call oauth2 api.
But sadly I faced this page.
(
translation:
Blocked app.
App tried to access important information on your account. Google blocked this access to protect your acc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589982",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MacOS - Automation setting gets unchecked on its own System: macOS Monterey 12.0.1
I'm having an issue with my automation using osascript and I can't seem to find the way to solve it. I want to run a osascript code that will tell the System Events application to perform some actions.
Currently, when I try to run som... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589984",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sink every record when aggregate tumbling window in flink we have a flink job which has an aggregator/reducer who calculates over a tumbling window. What we wanna do is we wanna write every record for the reduce/add result in the aggregator/reducer to redis or whatever but we found that aggregator does not support r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75589994",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to access all data in a nested array that has no variables? Getting data from a nested array is usually quite easy.
If my array looks like this:
myArray: [
{
myNestedArray: [
{
name: 'Some name'
},
{
name: 'Some other name'
}
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75590002",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Laravel 9: why does $this->app->singleton() slow down tests? I came to a new team and they have tons of such calls in service provider:
$this->app->singleton(SomeRepository::class);
$this->app->singleton(SomeService::class);
So, basically they singleton everything. I thought it makes no sense, but when I tr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75590005",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |