79171940

Date: 2024-11-09 01:19:10
Score: 0.5
Natty:
Report link

After many toilsome hours, I have fixed it by altering the application.yml:

server:
  port: 9002

spring:
  kafka:
    consumer:
      auto-offset-reset: earliest
      bootstrap-servers: ${SPRING_KAFKA_BOOTSTRAP_SERVERS:localhost:29092} 
      group-id: order-consumer-group
      key-deserializer: org.apache.kafka.common.serialization.StringDeserializer
      value-deserializer: org.springframework.kafka.support.serializer.ErrorHandlingDeserializer
      properties:
        spring.deserializer.value.delegate.class: org.springframework.kafka.support.serializer.JsonDeserializer
        spring.json.trusted.packages: com.Memorium.order_consumer.payload
        spring.json.value.default.type: com.Memorium.order_consumer.payload.Order

Just needed to change boot change bootstrap-servers to

bootstrap-servers: ${SPRING_KAFKA_BOOTSTRAP_SERVERS:localhost:29092}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Andrew Doan

79171938

Date: 2024-11-09 01:18:10
Score: 2.5
Natty:
Report link

Maybe you can add padding: 0 20px; to keep elements away from edges. And then in the .main_links use margin_right.

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

79171936

Date: 2024-11-09 01:16:09
Score: 3.5
Natty:
Report link

This was sooooper helpful. I ended up creating the default disabled MenuItem and initialized the product with "".

Thanks for a clean console :)

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: chris freckleton

79171923

Date: 2024-11-09 01:01:06
Score: 3
Natty:
Report link

Okay, so I had to go out for a while. When I came back, I booted up my computer and opened the project and now it runs just fine. I have no idea why I was getting the error before, I have no idea why it is now fixed. I can only assume there was some weirdness going on with VS Code. Thanks to anyone that responded.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Tyler Trebus

79171899

Date: 2024-11-09 00:37:03
Score: 3.5
Natty:
Report link

I think the list you want is defined in a CommandType enum.

Alias | Function | Filter | Cmdlet | Script | ExternalScript | Application | Configuration

https://github.com/PowerShell/PowerShell/blob/master/src/System.Management.Automation/engine/CommandInfo.cs#L23

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Randy in Marin

79171897

Date: 2024-11-09 00:35:02
Score: 3
Natty:
Report link

Tested chrome beta for v131 and it works as expected, and looks like it will be released in a few days on Nov 12, 2024 according to the schedule.

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

79171888

Date: 2024-11-09 00:26:00
Score: 3.5
Natty:
Report link

Maybe this helps: https://github.com/KyanJeuring/CSS-variable-in-rgba-function

This repository explains how to modify the aplha of an variable (using pure css).

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Kyan Jeuring

79171880

Date: 2024-11-09 00:15:58
Score: 1.5
Natty:
Report link

If you're not running any tests in pipeline you should add "ignoreTests": true to the renovate.json

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

79171879

Date: 2024-11-09 00:15:58
Score: 0.5
Natty:
Report link

As of MUI 6, text input attributes are set as follows:

      <TextField
        slotProps={{
          htmlInput: { 'data-index': index },
        }} 
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Distagon

79171869

Date: 2024-11-09 00:07:57
Score: 1.5
Natty:
Report link

To make it clear at first sight, in the following example, two conditions are put in a row, they are in the "fx" expression of each SQL task's output arrow. You need to double click each arrow.

enter image description here

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

79171862

Date: 2024-11-09 00:01:56
Score: 2
Natty:
Report link

Are you actually using find_one as opposed to find? As the name suggests, find_one will only return 1 or zero results.

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

79171848

Date: 2024-11-08 23:48:53
Score: 1.5
Natty:
Report link

You don't need any of that code if you just use spring-boot-starter-data-elasticsearch as a dependency and set up the properties according to the doc https://docs.spring.io/spring-boot/appendix/application-properties/index.html#appendix.application-properties.data

Look for the spring.elasticsearch properties. It will greatly simplify your configuration.

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

79171840

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

You can try:

type ZipObjectFunction = <T, K>(arr1: readonly T[], arr2: readonly K[]) => Object.fromEntries<Array<[T, K]>>

Will this solve the problem?

Reasons:
  • RegEx Blacklisted phrase (1.5): solve the problem?
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: KLASANGUI

79171827

Date: 2024-11-08 23:29:49
Score: 1
Natty:
Report link

That session id means there's currently no session running. Something seems to be canceling/finishing the session when the activity is paused.

You can change the log level like this:

adb shell cmd autofill set log_level verbose
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ahaan Ugale

79171825

Date: 2024-11-08 23:26:48
Score: 2
Natty:
Report link

i still wasn't able to solve this issue after installing everything. "docker-php-ext-enable imagick" shows no command found and the error "Call to undefined function Intervention\Image\Drivers\Gd\Decoders\imagecreatefromjpeg()" remains

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

79171813

Date: 2024-11-08 23:19:47
Score: 1.5
Natty:
Report link

I recommend using the tree /f command if you just wanted to see what dir /s/b did for you while in a powershell console:

C:\test>tree /f
C:.
├───a
├───anotherdir
│       somefile.txt
│       somefile2.txt
│       somefile3.txt
│
└───anotherdir2

If you are writing a script or something I like the answer @Bob gave:

(dir -r).FullName
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Bob
  • Low reputation (1):
Posted by: Michael Reynolds

79171802

Date: 2024-11-08 23:13:45
Score: 1.5
Natty:
Report link

What exact version of Tomcat is being used? We also saw this with Tomcat 9.0.93 and a Grails 4 application.

In our research we found a couple of potential changelog entries that were relevant:

  1. Correct regressions in the refactoring that added recycling of the coyote request and response to the HTTP/2 processing. (markt)
  2. Update: The system property org.apache.catalina.connector.RECYCLE_FACADES will now default to true if not specified, which will in turn set the default value for the discardFacades connector attribute, thus causing facade objects to be discarded by default. (remm)

https://tomcat.apache.org/tomcat-9.0-doc/changelog.html

The RECYCLE_FACADES system property might be able to mitigate this but I haven't tested it. We used Tomcat 9.0.86 and moved on for now.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): What
  • Low reputation (0.5):
Posted by: John Lear

79171790

Date: 2024-11-08 23:04:43
Score: 0.5
Natty:
Report link

You can update the base image in your Dockerfile to include a newer JDK.

For example, to build with Eclipse Temurin 21, change this line:

FROM maven:3.8.4-openjdk-11

to:

FROM maven:3-eclipse-temurin-21

See here for a list of available Maven base images: https://hub.docker.com/_/maven/tags

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

79171786

Date: 2024-11-08 23:02:43
Score: 1
Natty:
Report link

I had to use raw-loader.

import testVertexShader from "!!raw-loader!@/shaders/test/vertex.glsl";
import testFragmentShader from "!!raw-loader!@/shaders/test/fragment.glsl";

Found the solution in this great tutorial about shaders and react three fiber.

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

79171780

Date: 2024-11-08 22:59:42
Score: 0.5
Natty:
Report link

All I realized was that it's useful to use pre-built solutions. To fix my problem, I just used the "go_router" package:


final _rootNavigatorKey = GlobalKey<NavigatorState>();
final _shellNavigatorScheduleKey =
    GlobalKey<NavigatorState>(debugLabel: 'shellSchedule');
final _shellNavigatorEditKey =
    GlobalKey<NavigatorState>(debugLabel: 'shellEdit');
final _shellNavigatorSettingsKey =
    GlobalKey<NavigatorState>(debugLabel: 'shellSettings');

final goRouter = GoRouter(
  initialLocation: '/schedule',
  navigatorKey: _rootNavigatorKey,
  debugLogDiagnostics: true,
  routes: [
    StatefulShellRoute.indexedStack(
      builder: (context, state, navigationShell) {
        return ScaffoldWithNestedNavigation(navigationShell: navigationShell);
      },
      branches: [
        StatefulShellBranch(
          navigatorKey: _shellNavigatorScheduleKey,
          routes: [
            GoRoute(
              path: '/',
              builder: (context, state) => const ScheduleScreen(),
            ),
            GoRoute(
              path: '/schedule',
              pageBuilder: (context, state) => const NoTransitionPage(
                child: ScheduleScreen(),
              ),
              routes: [
                GoRoute(
                  path: 'lesson',
                  builder: (context, state) => const LessonScreen(),
                ),
              ],
            ),
          ],
        ),
        StatefulShellBranch(
          navigatorKey: _shellNavigatorEditKey,
          routes: [
            GoRoute(
              path: '/edit',
              pageBuilder: (context, state) => const NoTransitionPage(
                child: EditScreen(),
              ),
            ),
          ],
        ),
        StatefulShellBranch(
          navigatorKey: _shellNavigatorSettingsKey,
          routes: [
            GoRoute(
              path: '/settings',
              pageBuilder: (context, state) => const NoTransitionPage(
                child: SettingsScreen(),
              ),
              routes: [
                GoRoute(
                  path: 'appearance',
                  builder: (context, state) => const AppearanceScreen(),
                ),
                GoRoute(
                  path: 'notifications',
                  builder: (context, state) => const NotificationsScreen(),
                ),
                GoRoute(
                  path: 'qr',
                  builder: (context, state) => const QrScreen(),
                ),
              ],
            ),
          ],
        ),
      ],
    ),
  ],
);

Special thanks to the author of the article for the solution method

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Eugene Dark

79171759

Date: 2024-11-08 22:42:38
Score: 1
Natty:
Report link

You are probably getting that exception because that package or that function of the package is not (yet) implemented on the platform you are using. Flutter packages or certain parts of a package may not be available on all platforms.

In this case, sms_advanced is only available on Android, iOS and in the browser. This is show on the website of the package here. This package also does not implement all of its functionality across each platforms yet as show here:

table

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

79171752

Date: 2024-11-08 22:38:37
Score: 0.5
Natty:
Report link

I'm not an expert but googling a bit I find this one:

If your proyect it's MVC try with:

return RedirectToAction("Index", "Home");

If your proyect it's Razor, try with:

return Redirect("~/");

and you might be redirected to the homepage.

Good luck

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

79171745

Date: 2024-11-08 22:31:33
Score: 12 🚩
Natty:
Report link

Im having the exact same issue in production in AWS but with grails 4. What instance type do you have? or did you resolve it? how?

Reasons:
  • RegEx Blacklisted phrase (3): did you resolve it
  • RegEx Blacklisted phrase (1.5): resolve it?
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): having the exact same issue
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: hugoriar

79171739

Date: 2024-11-08 22:29:32
Score: 1
Natty:
Report link

This is at best a work around since it prevents a "Confirm replace" by removing the file first. Sure, this may work but is not an ideal soluition.

If(Test-Path $filepath) 
{ Remove-Item $filepath } 

$workbook.SaveAS($filepath)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: J. DuBois

79171736

Date: 2024-11-08 22:25:32
Score: 0.5
Natty:
Report link

does the na.rm option shown on the ?svymean help page give you the behavior you're looking for? thanks!!

# fails
MIcombine( with( nsch_design , svymean( ~ ace5 ) ) )

# works but gives wrong answer since it's averaging ones and twos
MIcombine( with( nsch_design , svymean( ~ ace5 , na.rm = TRUE ) ) )

# works
MIcombine( with( nsch_design , svymean( ~ factor( ace5 ) , na.rm = TRUE ) ) )

# works
MIcombine( with( nsch_design , svymean( ~ as.numeric( ace5 == 1 ) , na.rm = TRUE ) ) )

# works
MIcombine( with( subset( nsch_design , !is.na( ace5 ) ) , svymean( ~ as.numeric( ace5 == 1 ) ) ) )

# works but wrong!  incorrectly includes missings in the denominator
MIcombine( with( nsch_design , svymean( ~ as.numeric( ace5 %in% 1 ) ) ) )
Reasons:
  • Blacklisted phrase (0.5): thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: Anthony Damico

79171732

Date: 2024-11-08 22:24:31
Score: 1.5
Natty:
Report link

After trying many many times over several HOURS, the bottom area that says "Having problems?" added an option for "Use GitHub Mobile" which was NEVER there before in every single attempt I made before going back for several hours. I clicked it, a number was shown, and I entered the number on my old phone.

Issue is resolved. By far the worst 2fa experience of my life, and not even close, and I know I'd be completely locked out without my old phone.

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
Posted by: Justin

79171728

Date: 2024-11-08 22:22:31
Score: 1
Natty:
Report link

Let's be clear on these:

vapor docs, it says here that by default it has 1000 concurrency.

Technically it is the default maximum, so its a bit different than default because this is the maximum for your acount on ALL of lambda functions you have. But if you need more you can contact to AWS support.

So in my example above does this mean queue1-production and queue2-production has 1000 concurrency while queue2-production has 10 concurrency?

This one is depends, if you just did this configuration and did nothing on AWS Lambda configuration, then yes you are correct.

However i need to mention that you can also set reserved concurrency for you lambda functions, for example on your queue1-production (as a lambda function) you can set 10 reserved concurrency, and then other lambda function have only 990 concurrency(not 1000).

Please read: https://blog.laravel.com/vapor-individual-queue-concurrency There are a few good links in there as well.

Reasons:
  • Blacklisted phrase (0.5): i need
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
Posted by: TEFO

79171721

Date: 2024-11-08 22:19:30
Score: 2.5
Natty:
Report link

What worked for me was adding the highlighted section below to my host.json file I am working with wrapping fastApi in an azure function. enter image description here

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Starts with a question (0.5): What
  • Low reputation (0.5):
Posted by: Marc Keeling

79171714

Date: 2024-11-08 22:16:30
Score: 0.5
Natty:
Report link

Does using a type guard work for you?

function isBook(obj: unknown): obj is Book {
   return (obj as Book)?.author !== undefined
}

You would use it in your code like so:

<GenericSelect
onChange={(value) => {
  if (isBook(value)) {
    console.log(value.author); // Only accessible if `value` is a `Book`
  } else {
    console.log(value.title); // Only accessible if `value` is a `Movie`
  }
}}
values={books}
/>
Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Mue

79171713

Date: 2024-11-08 22:16:30
Score: 2
Natty:
Report link

Referencing this other post, it appears to be the answer to your problem

gltf.scene.traverse( function( object ) {

    object.frustumCulled = false;

} );
Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: MiguelG

79171702

Date: 2024-11-08 22:11:29
Score: 2
Natty:
Report link

React strict mode, in development, forces a double render. useEffect hook is not immediately called, it is scheduled to run after the component has been mounted. So during the first render the output will be

outside  1
end of fn  1

after this, react imedtiately rerenders the component so the logs will reapper. Second render outputs:

outside  1
end of fn  1

and then we get the useEffect logs

1
destruct 2
2

Now to the part where x is not reinitialised. use effect cleanup is called when the use effect hook is called again. In the cleanup the value of x is not changed so it will remain the same. So, useEffect is ran x is outputed (1) then x++ then react callse the use effect hook again, meaning it will call the cleanup function so 'desturct 2' and then print the x again (2) then x++. It is explained a little bit better here: Why is the cleanup function from `useEffect` called on every render?

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Cristian-Alexandru SANDU

79171697

Date: 2024-11-08 22:07:27
Score: 1
Natty:
Report link

You have to just remove the already existing orgin using the command

   git remote rm origin

And then add a new one with a anyone name you want , it could be origin as well

git remote add "any_name" "your git repo"
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: sushruth murakare

79171691

Date: 2024-11-08 22:01:26
Score: 3
Natty:
Report link

we are adding tests to legacy code and there are generally 10 to 15 mocks for 20 to 25 line test. Myself, I think these tests are worse than not having any and have simply injected a significant amount of extra complexity, but they didn't ask me.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: daniel the guest

79171690

Date: 2024-11-08 22:01:26
Score: 1
Natty:
Report link

angular >= 17

private self = inject<ElementRef>(ElementRef)

angular <= 16

constructor(private self: ElementRef) {}

Stackblitz

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

79171682

Date: 2024-11-08 21:57:25
Score: 1.5
Natty:
Report link

Use BaseUtcOffset of the zone to see if they have the same offset. This does not mean they are "the same" always, but it means they are the same right now. Daylight Saving Time may change that comparison at other times.

That is a partial solution. It does not mean they are aliases of each other.

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

79171678

Date: 2024-11-08 21:54:24
Score: 2.5
Natty:
Report link

That's a bit tricky. But you are going down the right path.

Essentially you have a custom controller, that acts as a proxy to the other two controllers (Box and multi) and you are taking the custom actions and using the Box and Multi APIs to trigger the UX behavior you want.

I'm not completely sure which event is missing, but you can look at the unmagnified source code of Box and Multi extensions, to figure it out.

Does that help ?

Reasons:
  • No code block (0.5):
  • Ends in question mark (2):
Posted by: michael beale

79171666

Date: 2024-11-08 21:50:23
Score: 1.5
Natty:
Report link

When passing props to components in React, they're passed as key: value pairs through the default props object in the parameters of the component. To access the value of product you should do it like so:

const SingleProduct = (props) => {
    console.log(props.product)
    ...
};

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): When
  • Low reputation (1):
Posted by: Artemiy Brukhno

79171665

Date: 2024-11-08 21:49:23
Score: 2.5
Natty:
Report link

URL didn't fix the issue for me. The error could come from that you didn't include the account you're testing in the sandbox.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Yx-h

79171658

Date: 2024-11-08 21:44:21
Score: 2.5
Natty:
Report link

What OS are you using? According to the face recognition git repository, you can install it by running pip3 install face_recognition, given that you have cmake installed.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): What
  • Low reputation (0.5):
Posted by: Slavensky

79171653

Date: 2024-11-08 21:43:21
Score: 3.5
Natty:
Report link

You can find that information in the manifest.json file.

ie. refer to "ViewSets": "Set 1", in the json below:

  {
                                    "guid": "8ba265ee-debf-4b65-a77a-52060c81238b-00000c66",
                                    "type": "geometry",
                                    "role": "2d",
                                    "name": "Site",
                                    "viewableID": "8ba265ee-debf-4b65-a77a-52060c81238b-00000c66",
                                    "phaseNames": "Project Completion",
                                    "ViewSets": "Set 1",
                                    "status": "success",

Do you know how to retrieve the manifest.json file ?

Reasons:
  • RegEx Blacklisted phrase (2.5): Do you know how
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
Posted by: michael beale

79171652

Date: 2024-11-08 21:42:21
Score: 2
Natty:
Report link

Making some assumptions but unless you have root access, it's largely impossible.

Intent.ACTION_CLOSE_SYSTEM_DIALOGS use to be a reliable method but recent versions of Android will not permit it.

There are option but everything is subject to Google Play Policy.

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

79171650

Date: 2024-11-08 21:41:20
Score: 1.5
Natty:
Report link

In Flask, the app configuration system only picks up keys that are in uppercase, so any lowercase settings from your config file get ignored. That's why you're seeing "MY_VARIABLE" but not "my_variable".

Change your config file so that all the setting names are uppercase, like MY_VARIABLE. (or) Or, if you need to keep lowercase names, you can load the file yourself and manually add each setting to app.config in uppercase form.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Prakash Ramu

79171643

Date: 2024-11-08 21:39:20
Score: 1
Natty:
Report link

javascript:(function(){var wn=window,w,h,o={},m,dc,b,c='ABCDEFGHIJKLM1234567890nopqrstuvwxyz',y=setInterval,z=clearInterval,t=1;function x(){dc=document;b=dc.body;b.innerHTML='';bs=b.style;w=wn.innerWidth;h=wn.innerHeight;bs.backgroundColor='black';bs.overflow='hidden';m=y(n,25);dc.addEventListener('keydown',function(e){if(e.keyCode==83){if(t)z(m);else m=y(n,25);t=!t}},0)}function g(i){return dc.getElementById(i)}function r(d,m){return Math.floor(Math.random()*d)+m}function a(i){var d=g(i),ds=d.style,t=parseInt(ds.top),k=o[i];if(t<h){ds.top=(t+10)+'px'}else{z(k);b.removeChild(d);delete k}}function n(){var d=dc.createElement('div'),dt=new Date(),i='m_'+dt.getTime(),ds=d.style,v=ds.visibility,j=0,u=[],l=r(21,4),q=c.length,p;d.id=i;ds.width='5px';ds.opacity=r(.3,.7);ds.fontSize=r(8,8)+'px';ds.lineHeight='8px';ds.color='green';ds.position='absolute';ds.left=r(w,0)+'px';v='hidden';while(j<l){p=r(q,0);u[j]=c.substring(p,p+1);j++}d.innerHTML=u.join("\n");b.appendChild(d);ds.top=-d.offsetHeight+'px';v='visible';o[i]=y(function(){a(i)},r(20,40))}x();})()

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Elijah Pulcino

79171641

Date: 2024-11-08 21:37:19
Score: 3.5
Natty:
Report link

This blog post, has a faster way of setting theme color:

https://aps.autodesk.com/blog/revisiting-viewers-theming-coloring-selective-cancelling-deferred-rendering-and-recursive

It's much more complex though, but provides high performance.

Reasons:
  • Blacklisted phrase (1): This blog
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
Posted by: michael beale

79171637

Date: 2024-11-08 21:36:19
Score: 2
Natty:
Report link

No, unfortunately there’s nothing in the spec that lets you pull those values from another file, you just have to copy them yourself.

source: https://containers.dev/implementors/json_schema/#main-schema

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

79171629

Date: 2024-11-08 21:34:18
Score: 1.5
Natty:
Report link

A comment by IanAbbott led me to the bug. The issue is the comparison I was doing to decide whether or not the queue needed to be realloc'ed. I was comparing against pool->waiting_in_queue, which is incorrect since this is the number of unstarted jobs. What I needed to do was this:

  while (pool->queue_length >= (pool->queue_capacity - 1)) {

That is, comparing the length of the queue itself, and not the number of unstarted jobs.

Thanks for all the helpful comments and advice :)

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: smolloy

79171625

Date: 2024-11-08 21:32:18
Score: 1
Natty:
Report link

For me, I was seeing this error message in VS2022 because I had enabled JavaScript debugging when a dialog box ask me. Then, I did not know how to turn it off.

To toggle JavaScript debugging, go to Tools > Options > Debugging and toggle the checkbox for Enable JavaScript debugging for ASP.NET (Chrome, Edge, and IE):

screenshot

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

79171611

Date: 2024-11-08 21:27:16
Score: 1.5
Natty:
Report link

regarding speed, I am working with ~90 Excel files, and I am using openpyxl to add about 400-500 cells per WB. On average openpyxl is able to execute this process in just over 10 seconds. Where as opening and closing the excel files as fast as Win32.com can, takes between 50 and 70 seconds, usually towards the latter. I suspect some fragmentation is involved with the speed as this is on an HDD. But there is a significant time delta just refreshing the files. I need to do this because I need to fetch values from openpyxl and if I don't I get NONE even if I open the WB as data_only.

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

79171603

Date: 2024-11-08 21:25:16
Score: 1.5
Natty:
Report link

If this is an AWS instance and you are running a t2.micro / t3.micro (1GB RAM), then you can momentarily change the instance to a t2.small for 2GB. If it fails again, do t2.medium to get 4GB of RAM. Then run npm install. Once finished, change it back to t2.micro.

It will only cost a couple cents.

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

79171602

Date: 2024-11-08 21:25:16
Score: 0.5
Natty:
Report link

I was able to solve this issue by creating two separate @Published bools in the ObservedObject that each control sheet presentation in their respective View. These values are passed into the View which allow them to be manipulated outside of the View which resolved the deep linking issue I alluded to.

As @xTwisteDx mentioned, the issue stemmed from the binding being flipped to false on the redraw. By assigning a passed in @State property to the sheet binding, the binding was no longer getting flipped. Then all I had to do was create @Published triggers in the ObservedObject so I could turn them on when necessary in the deep linking class.

It's important to note that these two bools can never be on at the same time. So in setting one to true, the other must be set to false

As @workingdogsupportUkraine mentioned, it may not be correct to create a shared instance of the @ObservedObject within itself, but passing the object in to consecutive Views was not an option for me.

So the working code looks like this:

TabView:

struct TabView: View {
    @StateObject private var obsPresentation = ObsPresentation.shared
    
    var body: some View {
            ZStack {
                VStack {
                    TabView(selection: $obsPresentation.currentTab) {
                            if obsPresentation.conditionOne {
                                HealthView(showSheet: obsPresentation.tiggerSheet1)
                                    .tabItem {
                                        Label("Person 1 Health", systemImage: "heart")
                                    }
                                    .tag(obsPresentation.Tab.health1)
                            }
                            
                            if obsPresentation.conditionTwo {
                                HealthView(showSheet: obsPresentation.triggerSheet2)
                                    .tabItem {
                                        Label("Person 2 Health", systemImage: "heart")
                                    }
                                    .tag(obsPresentation.Tab.health2)
                            }
                    }
                }
            }
    }
}

HealthView:

struct HealthView: View {
    @State var showSheet: Bool
    
    var body: some View {
        VStack() {
            ScrollView {
                LazyVGrid() {
                    ForEach(...) { _ in
                        Button(action: {
                            showSheet = true
                        }) {
                            ... UI
                        }
                    }
                }
            }
        }
        .sheet(isPresented: $showSheet) {
            SheetView()
        }
    }
}

Observed Object:

public class ObsPresentation: ObservableObject {
    public static var shared = ObsPresentation()
    
    public enum Tab {
        case health1, health2
    }
    
    @Published public var currentTab: Tab = .health1 {
        didSet {
            switch tabSelection {
            case .health1:
                ...
            case .health2:
                ...
            default: break
            }
        }
    }
    
// These conditions are manipulated elsewhere
    @Published public var condition1 = true 
    @Published public var condition2 = true
    
    @Published var triggerSheet1 = false
    @Published var triggerSheet2 = false
}
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @xTwisteDx
  • User mentioned (0): @workingdogsupportUkraine
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: quinner

79171597

Date: 2024-11-08 21:24:16
Score: 2
Natty:
Report link

Install the plugin manually as follows: Download the plugin from the website https://plugins.jetbrains.com/plugin/9212-flutter/versions/stable Go to Android Studio- File- Settings - Plugins Then choose the plugin file from the disk

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

79171593

Date: 2024-11-08 21:23:15
Score: 4
Natty:
Report link

For me, the answer was that add->NewItem defaulted to the xamarin content page even though I have a Maui app. Choosing Maui->Xaml->ContentPage then filling in the name I want worked.

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user28204301

79171580

Date: 2024-11-08 21:18:14
Score: 0.5
Natty:
Report link

This can be caused by many issues.

Some of the answers are correct, but in in all the answers I never come cross of another obscure root cause and that is at the "Object Ownership" turning on "ACLs enabled".

This can happen, that you are working on shared AWS Account and that option to be turned on by less knowledgeable colleague.

And the data copied there was with a very different identity. And your role is not the "owner" and thus has zero access to object (it can see it, but can not download it).

In this case go:

Bucket > Permissions > Object Ownership > Press "Edit"

And select: "ACLs disabled (recommended)" instead of "ACLs enabled".

Like this:

ACLs disabled (recommended)

Either you have a hunch to check. Or you upload something and if you can download it (you being the owner), but you can not download other object then this could be (or it can be folder, prefix too policies, but you can check that too).

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

79171578

Date: 2024-11-08 21:18:14
Score: 2
Natty:
Report link

Rather than use the Webhook action, Discord supports the action to post directly in a channel.

You can use that to share your email in a Discord channel.

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Zapier Support

79171571

Date: 2024-11-08 21:14:13
Score: 3
Natty:
Report link

only way to create new items is to use start command... then copy it to desired part

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

79171569

Date: 2024-11-08 21:14:12
Score: 5
Natty: 4.5
Report link

Hmm...I have tried only_use_python_datetimes=True; alone and together with only_use_cftime_datetimes=False; still I get 'cftime._cftime.DatetimeGregorian' in return, istead of python DateTime. Windows, python 3.12, netCDF4 1.7.1.post2. (sorry - not sufficient reputation to comment).

Reasons:
  • Blacklisted phrase (1): to comment
  • RegEx Blacklisted phrase (1.5): reputation to comment
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user165736

79171563

Date: 2024-11-08 21:11:12
Score: 0.5
Natty:
Report link

A more scalable workaround can be done that is similar to one suggested by @MKa which involved modifying the dataframe values in R as a formula:

library(openxlsx)
df <- data.frame(A = c('Dog', '5', '7.04'), B = c('Cat', '12', '1.23'))
wb <- createWorkbook()
addWorksheet(wb, "Sheet2")

# Modify df vals to formula class
df$A <- ifelse(!is.na(as.numeric(df$A)), 
           df$A,
           paste0("=\"", df$A, "\""))
class(df$A) <- "formula"
df$B <- ifelse(!is.na(as.numeric(df$B)), 
           df$B,
           paste0("=\"", df$B, "\""))
class(df$B) <- "formula"

writeDataTable(wb, "Sheet2", df)
saveWorkbook(wb, 'excel_file.xlsx', overwrite = T)

Main caveat is issues reading the same file using openxlsx:

Formulae written using writeFormula to a Workbook object will not get picked up by read.xlsx(). This is because only the formula is written and left to be evaluated when the file is opened in Excel. Opening, saving and closing the file with Excel will resolve this.

There are solutions to read the file still using other libraries but may not be ideal:

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @MKa
  • Low reputation (1):
Posted by: Richard Gallardo

79171552

Date: 2024-11-08 21:08:11
Score: 0.5
Natty:
Report link

Ensure that your SecureStorage API usage is compatible with version 8. Changes in library updates often cause previous code to break. Check the changelog or documentation for migration steps from version 7 to 8 for SecureStorage.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Balraj Singh

79171543

Date: 2024-11-08 21:03:10
Score: 2
Natty:
Report link

I had same problem and fixed by making sure that tensorflow and keras versions are consistent. tensorflow==2.4.1 and keras==2.4.

https://stackoverflow.com/questions/73796400/error-no-module-named-tensorflow-keras

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jeremy Murray-Krezan

79171529

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

Doesn't look like widgets work differently for custom intents vs BIIs. Just add the <app-widget> element to your custom intent <capability> as described in that documentation. (I haven't tried it myself though)

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

79171528

Date: 2024-11-08 20:55:08
Score: 0.5
Natty:
Report link

Using just max-height and max-width works for me

div img{ 
   max-height: 100%;
   max-width: 100%;
}
Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mr. H

79171515

Date: 2024-11-08 20:50:07
Score: 1.5
Natty:
Report link

Docker and docker-compose are two separate packages, so most probably you have installed docker but not docker-compose

I'd suggest to start verifying if docker-compose is present in your system by executing:

docker compose version

it should replay with something like:

Docker Compose version v2.29.1-desktop.1

docker-compose.yml is just a config file to define all containers and all its configs, so in order to use it you should have previously installed docker-compose package in your system

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Nicolas Scoffio

79171509

Date: 2024-11-08 20:48:06
Score: 7.5
Natty: 7.5
Report link

Yes, But how can we SAVE photos taken in Blazor TO the device's photo gallery?

Reasons:
  • Blacklisted phrase (1): how can we
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Kirk Barrett

79171498

Date: 2024-11-08 20:44:03
Score: 10.5 🚩
Natty: 5
Report link

Did you resolve this or not yet? I am facing the same issue

Reasons:
  • RegEx Blacklisted phrase (3): Did you resolve this
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I am facing the same issue
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Arun

79171490

Date: 2024-11-08 20:41:02
Score: 3.5
Natty:
Report link

A fix was released in firebase-tools v13.24.1. See https://github.com/firebase/firebase-tools/releases/tag/v13.24.1 and https://github.com/firebase/firebase-tools/pull/7905. Upgrading to the latest version(or at least v13.4.1) should resolve this.

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

79171485

Date: 2024-11-08 20:39:01
Score: 1.5
Natty:
Report link

The releases of rascal 0.40.x have AST and M3 model support up to and including JLS 14.

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

79171469

Date: 2024-11-08 20:30:59
Score: 0.5
Natty:
Report link

The simplest solution is to give chatgpt your package.json and split your installs into single commands, and put them all into a .sh

Prompt: Make this into a .sh which does a single npm install for each. It must be the exact version

Reasons:
  • Whitelisted phrase (-1): solution is
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: S s

79171468

Date: 2024-11-08 20:30:59
Score: 1.5
Natty:
Report link

After extensive investigation, I discovered that the issue was due to the data type used. In Kotlin, the Int type has a 32-bit limit, which can represent values up to 2,147,483,647 (10 digits). However, the integer received from the server had 13 digits, which exceeded this limit.

The fix

I changed the data type from Int to Long (which supports up to 64 bits) in the response class. This solved the issue, and the client started processing the response successfully.

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Ángel Ugarte

79171465

Date: 2024-11-08 20:28:58
Score: 1
Natty:
Report link

You typed "python" and hit enter on the command line. You need to leave the Python environment typing

exit()

Once you do that, you can navigate in your command line and cd can be executed again. Good luck with your studying!

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

79171461

Date: 2024-11-08 20:28:58
Score: 1
Natty:
Report link

This issue typically happens if VS Code and Command Prompt are pointing to different Flutter SDK paths.

Check and Verify Flutter SDK in VS Code:

In VS Code, open the Command Palette (View > Command Palette), type "Flutter: Change SDK", and choose the correct Flutter path to match the version in CMD.

Update Environment Variables:

Ensure only the correct Flutter SDK path is in your system’s PATH. Remove if any duplicate or outdated paths found:

Confirm Flutter sdk Version:

Run flutter --version in both CMD and the VS Code terminal to verify they’re using the same SDK at both.

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

79171458

Date: 2024-11-08 20:26:58
Score: 1
Natty:
Report link

If Print "Hello World!."

 #include <stdio.h> //* this is header-File*
 
   void main(){
 
  printf("Hello World!.");
  
  return 0;
}

Saved file .c extention i.e Hello.c

gdb-online-compiler' go to run code.

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

79171447

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

numpy==1.20.3 is not supported in py-3.10 , numpy==1.22.0 is supported. Try install with parameters --no-cache-dir --no-deps if all dependencies already are installed correctly.

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

79171424

Date: 2024-11-08 20:14:55
Score: 3
Natty:
Report link

You can get FourCC of internal codec at dds_header[84] if DDSD_PIXELFORMAT && DDPF_FOURCC is set.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Илья Задорожко

79171421

Date: 2024-11-08 20:12:55
Score: 1.5
Natty:
Report link

Thanks to @Alex Craft answer: https://stackoverflow.com/a/78658715/3266845 please vote him up instead.

I noticed:

So I tried:

It could very well be me missing something, but I spent some hours trying different things and observing how imports resolve but could not make sense of it. I think the issue is occurring somewhere between my (a) monorepo setup (b) root tsconfig and package tsconfig extends (c) rootDir baseUrl incorrectly set up? (d) storybook-vite (?)

I think @Alex Craft is the most reasonable answer and it almost worked for me. I had to make some changes, shown below.

import { parse } from 'jsonc-parser';

export default defineConfig({
  ...
  resolve: {
    alias: getPathsFromTsConfig()
  },
  ...
});

function getPathsFromTsConfig() {
  const tsconfig = parse(fs.readFileSync('./tsconfig.json', 'utf-8'));
  const aliases = {};
  for (const [key, value] of Object.entries(tsconfig.compilerOptions.paths)) {
    const cleanKey = key.replace('/*', '');
    const cleanValue = value[0].replace('/*', '');
    const resolvedPath = path.resolve(__dirname, cleanValue);
    aliases[cleanKey] = resolvedPath;
  }
  return aliases;
}
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): did not work
  • Blacklisted phrase (1): stackoverflow
  • Whitelisted phrase (-1): worked for me
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @Alex
  • User mentioned (0): @Alex
Posted by: Kerry Johnson

79171415

Date: 2024-11-08 20:09:54
Score: 3.5
Natty:
Report link

As mentioned in this question: unknown at rule @tailwind css(unknownAtRules) tailwind error, you should just add a new line: Item: *.scss - Value: tailwindcss

That fixed it for me!

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

79171407

Date: 2024-11-08 20:05:53
Score: 2.5
Natty:
Report link

Python 3.13 is currently unsupported for pynput unfortunately. You can add a comment on the issue above, that you have the same problem, but until then, try an older Python version.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Me too answer (2.5): have the same problem
  • Single line (0.5):
  • High reputation (-1):
Posted by: Cow

79171403

Date: 2024-11-08 20:04:52
Score: 2
Natty:
Report link

Just use the small letter that's it... here is the example

const vendorStatusEnum = pgEnum("status", ["active", "suspended", "pending"]);

https://github.com/drizzle-team/drizzle-orm/issues/646#issuecomment-2465651364

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

79171400

Date: 2024-11-08 20:03:52
Score: 2
Natty:
Report link

Use this. It is very simple. One C/C++ file & header provides 8 functions:

https://sourceforge.net/projects/tinyfiledialogs/

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

79171386

Date: 2024-11-08 19:57:50
Score: 1
Natty:
Report link

I guess, the problem arises from proper inheritance and function visibility in your contract.

  1. Check your contract properly inherits from ERC721.
  2. Check the function visibility.

Hope it would be helpful. Thanks

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

79171385

Date: 2024-11-08 19:56:50
Score: 2
Natty:
Report link

Oh I think it's because I am in Windows OS.

I checked the milvus-lite readme and it says it only supports Ubuntu and MacOS. So, in windows os, the milvus-lite package won't be installed along with pymilvus.

FYI:

Milvus Lite currently supports the following environments:

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

79171383

Date: 2024-11-08 19:56:50
Score: 2
Natty:
Report link

Thanks to @Brad suggestions, I set up rsync on windows and ssh in my mac. Step by step instructions below:

  1. Install an SSH Server on Your Mac (if it’s not already enabled):
  1. Install rync
  2. Create rsync script in Windows. My final script looks something like this.

#!/bin/bash

# Define source and destination paths
SOURCE="/c/path/to/windowsdev/"  # Adjust this path to your specific source folder on Windows
DESTINATION="user@host:/path/to/macdev/"  # Use your Mac's username and host, and the correct path

# Run rsync to sync changes, excluding specific directories
rsync -avz --delete \
--exclude '.idea/' \
--exclude '.dart_tool/' \
--exclude 'build/' \
"$SOURCE" "$DESTINATION"

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Brad
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Robert

79171370

Date: 2024-11-08 19:49:49
Score: 2
Natty:
Report link

Identify Categories: List all the categories you need to manage or display.

Tagging System: Implement a tagging system where each task or item is tagged with a category.that makes to easier filter and find what needed you.

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

79171358

Date: 2024-11-08 19:44:47
Score: 5.5
Natty:
Report link

enter image description here

Download in Android Studio

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Stojan Gašić Brieva

79171354

Date: 2024-11-08 19:44:47
Score: 0.5
Natty:
Report link

Try changing...

formLayout.html('bottom', btn)

With:

formLayout.html('bottom', btn.getHTML())

The problem is probably happening because the formLayout.html() is using btn.toString()...

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

79171353

Date: 2024-11-08 19:44:47
Score: 1.5
Natty:
Report link

Have no idea why this is the case, but wrapping the window.require line in

if (typeof window !== 'undefined') {}

fixed it.

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

79171346

Date: 2024-11-08 19:40:45
Score: 5.5
Natty: 5.5
Report link

Any way to do this on MACOS excel that can't use MSXML?

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

79171345

Date: 2024-11-08 19:40:45
Score: 2
Natty:
Report link

below is the call equivalent of

gcloud auth application-default login
credentials_new = compute_engine.Credentials()
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: gbvikas

79171341

Date: 2024-11-08 19:38:45
Score: 3
Natty:
Report link

You need to manually convert that, Liquibase won't fix it for you.

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

79171336

Date: 2024-11-08 19:35:44
Score: 2
Natty:
Report link

As the file is inside /liquibase/lib , you don't need the --classpath parameter. Try removing it.

Why? you are copying the file inside liquibase/lib directory:

RUN cp /node-app/run-custom-command.jar /liquibase/lib/run-custom-command.jar

Liquibase automatically loads everything inside this directory to the classpath, you don't need to use classpath if the file is there. After that you are pointing to it again using --classpath (and I believe it should be --classpath=./lib/run-custom-command.jar ), so it may be causing some classloading issues as the file is being loaded twice ?

Reasons:
  • Blacklisted phrase (0.5): Why?
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Lautert

79171328

Date: 2024-11-08 19:32:43
Score: 1.5
Natty:
Report link

I can't fully explain why, but thanks to this issue reffering to this one , you need to print() explicitely your ggplot element by changing base with print(base) . It's seem to be an easy workaround. Those issues are old (2016-2018), I don't understand why it happen nowadays.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: VinceGreg

79171327

Date: 2024-11-08 19:32:43
Score: 3
Natty:
Report link

Using Angular with VS Code - having same issue with VS Code Version: 1.95.2 and Chrome Version 130.0.6723.117 - I know it was VS Code update and possibly Chrome update as well - not sure which one caused the issue but all worked fine before.

I tried everything suggested but could not make it work. The issue is with break points - if you remove/disable them Chrome starts but as soon as you put them back it hangs again.

The only way to be able to debug I found is to put "debugger;" statement in your code - if you use it instead of a break point the debugger stops on it same way it used to stop at a breakpoint.

Of course you can debug the code inside Chrome browser but it is a different story

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): having same issue
  • Low reputation (0.5):
Posted by: Pavel Popov

79171326

Date: 2024-11-08 19:32:41
Score: 7 🚩
Natty: 6.5
Report link

in the back of my mind, to build a DIY Book Scanner as well. I've seen many commercial models but they are all limited to A3 format (or extremely expensive). Did you manage to complete yours? Mind to share some details? Thank you!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • RegEx Blacklisted phrase (3): Did you manage to
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Federico

79171318

Date: 2024-11-08 19:28:40
Score: 0.5
Natty:
Report link

I'm still encountering the issue, which appears to stem from a third-party library. This external library was built with Webpack, while the project I'm using it in was built with Vite (both are React TypeScript projects), so unfortunately, I can't modify the library itself.

The error only occurs when I run the tests using npm run test:

"Automatic publicPath is not supported in this browser"

Any guidance on how to work around this conflict between Vite and Webpack in the testing environment would be greatly appreciated.

Reasons:
  • Blacklisted phrase (1): appreciated
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: PedroB

79171316

Date: 2024-11-08 19:27:39
Score: 3
Natty:
Report link

I'm risking some reputation here... But I'll gamble a little...

For short...

"Can a race condition occur after the user clicks the modal OK, between the callback (a) that sets the boolean, and the Promise callback (b) that tests it?"

Yes! It can. How to do it? Well... that's another question.

But, I want to remind that a race is something asynchronous that happens between promises. It's like "give me the result of the promise (in a set of them) that fulfills first".

Your example/explanation/details only points out one Promise. So where's the need for a race?

I'm guessing you have a submit event handler that shows the modal and sets the promise... Then you want the promise to await for the ok button effect on the modal? If so you can try something like this:

const form = document.querySelector('#myForm');
const modal = document.querySelector('#myModal');
const modalButton = modal.querySelector('#myOk');
const variable = document.querySelector('#myVar');

form.addEventListener('submit', submitEventListener);
modalButton.addEventListener('click', okEventListener);

function okEventListener ( event )
{
  variable.value =
  (
    (variable.value == 'true')
    ? 'false'
    : 'true'
  );
  
  modal.open = false;
  
  console.log('OK sets a new variable value:', variable.value);
  
  event.target.resolver(variable.value);
}

async function submitEventListener ( event )
{
  event.preventDefault();
  
  // Do ajax stuff here...
  
  let newPromise = new Promise
  (
    async ( resolve, reject ) =>
    {
      modalButton.resolver = value => resolve(value);
    }
  );
  
  modal.open = true;
  
  console.clear();
  console.log('Current variable value:', variable.value);
  
  // You can make any race here, including newPromise.
  console.log('Suppose that a race is running starting now.');
  
  // This will await for the user to click ok on the modal.
  await newPromise; // or await your race...
  
  // Then print something to the console...
  console.log("Awaited for the variable changed value:", variable.value);
}
dialog
{
  background-color: lightgray;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  margin: 0;
  padding: 0;
  border: 0 solid black;
}
<dialog id="myModal">
  <button id="myOk">OK</button>
</dialog>
<form method="dialog" action="about:blank" id="myForm">
  <label for="myVar">
    VARIABLE:
    <input type="text" id="myVar" name="myVar" value="true" disabled="disabled" />
  </label>
  <button id="openModal" type="submit">Open Modal</button>
</form>

PS.: As no code was exposed in the question, I made one out of my imagination as an example.

Reasons:
  • Blacklisted phrase (1): another question
  • RegEx Blacklisted phrase (1.5): reputation
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: KLASANGUI

79171313

Date: 2024-11-08 19:26:39
Score: 0.5
Natty:
Report link

This issue may be due to a misconfigured project path or an incorrectly set project directory in Android Studio.

Invalidate Cache and Restart:

Go to File > Invalidate Caches / Restart and select Invalidate and Restart. This forces Android Studio to clear its cache and might fix the directory issue.

Check Project Paths in Settings:

Open File > Settings > Build, Execution, Deployment > Build Tools > Gradle. Ensure that the Gradle user home path is set correctly. Delete .idea and .gradle Folders:

Close Android Studio.

In your project’s root directory, delete the .idea folder and the .gradle folder if they’re pointing to incorrect paths. Reopen Android Studio, and it should recreate these folders in the correct directory.

Re-import Project:

Close the project and go to File > Open to re-import it from the correct directory. This ensures Android Studio resets its internal paths.

If the issue persists, you may also want to check for any custom configurations or symlinks in your project setup that could be redirecting Android Studio to the wrong folder.

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

79171307

Date: 2024-11-08 19:23:38
Score: 1.5
Natty:
Report link

To access local variables you would either need to pass it directly into test() as a parameter or pass vars() into test() as a parameter. Essentially you need to use parameters, thats the only convenient method outside of actually finding the variable in memory and getting the value from there which is just annoying.

tl;dr use parameters

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

79171305

Date: 2024-11-08 19:22:37
Score: 0.5
Natty:
Report link

I don't know the root of the problem with VB not auto recognizing it's a date, but this sample should help you.

 Dim Date1 As DateTime = DateTime.ParseExact(dtrow(1).ToString(), "yyyy-MM-dd", 
        System.Globalization.DateTimeFormatInfo.InvariantInfo)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: joaocarlosib

79171291

Date: 2024-11-08 19:17:36
Score: 1
Natty:
Report link

I know that this question is very old but I like to contribute. I had the exact situation described by Anatoly Bugakov, checking all 3 points. However, my task was working fine. What happened to fix was something totally unexpected, I simply disabled the "Read only root file system" checkbox in the container definition and redeployed. Like magic, it worked.

Reasons:
  • Whitelisted phrase (-1): it worked
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Fabio Urquiza

79171290

Date: 2024-11-08 19:17:36
Score: 2
Natty:
Report link

string FactorImagename = factor.FactorImage;

if (System.IO.File.Exists(Request.MapPath("~/Images/Factor/" + FactorImagename))) { System.IO.File.Copy(HttpContext.Server.MapPath("~/Images/Factor/") + FactorImagename, HttpContext.Server.MapPath("~/Images/Account/") + acDocument.Img, true); }

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

79171287

Date: 2024-11-08 19:15:36
Score: 1.5
Natty:
Report link

select * from (select ve.event_date, vc.prim_key from vol_att va inner join vol_evn ve on va.event_fkey = ve.prim_key left join vol_con vc on va.contact_fkey = vc.prim_key where va.attendance_type is not null ) pivot ( count(distinct prim_key) for event_date in ( to_date('2023-03-30', 'yyyy-mm-dd') Mar_30_2023, to_date('2023-04-18', 'yyyy-mm-dd') Apr_18_2023 ) );

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Haron gamel