79218634

Date: 2024-11-23 19:21:22
Score: 0.5
Natty:
Report link

I had a similar problem, and the problem was in position: sticky, it looks like you're using tailwindCSS. I see class sticky in navbar. Try to change styles on position fixed, and add z-index. I hope this helps.

Reasons:
  • Whitelisted phrase (-1): hope this helps
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Anton Palchyk

79218627

Date: 2024-11-23 19:15:21
Score: 0.5
Natty:
Report link

Thanks to this GitHub thread, I was able to solve this. This basically helps Snyk to remove scanning issue on the nth-check.

"dependencies": {
    "react-scripts": "^5.0.1",
    "web-vitals": "^2.1.4",
    "nth-check": "^2.1.1"
  },
  "overrides": {
    "nth-check": "^2.1.1",
    "postcss":"^8.4.38"
  }

See more : GitHub Answer

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Faizan Ahmad

79218615

Date: 2024-11-23 19:07:19
Score: 2
Natty:
Report link

Issue https://github.com/flutter/flutter/issues/15953 it works:

AspectRatio(
  aspectRatio: 1,
  child: ClipRect(
    child: FittedBox(
      fit: BoxFit.cover,
      child: SizedBox(
        width: _controller!.value.previewSize.height,
        height: _controller!.value.previewSize.width,
        child: CameraPreview(_controller!),
      ),
    ),
  ),
)
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Bombicode

79218614

Date: 2024-11-23 19:07:19
Score: 4.5
Natty:
Report link

I have some suggestions to improve you training results.

These are general tips, but would help if we get more information about your use case:

Reasons:
  • RegEx Blacklisted phrase (2.5): Could you share some
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Farouk GHALLABI

79218611

Date: 2024-11-23 19:05:19
Score: 3.5
Natty:
Report link

just add a file in the.venv folder and use that file

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Brian Musyoki

79218606

Date: 2024-11-23 19:03:18
Score: 2
Natty:
Report link

The input line is too long and the syntax of command is incorrect while running the zookeeper in window.: Solution :- 1. Make sure the JAVA_NOME path is set. 2. Direct download and extract under c drive and rename the folder as kafka. C:\kafka>.\bin\windows\zookeeper-server-start.bat .\config\zookeeper.propertiesenter image description here

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Poonam chourey

79218597

Date: 2024-11-23 18:58:17
Score: 5.5
Natty:
Report link

Para activar el modo silencio del dispositivo desde tu aplicación en Android, necesitas usar la clase AudioManager y solicitar el permiso Do Not Disturb. Aquí te muestro cómo hacerlo: 1. Solicitar el permiso "No molestar" (Do Not Disturb) Primero, debes agregar el permiso android.permission.ACCESS_NOTIFICATION_POLICY en tu archivo AndroidManifest.xml:

<uses-permission android:name="android.permission.ACCESS_NOTIFICATION_POLICY" />

Luego, en tiempo de ejecución, debes solicitar el permiso al usuario si aún no lo has hecho. Puedes usar la función ActivityCompat.requestPermissions() para esto. 2. Activar el modo silencio Una vez que tengas el permiso, puedes usar el siguiente código para activar el modo silencio:

val audioManager = getSystemService(Context.AUDIO_SERVICE) as AudioManager
val notificationManager = getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M && !notificationManager.isNotificationPolicyAccessGranted) {
    // Solicitar permiso al usuario
    val intent = Intent(Settings.ACTION_NOTIFICATION_POLICY_ACCESS_SETTINGS)
    startActivity(intent)
} else {
    // Activar modo silencio
    audioManager.ringerMode = AudioManager.RINGER_MODE_SILENT 
}

Explicación: Obtener instancias de AudioManager y NotificationManager: Se obtienen las instancias necesarias para controlar el audio y las notificaciones.

Verificar el permiso y la versión de Android: Se comprueba si la aplicación tiene el permiso "No molestar" y si la versión de Android es compatible.

Solicitar permiso (si es necesario): Si no se tiene el permiso, se redirige al usuario a la configuración para que lo otorgue.

Activar modo silencio: Si se tiene el permiso, se establece el modo de timbre del AudioManager en RINGER_MODE_SILENT.

Consideraciones:

Permiso "No molestar": Este permiso es necesario para modificar el modo de timbre del dispositivo en Android 6.0 (Marshmallow) y versiones posteriores.

Modos de timbre: AudioManager tiene otros modos de timbre como RINGER_MODE_NORMAL (normal) y RINGER_MODE_VIBRATE (vibración). Puedes usarlos según tus necesidades.

Manejo de errores: Es recomendable agregar manejo de errores para casos en los que no se pueda obtener el permiso o acceder al AudioManager. Espero que esto te ayude a activar el modo silencio del dispositivo desde tu aplicación.

Saludos.

Reasons:
  • Blacklisted phrase (2): Espero
  • Blacklisted phrase (1): cómo
  • Blacklisted phrase (2): código
  • Blacklisted phrase (1.5): Saludos
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Luis

79218589

Date: 2024-11-23 18:57:16
Score: 3
Natty:
Report link

Why this program is not showing reverse number?

Learners Institute of Modern Studies

var n, t, rev; n=parseInt(prompt("Enter a number")); rev=0; t=n; while(t!=0) { rev=10*rev+t%10; t=t/10; } document.write("Actual Number = "+ n+"
"); document.write("Reverse Number = "+ rev+"
");
Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Why this
  • Low reputation (1):
Posted by: Asif Ayaz

79218587

Date: 2024-11-23 18:56:16
Score: 0.5
Natty:
Report link

This feels like not an issue with the strip-api-prefixes middleware not stripping the prefix, but some other issue with the IngressRoute configuration.

Why? Because, the 404 you are describing: "404 - page not found" sounds a lot like the Traefik default 404 page, which would mean the web traffic is not even getting to your service.

You should try the port-forward to service again (kubectl port-forward svc/api-golang -n demo-app 8000:8000) and browsing (or curling) the address with the bad prefix (http://127.0.0.1:8000/api/golang) and compare the 404 coming back from the app vs the 404 coming back from Traefik. Do they look different? If so, then the 404 with the Traefik port-forward is likely coming from Traefik due to a route issue, and not from your Go pod, because of an unstripped prefix.

There is a bunch of other things to look at that can help troubleshoot this:

I would be happy to help out more, but without any error messages from the live objects or the API / ingress pods, I'm just guessing, based on my own Traefik experience.

Reasons:
  • Blacklisted phrase (0.5): Why?
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Jason Snouffer

79218586

Date: 2024-11-23 18:56:16
Score: 3.5
Natty:
Report link

I know, this is old, but I have to thank Marcin for his very detailed answer.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Bob8K

79218582

Date: 2024-11-23 18:52:15
Score: 2
Natty:
Report link

The process to provision your information can be found here in-depth, you can skip right to the create a certificate profile step. But like you said, you are still awaiting public trust identity validation. You could potentially test using a private trust model

Regarding where is the certificate store, it's not on an AKV, its stored on an hsm.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Jaxel Rojas

79218570

Date: 2024-11-23 18:46:14
Score: 2
Natty:
Report link

in the excel function call:

MAX(D11:D23)
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Dan

79218548

Date: 2024-11-23 18:32:11
Score: 2
Natty:
Report link

I found one however it might not be wise to go this way. Reason is code maintenance. This class lib is done once and OS upgrades are not well handled. Another reason against that approach is one of the biggest strengths of ThreadX - (A)SIL compliance. If SIL compliance will be needed, the wrapper creates unnecessary increase of complexity.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Igor Ko

79218517

Date: 2024-11-23 18:16:09
Score: 1
Natty:
Report link

We can't do linky.set("shazoo"), can we?

We can.

To me, it appears that the only difference is the verbose multi-line syntax is required.

By the way, the simple form is also available:

linky = linkedSignal(() => this.siggy() * 2));
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Tortila

79218500

Date: 2024-11-23 18:04:07
Score: 5
Natty: 4.5
Report link

How does this work inside a package? I am guessing my sub private($self, $args){$self->global_method($args)..} will not work?

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): How do
  • Low reputation (0.5):
Posted by: Edmund Adjei

79218492

Date: 2024-11-23 17:57:05
Score: 3.5
Natty:
Report link

OK, I tried running hello.c and got a can't find cc1 error. Decided to try same with a fresh OS install. It works AND, which cc1 returns nothing? Anyway, something I installed must have messed up gcc so I'll close this issue.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Quentin Meek

79218491

Date: 2024-11-23 17:57:05
Score: 3
Natty:
Report link

As Hett replied above creating a cast is indeed the best solution if you have access to the database.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Tiago Oliveira

79218481

Date: 2024-11-23 17:51:04
Score: 1
Natty:
Report link

In my case this error popped up when I was trying to use a Pinia store in another store's action.

Moving the line const overviewStore = useOverviewStore() into a component instead solved the issue

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: zmaten

79218479

Date: 2024-11-23 17:51:04
Score: 3
Natty:
Report link

dict1 = {'a': 1, 'b': 2} dict2 = {'b': 3, 'c': 4}

dict1.update(dict2)

print(dict1)

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Sai Jahnavi

79218475

Date: 2024-11-23 17:50:04
Score: 4
Natty:
Report link

There is proposal for a solution to add support for array columns to all agg functions: https://github.com/trinodb/trino/issues/22445

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Chandraprakash Loonker

79218473

Date: 2024-11-23 17:49:03
Score: 1.5
Natty:
Report link

The problem is that perhaps you have an error classified as a FatalError.

Standard errors can be handled with custom ErrorHandler. Fatal errors also can be handled, but the SAXException is thrown anyway and parsing is stopped.

See this in docs for Validator.validate: Validates the specified input. (...) Throws: (...) SAXException – If the ErrorHandler throws a SAXException or if a fatal error is found and the ErrorHandler returns normally.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Grzegorz Grablewski

79218471

Date: 2024-11-23 17:45:02
Score: 0.5
Natty:
Report link

You are supposed to patch the return value of get_performance.

with patch(
        target="minum_reproducible_example.get_performance",
        return_value=Mock(
            spec=Performance,
            **{"get_score.side_effect": CustomException("Mocked to always fail")}
        )
):
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: defalt

79218468

Date: 2024-11-23 17:45:02
Score: 1
Natty:
Report link

You need to use URL-safe Base64 encoding. In your NodeJS code, change signature.toString('base64') to signature.toString('base64url').

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
Posted by: elving

79218464

Date: 2024-11-23 17:41:01
Score: 1.5
Natty:
Report link

use directly vite command

npx vite --host [HOST] --port [PORT]
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: mjesbar

79218452

Date: 2024-11-23 17:35:00
Score: 3.5
Natty:
Report link

Without screenshots of the heapdump, it's very hard to help you.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: OneyedJack

79218447

Date: 2024-11-23 17:34:00
Score: 1
Natty:
Report link

The possible solution could be

if (itemToRemove != null) {
 cart.getCartItems().remove(itemToRemove); 
 cartRepository.save(cart);
}

because may be your database may not be synchronised,So directly fetching from database then deleting may work.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Girish G

79218442

Date: 2024-11-23 17:30:59
Score: 2
Natty:
Report link

sudo chmod -R 770 $HOME/.config Worked for me

Reasons:
  • Whitelisted phrase (-1): Worked for me
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Louis Labrie

79218433

Date: 2024-11-23 17:27:58
Score: 2.5
Natty:
Report link

Issue #378453263 has solved:

Update:

Android Studio Meerkat | 2024.3.1 Canary 3

Android Gradle Plugin 8.9.0-alpha03

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: user6239371

79218432

Date: 2024-11-23 17:27:58
Score: 7.5 🚩
Natty: 5
Report link

Resnet18 is relatively small network to cause GPU Out of Memory issues. Could you share more details about the data you are using ?

Reasons:
  • RegEx Blacklisted phrase (2.5): Could you share
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Farouk GHALLABI

79218429

Date: 2024-11-23 17:25:57
Score: 0.5
Natty:
Report link

Found the answer while in the middle of submitting the question.

  1. Ensure to run dotenvx decrypt to not lose secrets
  2. Remove the keys (back them up just to be safe)
    • DOTENV_PUBLIC_KEY from .env
    • DOTENV_PRIVATE_KEY from .env.keys
  3. Run dotenvx encrypt - Solves the problem, now there is a new public and private key pair
  4. Cleanup .env & .env.keys from extra generated comments due to new key pair
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: nakakapagpabagabag

79218424

Date: 2024-11-23 17:23:56
Score: 1.5
Natty:
Report link

DashboardLayout takes defaultSidebarCollapsed prop

https://mui.com/toolpad/core/react-dashboard-layout/#start-with-mini-drawer-on-desktop

Pass this prop and by default the drawer will be collapsed.

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Siraj Alam

79218423

Date: 2024-11-23 17:22:56
Score: 1.5
Natty:
Report link

Using NVM and Node.js version 16 or setting NODE_OPTIONS="--openssl-legacy-provider" will resolve this issue.

If you're still experiencing problems, try restarting your PC or the Gradle daemon. This was causing issues because Gradle was always pointing to the initially configured Node.js version.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Sanif SS

79218419

Date: 2024-11-23 17:21:56
Score: 2
Natty:
Report link

What your code is doing is finding the 3-combinations of [1, ..., n] that have a given sum. So your questions boils down to "How do you find the k-combinations of n items recursively?"

Combinations do exhibit recursive structure. Combinations can be generated recursively by building them incrementally in sorted order. To generate all k-combinations of a set of n items, you start with a partial combination P, which is a subset of items already selected. If the length of P is m, where m is less than k, the next step is to complete P by appending all possible combinations of length k minus m formed from the items that come after the last element of P. This ensures that combinations are constructed in sorted order and without repetition.

Code below:

#include <iostream>
#include <vector>

using vectors = std::vector<std::vector<int>>;

// helper function to give the recursive call
// the signature we want ...
void combinations_aux(
        int n, int k, int start, std::vector<int>& current, vectors& result) {

    // Base case: if the combination has the required size, add it to the result
    if (current.size() == k) {
        result.push_back(current);
        return;
    }

    // Recursive case: try all possible next elements
    for (int i = start; i <= n; ++i) {
        current.push_back(i);
        combinations_aux(n, k, i + 1, current, result);
        current.pop_back();                   
    }

}

vectors combinations(int n, int k) {
    std::vector<std::vector<int>> result;
    std::vector<int> current;
    combinations_aux(n, k, 1, current, result);
    return result;
}

vectors triples_of_given_sum(int n, int sum) {
    vectors output;
    for (auto combo : combinations(n, 3)) {
        if (combo[0] + combo[1] + combo[2] == sum) {
            output.push_back(combo);
        }
    }
    return output;
}

int main() {

    for (const auto& tri : triples_of_given_sum(20, 15)) {
        std::cout << tri[0] << " " << tri[1] << " " << tri[2] << "\n";
    }

    return 0;
}
Reasons:
  • Blacklisted phrase (1): How do you
  • RegEx Blacklisted phrase (2.5): do you find the
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): What you
  • High reputation (-1):
Posted by: jwezorek

79218418

Date: 2024-11-23 17:20:55
Score: 2
Natty:
Report link

I am having the exact same problem as author - it just began a few days ago. For me, it occurs when deploying in a Devops Pipeline to a staging slot on my webapp. I'm using NET6 for this app. My deployment log looks fine until it hits this error

C:\Program Files (x86)\dotnet\sdk\9.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(266,5): error NETSDK1060: Error reading assets file: 
Error loading lock file 'C:\home\site\repository\obj\project.assets.json' : 
Could not load file or assembly 'System.Text.Json, Version=8.0.0.4, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. 
The system cannot find the file specified. [C:\home\site\repository\[MyApp].csproj]
    Done Building Project "C:\home\site\repository\[MyApp].csproj" (default targets) -- FAILED.

My temp solution was to create a brand new slot and, using VS Code's Azure Tools extension, do a Azure App Service: Deploy to Slot. This only works on a brand new slot - it fails if I try to deploy to the slot that previously failed above.

I'm confused on what 'Version=8.0.0.4' is anyway? Why 4 levels? Shouldn't it be 8.0.0?

Any advice on how to actually fix the problem in my Devops deploy would be welcome.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): I am having the exact same problem
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Mike Smith

79218402

Date: 2024-11-23 17:16:54
Score: 0.5
Natty:
Report link

You can try to assign your seachText to text variable when it is initialized with value from database. The idea is to assign value to text variable when the view is recomposed. You will need another variable searchTextLoaded for this.

In your viewModel class remove runBlocking and add function saveSearchTextToPreferences:

fun getSearchTextFromPreferences() = userPreferencesRepository.searchText
fun saveSearchTextToPreferences(text: String) {
    viewModelScope.launch {
        userPreferencesRepository.saveSearchText(text)
    }
}

In your composable:

val searchText = viewModel.getSearchTextFromPreferences().collectAsState("").value
var text by remember { mutableStateOf("") }
var searchTextLoaded by remember { mutableStateOf(false) }

if (searchText.isNotEmpty() && !searchTextLoaded) {
    text = searchText
    searchTextLoaded = true
}

TextField(
    value = text,
    onValueChange = { newText ->
        text = newText
        viewModel.saveSearchTextToPreferences(newText)
    },
    label = { Text("Search") }
)

Here is link to complete app code on github: https://github.com/alba221/flightsearch

Reasons:
  • Contains signature (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Alba

79218388

Date: 2024-11-23 17:04:52
Score: 2.5
Natty:
Report link

Follow below steps to solve this :

  1. Right click on Your Project
  2. Go to Properties
  3. Select Project Facets
  4. Then change Configuration to Default
Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Narsing Pendharkar

79218378

Date: 2024-11-23 16:57:50
Score: 6.5 🚩
Natty:
Report link

I have the same problem and I am on SDK 52.

react-native-view-shot: 4.0.2

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Low reputation (1):
Posted by: Kara Sally

79218373

Date: 2024-11-23 16:56:50
Score: 1.5
Natty:
Report link

9 years later this problem still happens and, in my case, had nothing to do with cookies and was transient (tens of attempts didn't get anywhere, first attempt the next day was successful). So if you get this, first thing to try: wait.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Bruno Lalande

79218370

Date: 2024-11-23 16:55:49
Score: 5
Natty:
Report link

Jacob,

thank you very much for the precious help. Now it does work very well!

Thank you again!

Regards

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (1): Regards
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Pasquale Prudente

79218363

Date: 2024-11-23 16:52:48
Score: 1.5
Natty:
Report link

I recently found the answer to my own question. The Washington Post, and doubtless many other websites, uses software that can detect whether requests are from a browser or from something else. This webpage at ScrapFly describes the techniques used by Akami, the package used by the Washington Post, to detect non-browser attempts to access: Akamai Detection Techniques

While the Washington Post does hinder scraping of their webpages (for instance, by introducing a 10 second delay before responding to the request), they do allow it. It was their own RSS feeds (for example, https://www.washingtonpost.com/arcio/rss/) that they began blocking by non-browsers on August 2, 2024. Browsers could still access these feeds, but they're in XML format with links appearing as plain text, not very useful when displayed on a browser page, and requiring additional steps to process into a useful form.

The information supplied by the ScrapFly website is sufficient for brewing your own solutions, but there's a readymade alternative available with curl_impersonate at https://github.com/lwthiker/curl-impersonate. It can mimic the behavior of the four major browsers: Chrome, Firefox, Safari and Microsoft Edge.

I needed a PHP solution and so additionally used kelvinzer0/curl-impersonate-php, which performs the necessary setup and invokes the curl_impersonate executables.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Percy

79218360

Date: 2024-11-23 16:50:48
Score: 1
Natty:
Report link

As an update for .NET 9, We now have access to a RendererInfo property.

RendererInfo.Name
RendererInfo.IsInteractive

You can check RenderInfo.IsInteractive to see if its true and handle parts of your code that only need to run after the pre-render etc.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jeremiah Fulbright

79218354

Date: 2024-11-23 16:44:46
Score: 1
Natty:
Report link

You have a typos here:

$stmt->bind_param(
"sisssssssssssssssssssssssssii", 
    $record["code"],
    $record["pairCode"],
    .....
    $record["variant:Dětská velikost"], // here is a mistake in the key. It should be "variant:Dětská Velikost"
    $record["variant:Množství"]
);

if (!$stmt->execute()) {
    echo "Error: " . $stmt->error . "<br>";
}

I reproduced your code as I could, corrected typos in the key and it works for me now. If it doesn't for you, please provide the full code.

Hope it helps. Cheers.

p.s. If you dump the $record var after binding it will be:

    array(2) {
  ["variant:Dětská Velikost"]=>
  string(30) "variant:Dětská velikost"
  ["variant:Dětská velikost"]=> // here is a broken / mistaken key after binding with null value
  &NULL

}

Reasons:
  • Blacklisted phrase (1): Cheers
  • Whitelisted phrase (-1): Hope it helps
  • Whitelisted phrase (-1): works for me
  • RegEx Blacklisted phrase (2.5): please provide
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Mikhail Chuloshnikov

79218348

Date: 2024-11-23 16:41:46
Score: 2
Natty:
Report link

i think the best way to expires the cookie is to just make the token null and set the expire time to now #code

res.cookie("token", null, { expires: new Date(Date.now() - 1000), httpsOnly: true, }

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Anand Sinha

79218347

Date: 2024-11-23 16:41:46
Score: 5
Natty: 4.5
Report link

Please read out password storing

Reasons:
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Venkata Ramana

79218344

Date: 2024-11-23 16:41:45
Score: 4.5
Natty: 5.5
Report link

Mi respuesta es sencilla, es la siguiente: como agregar una descripción debajo del titulo de una entrada en Blogger. Pablo Feliz

Reasons:
  • Contains signature (1):
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Pablo Feliz

79218343

Date: 2024-11-23 16:41:45
Score: 3
Natty:
Report link

in vscode go to settings and then search for "python.analysis.autoImportCompletions" make the value True

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Mostafa Basha

79218341

Date: 2024-11-23 16:41:45
Score: 1.5
Natty:
Report link

int main() {const int size = 10;int arr[10];

for(int i = 0;i< size;i++){
    scanf("%d",&arr[i]);
}

for(int i = 0;i<size;i++){
    if(arr[i] % 2 == 0){
        printf("%d",arr[i]);
    }
        }

for(int i = 0;i<size;i++){
    if(arr[i] % 2 == 1){
        printf("%d",arr[i]);
    }
}
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: jjjj

79218319

Date: 2024-11-23 16:28:42
Score: 1
Natty:
Report link

you have to try the RangeQueryBuilders.

import co.elastic.clients.elasticsearch._types.query_dsl.RangeQueryBuilders;

RangeQueryBuilders.term(term -> term.field("fieldName").gte(dateToday))._toQuery();
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ganesh Karunanidhi

79218313

Date: 2024-11-23 16:24:41
Score: 1
Natty:
Report link

A bit late for the OP but to help newcomers like me, the solution is to open allinone.sln, set for the Release/x64 build and select "Build full database file for solution" from the Build menu. For ICU 76, that built icudt76.dll with a size of about 32 MB containing 869 converters.

Reasons:
  • Whitelisted phrase (-1): solution is
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Keith M

79218307

Date: 2024-11-23 16:22:41
Score: 0.5
Natty:
Report link

It was the God darn Flatpack! (ノ °益°)ノ 彡 ┻━┻

Thanks to the answer here (Java error creating Path from String, does linux limit filenames to 8bit charset), I managed to figure it out.

To test it, I created a basic Java project in IntelliJ with the following code:

import java.io.File;

public class Test {
    public static void main(String[] args) {
        File f = new File("\u2026");
        f.toPath();
    }
}

Whenever I ran it via IntelliJ, I'd get an error: Malformed input or input contains unmappable characters: ?

But if I were to run it via terminal using java Main (after compiling it with javac Main.java), it ran fine. Without even the LANG variables.

In the Flatpack IntelliJ version, I was getting this message in the console (which I kept missing cause it was always hidden because of the rest of my System.out.println() output or the errors - with which it blends real nice)

"Gtk-WARNING **: Locale not supported by C library. Using the fallback 'C' locale."

So I downloaded the .tar.gz for Linux from IntelliJ's website, ran it via terminal ($./idea) and what do you know? The warning wasn't there.

I tested the sample above by running it in IntelliJ and it worked fine. Didn't even need the VMOptions or anything.

So I opened my project and all of the code described in the original post worked as expected.

No ?????, no ����� and it even created the files described in the MainController.java file properly.

I spent 2 days dealing with this issue...

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): ???
  • Whitelisted phrase (-1): it worked
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Doombringer

79218305

Date: 2024-11-23 16:21:40
Score: 4
Natty:
Report link

was able to resolve my question using Anubhav Sharma's suggestion

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user3329818

79218300

Date: 2024-11-23 16:18:40
Score: 0.5
Natty:
Report link

In a Ubuntu 22.04 with Ryzen 5600X, Nvidia RTX 3080 with nividia-550 driver (with Cuda 12.4 installed), the following command, inside a conda (in my case a mamba) environment solved this problem

pip3 install torch torchvision torchaudio

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Azmyin Md. Kamal

79218299

Date: 2024-11-23 16:16:39
Score: 4.5
Natty:
Report link

I would break your 3000 up into 3 batches of 1000 and process the three batches one at a time, taking 2-3 seconds per batch. I'm sure that I must be misunderstanding something in your post. are biographies the same as profiles?

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: bricks96

79218278

Date: 2024-11-23 16:05:36
Score: 4.5
Natty: 5.5
Report link

What about using the generic Pointer events API? It unifies the different input modes. https://developer.mozilla.org/en-US/docs/Web/API/Pointer_events

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): What
  • Low reputation (0.5):
Posted by: BREMI

79218276

Date: 2024-11-23 16:05:36
Score: 1
Natty:
Report link

Are you starting these services manually in the console?, If so there is a section in the "create" under Services tab in the Cluster UI called "Task Placement".

By default I see that a template is selected being "AZ balanced spread" this template uses the "Spread" placement strategy, that tries to spread the tasks amongs AZ. You can try the "binpack"* strategy, this strategy tries to maximize the use of ec2 resources.

*Tasks are placed on container instances so as to leave the least amount of unused CPU or memory. This strategy minimizes the number of container instances in use.

More about placement strategy

AWS Placement Strategy docs

Cloudformation placement strategy doc

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Ale Sosa

79218274

Date: 2024-11-23 16:04:35
Score: 3
Natty:
Report link

This may be helpful post for running maven spring boot app & docker container locally:

I would recommend using .env file to externalise env vars values inside the docker-compose.yml & use it for mapping values only.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Conor Heffron

79218273

Date: 2024-11-23 16:03:35
Score: 2.5
Natty:
Report link

The App Sandbox restricts access to only the file explicitly selected by the user, which can make it challenging to create adjacent files in the same directory. However, you can work around this limitation by using security-scoped bookmarks to extend access to the directory containing the selected file.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ujjwal Pathak

79218261

Date: 2024-11-23 15:56:33
Score: 3
Natty:
Report link

sa-mi9 suji puta cu jem si liniste spirituala, defapt poti sa imi si dai cu muie daca vrei

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: R3TR4DU

79218257

Date: 2024-11-23 15:53:33
Score: 1
Natty:
Report link

I guess the reason the commit fails is because you have a pre-commit job (with ruff) configured? If that´s the case, the solution to your question is to execute first ´pre-commit uninstall´ before retrying to commit.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: kadee

79218247

Date: 2024-11-23 15:49:31
Score: 6 🚩
Natty:
Report link

I faced same problem during my oa of Deloitte. I also was showing mirrorTo Virtual Camera64. I searched for the cause. Then I went to window registry and searched for camera64 and deleted the registary for it solved the problem but I do not know what was causing it I did not analyzed the structure where the registry was present. now I want to know. if you are doing the same registry delete after this post then please share it with me the structure where it was present.

Reasons:
  • Blacklisted phrase (1): I want to know
  • RegEx Blacklisted phrase (2.5): please share
  • RegEx Blacklisted phrase (1): I want
  • No code block (0.5):
  • Low reputation (1):
Posted by: Lokesh Tanwar B21EE035

79218245

Date: 2024-11-23 15:49:31
Score: 1.5
Natty:
Report link
import { Not, Repository } from 'typeorm';


return await this.MyRepository.find({
      where: { My_Field: Not(null) }
});
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: NoDiced

79218238

Date: 2024-11-23 15:48:31
Score: 1.5
Natty:
Report link

I have just added https://color-mode.nuxtjs.org/ and followed the example on https://content-wind.nuxt.space/ on the content-wind git repo.

It works really well, and then I updated the transition to match that on https://icones.js.org/ because I love it :)

  1. Add the color-mode package to your repo
  2. Create the ColorModeSwitcher component
  3. Use nuxtjs/icons
  4. Use the cool animation transition

🚀

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Sambuxc

79218231

Date: 2024-11-23 15:46:31
Score: 2
Natty:
Report link

My "non expert" opinion - if the code compiles, it is not wrong. If it does not, then it's worthy of a JIRA ticket to the Apache Hadoop project (maybe one already exists).

Just because Javadoc is missing (somehow), doesn't necessarily mean it's wrong.

In any case, I don't know a single person that explicitly writes mapreduce API code anymore without a higher level abstraction, so what's the use case you're trying to solve?

Reasons:
  • RegEx Blacklisted phrase (1.5): solve?
  • No code block (0.5):
  • Ends in question mark (2):
  • High reputation (-2):
Posted by: OneCricketeer

79218219

Date: 2024-11-23 15:41:29
Score: 1.5
Natty:
Report link

I solved. The problem was that I pretended to use flex-sm-* for mobile device, misunderstanding the functionality of it. Everything's working properly.

Reasons:
  • Whitelisted phrase (-2): I solved
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: thetreedev

79218210

Date: 2024-11-23 15:37:28
Score: 3
Natty:
Report link

SQLlite does not support adding a primary key field using ALTER. Try recreating the table and specify Primary Field on creation.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Haripo Wesley T.

79218203

Date: 2024-11-23 15:36:28
Score: 2.5
Natty:
Report link

There is a simple solution for this:-

Step 1: Go to "Edit Configuration"

Step 2: Set 'On Update action': "Update classes and resources". Set 'On frame deactivation': "Update classes and resources".

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Prasanta

79218201

Date: 2024-11-23 15:35:28
Score: 1.5
Natty:
Report link

Ok, after debugging the request following this blog it turned out that the parameters were being sent as a string "parameters":"{\"par1\":\"par2\"}" not matching the jsonb format.

I just changed the declaration of parameters in ProductFormDTO from

private Map<String, String> parameters;

to

private String parameters;

and deserialized it using ObjectMapper in ProductFormToProductEntity mapper

ObjectMapper objectMapper = new ObjectMapper();
productEntity.setParameters(objectMapper.readValue(productFormDTO.getParameters(), new TypeReference<Map<String, String>>() {}));
Reasons:
  • Blacklisted phrase (1): this blog
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: lordlaurent

79218200

Date: 2024-11-23 15:35:28
Score: 1.5
Natty:
Report link

In latest camel version 4+, we can configure as below.

    <bean id="http" class="org.apache.camel.component.http.HttpComponent">
        <property name="connectionsPerRoute" value="${defaultMaxConnectionsPerHostOrRoute}"/>
    </bean>

http://camel.apache.org/http.html

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: U_R_Naveen UR_Naveen

79218197

Date: 2024-11-23 15:34:27
Score: 2.5
Natty:
Report link

I've had this same problem and it's solved by adding filters to make it possible to select only the backend project folder. Read this on [article][https://render.com/docs/monorepo-support#build-filters]

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: JeanPFS

79218186

Date: 2024-11-23 15:30:26
Score: 2.5
Natty:
Report link

Good evening Getting an error? 'Option' is not defined

code :

  <Select>
       {categoris?.map((c)=>
       <Option  Key={c._id}  value={c.name} 
         label= {c.name}>{c.name} </Option>)}
  </Select>
Reasons:
  • Blacklisted phrase (1): Good evening
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: OFER D

79218175

Date: 2024-11-23 15:25:25
Score: 1
Natty:
Report link

I agree with @Marco around the java/maven options posted & I often use the following to build & test spring boot apps via maven:

mvn clean package

mvn -DENV_VAR_1=<val1> \
  -DENV_VAR_2=<val2> \
  -DENV_VAR_3=<val3> \
  spring-boot:run

However, I recommend using a docker file for spring boot applications using 'Dockerfile' (base image with entry point and run 'java -jar /app.war' command), 'docker-compose.yml' (with environment section that maps env vars after assigning ports), & '.env' file that holds environment variables/values only for local runs.

docker-compose.yml

services:
  service_name:
    image: app_name
    ports:
      - "8080:8080"
    environment:
      ENV_VAR_1: ${ENV_VAR_1}
      ENV_VAR_2: ${ENV_VAR_2}
      ENV_VAR_3: ${ENV_VAR_3}

.env file contents:

ENV_VAR_1=<val1>
ENV_VAR_2=<val2>
ENV_VAR_3=<val3>

Run steps via local docker desktop environment.

docker image build -t <app_name> .
docker compose up -d
docker logs <container> -f
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Marco
  • Low reputation (1):
Posted by: Conor Heffron

79218173

Date: 2024-11-23 15:25:25
Score: 1
Natty:
Report link
l = [1,2,3,4,5,6,7,8,9]
el = []
ol = []
for i in l:
    if i%2==0:
        el.append(i)
    else:
        ol.append(i)
print("Count of all the numbers:", len(l))
print("Count of even numbers:", len(el))
print("Count of odd numbers:", len(ol))
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Priyanshu Biswal

79218172

Date: 2024-11-23 15:25:25
Score: 1.5
Natty:
Report link

if you try to migrate following this page flutter_migrate_gradle you need to pay attention that you not need to add flutterRoot due to in the file settings.gradle apply this propperty 'flutter.sdk'

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: cristhian lara

79218170

Date: 2024-11-23 15:24:25
Score: 1
Natty:
Report link

Try set "skipFiles": [] in your launch.json. Caught exception affected by this config. I solve a similar problem using this config.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: pilaoda

79218162

Date: 2024-11-23 15:21:24
Score: 3
Natty:
Report link

To see anything from BLE on Android you need to run your web app using https. Whatever framework you use make sure to serve the app using https.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Kuldeep Aher

79218156

Date: 2024-11-23 15:17:23
Score: 3.5
Natty:
Report link

For anyone who's searching a fix, answer by Ignacio Hernandez below solved my problem.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Jhon Helmut

79218154

Date: 2024-11-23 15:17:23
Score: 2.5
Natty:
Report link

In the search bar type “cmd” (Command Prompt) and press enter. This would open the command prompt window. “netstat -a” shows all the currently active connections and the output display the protocol, source, and destination addresses along with the port numbers and the state of the connection.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Frostfox_purebark

79218145

Date: 2024-11-23 15:13:22
Score: 2
Natty:
Report link

This seems to be fixed in version 23.9.0

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Ooker

79218137

Date: 2024-11-23 15:10:21
Score: 2.5
Natty:
Report link

Yeah it's pretty insane that the simplest audio format in the world, and the most useful, isn't supported by "THE" recording API. Not sure what they were thinking over at W3C...

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: user1364098

79218126

Date: 2024-11-23 15:06:20
Score: 0.5
Natty:
Report link

Based on the provided details it seems like you are importing incorrectly, instead do the following: Replace:

@import "~bootstrap/dist/css/bootstrap";

With

@import "~bootstrap/scss/bootstrap";

Since you have saas setup.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: shah sawood

79218100

Date: 2024-11-23 14:58:18
Score: 0.5
Natty:
Report link

Set font and document before changing line spacing:

  private void changeLineSpacing(JTextPane pane) {
  SimpleAttributeSet set = new SimpleAttributeSet(pane.getParagraphAttributes());
  StyleConstants.setLineSpacing(set, 0.5F);
  pane.setParagraphAttributes(set, true);
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: dragoness

79218093

Date: 2024-11-23 14:56:17
Score: 6 🚩
Natty: 6
Report link

@yip102011 fit like a glove in my case! Thanks!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1.5):
  • No code block (0.5):
  • User mentioned (1): @yip102011
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Paulo Henrique

79218090

Date: 2024-11-23 14:55:16
Score: 4
Natty:
Report link

Use latest Android Studio version

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: shivraj walke

79218086

Date: 2024-11-23 14:53:16
Score: 1
Natty:
Report link

ISC (Instruction Set Computer) refers to a computer architecture defined by its instruction set , which is the collection of machine-level commands the processor can execute . It serves as an interface between hardware and software, dictating how software instructs the CPU to perform tasks . There are two main types of ISCs : RISC (Reduced Instruction Set Computer) , focusing on simpler , faster instructions, and CISC (Complex Instruction Set Computer), using more complex instructions to perform multiple operations per command .

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Navneet Singh

79218066

Date: 2024-11-23 14:46:14
Score: 7 🚩
Natty: 5.5
Report link

I meet the same problem, can you solve it?

Reasons:
  • RegEx Blacklisted phrase (1.5): solve it?
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Bruce Le

79218061

Date: 2024-11-23 14:45:14
Score: 2.5
Natty:
Report link

faced the same issue, downgraded my java from version 23 to 17 and it worked.

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Emmanuel Austine

79218051

Date: 2024-11-23 14:41:12
Score: 5.5
Natty:
Report link

No way. ÿÿÿÿÿÿÿÿÿ9ÿ9ÿ9ÿ9ÿ9ÿ9ÿ9ÿ9ÿ9ÿ9ÿ9ÿ9ÿ9

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Filler text (0.5): ÿÿÿÿÿÿÿÿÿ
  • Low entropy (1):
  • Low reputation (1):
Posted by: JuoG Elenis

79218032

Date: 2024-11-23 14:30:10
Score: 2.5
Natty:
Report link

If you use "solve(equat,dict=True", where the right side of equat must be zero, solve gives a list of a dictionary of results for all variables appearing in equat. The result looks like this: [{....}].

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Albert Beissel

79218027

Date: 2024-11-23 14:25:09
Score: 3
Natty:
Report link

Please add the necessary WordPress and your browser's console logs to your question. I did that and I could easily debug the issue.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: JxxIT

79218011

Date: 2024-11-23 14:20:08
Score: 1.5
Natty:
Report link

To edit settings.json in VS Code remote mode:

Open VS Code in Remote Mode via Remote - SSH or Remote - Containers.

Press Cmd + Shift + P (Mac) or Ctrl + Shift + P (Windows/Linux), then select Preferences: Open Settings (JSON).

Edit the remote settings.json file to adjust configurations.

Save changes with Cmd + S or Ctrl + S.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Bhanu Singh

79218010

Date: 2024-11-23 14:19:08
Score: 3.5
Natty:
Report link

Thank you mohammadreza khorasani! I have another errors but your solution helps me too.

My exception:

InvalidOperationException: Sequence contains no matching element System.Linq.Enumerable.Single[TSource] (System.Collections.Generic.IEnumerable1[T] source, System.Func2[T,TResult] predicate) (at <00000000000000000000000000000000>:0) Microsoft.AspNetCore.SignalR.Client.HubConnection..cctor () (at <00000000000000000000000000000000>:0)...

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • RegEx Blacklisted phrase (1): I have another error
  • No code block (0.5):
  • Filler text (0.5): 00000000000000000000000000000000
  • Filler text (0): 00000000000000000000000000000000
  • Low reputation (1):
Posted by: Aleksei Burov

79218009

Date: 2024-11-23 14:18:07
Score: 1.5
Natty:
Report link

To change Android Studio's JDK, follow these steps: 1 Go to File > Project Structure. 2 Select the SDK Location section in the list of the left. 3 Deselect the Use embedded JDK (recommended) option. 4 Enter the absolute path of your installed JDK in the text box 5 Digi also recommends you lower the default memory setting for Gradle (org.gradle.jvmargs property): ◦ Create a file called Gradle. Properties in the root of your project The reference I used is the website of my university.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: ليان الحربي

79217993

Date: 2024-11-23 14:13:06
Score: 3
Natty:
Report link

If you extends from a parent and instantiate a child on the parent it may cause memory lead

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Lucas Amaral

79217988

Date: 2024-11-23 14:11:05
Score: 7 🚩
Natty: 6
Report link

а если в цикле надо учесть , что строку и количество повторений будет вводить пользователь

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • No latin characters (3.5):
  • Low reputation (1):
Posted by: Мария

79217983

Date: 2024-11-23 14:08:05
Score: 3
Natty:
Report link

CTRL+SHIFT+ALT+S gives you popup window where you find under "Modules"->"Properties"->Compile SDK Version -> 35 is the option you are looking for.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Bartłomiej T

79217981

Date: 2024-11-23 14:06:04
Score: 0.5
Natty:
Report link

Following @jQueeny's explanation, I implemented the following (posted in case useful for others):

const estate = await db.collection('estates').findOne({ name: req.params.estateName });
if (!estate) {
  return res.status(404).json({ error: 'Estate not found' });
}

// Check asset of this name does not already exist
if (estate[assetType] && estate[assetType].find (el => el.name === req.body.name)) {
  return res.status(409)
    .json({ error: `An entry with name ${req.body.name} already exists in ${assetType}` });
}

let insertObj = {};
insertObj[assetType] = req.body;

const result = await db.collection('estates').updateOne(
  { name: req.params.estateName },
  { $push: insertObj }
);
if (result.matchedCount === 0) {
  return res.status(404).json({ error: 'Estate not found' });
}
res.status(201).json(req.body);
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @jQueeny's
  • Self-answer (0.5):
Posted by: minisaurus

79217979

Date: 2024-11-23 14:05:04
Score: 1.5
Natty:
Report link

Fixed by uninstalling matplotlib and installing matplotlib again in usual way, if necessary, delete files in ./miniconda3/envs/{env-name}/Lib/site-packages/

Will gladly edit if other details are found by other people or means

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: RedSean

79217976

Date: 2024-11-23 14:03:04
Score: 1
Natty:
Report link

The problem comes from the log() method depending on a generic parameter.
When a trait is implemented in order to achieve dynamic polymorphism, (you can call this trait an interface) each implementer must provide an implementation of the expected function with the exact same prototype.
However, using a generic can be seen as defining exactly the prototype only at the call site (with actual types chosen); such a prototype cannot have been determined beforehand by the implementers in order to prepare the virtual-tables.

If your approach strongly relies on dynamic polymorphism (OO), then you should probably also consider the event parameter of log() the same way: event: &dyn Keyed.
Then, you would be able to return a Box<dyn EventPersister>.

You will face the same problem about Serialize since this trait (from serde, I assume) is not object-safe for the same reason (generic parameters).
Maybe should you introduce a serialize() method in Keyed and rely internally on serde::Serialize in the implementers?

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): face the same problem
  • Ends in question mark (2):
  • High reputation (-2):
Posted by: prog-fh

79217971

Date: 2024-11-23 14:02:03
Score: 1
Natty:
Report link
  1. You are trying to dereference the uninitialized pointers, such as:

cin >> *cppfile;

cin >> *outputfile;

To fix this, change the type of these variables to "std::string" objects and use "std::cin" to directly assign values to them.

  1. Change opt from "char*" to a "char" type.
  2. Replace the double quotes in the comparison with "opt" to single quotes:

if (opt == "1" || opt == "a" || opt == "A")

to

if (opt == '1' || opt == 'a' || opt == 'A')

  1. Include the string library to ensure the program works properly:

#include "string"

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: İnanç Görgülü

79217969

Date: 2024-11-23 14:01:03
Score: 0.5
Natty:
Report link

you can try to remove the line of

try_files $uri $uri/ =404;

and by default nextjs build directory is .next/static you can try change alias path into

location /_next/{
    alias /path/.next/;
    expires 365d;
    access_log off;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: emild_