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,627,265 | 1 | null | null | 0 | 14 | I am not sure this is a bug, I think that this is more me not knowing how to properly use Dependency Injection within Quarkus.
I have the following setup in Kotlin with Quarkus 2.16.3:
```
interface Resolver {
fun getInfo(): String
}
@ApplicationScoped
@Default
@Priority(1)
class ResolverNoRequest(): Resolver {
... | Quarkus dependency injection not discriminating on uriInfo being injectable or not | CC BY-SA 4.0 | null | 2023-03-03T12:46:35.837 | 2023-03-03T13:11:51.067 | null | null | 21,325,982 | [
"kotlin",
"dependency-injection",
"quarkus"
] |
75,627,268 | 2 | null | 75,627,149 | 1 | null | Inside the __init__.py file in your package, you can declare and initialize anything you want, including imports!
So, write inside it this:
```
from module_one import ClassOne
from module_two import ClassTwo
```
Doing so, now those classes will be known and can be imported directly from the package, as:
```
from packa... | null | CC BY-SA 4.0 | null | 2023-03-03T12:46:45.523 | 2023-03-03T12:46:45.523 | null | null | 20,959,773 | null |
75,627,267 | 1 | null | null | 0 | 8 | I'm using federated login for my Amplify hosted React web app. When I run it locally I can log in successfully, but when I publish to Amplify I'm getting an access denied error.
I also have a "Login With Cognito User" button that accepts a user/pwd combination of a Cognito user. This works fine, so it appears to be som... | Amplify Federated Signin fails when app is deployed | CC BY-SA 4.0 | null | 2023-03-03T12:46:40.907 | 2023-03-03T14:17:29.190 | 2023-03-03T14:17:29.190 | 1,165,145 | 1,165,145 | [
"reactjs",
"amazon-web-services",
"amazon-cognito",
"federated-identity"
] |
75,627,272 | 2 | null | 75,610,721 | 0 | null | ```
location /blog ## you location of the application folder. {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_pass http://website;
}
need to specify the location of your public folder. I guess its inside subdirectory. If its WordPress then you need to see... | null | CC BY-SA 4.0 | null | 2023-03-03T12:47:01.020 | 2023-03-03T12:47:01.020 | null | null | 2,087,386 | null |
75,627,269 | 1 | null | null | -2 | 6 | How can I configure a map widget in Thingsboard to zoom in on the location of an inactive device on my dashboard?
I have a dashboard in Thingsboard that displays the locations of several devices on a map using a map widget. When a device becomes inactive, I want the map widget to automatically zoom in on the location o... | How to update map widget location in Thingsboard based on device activity status? | CC BY-SA 4.0 | null | 2023-03-03T12:46:54.260 | 2023-03-03T12:46:54.260 | null | null | 21,186,907 | [
"javascript",
"dictionary",
"widget",
"dashboard",
"thingsboard"
] |
75,627,274 | 1 | null | null | -2 | 11 | I want to send body params in dio get request
[](https://i.stack.imgur.com/uGqdZ.png)
| Flutter Dio Body parameters in GET Method | CC BY-SA 4.0 | null | 2023-03-03T12:47:28.597 | 2023-03-03T12:47:28.597 | null | null | 15,479,968 | [
"flutter"
] |
75,627,277 | 2 | null | 75,627,056 | -1 | null | You can use below plugin for this:
[https://wordpress.org/plugins/wp-hide-security-enhancer/](https://wordpress.org/plugins/wp-hide-security-enhancer/)
| null | CC BY-SA 4.0 | null | 2023-03-03T12:47:56.520 | 2023-03-03T12:47:56.520 | null | null | 6,198,828 | null |
75,627,273 | 1 | null | null | -1 | 26 | how do i create a load balancer and working node in java for a project?this has to be around round robin, i’ve already created a client. I’m unsure how to create a working node so the client can send the load balancer jobs for the node to do, this has to be around round robin. I have got some sort of skeleton code for ... | Load balancer in java | CC BY-SA 4.0 | null | 2023-03-03T12:47:02.373 | 2023-03-03T12:47:02.373 | null | null | 21,325,986 | [
"java",
"load-balancing"
] |
75,627,275 | 2 | null | 75,625,271 | 2 | null | Unfortunately you cannot directly run WPF or Forms code in a web browser. The closest thing that once existed was SilverLight - though it was not strictly 100% drop and go from WPF, it was close - but that has been deprecated and will not run in a modern browser.
There have been efforts to replicate Silverlight or some... | null | CC BY-SA 4.0 | null | 2023-03-03T12:47:51.600 | 2023-03-03T12:47:51.600 | null | null | 4,467,670 | null |
75,627,281 | 2 | null | 66,193,137 | 0 | null | This answer [https://stackoverflow.com/a/75627162/21293767](https://stackoverflow.com/a/75627162/21293767) with Circe decoder for generic case class with default parameters using generics with case class MyClass[T] might help
| null | CC BY-SA 4.0 | null | 2023-03-03T12:48:06.630 | 2023-03-03T12:48:06.630 | null | null | 21,293,767 | null |
75,627,280 | 2 | null | 75,627,164 | 1 | null | The add_mutually_exclusive_group method creates a new mutually exclusive argument group. The required=True argument ensures that the user has to select one of the options in the group.
```
group = parser.add_mutually_exclusive_group(required=True)
group.add_argument(...)
group.add_argument(...)
group.add_argument(...)... | null | CC BY-SA 4.0 | null | 2023-03-03T12:48:02.073 | 2023-03-03T12:48:02.073 | null | null | 754,991 | null |
75,627,263 | 2 | null | 75,626,886 | 0 | null | Try creating a new element with the same content, which will not include any style, or you can add your style to the new element:
```
const myContent = document.createElement('div');
myContent.innerHTML = content.innerHTML;
// set your styles..
myContent.style.cssText = 'color:green;';
html2pdf().set(options).from(myCo... | null | CC BY-SA 4.0 | null | 2023-03-03T12:46:09.050 | 2023-03-04T21:58:35.243 | 2023-03-04T21:58:35.243 | 4,321,299 | 4,321,299 | null |
75,627,276 | 1 | null | null | 0 | 11 | I am trying to write a get request using the volley library for frontend and spring boot for backend. I've tested the backend and it works just fine but the response on the volley is null, any ideas as to why this may be?
heres my volley request:
```
RequestQueue queue = Volley.newRequestQueue(Lobby.this);
Stri... | JsonArrayRequest returning null? | CC BY-SA 4.0 | null | 2023-03-03T12:47:52.200 | 2023-03-03T12:47:52.200 | null | null | 19,677,541 | [
"java",
"android",
"spring-boot",
"android-volley"
] |
75,627,282 | 1 | null | null | 0 | 8 | Ive got timeseries data from a single month, units are days since 1950-01-01 00:00:00 UTC. When trying to convert the units to days, it instead converted it to seconds.
So as to give me a range of "1950-01-01 06:00:40 UTC" "1950-01-01 06:01:10 UTC"
```
time_obs <- as.POSIXct(time, origin = "1950-01-01", tz="UTC")
range... | Converting time data units in NetCDF into days instead of seconds | CC BY-SA 4.0 | null | 2023-03-03T12:48:08.747 | 2023-03-03T12:50:38.053 | 2023-03-03T12:50:38.053 | 21,325,843 | 21,325,843 | [
"r",
"netcdf",
"netcdf4"
] |
75,627,279 | 1 | null | null | -1 | 27 | I am trying to move some PHP scripts from a PC running PHP version 7 to a PC running PHP version 8.
There is problem with following each() query:
```
do {
$Tabelle->SetLine(array_values($Line));
foreach($Line as $Spalte => $Kapitel) {
list($Name, $URL) = each($URLs[$Spalte]);
... | PHP, update code that uses the deprecated each() function | CC BY-SA 4.0 | null | 2023-03-03T12:48:01.327 | 2023-03-03T13:17:24.660 | null | null | 21,325,775 | [
"php"
] |
75,627,284 | 2 | null | 67,041,157 | 1 | null | I find none of the answers mentioned above work.
I finally managed to hide the pydub playback output by using a subprocess.
If you are interested, I implemented at:
[https://github.com/eliranwong/UniqueBible/blob/main/util/RemoteCliMainWindow.py#L287](https://github.com/eliranwong/UniqueBible/blob/main/util/RemoteCliMa... | null | CC BY-SA 4.0 | null | 2023-03-03T12:48:21.107 | 2023-03-03T12:48:21.107 | null | null | 20,712,208 | null |
75,627,285 | 2 | null | 75,625,352 | 0 | null | The `Func` function in Django ORM is used to generate SQL functions for the database engine to execute. Currently, you are trying to pass the `timezone` offset values as string literals, which is not possible because Django ORM will treat them as database field names, resulting in the `FieldError` you are seeing.
You c... | null | CC BY-SA 4.0 | null | 2023-03-03T12:48:21.957 | 2023-03-03T12:48:21.957 | null | null | 17,562,044 | null |
75,627,286 | 1 | null | null | 0 | 13 | I am trying to get the content of a edit control in a Gui i create in AHK v2, triggered after pressing a submit button, as the following code:
```
myGui:=Gui()
myGui.addEdit("vInput")
myGui.addButton(,"Submit").onEvent("click",(*)=>output:=myGui.submit())
myGui.show()
winwaitclose myGui
msgbox output.input
```
The pro... | How to access variables of Gui callback event in AHK v2? | CC BY-SA 4.0 | null | 2023-03-03T12:48:29.347 | 2023-03-03T13:29:04.923 | 2023-03-03T13:29:04.923 | 9,263,447 | 9,263,447 | [
"user-interface",
"autohotkey"
] |
75,627,289 | 2 | null | 73,058,127 | 0 | null | `julia myscript.jl &> logfile.txt & disown $!`
Many apps don't respect nohup, so you can use `disown` instead. The `$!` syntax is a special variable that represents PID of last executed command.
| null | CC BY-SA 4.0 | null | 2023-03-03T12:48:43.477 | 2023-03-03T12:48:43.477 | null | null | 4,060,721 | null |
75,627,292 | 1 | null | null | 0 | 21 | We have very large table with almost 80 Billion records with one hash paritition.
any suggestions how to gather stats on this table as it is taking a week to get completed or failed in between with snapshot too old error.
I am using below parameter to gather stats:
```
BEGIN dbms_stats.gather_table_stats(ownname => AB... | Gather stats on Large table | CC BY-SA 4.0 | null | 2023-03-03T12:48:49.657 | 2023-03-03T16:22:37.847 | null | null | 904,876 | [
"oracle",
"oracle19c",
"gather"
] |
75,627,291 | 1 | 75,627,358 | null | 1 | 18 | I have a pd like this:
```
DATE delivery
2020-01-01 1
2020-01-01 11
2020-01-01 10
2020-01-01 9
2020-01-01 8
..
2023-03-02 5
2023-03-02 4
2023-03-02 3
2023-03-02 2
2023-03-02 11
```
Index is DateTimeIndex but not unique. I have a list (date_adj) of a few dates... | How do I change a pandas row value, for a certain column, for a certrain date (datetimeindex) in a dataframe? | CC BY-SA 4.0 | null | 2023-03-03T12:48:47.990 | 2023-03-03T12:55:34.623 | null | null | 5,575,597 | [
"python",
"pandas",
"pandas-loc"
] |
75,627,288 | 2 | null | 75,626,144 | 0 | null | i think the query looks good.
and there is some repetition key of the query,
how about this?
```
@api.get("/songsets/{username}/songs", response_description="List all songs for users")
async def list_songs(username, category: str | None = None, proficiency: int | None = None):
songs_pipeline = [
{ "$match... | null | CC BY-SA 4.0 | null | 2023-03-03T12:48:42.063 | 2023-03-03T12:48:42.063 | null | null | 9,267,467 | null |
75,627,295 | 1 | null | null | -3 | 12 | I Have String Value.
then how to convert in float value and then give it two decimal points?
| How to give two decimal point of double which converted from String value in android java | CC BY-SA 4.0 | null | 2023-03-03T12:49:02.100 | 2023-03-03T13:01:38.840 | 2023-03-03T13:01:38.840 | 16,418,724 | 16,418,724 | [
"java",
"android",
"dynamic"
] |
75,627,294 | 1 | null | null | -1 | 21 | I am experiencing a memory leak in my WPF application. I have profiled the app using ANTS Memory Profiler which reveled this:
[](https://i.stack.imgur.com/1dx6E.png)
I am not sure I understand this. It looks that the WindowCollection holds a reference to my view. The weird thing is this view was not even shown yet. I o... | WPF Memory Leak - view referenced by WindowCollection | CC BY-SA 4.0 | null | 2023-03-03T12:48:57.110 | 2023-03-03T14:27:30.397 | 2023-03-03T14:27:30.397 | 9,533,613 | 9,533,613 | [
"wpf",
"memory",
"memory-leaks",
"ants"
] |
75,627,293 | 1 | null | null | 0 | 19 | I'm trying to make a function in telegram bot which will add a button with a link to any text message, here is a main part of a code:
```
message_user_send = {}
name_of_url = {}
url_user_send = {}
############################
@bot.message_handler(commands=['aaa'])
def send(message):
msg1 = bot.send_message(messag... | Cannot embed button with a link in Telegram Bot | CC BY-SA 4.0 | null | 2023-03-03T12:48:51.943 | 2023-03-03T14:01:24.003 | 2023-03-03T13:12:10.300 | 16,992,726 | 16,992,726 | [
"telegram",
"telegram-bot",
"python-telegram-bot"
] |
75,627,297 | 1 | 75,627,539 | null | 1 | 34 | I want to make a progress bar with pause and play, like this.
[](https://i.stack.imgur.com/LIxS2.png)
How can I got this output with compose ?
I tried a lot of animations but couldn't handle with the start/stop operations. What is the most elegant way to do this?
| Compose Custom Progress Animation With Pause/Resume | CC BY-SA 4.0 | null | 2023-03-03T12:49:11.020 | 2023-03-03T14:19:17.750 | 2023-03-03T12:58:44.693 | 14,721,171 | 14,721,171 | [
"android",
"kotlin",
"android-jetpack-compose"
] |
75,627,296 | 2 | null | 75,627,295 | 0 | null | Get String value from Source of Value.
Then Convert it in `double`
after declare `DecimalFormat` Method. and follow bellowed step.
```
String value = "10.0000000"
double valueInFloat = Double.parseDouble(value);
```
Declare Method Now.
```
DecimalFormat decimalPoint = new DecimalFormat("0.00");
textview.setText(decim... | null | CC BY-SA 4.0 | null | 2023-03-03T12:49:02.100 | 2023-03-03T12:58:04.707 | 2023-03-03T12:58:04.707 | 2,442,804 | 16,418,724 | null |
75,627,298 | 2 | null | 75,627,031 | 2 | null | You can do something like the following:
```
library(dplyr) #1.1.0 or above needed for `.by`
set.seed(1)
df_sample <-
df_sample %>%
mutate(id = row_number(),
max = max(id), .by = c(site, quad))
df %>%
left_join(distinct(df_sample, site, quad, max)) %>%
mutate(id = sapply(max, sample, size = 1)) %... | null | CC BY-SA 4.0 | null | 2023-03-03T12:49:19.473 | 2023-03-03T13:10:10.450 | 2023-03-03T13:10:10.450 | 13,460,602 | 13,460,602 | null |
75,627,283 | 1 | null | null | 0 | 18 | I am populating a list fetched from database on a QLineEdit using QCompleter
While working on that QLineEdit, User has to update the database record using another window
So, I want the fetched list to be updated on QLineEdit's textchanged signal by selecting data from database but its giving me an error
The code workin... | Show Updated List from Database everytime on QLineEdit textChanged Signal in Python | CC BY-SA 4.0 | null | 2023-03-03T12:48:09.780 | 2023-03-03T13:00:34.540 | 2023-03-03T13:00:34.540 | 2,001,654 | 8,678,077 | [
"python",
"mysql",
"pyqt5"
] |
75,627,301 | 1 | null | null | -4 | 20 | How do I draw a smooth blurred-bottom effect on a panel and with the bottom button ?
[enter image description here](https://i.stack.imgur.com/v34cg.png)
| How do I create a blurred-bottom effect on a panel? | CC BY-SA 4.0 | null | 2023-03-03T12:50:16.963 | 2023-03-03T12:50:16.963 | null | null | 21,325,942 | [
"c#",
".net",
"winforms"
] |
75,627,300 | 2 | null | 75,627,065 | 1 | null | I believe you're going for something like this
```
//example list
def version_list = ["Version-2.2.0.0","Version-2.2.1.0","Version-2.1.1.0","Version-2.1.0.0","Version-2.3.0.0"]
//group by version first 2 digits
def ver_map = version_list.groupBy{ ver -> ver.substring(8,11) }
ver_map.each{ k, v ->
//prints the lowe... | null | CC BY-SA 4.0 | null | 2023-03-03T12:50:02.430 | 2023-03-03T16:01:58.603 | 2023-03-03T16:01:58.603 | 3,582,362 | 3,582,362 | null |
75,627,303 | 2 | null | 72,678,784 | 0 | null | one way of doing this is to use the SignIn method again provided by next auth with different scopes. [https://authjs.dev/reference/utilities/#additional-parameters](https://authjs.dev/reference/utilities/#additional-parameters)
This partially solved a problem I had.
| null | CC BY-SA 4.0 | null | 2023-03-03T12:50:24.303 | 2023-03-03T12:50:24.303 | null | null | 19,314,547 | null |
75,627,305 | 2 | null | 75,627,134 | 2 | null | Try the `‏` - HTML character entity that represents the right-to-left mark. It's a non-printing character used to indicate the directionality of text.
```
<span dir="RTL">test 50‏%</span>
```
It was mentioned in the comments that in addition to using `‏`, the "50%" part should be wrapped in its own cont... | null | CC BY-SA 4.0 | null | 2023-03-03T12:50:33.547 | 2023-03-03T15:30:38.100 | 2023-03-03T15:30:38.100 | 21,288,555 | 21,288,555 | null |
75,627,307 | 1 | null | null | 0 | 4 | When I'm training my CNN model I'm getting improved training accuracy but validation accuracy is 48.5 in all the epochs.ps-im using data augmentation using .flow() method of imagedatagenrator of keras
I thought of getting accuracy improved but it's got worse by using vgg19 and data augmentation
| Getting the same validation accuracy for all the epochs | CC BY-SA 4.0 | null | 2023-03-03T12:50:47.690 | 2023-03-03T12:50:47.690 | null | null | 19,551,845 | [
"validation",
"conv-neural-network"
] |
75,627,308 | 2 | null | 40,749,946 | 0 | null | Another way
```
UPDATE `table_name`
SET
`desc` = CASE
WHEN (`id_one`='1' AND `id_tow`='1') THEN '22222' ... | null | CC BY-SA 4.0 | null | 2023-03-03T12:50:51.927 | 2023-03-03T12:50:51.927 | null | null | 7,707,781 | null |
75,627,306 | 2 | null | 61,827,581 | 1 | null | Sounds like you wanted to use Java 11 on GAE Flex, which wasn't supported when you wrote this question. However, that has changed.
Java 11 and 17 are [now available in Google App Engine Flex](https://cloud.google.com/appengine/docs/flexible/java/runtime#newversions) in preview.
Simply add the following to the `runtime_... | null | CC BY-SA 4.0 | null | 2023-03-03T12:50:36.340 | 2023-03-03T12:50:36.340 | null | null | 564,157 | null |
75,627,311 | 2 | null | 75,627,252 | 1 | null | Because port `3999` is in use.
[http://127.0.0.1:3999/welcome/1](http://127.0.0.1:3999/welcome/1)
`tour.exe` can run standalone at every folder.
| null | CC BY-SA 4.0 | null | 2023-03-03T12:51:33.630 | 2023-03-03T12:51:33.630 | null | null | 3,728,901 | null |
75,627,310 | 1 | null | null | 0 | 9 | When I am in the middle of the line, I can press to go to the next line. How can I do that it also automatically was adding commas if I do this in arrays?
For example, I want to add two plugins in the following ESLint config:
```
extends: [
'airbnb',
'plugin:@typescript-eslint/recommended',
'airbnb/hooks',... | Automatically add commas on Command+Enter in WebStorm | CC BY-SA 4.0 | null | 2023-03-03T12:51:14.113 | 2023-03-03T14:04:57.953 | 2023-03-03T14:04:57.953 | 783,119 | 13,286,402 | [
"webstorm",
"jetbrains-ide"
] |
75,627,174 | 1 | null | null | 0 | 26 | I am trying to calculate the average prediction for a regression that includes an interaction term. I am using the avg_prediction command from the marginal_effects package to do this. However, when I run the command with both variables included in the interaction term (voter_party.y * white.x), I always get NA values f... | marginal effects in R not producing std. error or confidence interval for first variable value | CC BY-SA 4.0 | null | 2023-03-03T12:38:10.973 | 2023-03-03T12:43:20.403 | 2023-03-03T12:43:20.403 | 16,365,963 | 16,365,963 | [
"r",
"marginal-effects",
"fixest",
"r-marginaleffects"
] |
75,627,313 | 1 | null | null | 0 | 20 | I'm currently trying to simply request the users location for a weather widget provided by the extension's content script.
The issue I'm facing is that while this would otherwise be doable via
`navigator.geolocation.getCurrentPosition(success, error, options);`
Using it like that in the content script requires permissi... | Request user location via Chrome extension (Manifest V3) | CC BY-SA 4.0 | null | 2023-03-03T12:51:34.413 | 2023-03-03T12:51:34.413 | null | null | 11,748,042 | [
"javascript",
"google-chrome",
"google-chrome-extension",
"geolocation",
"service-worker"
] |
75,627,314 | 2 | null | 75,627,107 | 1 | null | Sorry, no way to do that.
If You want to create a dialog yourself, you can use MAUI, but unfortunately the "official" version doesn't include Linux.
| null | CC BY-SA 4.0 | null | 2023-03-03T12:51:41.803 | 2023-03-03T12:51:41.803 | null | null | 15,322,319 | null |
75,627,309 | 2 | null | 47,850,441 | 0 | null | Not ideal but a work around is this. Define this abstract class:
```
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.ObjectCodec;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonDeserializer;
import java.io.IOException;
import java.... | null | CC BY-SA 4.0 | null | 2023-03-03T12:51:13.653 | 2023-03-03T12:51:13.653 | null | null | 1,705,880 | null |
75,627,299 | 1 | 75,628,584 | null | -1 | 41 | I have made a GUI for selecting different floors. The user has to mention the plot, after which the output is shown for the levels/clusters and then in the next level, an option is given to select the level, and in the next, the option to select the room. But after finishing two level, i.e., after selecting the plot an... | Not able to run this code. After two levels, the code seems to fail, in retrieving the values required to run the next level | CC BY-SA 4.0 | null | 2023-03-03T12:49:48.100 | 2023-03-04T17:06:27.490 | 2023-03-04T17:06:27.490 | 20,585,541 | 11,082,613 | [
"python",
"python-3.x",
"user-interface",
"tkinter"
] |
75,627,315 | 1 | null | null | 0 | 10 | I am having trouble using the firebaseui in combination with angular fire. My code for setting up the ui is the following
```
constructor(private afAuth: AngularFireAuth) {
}
ngOnInit(): void {
const uiConfig = {
signInOptions: [
firebase.auth.GoogleAuthProvider.PROVIDER_ID,
],
callba... | How do i intialize firebaseui with angular fire | CC BY-SA 4.0 | null | 2023-03-03T12:51:43.683 | 2023-03-03T15:16:07.357 | 2023-03-03T15:16:07.357 | 209,103 | 21,326,023 | [
"angular",
"firebase-authentication",
"angularfire",
"firebaseui"
] |
75,627,319 | 2 | null | 75,618,172 | 0 | null | To retrieve logs from a specific labeled pod, you can use [kubectl logs](https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#logs) with a selector that matches the desired label(s). For example:
```
kubectl logs -l app=nginx --all-containers=true
```
It will give the logs of all containers in pods ... | null | CC BY-SA 4.0 | null | 2023-03-03T12:52:01.247 | 2023-03-03T12:52:01.247 | null | null | 18,878,095 | null |
75,627,316 | 1 | null | null | 0 | 37 | I have a dataset in a wide format: each case corresponds to one person. Each person has a number of measurements, and these measurements belong together: There are nine time points and different things are measured at each of these time points.
Now I would like to bring the dataset into a "long" format. However, with c... | How to move from wide to long format with groups of measurement variables in one case (not single variables)? | CC BY-SA 4.0 | null | 2023-03-03T12:51:50.590 | 2023-03-04T08:43:39.857 | 2023-03-04T08:43:39.857 | 466,862 | 21,325,828 | [
"r"
] |
75,627,320 | 1 | null | null | 0 | 8 | I need to edit the textview without replacing the all text, for example
myText : Hi
Like if i click the button it will add "Hello" , so it should be like this "Hi Hello" without replacing the all text.
Sorry for bad English.
I used setText and it replace all text
| setText on textview without replacing sketchware | CC BY-SA 4.0 | null | 2023-03-03T12:52:06.770 | 2023-03-03T12:52:06.770 | null | null | 21,326,003 | [
"sketchware"
] |
75,627,321 | 2 | null | 75,625,713 | 0 | null | Lambda when placed in a public subnet won't have internet access, since public IP addresses are not assigned to Lambda. For Lambda to have internet access when placed in a VPC, you need a private subnet with NAT instance or NAT Gateway for internet access. Also, the security group needs to allow the outbound traffic.
| null | CC BY-SA 4.0 | null | 2023-03-03T12:52:17.617 | 2023-03-03T12:52:17.617 | null | null | 11,335,072 | null |
75,627,317 | 1 | null | null | 1 | 33 | Step 1:
Small amount of data in all tables (around 10)
```
select * from table1;
```
This query takes 40-50ms. This table has only 1 record
Step 2:
We load a million records in table2, table3...table7.
We run the same query on .
```
select * from table1;
```
This query takes more than 100ms. This almost remains same ... | Increased data in one table is impacting performance of other | CC BY-SA 4.0 | null | 2023-03-03T12:51:53.357 | 2023-03-03T18:52:14.163 | 2023-03-03T18:52:14.163 | 6,733,421 | 6,733,421 | [
"sql",
"postgresql",
"performance"
] |
75,627,318 | 1 | 75,627,783 | null | 0 | 35 | Hello I want to make form under the box (new referral) how can I do it? I wanna add first name last name date of birth, phone, email, addres sections under the box but i could not solve it out. Any help appreciated. I shared my codes on code snippet. I wanna add icon and write First name side by side and I want line un... | How Can I Make Form Under Box? | CC BY-SA 4.0 | null | 2023-03-03T12:51:59.680 | 2023-03-03T13:37:43.083 | 2023-03-03T13:01:19.040 | 1,336,174 | 20,849,590 | [
"html",
"css"
] |
75,627,326 | 2 | null | 73,449,069 | 0 | null | I ran into similar error setting up multiple schemas for a docker-image of Oracle XE (v21).
After creating a schema/user with:
```
CREATE USER username IDENTIFIED BY userpw;
GRANT UNLIMITED TABLESPACE to username;
GRANT CONNECT TO username;
GRANT CREATE SESSION TO username;
GRANT CREATE TABLE TO username;
GRANT CREATE... | null | CC BY-SA 4.0 | null | 2023-03-03T12:52:42.127 | 2023-03-03T12:52:42.127 | null | null | 6,013,511 | null |
75,627,324 | 2 | null | 75,622,760 | 0 | null | Since you are compiling with `-fleading-underscore` and additional `_` is being prepended to identifiers. In the case of class functions and member variables this results in two underscores `__` appearing.
The assembly code in `interruptstubs.s` will have to take that into account:
```
.set IRQ_BASE, 0x20
.section .te... | null | CC BY-SA 4.0 | null | 2023-03-03T12:52:29.363 | 2023-03-03T14:21:20.363 | 2023-03-03T14:21:20.363 | 3,857,942 | 3,857,942 | null |
75,627,287 | 1 | null | null | 0 | 11 | I'm trying to create a vocal assistant using the google API but I continue to get a bad request when trying to run my code when connecting to the google API.
I'm using python in VScode on a mac and in the past it had worked until it blocked my account when i mistakenly sent too many requests.
Can anyone help with this.... | Error when trying to connect to the google auth api | CC BY-SA 4.0 | null | 2023-03-03T12:48:37.927 | 2023-03-03T12:48:37.927 | null | null | 21,325,990 | [
"python",
"json",
"google-api",
"credentials"
] |
75,627,330 | 2 | null | 28,587,234 | 0 | null | I hade same on Android Studio Electric Eel Patch 1
> Android Studio Update: Some conflicts found in installation area
but with . I just deleted that file and updated successfully.
| null | CC BY-SA 4.0 | null | 2023-03-03T12:53:05.643 | 2023-03-03T12:53:05.643 | null | null | 5,750,389 | null |
75,627,325 | 1 | null | null | 1 | 24 | Have a dateframe and based on muliple conditions need to return the rows and to create a new column to store these rows.
Example
```
record = {
'Name': ['Ankit', 'Amit', 'Aishwarya', 'Priyanka', 'Priya', 'Shaurya' ],
'Age': [21, 19, 20, 18, 17, 21],
'Stream': ['Math', 'Commerce', 'Science', 'Math', 'Math', 'Scien... | Python -Pandas- How to return speicfic rows based on conditions and return the specific column rows only | CC BY-SA 4.0 | null | 2023-03-03T12:52:37.913 | 2023-03-03T13:26:42.123 | 2023-03-03T13:20:39.493 | 21,071,966 | 21,071,966 | [
"python",
"python-3.x",
"pandas",
"filter"
] |
75,627,328 | 1 | null | null | 1 | 15 | ```
variables:
${{ if eq(environment, 'dev') }}:
- group: 'newgroupa'
${{ else }}:
- group: 'newgroupb'
```
The above lines in yml gives me object not set to reference error.
I even tried by adding -
example
```
variables:
- ${{ if eq(environment, 'dev') }}:
- group: 'newgroupa'
- ${{... | Encountered error(s) while parsing pipeline YAML: /azure-pipelines.yml: Object reference not set to an instance of an object | CC BY-SA 4.0 | null | 2023-03-03T12:52:53.993 | 2023-03-03T13:45:33.790 | 2023-03-03T12:57:00.890 | 3,172,093 | 3,172,093 | [
"c#",
"yaml",
"azure-pipelines"
] |
75,627,323 | 2 | null | 70,906,131 | 0 | null | I had exactly this scenario myself. The way I solved it was to take control of writing the authentication cookie - in BOTH applications. The approach relies on the auth cookie written by the ASP.NET Core application being able to be decrypted by the Framework app. That way, the Framework app sees each request as coming... | null | CC BY-SA 4.0 | null | 2023-03-03T12:52:22.917 | 2023-03-03T12:58:46.243 | 2023-03-03T12:58:46.243 | 21,326,050 | 21,326,050 | null |
75,627,331 | 1 | 75,627,583 | null | 1 | 35 | If it is not possible, is there any way to do it without entering the browser and manually creating one, which then has to be synced to the local one?
| Is it possible to initiate a remote repository on GitHub from the Git Bash command line? | CC BY-SA 4.0 | null | 2023-03-03T12:53:16.370 | 2023-03-03T13:26:29.553 | 2023-03-03T13:11:09.803 | 874,188 | 16,894,611 | [
"git",
"github"
] |
75,627,327 | 1 | null | null | 1 | 30 | My view returns text field output since I concatenate my field with '%' symbol. When I push this data into excel using to_excel, it inserts as text and not numbers. Is there a way to fix this problem so that my excel sheets has numbers instead of text?
redshift code:
```
select concat(((("replace"((myfield)::text, '%':... | Convert text to float in redshift with same output | CC BY-SA 4.0 | null | 2023-03-03T12:52:47.660 | 2023-03-03T19:47:10.300 | null | null | 9,773,920 | [
"python",
"pandas",
"aws-lambda",
"amazon-redshift",
"export-to-excel"
] |
75,627,127 | 1 | null | null | 0 | 17 | I am trying to integrate a Html admin theme into new angular project. The pages are loading fine, but the toggle & click actions are not working after integrating into Angular.
I am trying to integrate a Html admin theme into new angular project. The pages are loading fine, but the toggle & click actions are not workin... | Integrating Html theme into angular | CC BY-SA 4.0 | null | 2023-03-03T12:32:47.810 | 2023-03-03T12:32:47.810 | null | null | 19,016,205 | [
"html",
"angular",
"angular2-template",
"angular-template"
] |
75,627,312 | 1 | null | null | 0 | 6 | This is class where i have problem.i have checked api twice api recieving data properly but its not reaching to news list tile
'''
//News List Tile File
import 'package:flutter/material.dart';
import 'package:hacker_news/src/blocs/stories_provider.dart';
import 'package:hacker_news/src/models/item_model.dart';
```
clas... | why i am recieving null at itemsnapShot present in FutureBuilder in news list tile i am getting output like "Still Loading Item 54621" | CC BY-SA 4.0 | null | 2023-03-03T12:51:33.880 | 2023-03-03T12:51:33.880 | null | null | 13,377,440 | [
"flutter",
"dart",
"flutter-futurebuilder",
"flutter-streambuilder"
] |
75,627,338 | 2 | null | 75,626,659 | 0 | null | I think you could use
```
0 0/30 9-16,17 * * MON-FRI
```
But I'm not sure if this works using Spring
| null | CC BY-SA 4.0 | null | 2023-03-03T12:53:39.167 | 2023-03-03T12:53:39.167 | null | null | 6,751,603 | null |
75,627,332 | 1 | null | null | 0 | 20 | So im trying to color some features in an openlayers vector, for that im using a function in the vectorlayer style property. Said function uses a constant style defined above as a starting point and according to the feature properties it should either apply the color the feature has stored or the default.
I understand ... | Openlayers styles not applying correctly | CC BY-SA 4.0 | null | 2023-03-03T12:53:17.497 | 2023-03-03T12:53:17.497 | null | null | 15,129,242 | [
"javascript",
"typescript",
"openlayers"
] |
75,627,336 | 1 | null | null | 0 | 16 | I have written a method to get the ping which looks like:
```
fun ping(host: String): String {
return try {
val ip = Inet4Address.getByName(host)
val ping = ip.hostAddress?.let { executePing(it) }
Log.d(TAG, "Executed: $ping")
ping.toString()
} catch (e: E... | Cannot run program "/system/bin/ping" in Unit test | CC BY-SA 4.0 | null | 2023-03-03T12:53:26.520 | 2023-03-03T15:25:55.867 | null | null | 11,168,170 | [
"android",
"kotlin",
"junit",
"kotlin-coroutines",
"android-testing"
] |
75,627,337 | 1 | null | null | -1 | 13 | I am deploying MariaDB on my k8s cluster (Docker-desktop version) running on MacBook (M2 chip). Since the M2 chip is an ARM64 architecture, so I try to find the matching MariaDB image.
I found [this one](https://artifacthub.io/packages/helm/groundhog2k/mariadb/0.1.4).
So, I use Helm to deploy it by:
1. Add the helm re... | Using Helm to deploy MariaDB to cluster ended up with FORBIDDEN error | CC BY-SA 4.0 | null | 2023-03-03T12:53:28.690 | 2023-03-03T13:46:10.673 | 2023-03-03T13:01:47.723 | 842,225 | 842,225 | [
"kubernetes",
"mariadb",
"kubernetes-helm"
] |
75,627,339 | 1 | null | null | 3 | 33 | When a user make a custom amount payment, I need to show a Paypal checkout page with different fields like tax, total amount etc. I want to add multiple fields like sales tax, total amount etc. How will I achieve it?
Also We have implemented PayPal subscription payment in our web application.
1. Can we add sales tax t... | How to create a custom checkout page in Paypal for variable amount one time payments and recurring payments? | CC BY-SA 4.0 | null | 2023-03-03T12:53:39.373 | 2023-03-04T06:38:47.903 | 2023-03-04T06:38:47.903 | 17,632,041 | 17,632,041 | [
"javascript",
"angular",
"paypal",
"checkout",
"paypal-subscriptions"
] |
75,627,335 | 2 | null | 75,607,154 | 0 | null | Asked the question in the ksqlDB forum and got an answer there:
[https://forum.confluent.io/t/how-to-explode-rows-for-each-day-between-2-timestamp-columns/7323](https://forum.confluent.io/t/how-to-explode-rows-for-each-day-between-2-timestamp-columns/7323)
So I basically need to create a user-defined table function fol... | null | CC BY-SA 4.0 | null | 2023-03-03T12:53:24.013 | 2023-03-03T12:53:24.013 | null | null | 2,960,066 | null |
75,627,342 | 2 | null | 68,586,402 | -1 | null | As already said is immutable and is not.
To add to this, when compiler compiles string concatenations it converts it to StringBuilder. [String concatenation in toString in Java](https://stackoverflow.com/questions/1532461/stringbuilder-vs-string-concatenation-in-tostring-in-java)
Something else to keep in mind is tha... | null | CC BY-SA 4.0 | null | 2023-03-03T12:54:03.837 | 2023-03-03T12:54:54.410 | 2023-03-03T12:54:54.410 | 6,230,601 | 6,230,601 | null |
75,627,343 | 1 | null | null | 0 | 35 | I am trying to create a relationship between 2 tables in Access. In one table I have customers, in another I have areas by postal region. In the customers table I have all the usual address information and a simple calculated field which is just the country code and the first 2 characters of a post code. For example Un... | Creating a relationship with a calculated field | CC BY-SA 4.0 | null | 2023-03-03T12:54:06.317 | 2023-03-04T20:51:38.633 | 2023-03-04T20:51:38.633 | 3,404,097 | 6,190,232 | [
"database",
"ms-access",
"database-design"
] |
75,627,347 | 2 | null | 75,627,095 | 0 | null | In VS Code they are called Guides. Just open the settings and search for them. I assume you want either Indentation Guides or Bracket Pair guides:
[](https://i.stack.imgur.com/dpRoo.png)
| null | CC BY-SA 4.0 | null | 2023-03-03T12:54:43.747 | 2023-03-03T12:54:43.747 | null | null | 6,618,289 | null |
75,627,345 | 2 | null | 71,560,371 | 0 | null | You can simply edit(or create) a file in your project root called .eslintrc `./.eslintrc` and add this code:
```
{
"extends": "@sanity/eslint-config-studio",
"eslint.workingDirectories": ["./web", "./studio"]
}
```
To solve this issue you can just be setting a working directory for your project. It's a major impro... | null | CC BY-SA 4.0 | null | 2023-03-03T12:54:27.707 | 2023-03-03T13:03:19.733 | 2023-03-03T13:03:19.733 | 13,102,254 | 13,102,254 | null |
75,627,348 | 2 | null | 75,627,134 | 1 | null | According to [MDN docs](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/dir):
> The `dir` global attribute is an enumerated attribute that indicates the directionality of the element's text.
That means that it will change the direction in which the text is rendered, but not the order in which the se... | null | CC BY-SA 4.0 | null | 2023-03-03T12:54:43.853 | 2023-03-03T12:57:03.110 | 2023-03-03T12:57:03.110 | 13,927,534 | 13,927,534 | null |
75,627,350 | 1 | null | null | 0 | 11 | I want only three data county, state and city from pincode field that enter by user, how to do this with example, actually I am new in react native.
| React native : How to get country, state and city from pincode field | CC BY-SA 4.0 | null | 2023-03-03T12:54:52.793 | 2023-03-03T12:54:52.793 | null | null | 20,446,457 | [
"react-native"
] |
75,627,351 | 1 | null | null | 0 | 17 | I'm looking for way to list all instance of used my own directive [app-feature]='1' in whole application without visiting all sub pages.
-
| Listing all uses of own directive in Angular | CC BY-SA 4.0 | null | 2023-03-03T12:54:54.817 | 2023-03-03T12:54:54.817 | null | null | 1,833,372 | [
"angular",
"directive"
] |
75,627,333 | 1 | null | null | 0 | 15 | I am on a WordPress site hosted on Google Compute Engine with an Apache server. The problem I am facing is that when I try to connect to my site using HTTP, I get a 400 Bad Request error. There is no problem with HTTPS, and I have an SSL certificate. When Certbot asked me to, I made sure to redirect HTTP to HTTPS.
I ha... | How to fix HTTP 400 Bad Request error when accessing WordPress | CC BY-SA 4.0 | null | 2023-03-03T12:53:18.083 | 2023-03-03T20:45:57.623 | null | null | 17,279,320 | [
"wordpress",
"apache",
"google-compute-engine"
] |
75,627,352 | 1 | null | null | 0 | 61 | As far as I understood, `NAN` can be allocate to a `double` type variable but not necessarily to `int` / `size_t`
Is there still a way to populate a vector/matrix of type `int` / `size_t` with NAN?
```
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
typedef struct {
size_t nrows, ncols;
size_t *array;
} M... | How to populate a vector / matrix of int / size_t with NAN in C | CC BY-SA 4.0 | null | 2023-03-03T12:54:57.097 | 2023-03-03T13:51:49.033 | null | null | 9,381,746 | [
"c",
"matrix",
"vector",
"integer",
"nan"
] |
75,627,349 | 1 | null | null | 0 | 25 | I am using this below code for accessing the mac open windows:
```
let options = CGWindowListOption(arrayLiteral: .excludeDesktopElements, .optionOnScreenOnly)
let windowsListInfo = CGWindowListCopyWindowInfo(options, CGWindowID(0))
let infoList = windowsListInfo as! [[String : Any]]
let visibleWindows = in... | How can I access the desktop visible Windows in swift? | CC BY-SA 4.0 | null | 2023-03-03T12:54:48.633 | 2023-03-03T12:55:23.077 | 2023-03-03T12:55:23.077 | 21,325,647 | 21,325,647 | [
"swift",
"macos",
"cocoa"
] |
75,627,340 | 1 | null | null | 0 | 47 | In my Node.js project I need to use `import/export` syntax. Before that I've used CommonJs `require()` and everything worked. Now I am assuming there is problem with how I use `dotenv` in my project. So every time I try to run an app I get an error:
```
Did you mean to import ../util/database.js?
at new NodeError (... | ES6 `import/export` syntax with `dotenv` yields error `cannot find module`, why? | CC BY-SA 4.0 | null | 2023-03-03T12:53:57.567 | 2023-03-03T12:53:57.567 | null | null | 10,951,636 | [
"javascript",
"node.js",
"ecmascript-6",
"module",
"dotenv"
] |
75,627,353 | 1 | null | null | 1 | 22 | I have a very strange security issue in Spring Boot 3.0.2
When I try to secure a REST service with `@PreAuthorize` and the method contains parameters I get the following error message:
```
Name for argument of type [int] not specified, and parameter name information not found in class file either.
```
If I remove the ... | Strange Security Error in Spring Boot 3.0.2 | CC BY-SA 4.0 | null | 2023-03-03T12:55:08.737 | 2023-03-03T13:32:28.073 | null | null | 2,952,564 | [
"spring",
"spring-boot",
"spring-security",
"spring-restcontroller",
"spring-rest"
] |
75,627,355 | 2 | null | 75,627,244 | 1 | null | Your problem is at runtime, during the execution, so this is not related with Typescript at all.
Here, you forgot to return the promise in your method, so you return a `Promise<void>`.
```
async test() {
// return the promise
return judgeApi.post<JudgeRequest>(`/submissions?${qs.stringify({
language_i... | null | CC BY-SA 4.0 | null | 2023-03-03T12:55:12.793 | 2023-03-03T12:55:12.793 | null | null | 4,870,785 | null |
75,627,358 | 2 | null | 75,627,291 | 1 | null | It's not fully clear, but I think that you want:
```
date_adj = ['2020-01-01', '2020-01-02']
df.loc[df['DATE'].isin(date_adj) & df['delivery'].between(1, 11), 'delivery'] += 1
```
Output:
```
DATE delivery
0 2020-01-01 2
1 2020-01-01 12
2 2020-01-01 11
3 2020-01-01 10
4 2020-01-01 ... | null | CC BY-SA 4.0 | null | 2023-03-03T12:55:34.623 | 2023-03-03T12:55:34.623 | null | null | 16,343,464 | null |
75,627,359 | 1 | null | null | 0 | 5 | I am in the process of docking a web application with Nuxt that I made. It is a little old so I have to import nodejs 14.0.1. But unfortunately it gives me this error:
`=> ERROR [internal] load metadata for docker.io/library/node:14.0.1`
[The console](https://i.stack.imgur.com/bnQeV.png)
Here is my Dockerfile
`
FROM no... | Problem of nodejs version for a nuxt application under docker | CC BY-SA 4.0 | null | 2023-03-03T12:55:40.440 | 2023-03-03T12:55:40.440 | null | null | 19,101,667 | [
"docker",
"docker-compose",
"nuxt.js"
] |
75,627,360 | 1 | null | null | 0 | 10 | I have implemented my own version:
```
/** A broadcastable list of event listeners. */
export class Observable<F extends (...args: unknown[]) => unknown = () => void> {
#listeners: Set<F> = new Set();
/** Add the given listener. */
add(listener: F): void {
this.#listeners.add(listener);
}
/** Remove the... | Is there a Typescript library for pub/sub without event names? Instead of `on(eventName, listener)` I am looking for `observable.add(listener)` | CC BY-SA 4.0 | null | 2023-03-03T12:55:41.487 | 2023-03-03T12:55:41.487 | null | null | 5,798,435 | [
"typescript",
"npm"
] |
75,627,341 | 2 | null | 75,587,442 | 0 | null | As you can see from [my other answer](https://stackoverflow.com/a/75601761), I tried a slightly different approach from [@DaniilFajnberg's](https://stackoverflow.com/users/19770795/daniil-fajnberg) [answer](https://stackoverflow.com/a/75597031) but it's not quite complete.
I thought that my approach would be "nicer" be... | null | CC BY-SA 4.0 | null | 2023-03-03T12:54:01.003 | 2023-03-03T12:54:01.003 | null | null | 134,044 | null |
75,627,354 | 1 | null | null | -2 | 14 | I have created a function that sends pdf but when i look at the stack trace, saw this message is coming from line 4
> [03-Mar-2023 12:34:35 UTC] PHP Parse error: syntax error, unexpected
'function' (T_FUNCTION), expecting ',' or ';' in
/home/acifinan/public_html/send-pdf.php on line 4
```
`<?php
echo "hello"
function... | How to fix error message "php parse error" when you have a function call? | CC BY-SA 4.0 | null | 2023-03-03T12:55:08.737 | 2023-03-03T12:56:10.263 | 2023-03-03T12:56:10.263 | 5,947,043 | 21,326,032 | [
"php",
"syntax-error"
] |
75,627,362 | 1 | null | null | 0 | 26 | I am trying to run locally my Azure Functions using python and the error message I get is the following:
```
[2023-03-03T11:34:59.832Z] No job functions found. Try making your job classes and methods public. If you're using binding extensions (e.g. Azure Storage, ServiceBus, Timers, etc.) make sure you've called the re... | Azure Functions Python error - no job functions | CC BY-SA 4.0 | null | 2023-03-03T12:55:55.243 | 2023-03-03T13:43:03.370 | null | null | 260 | [
"python",
"azure",
"azure-functions"
] |
75,627,357 | 1 | null | null | 0 | 24 | i want to pass a data from a view (.vue file) to another view (.vue file).
Not from a component to a view or from a view to a component.
here my view05.vue code
```
<script setup lang="ts">
import { ref } from "vue";
import { useRouter } from 'vue-router';
import { reactive } from 'vue';
import { toRefs } from 'vue';
... | VueJS3, how to pass data from view01.vue to view02.vue | CC BY-SA 4.0 | null | 2023-03-03T12:55:32.630 | 2023-03-03T12:55:32.630 | null | null | 18,298,833 | [
"vuejs3"
] |
75,627,363 | 2 | null | 75,618,616 | 0 | null | First of all many thanks to Marcus Hert da Coregio for pointing me in the right direction. Indeed this is a breaking change in Spring security 6 described [here](https://docs.spring.io/spring-security/reference/5.8/migration/servlet/session-management.html#_require_explicit_saving_of_securitycontextrepository). The sec... | null | CC BY-SA 4.0 | null | 2023-03-03T12:55:58.043 | 2023-03-03T12:55:58.043 | null | null | 520,359 | null |
75,627,367 | 2 | null | 75,626,124 | 1 | null | > how do I correctly compare an std::string_view with a char?
`std::string_view::compare` compares two views. Comparing a `char` from view with `char`:
```
std::cout << (sep.at(0) == bar) << '\n';
```
---
If you want to convert the `char` to a `string_view` and then compare the views (presuming that it is the first... | null | CC BY-SA 4.0 | null | 2023-03-03T12:56:09.273 | 2023-03-03T13:50:18.740 | 2023-03-03T13:50:18.740 | 3,677,097 | 3,677,097 | null |
75,627,364 | 1 | null | null | -1 | 12 | Hi I am working in react application. Below is my dockerfile
```
FROM node:alpine as builder
ENV NODE_ENV=production
ARG NODE_AUTH_TOKEN
ARG NEXUS_AUTH_TOKEN
WORKDIR /src
ENV PATH /src/node_modules/.bin:$PATH
COPY .npmrc ./
COPY package.json ./
COPY ./ ./
RUN npm install --production
RUN npm run build --silent
... | Unable to run react on Docker | CC BY-SA 4.0 | null | 2023-03-03T12:56:02.443 | 2023-03-03T12:56:02.443 | null | null | 4,898,395 | [
"reactjs",
"docker",
"npm",
"docker-container"
] |
75,627,361 | 1 | null | null | -1 | 19 | if anyone could help me out by modifying the code or highlighting the mistake in this code :
```
<script>
$(document).ready(function() {
$('form').on('submit', function(e) {
e.preventDefault();
var number = $('#number-input').val();
var gender = $('#gender-select').val();
... | modifying a JavaScript backend code for generating OTP and password which is added to HTML code | CC BY-SA 4.0 | null | 2023-03-03T12:55:48.477 | 2023-03-03T12:58:37.243 | 2023-03-03T12:58:37.243 | 125,816 | 21,290,582 | [
"javascript",
"web",
"project"
] |
75,627,365 | 2 | null | 75,575,819 | 0 | null | There are many ways to do this. Here is an easy one to get you started:
```
import imageio.v3 as iio
from PIL import ImageEnhance, Image
import numpy as np
fps = 30
n_frames = 5 * 60 * fps
increment = 0.3 * 1 / n_frames
# TODO: replace with your image
source_img = iio.imread("imageio:chelsea.png")
source = ImageEnhan... | null | CC BY-SA 4.0 | null | 2023-03-03T12:56:03.850 | 2023-03-03T12:56:03.850 | null | null | 6,753,182 | null |
75,627,366 | 1 | null | null | 0 | 11 | I'm currently trying to implement a genetic algorithm that works with Decision Trees in order to make an AI play a game of Geometry Dash.
I made a function to combine trees (see below) that seems to work well, but after a few calls to that function the kernel dies. I don't think this is a memory problem because I kept ... | Jupyter kernel keeps dying after some time | CC BY-SA 4.0 | null | 2023-03-03T12:56:05.813 | 2023-03-03T12:56:05.813 | null | null | 14,049,154 | [
"recursion",
"kernel",
"jupyter",
"genetic-algorithm"
] |
75,627,344 | 1 | null | null | 1 | 32 | Hеllo, all,
I am building a simple RabbitMQ AMQP server with Spring/Docker to run the server itself and I am following this guide: [https://spring.io/guides/gs/messaging-rabbitmq/#scratch](https://spring.io/guides/gs/messaging-rabbitmq/#scratch)
The classes are literally copied from there.
I have 3 classes in src/main/... | Parameter 0 of method listenerAdapter in "package/class" required a bean of type 'com.example.messagingrabbitmq.Receiver' that could not be found | CC BY-SA 4.0 | null | 2023-03-03T12:54:25.770 | 2023-03-04T05:04:16.303 | 2023-03-03T13:05:59.887 | 17,051,720 | 17,051,720 | [
"spring",
"docker",
"rabbitmq",
"javabeans",
"amqp"
] |
75,627,373 | 2 | null | 75,626,720 | 0 | null | Try dataLabels enabled: true
```
dataLabels: {
enabled: true,
format: '{point.name}',
style: {
color: 'black',
textOutline: 'none',
fontWeight: 'normal'
}
}
```
[https://jsfiddle.net/my9f382a/12/](https://jsfiddle.net/my9f382a/12/)
| null | CC BY-SA 4.0 | null | 2023-03-03T12:56:43.940 | 2023-03-03T12:56:43.940 | null | null | 12,716,453 | null |
75,627,369 | 1 | null | null | 0 | 68 | I'm experiencing really weird issue and have tried everything (ChatGPT, asked my front-end colleagues) to find out what is going on, but nothing helped me so far. So, this place is my last hope.
Here is my Main.js file:
```
import React, { Component } from 'react';
export default class Main extends Component {
co... | React: fetch() method breaks whole application | CC BY-SA 4.0 | null | 2023-03-03T12:56:29.897 | 2023-03-04T12:20:44.903 | 2023-03-04T12:20:44.903 | 4,215,351 | 4,215,351 | [
"javascript",
"reactjs",
"symfony",
"webpack"
] |
75,627,370 | 1 | null | null | 0 | 9 | I'm trying to run
```
jupyter lab --collaborative
```
It starts correctly but as soon as I connect to the server (open the url in my browser), I start getting warnings of this kind
```
[W 2023-03-03 13:41:26.430 ServerApp] 404 GET /api/yjs/JupyterLab:globalAwareness (f27a4ba663914e8e9a843d5164dba561@127.0.0.1) 2.88ms ... | Jupyterlab giving warnings in --collaborative mode and not opening notebooks | CC BY-SA 4.0 | null | 2023-03-03T12:56:33.160 | 2023-03-03T13:00:12.250 | 2023-03-03T13:00:12.250 | 21,326,000 | 21,326,000 | [
"server",
"jupyter-lab",
"collaboration"
] |
75,627,375 | 2 | null | 73,090,074 | 0 | null | If you're coming here in 2023 using redis@4.6.5, it can be tiring especially if you require backward compatibility.
In my case, I was previously using redis@3.1.1. Here's a quick solution.
```
import { createClient } from "redis";
const redis_url: string = REDIS_URL;
const a = URL.parse(redis_url);
const redisClient: ... | null | CC BY-SA 4.0 | null | 2023-03-03T12:56:49.377 | 2023-03-03T12:56:49.377 | null | null | 4,693,471 | null |
75,627,374 | 1 | null | null | 0 | 18 | I have a class called `Server` with a function `initRoutes` and a bunch of others:
```
export class Server {
app: Express;
checklistRouter: ChecklistRouter;
dateRouter: ChecklistRouter;
<...>
constructor(){
this.app = express();
this.checklistRouter = new ChecklistRouter(new ChecklistServi... | Jest outputs that a class constructor is not a constructor | CC BY-SA 4.0 | null | 2023-03-03T12:56:48.523 | 2023-03-03T12:56:48.523 | null | null | 10,699,566 | [
"node.js",
"typescript",
"jestjs",
"ts-jest"
] |
75,627,371 | 1 | 75,627,655 | null | 2 | 50 | I have a dataframe that looks like,
```
df <- data.frame(num1 = c('a','b','c','d')
,num2 = c(1,2,3,4)
,num3 = c(5,6,7,8)
,num4 = c('x','y','b','d'))
```
And would like the out put to go from
```
num1 num2 num3 num4
a 1 5 x
b 2 6 y
c 3 7... | Adding values by row and have them apply to a single row variable while preserving other variables and rows | CC BY-SA 4.0 | null | 2023-03-03T12:56:38.977 | 2023-03-03T16:00:35.977 | 2023-03-03T13:35:52.167 | 18,130,731 | 18,130,731 | [
"r",
"dplyr"
] |