text string | meta dict |
|---|---|
Q: the "Error: reassignment to val"be thrown in function when I run the following codes, the "error: reassignment to val" be thrown, anyone knows why?
def main(args: Array[String]) :Unit = {
var a = 10
def Fun(a:Int):Unit = {
while( a < 20 ){
println( "Value of a: " + a );
a = a + 1 // Erro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563026",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Same code & configuration, didRegisterForRemoteNotificationsWithDeviceToken works on device but not simulator? I am developing an iOS app in SwiftUI and using Firebase to send push notifications.
Now the push notification works fine in real device (my iPhone 11 with iOS 16.3.1). My iPhone can receive push notificati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563027",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the code to show cache time on mpv player? I have write a line below in "mpv.conf":
cache-secs=300
So when I move my mouse, OSD when show the current cache time like below.
I want to know what is the code for the current cache time.So I can use a keybind to show the exactly readahead time of the video.So I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563032",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Getting Flutter Apps to Run on Apple Silicon M2 I can't get a Flutter app to run on Apple Silicon M2 Max with all the latest versions of everything and after I followed the google instructions and exceptions to setup a new M2 Mac, The code compiles and installs but crashes on the iOS devices. Have Rosetta 2 install... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: multiply filter results by adjacent column, price calculator I have 2 sheets, Price calculator and Parts.
Price calculator sheet has 3 columns, Part, Qty, Cost.
I bring the Part name and Cost price in from the Parts sheet, using a filter for each column.
I want to manually enter Qty in Price calculator Qty column, a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563035",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Separate character to only number I tried to split column message between "เริ่มต้นที่ : ฿ 675" to only "675" price number column. But it dosen't work.
You can see df. In this link below df and website url.
df before I tried to separate:
website: https://fitwhey.com/
library(rvest)
library(tidyverse)
library(tidyr)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563037",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Jekyll How to get add Youtube Channel link to socials in minima template? I'm very new to Jekyll (and web development in general) and am trying to use it to make a Portfolio website. I make YouTube Tutorials as well as text ones and want to link them using the built in social to the minima theme.
youtube_username: A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563038",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Strong typed stringified object in TypeScript I'd like to define a strongly typed stringified object.
rather than having type SomeType = string, I'd like to have a more descriptive type something like
type SomeType = Stringified<{
prop1: 'value1',
prop2: 'value2'
}>
At the end of the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563043",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Intellij Grammar Kit - indent based language I'm creating a language using the Intellij IDEA Grammar-Kit plugin, and would like the blocks to be indent-based, rather than brace based. The only way I've found to do this so far is to use the <<indent ...>> function from https://github.com/kandeshvari/idea-nim/blob/mas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563044",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Boost library libboost_date_time not found when compiling project Visual Studio 2019 When compiling a project for debugging, an error occurs:
LINK : fatal error LNK1104: cannot open file "libboost_date_time-vc142-mt-gd-x64-1_72.lib"
Despite the fact that the release version compiles without problems! Project settin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563046",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cannot read properties of undefined problem in postman I am tring to create a user in my database by letting user signup.
when i enter the data manualy in create method it works, like that
note: the schema componants is {userName:String , number:String , email:String , Password:String}
exports.Signup = catchAsync(as... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563047",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Find Rows Where Column Value Contain in a String Example:
data='findme, ok'
df = pd.DataFrame([x.split(',') for x in data.split('\n')])
df.columns = ['keyword', 'result']
keywords = df['keyword'].tolist()
test1='maybe you canfindme'.lower()
How can I convert the below syntax to dataframe syntax?
for keyword in df['... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563050",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Xpath Newb Needs Help Printing Parent/Path Tags in Output I'm parsing XML files and paring the results down to a specific set of tags, but the output isn't valid XML.
Here's the command I'm running to extract a small subset of tags under the path "joblist/job:"
xpath -q -e '/joblist/job/*[self::uuid or self::group ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563052",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Variables treated differently than Values I tried to add a dictionary to a list, but I made the mistake of using the += operator. After discovering the bug, I noticed that if I run
a = []
a += {'b' : 2, 'c' : 3, 'd' : 4}
print(a)
I get ['b', 'c', 'd'].
If I run the same thing, but I directly reference [], I get an ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563053",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to allow CORS in JavaEE Servlets using Tomcat? I've already installed the Access Control plugin and It didn't help, and I'm using servlets with gson, my http methods work if I use an API platform (hoppscotch), my method GET is working with axios but when I try to send a POST from my vue.js project using axios I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563058",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Mutli Label Classifier Accuracy is Not Increasing of Keras Model I am doing transfer learning of a pre-trained keras vgg16 model. My dataset has 10,000 examples and 14 labels.
dataset looks like this
No finding | Cardiomegaly | ---- | Fracture |
0.0 0.0 1.0
1.0 0.0 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563059",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PIL.UnidentifiedImageError: cannot identify image file <_io.BufferedReader name=' When I train model with the dataloader on Ubuntu with pytorch, the error for the PIL image comes out sometimes. Sometimes there is no error, but when I run again, the error for one of the image stops the program. Specifically, error im... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563060",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to replace standalone instances of a single character or word I'm trying to use the count and replace string methods to count and then replace (more so remove) specific singular characters (ex, 'a' by itself) or words (ex, 'the'), but not every instance of that character. (ex, I do not want to replace a with not... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563061",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: force it to use a specific formatter for Scriban-HTML? I am using Scriban to create an HTML template that will be filled out by my program. I am editing the template in VS Code - so far I've found a syntax highlighter but no dice with formatting.
This is what it looks like when I enter code and save the file:
All t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563062",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to Implement Adsterra in next.js / react.js project So I am trying to implement Adsterra Banner 300x50 on a ts/js reactjs + nextjs project, This is Adsterra provided script code for me to implement in the website:
<script type="text/javascript">
atOptions = {
'key' : 'XXXXXX',
'format' : 'iframe',
'h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563064",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I want to make alias for git checkout and git pull with detecting a branch parameter for zsh or bash So I have problem with 2 command with parameter in middle of argument. I want to checkout and pull branch by this function in my .zshrc:
gleap() {
git checkout "$1"
git pull
}
And is working.
But the problem i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563065",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to add 2 decimal numbers When the user enters 1.1 + 1.1 the decimals are ignored and the returned input is rounded up to 2. How can I add two decimal numbers together? I tried changing my parseInt to another method in Number() but I get the same results
function add(a,b){ return display.innerHTML = parseInt(a) +... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563066",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Rust function to take only an Iterator that holds structs that impl Ord? I want to write a rust function that takes as a parameter an Iterator, but I only want Iterators that hold things with Ord.
Here is what I have tried:
fn my_fn<U>(&self, foo: U<T>)
where
U: Iterator
{
/* */
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563072",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: 【CloudFront】Failed to load module script I deployed my web app using the amplify publish command, but the web page did not display. After checking the console, I found the following error message:
Failed to load module script: Expected a JavaScript
module script but the server responded with a MIME
type of "text/h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563073",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why doesn't this 'REMEMBER ME' function work in Dart? I would like to check the 'shared_preferences' package in dart and if the user succeeds in logging in after checking the remember check box, save the email that the user used to log in and fill in the email box automatically when entering the next login page.
v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563074",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Api url with http or https in flutter I want to ask about working with APIs in flutter.
API domain is:
https://example.com
Due to some reasons if SSL of domain expires
Then App stops working.
How can we set if SSL expires then use domain with http until SLL renew.
I am setting BASE_URL:
static const String BASE_URL ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563075",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Its possible use outputDirectory two times in my pom.xml? I have one problem in my java project. Basicaly, I want build and compile my project to export jar file in two distinct directories. It's possible? Because method I am using is not working in my pom.xml
I was trying to use this code below, but always in the s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563082",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to fix CORS error on Windows Server 2019 running Socket.io I have installed Windows Server 2019. I Set up my domain with SSL. I installed RTCMultiConnection and it's using port 9001. It works but I get a CORS error. I have found different code on different sites via many Google searches and none seems to fix thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563084",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: console.log doesn't make sense when pushing values to array in a for loop Can someone explain what's going on with the output of this code?
let arr = [];
for(let i=0; i < 5; i++){
arr.push(i);
console.log(arr, i)
}
Output:
[0, 1, 2, 3, 4] 0
[0, 1, 2, 3, 4] 1
[0, 1, 2, 3, 4] 2
[0, 1, 2, 3, 4] 3
[0, 1, 2, 3, 4] ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563093",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can this expression be made more accurate and not return negative values? I'm using Julia but I'm sure that solutions will mostly translate across different languages.
I would like to calculate the following expression in Float64 precision for positive values of $T$.
a is a positive constant. The expression inside... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563095",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Testing Flask pytest is stacked without error I'm trying to create tests on Flask Python.
@pytest.fixture(scope='module')
def test_app():
app = create_app('config')
with app.run(port=5001,debug=True) as test_client:
print("create_app")
yield app
@pytest.fixture(scope='module')
def token(test... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563096",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Copying cell data based on a changing date I have a Google Sheet "Calorie Diary" where I track my calorie intake each day, along with my calories burned. I also keep track of my net calories in relation to my basal metabolic calories (1,230 per day). So, my net looks something like this.
=SUM(-E29,F29, 1230)
Column ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563098",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to replace multiple variable from file.txt Inside file form.txt
Name : $name
Gender : $gender
Age : $age
is my code to replace variable in form.txt
const fs = require('fs').promises;
var rForm = await fs.readFile(__dirname + '/form.txt', 'utf8');
var name = 'maman';
var gender = 'male';
var age = 10;
rForm.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563100",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I am unable to set expiration time using Python redis module Platfrom: Windows 11 Pro x64 zh_CN
Python version: 3.9.12 MSC v.1916 64 bit (AMD64)
Redis version: 5.0.14.1 x64
Python redis module version: 4.5.1
Problem: Unable to set expiration time(unix timestamp format) using Python redis moudle
[Question] So, is thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563101",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Call OpenAI API inside Django, which way is right way to handle the sync call? I am trying to call OpenAI API which is synchronous API call, it may block for several seconds. But as my site has many users, so can't afford to wait on the blocking call.
I am wondering is there any standard way to handle this situation... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563104",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it proper to use `__mul__` etc in polars? In Pandas I frequently use methods like a.add(b).mul(c).rename('xyz') to chain different series computations. I find that these methods are not public in Polars, but I can do similar things by df.select(pl.col(a).__add__(pl.col(b)).__mul__(pl.col(c)).alias('xyz'). I find... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563107",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ClickHouse 500 Response I am attempting to insert data into a Docker container in Clickhouse.
I get the following error message some times.
DatabaseError: :HTTPDriver for http://localhost:8123 returned response code 500)
std::exception. Code: 1001, type: std::__1::__fs::filesystem::filesystem_error, e.what() = file... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563108",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a way to locate a value in a specific row, and then get an arbitrary number of values in the rows that come after that row? I have a few dictionaries with dates
enter image description here
I want to use these dates to locate the price on those dates in this CSV file enter image description here
I then want... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563110",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can I upload a CSV file via spark-submit's "--files" option and transform it in a Spark data frame in Pyspark without loading it into HDFS? I need to read in a CSV file as a Spark data frame. This can be accomplished by loading the file into HDFS and then reading it via spark.read.csv.
I have a CSV that is changing ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563111",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Hive timestamp function issue Hour gets incremented by 1 hour automatically for few random date time on conversion.
This is not happening for other hours of the day and the same hour(02) in next day. This issue occurs for random date and timestamp.
similar issue happens to 2022-03-13 02:57:54
Thanks
Solution for th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Karma-Jasmine do not identify all Angular unit tests when using Automerge package Problem:
Having a weird issue with the Karma runner. It does not identify all the unit tests while running ng test command.
Reproduce:
I have created this stackblitz: https://stackblitz.com/edit/node-ooup44?file=my-workspace/projects/l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563118",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Understanding the use of subscriptions in the Parse JS SDK - How to send back Updated data I believe I am misunderstanding how the Parse JS SDK when it comes to handling subscriptions via Parse LiveQuery. In my Cloud Code folder (hosted on a server), I am able to invoke the following function from my front end clien... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563119",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Remove unwanted "spikes" from time-varying signal I have a signal that looks like this (given in blue), and what I want is to remove the unwanted "spikes" to yield the signal that I drew by hand shown in black. Simple tools like median filter, etc, do not work since the spacing of these peaks can vary widely. Bandpa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563120",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I create Json format from java code I have a specific json format and want to generate this format by Java code.
{"sw_list":[{
"ssm_version":"",
"path":"",
"version_code":"",
"last_update_date":"",
"country":[{"locale":"us", "name":"United States"}, {"locale":"mx", "name":"Maxico"}],
"hardware":[{"id":"HT1", ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563121",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Who to set hyperlink on QListWidget, to let person clicked I'm using Pyqt6 to set a hyperlink on the QListWidget,and I don't no why to use QtCore.Qt.DisplayRole to work on it or is I'm using the wrong attributes to write the code.
from mainwindow import Ui_MainWindow
from PyQt6 import QtWidgets, QtGui, QtCore
import... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563123",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to solve getting black screen after logout from ubuntu? I logout my user account from Ubuntu after that i got only black screen and after i restart also this was happen.
I tried reinstall gnome and other some tips get form online but nothing worked for me.
A: Just go into the Login Manager (Login Window), and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563126",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Is it possible to use the MySQL .NET connector for a c# project without using NuGet in VS Code I am building a .net webapi backend for a project I'm working on, and need to use the MySql .NET Connector. My boss does not want me to use NuGet for the MySql .NET connector, due to concerns with not being able to verify ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563127",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: wget says "No headers" when receiving my server's http response I'm running a server on a Raspberry Pi Pico W that serves a webpage and some data. I'd like the http response to be consumable by a variety of clients (wget, curl, python requests, browsers) but I'm having trouble getting my HTTP response understood. Br... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563129",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: vite Internal server error: Failed to resolve import "vertx" from "node_modules\xxxxx". Does the file exist? [vite] Internal server error: Failed to resolve import "vertx" from "node_modules\vue3-html2pdf\node_modules\html2pdf.js\dist\include\html2pdf.es.js?v=81457e47". Does the file exist?
Plugin: vite:import-analy... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563131",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Hot to get rid of 'Unable to load native-hadoop library for your platform' with local Spark and Delta Lake I checked this question and tried every single answer except rebuilding Hadoop (which is failing with endless errors so far). My hope is that the binaries from the official Hadoop distribution will do, but I ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563134",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Local variable 'state' value is not used I don't understand why my variable is not recognized in my function and why it is not updated after the function is executed. I have applied the same procedure throughout my project and it has worked every time. Here is my code:
all_button = []
state = "normal"
for x in rang... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563142",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: all points y value undefined and the syntax of "using" modifier I came across an unexpected Gnuplot behaviour (Version 5.2 patchlevel 6) I could not explain, so far.
This is the data (though any similar data would do):
x y
0 1.1
1 1.0
2 1.3
3 1.4
4 0.9
The line
p a=0 'data.txt' u 1:(a=a+$2,a) w lp
wor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563146",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: rotated div with overflow: scroll doesn't work in chrome The goal is to have a rectangular div that rotates to show content on hover. This content can overflow the div vertically, so there must be a way to scroll.
It works fine in FF, but in Chrome the scrollbar will be shown but won't be functional (as if the conte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563149",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why can't add a primary key? Create a database for testing:
create database sample
And enter into it:
\c sample
Create a table and insert value:
sample=# create table sample(title text);
CREATE TABLE
Time: 213.818 ms
sample=# insert into sample (title) values('x1');
INSERT 0 1
Time: 6.030 ms
Now i want add a prim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to lock split screen apps I use split screen regularly but can't remember how to lock a particular pair.
Any ideas please?
Split 2 apps on the screen, but clueless how to lock it
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75563154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: Something is mutating my list and I dont know what I have a matrix that I want to mutate using the propigate() function. It takes the mappp matrix and pretty much makes a mutation of it if certain conditions are me within each row. This is a function that I built to find relationships amount the elements of the matr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563155",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to insert latex expression in kable I would like to include a latex expression in the caption option of kable. However, I am getting an undefined error message. I am able to include the latex expression inside the function add_header_above and works as expected but when I try the same expression in kable(caption... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563158",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Nodejs Redis HGETALL return different values from two consecutive calls The scenarios like the following: I am using the redis in nodejs, and I used HSET to store the following data: {"value":"test3","isAvail":"true","refCount":"0","acctLevel":"0","username":"user3","id":"3"}
Then I read the data from redis, and cha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563159",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I connect Databricks to a local postgresql database? I am trying to connect a local postgresql database to databricks to work through some tutorials. I continue to get the error below. Queries are working on both the CLI and PGADMIN.
I uploaded a the JDBC driver to the Databricks cluster, but am not having su... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563160",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: curl error 6 while downloading https://api.github.com/rate_limit: Could not resolve host: api.github.com CakePHP4 I'm very new to docker and I keep getting this error from a couple of days ago and it didn't happen before. Looks like I exceeded the limit of api access or something.
```
OS: WSL(Ubuntu22.04)
PHP: PHP 8... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563169",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the practical use of "Type-only Field Declarations"? Source: Type-only Field Declarations.
interface Animal {
dateOfBirth: any;
}
interface Dog extends Animal {
breed: any;
}
class AnimalHouse {
resident: Animal;
constructor(animal: Animal) {
this.resident = animal;
}
}
class DogHouse ext... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563171",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: how to forward a email as an attachment by outlook addin web Is this possible to send a email by outlook add-in web?
Forwarding an email as an attachment by C# outlook add-in is easy to do, but it's not working for outlook client of the mac OS. so I have to try use new office feature. But I didn't find a way to send... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563175",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: DISTINCT, SUM and CASE All together I have my current query something like below
SELECT COUNT(DISTINCT(lead_email)) AS total_today,
IFNULL(SUM(
case when lead_status = 1
then 1
else 0 end),0) AS subscribed_today
FROM tbl_leads
WHERE DATE(CONVERT_TZ(lead_time, '... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563176",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Enemies all going to one spot in Godot I have been trying to make a battle-royale like game where the enemies all target other enemies or players close to them and if there are none they go to random positions. However they are all going to relatively the same spot and i dont know why. Here is my code:
extends Kinem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563179",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I define same response output field name in NestJS using the @Expose decorator from class-transformer? Currently, I have my Entity defined as so:
export class ItemEntity implements Item {
@PrimaryColumn()
@IsIn(['product', 'productVariant', 'category'])
@IsNotEmpty()
itemType: string;
@PrimaryC... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563180",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to solve the captcha window and alert box that pops up randomly when crawling a website When I crawl the website, the website will jump out of captcha and alert from time to time.
How should I solve it?
Should I use a parallel thread to monitor?
Or is there another better way? What should I do?
I expect that whe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563182",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: How can we parse a JSON string and reshape it into a dataframe? I am playing around with this code.
import requests
import json
import pandas as pd
from pandas.io.json import json_normalize
url = 'https://stats.nba.com/'
headers= {'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563183",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Fall damage with velocity phaser.js So after realising the fact that velocity increases heavily over time, making time effectively useless in calculations, I decided to go for a velocity based approach, with fall damage increase with velocity, but i've encountered a problem, with my fallDmgAmt variable just resettin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563184",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: I have two questions about dynamic SQL ;please explain why, thank you This is first code,no error
L_SQL := 'SELECT COUNT(1)
FROM TABLE A
WHERE COL1 = ''' || V_1 || ''' -- where col1 = '2021YEAR_REPORT'
AND COL2 LIKE ''%' || V_2 || ''' -- and col2 like '%202302'
AND COL3 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563185",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Hide: "Clipping input data to the valid range for imshow with RGB data ([0..1] for floats or [0..255] for integers)." I am printing images in a for loop using imshow(). However, for every iteration there is the message, Clipping input data to the valid range for imshow with RGB data ([0..1] for floats or [0..255] fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563187",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MongoDB $lookup operation in Mongoose returning empty results I'm trying to perform a $lookup operation on a MongoDB collection using Mongoose, but the resulting products array is always empty, even though there should be matching documents in the joined collection. Specifically, I'm using an aggregation pipeline to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563189",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to capture all substrings that match this regex pattern, which is based on a repeat range of 2 or more consecutive times? import re
input_text = "((PERS)Marcos) ssdsdsd sdsdsdsd sdsdsd le ((VERB)empujé) hasta ((VERB)dejarle) en ese lugar. A ((PERS)Marcos) le ((VERB)dijeron) y luego le ((VERB)ayudo)"
input_text... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563190",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: why i was getting this error while trying to push a code to github repository when trying to push the code to github i was facing this error ?
this is the error :
! [rejected] main -> main (fetch first)
error: failed to push some refs to 'https://github.com/Manojgadey/temp.git'
hint: Updates were rejected be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563200",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: Why I'm getting same result with or without using Wav2Vec2Processor? I'm running simple wav2vec2 code on short without noise voice:
#processor = Wav2Vec2Processor.from_pretrained("facebook/wav2vec2-base-960h")
model = Wav2Vec2ForCTC.from_pretrained("facebook/wav2vec2-base-960h")
FILE_NAME = "tutoria... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563201",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can't deploy functions to firebase after running "firebase deploy --only functions" I get the next error
I have tried to delete de functions folder, and firebase files to try "firebase init" again, run nmp ci, and encounter the same error
Also the location of my up is the server eur3 and here tries to deploy it to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563202",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I use dependency injection and a jwt token with refit? I cannot find any examples of using dependency injection with Refit and passing in Jwts per request... or any other way that's not a single hard-coded value in the program.cs file
Program.cs
builder.Services.AddRefitClient<IMyApi>()
.ConfigureHttpClient(c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563203",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you determine one's complement and two's complement in Python? Here's what I have so far:
decimalEquivalent is variable that represents an integer.
#One's complement of the binary string is shown
onesComplement = bin(~decimalEquivalent)
print(f'The negative no (-{decimalEquivalent}) using 1\'s Complement: {on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563204",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Text color on Angular Material mat-chip I have a mat-chip-set and several mat-chip objects with a custom product-chip class:
<mat-chip-set>
<mat-chip class="product-chip" *ngFor="let category of categories">
{{category}}
</mat-chip>
</mat-chip-set>
my css is:
.product-chip {
background-color: pink !import... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563205",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: my rails application is ignoring the file javascript/packs/application.js I've been adding "requires" in the javascript/packs/application.js file and it seems to ignore them, I even tried to do
require("file_invented") and didn't get any error, what could be going on?
I am using rails 6 and ruby '2.6.1'
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75563206",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to resize custom painter to take just a part of the background and wrap just the first 2 element of 3 column i am new to flutter and to custom painter.
This is my custom painter class
class ShapesPainter extends CustomPainter {
double _kCurveHeight = 35;
@override
void paint(Canvas canvas, Size size) {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563209",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Getting Timer class to change the state of a boolean and remove a GIF from the application yet website freezes I have a gif that I run whenever someone creates a new book. When the submit button is clicked, the checked bool becomes true and, in turn, an if statement that checks for this boolean runs and showcases th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WooCommerce - How to Make Description and Review Boxes Unselectable for Unregistered Users I want to make WooCommerce description and review boxes unselectable for unregistered users. unfortunately there is zero information out there on how to do this.
Any help would be greatly appreciated
A: For that you have to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563213",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: TRYING TO PARSE FORM DATA USING NODE AND EXPRESSJS <form action="/recommend" method="POST">
<div class="form-control">
<label for="name">Restaurant name</label>
<input type="text" id="name" name="name1" required />
</div>
<div class="form-control">
<label for="address">Address</label>
<input ty... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563214",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I am trying to built a dataloader for crackseg9k but I am getting this error of ' too many values to unpack (expected 2)' . Any ways to solve this? My dataloader code is given below:
Here I am trying to iterate through the custom dataset of images using a dataloader.
import torch
import torchvision.transforms as tr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563215",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MySQL JPA deleting multiple records from different tables There are two tables:
User table `user`
+----+----------------------------+-------------+
| id | date_created_user | email |
+----+----------------------------+-------------+
| 7 | 2023-02-23 13:23:09.08... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563217",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Text into data frame I want to turn this into a dataset that I can work with in R. It is currently in a simple text format. How do I do that? Thanks!
Child | Time | Calories
-----------|-----------|------------
1 | 21.4 | 472
2 | 30.8 | 498
3 | 37.7 | 465
4 | 33.5 | 456
5 | 32.8 | 423
6 | 39.5 | 437
7 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563218",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: axios GET request returns undefined and not able to set value I am trying to set data received from a GET request from an API using axios. But the value which is getting set is undefined even though console.log gives me the correct output.
const[movie, setMovie] = useState({});
useEffect(()=>{
const baseURL = ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563219",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: NED frame to body frame transformation I want to control a drone velocity, I'm getting correct NED velocity from ekf but that's on NED frame,
But the issue is controlling drone velocity I have to generate set points in form of roll and pitch and that's on body frame.
How to convert NED frame to body frame in form of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563220",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: 2D array manipulation with pointers I am trying to manipulate some 2D array using pointers, I know the basics of pointers but I am having difficulties with this code :
{
char a[3][10] = { "Malek", "Zied","Nicolas" };
char* ptr = a;
char c = *(*(a + 1) + 1);
char r = *(ptr + 1)+1;
printf("i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563221",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to resize a RAW photo using CoreImage/CoreGraphics on iOS I'm trying to write an app that allows for transforming RAW photos from a user's photo library. The use case is to desqueeze photos taken with an anamorphic lens, but the task is simply to scale an image non-proportionally along the horizontal axis.
The c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563223",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: react-router-dom (v6) Routing not working in production while working in development I have defined all my routes in App.js file, given below
<BrowserRouter>
<Routes>
{user && <Route path="/dashboard" element={<Dashboard />} />}
<Route path='/' element={<SignUp />} />
<Route path='/signin' element={<Si... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563224",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I reference a class from a string? There are several related questions but I'm not quite seeing how to apply the answers in my situation.
I'm trying to define as a constant whether to use program A or B.
In a Constants module I set a string for A or B:
DL_PROG = "youtube_dl" # or, use the better version, y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563225",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Word Order run faster I have the next code:
`#!/bin/python3
from collections import Counter
import re
if __name__ == "__main__":
#Introduce the number of words
number = int(input ())
words = []
for _ in range (number):
#Introduce Words
words.append(input().strip())
for text in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563226",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Circle and diagonal line game collision in java public boolean checkCollision(int circleX, int circleY, int circleRadius, int lineX1, int lineY1, int lineX2,
int lineY2) {
double a = lineY2 - lineY1;
double b = lineX1 - lineX2;
double c = lineX2 * lineY1 - lineX1 * lineY2;
double distance = ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563228",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I need make faster barcode reader with zxing and android studio The only thing I need to work faster at the moment is to read the barcode, but i cant do it. This is my code and actually use
This is the implementation in gradle:
implementation('com.journeyapps:zxing-android-embedded:4.3.0') { transitive = false }
imp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563229",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: While i try to copy-paste in git does not work in git-bash not work ctrl+v while i try to paste anything then not work and also not working some cmd ???
I'm expecting to resolve my problem
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75563232",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: pinescript: plot a line segment or circle on future bars The code I have written plots a circle with offset to attempt to place the circle at the start of the next session as soon as the previous session has expired. This is not always accurate, eg. if the previous session is shortened - for example on Monday (20 Fe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563237",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a simple way to manipulate the output from a table input from Cognito Forms in Zapier? problem explained clearly
I tried the utilities formatter (see image) - Line-item to Text which worked for 1 product but it only shows 1 product even when multiple products are input.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75563240",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to stop the cmd from closing when typed dart? My command prompt is not responding to dart commands.
When any line of code, that begins with "dart" is typed, it closes.
What is the problem?
I am a beginner in programming, hence I don't know how to do it.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75563241",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Encrypting AES Key with RSA I have the following goal: I have a .txt file with data that should be encrypted with AES. I want to encrypt the AES key with an RSA public key so that the recipient has to decrypt the AES key with his RSA private key before he can decrypt the data. So far so good.
For that purpose, I pre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75563242",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |