Id int64 4 8.51M | PostTypeId int64 1 7 | AcceptedAnswerId int64 7 75.5M ⌀ | ParentId int64 4 41.8M ⌀ | Score int64 -208 27.7k | ViewCount int64 11 12.4M ⌀ | Body stringlengths 0 45k | Title stringlengths 2 150 ⌀ | ContentLicense stringclasses 3
values | FavoriteCount int64 0 225 ⌀ | CreationDate stringdate 2008-07-31 21:42:52 2011-12-14 18:48:47 | LastActivityDate stringdate 2008-08-01 12:19:17 2023-03-05 04:40:26 | LastEditDate stringdate 2008-08-01 13:54:25 2023-03-05 03:12:45 ⌀ | LastEditorUserId int64 -1 21.3M ⌀ | OwnerUserId int64 -1 21.1M ⌀ | Tags listlengths 1 6 ⌀ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
75,616,183 | 1 | null | null | 0 | 12 | can't import all modules
can't run the code
I'm trying to run this simple script
```
from scapy.all import *
# Create an IP packet
ip_packet = IP(src="192.168.1.1", dst="192.168.1.2")
# Create a TCP segment
tcp_segment = TCP(sport=1234, dport=80, flags="S", seq=1000)
# Combine the IP packet and TCP segment
packet = ... | problems with scapy, can't import by * and can't run the script | CC BY-SA 4.0 | null | 2023-03-02T13:37:34.367 | 2023-03-02T14:49:51.050 | 2023-03-02T14:49:51.050 | 2,074,831 | 21,319,065 | [
"python",
"scapy"
] |
75,616,189 | 2 | null | 75,615,629 | 1 | null | I've used this before. Maybe this will help you.
```
<input
type="text"
inputMode="numeric"
placeholder="Value"
value={value}
onChange={handleChange}
/>
const [value, setValue] = useState("");
const handleChange = evt => {
const newValue = evt.target.value.replace(
... | null | CC BY-SA 4.0 | null | 2023-03-02T13:38:00.573 | 2023-03-02T13:38:00.573 | null | null | 12,382,504 | null |
75,616,192 | 2 | null | 75,540,700 | 0 | null | For all of you that experience the same issues. My problem was that the h2 database was configured as an application wide property, not only tests.
I followed the article and seperated the database to only be used in the test scope in the build gradle and defined a sperate jpa datasource as a @configuration bean
[https... | null | CC BY-SA 4.0 | null | 2023-03-02T13:38:04.937 | 2023-03-02T13:38:04.937 | null | null | 14,991,149 | null |
75,616,193 | 1 | null | null | -1 | 9 | what I want is to register my service worker in my progressive web app. I created my sw.js file and in my app.js file I wanted to do this:
```
if('serviceWorker' in navigator){
navigator.serviceWorker
.register('/sw.js')
.then(function(){
console.log('Service worker registered!');
... | node js - ReferenceError: navigator is not defined | CC BY-SA 4.0 | null | 2023-03-02T13:38:11.843 | 2023-03-02T18:44:00.583 | null | null | 21,319,366 | [
"node.js",
"progressive-web-apps",
"service-worker"
] |
75,616,184 | 2 | null | 75,615,786 | 2 | null | In my example I use spark SQL, but I am sure you can also pull it off with plain pyspark. The key idea is to use [arrays_zip](https://spark.apache.org/docs/latest/api/sql/index.html#arrays_zip) function. There's also the [zip_with](https://spark.apache.org/docs/latest/api/sql/index.html#zip_with) which you may want to ... | null | CC BY-SA 4.0 | null | 2023-03-02T13:37:43.143 | 2023-03-02T13:37:43.143 | null | null | 1,680,826 | null |
75,616,190 | 1 | null | null | 0 | 6 | I'm facing 404 not found when trying to refresh my site page, couldn't find any answer that can help me !
For example if I enter my base URL which is test.com then it routes to test.com/login but if I refresh this page then it will result in a 404 error.
this is my server config.
```
server {
listen 8080;
listen [::]:8... | 404 NOT FOUND nginx with Angular dist | CC BY-SA 4.0 | null | 2023-03-02T13:38:01.063 | 2023-03-02T13:38:01.063 | null | null | 19,957,077 | [
"angular",
"nginx"
] |
75,616,099 | 1 | null | null | -1 | 32 | after installing Arduino IDE I tried to start the app but
but it won't . I only see the logo in the center of the window. I'm on Windows 10 and Arduino IDE 2.0.5.
I opened PowerShell in the Arduino IDE installation folder in Windows Explorer. Then I executed with this command Arduino IDE to see the debug output.
```
& ... | What is causing my Arduino IDE not to start? | CC BY-SA 4.0 | null | 2023-03-02T13:30:29.427 | 2023-03-03T10:57:43.550 | 2023-03-03T10:57:43.550 | 21,319,296 | 21,319,296 | [
"arduino",
"windows-10",
"daemon",
"arduino-ide",
"enoent"
] |
75,616,191 | 2 | null | 39,046,603 | 0 | null | No script option => If you use VS Code you can open both files in compare mode and check where they are different and where they are the same:
Step one: open files & folders side bar in VS Code and right click on file you would like to compare, click `Select to Compare`
[](https://i.stack.imgur.com/eL278.png)
Then you ... | null | CC BY-SA 4.0 | null | 2023-03-02T13:38:03.723 | 2023-03-02T13:38:03.723 | null | null | 9,195,781 | null |
75,616,195 | 1 | null | null | -2 | 18 | i just buy new linux laptop, and i trying to run the code from here: [https://github.com/sphincs/sphincsplus.git](https://github.com/sphincs/sphincsplus.git) , the code is build with c and python.
i trying to run it, but i get this error:
```
Benchmarking sphincs-shake-128f robust using ref
Traceback (most recent call ... | error in linux - FileNotFoundError: [Errno 2] No such file or directory: 'make' | CC BY-SA 4.0 | null | 2023-03-02T13:38:26.347 | 2023-03-02T13:38:26.347 | null | null | 21,287,168 | [
"python",
"c",
"linux"
] |
75,616,201 | 1 | null | null | 0 | 7 | Recently I have found that the latest version of libtiff (4.3.0 and onwards) can be build using cmake only.
Can I compile it using NAnt? If yes, how?
I have tried searching some resources in google but they are not helpful.
| Compile cmake project from NAnt | CC BY-SA 4.0 | null | 2023-03-02T13:39:03.300 | 2023-03-02T13:39:03.300 | null | null | 21,065,506 | [
"windows",
"cmake",
"nant",
"libtiff"
] |
75,616,197 | 2 | null | 75,615,705 | 0 | null | You can use `Convert` in a `ClassMap` to get the `RawRecord` value.
```
void Main()
{
using (var reader = new StringReader("32,Foo\n45,Bar"))
using (var csv = new CsvReader(reader, new CsvConfiguration(CultureInfo.InvariantCulture) { HasHeaderRecord = false }))
{
csv.Context.RegisterClassMap<D... | null | CC BY-SA 4.0 | null | 2023-03-02T13:38:30.863 | 2023-03-02T23:54:43.307 | 2023-03-02T23:54:43.307 | 2,355,006 | 2,355,006 | null |
75,616,202 | 2 | null | 66,123,657 | 0 | null | For apps hosted on Cloudflare Pages you can add a `_headers` file in your projects root which contains your rules.
```
/.well-known/*
Access-Control-Allow-Origin: *
content-type: text/plain
```
[https://developers.cloudflare.com/pages/platform/headers/](https://developers.cloudflare.com/pages/platform/headers/)
| null | CC BY-SA 4.0 | null | 2023-03-02T13:39:06.803 | 2023-03-02T13:39:06.803 | null | null | 1,440,240 | null |
75,616,188 | 1 | null | null | 2 | 29 |
## Environment
- - -
## Current behavior
Hello people,
I am facing issue while user is already signing and my apps perform actions successfully which are basically callbacks after login and routing to search page.
Basically I am using a before_action named as `:requires_auth_token` which has been used in my all ... | NoMethodError: undefined method `username' for true:TrueClass | CC BY-SA 4.0 | null | 2023-03-02T13:37:57.770 | 2023-03-02T15:07:29.083 | 2023-03-02T14:30:36.193 | 2,266,827 | 17,731,528 | [
"ruby-on-rails",
"ruby",
"devise"
] |
75,616,198 | 1 | 75,619,438 | null | 0 | 29 | I have an enum of this type:
```
export enum StateEnum {
STARTING = 'starting',
RUNNING = 'running',
STOPPING = 'stopping',
STOPPED = 'stopped',
DELETING = 'deleting',
}
```
And I have a DTO object like this:
```
export class MyDTO {
public state: StateEnum;
constructor(infoFromApi: any) {
cons... | TypeScript: Mapping Enum value to enum key in an utility | CC BY-SA 4.0 | null | 2023-03-02T13:38:40.170 | 2023-03-02T18:22:01.207 | 2023-03-02T15:24:49.633 | 1,655,313 | 1,655,313 | [
"typescript",
"enums"
] |
75,616,203 | 1 | null | null | 1 | 19 | I want to Check if eventbridge schedule is existing , Or not ..
When I use `response=client.get_schedule( Name='Name of the schedule' )`
It will return the details of the schedule if it's existing , But it will throw exception and will not return any values if it's not existing which breaks the code .
I'm using python ... | Check if eventbridge schedule is existing | CC BY-SA 4.0 | null | 2023-03-02T13:39:10.223 | 2023-03-02T16:32:15.977 | null | null | 20,720,333 | [
"python",
"lambda",
"aws-event-bridge"
] |
75,616,196 | 1 | null | null | 0 | 13 | I need help solving a problem I was having while developing my website.
I'm trying to insert a download link in my website with a PDF file to download.
The problem arises when I press the Download button, the download starts but the browser gives me an error, namely, "Operation failed. No file".
I read on the internet ... | "Operation failed. No files" when download a file | CC BY-SA 4.0 | null | 2023-03-02T13:38:27.813 | 2023-03-02T13:55:44.167 | null | null | 13,716,820 | [
"javascript",
"html",
"css",
"file",
"download"
] |
75,616,204 | 2 | null | 75,615,461 | 0 | null | You can make this marginally more efficient as follows:
```
class Suvat:
VALIDKEYS = set('suvat')
def __init__(self, **kwargs):
if not all(key in Suvat.VALIDKEYS for key in kwargs):
raise TypeError('Invalid suvat key(s)', *(set(kwargs) - Suvat.VALIDKEYS))
```
However, whether you should be ... | null | CC BY-SA 4.0 | null | 2023-03-02T13:39:10.770 | 2023-03-02T13:39:10.770 | null | null | 17,580,381 | null |
75,616,206 | 2 | null | 31,283,425 | 0 | null | I was able to "fix" this by removing rack-mini-profiler gem. Use one or the other but not both at same time.
| null | CC BY-SA 4.0 | null | 2023-03-02T13:39:19.397 | 2023-03-02T13:39:19.397 | null | null | 14,037,275 | null |
75,616,209 | 2 | null | 75,613,976 | 0 | null | Just in case anyone else comes to this who is struggling here, vite (the no bundler dev environment used by Vue) allows you to define runtime variables to be made available in the code (details here: [Configuring Vite](https://vitejs.dev/config/#:%7E:text=Vite%20also%20directly%20supports%20TS%20config%20files.%20You,b... | null | CC BY-SA 4.0 | null | 2023-03-02T13:39:31.097 | 2023-03-02T13:40:36.767 | 2023-03-02T13:40:36.767 | 20,123,112 | 20,123,112 | null |
75,616,207 | 2 | null | 75,615,857 | 0 | null | With the cumulative sum of the existance of the column value, you can split the data with the temp partition and set all the values same as in the partition that will fill the null values.
With the `Base` column requirement, use `coalesce` and `sum`.
```
w1 = Window.orderBy('Date_Id')
w2 = Window.partitionBy('temp').o... | null | CC BY-SA 4.0 | null | 2023-03-02T13:39:20.617 | 2023-03-03T10:23:33.720 | 2023-03-03T10:23:33.720 | 11,841,571 | 11,841,571 | null |
75,616,200 | 1 | null | null | 1 | 77 | I am having a setup the has two components: master and slave.
They communicate by uart.
Each of them have RTC (real time clock) module, and I want to sync the slave's RTC with the master's.
I have few questions regarding to my goal. First I want to present my implementation
I am intending to do as follows:
```
SLAVE S... | Clock Sychronization | CC BY-SA 4.0 | null | 2023-03-02T13:38:48.257 | 2023-03-04T00:56:37.860 | 2023-03-02T14:12:39.407 | 531,679 | 9,715,185 | [
"c",
"linux",
"time",
"embedded",
"clock"
] |
75,616,210 | 1 | null | null | 0 | 32 | I have a waveform `sig` that I'd like to run an FFT on. The data is sampled at 40 kHz and I want to analyze a window of 25mS or 1000 points. Using `scipy.fft.rfft(sig)` I get a resulting waveform that has 500 values. I understand these values to be magnitudes that correspond to 500 frequency bins between 0 and 20kHz. U... | Scipy FFT reduce bin count | CC BY-SA 4.0 | null | 2023-03-02T13:39:34.627 | 2023-03-02T15:04:14.960 | 2023-03-02T15:04:14.960 | 2,896,292 | 2,896,292 | [
"python",
"python-3.x",
"numpy",
"scipy",
"fft"
] |
75,616,214 | 2 | null | 22,356,792 | 0 | null | I second Sabuj's comment. It should be `bytes.length`
| null | CC BY-SA 4.0 | null | 2023-03-02T13:40:05.630 | 2023-03-02T13:40:05.630 | null | null | 21,319,414 | null |
75,616,208 | 1 | null | null | 0 | 9 | `pip install goodbyecaptcha`
and this is the error i get when pip goes to pocketphinx==0.1.15
`Collecting pocketsphinx==0.1.15
Using cached pocketsphinx-0.1.15.tar.gz (29.1 MB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1... | please help me figure out how to fix this ModuleNotFoundError: No module named 'distutils.command.bdist_msi' | CC BY-SA 4.0 | null | 2023-03-02T13:39:24.113 | 2023-03-02T13:39:24.113 | null | null | 21,319,353 | [
"python-3.x"
] |
75,616,211 | 2 | null | 75,614,679 | 1 | null | The table content is only visible once you load the page in a browser. You should use a webdriver with selenium. You can even find elements by id/xpath and interact with them (enter text, click...):
```
import pandas as pd
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdrive... | null | CC BY-SA 4.0 | null | 2023-03-02T13:39:44.457 | 2023-03-02T13:46:46.420 | 2023-03-02T13:46:46.420 | 13,525,512 | 13,525,512 | null |
75,616,205 | 2 | null | 75,611,320 | 0 | null | As I understand it from your post and comment, you have a "report form" with these requirements:
- `Home`-
---
To make it stay on top of the home form, use the `this` reference so that the home form is the `Owner` of the report form.
```
public partial class HomeForm : Form
{
public HomeForm()
{
Ini... | null | CC BY-SA 4.0 | null | 2023-03-02T13:39:14.850 | 2023-03-02T13:48:43.383 | 2023-03-02T13:48:43.383 | 5,438,626 | 5,438,626 | null |
75,616,213 | 2 | null | 75,615,194 | 0 | null | When you attempt to access the instance on this line:
```
availability_zone = data.aws_subnet.this[aws_instance.this[count.index].subnet_id].availability_zone
```
You are using `aws_instance.this[count.index]` - but `count.index` iterates over the number of volumes, not instances. This will always give you an out of b... | null | CC BY-SA 4.0 | null | 2023-03-02T13:40:01.763 | 2023-03-02T13:50:01.603 | 2023-03-02T13:50:01.603 | 11,129,093 | 11,129,093 | null |
75,616,218 | 1 | null | null | 0 | 41 | I want to create a custom function that can return the sum of all elements in an array whether its 1d, 2d, or 3d. .
This is what I've come up with and it runs but the sums aren't correct and I can't figure out where its getting the numbers from.
```
array_1d = np.array([1,2,3,4,5])
array_2d = np.array([[1,3,4,5],[1,4,5... | numpy custom function for sum of 1d/2d/3d array | CC BY-SA 4.0 | null | 2023-03-02T13:40:10.030 | 2023-03-02T17:04:18.860 | null | null | 21,319,211 | [
"python",
"arrays",
"numpy"
] |
75,616,212 | 1 | null | null | 0 | 8 | I'm using spark structured streaming to read data from kinesis, applying some data transformations and reading and writing them to delta lake using foreachBatch Function.
In the last step, I read data from silver table, applying validations for length of the columns and checking if it's null. Finally I'm calculating th... | BatchId in structured streaming is increasing even though there is no new incoming data | CC BY-SA 4.0 | null | 2023-03-02T13:39:56.007 | 2023-03-02T13:47:31.797 | 2023-03-02T13:47:31.797 | 11,841,571 | 13,266,625 | [
"python",
"apache-spark",
"spark-structured-streaming"
] |
75,616,220 | 1 | null | null | 0 | 21 | In my application while using spring boot 2.7.7 I was using following classes which render to database
```
org.hibernate.query.criteria.internal.CriteriaBuilder.
org.hibernate.query.criteria.internal.ParameterRegistry.
org.hibernate.query.criteria.internal.Renderable.
org.hibernate.query.criteria.internal.com... | Issues Migrating Hibernate in Spring boot 3 | CC BY-SA 4.0 | null | 2023-03-02T13:40:18.580 | 2023-03-03T07:55:37.367 | 2023-03-02T14:41:05.963 | 2,353,403 | 14,741,805 | [
"java",
"hibernate"
] |
75,616,221 | 2 | null | 57,628,179 | 0 | null | I have a related question.
I'm currently trying to simulate a simple system using gekko:
```
m = GEKKO()
m.time = np.linspace(0,20,100)
k = 5
y = m.Var(value=5.0)
t = m.Param(value=m.time)
m.Equation(k*y.dt()==-m.sqrt(y))
m.options.IMODE = 4
m.solve(disp=False)
```
It seems to get stuck at sqrt probably because it ca... | null | CC BY-SA 4.0 | null | 2023-03-02T13:40:19.513 | 2023-03-02T13:40:19.513 | null | null | 8,588,990 | null |
75,616,225 | 2 | null | 58,263,655 | 0 | null | [](https://i.stack.imgur.com/iaz6u.png)
Add mock function for navigate like
const navigate = jest.fn(); "YourComponent navigation={{navigate}} "
pass navigation props in your component like
| null | CC BY-SA 4.0 | null | 2023-03-02T13:40:26.527 | 2023-03-02T13:40:26.527 | null | null | 6,224,043 | null |
75,616,222 | 2 | null | 71,871,877 | 0 | null | I'd like to answer my own question with 10 extra months of experience with async/await.
If I were to write such function today, I wouldn't check for cancellation within this task block. I'd call this "manager" task and all the functions it relies on I would call "worker" tasks, as those do the actual long running work.... | null | CC BY-SA 4.0 | null | 2023-03-02T13:40:21.470 | 2023-03-02T13:40:21.470 | null | null | 2,249,485 | null |
75,616,227 | 1 | null | null | -1 | 8 | I am using Ubuntu18.04. It shows up when I am working on my linux system and it will kill all my processes.
Can any one tell me what's going on?
| why this error comes as "Error found when loading /etc/profile" | CC BY-SA 4.0 | null | 2023-03-02T13:40:36.083 | 2023-03-02T13:40:36.083 | null | null | 19,993,214 | [
"linux"
] |
75,616,226 | 1 | null | null | 0 | 11 | I have an array of messages following the image below:
[enter image description here](https://i.stack.imgur.com/yvuXG.png)
And I want to send to whatsapp using Twilio npm package following the image below:
[enter image description here](https://i.stack.imgur.com/iOPuh.png)
But the lib sometimes does not send in the cor... | I'm trying to send multiple messages to Whatsapp using Twilio Sandbox at the same time | CC BY-SA 4.0 | null | 2023-03-02T13:40:29.627 | 2023-03-02T13:46:48.993 | 2023-03-02T13:46:48.993 | 18,309,162 | 18,309,162 | [
"node.js",
"twilio",
"whatsapp"
] |
75,616,229 | 1 | null | null | 1 | 30 | Is there any way to send the slack notification to a channel, if the AWS ECS service reaches a steady state after the deployment is completed which was triggered by Jenkins
Trying to get the ECS service to a steady state and send it as a slack notification after deployment is completed.
| Slack notification once ECS service reach steady state | CC BY-SA 4.0 | null | 2023-03-02T13:40:40.247 | 2023-03-02T20:43:12.453 | 2023-03-02T20:36:56.257 | 3,987,536 | 9,822,905 | [
"amazon-web-services",
"configuration",
"notifications",
"amazon-ecs",
"slack"
] |
75,616,228 | 1 | null | null | -3 | 32 | ```
int num1 = 3;
int num2 = 5;
System.out.println(num1 + num2);
```
This is code example stored inside `Hello.java` file. If I compile this code via terminal with `javac Hello.java`, it successfully compiles it, . If I make some changes, for example, `int num1 = 4`, compile it, and run it, terminal shows the initial ... | Java compiler evoked from terminal in VS Code doesn't update the file | CC BY-SA 4.0 | null | 2023-03-02T13:40:39.880 | 2023-03-02T14:14:15.910 | 2023-03-02T14:14:15.910 | 21,272,693 | 21,272,693 | [
"java",
"terminal",
"javac"
] |
75,616,215 | 1 | null | null | 0 | 17 | > There is a model and posts attached to it.
I can not figure out how to make the transition from the active post to the next and back.
I read many articles, but I did not find the right one for me.
Here is my code. How can this be done?
HTML
```
<div class="bootons-navigation">
<span class="span__bootons-navigatiom"><... | Django - Moving from one category post to the next and back | CC BY-SA 4.0 | null | 2023-03-02T13:40:06.350 | 2023-03-04T15:54:51.830 | null | null | 20,301,050 | [
"django"
] |
75,616,216 | 1 | null | null | 0 | 37 | I'm building an application for storing/searching/sorting cars and I'm running into an issue with one method.
I have six ArrayLists, storing variables of different data types:
```
Car c1 = new Car(1, "Ford", "Mustang", "2013", 200500, "1.3L", 'A', 5550.50);
Car c2 = new Car(2, "Audi", "TT", "2012", 88000, "1.8L", 'C',... | Getter returning incorrect value | CC BY-SA 4.0 | null | 2023-03-02T13:40:07.913 | 2023-03-03T03:11:21.030 | 2023-03-03T03:11:21.030 | 11,107,541 | 19,832,283 | [
"java",
"arraylist",
"switch-statement",
"return-value",
"getter"
] |
75,616,223 | 2 | null | 75,615,417 | 1 | null | Please get the value of the variable this way:
`context.Variables.GetValueOrDefault<string>("myvar")`
With the [rewrite-uri](https://learn.microsoft.com/en-us/azure/api-management/rewrite-uri-policy) the value of the variable can be appended to URL:
```
<inbound>
<set-variable name="myvar" value="@(context.Reques... | null | CC BY-SA 4.0 | null | 2023-03-02T13:40:22.873 | 2023-03-02T13:40:22.873 | null | null | 6,886,501 | null |
75,616,234 | 1 | null | null | 1 | 12 | I am working on a Kotlin Spring Boot project with the following versions:
- - -
The project is built using Gradle version 7.6.
I added the necessary dependencies to use Querydsl and generated QFiles are created successfully, and most of the fields are generated correctly. However, fields with an enum type are not gene... | Querydsl does not generate enum type fields in QFiles | CC BY-SA 4.0 | null | 2023-03-02T13:41:23.143 | 2023-03-02T13:44:27.607 | 2023-03-02T13:44:27.607 | 11,467,513 | 11,467,513 | [
"spring",
"spring-boot",
"kotlin",
"jpa",
"querydsl"
] |
75,616,233 | 1 | null | null | 0 | 21 | I am working on an existing script made by someone else which updates few google sheets. I am relatively new to Python. Everything is fine, but when lets say it updates an existing row the dropdown option or conditional formatting is also removed & when a new row is added I want the conditional formatting to apply to t... | Keep data validation and drop down same after updating Google sheets using gspread | CC BY-SA 4.0 | null | 2023-03-02T13:41:21.203 | 2023-03-02T13:41:21.203 | null | null | 15,864,441 | [
"python",
"google-sheets",
"google-api",
"gspread"
] |
75,616,224 | 1 | null | null | 0 | 68 | I am currently reading the [Dynamic Programming & MDP of Ronald Howard](https://gwern.net/doc/statistics/decision/1960-howard-dynamicprogrammingmarkovprocesses.pdf%5D).
Particularly in page 29 he presents the toymaker example with two different policies 1 and 2.Each policy has a transition probability matrix and a rewa... | Sequential value iteration in R | CC BY-SA 4.0 | null | 2023-03-02T13:40:26.157 | 2023-03-04T13:52:57.637 | 2023-03-02T14:00:10.507 | 16,346,449 | 16,346,449 | [
"r",
"dynamic-programming",
"markov-decision-process"
] |
75,616,232 | 2 | null | 75,615,649 | 3 | null | For that you need to use a [Query](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Query.html) command, which allows you to specify only the Partition key, and optionally conditions on the Sort key. A query returns 0 or multiple items.
A GetItem must give full equality on Partition and Sort key, whic... | null | CC BY-SA 4.0 | null | 2023-03-02T13:40:57.083 | 2023-03-02T13:40:57.083 | null | null | 7,909,676 | null |
75,616,231 | 1 | null | null | 1 | 23 | previosly i was just using yf.download for data, but now i have to do it asynchronously.
I have this code
```
import aiohttp
import asyncio
import pandas as pd
from io import StringIO
ticker = 'BTC-USD'
url = f'https://query1.finance.yahoo.com/v7/finance/download/{ticker}?'
headers = {
'User-Agent': 'Mozilla/5.0 (... | how to get daily data from yfinance asynchronously? | CC BY-SA 4.0 | null | 2023-03-02T13:40:51.957 | 2023-03-02T23:47:48.950 | 2023-03-02T13:50:46.283 | 21,296,686 | 21,296,686 | [
"pandas",
"dataframe",
"python-asyncio",
"aiohttp",
"yfinance"
] |
75,616,239 | 2 | null | 75,611,449 | -1 | null | In a summary search, you must sort by a result field with a summary function. Please go back and correct the sort by field on the results tab.
| null | CC BY-SA 4.0 | null | 2023-03-02T13:41:34.053 | 2023-03-02T13:41:34.053 | null | null | 7,885,772 | null |
75,616,237 | 1 | 75,616,702 | null | 0 | 19 | [like this](https://i.stack.imgur.com/Vt0Zx.jpg)
I tried isError and it showed boarder only I am expecting it to show bottom red text too
| How to handle Outlined text fied Error in Jetpack compose? | CC BY-SA 4.0 | null | 2023-03-02T13:41:33.320 | 2023-03-02T14:18:52.573 | null | null | 18,588,930 | [
"kotlin",
"android-jetpack-compose"
] |
75,616,240 | 2 | null | 75,615,876 | 0 | null | You can check if the `$customer` variable is `null` before accessing its status property.
```
if (!$customer || $customer->status !== CustomerStatus::Active->value) {
// handle disabled account
}
```
| null | CC BY-SA 4.0 | null | 2023-03-02T13:41:39.860 | 2023-03-02T13:41:39.860 | null | null | 389,985 | null |
75,616,241 | 2 | null | 75,613,329 | 2 | null | > What can I do to prevent 100% CPU usage?
What is your goal? What is the code to do?
This would at least be an improvement:
```
<-ch
return
```
This will just wait until something is received on the channel, then return, without busy waiting that eats CPU cycles.
| null | CC BY-SA 4.0 | null | 2023-03-02T13:41:44.337 | 2023-03-02T13:41:44.337 | null | null | 13,860 | null |
75,616,238 | 1 | null | null | 0 | 10 | I recently enabled Identity Platform from the Firebase interface for firebase authentication (primary for user logs). Everything worked fine for a few hours. Went to bed. Woke up. Starting working again, and now I receive this error:
```
{
"error": "invalid_grant",
"error_description": "reauth related error (inva... | reauth related error (invalid_rapt) when accessing firestore from firebase function after enabling Identity Platform | CC BY-SA 4.0 | null | 2023-03-02T13:41:33.643 | 2023-03-02T14:30:33.140 | null | null | 1,369,160 | [
"google-cloud-firestore",
"firebase-authentication",
"google-cloud-functions",
"firebase-admin",
"google-iam"
] |
75,616,244 | 2 | null | 75,615,926 | 1 | null | What's in the `Update` method happens every frame, so you need to create a manual trigger (`bool isFired`).
The idea is that when `isFired` is false, nothing happens.
Then, when `isFired` turns to true, the projectile starts moving.
Your `Fire` method actually makes the projectile move so you should rename it to `Move`... | null | CC BY-SA 4.0 | null | 2023-03-02T13:41:52.613 | 2023-03-02T13:41:52.613 | null | null | 3,527,769 | null |
75,616,178 | 1 | null | null | 0 | 14 | I have a problem installing a python package. I am in Linux environment (CCLinux Distribution 2.0 (brant)) on a . This is the log when I try to install with pip:
```
root@v700:/# pip install pyqt6
Collecting pyqt6
Using cached PyQt6-6.4.2.tar.gz (1.0 MB)
Installing build dependencies ... error
error: subprocess... | error installing PyQt6 on Yocto Linux - Cross Control Panel | CC BY-SA 4.0 | null | 2023-03-02T13:37:08.863 | 2023-03-02T13:37:08.863 | null | null | 10,989,584 | [
"python",
"build",
"pyqt",
"yocto"
] |
75,616,230 | 1 | null | null | 0 | 8 | I would like to set the width of a faceted plot dependent on the size of my window (I'm using the Vega-Lite plot in Kibana).
This would be a minimal example:
```
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"data": {
"values": [
{"category":"A", "group": "x", "value":0.1},
{"categ... | Vega-Lite: Enable Autosizing for Faceted Plot | CC BY-SA 4.0 | null | 2023-03-02T13:40:48.783 | 2023-03-02T13:40:48.783 | null | null | 7,986,844 | [
"visualization",
"vega-lite",
"vega"
] |
75,616,247 | 2 | null | 75,616,018 | 1 | null | You can use `EXISTS` to look in the same table for the same `billno` to see if there are any items with a negative quantity
```
WITH
table_a (billno,
item_desc,
qty,
amount)
AS
(SELECT 10324, 'orange', -1, -1.00 FROM DUAL
UNION ALL
SELECT 10324, '... | null | CC BY-SA 4.0 | null | 2023-03-02T13:42:05.380 | 2023-03-02T13:42:05.380 | null | null | 7,110,099 | null |
75,616,243 | 2 | null | 75,602,040 | 0 | null | You'll want to add one or more [fetch configurations](https://docs.pyscript.net/latest/reference/elements/py-config.html#a-name-fetch-fetch-a) to your <py-config> tag. This is a convenience feature for fetching files from the network, and moving them into the Virtual Filesystem that Python interacts with (inside Pyodid... | null | CC BY-SA 4.0 | null | 2023-03-02T13:41:46.443 | 2023-03-02T13:41:46.443 | null | null | 19,718,391 | null |
75,616,248 | 1 | null | null | 0 | 8 | I have two datasets (currently in geopackage files) but also have them in a PostGIS database.
1 polyline with about 1 million records
1 polygon with about 50,000 polygons
I want to intersect the lines with the polygons, so as to attribute the lines with the data for the polygons.
When a polyline passes through the poly... | Intersecting polyline with polygon in QGIS / postGIS (split line at polygon boundary) | CC BY-SA 4.0 | null | 2023-03-02T13:42:14.087 | 2023-03-02T13:42:14.087 | null | null | 2,382,563 | [
"union",
"postgis",
"intersection",
"qgis"
] |
75,616,246 | 2 | null | 75,610,032 | 0 | null | Use bash regex. 3x3 is pretty simple, it's like 3 arrays with 3 indexes:
```
l1=( '' '' '' )
l2=( '' '' '' )
l3=( '' '' '' )
```
You have to check 8 variants: 3 lines, 3 columns and 2 diagonals. This could be done in single(for each side) regex like this:
```
for side in o x; {
check="$side $side $side"
# check ... | null | CC BY-SA 4.0 | null | 2023-03-02T13:42:01.660 | 2023-03-02T16:18:28.073 | 2023-03-02T16:18:28.073 | 12,607,443 | 12,607,443 | null |
75,616,250 | 1 | null | null | -1 | 6 | In react js I have choosen a file.
File {name: 'FRA_20220128_M43_J18.jpg', lastModified: 1653047526000, lastModifiedDate: Fri May 20 2022 13:52:06 GMT+0200 (heure d’été d’Europe centrale), webkitRelativePath: '', size: 69119, …}
And now I would like to send that file to a jupyter notebook api, where I want to store tha... | jupyter notebook api: send file from react to jupyter notebook api and save file locally | CC BY-SA 4.0 | null | 2023-03-02T13:42:34.717 | 2023-03-02T13:42:34.717 | null | null | 21,319,365 | [
"python",
"reactjs",
"api",
"jupyter-notebook"
] |
75,616,253 | 2 | null | 63,426,545 | 0 | null | If you want to use `enumerate` with `tqdm`, you can use it this way:
```
for i,data in enumerate(tqdm(train_dataloader)):
images, labels = data
images, labels = images.to(device), labels.to(device)
....
```
| null | CC BY-SA 4.0 | null | 2023-03-02T13:42:56.187 | 2023-03-02T13:42:56.187 | null | null | 16,733,101 | null |
75,616,242 | 1 | null | null | 0 | 19 | I started a static project with a [Plain-HTML-Tailwind-Template](https://www.programonaut.com/how-to-create-a-website-with-html-and-tailwind-css-step-by-step/). It uses Vite for bundling with default config.
What i forgot is that i need a little bit of php so i have to rename my file from `index.html` to `index.php`. O... | index.php as Vite Entry Point | CC BY-SA 4.0 | null | 2023-03-02T13:41:46.277 | 2023-03-02T16:39:00.327 | 2023-03-02T13:51:54.390 | 15,343,004 | 15,343,004 | [
"javascript",
"php",
"vite"
] |
75,616,251 | 1 | null | null | 0 | 25 | In my WPF application, there is a grid view with three columns as Name, City, and Country. Please see the model class:
```
public class Employee
{
public string Name { get; set; }
public string City{ get; set; }
public string Country{ get; set; }
}
```
I have added the grid UI like the below code:
```
<Gri... | Accessibility narrator reading the model class name instead of grid content of WPF application | CC BY-SA 4.0 | null | 2023-03-02T13:42:37.903 | 2023-03-02T13:42:37.903 | null | null | 9,338,568 | [
"c#",
"wpf",
"accessibility",
"jaws-screen-reader",
"narrator"
] |
75,616,259 | 2 | null | 75,610,611 | 0 | null | you can do it with CSS grid:
```
#container {
display: grid;
grid-template-columns: auto auto; /* 2 columns */
width: 100px;
}
#box {
display: -webkit-box;
width: 100px;
}
#a {
display: inline-flex;
}
#tag {
display: flex;
grid-row: span 50; /* a big value to create many rows*/
}
```
```
`display: gr... | null | CC BY-SA 4.0 | null | 2023-03-02T13:43:08.683 | 2023-03-02T13:43:08.683 | null | null | 8,620,333 | null |
75,616,258 | 1 | 75,616,425 | null | 2 | 47 | I was trying to create new type from a type, but remove any property that it's value is undefined|null, this to create a fetch function that require/not require a payload argument.
The main type is:
```
type TEndpointsPayload = {
getList: undefined,
open: {
id: string
}
close: {
id: stri... | Typescript: omit undefined/null properties from type | CC BY-SA 4.0 | null | 2023-03-02T13:43:04.807 | 2023-03-03T18:04:57.950 | null | null | 4,134,411 | [
"javascript",
"typescript",
"typescript-typings",
"typescript-generics"
] |
75,616,260 | 2 | null | 75,609,759 | 0 | null | Dropbox is no longer offering the option for creating new long-lived access tokens. Dropbox is now issuing short-lived access tokens (and optional refresh tokens) instead of long-lived access tokens. You can find [more information on this migration here](https://dropbox.tech/developers/migrating-app-permissions-and-acc... | null | CC BY-SA 4.0 | null | 2023-03-02T13:43:31.597 | 2023-03-02T13:43:31.597 | null | null | 1,305,693 | null |
75,616,252 | 1 | null | null | 0 | 43 | Im having the same problem in every project that i start, i've checked my project structure, recreated, using Spring intlizr, STS4, i've checked application.properties configuration, dependencies, looked thousands of stack overflow questions, asked to GTP, prayed, but NOTHING work, im about to give up Spring
my compone... | Spring main class not scanning components | CC BY-SA 4.0 | null | 2023-03-02T13:42:55.303 | 2023-03-02T14:24:52.113 | null | null | 18,487,067 | [
"java",
"mysql",
"spring",
"spring-boot",
"jpa"
] |
75,616,262 | 2 | null | 75,616,031 | 0 | null | This will happens in development mode of react. When a component is initially render then useEffect runs two time. This issue will not come when you serve the react build on production mode. There is one solution to stop twice calling of useEffect that you have to remove `React.Strict` from root file but this one is no... | null | CC BY-SA 4.0 | null | 2023-03-02T13:43:53.700 | 2023-03-02T13:43:53.700 | null | null | 13,790,168 | null |
75,616,254 | 1 | null | null | 0 | 20 | I need to decode JSON that has multiple keys named the same. The JSON looks like this:
```
[{"errors":[{"extensions":{"code":"INTERNAL_SERVER_ERROR","reason":"INTERNAL_SERVER_ERROR"},"message":"Unexpected error occurred"}]},{"data":{"createCsrfToken":{"__typename":"CreateCsrfTokenResponse","csrfToken":"frcxsr60fG4nLnW... | Decoding JSON with same named repeating coding keys in Swift | CC BY-SA 4.0 | null | 2023-03-02T13:43:00.497 | 2023-03-02T13:57:38.487 | null | null | 12,103,296 | [
"json",
"swift"
] |
75,616,245 | 2 | null | 75,610,814 | 0 | null | OpenSSL, when using a password/salt, stores the result as a concatenation of the ASCII encoding of `Salted__`, followed by the 8 bytes salt and the actual ciphertext (the option additionally performs a Base64 encoding).
In the current code, `open_ssl_gem_encrypt()` additionally writes the IV after the salt, which is i... | null | CC BY-SA 4.0 | null | 2023-03-02T13:41:59.903 | 2023-03-02T13:41:59.903 | null | null | 9,014,097 | null |
75,616,255 | 1 | null | null | 0 | 35 | Here is how I have defined my CoreDataManager
```
class CoreDataManager {
static var shared = CoreDataManager()
private let container: NSPersistentContainer
lazy var defaultContext : NSManagedObjectContext = {
let context = NSManagedObjectContext(concurrencyType: .mainQueueConcurrencyType)... | Why my replaced Core Data .sqlite file doesn't work until app is relaunched again? | CC BY-SA 4.0 | null | 2023-03-02T13:43:01.397 | 2023-03-04T00:10:29.747 | 2023-03-04T00:10:29.747 | 472,495 | 2,725,435 | [
"ios",
"swift",
"core-data"
] |
75,616,264 | 2 | null | 75,607,267 | 1 | null | For those reading in future, here's how the final, working solution looked, with massive help from David Browne in the comments:
```
Function("MyFunction")]
public async Task Run([EventHubTrigger("my-eventhub",
ConsumerGroup = "a-consumer-group",
Connection = "EventHub.ConnectionString")... | null | CC BY-SA 4.0 | null | 2023-03-02T13:43:59.513 | 2023-03-02T13:43:59.513 | null | null | 3,012,708 | null |
75,616,261 | 1 | null | null | 0 | 19 | Ive trained a sentiment analysis model using a Logistic regression algorithm with the 'Sentiment140' dataset which has 1.6 million tweets in it but im getting inconsistent results
It gets the very basics right
'I love this' = Positive
'i hate this' = Negative
However even feeding actual given text from the dataset it g... | Logistic regression sentiment analysis model poor results? | CC BY-SA 4.0 | null | 2023-03-02T13:43:42.817 | 2023-03-02T13:55:40.073 | 2023-03-02T13:55:40.073 | 21,259,743 | 21,259,743 | [
"python",
"machine-learning",
"sentiment-analysis"
] |
75,616,263 | 2 | null | 75,616,175 | 1 | null | You're using the same cursor to execute a query while you're still iterating over the first query's results.
Don't do that; use two separate cursors instead (or, as in here, use the [Connection.execute() utility](https://docs.python.org/3.11/library/sqlite3.html#sqlite3.Connection.execute) that does that for you):
```
... | null | CC BY-SA 4.0 | null | 2023-03-02T13:43:55.957 | 2023-03-02T13:43:55.957 | null | null | 51,685 | null |
75,616,267 | 2 | null | 41,463,108 | 0 | null | (Result: The second component overrides the behaviour of the first component, so it didn't trigger):
```
window.onpopstate = function (e) { /* Do something */ }
```
```
window.addEventListener("popstate", /* Do something */ )
```
| null | CC BY-SA 4.0 | null | 2023-03-02T13:44:17.067 | 2023-03-02T13:44:17.067 | null | null | 3,763,660 | null |
75,616,268 | 1 | null | null | 0 | 9 | I have a CMake project that targets Windows using Microsoft Visual Studio generators, and the project needs to link standard system libraries such as odbc32.lib, odbccp32.lib, comdlg32.lib, advapi32.lib, Ws2_32.lib, comctl32.lib, wininet.lib, winmm.lib, im... | How to automatically include Windows system libraries with CMake/MSVC? | CC BY-SA 4.0 | null | 2023-03-02T13:44:17.187 | 2023-03-02T13:44:17.187 | null | null | 8,815,948 | [
"visual-c++",
"cmake",
"linker"
] |
75,616,269 | 2 | null | 75,616,056 | 1 | null | I know I am not answering your question directly, but the point of having a lambda function in the API - Lambda - DynamoDB pattern is not to make lambda invisible (you can call DynamoDB directly, after all), but to abstract the database call in an efficient manner. For example, having the lambda aware of the structure... | null | CC BY-SA 4.0 | null | 2023-03-02T13:44:18.607 | 2023-03-02T13:44:18.607 | null | null | 21,318,419 | null |
75,616,249 | 1 | null | null | 0 | 43 | I'm trying to make a page where i can display an athlete's profile to them by using their primary key as a refernce but I get an error as follows:
```
Environment:
Request Method: GET
Request URL: http://127.0.0.1:8000/
Django Version: 4.1.7
Python Version: 3.11.0
Installed Applications:
['django.contrib.admin',
'd... | NoReverseMatch at / Reverse for 'athlete_profile' with keyword arguments '{'pk': ''}' not found | CC BY-SA 4.0 | null | 2023-03-02T13:42:24.767 | 2023-03-02T15:25:43.467 | 2023-03-02T14:16:11.177 | 21,300,134 | 21,300,134 | [
"python",
"django",
"django-models",
"django-views",
"django-templates"
] |
75,616,271 | 2 | null | 75,615,786 | 2 | null | With the dataframe api,
```
df = spark.read.json('test.json', multiLine=True)
df.select(f.explode(f.arrays_zip('ids', 'out')).alias('data')) \
.select('data.ids', 'data.out.*') \
.show(truncate=False)
+---+------------+-----+---------+
|ids|attr |text |val |
+---+------------+-----+---------+
|id1|[a1... | null | CC BY-SA 4.0 | null | 2023-03-02T13:44:31.263 | 2023-03-02T13:44:31.263 | null | null | 11,841,571 | null |
75,616,270 | 1 | null | null | 0 | 9 | I use Thonny to access my Pico Pi (and /W). It seems like I could make use a lot of the functions of Spyder's scientific side, if I could access my Pico boards.
Am I on a non starter or is this possible.
Many Thanks if someone can shine some light!!
At the moment I have the Pico wired up with 1.3" OLED screen, just to ... | Can I use Spyder ide to access micro python on Pico Pi | CC BY-SA 4.0 | null | 2023-03-02T13:44:20.493 | 2023-03-02T13:44:20.493 | null | null | 21,319,306 | [
"spyder",
"micropython",
"raspberry-pi-pico"
] |
75,616,273 | 2 | null | 75,616,173 | 3 | null | Your error comes from:
```
format='%(asctime)::%(message)s'
```
Change it to:
```
format='%(asctime)s %(message)s'
```
And it works.
Additionally, newer versions of Python suggest we use f-strings instead of string formatting:
```
logging.info(f"Total number of training, validation and test images in destination fold... | null | CC BY-SA 4.0 | null | 2023-03-02T13:44:48.517 | 2023-03-02T13:53:11.253 | 2023-03-02T13:53:11.253 | 11,974,537 | 11,974,537 | null |
75,616,274 | 2 | null | 75,501,854 | 0 | null | There are 2 reasons your notifications are not working in production.
1. I think you are creating a notification token using Notifications.getExpoPushTokenAsync() which will create a notification token that can only be used in the Expo environment. I suggest you make the notification token using Notifications.getDevic... | null | CC BY-SA 4.0 | null | 2023-03-02T13:45:01.573 | 2023-03-02T13:45:01.573 | null | null | 15,102,108 | null |
75,616,265 | 1 | null | null | 0 | 21 | I developed a script which predicts some values and saves them into the predictions.csv file using github actions.
I then need to update the predictions.csv file on github, because i need to query it externaly.
But for some reason i get the bad credentials expection. Here is the part of the code which causes the except... | github.GithubException.BadCredentialsException: 401 - but credentials are correct? | CC BY-SA 4.0 | null | 2023-03-02T13:44:00.210 | 2023-03-02T16:25:28.163 | null | null | 14,541,828 | [
"python",
"github",
"github-actions",
"pygithub"
] |
75,616,277 | 2 | null | 58,243,356 | 0 | null | I think between also supports a parameter called inclusive.
```
month1 = df2[df2['Date'].between(bd[0], bd[1], inclusive='left')]
```
| null | CC BY-SA 4.0 | null | 2023-03-02T13:45:12.440 | 2023-03-02T13:45:12.440 | null | null | 10,327,732 | null |
75,616,275 | 2 | null | 75,615,579 | 0 | null | You mentioned: Also:
To significantly reduce the time of copy-pasting the formula 364 times, try the following.
1. Copy cell D3
2. Select cells H, L, P etc
3. Paste
This way the formula will be pasted to cells with .
- - `=INDEX(IF(A3:A="",,C3:C-B3:B))`
| null | CC BY-SA 4.0 | null | 2023-03-02T13:45:03.220 | 2023-03-02T13:45:03.220 | null | null | 1,527,780 | null |
75,616,272 | 1 | null | null | 0 | 9 | Using VsCode editor, how to access the public variables of the `StatusCode` class in the `grpc` package in Dart?
I am working on a project that involves using the `grpc` package in Dart to make RPC calls. In my code, I imported the `grpc` package with the alias `$grpc`, and attempted to access the public variables of t... | Using VsCode editor, how can I access public variables of StatusCode class in grpc package using the alias in Dart? | CC BY-SA 4.0 | null | 2023-03-02T13:44:32.273 | 2023-03-02T13:44:32.273 | null | null | 15,117,519 | [
"dart",
"autocomplete",
"grpc",
"alias",
"vscode-extensions"
] |
75,616,279 | 1 | null | null | -1 | 24 | Qgraphicsitemgroup Position not Updating to click mousepress in the scene.
How to update the QgraphicsItemGroup position in the scene
| How to change QGraphicsItemGroup position on mousepress? | CC BY-SA 4.0 | null | 2023-03-02T13:45:26.673 | 2023-03-03T13:15:18.280 | 2023-03-03T13:15:18.280 | 17,726,418 | 20,822,344 | [
"c++",
"qt"
] |
75,616,278 | 2 | null | 75,615,707 | 0 | null | You can't print a label by using pure HTML, but you can do that using JS or PHP and a socket connection.
The following is an example in PHP
```
/* assigning port number and timeout to the socket */
$port = 9100;
$sec = 5;
$usec = 0;
$printer_ip = /* the printer IP address */
$socket = socket_create(AF_INET, SOCK_STREA... | null | CC BY-SA 4.0 | null | 2023-03-02T13:45:13.327 | 2023-03-02T13:45:13.327 | null | null | 11,323,821 | null |
75,616,256 | 1 | null | null | 0 | 19 | I am trying to following this tutorial [https://sites.google.com/site/smooksorg/documentation/documentation-smooks-1-1-x/examples/example---edi-to-xml](https://sites.google.com/site/smooksorg/documentation/documentation-smooks-1-1-x/examples/example---edi-to-xml) but I am getting in the following error:
```
Failed to l... | Failed to locate jar file for EDI Mapping Model URN 'org.milyn.edi.unedifact:d03b-mapping:1.7.1.0'. Jar must be available on classpath | CC BY-SA 4.0 | null | 2023-03-02T13:43:02.907 | 2023-03-02T13:43:02.907 | null | null | 17,141,839 | [
"java",
"edi"
] |
75,616,282 | 2 | null | 75,139,167 | 0 | null | I thing you forget to place widgets in the box:
```
topBox = Box(win, layout=grid)
firstNumHead = (topBox, text="First number", grid=[0,0])
firstNum = TextBox(topBox, grid=[0,1])
```
| null | CC BY-SA 4.0 | null | 2023-03-02T13:45:36.143 | 2023-03-02T13:45:36.143 | null | null | 21,307,423 | null |
75,616,285 | 2 | null | 19,678,769 | 0 | null | ```
mysql -e "show databases;"
mysql -e "create database mydatabasename;"
mysql -e "use mydatabasename;"
```
| null | CC BY-SA 4.0 | null | 2023-03-02T13:45:50.707 | 2023-03-02T13:45:50.707 | null | null | 17,934,821 | null |
75,616,276 | 1 | null | null | 0 | 17 | I'm looking for away to create an outline effect similar to [this example](https://stackoverflow.com/questions/56795062/how-to-get-three-js-linesegments-to-only-render-visible-lines/56799542#56799542) in `threejs` that also work with `SVGRenderer`.
I've done some researches and found out that `SVGRenderer` does not sup... | Is there a way to make an outline effect that work with SVGRenderer threejs | CC BY-SA 4.0 | null | 2023-03-02T13:45:03.827 | 2023-03-02T13:47:52.860 | 2023-03-02T13:47:52.860 | 21,319,344 | 21,319,344 | [
"svg",
"three.js"
] |
75,616,286 | 1 | null | null | 0 | 8 | I am using an `<ErrorBoundary>` component as described in the [docs on error boundaries](https://reactjs.org/docs/error-boundaries.html).
However, it seems that Chrome's devtool setting "break on exceptions" no longer works to pause execution on a line of code that throws, which isn't surprising because the error bound... | How to break on exceptions when using an error boundary | CC BY-SA 4.0 | null | 2023-03-02T13:45:54.820 | 2023-03-02T13:45:54.820 | null | null | 2,225,281 | [
"reactjs",
"debugging",
"google-chrome-devtools"
] |
75,616,284 | 1 | null | null | 0 | 13 | I am developing a Node-RED Custom Node in TypeScript using a Nx monorepository with following hierarchy:
```
reponame
+ packages
| + package-a
| + package-b
| + custom-node
```
The Custom Node imports which imports via `import { TestClass } from "@reponame/package-b"`. I performed `npm install`s and it compiles ... | Node-RED cannot find local module | CC BY-SA 4.0 | null | 2023-03-02T13:45:39.697 | 2023-03-02T13:45:39.697 | null | null | 13,826,114 | [
"node.js",
"npm",
"node-red"
] |
75,616,280 | 1 | 75,626,700 | null | 0 | 39 | In my ASP.NET CORE project I use JWT authentication. Here's code from Program.cs:
```
// For authentication
var _key = builder.Configuration["Jwt:Key"];
var _issuer = builder.Configuration["Jwt:Issuer"];
var _audience = builder.Configuration["Jwt:Audience"];
var _expirtyMinutes = builder.Configuration["Jwt:ExpiryMinute... | 401 error when requesting ASP.NET CORE with JWT auth | CC BY-SA 4.0 | null | 2023-03-02T13:45:27.380 | 2023-03-03T11:47:37.863 | null | null | 7,949,123 | [
"c#",
"asp.net-core",
"jwt"
] |
75,616,291 | 2 | null | 75,602,399 | 0 | null | You should use [GetMatch](https://gohugo.io/content-management/page-resources/?search-input=getmatch#methods) instead of Get.
```
{{ $image := resources.GetMatch .Params.cover }}
```
Additionally, you should make sure that the `assetDir` is set correctly (you can do so in your config):
```
assetDir: static
```
Source... | null | CC BY-SA 4.0 | null | 2023-03-02T13:46:13.130 | 2023-03-02T13:46:13.130 | null | null | 2,397,550 | null |
75,616,288 | 1 | 75,616,643 | null | 0 | 16 | I am using AG-grid community version JavaScript version and trying to edit rows using 'edit' action button as per the blog given [here](https://blog.ag-grid.com/full-row-editing-ag-grid-committing-changes-button-click/).
When the grid has more columns, edit feature stops working which we can test just by repeating colu... | AG-Grid full row editing does not work if there are too many columns | CC BY-SA 4.0 | null | 2023-03-02T13:45:59.907 | 2023-03-02T14:14:08.677 | null | null | 21,319,349 | [
"javascript",
"ag-grid"
] |
75,616,289 | 1 | null | null | 0 | 38 | I have this SQL query that I am running on a .NET application, and I want to determine the types of each of the column of the resulting query. The query has multiple joins, column aliasing and possible casting as well. For example I could have something like this,
```
SELECT
T1.col1,
T1.col2,
T2.col1 AS ... | Get SQL Column Types from Complex Query in .NET Application | CC BY-SA 4.0 | null | 2023-03-02T13:46:05.903 | 2023-03-02T13:46:05.903 | null | null | 20,531,872 | [
"c#",
"sql",
".net",
"sql-server",
"sqlclient"
] |
75,616,297 | 2 | null | 43,750,801 | 0 | null | it is bcz of changing view frame by scale `self.transform = CGAffineTransform(scaleX: 0.9, y: 0.9)`
for example try change background color instead of scale and it will be ok
| null | CC BY-SA 4.0 | null | 2023-03-02T13:46:34.903 | 2023-03-02T13:46:34.903 | null | null | 5,893,286 | null |
75,616,293 | 1 | null | null | 0 | 3 | [enter image description here](https://i.stack.imgur.com/sw0Il.jpg)Hi there,
I working on my own WP theme but have the challenge of loading images and the consol record show as attached images(it's happen with Safari only and my website using )
I would like to ask how should I reconfigure my site on Cpanel to fix this ... | how to configure Cpanel to fix the is not allowed by Access-Control-Allow-Origin. on safari | CC BY-SA 4.0 | null | 2023-03-02T13:46:27.027 | 2023-03-02T13:46:27.027 | null | null | 21,319,194 | [
"wordpress",
"sitecore",
"cpanel-uapi"
] |
75,616,283 | 1 | null | null | 1 | 32 | I've made a simple little "game" where every time you click the picture of a balloon, it gets bigger until it "explodes" & then resets. Now I'm trying to get it to work the same only with the enter button. I want it to be able to do both the click and the keypress event, so I don't want to swap out the click event for ... | How to get a keypress to function the same as a click listener event in Javascript | CC BY-SA 4.0 | null | 2023-03-02T13:45:39.530 | 2023-03-02T14:56:34.663 | null | null | 21,044,618 | [
"javascript",
"addeventlistener",
"keypress"
] |
75,616,266 | 1 | null | null | 0 | 10 | Below is my ts file which I am trying to unit test which has mat-dialog and I am creating a form, till constructor code is getting covered but rest of the method I am unbale to call.Below is my spec file where I have mocked mat-dialog, forms module and my service and trying to mock ngoninit method.
```
import { Compone... | I am trying to mock the mat-dialog which has ngoninit method ,in angular but it is not getting covered | CC BY-SA 4.0 | null | 2023-03-02T13:44:07.050 | 2023-03-02T13:44:07.050 | null | null | 14,340,344 | [
"angular",
"unit-testing",
"karma-jasmine",
"angular12",
"karma-coverage"
] |