79218766

Date: 2024-11-23 20:31:39
Score: 1.5
Natty:
Report link

Levan explain it right: there are syntax errors in ports and volumes - to define list in yaml you need to have a space after dash (- something) and not -something.

But I want to add that if you want to check your configuration before start you should use command docker compose config which would catch schema issues like this:

validating /path/to/docker-compose-linter/docker-compose.yml: services.app.volumes must be a list

Or special docker compose linter which also catch schema issues, but additionally could provide recommendations for improving your Compose file:

   1:1     error  ComposeValidationError: instancePath="/services/app/ports", schemaPath="#/properties/ports/type", message="Validation error: must be array".  invalid-schema

✖ 1 problems (1 errors, 0 warnings)
Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Contains signature (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: zavoloklom

79218762

Date: 2024-11-23 20:28:39
Score: 3
Natty:
Report link

Some programmer dude solved the problem. Thank you! The problem was that I had a '\n' new line in resultChar I deleted the '\n' and now it works.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Trebor

79218747

Date: 2024-11-23 20:18:35
Score: 7 🚩
Natty:
Report link

I tried to add the code above on my taxonomy php file but it does not work. Does anyone have suggestion for me? The page that I want to add comment on: https://wisetoclick.com/store/webinarpress-coupon-codes/ The theme I use: WP coupon

Reasons:
  • RegEx Blacklisted phrase (3): Does anyone have
  • RegEx Blacklisted phrase (1): I want
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: trangnv91

79218744

Date: 2024-11-23 20:17:35
Score: 4
Natty: 4.5
Report link

To deploy your Docusaurus site online using GitHub Pages: https://tw-docs.com/docs/static-site-generators/docusaurus-search/#deploy-your-site-to-github-pages

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

79218743

Date: 2024-11-23 20:16:34
Score: 1.5
Natty:
Report link

I have followed what Marc said; yes, you can scrape products using their frontend API.

For easier access, try the API: Shopee Working API

The only limitation with this API is that there is no search endpoint right now.

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

79218738

Date: 2024-11-23 20:13:34
Score: 2
Natty:
Report link

When do do:

?NOLIST, SOURCE =util(term_write_int)

You are telling the TAL compiler to look for a TACL DEFINE called "=UTIL". If you want to do it in this way, you should add the DEFINE to TACL environment before calling the TAL compiler for compiling your main, otherwise you will receive that error "No file system DEFINE exists for this logical file name: =util"

you can reference your file directly:

?NOLIST, SOURCE $vol.subvol.util(term_write_int)

Or, previously calling the compiler:

ADD DEFINE =UTIL, FILE $VOL.SUBVOL.UTIL

TAL /IN MAIN/ ....

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): When do
  • Low reputation (1):
Posted by: Agustín Metz

79218729

Date: 2024-11-23 20:09:33
Score: 0.5
Natty:
Report link

No, this is not how modules are used. You are trying to use CommonJS syntax with its require and module.exports. With classes, you rather need ES6 syntax, that is, defined by ECMAScript standards starting v.6. Please see this Stackoverflow answer. If by some reason you have to use CommonJS way (one case where it is still required is the Visual Studio Code extension API), you can restructure your code to do so, we can discuss it. Let's see how to do it with ES6.

In one module, you can define and export a class, for example,

export class Movie { /* ... */ }

Alternatively, you can export several objects in one line:

export { Movie, AnotherClass, SomeFunction, someObject };

To use the class Movie outside this module, you need to import it

import { Movie } from "relative path to your module file name";
const movieInstance = new Movie(/* ... */);
// ...
movieInstance.displayMovieDetails();

Note that you can selectively choose what to import. You can also use alias names for your imported objects.

Please see the MDN Guide JavaScript modules.

Reasons:
  • Blacklisted phrase (1): Stackoverflow
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Sergey A Kryukov

79218727

Date: 2024-11-23 20:08:33
Score: 2
Natty:
Report link

@Charlieface has already shared great options.Here is another one using Case statements only.I have used postgres as an example but let me know which db you are using so if needed syntax can be changed.

Fiddle

SELECT DISTINCT ON (Organization) 
    Organization,
    Year,
    Target
FROM manufacturer_status
WHERE Target IN ('Achieved', 'Partial')
ORDER BY Organization, 
    CASE 
        WHEN Target = 'Achieved' THEN 1
        WHEN Target = 'Partial' THEN 2
    END;

enter image description here

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • User mentioned (1): @Charlieface
  • Low reputation (0.5):
Posted by: samhita

79218719

Date: 2024-11-23 20:06:32
Score: 4
Natty: 4
Report link

just a little side note if you want to search about other hot keys for vscode you can find it here: https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf

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

79218717

Date: 2024-11-23 20:04:31
Score: 2
Natty:
Report link

I had a similar "issue" found out that the chat box moved places, it is now at the right pane of vscode instead of the left pane. If it isnt there, in the top bar you can find a small icon, clic on it and you'll have the option to show the chat. (see image bellow)

vscode copilot chat

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

79218710

Date: 2024-11-23 20:02:31
Score: 1.5
Natty:
Report link

@Versus answer works, but has a few peculiar behaviors. It causes CustomView to intercept taps outside its frame, and it prevents buttons in the cover view (view5) from working. This version of hitTest fixes those cases:

override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
    if view1.point(inside: self.convert(point, to: view1), with: event) {
        // inside view1
        return view1
    } else if self.point(inside: point, with: event) {
        // inside CustomView (but outside view1)
        return super.hitTest(point, with: event)  // superview's tapped view  
    } else {
        // outside CustomView
        return nil
    }
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Versus
  • Looks like a comment (1):
  • Low reputation (0.5):
Posted by: P. Stern

79218690

Date: 2024-11-23 19:57:29
Score: 1.5
Natty:
Report link

You can distribute Javadocs file directly from a .jar in your Spring Boot app by developing a custom controller that can use the JarFile API to read and run files dynamically without unzipping. This helps you to access Javadoc files through URLs like /myapp/javadoc/index.html, making sure a clean and structured solution customized to your needs.. Optional Optimizations Cache Javadoc Files: If you expect high traffic, you can extract the Javadoc files into a temporary directory on startup and serve them from there for better performance. Add Security Filters: Validate the filePath parameter to avoid directory traversal attacks or unauthorized access to other files in the

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Esther Chioma Nnaleche

79218683

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

I bumped jakarta.xml.bind-api to 4.0.2 and jaxb-runtime to 4.0.05 and the issue was fixed

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

79218673

Date: 2024-11-23 19:47:28
Score: 0.5
Natty:
Report link

I use Cypress 13.15.1, the following codes work for me.

npm install cypress-lighthouse;

Update cypress.config.js:

const { lighthouse, prepareAudit } = require('@cypress-audit/lighthouse');
module.exports = defineConfig({  
  e2e: {        },    
    setupNodeEvents(on, config) {
      // implement node event listeners here 
      on("task", {
       lighthouse: lighthouse(), // Registers the Lighthouse task
      });     
      on("before:browser:launch", (browser = {}, launchOptions) => {
        prepareAudit(launchOptions); // Prepares the browser for Lighthouse audits
      }); },  },
});

Testing Script:

import "@cypress-audit/lighthouse/commands";
describe('cypress test using lighthouse', () => {
    it('Lighthouse check scores on Home Page', ()=>{ 
        cy.once('uncaught:exception', () => false);              
        cy.visit("https://www.admlucid.com")            
        cy.lighthouse({
          performance: 80,      
          accessibility: 85,      
          "best-practices": 95,      
          seo: 75,      
          pwa: 30,      
          'first-contentful-paint': 2900,      
          'largest-contentful-paint': 3000,      
          'cumulative-layout-shift': 0.1,      
          'total-blocking-time': 500,           
        }); 
    });  })

https://www.youtube.com/channel/UCjJRU4qQ8FcRxruCia5CfJQ

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: ADM Lucid Solution Inc.

79218668

Date: 2024-11-23 19:41:27
Score: 0.5
Natty:
Report link

In my quick test, the disabled "Active" button indicates that the plugin is already activated on the WordPress install. Go to the Plugins screen (/wp-admin/plugins.php) and see if the plugin is listed there and activated.

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

79218664

Date: 2024-11-23 19:36:25
Score: 5
Natty: 5.5
Report link

How do I return with a non-blurry higher-resolution image for thumbnail

Reasons:
  • Blacklisted phrase (1): How do I
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): How do I
  • Low reputation (1):
Posted by: ryand32

79218661

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

I know that this is old question, but for people who also search authentication library for Play Framework: https://silhouette.readme.io/

Silhouette is an authentication library for Play Framework applications that supports several authentication methods, including OAuth1, OAuth2, OpenID, CAS, Credentials, Basic Authentication or custom authentication schemes.

Last version of Silhouette for now is 7.0 and it’s available for Scala 2.12/.13 and Play Framework 2.8.

https://silhouette.readme.io/docs/providers - here is info about authentifacation schemas that Silhouette provides.

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

79218660

Date: 2024-11-23 19:35:25
Score: 0.5
Natty:
Report link

For raw HTML in inline context, you can generate a custom role based on the "raw" role:

.. role:: HTML(raw)
   :format: html

and use it like

你\ :HTML:`<ruby>好<rt>hǎo</rt></ruby>`\ 呀!

The backslash-escaped spaces are required so that the inline markup is recognized. (Alternatively, set the character-level-inline-markup configuration setting to True.)

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

79218647

Date: 2024-11-23 19:27:24
Score: 2.5
Natty:
Report link

Store the state in the URL or in local storage (I would recommend the URL) Store the stage of the setup and any dialogues they are open, put them in an object JSON stringify them and put them in window.location.hash

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

79218646

Date: 2024-11-23 19:27:24
Score: 2.5
Natty:
Report link

First make the app image executable using:

chmod +x appimage-file

Then run it using:

./appimage-file

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

79218641

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

https://www.youtube.com/watch?v=Wthmab2pI-o&ab_channel=IntelliLogics

in this video solution is given and it works perfectly

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Blacklisted phrase (1): this video
  • Whitelisted phrase (-1): solution is
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Harsh Dubey

79218640

Date: 2024-11-23 19:25:23
Score: 2.5
Natty:
Report link

The error is due to the Event object not being defined in your code. In Python, the Event object comes from the threading module, but it seems that you haven't imported it in your Object_Avoidence.py script.

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

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