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,631,716 | 1 | null | null | 0 | 13 | I’m trying to compile a (lightweight) Linux kernel and start it on QEMU (and OVMF).
There is the [build-and-run script](https://gist.github.com/kuraga/4deec061ab859f630bdab2005b388276).
In OVMF’s EFI Internal Shell, on
```
$ fs0:\vmlinuz-6.2.1
```
I get:
```
Command Error Status: Unsupported
```
Calculate Linux 23 (G... | "Command Error Status: Unsupported" Error on QEMU & OVMF & Linux Kernel | CC BY-SA 4.0 | null | 2023-03-03T20:44:48.253 | 2023-03-04T08:50:03.987 | 2023-03-04T08:50:03.987 | 556,958 | 556,958 | [
"linux-kernel",
"qemu",
"uefi",
"edk2"
] |
75,631,718 | 2 | null | 2,606,168 | 0 | null | Here you can find a large collection of icons in vector format, this is my go to icon packs.
[https://github.com/MahApps/MahApps.Metro.IconPacks](https://github.com/MahApps/MahApps.Metro.IconPacks)
| null | CC BY-SA 4.0 | null | 2023-03-03T20:45:06.183 | 2023-03-03T20:45:06.183 | null | null | 5,783,963 | null |
75,631,714 | 1 | null | null | 0 | 16 | I need to be able to temporarily bypass the proxy script on Windows 10 LAN Settings.
I need to do this programmatically with C# or VB NET.
I have a webclient that accesses some content which the company environment has a one size fits all proxy script. I can't get a pack of elephants to climb mount Everest - so I need ... | How to Bypass or Disable or Toggle Off the Automatic Configuration Script in C# or VB NET | CC BY-SA 4.0 | null | 2023-03-03T20:44:42.683 | 2023-03-03T20:44:42.683 | null | null | 244,385 | [
"c#",
"vb.net",
"proxy",
"internet-options",
"automatic"
] |
75,631,715 | 1 | null | null | 2 | 60 | I have a question regarding the equality operator (`==`) regarding lists. When I run my script, I get an error in an `if` statement
> "ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()".
The `if` statement looks like this
```
if variable_a == variable_b:
```
I know... | "The truth value of an array with more than one element is ambiguous" when comparing lists (not arrays) | CC BY-SA 4.0 | null | 2023-03-03T20:44:45.557 | 2023-03-03T23:17:52.263 | 2023-03-03T22:35:50.997 | 15,032,126 | 21,328,489 | [
"python"
] |
75,631,722 | 2 | null | 75,631,386 | 1 | null | Use an f-string to format the pathname. Use `**` for the directory to search all folders.
There's no need to call `glob.glob()` twice, the first one already returned all the filenames.
Loop over all the results, calling `os.path.basename()` on each of them; you can't call it on the list directly.
```
folder_name = inpu... | null | CC BY-SA 4.0 | null | 2023-03-03T20:45:50.063 | 2023-03-03T20:45:50.063 | null | null | 1,491,895 | null |
75,631,719 | 1 | null | null | 0 | 15 | I can't solve this error even by trying different solutions.
> The getter 'cellInfo' isn't defined for the type 'Telephony'
The problem is in this line
```
final List<CellInfo> cellInfo = telephony.cellInfo;
```
I tried this code:
```
class CellInfo {
final int cellId;
final int lac;
final int psc;
final int ... | The getter 'cellInfo' isn't defined for the type 'Telephony' | CC BY-SA 4.0 | null | 2023-03-03T20:45:09.777 | 2023-03-04T05:49:35.543 | 2023-03-04T05:49:35.543 | 4,420,967 | 21,104,125 | [
"android",
"ios",
"flutter",
"dart"
] |
75,631,724 | 2 | null | 75,598,051 | 0 | null | I rebuilt the application from scratch and now it's working.
There is still a big issue that I could find no way of debugging the issue nor any advice anywhere about how to approach it.
| null | CC BY-SA 4.0 | null | 2023-03-03T20:45:59.063 | 2023-03-03T20:45:59.063 | null | null | 15,279,125 | null |
75,631,720 | 1 | null | null | 0 | 10 | I have a prefab `Block`. In my scene hierarchy, there is a lot of Blocks:
[](https://i.stack.imgur.com/XW4jV.png)
The prefab contains a code that contains an integer value called `id`.
I wrote a script (to run in edit mode) that sets random values to the `id` of all blocks and it works well, but when I hit play, all `i... | Prefab values resetting during runtime | CC BY-SA 4.0 | null | 2023-03-03T20:45:22.323 | 2023-03-03T21:19:01.580 | null | null | 5,348,875 | [
"c#",
"unity3d",
"prefab"
] |
75,631,723 | 2 | null | 75,627,333 | 0 | null | I finally found that I needed to disable ssl on port 80 like this :
```
<VirtualHost *:80>
ServerName exemple.com
SSLEngine off
Redirect permanent / https://exemple.com
</VirtualHost>
```
| null | CC BY-SA 4.0 | null | 2023-03-03T20:45:57.623 | 2023-03-03T20:45:57.623 | null | null | 17,279,320 | null |
75,631,682 | 1 | null | null | 1 | 27 | I have been wondering how user defined Matlab classes as handle subclasses works. It seems, and also from what I read, that in some cases they reference to each other that might be unexpected or misleading and causing bugs. I have encountered this problem mainly during preallocation of these user defined classes. It se... | Matlab class properties as handles, nested handles and class initialization/constructor and preallocation | CC BY-SA 4.0 | null | 2023-03-03T20:39:34.533 | 2023-03-04T01:28:10.580 | null | null | 11,792,838 | [
"matlab",
"class",
"properties",
"handle",
"pre-allocation"
] |
75,631,721 | 2 | null | 75,423,308 | 2 | null | Originally was going to leave this as a comment, as it doesn't constitute a complete answer with coded solution, but I believe it may approximate the canonical one.
Your problem has been studied extensively (perhaps not this particular variation, but many others including this one.) It is a variant of the knapsack prob... | null | CC BY-SA 4.0 | null | 2023-03-03T20:45:43.203 | 2023-03-03T20:50:56.967 | 2023-03-03T20:50:56.967 | 177,931 | 177,931 | null |
75,631,717 | 1 | null | null | 1 | 24 | I am pretty new to JavaScript and just playing around with web components. Now it's not clear to me about importing different web components and how to do it a correct way, if there is a correct way. Maybe you could take a look on a way how I do it until now and tell me some advantages and drawbacks according to it, it... | JS: importing multiple web components | CC BY-SA 4.0 | null | 2023-03-03T20:44:57.063 | 2023-03-04T07:23:12.493 | null | null | 12,170,252 | [
"javascript",
"html",
"web-component"
] |
75,631,710 | 2 | null | 75,608,127 | 0 | null | This demo show,
how to new `access token` by `refresh token`.
I am using [Flash](https://flask.palletsprojects.com/en/2.2.x/) and request call.
As you already know this documentation is best friend.
[Here](https://developer.spotify.com/documentation/general/guides/authorization/code-flow/)
```
from flask import Flask, ... | null | CC BY-SA 4.0 | null | 2023-03-03T20:44:19.967 | 2023-03-03T21:03:11.370 | 2023-03-03T21:03:11.370 | 8,054,998 | 8,054,998 | null |
75,631,730 | 1 | null | null | 0 | 19 | I have FutureProvider in my app:
```
final myFutureProvider = FutureProvider<ProductLoadResult<Data>>((ref) async {
final connectivityResult = await (Connectivity().checkConnectivity());
final netAvailable = connectivityResult != ConnectivityResult.none;
if(netAvailable){
final productsApi = ref.read(productsApiProvide... | Flutter/Riverpod - How update FutureProvider? | CC BY-SA 4.0 | null | 2023-03-03T20:46:48.840 | 2023-03-03T20:46:48.840 | null | null | 631,843 | [
"flutter",
"riverpod"
] |
75,631,731 | 2 | null | 75,631,632 | 0 | null | `Base.metadata.create_all(bind=db_engine)` creates tables for all the models registered with `Base.metadata`. Therefore it must be called all the model definitions have been executed, otherwise the tables for model definitions that have not been executed will not be created.
Move `Base.metadata.create_all(bind=db_en... | null | CC BY-SA 4.0 | null | 2023-03-03T20:46:57.847 | 2023-03-03T20:46:57.847 | null | null | 5,320,906 | null |
75,631,726 | 2 | null | 75,630,652 | 1 | null | I think there might be an easier way to think of this. Really what you need to know is the center of the viewport (or the center of a parent containing element if that's how you want it to work, I used the viewport in the snippet below), the offset of the active element from it's parent container, and the size of the ... | null | CC BY-SA 4.0 | null | 2023-03-03T20:46:08.850 | 2023-03-03T23:47:03.400 | 2023-03-03T23:47:03.400 | 3,577,849 | 3,577,849 | null |
75,631,735 | 2 | null | 75,625,901 | 0 | null | As I understand. `SecurityFilterChain` beans do not merge `requestMatchers` they just execute matched filters.
Option that may work (didn't check):
```
@Bean
public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
http
.securityMatcher("/api/core/**")
.authorizeHttpRequests(auth... | null | CC BY-SA 4.0 | null | 2023-03-03T20:47:32.323 | 2023-03-03T21:50:34.537 | 2023-03-03T21:50:34.537 | 5,277,820 | 3,968,018 | null |
75,631,736 | 2 | null | 37,040,083 | 0 | null | I have recently encountered something similar and none of the other answers really helped me.
I have found there is a [Caveats](https://docs.celeryq.dev/en/latest/getting-started/backends-and-brokers/sqs.html#caveats) section in Celery's documentation related to SQS:
> If a task isn’t acknowledged within the `visibili... | null | CC BY-SA 4.0 | null | 2023-03-03T20:47:43.777 | 2023-03-03T20:57:22.723 | 2023-03-03T20:57:22.723 | 396,492 | 396,492 | null |
75,631,738 | 1 | null | null | 1 | 10 | I am using `v5.5.1` of [go-telegram-bot-api](https://github.com/go-telegram-bot-api/telegram-bot-api) to send videos with the following code. However, the actual aspect ratio 4:5 is broken and video seems as 1:1 on iOS devices.
I also have MacOS and videos have correct aspect ratio on desktop app. Can this be an app i... | Golang tgbotapi v5: sendVideo has wrong aspect ratio on iOS | CC BY-SA 4.0 | null | 2023-03-03T20:48:02.407 | 2023-03-03T20:48:02.407 | null | null | 18,895,217 | [
"go",
"sdk",
"telegram",
"aspect"
] |
75,631,737 | 2 | null | 75,631,697 | 3 | null | R by default supports adding to matricies and arrays. You can just use the `+` operator to add a value to each element of a vector/matrix/array. Since you only want to affect parts of that array, just use square brackets to subset the parts you want to affect:
```
b[,,,2] <- b[,,,2] + 5
table(b==a, useNA='always')
TR... | null | CC BY-SA 4.0 | null | 2023-03-03T20:47:46.953 | 2023-03-03T21:34:35.347 | 2023-03-03T21:34:35.347 | 8,366,499 | 8,366,499 | null |
75,631,728 | 1 | null | null | 0 | 8 | After following `5. Team Configuration with @ConfigurationProperties` in this document [https://guides.micronaut.io/latest/micronaut-configuration-maven-kotlin.html](https://guides.micronaut.io/latest/micronaut-configuration-maven-kotlin.html). And created a configuration bean like this
```
micronaut:
application:
... | Kotlin Micronaut is not loading application.yml properties | CC BY-SA 4.0 | null | 2023-03-03T20:46:39.580 | 2023-03-03T20:46:39.580 | null | null | 2,664,450 | [
"kotlin",
"configuration",
"micronaut"
] |
75,631,739 | 2 | null | 75,618,383 | 0 | null | You might be able to try something like this. If you've got both the Protobuf schema and the equivalent Avro schema, and code generated from both in a language that supports reflection, you can use that to auto-transcribe fields from a GPB object into and Avro object.
The field names and structure need to match (or clo... | null | CC BY-SA 4.0 | null | 2023-03-03T20:48:08.360 | 2023-03-03T20:48:08.360 | null | null | 2,147,218 | null |
75,631,712 | 1 | null | null | 0 | 13 | I’ve been struggling for weeks trying to enable gpu support for tensorflow for the dedicated gpu on my laptop. I've tried 3 different methods and failed miserably. What else can I try? I am desperate.
- - - -
- - -
: Setting Up CUDA, CUDNN, Keras, and TensorFlow on Windows
Step 1: Installed Visual Studio Community... | Tensorflow not detecting dedicated gpu on my laptop | CC BY-SA 4.0 | null | 2023-03-03T20:44:34.040 | 2023-03-03T20:45:59.657 | 2023-03-03T20:45:59.657 | 18,226,458 | 18,226,458 | [
"tensorflow",
"machine-learning",
"anaconda",
"gpu",
"nvidia"
] |
75,631,729 | 1 | null | null | -1 | 13 | Running into a big issue with my game when I switch devices. Tried playing around with FlexBox but every step I take I make the situation worse. My project is due in a few days: what should I do? Easy fixes you can recommend? Anything I can do to change it and making it more responsive on different screens? THANKS
```
... | Issue with my CSS and making my game look the same and user-friendly on different screen sizes | CC BY-SA 4.0 | null | 2023-03-03T20:46:40.430 | 2023-03-03T21:14:11.687 | null | null | 20,800,458 | [
"css",
"flexbox"
] |
75,631,740 | 2 | null | 66,007,633 | -1 | null | Just to clarify: AWS KMS allows you to export the PUBLIC key - but NOT the private key. This makes the most sense in sign / verify situations, as it allows you to expose the public key so anybody can verify the signature. The key is returned is a `DER-encoded X.509 public key`.
Docs: [https://boto3.amazonaws.com/v1/doc... | null | CC BY-SA 4.0 | null | 2023-03-03T20:48:09.020 | 2023-03-03T20:48:09.020 | null | null | 470,062 | null |
75,631,743 | 2 | null | 75,631,611 | 1 | null | You can convert a BufferedSource to `byte[]` and put it ByteArrayInputStream: something like this will work:
```
import scala.io.Source
import java.io.InputStream
val bufferedSource: Source = Source.fromResource("keystore.jks")
val inputStream: InputStream = new java.io.ByteArrayInputStream(bufferedSource.getLines().m... | null | CC BY-SA 4.0 | null | 2023-03-03T20:48:32.897 | 2023-03-03T20:48:32.897 | null | null | 3,642,410 | null |
75,631,734 | 1 | null | null | 0 | 30 | I am playing around with making an old arcade-style game but I'm encountering an error I don't understand. The game is intended to be played as a single player or a vs 2-player game where you play side-by-side ye olden Tetris style. I found it easiest with the way I organize things to stick player objects into "bucket"... | Why is a callable object becoming uncallable in python? | CC BY-SA 4.0 | null | 2023-03-03T20:47:29.060 | 2023-03-03T20:48:31.073 | 2023-03-03T20:48:31.073 | 5,577,765 | 13,100,327 | [
"python",
"typeerror",
"callable-object"
] |
75,631,742 | 2 | null | 43,306,625 | 0 | null | With `DispatchSemaphore` you must take care to balance each `wait()` with a `signal()`. `NSCondition`, aside from allowing more flexible types of predicates, is more flexible about waiting. If the predicate is already true, an unlimited number of readers can be satisfied. And if it’s not yet true, a single `broadcast()... | null | CC BY-SA 4.0 | null | 2023-03-03T20:48:31.390 | 2023-03-03T20:48:31.390 | null | null | 6,311 | null |
75,631,747 | 1 | null | null | 0 | 14 | I have a question about EKS scaling nodes to 0. If there are no nodes in the cluster(which means auto scaling group set nodes to 0) how are different services running in EKS . like kube-proxy etc?
Shouldn't these services need a node in order to run?
| EKS nodes scaling to 0 | CC BY-SA 4.0 | null | 2023-03-03T20:48:53.360 | 2023-03-03T22:12:39.357 | 2023-03-03T20:49:24.600 | 3,357,735 | 3,357,735 | [
"kubernetes",
"amazon-eks"
] |
75,631,745 | 1 | null | null | 0 | 22 | Deleting all the columns of date which contain 2019 in the index data from 2017-2019
```
df_raw1 = df_raw1.drop(index=['2019'])
```
Error
```
KeyError Traceback (most recent call last)
~\AppData\Local\Temp\ipykernel_15244\372933074.py in <module>
----> 1 df_raw1 = df_raw1.drop(index=['... | I've got a Pandas DF using Date as an index, it has data from 2017-01-01 to 2019-31-12. How can I drop all rows that have the year 2019 in them? | CC BY-SA 4.0 | null | 2023-03-03T20:48:36.213 | 2023-03-04T13:03:03.983 | 2023-03-04T13:03:03.983 | 12,193,952 | 21,314,243 | [
"python",
"pandas",
"dataframe",
"indexing"
] |
75,631,741 | 2 | null | 54,258,078 | 0 | null | I had this same issue.
When I tried the strict deny option from [examples online](https://repost.aws/knowledge-center/block-s3-traffic-vpc-ip), I lost console access to my bucket (I am guessing that it happens to a lot of people). I had to delete the bucket from the aws console on my bastion host in the VPC.
This is th... | null | CC BY-SA 4.0 | null | 2023-03-03T20:48:22.427 | 2023-03-03T20:48:22.427 | null | null | 921,266 | null |
75,631,751 | 1 | 75,631,841 | null | 1 | 75 | I apologize in advance, this is going to be a goofy question but I don't know how to word a google search well enough to get a response for this.
Now I've been occasionally thinking about this, every time it would've made my code easier to write if it existed, let's say I have two vectors: `vec0<int>` and `vec1<int>`. ... | Is there a way to "pattern match" into a variable name? | CC BY-SA 4.0 | null | 2023-03-03T20:49:23.763 | 2023-03-03T21:19:01.197 | null | null | 17,360,903 | [
"c++"
] |
75,631,748 | 1 | null | null | 0 | 7 | I got this error when try to link assets following this tutorial:
[https://blog.devgenius.io/implement-custom-fonts-on-react-native-0-70-649c16f7609f](https://blog.devgenius.io/implement-custom-fonts-on-react-native-0-70-649c16f7609f)
```
erich@Erichs-MacBook-Pro qvapay % npx react-native-asset
info Linking ttf assets ... | Integrating custom fonts on React Native 0.71.2 giving sources.files.push | CC BY-SA 4.0 | null | 2023-03-03T20:48:56.967 | 2023-03-03T20:48:56.967 | null | null | 4,681,874 | [
"react-native"
] |
75,631,754 | 2 | null | 75,620,533 | 0 | null | I am having a similar issue. I developed the .NET Core Winforms app on my machine then published it to a folder. I then copied the contents of the folder to another machine and attempted to run the exe. It does not run and the entry from the event viewer is...
Application: UserMaint.exe
CoreCLR Version: 6.0.21.52210
.N... | null | CC BY-SA 4.0 | null | 2023-03-03T20:49:38.710 | 2023-03-03T20:49:38.710 | null | null | 14,633,575 | null |
75,631,749 | 2 | null | 9,252,980 | 0 | null | Just want to share my 2c after I need this for my batch script. Using `for` is not helping at all since I want a literal dir and filemask.
ie. given the `c:\dir1\subdir\*.asm`, I need both literal `c:\dir1\subdir` and `*.asm` for further processing
```
:parsepathname pathname dirname filename
@echo OFF
if "%~3"==""... | null | CC BY-SA 4.0 | null | 2023-03-03T20:49:02.543 | 2023-03-03T20:49:02.543 | null | null | 6,801,759 | null |
75,631,744 | 1 | null | null | 0 | 28 | I have an exam that asks me to "update the following CSS code so that all level 1 headings, level 2 headings, and paragraph elements use the "Tahoma" font. Then, reset the box model for all CSS elements to border-box."
I searched for a solution to this specific problem, asked other colleagues, and everyone agrees that ... | Why when I create this CSS rule `h1 {font-family: Tahoma}`it doesn't work? | CC BY-SA 4.0 | null | 2023-03-03T20:48:35.183 | 2023-03-03T20:48:35.183 | null | null | 21,328,439 | [
"css",
"font-family"
] |
75,631,756 | 2 | null | 75,622,775 | 0 | null | You should be able to use `$.sleep(500)` to delay the execution by half a second. `$.delay()` is not a thing.
| null | CC BY-SA 4.0 | null | 2023-03-03T20:50:05.697 | 2023-03-03T20:50:05.697 | null | null | 3,399,765 | null |
75,631,753 | 2 | null | 75,630,544 | 1 | null | If there can be multiple matches, you can use a negative lookahead to rule out twitter or `http://` or `https://` to the right, and get the capture group 1 value.
```
\btwitter(?:\.com/|(?!:?\s*(?:https?://|twitter\b)):?\s+@?)([\w.-]+)
```
- `\btwitter`- `(?:`- `\.com/``.com/`- `|`- `(?!:?\s*(?:https?://|twitter\b))`... | null | CC BY-SA 4.0 | null | 2023-03-03T20:49:28.907 | 2023-03-03T20:49:28.907 | null | null | 5,424,988 | null |
75,631,750 | 1 | null | null | 0 | 24 | I want to be able to . The reason for this is that the data changes (for example as a result of networking calls) at some point after finishing displaying the views. For example the app (some class) may only know after one second if the user has opened the app before and should go to the main view, or see some onboardi... | How to push ViewController from outside of UIViewController or view? | CC BY-SA 4.0 | null | 2023-03-03T20:49:14.893 | 2023-03-04T12:25:03.470 | 2023-03-03T20:53:43.853 | 9,739,903 | 9,739,903 | [
"ios",
"swift",
"uikit"
] |
75,631,752 | 1 | null | null | -1 | 14 | I'm trying to setup Windows Server 2019 to launch my FastAPI/uvicorn application(s) on startup, regardless of a user actually logging in.
The settings in the attached screenshots have successfully "run" the task, but when I curl an endpoint, the connection is refused. By contrast, if I just run the command to launch th... | Launching FastAPI/uvicorn app as a Windows Task on startup in Windows Server 2019 | CC BY-SA 4.0 | null | 2023-03-03T20:49:25.177 | 2023-03-03T20:49:25.177 | null | null | 2,905,783 | [
"python",
"scheduled-tasks",
"fastapi",
"windows-server",
"uvicorn"
] |
75,631,757 | 1 | null | null | 1 | 28 | I have a Maui App and i'm trying to open my streaming website inside the WebView.
But everytime i open my streaming website inside Maui WebView ,the website is asking for camera permission "so annoying for the user" (even if the user already granted camera access to my app in the first time i installed it).
My question... | How to fix double permission popup in MAUI ios web view | CC BY-SA 4.0 | null | 2023-03-03T20:50:12.787 | 2023-03-04T23:59:17.570 | 2023-03-04T23:59:17.570 | 17,472,684 | 17,472,684 | [
"webview",
"permissions",
"maui"
] |
75,631,760 | 1 | null | null | 0 | 9 | Back in the .NET Framework days, when I developed ASP.NET MVC apps, I would separate out all major concerns into their own projects such as database, domain etc. I would also create a project called IOC where I would place my Ninject IOC container with all my types injected. This made accessing the container easy from ... | How do I integration test my types when using ASP.NET Core 6.0 | CC BY-SA 4.0 | null | 2023-03-03T20:50:26.417 | 2023-03-04T13:07:32.347 | 2023-03-03T21:25:14.660 | 13,302 | 2,026,382 | [
"testing",
"dependency-injection",
"nunit",
"asp.net-core-6.0"
] |
75,631,763 | 2 | null | 72,041,322 | 0 | null | Another more elegant way is to use `Flux.generate()` to emit a random value:
```
Random random = new Random();
Flux.generate(sink -> sink.next(random.nextInt(256)))
.subscribe(System.out::println);
```
| null | CC BY-SA 4.0 | null | 2023-03-03T20:50:47.830 | 2023-03-03T20:51:37.723 | 2023-03-03T20:51:37.723 | 14,183,092 | 14,183,092 | null |
75,631,761 | 2 | null | 75,631,698 | -1 | null | You can put all the statements into a Transaction like this, and it will run each one in order.
```
BEGIN;
START TRANSACTION;
update tableA set col1='N' ,col2='067',col3='123' where col4='912345' and statu='S';
update tableA set col1='N' ,col2='043',col3='133' where col4='962346' and statu='S';... | null | CC BY-SA 4.0 | null | 2023-03-03T20:50:32.390 | 2023-03-03T21:04:00.463 | 2023-03-03T21:04:00.463 | 15,920,786 | 15,920,786 | null |
75,631,746 | 1 | null | null | 0 | 18 | My codes work on local but not work on the net :)
Here is my simple django blog website. When i tested these codes work but when i try live version, it doesnt work. Where is the my fault?
If you wanna see the live page you can look this page [https://www.endustri.io/kaynak-perdesi-nedir-ne-ise-yarar-cesitleri-fiyatlari... | My comment form does not appear on the template page (django) | CC BY-SA 4.0 | null | 2023-03-03T20:48:49.600 | 2023-03-03T21:49:02.993 | 2023-03-03T21:49:02.993 | 16,535,928 | 16,535,928 | [
"django"
] |
75,631,758 | 1 | null | null | 0 | 7 | My question is related to the Compose navigation and screen rotation.
After screen rotation, for some reason, as I understand, the composable is re-created and latest value of NavigationViewModel is taken and additional composable/screen is added into the backstack.
What should be done to prevent adding new composable ... | Compose navigation: after rotation last object from navigation model is added into backstack | CC BY-SA 4.0 | null | 2023-03-03T20:50:14.637 | 2023-03-04T05:59:52.920 | 2023-03-04T05:59:52.920 | 4,420,967 | 21,327,829 | [
"android",
"android-navigation",
"screen-rotation",
"android-navigation-graph"
] |
75,631,766 | 2 | null | 75,630,929 | 1 | null | You use the `style` property with a DOM Element and not with `textContent` property! Remove `textContent` from your code to make it work:
```
e.target.childNodes.nextElementSibling.style.color = "white";
```
| null | CC BY-SA 4.0 | null | 2023-03-03T20:51:01.250 | 2023-03-03T20:52:51.627 | 2023-03-03T20:52:51.627 | 20,576,394 | 20,576,394 | null |
75,631,768 | 4 | null | null | 0 | null | Use this tag for questions about the fastapi-users package. | null | CC BY-SA 4.0 | null | 2023-03-03T20:51:20.350 | 2023-03-03T20:51:20.350 | 2023-03-03T20:51:20.350 | 5,320,906 | 5,320,906 | null |
75,631,767 | 5 | null | null | 0 | null | The documentation for the fastapi-users project may be found [here](https://fastapi-users.github.io/fastapi-users/).
| null | CC BY-SA 4.0 | null | 2023-03-03T20:51:20.350 | 2023-03-03T20:51:20.350 | 2023-03-03T20:51:20.350 | 5,320,906 | 5,320,906 | null |
75,631,764 | 2 | null | 75,631,672 | 1 | null | You have to get more information on which subnet they are on, and whitelist that entire subnet. In your example, whitelisting the CIDR `23.283.149.0/24` would allow the last octet of the IP address to change and they would still be able to connect. Here are a couple of use cases I have run in to in the past:
1. Whitel... | null | CC BY-SA 4.0 | null | 2023-03-03T20:50:53.163 | 2023-03-03T20:53:55.020 | 2023-03-03T20:53:55.020 | 3,987,536 | 3,987,536 | null |
75,631,759 | 1 | null | null | 2 | 45 | I'm having a headache because of google calendar API. My goal is to access my private calendar, and share some details through a web interface I will create, the problem is that after following all of the steps, I still get the response as empty and no errors to know exactly what the problem is... steps I have done so ... | Correct Implementation of Google Calendar API using Service Account in .Net Core | CC BY-SA 4.0 | null | 2023-03-03T20:50:22.750 | 2023-03-04T22:35:00.543 | 2023-03-03T22:56:40.687 | 2,796,799 | 2,796,799 | [
"c#",
"google-calendar-api",
"service-accounts",
"google-api-dotnet-client"
] |
75,631,771 | 1 | null | null | -2 | 19 | I want to generate a new column n which will answer the question: How many levels was the mean calculated from? 1 or 2 or 3?
Is there a way to calculate N without converting the data from long to wide format? N should tell us the number of observations that were required to calculate the mean. Thank you.
My input datas... | Count number of observations used to calculate the mean in SAS | CC BY-SA 4.0 | null | 2023-03-03T20:51:40.567 | 2023-03-04T00:32:58.933 | 2023-03-04T00:09:05.467 | 4,965,549 | 20,534,059 | [
"count",
"sas"
] |
75,631,770 | 1 | null | null | 2 | 13 | I'm using MicroPython and I would like to generate a QSTR that contains the contents of a macro. For example, I have the following macro:
```
#define MY_MACRO "hello"
```
How can I generate a QSTR that has the value "hello" and is called MP_QSTR_MY_MACRO?
When I use MP_QSTR_MY_MACRO, that QSTR contains "MY_MACRO" inst... | How to generate a MicroPython QSTR from a C macro? | CC BY-SA 4.0 | null | 2023-03-03T20:51:28.100 | 2023-03-03T20:51:28.100 | null | null | 5,101,044 | [
"c",
"micropython",
"precompiler"
] |
75,631,772 | 2 | null | 75,631,539 | 2 | null | Its can be done this way :
```
SELECT
ID,
CAST(SUM(CASE WHEN GroupCD <> 'ABC' AND SurrogateKEY1 IS NOT NULL THEN 1 ELSE 0 END) / CAST(COUNT(1) AS FLOAT) * 100 AS Decimal(8,3)) AS SurrogateKEY1_fR_NonABC,
CAST(SUM(CASE WHEN GroupCD = 'ABC' AND SurrogateKEY1 IS NOT NULL THEN 1 ELSE 0 END) / CAST(COUNT(1) AS F... | null | CC BY-SA 4.0 | null | 2023-03-03T20:51:43.713 | 2023-03-04T09:53:28.623 | 2023-03-04T09:53:28.623 | 4,286,884 | 4,286,884 | null |
75,631,774 | 1 | null | null | 0 | 17 | I've got JDKs v19, v17, and now for a specific older project, I had to install JDK 1.7. VS Code keeps complaining that I can't use JDK 17 and Gradle 2.2 to import that project (which is understandable haha).
I've been looking around and I can't figure out how to make it so that VS Code uses the older JDK for this speci... | Configure VS Code to use specific JDK version for a single project | CC BY-SA 4.0 | null | 2023-03-03T20:52:16.080 | 2023-03-04T00:35:30.857 | 2023-03-04T00:35:30.857 | 8,467,495 | 8,467,495 | [
"java",
"visual-studio-code",
"java-7"
] |
75,631,765 | 1 | 75,632,426 | null | 0 | 24 | I have been building a recipe app (both front and back end). My issue is with the data structure and how to maintain it.
My recipe schema has a few properties that have an array of objects as values. On Postman, I am able to successfully maintain this structure by sending it like this {"categoryTags":["easy", "breakfas... | How to send an array from a react Frontend to a mongo DB BackEnd | CC BY-SA 4.0 | null | 2023-03-03T20:50:59.727 | 2023-03-04T06:25:34.463 | 2023-03-04T06:25:34.463 | 11,815,969 | 21,328,402 | [
"javascript",
"reactjs",
"mongodb",
"react-redux"
] |
75,631,777 | 1 | null | null | -1 | 19 | I am building asp.net core application, which uses some client-id and client-secret to get access token from another api (Twitch) for making calls (to IGDB). So the question is where should I store this access token after receiving?
What implementation is better?
1. create some singleton storage;
2. put it into databa... | Where third party api access tokens should be stored? | CC BY-SA 4.0 | null | 2023-03-03T20:52:33.963 | 2023-03-03T20:52:33.963 | null | null | 21,328,492 | [
"asp.net",
"asp.net-core",
"asp.net-web-api",
"backend"
] |
75,631,776 | 1 | 75,631,845 | null | -1 | 31 | I'm trying to use element.backgroundImage on JS but never change the background.
I changed the file scss to test if it worked and it did but then it was fixed and seems like file js not working :(
Is not a problem with the link on the html or something like that 'cause everything else is working...
Here's the sass:
```... | backgroundImage Not working in my file.js | CC BY-SA 4.0 | null | 2023-03-03T20:52:25.407 | 2023-03-03T21:16:41.100 | 2023-03-03T21:08:06.763 | 21,174,046 | 21,174,046 | [
"javascript",
"css",
"sass"
] |
75,631,769 | 1 | null | null | -2 | 22 | Is this not the right way to try to solve this problem?
```
public class GUI {
JFrame mainFrame;
PrintStream standardOut = System.out;
PrintStream standardErr = System.err;
JTextField userInputLoc;
String curInput = "";
boolean enterKeyPressed = false;
// should be the main method most like... | Are you able to use a boolean in a keyPressed Event to trigger a break from a while loop? | CC BY-SA 4.0 | null | 2023-03-03T20:51:21.120 | 2023-03-03T20:56:52.537 | 2023-03-03T20:56:52.537 | 535,275 | 20,920,697 | [
"java",
"swing",
"while-loop",
"key",
"user-input"
] |
75,631,755 | 2 | null | 66,410,660 | 0 | null | For anyone in still interested, I compiled answers I found from various sources into this working example for passing variables into a Jinja2 template and starting it with eel.
This may not be the best solution but since there is nothing better here yet I will put this hear until I find a better method.
```
.
├── app.... | null | CC BY-SA 4.0 | null | 2023-03-03T20:49:47.310 | 2023-03-03T20:49:47.310 | null | null | 20,412,837 | null |
75,631,778 | 1 | null | null | 0 | 8 | Whenever JVM restarts transactions, response is very fast within 500ms for single query and after some load testing for some complex accounts the same single query take 3-4 seconds to process.
Database has no issues.
Please suggest I expect there is issue with Thread or Heap. I have tested with Heap size change etc but... | IBM Websphere slowness issue in after some load testing- Need resolution expectedly in Threads and Heap | CC BY-SA 4.0 | null | 2023-03-03T20:52:35.130 | 2023-03-03T20:52:35.130 | null | null | 21,328,479 | [
"websphere",
"threadpool",
"heap-dump",
"thread-dump"
] |
75,631,781 | 1 | null | null | 0 | 5 | I would like to become more closely aligned to the latest Sidekiq version but I'm not sure what I need to upgrade or update in my code/libraries. Any ideas?
[](https://i.stack.imgur.com/66cnu.png)
| ArgumentError: Job arguments to CarrierWave::Workers::ProcessAsset must be native JSON types | CC BY-SA 4.0 | null | 2023-03-03T20:53:29.693 | 2023-03-03T20:53:29.693 | null | null | 688,266 | [
"ruby-on-rails",
"sidekiq",
"ruby-on-rails-6.1"
] |
75,631,783 | 2 | null | 75,630,947 | 0 | null | Assuming you really need to use a loop, one option:
```
grp=df.groupby(by=['col1','col2'])
for i, (each, g) in enumerate( grp):
print(g.to_string(index=False).split('\n', maxsplit=min(i,1))[-1])
```
Output:
```
col1 col2 col3 col4
32 321 12 5mlds
123 34 44 Row1
123 34 66 Row2
214 32... | null | CC BY-SA 4.0 | null | 2023-03-03T20:53:52.603 | 2023-03-03T20:53:52.603 | null | null | 16,343,464 | null |
75,631,785 | 2 | null | 74,096,543 | 0 | null | I am on Windows 11 and turning off Controlled folder access from Windows Security worked for me. Hope that helps!
| null | CC BY-SA 4.0 | null | 2023-03-03T20:54:23.593 | 2023-03-03T20:56:27.950 | 2023-03-03T20:56:27.950 | 18,323,402 | 18,323,402 | null |
75,631,787 | 1 | 75,633,007 | null | 0 | 15 | I created a Root Private CA in my AWS account.
I want to manage it through AWS Certificate Manager, in order to have Lifecycle rules with notifications.
I can't find relevant explanation in the official documentation.
How can I do that?
| How manage a AWS Private CA in AWS Certificate Manager | CC BY-SA 4.0 | null | 2023-03-03T20:54:56.283 | 2023-03-04T00:53:45.140 | null | null | 1,690,631 | [
"amazon-web-services",
"aws-certificate-manager"
] |
75,631,788 | 2 | null | 75,631,690 | 1 | null | Add the `spring-boot-starter-thymeleaf` dependency. This automatically registers a view resolver for HTML files in src/main/resources/templates.
| null | CC BY-SA 4.0 | null | 2023-03-03T20:55:06.307 | 2023-03-03T20:55:06.307 | null | null | 9,513,184 | null |
75,631,780 | 1 | null | null | 0 | 8 | I'm trying to enable the user to click on a label within my svg and used the href associated with that label to redirect the user. I haven't been able to find anything on this. My svg has the labels defined like this:
```
<g id="LABELS">
<a xlink:href="http://www.uniprot.org/uniprot/Q2M2I8" target="_blank"><text id="t_... | Flutter using embedded href links in svg to redirect user | CC BY-SA 4.0 | null | 2023-03-03T20:52:56.717 | 2023-03-03T20:52:56.717 | null | null | 21,222,055 | [
"flutter",
"svg"
] |
75,631,773 | 1 | null | null | 1 | 14 | I want to add the ability to vertically scroll through all my pages, so i tried implementing into one of my pages, called the details page, whenever I add a singlechildscroll view it gives me errors and i don't know how to fix it, I've tried changing expanded widgets to flexible and column but nothing works
What I am t... | add full page scrolling ability to all pages | CC BY-SA 4.0 | null | 2023-03-03T20:52:10.137 | 2023-03-03T20:58:19.143 | 2023-03-03T20:58:19.143 | 10,157,127 | 21,170,519 | [
"flutter",
"dart",
"widget",
"vertical-scrolling"
] |
75,631,791 | 2 | null | 75,183,032 | 0 | null | I found that installing MariaDB Client resolves this issue.
In Ubuntu, run:
sudo apt remove mysql-client -y && sudo apt install mariadb-client -y
| null | CC BY-SA 4.0 | null | 2023-03-03T20:55:18.537 | 2023-03-03T20:55:37.057 | 2023-03-03T20:55:37.057 | 21,328,565 | 21,328,565 | null |
75,631,792 | 1 | null | null | 0 | 13 | I have this line of code in React.js
```
<button style={{ fontsize: '50px', width: '60px', height: '60px' }}>
```
It't not detecting the error fontsize should be fontSize. Is there any extension that would detect this error?
| Vscode extension to highlight any css errors in React.js | CC BY-SA 4.0 | null | 2023-03-03T20:55:21.713 | 2023-03-03T20:55:31.230 | 2023-03-03T20:55:31.230 | 19,366,064 | 19,366,064 | [
"css",
"reactjs",
"visual-studio-code"
] |
75,631,775 | 2 | null | 75,629,002 | 1 | null | Here's one way you can do it without `"$unwind"`, although the `"$reduce"` nesting levels seem very error prone. I hope you test this with lots of data before depending on it.
```
db.collection.aggregate([
{
"$match": {
"_a._p.s.d.t": {
"$elemMatch": {
"dateP": {"$regex": "^2022"},
... | null | CC BY-SA 4.0 | null | 2023-03-03T20:52:20.947 | 2023-03-03T20:52:20.947 | null | null | 1,409,374 | null |
75,631,789 | 1 | 75,631,836 | null | -2 | 37 | I'm trying to learn the basic concepts of inheritance but I find this aspect of it slightly confusing, as although I haven't referred to the use of the super keyword to call the Super class' constructor, nor created an object of it in the subclasses it stills prints what it says in the superclass. The following code i... | When I extend a class does it automatically create a object of its base class? | CC BY-SA 4.0 | null | 2023-03-03T20:55:10.787 | 2023-03-03T21:05:40.550 | null | null | 13,348,211 | [
"java",
"inheritance"
] |
75,631,793 | 2 | null | 75,618,472 | 0 | null | No, this feature is not supported in Apache Superset. The closest approximation would be embedding a form of some sort via an iFrame in your dashboard, then having that write to your database.
| null | CC BY-SA 4.0 | null | 2023-03-03T20:55:24.093 | 2023-03-03T20:55:24.093 | null | null | 4,470,365 | null |
75,631,784 | 1 | 75,631,815 | null | -1 | 18 | context:
i have a large dataframe that looks similar to this but has 200k rows
| name | country | id |
| ---- | ------- | -- |
| neymar | brazil | 1234 |
| ronaldo | portugal | 5678 |
| benzema | france | 9012 |
| t. silva | brazil | 3456 |
i want to take a random sample of 100 from this dataframe but ensure i... | how can i get a random sample from dataframe but have it contain a distribution of a variable? PYTHON | CC BY-SA 4.0 | null | 2023-03-03T20:54:03.993 | 2023-03-03T21:00:06.667 | null | null | 13,460,721 | [
"python"
] |
75,631,795 | 1 | null | null | -1 | 6 | The scenario is that we have a custom authentication service hosted on 1.2.3.4 and registered to the domain mycoolsite.com. Once someone has authenticated and we've loaded their info, we'd like to push all future traffic to 1.2.3.5 (based on information we have stored for that user) without the domain changing. The r... | How do you redirect traffic to a different IP for the same domain after initial contact? | CC BY-SA 4.0 | null | 2023-03-03T20:56:22.170 | 2023-03-03T22:29:26.510 | 2023-03-03T22:29:26.510 | 6,368,697 | 166,060 | [
"redirect"
] |
75,631,797 | 2 | null | 75,631,003 | 1 | null | It should be in the `lib` directory where you have installed PostgreSQL as a file named `age.so`. The path you have installed PostgreSQL is specified when you used the `./configure --prefix={path}` command during the installation process. It is commonly stored in `/usr/local/` but that will depend on where you have spe... | null | CC BY-SA 4.0 | null | 2023-03-03T20:56:24.850 | 2023-03-03T20:56:24.850 | null | null | 19,164,563 | null |
75,631,790 | 1 | null | null | 0 | 13 | I need to write a sql query that operates somewhat like a fuzzy lookup where it will complete a join if a sentence within a paragraph matches a sentence in another paragraph in a different table. I’m trying to identify similarities between two datasets that aren’t written exactly the same. What’s the best plan of attac... | Need to join on slight similarity between two long text strings using SQL | CC BY-SA 4.0 | null | 2023-03-03T20:55:13.100 | 2023-03-03T21:00:14.143 | 2023-03-03T21:00:14.143 | 21,315,169 | 21,315,169 | [
"sql",
"regex",
"parsing",
"join"
] |
75,631,800 | 1 | null | null | 0 | 5 | I have a question about my project, to put it in context I have .json files in the Assets folder, although I think they should be in Resources. The thing is that when I test my project on the Oculus, reading the files works, but when I generate the apk and run the game, it no longer reads the files.
At first I thought ... | Generate APK with files (json) in Unity 3D | CC BY-SA 4.0 | null | 2023-03-03T20:56:36.477 | 2023-03-03T20:56:36.477 | null | null | 18,871,888 | [
"unity3d",
"oculusquest"
] |
75,631,803 | 2 | null | 75,590,434 | 0 | null | No, this is not currently possible in Apache Superset 2.0.1.
| null | CC BY-SA 4.0 | null | 2023-03-03T20:57:06.197 | 2023-03-03T20:57:06.197 | null | null | 4,470,365 | null |
75,631,782 | 1 | 75,631,843 | null | 0 | 28 | I'm implementing a daterangepicker into my application and am wondering how to confine each month to ONLY that month. For example:
I would like this (see the left hand calendar):
[](https://i.stack.imgur.com/OnD1E.png)
But the default is like this
[](https://i.stack.imgur.com/m9UZF.png)
I've reviewed the [DateRangePic... | Is there a way to isolate the months in javascript daterangepicker? | CC BY-SA 4.0 | null | 2023-03-03T20:53:29.807 | 2023-03-03T21:09:25.093 | null | null | 9,324,707 | [
"javascript",
"daterangepicker"
] |
75,631,794 | 2 | null | 75,631,618 | 1 | null | There is no way to include just "part" of a file, or just "some" targets.
You can either take the content that's shared in put it into a separate file such as `shared_b.mk` and then add `include shared_b.mk` to both the makefiles.
Or, you can use `ifdef` to skip including the non-shared content if a variable is set, th... | null | CC BY-SA 4.0 | null | 2023-03-03T20:55:27.907 | 2023-03-03T20:55:27.907 | null | null | 939,557 | null |
75,631,801 | 2 | null | 75,616,766 | 1 | null | Many time has passed
To upload file you need:
Make Window.bind(on_drop_file=self.onFileDrop)
```
def build(self):
Window.bind(on_drop_file=self.onFileDrop)
```
where 'on_drop_file' is name of Event, what will be with your window
onFileDrop is function, witch you use
```
def onFileDrop(self, window, file_path, *agrs... | null | CC BY-SA 4.0 | null | 2023-03-03T20:56:43.797 | 2023-03-03T20:56:43.797 | null | null | 21,319,651 | null |
75,631,798 | 1 | null | null | 0 | 7 | I am working on BigQuery trying to create a materialized view but I am getting an error and I don't know why.
Here's the code:
```
CREATE MATERIALIZED VIEW
new_view
OPTIONS (enable_refresh = true, refresh_interval_minutes = 360) AS
WITH data as (SELECT
brand,
platform,
version_a,
version_b,
date,
sum(r... | Materialized view query contains unsupported feature Big Query | CC BY-SA 4.0 | null | 2023-03-03T20:56:29.920 | 2023-03-03T21:30:30.630 | null | null | 9,737,489 | [
"google-bigquery",
"materialized-views"
] |
75,631,804 | 2 | null | 75,631,773 | 0 | null | The issue is using `Expanded` inside scrollable widget(SingleChildScrolView). You can replace
```
Expanded(
child: ListView(
children: [
ReviewTileWidget('John Doe',
'Great dish, highly recommended!', 4),
ReviewTileWidget('Jane Smith',
'Not bad, but not my favorite either.', 2),
... | null | CC BY-SA 4.0 | null | 2023-03-03T20:57:09.273 | 2023-03-03T20:57:09.273 | null | null | 10,157,127 | null |
75,631,796 | 2 | null | 75,631,512 | 0 | null | Change your `@PostMapping(MediaType.MULTIPART_FORM_DATA_VALUE)`
because putting the media type there will actually map the URL to `/product/multipart/form-data` and not `/product/`
change it to this
```
@PostMapping(value = "/", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
```
also, you need to update the metho... | null | CC BY-SA 4.0 | null | 2023-03-03T20:56:23.077 | 2023-03-03T21:32:17.123 | 2023-03-03T21:32:17.123 | 3,642,410 | 3,642,410 | null |
75,631,809 | 2 | null | 75,628,613 | 0 | null | Remove semicolons after `input` and `output` i.e.
```
gates:
input in;
output out;
```
| null | CC BY-SA 4.0 | null | 2023-03-03T20:57:59.793 | 2023-03-03T20:57:59.793 | null | null | 4,653,172 | null |
75,631,805 | 1 | null | null | 0 | 18 |
1. I have created a node js server and it is running on the localhost:3000
2. Now i closed the vscode window where i was able to see the logs of api requests.
3. After Closing vscode windows the node js server is running in background.
4. now i reopen vscode, but cannot see the logs of the currently running server in ... | How to see the Logs of Node js Server in Linux When running in background (Vs Code is Closed) | CC BY-SA 4.0 | null | 2023-03-03T20:57:10.850 | 2023-03-03T21:29:19.683 | 2023-03-03T21:18:49.010 | 11,107,541 | 16,013,955 | [
"node.js",
"visual-studio-code"
] |
75,631,808 | 2 | null | 38,864,033 | 0 | null | ```
<One ref={c => this.one = c}/>
<Two one={this.one}/>
```
```
class One extends React.Component {
render(){
return <div ref={this.props.one}/>;
}
}
export default React.forwardRef((props, ref) => (
<One {...props} {...ref.current} />
));
```
The `ref` prop is for elements `forwardRef`.
```
class IndexAp... | null | CC BY-SA 4.0 | null | 2023-03-03T20:57:55.983 | 2023-03-03T21:01:15.290 | 2023-03-03T21:01:15.290 | 11,711,280 | 11,711,280 | null |
75,631,810 | 1 | null | null | 0 | 7 | For iOS I want to show a notification when the user kills the app (swipe up). I am using [flutter_local_notification](https://pub.dev/packages/flutter_local_notifications) to send the notification, however, there is not enough time between receiving 'didChangeAppLifecycleState(AppLifecycleState.detached)' and flutter ... | Show notification when AppLifecycleState becomes detached | CC BY-SA 4.0 | null | 2023-03-03T20:58:13.907 | 2023-03-03T20:58:13.907 | null | null | 20,177,218 | [
"flutter"
] |
75,631,802 | 2 | null | 61,019,007 | 0 | null | You can use provided by Polly AddTransientHttpErrorPolicy or `.HandleTransientHttpError()` method that handle HttpRequestException, HTTP 5xx, HTTP 408
From [What HTTP error codes are retried by Polly (.Net) by default?](https://stackoverflow.com/questions/54699826/what-http-error-codes-are-retried-by-polly-net-by-def... | null | CC BY-SA 4.0 | null | 2023-03-03T20:57:04.910 | 2023-03-03T22:35:33.627 | 2023-03-03T22:35:33.627 | 52,277 | 52,277 | null |
75,631,807 | 1 | null | null | 0 | 14 | I am currently using the below shell command to merge two csv file, it combines two csv into the one. And records will be written in turn
paste -d '\n' R-1.csv R-2.csv | sed '1d' > new.csv
I am looking for an option (possibly shell command) to shuffle only one column of CSV and keep the other CSV column unchanged. Can ... | Is there a way to shuffle csv columns using shell command? | CC BY-SA 4.0 | null | 2023-03-03T20:57:19.353 | 2023-03-03T21:13:28.807 | 2023-03-03T21:13:28.807 | 20,902,880 | 20,902,880 | [
"csv",
"shuffle"
] |
75,631,814 | 2 | null | 75,514,677 | 0 | null | When Script debugging is Enabled, Visual Studio takes over and it doesn't seem to catch all exceptions. When it's disabled, Edge will stop at the exception.
Looks like a Visual Studio bug to me. I'll report it.
[](https://i.stack.imgur.com/clkCA.jpg)
| null | CC BY-SA 4.0 | null | 2023-03-03T20:58:27.527 | 2023-03-03T20:58:27.527 | null | null | 8,267,017 | null |
75,631,815 | 2 | null | 75,631,784 | 1 | null | In order to preserve the distribution by country you could use `sklearn.utils.resample` setting `stratify=df.country`.
For example:
```
from sklearn.utils import resample
resample(df, n_samples=500, replace=False, stratify=df.country, random_state=123)
```
More details in [https://scikit-learn.org/stable/modules/gene... | null | CC BY-SA 4.0 | null | 2023-03-03T20:58:57.383 | 2023-03-03T21:00:06.667 | 2023-03-03T21:00:06.667 | 7,383,560 | 7,383,560 | null |
75,631,799 | 1 | null | null | 0 | 16 | I have a very simple neural net:
```
model=Sequential()
model.add(Dense(units=2, activation='relu', input_dim=2)
model.add(Dense(units=1, activation='sigmoid'))
```
Basically I have an input layer with 2 values, a hidden layer with 2 neurons, and an output layer with one.
```
print(model.get_weights())
```
gives me t... | Finding the values of neurons using keras | CC BY-SA 4.0 | null | 2023-03-03T20:56:33.057 | 2023-03-03T20:56:33.057 | null | null | 2,835,670 | [
"python",
"keras",
"deep-learning",
"neural-network"
] |
75,631,813 | 2 | null | 75,631,750 | 1 | null | Sorry I don't have enough reputation to comment, but I would highly recommend you look into the coordinator pattern! It works in the same way that you're trying to use these singletons.
You give a VC a "coordinator" (just an object) and it handles navigating between views/VCs. The VCs themselves don't actually know who... | null | CC BY-SA 4.0 | null | 2023-03-03T20:58:19.997 | 2023-03-03T20:58:19.997 | null | null | 17,309,983 | null |
75,631,816 | 2 | null | 75,630,289 | 1 | null | RiggsFolly was spot on with the upload or fail breadcrumb. I guess I didn't really didn't understand the full behaviour of `foreach ($_FILES['Resume']['error'] as $key => $error) { if ($error == UPLOAD_ERR_OK){`
Changing upload_max_filesize from 2MB to 20MB in the php.ini file resolved all remaining issues. I went back... | null | CC BY-SA 4.0 | null | 2023-03-03T20:58:57.883 | 2023-03-03T20:58:57.883 | null | null | 21,323,581 | null |
75,631,818 | 2 | null | 75,631,745 | 1 | null | Unfortunately, there is no example dataset, so I am gonna guess the date format is `yyyy-mm-dd` or `2017-01-01`. Also it's not clear, whether the date is or rather .
I would use
```
df.loc[:,~df.columns.str.contains('2019')]
```
or
```
df = df.drop(df.filter(regex='2019').columns, axis=1)
```
| null | CC BY-SA 4.0 | null | 2023-03-03T20:59:01.900 | 2023-03-03T21:03:39.187 | 2023-03-03T21:03:39.187 | 12,193,952 | 12,193,952 | null |
75,631,819 | 1 | null | null | 0 | 15 | So I'm trying to debug why the broker heap is blowing up after some time.
I'm testing Spring's JmsListeners connecting to an ActiveMQ Artemis broker over the OpenWire protocol. What I'm seeing from the admin console is the number of connections stays constant once the listeners start up, but the session count for each ... | Session count climbs continuously for Spring JmsListeners in ActiveMQ Artemis | CC BY-SA 4.0 | null | 2023-03-03T20:59:02.897 | 2023-03-04T01:39:42.680 | 2023-03-04T01:39:42.680 | 8,381,946 | 9,151,648 | [
"jms",
"spring-jms",
"activemq-artemis"
] |
75,631,817 | 1 | null | null | -1 | 11 | I am doing Ajax which brings in only the newly added records. I am doing a subquery that intends to filter out the previously processed data by sorting data by ID, skipping previous IDs; and then grouping the result for counting and sorting it to display. However, my code brings in all the records and the subquery does... | MariaDB Subquery with limit and offset and order by is not working, returns all records to outer query with count and group by and order | CC BY-SA 4.0 | null | 2023-03-03T20:59:00.677 | 2023-03-03T22:45:59.237 | 2023-03-03T22:45:59.237 | 3,404,097 | 3,532,287 | [
"group-by",
"mariadb",
"subquery",
"sql-order-by",
"offset"
] |
75,631,821 | 2 | null | 75,321,395 | 0 | null | You could use importrange to share data from another protected sheet and have users able to download and view data as editors in another place. Downloading the editable sheet data results in values from importrange sheets displaying "normally" when viewed, but resolving to something like this within each cell: =IFERRO... | null | CC BY-SA 4.0 | null | 2023-03-03T20:59:08.893 | 2023-03-03T20:59:08.893 | null | null | 21,328,582 | null |