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,636,003
1
null
null
0
18
`module 'matplotlib.pyplot' has no attribute 'xlabel'` I have tried all methods listed in other post and they don't work Please help[enter image description here](https://i.stack.imgur.com/0EZyf.png) I read all the similar questions about this error, they are either spelling mistakes or importing the `matplotlib.pyplot...
module 'matplotlib.pyplot' has no attribute 'xlabel'
CC BY-SA 4.0
null
2023-03-04T13:37:30.467
2023-03-04T16:00:47.713
null
null
21,331,653
[ "python" ]
75,636,010
1
null
null
0
7
By what I know DPI is only appropriate in the context of describing quality of output device, in which describes how dense does pixels distribute on the plane of monitor or printed paper. But how does it make sense that I need to pass in an argument specifying DPI when calling constructor of WriteableBitmap. I tried lo...
Avalonia UI, Why should I specify DPI when creating a Bitmap Image and how should I do it
CC BY-SA 4.0
null
2023-03-04T13:38:47.633
2023-03-04T13:38:47.633
null
null
12,463,119
[ "avaloniaui" ]
75,636,008
1
null
null
0
27
I've been trying to set up migration in .NET, I have auto-generated migrate files, but there are some problems with it. When I try to execute this piece code: ``` modelBuilder .HasAnnotation("Npgsql:CollationDefinition:insensitive_collation", "en-u-ks-primary,en-u-ks-primary,icu,") .HasAnnotation("Relational:Ma...
PostgreSQL migration parameter "locale" must be specified
CC BY-SA 4.0
null
2023-03-04T13:38:21.960
2023-03-04T15:32:47.787
2023-03-04T15:32:47.787
12,572,405
16,832,655
[ "c#", ".net", "database", "postgresql", "entity-framework-5" ]
75,636,009
2
null
75,632,343
0
null
Thank you everyone, who tried to answer. At the end i've found the solution. Thank's to ChatGPT, lmao. Here is the code with my correction. May be it ll be usefull for someone. That's not a perfect solution, but one of the best in my case, which doesn't cause too much lag, glithces and fit the text inside the window al...
null
CC BY-SA 4.0
null
2023-03-04T13:38:35.743
2023-03-04T13:38:35.743
null
null
21,293,012
null
75,636,011
1
null
null
-2
91
I have an array of numbers: ``` [66,43,642] ``` If I were to sort this array in ascending order, it would become: ``` [43,66,642] ``` Given , I want to obtain an array of 1-indexed indices of its elements in the same order as the elements would appear in the sorted array, therefore: ``` [2,1,3] ``` Note: this withou...
How to sort an array in C++ and get the original index positions of the sorted elements?
CC BY-SA 4.0
null
2023-03-04T13:38:52.080
2023-03-04T15:40:30.627
2023-03-04T15:40:30.627
1,839,439
20,056,410
[ "c++", "arrays", "sorting" ]
75,636,006
1
null
null
0
11
I have a grid NxN where each cell can be "water" or "land", and I want to count for each land cell the number of connected land cell. Eventually, it may be okay just to check if 2 land cell are connected or not (in particular, I need it to do a "Nurikabe" solver). For example, given ``` 0 0 0 0 1 1 0 0 1 1 1 0 0 0 0 0 ...
How to create grid-connectivity constraint in Minizinc
CC BY-SA 4.0
null
2023-03-04T13:38:19.260
2023-03-04T13:40:58.113
2023-03-04T13:40:58.113
14,454,690
14,454,690
[ "constraint-programming", "minizinc" ]
75,636,018
2
null
17,708,152
0
null
I ran into a similar problem in 2023. I just install monolog ``` composer require symfony/monolog-bundle ``` After that, the 502 error disappeared, and debugging information began to be saved to /var/log in the project folder.
null
CC BY-SA 4.0
null
2023-03-04T13:40:30.033
2023-03-04T13:41:11.310
2023-03-04T13:41:11.310
7,502,471
7,502,471
null
75,636,012
2
null
72,099,265
0
null
● Test suite failed to run ``` TypeError: Cannot read properties of undefined (reading 'html') at new JSDOMEnvironment (node_modules/jest-environment-jsdom/build/index.js:72:44) ``` I fixed, by removed node-modules in projects and reinstall the dependencies ⤵️ ``` sudo npm install jest-environment-jsdom@29.4.3 --...
null
CC BY-SA 4.0
null
2023-03-04T13:39:21.600
2023-03-04T13:55:05.053
2023-03-04T13:55:05.053
8,931,899
8,931,899
null
75,636,019
2
null
64,588,327
0
null
Using other editor didn't work. Restarting and the deployment worked for me.
null
CC BY-SA 4.0
null
2023-03-04T13:40:42.230
2023-03-04T14:45:28.613
2023-03-04T14:45:28.613
965,146
21,331,718
null
75,636,014
1
null
null
0
11
I have Python app that process data and I am running it in Docker. Locally, it is working fine. When I tried for a first time to run on AWS App Runner I needed health check, so I expose 80 port in Dockerfile and install nginx that listen on that port. When I run container locally I can access the nginx homepage. With c...
AWS App Runner health check fails on port 80 for Python app
CC BY-SA 4.0
null
2023-03-04T13:39:35.297
2023-03-04T13:39:35.297
null
null
20,982,929
[ "amazon-web-services", "docker", "containers", "amazon-ecs", "aws-app-runner" ]
75,636,007
1
null
null
-1
35
So I was following along a pygame tutorial and the code looks like this: ``` import pygame import os import time import random pygame.font.init() player_vel = 5 WIDTH, HEIGHT = 750, 750 BLUE_BULLETS = pygame.image.load(os.path.join("c:\\pixel_laser_blue.png")) YELLOW_BULLETS = pygame.image.load(os.path.join("c:\\pixe...
python terminal showing the output of another program
CC BY-SA 4.0
null
2023-03-04T13:38:19.750
2023-03-04T14:11:04.150
2023-03-04T14:11:04.150
20,103,413
20,814,926
[ "python", "pygame" ]
75,636,017
1
null
null
0
25
In Linux or typically an OS with MMU for virtual memory management system like x86 architecture, I am realizing a scenario through an example where memory is available yet malloc can fail. Please confirm if this is actually possible. Consider we have 4GB memory free in the system and we allocate 1 million of chunks of ...
memory unused and available yet memory alloc failure - posssible?
CC BY-SA 4.0
null
2023-03-04T13:39:49.807
2023-03-04T22:42:29.873
2023-03-04T22:42:29.873
21,313,424
21,287,351
[ "linux", "memory-management", "linux-kernel", "paging", "virtual-memory" ]
75,636,016
1
null
null
2
29
I have a webpage in which, at the vertical center of the screen, there are three elements which should be placed evenly: an "about" link, a logo depicting an N letter, and a "music" link. I want the elements to be placed evenly. Here's the CSS I applied to the parent container element: ``` .container { display: fle...
Flex place-content: space-evenly seems to place elements with uneven distances from the page center
CC BY-SA 4.0
null
2023-03-04T13:39:40.773
2023-03-04T15:11:47.293
null
null
12,424,975
[ "html", "css" ]
75,636,022
2
null
19,605,150
0
null
I would use: ``` ^(?=.*?[a-z])(?=.*?[A-Z])(?=.*?\d)(?=.*?[\W_]).{8,}$ ``` Most of the answers assume that you use one of their predefined special characters, but I would say it is better, if any special character can be used, if it is not a-zA-Z0-9, so you could write: `[^a-zA-Z0-9]`, but it is shorter to use "Not Wor...
null
CC BY-SA 4.0
null
2023-03-04T13:41:34.750
2023-03-04T13:56:13.163
2023-03-04T13:56:13.163
17,927,333
17,927,333
null
75,636,023
2
null
75,635,657
0
null
I think that separate your function will be a better approach. In computer science there is a design pattern called [separation of concerns](https://en.wikipedia.org/wiki/Separation_of_concerns), in simple words this design pattern tells us we need to separate our functions into small ones that do only one thing. My ...
null
CC BY-SA 4.0
null
2023-03-04T13:42:10.320
2023-03-04T16:53:56.087
2023-03-04T16:53:56.087
21,287,266
21,287,266
null
75,636,028
2
null
38,188,449
0
null
You can set the initial folder with the argument ``` tk.filedialog(initialdir="{some folder}") ``` But to restrict the useres selection path you could go an write your one costume file selector with os and mirroring the files with a tkinter canvas. I hope this helps somewhat
null
CC BY-SA 4.0
null
2023-03-04T13:42:37.240
2023-03-04T13:42:37.240
null
null
13,490,787
null
75,636,025
1
null
null
0
10
I just installed windows 7 sp1 on an old thinkpad T400 and I am seeing display inssues. I am currently on an external screen (vga port) but displaying only on the laptop screen shows the same issue. As you can see in the pictures some pixels are blurry and messed up. Then they come back and forth. I tried what is liste...
windows 7 display issue : blurry and messed up images and fonts
CC BY-SA 4.0
null
2023-03-04T13:42:12.617
2023-03-04T17:08:02.173
2023-03-04T17:08:02.173
2,217,647
2,217,647
[ "windows-7" ]
75,635,958
2
null
75,635,863
1
null
If I'm looking at it right, `MainPage` and `Table` each have their own instance of `useTable` and therefore each have their own state, reducer, and dispatch. To see the issue, add a `useEffect` to `MainPage` to see that clicking the checkbox does not cause re-render in main page. Then add one to `Table` to see that it...
null
CC BY-SA 4.0
null
2023-03-04T13:25:29.323
2023-03-04T16:25:26.550
2023-03-04T16:25:26.550
633,183
633,183
null
75,636,030
2
null
75,636,007
0
null
The issue is due to missing parentheses in the pygame.event.get line of your code. get is a function so it should end with (). It should be pygame.event.get() instead of pygame.event.get. ``` for event in pygame.event.get(): if event.type == pygame.QUIT(): run = False ``` Try this.
null
CC BY-SA 4.0
null
2023-03-04T13:42:39.400
2023-03-04T13:42:39.400
null
null
3,443,037
null
75,636,020
1
null
null
0
9
I'm trying to write a code for playing the Super Mario Bros game using the gym_super_mario_bros package in Python 3.9 and PyCharm. However, I keep getting an error and I'm not sure how to proceed. Here's the error message that I receive: ``` C:\Users\hp\OneDrive\Bureau\visual Pc\chapter 6 combining images\lib\site-pack...
could not using gym package and returning of tuple for mario game on python
CC BY-SA 4.0
null
2023-03-04T13:41:26.727
2023-03-04T13:41:26.727
null
null
15,277,661
[ "python", "python-3.x", "package", "pycharm" ]
75,636,024
1
null
null
0
12
I have an application, consisting of [https://i.stack.imgur.com/x7ksM.png](https://i.stack.imgur.com/x7ksM.png) The console does not show me any problems :< I don't know what to do anymore :/ I would like to pass dynamically changing information ``` data() { return { hash: '', }; }, ``` I use the emitter from MITT for...
Emitter from MITT npm now receiving emits
CC BY-SA 4.0
null
2023-03-04T13:42:10.393
2023-03-04T14:19:18.607
2023-03-04T14:19:18.607
13,302
21,307,058
[ "npm", "vuejs3", "eventemitter" ]
75,636,031
2
null
75,635,816
1
null
You you're asking on a proper solution, here you are. Each time your `sentence` is changed the process starts again. The last word is kept. ``` const RenderSentence = ({ sentence }) => { const [word, setWord] = useState('') useEffect(() => { const words = sentence.trim().split(/\s+/g) let index = 0 cons...
null
CC BY-SA 4.0
null
2023-03-04T13:43:19.487
2023-03-04T13:43:19.487
null
null
5,479,607
null
75,636,026
1
null
null
0
16
I have created an API using symfony 6 and API Platform 3. For the first entities, everything was fine but I have an error now when I do a GET collection request for `User` entity (`api/users`) : `Unable to generate an IRI for the item of type \"App\\Entity\\User\"` So why this happens and how to fix it ? Here is an exc...
API Platform - Unable to generate an IRI for the item of type
CC BY-SA 4.0
null
2023-03-04T13:42:13.077
2023-03-04T13:42:13.077
null
null
13,665,462
[ "api", "rest", "symfony" ]
75,636,033
2
null
75,635,625
1
null
This may or may not be what you're looking for, but the following code creates an iterator to run through colours from a defined gradient, in this case I used 'cool', but you can see more at [https://matplotlib.org/stable/tutorials/colors/colormaps.html](https://matplotlib.org/stable/tutorials/colors/colormaps.html) li...
null
CC BY-SA 4.0
null
2023-03-04T13:43:24.757
2023-03-04T13:43:24.757
null
null
16,481,462
null
75,636,034
1
null
null
-2
16
Unable to pass my python variable to html/code -- The scenario is I'm running python from the CLI and taken in two user inputs then I would like to pass those inputs to shell command sendmail (while still in the CLI) python3 mailsend.py EXAMPLE import os ``` name = input("Email: ") print(name) ``` > myCmd = 'sen...
Pass Python variable to html code inside CLI
CC BY-SA 4.0
null
2023-03-04T13:43:32.070
2023-03-04T14:44:15.800
2023-03-04T14:44:15.800
7,052,850
7,052,850
[ "html", "python-3.x", "command-line-interface" ]
75,636,035
1
null
null
0
6
There is already one outstanding 'SendAsync' call for this WebSocket instance. ReceiveAsync and SendAsync can be called simultaneously, but at most one outstanding operation for each of them is allowed at the same time.' ``` static async Task Main(string[] args) { const string Url = @"https://www.instagram.com/s...
There is already one outstanding 'SendAsync' call for this WebSocket instance
CC BY-SA 4.0
null
2023-03-04T13:43:32.310
2023-03-04T13:43:32.310
null
null
5,695,903
[ "c#", "selenium-webdriver" ]
75,636,037
1
null
null
0
6
I used to use KDE and there was option in setting that can modify moving wallpaper and panels when desktop switching And I'm looking for the alternative setting in Ubuntu - GNOME. So is there way to disable moving wallpaper while desktop switching in GNOME like in KDE. Im using ubuntu 22.10 and GNOME 43 (Xorg) Thanks. ...
Is there way to disable moving wallpaper while desktop switching in GNOME?
CC BY-SA 4.0
null
2023-03-04T13:43:51.107
2023-03-04T13:43:51.107
null
null
19,024,458
[ "linux", "ubuntu", "gnome", "wallpaper", "desktop-wallpaper" ]
75,636,038
1
null
null
0
22
I'm using react-image-crop to crop an uploaded image before saving it to the database. When a user uploads an image, the image is displayed in an tag with a defined width & height and with objectFit: contain styles. When the user crops the image, the preview shows a much smaller part of the cropped image. The end ima...
react-image-crop when image has objectFit: contain styles, the image is not cropped properly
CC BY-SA 4.0
null
2023-03-04T13:44:14.463
2023-03-04T13:44:14.463
null
null
18,682,847
[ "javascript", "reactjs", "crop", "react-image-crop" ]
75,636,040
1
null
null
0
15
I'm using DynamoDB and use the Single Table Design. I have a Type Character that must only be eable to join one Room at a time. My access patterns are: - - My solution was to use the Word "Room" as SK making it therefore unique and adding the roomId as attribute. But I would rather use the roomId as SK so I could use ...
How to make a type under a PK unique without the SK being unique?
CC BY-SA 4.0
null
2023-03-04T13:44:50.373
2023-03-04T13:53:06.443
2023-03-04T13:53:06.443
5,418,362
5,418,362
[ "amazon-dynamodb" ]
75,636,021
2
null
75,635,786
2
null
Your `0` and `1` are character type. Transforming to number with `type.convert(as.is = TRUE)` will make the code work: ``` library(dplyr) df %>% type.convert(as.is=TRUE) %>% mutate(new_column = if_else(rowSums(select(., contains("PCR"))) > 0, "positive", "negative")) ``` ``` Filovirus (…¹ Filov…² Filov…³ Filo …...
null
CC BY-SA 4.0
null
2023-03-04T13:41:30.483
2023-03-04T14:06:18.930
2023-03-04T14:06:18.930
13,321,647
13,321,647
null
75,636,041
1
null
null
0
23
We have built a custom controller for a customer which passed products data and loads their products in a custom url. The controllers are basically like this: ``` class CustomProducts(http.Controller): @http.route('/custom', type='http', auth='public', website=True, methods=['GET']) def render_custom_products(s...
Custom controller very slow for public users, fast if logged in
CC BY-SA 4.0
null
2023-03-04T13:44:51.903
2023-03-04T18:58:39.587
2023-03-04T18:50:09.727
7,523,351
7,523,351
[ "python", "odoo", "odoo-13" ]
75,636,036
2
null
75,635,816
1
null
If you're open to a different approach. You can do this entirely with CSS: ``` const RenderSentence = ({ wordList }) => { return ( <div className="render-canvas"> {wordList.map((word, i) => ( <span key={i} className="word animateIn" /* create a stagger effect */ ...
null
CC BY-SA 4.0
null
2023-03-04T13:43:49.257
2023-03-04T13:43:49.257
null
null
3,577,849
null
75,636,042
1
null
null
-1
16
I want to enable a button by writing something into multiple textboxes. I'm using the following code for every single TextBox, but the button is not enabling. Even if I try with only 1 TextBox. Button Enabled is set to false. This is the code: ``` private void UsernameTextBox_TextChanged(object sender, EventArgs e) { ...
Enable Button by writing something into a textbox issue
CC BY-SA 4.0
null
2023-03-04T13:45:05.653
2023-03-04T16:24:43.423
2023-03-04T16:24:43.423
18,519,921
21,283,101
[ "c#", "button", "textbox" ]
75,636,043
2
null
75,629,816
0
null
Try this: ``` const mockStructuredClone = jest.fn(); global.structuredClone = () => mockStructuredClone(); it('should work', () => { mockStructuredClone.mockReturnValue({ test: 42 }); ```
null
CC BY-SA 4.0
null
2023-03-04T13:45:32.470
2023-03-04T13:45:32.470
null
null
6,738,911
null
75,636,048
2
null
75,625,040
0
null
Covert geometry to wtk: `df = df([df['geometry'].to_wkt()], ).agg('a' : 'sum', 'b' : 'sum', 'c' :'sum').reset_index()` Then back to geometry: `df['index'] = gpd.GeoSeries.from_wkt(df['index'])` `df = gpd.GeoDataFrame(df)`
null
CC BY-SA 4.0
null
2023-03-04T13:46:02.667
2023-03-04T13:46:02.667
null
null
18,429,677
null
75,636,046
2
null
15,323,269
0
null
As a supplement to @moodymudskipper's answer, if you want to use it in a `magrittr` pipe, you can use ``` testdata %>% ggplot(aes(x=!!sym(names(.)[2]), y=!!sym(names(.)[3]))) + geom_point(size=4, alpha = 0.5) ``` Also, if you want to use `aes` in a specific layer only, you can use ``` testdata %>% {ggplo...
null
CC BY-SA 4.0
null
2023-03-04T13:45:48.313
2023-03-04T13:45:48.313
null
null
16,107,920
null
75,636,047
1
null
null
1
18
In my SwiftUI-based app, I have a dictionary mapping arrays of Strings to Strings: ``` let featuresByVersion: [String : [String]] = [ "1.2" : [ "A new feature in this version", "Another new feature in this version.", "Etc.", ], "1.1" : [ "A new feature in this version.", ...
Map Dictionary to SwiftUI Collapsible List
CC BY-SA 4.0
null
2023-03-04T13:46:00.210
2023-03-04T13:46:00.210
null
null
4,646,803
[ "swiftui", "swiftui-list" ]
75,636,049
2
null
75,636,017
0
null
Your scenario is possible and it is called . It happens when memory is allocated and freed in a way that leaves gaps of unusable memory between allocated blocks. The Linux kernel has a feature called that tries to reduce memory fragmentation by moving movable pages to one end of a memory zone and creating larger conti...
null
CC BY-SA 4.0
null
2023-03-04T13:46:22.063
2023-03-04T13:46:22.063
null
null
20,907,307
null
75,636,045
2
null
75,535,673
0
null
The rand() function in C generates a random number between 0 and RAND_MAX, which is typically a large number defined in the stdlib.h library. In Python, we can use the random module to generate random numbers. The random module provides several functions to generate random numbers, including randint(), uniform(), and r...
null
CC BY-SA 4.0
null
2023-03-04T13:45:36.823
2023-03-04T13:45:36.823
null
null
19,571,600
null
75,636,053
2
null
75,628,279
0
null
If you want your contract to run you have to create a transaction that calls your contract. Contracts don't run on their own or based on some time interval. In order for you to achieve what you are talking about you'd have to create some tooling on the client side that polls you wallet at some interval and if it has to...
null
CC BY-SA 4.0
null
2023-03-04T13:47:10.720
2023-03-04T13:47:10.720
null
null
100,214
null
75,636,052
2
null
75,635,892
0
null
Short answer, no. Nullable reference types are really syntactic sugar You could use some custom class with generics & implicit operators ``` public class NeverNull<T> { private NeverNull(T value) { Value = value ?? throw new ArgumentNullException(nameof(value)); } public T Value { get; } p...
null
CC BY-SA 4.0
null
2023-03-04T13:47:08.877
2023-03-04T13:47:08.877
null
null
636,814
null
75,636,039
1
null
null
-1
29
This is App.js: ``` import Bookshelves from "./components/Bookshelves"; import './App.css'; import Home from "./components/Home" import {BrowserRouter, Routes, Route} from "react-router-dom" function App() { return ( <div className={"App"}> <BrowserRouter> <Routes> <Route exa...
Why is useNavigate not working in my React app?
CC BY-SA 4.0
null
2023-03-04T13:44:45.760
2023-03-04T15:46:07.377
null
null
21,239,929
[ "javascript", "reactjs", "react-router" ]
75,636,054
1
null
null
1
13
Please explain what does negative elevation angle means in the low earth orbiting (LEO) satellite means. The LEO data moves from a positive elevation angle to a negative one. Can the negative elevation be useful?
Negative elevation angle
CC BY-SA 4.0
null
2023-03-04T13:47:14.857
2023-03-04T13:47:14.857
null
null
20,977,437
[ "math", "satellite", "orbital-mechanics" ]
75,636,050
1
75,636,083
null
0
27
I have the text below stored in the variable `description`: ``` `This is a code update` Official Name: 2011 New York City Electrical Code Code Tile Name: Reference: https://www.nyc.gov/site/buildings/codes/electrical-code.page Citation: §27-3024 Doc Title: Local Law 39-2011, Local Law 99-2013, Local Law 39-2015 S...
Javascript - Find the Position of a Newline Character from a Certain position
CC BY-SA 4.0
null
2023-03-04T13:46:32.353
2023-03-04T13:58:02.290
2023-03-04T13:58:02.290
4,780,863
4,780,863
[ "javascript", "regex", "string" ]
75,636,057
1
null
null
0
11
For Rails v5 and 6, `get` requests to `/%C0` will generate an exception: ``` An ActionController::BadRequest occurred in #: Invalid path parameters: Invalid encoding for parameter: � ``` So, to say it another way, going to `https://mydomainapp.com/%C0` will create an error. How to fix this and get a 404 instead (like ...
Rails: How to fix Invalid path parameters: Invalid encoding for parameter: �
CC BY-SA 4.0
null
2023-03-04T13:48:17.137
2023-03-04T13:48:17.137
null
null
210,006
[ "ruby-on-rails", "ruby-on-rails-5", "ruby-on-rails-6.1" ]
75,636,058
1
null
null
0
5
## im making a bot in lua using discordia but the print(message.content) returns a nil value or blank space ``` `local discordia = require('discordia') local client = discordia.Client() client:on('ready', function() print('Logged in as '.. client.user.username) end) client:on('messageCreate', function(message) ...
discordia message.content is a nil value
CC BY-SA 4.0
null
2023-03-04T13:48:29.230
2023-03-04T13:48:29.230
null
null
21,288,010
[ "lua", "discord" ]
75,636,059
1
null
null
0
6
Example code: ``` [source,hs,subs="quotes"] ---- List~map~ id~a~ = id~List{sp}a~ ---- ``` Current rendering: [](https://i.stack.imgur.com/WZkbH.png)
Subscript with spaces and capital letters in a sourcecode block?
CC BY-SA 4.0
null
2023-03-04T13:48:39.713
2023-03-04T14:14:53.920
2023-03-04T14:14:53.920
1,546,844
1,546,844
[ "asciidoc" ]
75,636,055
1
null
null
-4
34
I am trying to compile a project in R in UBUNTU and I keep getting this error ``` * installing to library ‘/home/thasmika/R/x86_64-pc-linux-gnu-library/3.6’ * installing *source* package ‘SomaSimulation’ ... ** using staged installation ** libs g++ -std=gnu++11 -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,r...
g++ error no such file or directory libCGAL.so.13.0.1 in UBUNTU
CC BY-SA 4.0
null
2023-03-04T13:47:35.867
2023-03-04T16:06:30.217
2023-03-04T16:06:30.217
5,221,626
21,291,977
[ "c++", "r" ]
75,636,062
1
null
null
0
15
In moodle 3.11 is it possible to overwrite javascript file in folder `admin/tool/policy/amd/build`? I tried adding the same path to theme folder with overwrited files but it did not work. Thanks in advance
moodle overwriting javascript file
CC BY-SA 4.0
null
2023-03-04T13:49:00.150
2023-03-04T13:49:00.150
null
null
6,640,169
[ "moodle" ]
75,636,013
1
null
null
0
11
I have a splash screen that looks like this: ``` class SplashScreen extends StatefulWidget { SplashScreen({super.key}); bool launched = false; @override State<SplashScreen> createState() => _SplashScreenState(); } class _SplashScreenState extends State<SplashScreen> { bool animate = false; @override v...
Flutter Bloc - State results to be closed if called from ValueNotifier's listener (Bad state: Cannot emit new states after calling close)
CC BY-SA 4.0
null
2023-03-04T13:39:24.873
2023-03-04T13:47:24.633
2023-03-04T13:47:24.633
9,806,105
9,806,105
[ "flutter", "state", "bloc" ]
75,636,051
1
null
null
0
24
I have a Springboot Reactive Web Rest API with a Mongo Database. My Method in my `UserHandler` for adding a user looks like this: ``` public Mono<User> addUser(Mono<User> user) { return user .flatMap(u -> repo.findByEmail(u.getEmail()) .flatMap(existingUser -> Mono.error( new Use...
Why isn't my user inserted in my mongoDB? spring webFlux reactive REST
CC BY-SA 4.0
null
2023-03-04T13:47:07.763
2023-03-04T23:09:24.817
2023-03-04T23:09:24.817
21,333,833
21,331,709
[ "spring-boot", "spring-webflux", "spring-rest", "spring-mongodb" ]
75,636,044
1
null
null
0
12
there was a problem with my code, i'm working on this for a day, i'm studying about nosql using react js but i don't have any idea on how to do it but here's my code: App.js ``` import React, { useRef, useState, useEffect } from 'react'; import './App.css'; function App(){ const nameRef = useRef(); const emailRef ...
How to set up mongoDB, insert and select data from mongoDB using React JS
CC BY-SA 4.0
null
2023-03-04T13:45:36.613
2023-03-04T13:45:36.613
null
null
18,604,594
[ "reactjs", "database", "mongodb" ]
75,636,063
1
null
null
-1
7
I created an angular login form using bootstrap modal but after logging in the dashboard(new web page) appears to be grayed out. I cannot find the solution. I don't want that screen to be grayed out. Please see this code and it will help me in my project submission in college [enter image description here](https://i.st...
In angular on button click of bootstrap modal form, the new web page is grayed out
CC BY-SA 4.0
null
2023-03-04T13:49:06.867
2023-03-04T13:49:06.867
null
null
20,839,502
[ "angular", "bootstrap-4", "modal-dialog", "bootstrap-modal", "bootstrap-5" ]
75,636,064
2
null
70,844,367
0
null
Kinda found some interesting solution when i saw there is a env specified/highlighted in the vscode dart extension page. After i added the env FLUTTER_ROOT which is the flutter sdk path, the error no longer exists. Hope this help
null
CC BY-SA 4.0
null
2023-03-04T13:49:14.893
2023-03-04T13:49:14.893
null
null
8,484,931
null
75,636,065
2
null
75,634,791
0
null
With foreach and a formatted string: ``` $arr = ['foo (bar1)', 'bar (foo2)', 'bas', 'foo (bas3)', 'bar']; $res = []; foreach($arr as $k => $v) { sscanf($v, '%[^ (] %s', $arr[$k], $res[$k]); $res[$k] = $res[$k] ?? ''; // or '&nbsp;' } print_r($arr); print_r($res); ```
null
CC BY-SA 4.0
null
2023-03-04T13:49:28.317
2023-03-04T13:49:28.317
null
null
2,255,089
null
75,636,056
1
75,636,321
null
-2
32
I have two projects in my solution one is a client side web assembly Blazor project and the other is a c# project in which I keep my DTOs and other classes. The following is a simplified overview of the structure of the blazor app: Web - - I import the above asd follows in a _imports.razor file: @using Web.Shared; The...
Namespace conflict between blazor app and c# project classes
CC BY-SA 4.0
null
2023-03-04T13:47:49.933
2023-03-04T21:26:44.713
null
null
3,469,841
[ "c#", ".net-core", "blazor", "blazor-webassembly" ]
75,636,069
2
null
75,636,000
0
null
First create a virtual environment: ``` py -m venv env ``` then activate the VM: ``` env\scripts\activate ```
null
CC BY-SA 4.0
null
2023-03-04T13:50:36.090
2023-03-04T13:50:36.090
null
null
12,572,405
null
75,636,066
2
null
75,618,600
0
null
This is a testbench synchronization issue. The testbench stimulus block is re-written below to use synchronous methodology rather #10 delays. This synchronizes the testbench with the DUT. Otherwise data is changing at the clock edge and sampling at the dut is a race. Use ``` @(posedge clk) ``` with non-blocking assi...
null
CC BY-SA 4.0
null
2023-03-04T13:49:58.457
2023-03-05T01:50:52.843
2023-03-05T01:50:52.843
899,862
899,862
null
75,636,070
2
null
75,633,408
0
null
This code creates the list of values in a variable with the for loop then writes them all at once. ``` import csv # Write Headers headerlist = (['Class', 'Grade', 'Semester']) with open('venv/User Data/Classes.csv', 'w', newline='') as file: dx = csv.DictWriter(file, delimiter=',', fieldnam...
null
CC BY-SA 4.0
null
2023-03-04T13:50:37.577
2023-03-04T14:34:38.740
2023-03-04T14:34:38.740
4,621,513
21,241,812
null
75,636,067
1
null
null
1
12
I'm using `node-querybuilder` to connect to `mysql`. this is setting to connect: ``` const settings = { host: process.env.HOST_DB, database: process.env.NAME_DB, user: process.env.USER_DB, password: process.env.PASSWORD_DB, } ``` This is my `.env` file: ``` HOST_DB=localhost NAME_DB=news USER_DB=root PASSWORD_...
node-querybuilder: can't set database and user from .ENV file in connection setting
CC BY-SA 4.0
null
2023-03-04T13:50:02.853
2023-03-04T17:22:29.020
2023-03-04T13:54:06.203
5,389,997
18,710,252
[ "javascript", "node.js", "express", "mysql-connector" ]
75,636,072
2
null
75,635,844
0
null
Then you do just do that, `if randomnumber not in luckynumber:` ``` import random luckynumber = [] while len(luckynumber) < 6: randomnumber = random.randint(1, 49) if randomnumber not in luckynumber: luckynumber.append(randomnumber) print(luckynumber) ```
null
CC BY-SA 4.0
null
2023-03-04T13:51:01.870
2023-03-04T13:51:01.870
null
null
7,916,438
null
75,636,074
1
null
null
0
15
To create archives with Ansible, I use community.general.archive module. Unfortunately, I have to archive files weighing more than 15 gigabytes and it takes a lot of time. The format of the archive does not play a big role for me. I know I could write my own module that would use pigz for example, but I'm wondering if ...
Speed up Ansible archive creation
CC BY-SA 4.0
null
2023-03-04T13:51:11.693
2023-03-04T13:51:11.693
null
null
16,773,835
[ "ansible", "archive" ]
75,636,076
1
null
null
0
7
How to disable reCaptcha for firebase phone login in react native. I don't really know what to do, I don't have perfect knowledge of react native.
Native firebase reCaptcha
CC BY-SA 4.0
null
2023-03-04T13:51:29.317
2023-03-04T17:28:20.120
null
null
21,331,738
[ "firebase", "react-native" ]
75,636,071
1
null
null
0
14
I am now trying to use simulink to model the TCP network by Misra’s Nonlinear Model, whose mathematic equation is below. [](https://i.stack.imgur.com/beL7Y.png) I am now working with the model below, which is the queue of the router. [](https://i.stack.imgur.com/noktr.png) As you can see, there is an integrator in the ...
How to set integrator to make it reset its state to zero when the output negative and the state is negative?
CC BY-SA 4.0
null
2023-03-04T13:50:41.957
2023-03-04T13:50:41.957
null
null
19,012,323
[ "matlab", "tcp", "simulink" ]
75,636,075
1
null
null
0
28
I have a question. Is it possible to use WindowsAPICodePack or some other way to remove/hide taskbar preview. Or is it impossible. I tried this: ``` // Disables the taskbar thumbnail preview TaskbarManager.Instance.TabbedThumbnail.SetThumbnailClip((new WindowInteropHelper(this)).Handle, new System.Drawing.Rectangle(0,0...
How to remove/hide the entire taskbar preview in Windows 10/11
CC BY-SA 4.0
null
2023-03-04T13:51:14.247
2023-03-04T13:51:14.247
null
null
6,473,719
[ "c#", "wpf", ".net-6.0", "windows-api-code-pack" ]
75,636,077
1
null
null
-4
19
I have installed live server in my VS code and I have been working with it for a while and when I was working with it, it suddenly stopped and my browser show me couldn't open the page and this stuff.. I tried opening it in more than one browser and it didn't work, even in the vs code the live server is running but eve...
My live server is not opening in the browser
CC BY-SA 4.0
null
2023-03-04T13:51:34.783
2023-03-04T13:51:34.783
null
null
20,968,096
[ "javascript", "html", "visual-studio-code", "web", "liveserver" ]
75,636,078
1
null
null
0
9
I am facing Service Unavailable issue on running my ASP.NET MVC project with VUE JS the first time. If I refresh the browser, I can see the application page. I am using ASP.NET MVC running on .NET framework 4.5. Without refreshing the browser, the application need to run. Kindly help to solve this issue.
503.Service Unavailable coming project on very first time
CC BY-SA 4.0
null
2023-03-04T13:51:38.573
2023-03-04T14:14:53.130
2023-03-04T14:14:53.130
13,302
5,706,107
[ "asp.net-mvc" ]
75,636,060
1
null
null
0
14
When I moves back with an arrow (`onBackPressed`) the shared element transition works correctly but when I click bottom navigation view item there is no shared element transition. I have no idea why. I have my code a bit similar to accepted answer from here [How to used a shared transition from RecyclerView to a Fragme...
Android shared element transition works only partially
CC BY-SA 4.0
null
2023-03-04T13:48:49.730
2023-03-04T13:49:24.153
2023-03-04T13:49:24.153
21,172,734
21,172,734
[ "java", "android", "android-fragments", "shared-element-transition" ]
75,636,079
2
null
75,635,676
1
null
You need to actually own or manage a location on Google Business Profile in order to be able to retrieve data for it. So for this you need a Google account. An alternative for your usecase might be the [Places API](https://developers.google.com/maps/documentation/places/web-service/overview). In order to use it, you ne...
null
CC BY-SA 4.0
null
2023-03-04T13:51:53.007
2023-03-04T19:49:34.243
2023-03-04T19:49:34.243
3,062,971
3,062,971
null
75,636,068
1
null
null
0
13
I'm getting below error when I try to run the minikube after downloading its binary:- ``` ❌ Exiting due to GUEST_START: wait: /bin/bash -c "sudo env PATH="/var/lib/minikube/binaries/v1.22.3:$PATH" kubeadm init --config /var/tmp/minikube/kubeadm.yaml --ignore-preflight-errors=DirAvailable--etc-kubernetes-manifests,Dir...
Unable to start minikube on MacOS
CC BY-SA 4.0
null
2023-03-04T13:50:26.300
2023-03-04T14:00:15.777
null
null
10,633,596
[ "macos", "kubernetes", "minikube" ]
75,636,081
1
null
null
0
16
I'm having a 10 node AWS r4.16xlarge cluster, Under the Executor tab in spark UI, the number under "cores" is being different every time I spin the cluster, sometimes it shows 200, some other time it shows 300. I'm not sure whether it is related to dynamic allocation. What I would like to know is the total number of av...
Number of cores in AWS r4.16xlarge cluster
CC BY-SA 4.0
null
2023-03-04T13:52:05.880
2023-03-05T00:54:26.163
2023-03-05T00:54:26.163
174,777
7,343,922
[ "amazon-web-services", "pyspark", "amazon-ec2", "amazon-emr" ]
75,636,084
1
null
null
0
11
When using skolemization to replace existentially quantified variables in an expression, any existential bound at the top level can be replaced by a new globally unique constant, however if the existential is under a universal quantification it cannot be replaced by a constant. It must be replaced instead by a new glob...
Why can't all existential binders be replaced by unique constants during skolemization?
CC BY-SA 4.0
null
2023-03-04T13:52:26.833
2023-03-04T13:52:26.833
null
null
2,746,760
[ "logic", "proof", "theorem-proving", "type-theory" ]
75,636,083
2
null
75,636,050
1
null
Use a [look behind assertion](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions/Assertions) to find the line that starts with "Official Name:". The string after the official name should contain all characters except for line breaks. : use the multiline flag (`/m`) to make the expression ...
null
CC BY-SA 4.0
null
2023-03-04T13:52:17.333
2023-03-04T13:57:49.390
2023-03-04T13:57:49.390
5,157,454
5,157,454
null
75,636,080
1
75,639,437
null
0
22
In order to apply the value of synchronize dynamically, the following code was written. I executed the next cli ``` $ nest new project $ npm i --save @nestjs/config ``` This is my code ``` /.env # related to server SERVER_MODE = dev SERVER_PORT = 3000 # releated to DB DB_TYPE = mysql DB_HOST = localhost DB_PORT = 330...
How to use process.env before @Module() in app.module.ts
CC BY-SA 4.0
null
2023-03-04T13:51:55.297
2023-03-05T00:03:14.400
2023-03-05T00:03:14.400
62,576
20,747,208
[ "nestjs", "nestjs-config" ]
75,636,087
2
null
75,633,628
0
null
This is the code, I finally able to figure it out: ``` # https://stackoverflow.com/questions/36464982/ploting-solid-of-revolution-in-python-3-matplotlib-maybe # R is a region in the xy plane bounded by y = (x^2 + 4)^(-1) # Create the animation of A solid of revolution that is formed by rotating R around the y axis. im...
null
CC BY-SA 4.0
null
2023-03-04T13:52:38.653
2023-03-04T13:52:38.653
null
null
19,238,204
null
75,636,085
1
null
null
0
5
I tried to install `nautilus-wipe` on MATE 22.10 which cannot find the package: ``` $ sudo apt install nautilus-wipe Reading package lists... Done Building dependency tree... Done Reading state information... Done Package nautilus-wipe is not available, but is referred to by another package. This may mean that the pack...
E: Package 'nautilus-wipe' has no installation candidate Ubuntu MATE 22.10
CC BY-SA 4.0
null
2023-03-04T13:52:30.470
2023-03-04T13:52:30.470
null
null
20,914,576
[ "ubuntu", "installation", "apt", "mate" ]
75,636,090
2
null
75,635,337
2
null
The UNION is free to reorder the results of its subqueries, and is likely to do so as part of uniquifying them. Add an ORDER BY RANDOM() outside the UNION if you want the results to have a finally random order.
null
CC BY-SA 4.0
null
2023-03-04T13:53:04.910
2023-03-04T13:53:04.910
null
null
1,721,239
null
75,636,073
1
null
null
3
68
It is well known that built-in C++ types uint32_t, int32_t, uint64_t, int64_t and even GCC/CLang built-in types __int128 and unsigned __int128, all have sizeof exactly equal to bit-width divided by 8. But if you print sizeof of Boost's `boost::multiprecision::uint256_t` or `uint512_t` then you get 48 bytes instead of 3...
C++ Boost multiprecision integer uint256_t has sizeof bigger than 32 bytes
CC BY-SA 4.0
null
2023-03-04T13:51:10.713
2023-03-04T21:45:36.360
2023-03-04T19:10:44.423
224,132
941,531
[ "c++", "boost", "x86-64", "bigint", "boost-multiprecision" ]
75,636,093
2
null
31,915,653
0
null
How about: ``` var dragged = undefined; element.addEventListener('dragstart', function () { dragged = this; }); element.addEventListener('dragend', function () { dragged = undefined; }); element.addEventListener('dragenter', function (e) { //e.g. if (dragged.classList.contains('list-item')) { ...
null
CC BY-SA 4.0
null
2023-03-04T13:53:59.740
2023-03-04T13:53:59.740
null
null
20,305,038
null
75,636,092
2
null
75,635,019
1
null
mbedTLS expects signature in DER format -> 2 integer components, with first hex value starting with `0x30`. Python signer function must therefore be updated to ``` # From signer = DSS.new(ECC.import_key(private_key), 'fips-186-3') # To signer = DSS.new(ECC.import_key(private_key), 'fips-186-3', encoding = 'der') ``` ...
null
CC BY-SA 4.0
null
2023-03-04T13:53:54.380
2023-03-04T13:53:54.380
null
null
3,716,664
null
75,636,088
2
null
75,634,519
0
null
``` monitors = Monitor.objets.filter(store="my_store") monitors = monitors.annotate(link_id=F("link_set__id")) monitors = monitors.filter(link_id__isnull=False) monitors = monitors.alias(link_last_change=F("link_set__last_change")) monitors = monitors.order_by("id", "-link_last_change").distinct("id") last_link_ids = L...
null
CC BY-SA 4.0
null
2023-03-04T13:52:45.287
2023-03-04T13:52:45.287
null
null
20,263,044
null
75,636,094
2
null
35,303,118
0
null
use the isarray on the return value, cancel = not array, 1 or files isarray is true. if isarray(return) then read files else exit
null
CC BY-SA 4.0
null
2023-03-04T13:54:03.170
2023-03-04T13:54:03.170
null
null
21,331,776
null
75,636,061
2
null
75,620,404
0
null
For the problem statement, two type of events are important - “Visit” and “Cancel/Missed Appt”. Let’s create two separate columns marking them as 1 and others as 0. Assuming the table name is P1. ``` SELECT CaseID, ReferenceID, EventDT, EventType, CASE WHEN EventType = ‘Visit’ THEN 1 ELSE 0 ...
null
CC BY-SA 4.0
null
2023-03-04T13:48:54.177
2023-03-04T14:08:59.330
2023-03-04T14:08:59.330
4,127,614
4,127,614
null
75,636,091
1
75,636,470
null
0
34
``` Padding( padding: EdgeInsets.all(10), child: InkWell( onTap: (){}, child: Container( width: 130, decoration: BoxDecoration( borderRadius: BorderRadius.circular(20), color: MyTheme....
GridView builder in flutter from list of array
CC BY-SA 4.0
null
2023-03-04T13:53:14.310
2023-03-04T17:36:22.313
2023-03-04T17:08:04.110
19,521,776
19,521,776
[ "android", "flutter" ]
75,636,089
1
null
null
0
18
I tried setting up my repo CI/CD with GitHub actions, but I kept getting errors because of my env variable that passed to it via secrets. My yml code is attached and this is my [repo](https://github.com/oreoluwadnd/Exchequer/blob/main/.github/workflows/node.yml) ``` name: EXCHEQUER CI on: push: branches: [main] ...
Github actions cant find my enviroment variable via secrets
CC BY-SA 4.0
null
2023-03-04T13:52:54.790
2023-03-04T19:51:22.163
2023-03-04T19:42:36.277
11,328,725
11,328,725
[ "github-actions", "cicd", "github-secret" ]
75,636,098
2
null
74,299,434
0
null
Bigger question is where do you identify when your "IVR" starts. Where ever your starting point is for you calls, set one or more attributes, and then use your Lambda invoke as a counter to report the data where you need it.
null
CC BY-SA 4.0
null
2023-03-04T13:55:03.427
2023-03-04T13:55:03.427
null
null
21,329,598
null
75,636,097
1
null
null
1
23
With a C# .NET core application code under Windows I'm receiving a large amount of single byte array data per second from an external device into computer's RAM memory. In C# I then copy this array data to hard disk and send the file location to a Python program to processes it and I use the following method for that: ...
How to estimate the amount of time it takes for a C# method to save the data array in RAM into a memory in hard disk?
CC BY-SA 4.0
null
2023-03-04T13:54:52.287
2023-03-04T13:54:52.287
null
null
15,310,236
[ "python", "c#", "performance", "ram" ]
75,636,096
2
null
75,635,889
2
null
This behavior stems from how the [ToAsyncEnumerable](https://github.com/dotnet/reactive/blob/85f1eb7c53e27cccdbeee3e0b044916168843fcc/Ix.NET/Source/System.Linq.Async/System/Linq/AsyncIterator.cs) operator is implemented in the [System.Linq.Async](https://www.nuget.org/packages/System.Linq.Async) package. This operator ...
null
CC BY-SA 4.0
null
2023-03-04T13:54:31.827
2023-03-04T13:54:31.827
null
null
11,178,549
null
75,636,099
1
null
null
-1
18
I searched a lot but no solution resolved my problem. Actually I want to use AutoMapper to map two `Recode` Type with same arguments but I get following error: > Missing type map configuration or unsupported mapping.Mapping types: TadaLegalEmployerDto -> TadaLegalEmployerModel EmployeeAndEmployer.Api.Models.TadaDtos.T...
AutoMapper - Missing type map configuration or unsupported mapping - Mapping Record Type
CC BY-SA 4.0
null
2023-03-04T13:55:08.750
2023-03-04T14:23:33.830
null
null
7,042,390
[ "c#", ".net", "asp.net-core", "automapper", "record" ]
75,636,100
1
null
null
0
17
I am learning gitui ([https://github.com/extrawurst/gitui](https://github.com/extrawurst/gitui)), after installing gitui on my system, i did the following things to run gitui in a new git repository ``` [giga@chad ~/projects]$ git init css Initialized empty Git repository in /mnt/library/projects/css/.git/ [giga@chad ~...
gitui doesnt recognize git repository refuses to start
CC BY-SA 4.0
null
2023-03-04T13:55:25.667
2023-03-04T14:04:21.710
2023-03-04T14:04:21.710
21,164,301
21,164,301
[ "git" ]
75,636,102
2
null
75,623,878
0
null
One choice is to consider rather altering an existing API, write a new one. Name it APIv2 or something. Now you can leave all of the existing consumers alone unless they actually need the new field. If your group are resistant to altering this 'single version of an API' pattern, one could create a second DS for the new...
null
CC BY-SA 4.0
null
2023-03-04T13:55:32.283
2023-03-04T13:55:32.283
null
null
803,367
null
75,636,095
1
null
null
0
16
I'm using react-responsive-carousel in my React Project. I want to control the number of items shown on screen, (3 items in desktop view and 1 in mobile view). At first, I tried to add a prop named "slidesToShow" as suggested by Chatgpt (although I couldn't find this prop in official documentation, anyways, tried to gi...
How to control the number of items shown in react-responsive-carousel?
CC BY-SA 4.0
null
2023-03-04T13:54:15.087
2023-03-04T14:33:01.597
null
null
18,640,404
[ "javascript", "reactjs", "react-responsive-carousel", "react-paginate" ]
75,636,103
1
null
null
0
21
I have the following C# script acting as a "Time Manager" within Unity: ``` void Update() { timer -= Time.deltaTime; if (timer <= 0) { SetCurrentDay(currentDate.day.day++); if (currentDate.day.day >= currentDate.month.maxDays) { SetCurrentDay(0); SetCurrent...
Update loop does not show last day in month before rolling over
CC BY-SA 4.0
null
2023-03-04T13:55:34.817
2023-03-04T14:03:56.217
null
null
9,170,790
[ "c#", "unity3d", "game-engine", "game-development" ]
75,636,105
1
75,636,163
null
0
38
I have a docker-compose [file](https://github.com/openimis/openimis-dist_dkr/blob/main/docker-compose.yml) for many images. Here is a part that I am interested in. ``` backend: container_name: backend build: context: https://github.com/openimis/openimis-be_py.git image: openimis/backend:${PROJECT_NAME...
What command: start in docker-compose is doing?
CC BY-SA 4.0
null
2023-03-04T13:56:03.663
2023-03-04T15:08:00.473
null
null
9,183,844
[ "bash", "docker", "docker-compose" ]
75,636,104
2
null
68,141,719
0
null
the correct if statement: ``` moveToHome(BuildContext context) async { if (_formkey.currentState!.validate()) { setState(() { changeButton = true; }); await Future.delayed(Duration(seconds: 1)); await Navigator.pushNamed(context, MyRoutes.HomeRoute); setState(() { chang...
null
CC BY-SA 4.0
null
2023-03-04T13:55:44.560
2023-03-04T13:55:44.560
null
null
21,331,665
null
75,636,108
2
null
75,635,956
0
null
EDIT: I added a form to the input in the index.html. I am not sure why this works seeing as I am already making a POST request in javascript. If anyone could explain why it works, I would still appreciate it.
null
CC BY-SA 4.0
null
2023-03-04T13:56:09.973
2023-03-04T13:56:09.973
null
null
12,439,183
null
75,636,106
1
null
null
0
5
The simple code I wrote in python using the Adafruit-io module works as a script, but when I package it as an EXE, it doesn't work and I get the error "The 'paho-mqtt' distribution was not found and is required by Adafruit-IO". ``` import sys from Adafruit_IO import MQTTClient ADAFRUIT_IO_KEY = '**********' ADAFRUIT_I...
I get the error "The 'paho-mqtt' distribution was not found" in Python Adafruit IO module
CC BY-SA 4.0
null
2023-03-04T13:56:06.360
2023-03-04T14:58:29.320
2023-03-04T14:58:29.320
15,853,401
15,853,401
[ "python", "exe" ]
75,636,107
1
null
null
0
10
Powershell question. I want to do mouse clicking after size of log-file being changed. In link Mouse Click automation with powershell (or other non-external software) there is example how to use New-Object SystemDrawingPoint that helps for the second part of my question. But I don't know how to "connect" these two acti...
I want to do mouse clicking after size of specific log-file being changed. (within PowerShell)
CC BY-SA 4.0
null
2023-03-04T13:56:06.480
2023-03-04T13:56:06.480
null
null
21,329,227
[ "windows", "powershell" ]
75,636,110
1
75,636,276
null
0
12
Is the following approach for the RBAC aspect correct? Can't a hacker change 'admin' to 'moderator'? ``` app.use("/users", requireRole.verifyRole('admin'), require("./routes/usersRoutes")); ``` Do you have any suggestions on how to solve this differently?
RBAC - role recognition
CC BY-SA 4.0
null
2023-03-04T13:56:54.323
2023-03-04T14:24:28.230
2023-03-04T14:19:33.643
15,045,890
15,045,890
[ "node.js", "express", "middleware", "roles", "rbac" ]
75,636,101
1
null
null
0
19
I am trying to sync core data with iCloud. I have set up all the core date entities and and localy everything is working, data is saving and retrieving. When in my entity I have a Transformable object witch is picture. When I was creating Image I understood that it should not be optional, so I crossed out that check bo...
SwiftUI Core data + CloudKit
CC BY-SA 4.0
null
2023-03-04T13:55:31.567
2023-03-04T13:55:31.567
null
null
20,655,285
[ "swiftui", "core-data", "icloud" ]