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,639,904 | 1 | null | null | 0 | 5 | I'm deploying an app on Vercel and everything builds correctly except for my header image. I just get the name of the image file. When I open the app through react on the local server, the logo image shows up as it should. Any ideas? Right now the image in just in the public folder in react. I have another image in the... | Broken image path on Vercel deployment | CC BY-SA 4.0 | null | 2023-03-05T02:35:24.147 | 2023-03-05T02:35:24.147 | null | null | 21,334,304 | [
"reactjs",
"image",
"deployment",
"vercel"
] |
75,639,840 | 1 | null | null | 0 | 17 | I want to use the strlen($POST['variable']) statement to validate that all the data in my form has data, but the strlen function doesn't work as it should. Returns the value of 0 in all fields even if there is data in the fields of the forms. Can someone help me verify my code? Thank you so much.
```
<!DOCTYPE html>
<h... | Strlen($POST['variable']) returns value 0 even if data exists | CC BY-SA 4.0 | null | 2023-03-05T02:12:49.850 | 2023-03-05T02:12:49.850 | null | null | 21,334,234 | [
"php",
"html",
"strlen"
] |
75,639,906 | 1 | 75,639,949 | null | -2 | 33 | When I compile my c++ code, my visual studio 2022 jumps out an error, the error does not appear in my cpp file but in the xutility file.
```
template <class _InIt, class _Ty>
_NODISCARD constexpr _InIt _Find_unchecked1(_InIt _First, const _InIt _Last, const _Ty& _Val, false_type) {
// find first matching _Val
f... | error C2678 binary '==': no operator found which takes a left-hand operand of type 'const _Ty' (or there is no acceptable conversion) | CC BY-SA 4.0 | null | 2023-03-05T02:36:00.977 | 2023-03-05T03:10:53.727 | 2023-03-05T02:47:16.987 | 21,106,720 | 21,106,720 | [
"c++"
] |
75,639,909 | 1 | null | null | 0 | 5 | Is there a way to transform a multi-indexed dataframe to latex codes generating table with multiple panels correspongding to the first-level index?
```
multi_index = pd.MultiIndex.from_product([["A", "B"], ["a", "b"]])
df=pd.DataFrame([1,2,3,4],index=multi_index)
```
[The original dataframe.](https://i.stack.imgur.com... | Is there a way to transform a dataframe to latex codes generating table with multiple panels? | CC BY-SA 4.0 | null | 2023-03-05T02:36:43.233 | 2023-03-05T02:36:43.233 | null | null | 21,334,236 | [
"dataframe",
"latex",
"multi-index"
] |
75,639,908 | 2 | null | 75,637,983 | 0 | null | In your `urls.py` add a path like:
```
from myapp.views import detail
urlpatterns = [
...
path('detail/<str:service_type>', detail, name='detail'),
...
]
```
Create a view which manages looking up the detail and rendering your detail template; something like the following in your `views.py`:
```
from djan... | null | CC BY-SA 4.0 | null | 2023-03-05T02:36:17.467 | 2023-03-05T02:36:17.467 | null | null | 4,872,140 | null |
75,639,910 | 1 | null | null | 0 | 9 | I have been reading and watching videos on LSTM networks and how they interact with a sequence of input. In the examples I have found the number of LSTM nodes equals the input sequence length. For example, a sequence of 5 is fed into an LSTM layer of 5 nodes. This makes intuitive sense to me as the first input is fed i... | LSTM Layer Longer Than Sequence Length | CC BY-SA 4.0 | null | 2023-03-05T02:37:35.217 | 2023-03-05T02:37:35.217 | null | null | 6,632,577 | [
"tensorflow",
"keras",
"lstm"
] |
75,639,907 | 1 | 75,639,964 | null | 1 | 35 | Assuming I have a text file filled with random words or letters, I need to be able to increment the amount of times a letter is seen. For this example, I am trying to find the letter 'a'. While the program does compile and return a number, the number can either be too high or low concerning the amount of the certain le... | How to return amount of a certain letters from a text file using a method | CC BY-SA 4.0 | null | 2023-03-05T02:36:08.817 | 2023-03-05T03:41:05.520 | 2023-03-05T03:08:06.807 | 21,313,034 | 21,313,034 | [
"java",
"methods",
"text-files"
] |
75,639,911 | 1 | null | null | 0 | 4 | The new version of CnosDB seems to be compatible to SQL. I am able to create a table as follows according to the [manual](https://docs.cnosdb.com/en/query/table.html#create-common-table):
```
CREATE TABLE air (
visibility DOUBLE,
temperature DOUBLE,
presssure DOUBLE,
TAGS(station)
);
```
But how could I ge... | How to Get the Size of a Table in CnosDB | CC BY-SA 4.0 | null | 2023-03-05T02:37:59.463 | 2023-03-05T02:37:59.463 | null | null | 18,488,955 | [
"database"
] |
75,639,913 | 2 | null | 75,639,207 | 0 | null | We can call the function in a loop outputing a data.frame column for every iteration (`map2_dfc`), then `bind_rows` with the names column.
Since the arguments to `rnorm` are all constants except `sd`, we loop through a vector of `sd`s, and `1:6`, the last one just for the number of repetitions.
```
set.seed(1)
library(... | null | CC BY-SA 4.0 | null | 2023-03-05T02:39:05.467 | 2023-03-05T02:39:05.467 | null | null | 13,972,333 | null |
75,639,903 | 1 | null | null | 0 | 5 | I am trying to create authenticaiton sytem where a user can loging using a magic link.
i am usign a custom user mode.
```
class UserAuthView(CreateAPIView):
http_method_names = ['post']
serializer_class = TestUserListSerializer
permission_classes = (IsAuthenticatedTestUserPermissionAdmin,)
def post(sel... | Django - Authentication credentials were not provided for magiclink | CC BY-SA 4.0 | null | 2023-03-05T02:34:27.340 | 2023-03-05T02:34:27.340 | null | null | 21,240,334 | [
"django",
"authentication",
"token"
] |
75,639,914 | 2 | null | 42,324,419 | 0 | null | I wanted a version that could fit nicely on a single slide, without sacrificing clarity. Here's what I came up with:
```
def number_of_digits(number: int) -> int:
return int(math.log10(abs(number))) + 1
def multiply(x: int, y: int) -> int:
# We CAN multiply small numbers
if abs(x) < 10 or abs(y) < 10:
... | null | CC BY-SA 4.0 | null | 2023-03-05T02:39:23.497 | 2023-03-05T02:39:23.497 | null | null | 1,718,155 | null |
75,639,916 | 2 | null | 75,639,846 | 1 | null | To add color to the histograms in ggplot and facet_wrap, you can use the fill argument in the geom_histogram function to specify the color for each histogram. Here's an example code:
```
ObesityDataSet_raw_and_data_sinthetic %>%
ggplot(aes(x=Height, fill=Gender)) +
geom_histogram(bins = 14, alpha=0.5, position = "i... | null | CC BY-SA 4.0 | null | 2023-03-05T02:40:25.087 | 2023-03-05T02:40:25.087 | null | null | 21,331,901 | null |
75,639,917 | 2 | null | 75,613,616 | 0 | null | To make the HP (or other UI elements) visible on every map, you can use a `GameObject` that is set to `DontDestroyOnLoad()` (just remember to control how you add it, so it won't appear in the main menu). To display it only in fights, not on the map overview, you can use layers, as derHugo said [here](https://stackoverf... | null | CC BY-SA 4.0 | null | 2023-03-05T02:40:30.320 | 2023-03-05T02:40:30.320 | null | null | 1,115,019 | null |
75,639,922 | 2 | null | 75,635,066 | 0 | null | A ELB (Load Balancer) can be used even with only one instance and might things easier if you want to scale-out in the future or consider other deployment strategies. So there is no technical harm in using one (except that it cost more, but that's financially).
| null | CC BY-SA 4.0 | null | 2023-03-05T02:43:41.017 | 2023-03-05T02:43:41.017 | null | null | 127,400 | null |
75,639,926 | 2 | null | 75,639,892 | 0 | null | your script looks good, when i first started lua roblox a got the same error while trying to check the players.
Your script runs before your char load. So you first need to check if he is in the game.
or instead use the `player added function` then check if the character is there using `if player(setting passed in the ... | null | CC BY-SA 4.0 | null | 2023-03-05T02:46:00.493 | 2023-03-05T02:46:00.493 | null | null | 21,194,311 | null |
75,639,920 | 1 | null | null | 0 | 13 | I'm a researcher. I have found that one paper using a modified version of [angr](https://github.com/aerosec/jetset_engine/tree/master/angr). He doesn't fork the official [angr](https://github.com/angr/angr) repo. I'd like to compare it from the official repo to see what code he added for the paper.
I have done the foll... | How to find the most similar git commit based on a none-git repo? | CC BY-SA 4.0 | null | 2023-03-05T02:43:06.863 | 2023-03-05T02:43:06.863 | null | null | 13,810,379 | [
"git",
"github"
] |
75,639,915 | 1 | null | null | 0 | 56 | I have been teaching myself JavaScript, and I like the idea of code-generated art. I came across this design that is made up of circles changing in size and overlapped by different colors.
How would something like [this reference image](https://i.stack.imgur.com/8qIxO.jpg) be coded in JavaScript? I'm guessing `for` loo... | Create generative art circle pattern | CC BY-SA 4.0 | null | 2023-03-05T02:39:53.837 | 2023-03-05T03:44:13.720 | 2023-03-05T03:44:13.720 | 6,243,352 | 21,334,274 | [
"javascript",
"generative-art",
"pythonplotter"
] |
75,639,924 | 1 | null | null | 0 | 3 | I am currently deploying a [Docker version](https://docs.cnosdb.com/en/Install_cnosdb.html#docker) for CnosDB v2.2. After deploying the instance, I restart the CnosDB server. Some requests work but others don't.
Where can I find the error log file?
I tried these places: logs/debug.log, messages.log and logs/http.log wi... | Where can I find the error log for CnosDB v2.2 (Docker version)? | CC BY-SA 4.0 | null | 2023-03-05T02:44:56.237 | 2023-03-05T02:44:56.237 | null | null | 18,488,955 | [
"database"
] |
75,639,921 | 1 | null | null | 0 | 4 | I am trying to create a React website and get it hosted. I've built the website and it works fine on LocalHost:3000, however, problems arrise when I try to host it. I've used commands such as `npm run build` as well as `yarn run build` (hoping that it would change something, it didn't.). Additionally, I pasted the foll... | Hosting a React website on Hostinger - error 403 | CC BY-SA 4.0 | null | 2023-03-05T02:43:36.310 | 2023-03-05T02:43:36.310 | null | null | 20,799,790 | [
"create-react-app",
"hosting",
"web-hosting",
"nextui"
] |
75,639,919 | 1 | null | null | 0 | 17 | I am doing some operations on a pandas dataframe, specifically:
- - `dataframe.apply()`
Here's the simplest test-case I've been able to create:
```
import pandas as pd
df = pd.DataFrame(
[["Fred", 1, 44],
["Wilma", 0, 39],
["Barney", 1, None]],
columns=["Name", "IntegerColumn", "Age" ])
def translat... | Why is Pandas converting an existing column from int to float when running apply? | CC BY-SA 4.0 | null | 2023-03-05T02:42:06.287 | 2023-03-05T03:50:14.040 | 2023-03-05T03:39:22.587 | 4,518,341 | 1,597,106 | [
"pandas"
] |
75,639,930 | 1 | null | null | 0 | 5 | I am using TwinCAT 3.
I am trying to read the floating variable via MODBUS TCP.
The read variables are in a word array. How can I convert 2 word into float/real? I mean both word first want to combine and then save as another variable as DWORD.
Moreover when I have to do swapping?
| Combination of two word into a double word in TwinCAT 3? | CC BY-SA 4.0 | null | 2023-03-05T02:47:35.247 | 2023-03-05T02:47:35.247 | null | null | 16,650,024 | [
"modbus"
] |
75,639,929 | 2 | null | 15,711,755 | 0 | null | Hoping this serves as an alternative answer. Cheers!
```
import collections
ship = {"NAME": "Albatross",
"HP":50,
"BLASTERS":13,
"THRUSTERS":18,
"PRICE":250}
# unsequenced key value pair in the dict
print ship
# before using inherent dict for creating an OrderedDict
print collecti... | null | CC BY-SA 4.0 | null | 2023-03-05T02:46:50.787 | 2023-03-05T02:46:50.787 | null | null | 10,468,153 | null |
75,639,912 | 1 | null | null | 0 | 6 | I am not able to solve the issue with my code chunk here in Google Earth Engine.
The error I encounter are:
Unknown element type provided: object. Expected: ee.Image, ee.ImageCollection, ee.FeatureCollection, ee.Element or ee.ComputedObject.
LST: Layer error: Parameter 'right' is required.
Editing the code would be m... | Problem with LST image downlad from Google Earth Engine | CC BY-SA 4.0 | null | 2023-03-05T02:38:26.860 | 2023-03-05T02:38:26.860 | null | null | 15,259,074 | [
"javascript",
"image-classification",
"satellite-image",
"landsat",
"libgee"
] |
75,639,928 | 1 | null | null | 0 | 14 | I have tried to install Laravel Excel in Laravel 10, but I cannot install it.
I am using
```
composer require maatwebsite/excel
```
but when I install it, it give an error like this.
```
> Class PHPExcel_Properties located in
> D:/project/real/laravel/testexcel/vendor/phpoffice/phpexcel/Classes\PHPExcel\Chart\Properti... | Cannot install PHPExcel in Laravel 10 by psr-0 error | CC BY-SA 4.0 | null | 2023-03-05T02:46:31.763 | 2023-03-05T02:56:08.273 | 2023-03-05T02:56:08.273 | 9,430,133 | 13,747,368 | [
"excel",
"laravel"
] |
75,639,931 | 2 | null | 69,187,422 | 0 | null | Run this command in your terminal to install mysql connector:
```
pip install mysql-connector-python
```
And run this in your python editor to connect to MySQL:
import mysql.connector
```
mydb = mysql.connector.connect(
host="sql12.freemysqlhosting.net",
user="sql12602575drf", # just an example
... | null | CC BY-SA 4.0 | null | 2023-03-05T02:47:48.880 | 2023-03-05T02:47:48.880 | null | null | 6,013,016 | null |
75,639,923 | 2 | null | 55,038,593 | 0 | null |
One way to expose the logs from a Spring Boot application in the browser is by using the built-in Actuator endpoints.
Actuator is a tool that provides production-ready features to help you monitor and manage your Spring Boot application. It includes a variety of endpoints, including one for viewing the application log... | null | CC BY-SA 4.0 | null | 2023-03-05T02:43:52.853 | 2023-03-05T02:43:52.853 | null | null | 12,340,440 | null |
75,639,935 | 1 | null | null | 0 | 13 | ```
Option Explicit
Private chr As Selenium.ChromeDriver
Sub Test()
Dim i As Long
Dim lastrow As Long
lastrow = Sheet1.Cells(Rows.Count, "A").End(xlUp).row
For i = 2 To lastrow
Dim mykeyword As String
mykeyword = Sheet1.Cells(i, 1).Value
Set chr = New Selenium.ChromeDriver
chr.Start
chr.Get "https://www.google.com/sear... | Extract google's first pages' all href links of any keywords listed in our excel sheet | CC BY-SA 4.0 | null | 2023-03-05T02:50:05.623 | 2023-03-05T03:31:09.743 | 2023-03-05T03:31:09.743 | 8,422,953 | 19,497,013 | [
"excel",
"vba",
"selenium-webdriver"
] |
75,639,937 | 1 | null | null | 0 | 14 | I want to print or log JS source before it's compiled into bytecode. I've tried various js-flags without success so far. Is it possible? If so, what's the process?
Example HTML/JS:
```
<html> <head>
<script type="text/javascript"> alert('newtext'); </script>
</head></html>
```
I'd like to expose "alert('newtext')".
... | Can Chromium print JS source code before it's parsed? | CC BY-SA 4.0 | null | 2023-03-05T02:50:24.353 | 2023-03-05T02:50:24.353 | null | null | 11,267,384 | [
"javascript",
"debugging",
"chromium",
"v8"
] |
75,639,933 | 2 | null | 75,621,662 | 0 | null | ```
<div>
<p>My Website</p>
<div id="one">
<!--#shadow-root (open)-->
<div id="two">
<div id="three">
<p style="display: none;">Text</p>
</div>
</div>
</div>
</div>
```
Or:
```
<div>
<p>My Website</p>
<div id="one">
<!--#shadow-root (open)-->
<div id="two"... | null | CC BY-SA 4.0 | null | 2023-03-05T02:49:00.997 | 2023-03-05T02:49:28.800 | 2023-03-05T02:49:28.800 | 20,726,500 | 20,726,500 | null |
75,639,934 | 1 | null | null | 0 | 8 | Getting a specific Season and Episode back for a Series.
I am getting the data back I want but I think it's in the wrong format.
$Result = [xml] (Invoke-WebRequest "http://www.omdbapi.com/?Season=1&Episode=2&t=Reacher&apikey=$ApiKey")
Cannot convert value "{"Title":"First Dance","Year":"2022","Rated":"TV-MA","Release... | Getting specific Season and Episode info from OMDBAPI.com using PowerShell | CC BY-SA 4.0 | null | 2023-03-05T02:49:22.807 | 2023-03-05T02:49:22.807 | null | null | 20,907,647 | [
"powershell",
"video"
] |
75,639,936 | 2 | null | 52,109,775 | 0 | null |
# Keeping SSH_PRIVATE_KEY protected
Making my tags `protected` fixed the issue for me. Here is how to do it: [https://docs.gitlab.com/ee/user/project/protected_tags.html](https://docs.gitlab.com/ee/user/project/protected_tags.html)
Note the definition of `Protect variable`:
```
Export variable to pipelines running o... | null | CC BY-SA 4.0 | null | 2023-03-05T02:50:20.967 | 2023-03-05T02:50:20.967 | null | null | 9,166,311 | null |
75,639,939 | 2 | null | 73,216,714 | 0 | null | I ddi why you suggest with useeffect for importing "tw-elemnts"however, it remains unworking.
i try to paste any code from tw-elements and nothig works
```
content: [
"./pages/**/*.{js,ts,jsx,tsx}",
"./components/**/*.{js,ts,jsx,tsx}",
"./src/**/*.{html,js}",
"./node_modules/tw-elements/dist/js/**/*.js"... | null | CC BY-SA 4.0 | null | 2023-03-05T02:50:55.200 | 2023-03-05T02:50:55.200 | null | null | 16,064,760 | null |
75,639,940 | 2 | null | 75,264,987 | 0 | null | You can use [imitation](https://github.com/HumanCompatibleAI/imitation), which is built on top of SB3.
```
pip install imitation
```
Then you can use:
```
from imitation.algorithms.adversarial.gail import GAIL
```
Here is [their docs](https://imitation.readthedocs.io/en/latest/algorithms/gail.html)
| null | CC BY-SA 4.0 | null | 2023-03-05T02:51:32.033 | 2023-03-05T02:51:32.033 | null | null | 11,235,205 | null |
75,639,943 | 2 | null | 75,427,075 | 0 | null | The event does not exist, and the developer does not add it.
I was able to use VB6 Webview2 instead:
[https://www.vbforums.com/showthread.php?889202-VB6-WebView2-Binding-(Edge-Chromium)&p=5597424#post5597424](https://www.vbforums.com/showthread.php?889202-VB6-WebView2-Binding-(Edge-Chromium)&p=5597424#post5597424)
The ... | null | CC BY-SA 4.0 | null | 2023-03-05T02:52:46.317 | 2023-03-05T02:52:46.317 | null | null | 1,390,192 | null |
75,639,932 | 2 | null | 75,563,691 | 0 | null | Raymond Chen was correct, you cannot call `atexit` to workaround loader lock from a DLL. It turns out that the `CreateProcess` was only working under loader lock because my process already had all the necessary DLLs loaded to call `CreateProcess`. Also, I'm not sure `LoadLibrary` was ever actually loading anything beca... | null | CC BY-SA 4.0 | null | 2023-03-05T02:48:06.760 | 2023-03-05T02:48:06.760 | null | null | 5,792,097 | null |
75,639,944 | 1 | null | null | -1 | 5 | This is a very short question but i just wanted to know if there was any way to make a program that would make my computer (windows 10) "reread" a USB port, bu "reread" i mean simulate the same process that would happen when unplugging and replugging a device into a usb port. if possible, would it also be possible to s... | Making computer attempt to "reread" usb port device Windows 10 | CC BY-SA 4.0 | null | 2023-03-05T02:52:56.697 | 2023-03-05T02:52:56.697 | null | null | 14,711,087 | [
"windows",
"usb"
] |
75,639,945 | 1 | null | null | 0 | 9 | I'm in Visual Studio and want to search trough my CSS files to match a whole word that does not have a hyphen or dot or whitespace at the beginning or the end
For instance just I want to find the word .
I don't want to get matches for words like
.help-page-table
.table
I tried this expression and other variations. I'm ... | How do I find a specific word that does not start with hyphen or a dot | CC BY-SA 4.0 | null | 2023-03-05T02:52:57.323 | 2023-03-05T02:52:57.323 | null | null | 1,679,443 | [
"regex",
"regex-negation"
] |
75,639,946 | 1 | null | null | 1 | 25 | I'm relatively new to C#. I'm trying to use an `IEnumerable` collection as an argument to a C# function, but I want to define the properties that I want to return as well.
Suppose I have a car `IEnumerable` with properties such as `color` and `brand`. Each entry has a color and a brand, of course.
I'm trying to split t... | Can I use an IEnumerable with different properties for each entry as a method argument? | CC BY-SA 4.0 | null | 2023-03-05T02:53:06.030 | 2023-03-05T03:33:55.727 | 2023-03-05T03:03:28.297 | 14,868,997 | 5,790,712 | [
"c#",
"methods",
"properties",
"ienumerable"
] |
75,639,947 | 2 | null | 75,639,507 | 0 | null | Turns out you can. To compress an image without writing it directly to a .png file:
```
private final static class CompressCallback extends STBIWriteCallback implements Disposable {
public ByteBuffer compressed_img;
public int compressed_size;
public void invoke(long context, long ... | null | CC BY-SA 4.0 | null | 2023-03-05T02:53:07.473 | 2023-03-05T02:53:07.473 | null | null | 13,727,252 | null |
75,639,948 | 2 | null | 75,634,594 | 0 | null | You should be able to use the prefix option when you are instantiating your forms.
[https://docs.djangoproject.com/en/dev/ref/forms/api/#prefixes-for-forms](https://docs.djangoproject.com/en/dev/ref/forms/api/#prefixes-for-forms)
```
sign_up_form = CustomUserSignUpForm(prefix='signup')
```
each field will get the pref... | null | CC BY-SA 4.0 | null | 2023-03-05T02:53:07.900 | 2023-03-05T02:53:07.900 | null | null | 4,872,140 | null |
75,639,941 | 2 | null | 75,639,828 | 0 | null | I converted my code to App Shortcut following the Migrating to App Short cuts tech talk from apple and it now works. Here's the resultant code:
```
//
// AddAttendee.swift
//
//
// Created by Michael Rowe on 3/4/23.
//
import Foundation
import AppIntents
@available(iOS 16.0, macOS 13.0, watchOS 9.0, tvOS 16.0, *)... | null | CC BY-SA 4.0 | null | 2023-03-05T02:52:11.687 | 2023-03-05T02:52:11.687 | null | null | 373,749 | null |
75,639,955 | 1 | null | null | -2 | 11 | I have code server running in a docker container on a Synology box. Everything works great but I need to install pip. So, I ran the command `sudo apt-get install python3-pip`, however to execute this I need my passord for the user 'abc' I don't remember setting a password but I was wondering if anyone could help me out... | Forgot user password for the command line - Using code server on NAS | CC BY-SA 4.0 | null | 2023-03-05T02:55:57.230 | 2023-03-05T03:02:56.013 | 2023-03-05T03:02:56.013 | 12,023,069 | 12,023,069 | [
"vscode-remote"
] |
75,639,951 | 2 | null | 75,639,915 | 1 | null | Here's the pseudo-code translated to JavaScript with Canvas
```
const spaceX = 25,
spaceY = 25,
dial = 20,
width = 400,
height = 400;
const canvas = document.createElement('canvas');
document.body.append(canvas);
canvas.width = width;
canvas.height = height;
const ctx = canvas.getContext('2d');
function circ... | null | CC BY-SA 4.0 | null | 2023-03-05T02:54:43.223 | 2023-03-05T02:54:43.223 | null | null | 529,725 | null |
75,639,950 | 2 | null | 28,166,845 | 1 | null | Powershell regard output as string.But windows-1252 maps every byte to character,you can try use this encoding.
It's a trick though it is not efficient.
In my case,powershell version is 5.1,Out-File or > operator doesn't support windows 1252,so I have to use WriteAllText method.
example:
```
[console]::outputencoding=[... | null | CC BY-SA 4.0 | null | 2023-03-05T02:54:08.487 | 2023-03-05T03:11:44.443 | 2023-03-05T03:11:44.443 | 10,096,812 | 10,096,812 | null |
75,639,953 | 1 | 75,640,008 | null | -2 | 29 | I am trying to access the JSON content from the below URL and parse to extract and print the date value of "data.content.containers.container.locationDateTime"
iff the
"data.content.containers.container.label " has been set as "Empty Equipment Returned"
```
$url = 'https://elines.coscoshipping.com/ebtracking/public/co... | Access Complex Json value from URL | CC BY-SA 4.0 | null | 2023-03-05T02:55:26.550 | 2023-03-05T03:21:59.653 | null | null | 10,042,329 | [
"javascript",
"php",
"jquery",
"json"
] |
75,639,952 | 2 | null | 75,639,588 | 0 | null | So the final snippet that worked was one someone helped me with and took down their answer, while the function was working it wasn't rendering correctly so if anyone is having issues where the logic seems to work but you don't see it render this is related to DOM elements appearing on the screen before they're assigned... | null | CC BY-SA 4.0 | null | 2023-03-05T02:55:11.010 | 2023-03-05T02:55:11.010 | null | null | 1,481,372 | null |
75,639,949 | 2 | null | 75,639,906 | 0 | null | playing_card class doesn't have the == operator
Here are some examples of the required operators with the differences between them:
1. Here the object itself (left side) isn't const and accept const object (right side) bool operator == (const playing_card &);
2. Here the object itself is const and accept const object... | null | CC BY-SA 4.0 | null | 2023-03-05T02:53:29.660 | 2023-03-05T03:10:53.727 | 2023-03-05T03:10:53.727 | 21,146,921 | 21,146,921 | null |
75,639,956 | 1 | null | null | 2 | 11 | I am trying to make transctions between two users.
models.py
```
class Trasaction(models.Model):
sender = models.ForeignKey(
Account, on_delete=models.PROTECT
)
receiver = models.ForeignKey(
Account, on_delete=models.PROTECT
)
amount = models.IntegerField()
purpose = models.CharF... | How to filter a trasaction model in django | CC BY-SA 4.0 | null | 2023-03-05T02:56:57.823 | 2023-03-05T03:47:41.300 | 2023-03-05T03:47:41.300 | 17,562,044 | 14,469,277 | [
"python",
"django",
"django-models",
"django-views",
"django-queryset"
] |
75,639,957 | 1 | null | null | 0 | 8 | I want to get alert on tradingview when color changes to green, it pop-up an alert "Buy" and when color changes to orange it goes with alert "Sell".
But the script keeps showing up "Script could not be translated from: , title="Buy", message="green buy")"
Please help me!
```
Study("Impulse MACD]", shorttitle="IMACD_LB... | Alert when color changes_Code in Pine Script on Tradingview | CC BY-SA 4.0 | null | 2023-03-05T02:57:01.313 | 2023-03-05T02:57:01.313 | null | null | 21,334,275 | [
"pine-script"
] |
75,639,963 | 1 | null | null | 0 | 4 | I have 2 GeoDataframes, one is points object, the other is Linestrings. Points are on Linestrings. How can I use these 2 gdfs to build a networkx graph?
I hope when I plot the graph, it will be consistent with realistic locations of GeoDataframes.
| How can I use GeoDataframe Points and Linestrings to build a Networkx graph? | CC BY-SA 4.0 | null | 2023-03-05T02:59:40.940 | 2023-03-05T02:59:40.940 | null | null | 21,249,439 | [
"python",
"networkx",
"geopandas",
"osmnx"
] |
75,639,958 | 2 | null | 75,639,866 | 0 | null | This error occurs when you are trying to use the toISOString method on an undefined or null object.
To fix this error, you need to ensure that the date object is defined before calling the toISOString method on it. Here are some steps you can take:
Check that the date object is being initialized properly. Make sure tha... | null | CC BY-SA 4.0 | null | 2023-03-05T02:57:23.807 | 2023-03-05T02:57:23.807 | null | null | 10,994,550 | null |
75,639,938 | 2 | null | 75,637,933 | 0 | null | I think the issue you were having with declaring these variables in the `.h` or `.cpp` is that in both cases it makes variables global (unless you were declaring them as member variables). Making the variables global like that could indeed cause havoc.
I would try to solve this by reconsidering your class interface. I ... | null | CC BY-SA 4.0 | null | 2023-03-05T02:50:35.490 | 2023-03-05T02:56:11.233 | 2023-03-05T02:56:11.233 | 14,462,794 | 14,462,794 | null |
75,639,965 | 2 | null | 75,486,734 | 0 | null | You can run the below to see if it is indeed connected
```
from ibapi.client import EClient
from ibapi.wrapper import EWrapper
class MyWrapper(EWrapper):
def __init__(self):
super().__init__()
self.next_order_id = None
def nextValidId(self, orderId: int):
super().nextValidId(orderId)
... | null | CC BY-SA 4.0 | null | 2023-03-05T03:00:05.583 | 2023-03-05T03:00:05.583 | null | null | 7,001,329 | null |
75,639,964 | 2 | null | 75,639,907 | 2 | null | No they don't. This code violates several coding conventions in Java; `Problem9` is a terrible and undescriptive method name. You are counting the appearance of a `char`. Don't hardcode that `char` - pass it to the method and give the method a proper name, like `countChar`. Iterate the lines of your file and then iter... | null | CC BY-SA 4.0 | null | 2023-03-05T03:00:04.743 | 2023-03-05T03:00:04.743 | null | null | 2,970,947 | null |
75,639,966 | 2 | null | 70,284,501 | 0 | null | If you are using `signInFlow: "popup"` or otherwise having firebase auth popup in it's own browser window - and you have not set up a custom domain with firebase hosting, you need to add your firebase URL under website restrictions like: `https://<your-app-12345>.firebaseapp.com/`.
This is because the browser sets the ... | null | CC BY-SA 4.0 | null | 2023-03-05T03:00:06.223 | 2023-03-05T03:00:06.223 | null | null | 1,152,375 | null |
75,639,968 | 2 | null | 75,639,548 | 0 | null | Based on the parameters of your dunction, your code seems to be looking for the index of the maximum value in a specific sublist of the list of lists.
You can leverage the max function's ability to use an indirection for the ordering of the maximum value. If you give max() the list of indexes and values (using enumera... | null | CC BY-SA 4.0 | null | 2023-03-05T03:00:32.083 | 2023-03-05T03:00:32.083 | null | null | 5,237,560 | null |
75,639,942 | 1 | null | null | 0 | 29 | I have 2 classes, each holding private variables and initialized in their own respective constructors that use an initializer list.
The instructions for states that:
> In the public part of `Date`, add a constructor that takes a day, month, and year as input, and uses an initializer list to initialize the private var... | Why am I getting → error: no matching function for call to 'Date::Date()'? | CC BY-SA 4.0 | null | 2023-03-05T02:52:38.057 | 2023-03-05T03:47:35.430 | 2023-03-05T03:47:35.430 | 21,082,127 | 21,082,127 | [
"c++",
"class",
"parameters",
"constructor",
"reference"
] |
75,639,961 | 1 | null | null | 0 | 12 | ```
Until the lastest disaster from the Chromium team the following worked perfectly
<td valign="top">
<a href="https://chrysalis-systems.net/shared/tmp/dfmapbCNAPQ1.dot" download="">
<button type="button" title="download graph specification (graphViz:dot)">
<img src="/dflibg/sdk/images/downloadA32.p... | html anchor href download sees network failure but same line works sans download and pasted in address bar | CC BY-SA 4.0 | null | 2023-03-05T02:59:06.610 | 2023-03-05T02:59:06.610 | null | null | 6,698,633 | [
"html",
"google-chrome-extension",
"anchor"
] |
75,639,960 | 1 | null | null | -2 | 15 | For the classes below, I want to go through a file called file.txt of type: 0 1 {'weight': 7} in which 0 and 1 are nodes ID. I want a GUI class that iterates through the file and displays the nodes and edges (for the connected nodes only). I want the nodes to be clickable items (like buttons), and edges as linked lines... | Create a GUI for Undirected graph | CC BY-SA 4.0 | null | 2023-03-05T02:58:43.240 | 2023-03-05T05:08:46.010 | 2023-03-05T05:08:46.010 | 9,430,133 | 17,652,868 | [
"java",
"swing",
"user-interface",
"graph",
"nodes"
] |
75,639,972 | 2 | null | 33,666,197 | -2 | null | You can use map for this. Tested with Xcode 14.2 & Swift 5.7
```
/*
* Return the factorial of some number.
* For example if input is 4, then: 4 * 3 * 2 * 1 = 24
*/
func firstFactorial(fromNumber num: Int) -> Int {
return (1...num).map({ number in Int.init(number) }).reduce(1, *)
}
```
| null | CC BY-SA 4.0 | null | 2023-03-05T03:03:00.263 | 2023-03-05T03:03:00.263 | null | null | 1,638,892 | null |
75,639,975 | 2 | null | 75,639,770 | 0 | null | @if (Model != null && Model.OwnerModel != null)
Everything is working as intended, it's just been a long day.
| null | CC BY-SA 4.0 | null | 2023-03-05T03:04:00.973 | 2023-03-05T03:04:00.973 | null | null | 16,418,126 | null |
75,639,977 | 2 | null | 11,039,159 | -1 | null | We can drag and drop the required folders which we need to upload. No need to zip/unzip... This would upload all the files in all folders.
| null | CC BY-SA 4.0 | null | 2023-03-05T03:04:23.153 | 2023-03-05T03:04:23.153 | null | null | 21,334,377 | null |
75,639,971 | 1 | null | null | 0 | 13 | I enabled goimports in my GolangCI tool using my makefile and it's able to spot unused imports but is not automatically remove them. How do I enable my golangCI tool to remove the unused imports automatically?
Below is my makefile command for the golangci linting, I am using the `--fix` tag:
```
##@ Linting
lint:
@... | How do you remove unused imports using GolangCI | CC BY-SA 4.0 | null | 2023-03-05T03:01:55.187 | 2023-03-05T04:29:32.180 | 2023-03-05T04:29:32.180 | 3,886,357 | 3,886,357 | [
"go",
"makefile",
"golangci-lint",
"goimports"
] |
75,639,969 | 1 | null | null | 0 | 7 | I want to use tw-elemts library with my Nextjs application, but every time I copy a code of some random components its styling and behavior is not working. I have followed all the steps int he quickstart and additionally I put an useEffect for importing the 'tw-elemts"int the _app.js as recommended by [https://github.c... | Nextjs app is not recognizing the js and styling of tw-elements library | CC BY-SA 4.0 | null | 2023-03-05T03:00:50.617 | 2023-03-05T03:00:50.617 | null | null | 16,064,760 | [
"next.js"
] |
75,639,967 | 2 | null | 75,639,942 | 1 | null | Your `Date` class does not have a default constructor (a constructor that can be called without passing any parameter values to it).
However, the `Todo_item(const string&)` constructor does not have an initializer list to construct the `due_date` member with input values, like the `Todo_item(const string&, Date)` const... | null | CC BY-SA 4.0 | null | 2023-03-05T03:00:22.747 | 2023-03-05T03:15:16.167 | 2023-03-05T03:15:16.167 | 65,863 | 65,863 | null |
75,639,962 | 1 | null | null | 0 | 9 | I want to scroll first `backLayerContent` with `frontLayerContent` in `BackdropScaffold`. I want to animation inside my `backLayerContent` in `Icon` & `Text`. I am trying to learning from this article about [AnimatedContent](https://medium.com/androiddevelopers/customizing-animatedcontent-in-jetpack-compose-629c67b458... | How to scroll up animation in backLayerContent in jetpack compose | CC BY-SA 4.0 | null | 2023-03-05T02:59:20.847 | 2023-03-05T02:59:20.847 | null | null | 8,266,651 | [
"android",
"kotlin",
"android-jetpack-compose",
"android-jetpack",
"android-jetpack-compose-scaffold"
] |
75,639,979 | 2 | null | 30,244,042 | 0 | null | Even this question is already being answered, it is worth noticing another scenario that can accidentally generate this issue.
When you are using different form field as in your form and then try to update, it will also create a new object. For example,
```
class Classroom(models.Model):
owner = models.ForeignKey(... | null | CC BY-SA 4.0 | null | 2023-03-05T03:04:36.953 | 2023-03-05T03:04:36.953 | null | null | 14,561,731 | null |
75,639,981 | 2 | null | 68,236,743 | 0 | null | For what it's worth; a suggested answer for when you can also get this error.
I discovered I was getting the same error because I was re-declaring `i` further down in my loop.
After renaming the main loop counter all was well again.
| null | CC BY-SA 4.0 | null | 2023-03-05T03:05:39.733 | 2023-03-05T03:05:39.733 | null | null | 6,500,909 | null |
75,639,980 | 1 | null | null | 0 | 7 | From [here](https://www.rdocumentation.org/packages/survey/versions/4.1-1/topics/svypredmeans):
```
library(survey)
data(nhanes)
nhanes_design <- svydesign(id=~SDMVPSU,
strata=~SDMVSTRA,
weights=~WTMEC2YR,
nest=TRUE, data=nhanes)
agesexmo... | r survey package: Geometric means adjusted for covariates | CC BY-SA 4.0 | null | 2023-03-05T03:05:39.583 | 2023-03-05T03:05:39.583 | null | null | 5,162,520 | [
"r",
"survey"
] |
75,639,973 | 2 | null | 75,622,735 | 0 | null | > the tmp struct is repeating FieldDefinition which is minor and I can bear it.
You shouldn't need to do this. You can create another type over `FieldDefinition` and the new type won't have the `UnmarshalJSON` method, e.g.:
```
func (f *FieldDefinition) UnmarshalJSON(b []byte) error {
type newType FieldDefinition
... | null | CC BY-SA 4.0 | null | 2023-03-05T03:03:51.553 | 2023-03-05T03:17:22.390 | 2023-03-05T03:17:22.390 | 4,904,673 | 4,904,673 | null |
75,639,983 | 1 | 75,640,029 | null | 1 | 14 | How can I convert:
`mutableListOf<MutableList<Pair<Int, Int>>>`
To a:
`Array<Array<Pair<Int,Int>>>`
I'm pretty new in the language of Kotlin, I thought that I can loop for the entire 2D array and put the values in the new one, but I was wondering if there's another faster solution
| Convert mutable 2D array of pairs to a static 2D array in kotlin | CC BY-SA 4.0 | null | 2023-03-05T03:06:29.447 | 2023-03-05T03:27:02.283 | null | null | 21,334,364 | [
"kotlin"
] |
75,639,985 | 1 | null | null | 0 | 7 | Distributor ID: Ubuntu
Description: Ubuntu 22.04 LTS
Release:
Codename: jammy
Need to keep *libssl1.1_1.1.1f-1ubuntu2.12_amd64.deb *and not update.
| Ubuntu 22.04 need to update system without SSL | CC BY-SA 4.0 | null | 2023-03-05T03:07:10.957 | 2023-03-05T03:07:10.957 | null | null | 11,752,727 | [
"ubuntu",
"openssl",
"ubuntu-22.04"
] |
75,639,987 | 1 | null | null | 0 | 5 | I am running unit test on sentinel policies using the command “sentinel test ”in Jenkins. However, the test results are too extensive, only option available is to provide -json flag while running the Sentinel command. This will give the test result in a JSON output format yet still extensive. Can I get the test result ... | I am running unit test using Sentinel. Can I get the test result summary using junit AbstractTestResultAction? | CC BY-SA 4.0 | null | 2023-03-05T03:08:02.837 | 2023-03-05T03:08:02.837 | null | null | 20,251,980 | [
"unit-testing",
"jenkins",
"junit",
"junit4",
"sentinel"
] |
75,639,974 | 1 | null | null | 0 | 10 | I'm trying to deploy multiple ec2 instances. This requires a variable below.
Post my variables:
```
variable "configuration" {
#description = "The total configuration, List of Objects/Dictionary"
default = [
{
"application_name" : "GritfyApp-dev",
"ami" : "ami-0263e4deb427da90e",
"no_of_instan... | How to reference resources in the default value of a Terraform variable(type: tuple(object))? | CC BY-SA 4.0 | null | 2023-03-05T03:03:52.277 | 2023-03-05T04:20:04.663 | 2023-03-05T03:32:04.137 | 248,823 | 6,005,484 | [
"amazon-web-services",
"terraform",
"devops",
"terraform-provider-aws"
] |
75,639,986 | 2 | null | 75,638,452 | 1 | null | That is because you are using `is` instead of `==`.
> `==` determines if the values of two objects are equal, while `is` determines if they are the exact same object.
This means that `user is interaction.user` would return `False` and thus fails the if check.
Therefore, you should be using `==` in this case.
```
if use... | null | CC BY-SA 4.0 | null | 2023-03-05T03:07:40.847 | 2023-03-05T03:07:40.847 | null | null | 20,487,456 | null |
75,639,989 | 1 | null | null | -5 | 28 | [enter image description here](https://i.stack.imgur.com/VbTpW.png)I made a character detector but when I put the While(1) code, the program seems to repeat the first two lines twice. I've got no idea why.
The error after I tried putting a while(1)
| While(1) error in C language while working with characters # | CC BY-SA 4.0 | null | 2023-03-05T03:09:23.253 | 2023-03-05T03:10:03.673 | 2023-03-05T03:10:03.673 | 21,334,312 | 21,334,312 | [
"c",
"while-loop"
] |
75,639,990 | 1 | null | null | 0 | 8 | The title sort of says it all. With continuous data on the x-axis this is relatively easy to solve. The issue arises when the x-axis is categorial or discrete. I'd like to place annotations near the left and right y-axis lines but it seems impossible to either find or set them. You can't set with `scale_x_discrete`. An... | Is there a way to get the x-axis coordinates of the left and right y axes when the x-axis is discrete in ggplot2? | CC BY-SA 4.0 | null | 2023-03-05T03:09:33.033 | 2023-03-05T03:09:33.033 | null | null | 321,622 | [
"r",
"ggplot2"
] |
75,639,992 | 1 | null | null | -1 | 7 | i need this file
php-email-form.php
with bootstrap -> /assets/vendor/php-email-form/php-email-form.php
I did not find this file
| Find a missing file inside Bootstrap. please | CC BY-SA 4.0 | null | 2023-03-05T03:09:57.217 | 2023-03-05T03:09:57.217 | null | null | 21,334,354 | [
"php",
"bootstrap-5"
] |
75,639,978 | 1 | null | null | 0 | 5 | I have this on my application.rb, I wanted to put the stylesheets and the javascript tag, however, this would throw an error:
I commented it here as this will throw an error. I am currently using the default one:
```
<%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
<%= javascript_importmap_ta... | Rails 7 Error: undefined method `javascript_pack_tag' for #<ActionView::Base:0x0000000000c3c8> | CC BY-SA 4.0 | null | 2023-03-05T03:04:32.150 | 2023-03-05T03:04:32.150 | null | null | 15,157,684 | [
"ruby-on-rails",
"ruby",
"ubuntu",
"rubygems"
] |
75,639,982 | 1 | null | null | 0 | 14 | I have a django project which in development mode css are loaded just fine but not in production.
In my settings.py file I've set these trhee variables
`STATIC_ROOT = BASE_DIR / 'staticfiles/' STATIC_URL = 'static/' STATICFILES_DIRS = [ BASE_DIR / 'static', ]`
I also set `DEBUG = False`
When I run python manage.py coll... | Django css and javascript app not served in production | CC BY-SA 4.0 | null | 2023-03-05T03:05:48.337 | 2023-03-05T04:27:48.190 | null | null | 3,347,778 | [
"css",
"django",
"apache",
"mime"
] |
75,639,970 | 1 | null | null | 0 | 11 | I am trying to make an animated plot to show the behavior of a simple harmonic oscillator. I would like for this animation to be a combination of the following two plots. That is, I would like the red square to go up and down, and on the same plot I would like the blue line to progressively be displayed.
[Red square](h... | FuncAnimation: Cannot animate a point and a line at the same time | CC BY-SA 4.0 | null | 2023-03-05T03:01:29.650 | 2023-03-05T03:55:11.997 | 2023-03-05T03:55:11.997 | 21,334,289 | 21,334,289 | [
"python",
"matplotlib",
"animation"
] |
75,639,984 | 2 | null | 75,639,503 | 0 | null | To understand what can be returned by [intrinsic function](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference.html) references, we need to inspect the CloudFormation resource you are using.
In your case, when using `httpApi`, it generates `AWS::ApiGatewayV2::Api`, and it returns... | null | CC BY-SA 4.0 | null | 2023-03-05T03:07:04.303 | 2023-03-05T03:41:06.473 | 2023-03-05T03:41:06.473 | 2,521,009 | 2,521,009 | null |
75,639,997 | 2 | null | 75,614,230 | 0 | null | It looks like you need to dispose `_enumerable`.
```
public ValueTask DisposeAsync()
{
if (_enumerable is IAsyncDisposable disp)
return disp.DisposeAsync();
return ValueTask.CompletedTask;
}
```
| null | CC BY-SA 4.0 | null | 2023-03-05T03:13:29.790 | 2023-03-05T03:13:29.790 | null | null | 14,868,997 | null |
75,639,988 | 1 | null | null | 0 | 28 |
Perform linear regression modelling to predict the delay in days (between the Planned
and Actual date) in processing the claims, explaining the approach taken, including
any further data pre-processing needed for modelling.
Discuss the results obtained from the modelling and state the linear regression
equation.
I'm ... | Homework Help - Python For Data Analytics (Linear Regression Modelling) | CC BY-SA 4.0 | null | 2023-03-05T03:08:41.853 | 2023-03-05T05:02:17.180 | null | null | 20,492,247 | [
"python",
"csv",
"data-analysis"
] |
75,639,991 | 1 | null | null | 0 | 5 | Following [this SO answer](https://stackoverflow.com/a/72596778) I created a `FindClassDecls.cpp` file and I try to setup a VSCode in macOS to find the required clang headers. So I've tried to add the output of these two commands:
- `llvm-config --cflags`- `clang -E - -v < /dev/null 2>&1 | grep "^ /" | grep clang`
to t... | How to configure vscode to find clang libraries | CC BY-SA 4.0 | null | 2023-03-05T03:09:56.953 | 2023-03-05T03:09:56.953 | null | null | 962,212 | [
"visual-studio-code",
"clang",
"llvm"
] |
75,639,993 | 1 | null | null | 0 | 9 | Hello I am trying to make a 2D simple platformer and I am a begginer in Unity. For some reason when I hit arrow keys, my character will play the forward animation, but doesn't move at all. Then when I release it plays the idle animation. Also it won't jump either. Below I have code attached. I have researched and tryed... | Unity Character Not Moving With Axis System | CC BY-SA 4.0 | null | 2023-03-05T03:10:44.373 | 2023-03-05T03:10:44.373 | null | null | 21,200,345 | [
"c#",
"unity3d"
] |
75,639,998 | 2 | null | 59,686,308 | 0 | null | I encountered a similar error while working with VSCode Jupyter Notebook. After installation, I had to restart the kernel by using the command Ctrl+Shift+P -> Restart Kernel. I then created a separate Python file in the same folder and imported Folium there to check it. After that, I was able to use it in the notebook ... | null | CC BY-SA 4.0 | null | 2023-03-05T03:13:32.713 | 2023-03-05T03:15:08.963 | 2023-03-05T03:15:08.963 | 21,334,386 | 21,334,386 | null |
75,639,999 | 2 | null | 70,130,106 | 0 | null | ```
{
"filter": {
"or": [
{
"property": "My Time Property",
"date": {
"before": "2023-10-15T12:00:00+08:00" # replace your timezone
}
}
]
},
"sorts": []
}
```
Here is an example about json.Just add... | null | CC BY-SA 4.0 | null | 2023-03-05T03:14:49.547 | 2023-03-05T03:14:49.547 | null | null | 18,451,128 | null |
75,640,002 | 2 | null | 75,638,860 | 1 | null | The person you are unbanning is not a member (isn't in the server) because he's banned. Hence, you shouldn't be using `discord.Member`. However, you can use `discord.User`. The error was caused because you used the `discord.User` as the argument and it couldn't convert it to `discord.Member` as needed in the code.
```
... | null | CC BY-SA 4.0 | null | 2023-03-05T03:15:12.340 | 2023-03-05T03:15:12.340 | null | null | 20,487,456 | null |
75,640,003 | 2 | null | 75,639,806 | 1 | null | Try this:
```
div{
width:100%;
display:flex;
align-items:center;
justify-content:center;
}
```
```
<div>
<button>submit</button>
</div>
```
Buttons vertically and horizontally will be centered by this code.
| null | CC BY-SA 4.0 | null | 2023-03-05T03:15:26.010 | 2023-03-05T03:18:43.167 | 2023-03-05T03:18:43.167 | 10,297,595 | 10,297,595 | null |
75,640,004 | 1 | null | null | -1 | 26 | When the user types to the textbox, I want to constantly capture the input and as soon as it matches certain condition the program will automatically submit for the user. I haven't found any sample code yet after searching.
| C#: how to capture user input to the textbox while he is entering? | CC BY-SA 4.0 | null | 2023-03-05T03:15:56.043 | 2023-03-05T03:27:56.867 | 2023-03-05T03:27:56.867 | 1,251,099 | 1,251,099 | [
"c#",
"winforms"
] |
75,640,000 | 1 | null | null | 0 | 6 | We are in the process of giving our investors access to power bi reports and dashboards. Currently these reports and dashboards are in respective workspaces of each departments such as sales, marketing, finance, supply chain etc. each department has their own power bi deployment pipelines (standard dev/test/prod stages... | Promotion to Power bi investors workspace | CC BY-SA 4.0 | null | 2023-03-05T03:14:52.800 | 2023-03-05T03:14:52.800 | null | null | 1,920,195 | [
"deployment",
"powerbi",
"azure-pipelines"
] |
75,639,995 | 2 | null | 75,639,946 | 0 | null | Use two separate features of C#:
Use [generics](https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/types/generics) so that the method can accept collections of a specific type with the compiler knowing about the specific type being used for a specific call of the method.
Use [delegates](https://learn.microsof... | null | CC BY-SA 4.0 | null | 2023-03-05T03:13:03.230 | 2023-03-05T03:33:55.727 | 2023-03-05T03:33:55.727 | 101,087 | 101,087 | null |
75,640,007 | 1 | null | null | -2 | 10 | I am developing a PDF editing application on iOS using Swift and I am having trouble handling changes to the content on a PDF file. I have tried using Apple's PDFKit, but it does not support changing the content on a PDF.
I want to ask if there is any other technology that I can use to handle changes to the content on ... | How to handle changing the content on a PDF file in a Swift app? | CC BY-SA 4.0 | null | 2023-03-05T03:17:04.717 | 2023-03-05T03:59:15.323 | 2023-03-05T03:59:15.323 | 16,993,561 | 16,993,561 | [
"swift",
"core-graphics",
"pdfbox",
"pdfkit"
] |
75,639,994 | 1 | null | null | 1 | 10 | I have a custom spring validator to validates a role DTO class but when I called it using @Valid annotation or by any other means (like data binder validation or calling validate method) nothing happens. I didn't understand if i'm doing something wrong, i have spring validation starter as dependency like so:
```
<depen... | Why do i need Hibernate Validator to run a Custom Spring Validator? | CC BY-SA 4.0 | null | 2023-03-05T03:12:57.860 | 2023-03-05T03:12:57.860 | null | null | 17,974,178 | [
"java",
"spring-boot",
"validation"
] |
75,640,008 | 2 | null | 75,639,953 | 1 | null | This is work for me to extract and print the date value
```
$url = 'https://elines.coscoshipping.com/ebtracking/public/containers/FCIU5238624';
$datax = file_get_contents($url);
$x = json_decode($datax);
$dataTime = $x->data->content->containers[0]->container->locationDateTime;
print $dataTime;
```
| null | CC BY-SA 4.0 | null | 2023-03-05T03:17:09.647 | 2023-03-05T03:21:59.653 | 2023-03-05T03:21:59.653 | 19,012,965 | 19,012,965 | null |
75,640,012 | 2 | null | 75,632,453 | 0 | null | I finally figured it out. Go to windows enviornment variables and create a new variable OPENSSL_ROOT_DIR to [poco-unzipped-files-location]\openssl\build\win64\bin\debug. Also move the include directory to this location. My problem with the missing header files was that I had removed them during a previous try. It s... | null | CC BY-SA 4.0 | null | 2023-03-05T03:18:22.897 | 2023-03-05T03:18:22.897 | null | null | 14,169,926 | null |
75,640,006 | 2 | null | 75,544,497 | 0 | null | It seems like the vue reactivity works just fine, it's probably a bug on the `"chartjs-plugin-trendline"` plugin. We can prove that the reactivity actually works, because when we change the value of the `trendlineLinear` property, the chart changes just fine. The way I see it, it's probably that the chart (maybe on thi... | null | CC BY-SA 4.0 | null | 2023-03-05T03:17:01.877 | 2023-03-05T03:17:01.877 | null | null | 7,552,340 | null |
75,640,001 | 1 | null | null | 0 | 35 | I'm in CS2 for my college program and I've been tasked with creating code for a PokerCard class which extends off of a Card class that carries a bunch of methods which it overrides. In this particular instance, I am overriding the toString method for testing and am in the middle of writing a bunch of if statements. Is ... | Create a For Loop that creates if statements | CC BY-SA 4.0 | null | 2023-03-05T03:15:08.407 | 2023-03-05T05:50:27.417 | 2023-03-05T03:25:43.687 | 21,334,395 | 21,334,395 | [
"java",
"loops",
"if-statement",
"enums",
"extends"
] |
75,640,013 | 2 | null | 72,092,763 | 0 | null | UnityEngine has a class [Collision](https://docs.unity3d.com/ScriptReference/Collision.html) simply rename your class and the file containing it.
| null | CC BY-SA 4.0 | null | 2023-03-05T03:18:58.000 | 2023-03-05T03:18:58.000 | null | null | 8,379,012 | null |