79179610

Date: 2024-11-12 02:26:27
Score: 1
Natty:
Report link

I highly recommend watching a Godot Engine video from the Brackeys YouTube channel. Brackeys has a unique way of explaining concepts that makes it easier to understand game development. To get to the specific content you’re looking for, you can skip ahead to the part titled "Dying 1.0." In this segment, he walks you through the script he has written for that particular project.

I found his explanations to be helpful, and the script he demonstrated worked perfectly when I tried it out in my own project. It’s an excellent resource for anyone looking to improve their skills in game development using Godot. Plus, the community around Brackeys is very supportive, so if you have any questions, you can likely find answers or ask for help in the comments section or on their Discord. Happy coding!

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

79179605

Date: 2024-11-12 02:21:26
Score: 3.5
Natty:
Report link

It turns out the issue was due to the @Data annotation, which was causing an infinite loop in the background, likely due to the toString, hashCode, and equals methods —or possibly just the toString method alone; I'm not entirely sure.

To resolve the issue, I removed the @Data annotation and implemented the getter and setter methods manually, which fixed the problem.

in addition, from my research, it appears that using a bulk remove method is more efficient in many-to-many relationships from a performance standpoint. Normally, Hibernate sends multiple queries for the deletion process, which can lead to performance issues. Therefore, it’s recommended to manually write a single delete query to improve performance in these cases.

Reasons:
  • Contains signature (1):
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @Data
  • User mentioned (0): @Data
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: can

79179595

Date: 2024-11-12 02:09:24
Score: 2.5
Natty:
Report link

Just added this one line in Docker file and it fixed the error

ENV JDK_JAVA_OPTIONS="--add-opens=java.base/sun.nio.ch=ALL-UNNAMED"

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

79179591

Date: 2024-11-12 02:07:23
Score: 1
Natty:
Report link

I suggest you to use Iconify

This lib has all possible icons, a good integration with MUI and the able to import icons dinamicly, like:

import { Icon } from '@iconify/react';

<Icon icon='mdi:edit'/>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Wallison Felipe

79179581

Date: 2024-11-12 02:00:21
Score: 1
Natty:
Report link

let install via package manager like

npm i -D @trunkio/launcher

so you can run trunk via npx trunk

npx trunk install
npx trunk check
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: John Martin

79179575

Date: 2024-11-12 01:56:20
Score: 0.5
Natty:
Report link

when you use data['payee(name)'] it will define data type as dynamic in case it can't find value it that key and will return null (in this case your key is "payee(name)") in this case you can define type for value that return from future like this

FutureBuilder<File>( // change File to type you want ex. model String etc.
  future: // your future must return value File like <File>,
  builder: (context, snapshot) {
 // return widget here
}
Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): when you useit
  • Low reputation (0.5):
Posted by: Lightn1ng

79179574

Date: 2024-11-12 01:54:20
Score: 2
Natty:
Report link

As https://github.com/pytorch/pytorch/issues/2575 said That's also why changing import order can fix things, because if you change it in a way that loads all your "static TLS" libraries first, then future "dynamic TLS" libraries will resize the DTV like normal, I just insert import cv2 at the 1st line of https://github.com/rupeshs/fastsdcpu/blob/main/src/app.py and solve the issue.

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Li Zheng

79179561

Date: 2024-11-12 01:42:17
Score: 2
Natty:
Report link

Probably the easiest way to implement your problem would be by using OR-Tools CP-SAT solver. I wouldn't worry about amount of constrains. This solver handles large-scale problems with ease.

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

79179551

Date: 2024-11-12 01:34:16
Score: 1.5
Natty:
Report link

Version 2 of ESP-NOW allows 1490 bytes.
Change your library and re-compile.

A little more - V2 will automatically adjust power and Tx rate, OR you can over-ride this and choose a slow, high power connection if plenty of power is available, or choose fast, low power if battery operation from nearby. Or whatever suits your project.

bye

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

79179544

Date: 2024-11-12 01:30:15
Score: 3.5
Natty:
Report link

I was able to fix it by uninstalling Xcode and installing it again.

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

79179540

Date: 2024-11-12 01:20:13
Score: 1
Natty:
Report link

I solved this. It involved reinstalling the following using pip:

langchain openai langchain-openai langchain-community and Langchainhub

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

79179534

Date: 2024-11-12 01:17:12
Score: 2
Natty:
Report link

The variable should not be wrapped in quote '.

So it should be

sql`lower(${PaymentMethodsTable.name}) = ${name}`

Source: https://github.com/drizzle-team/drizzle-orm/issues/1140#issuecomment-1722587563

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

79179531

Date: 2024-11-12 01:15:12
Score: 2
Natty:
Report link

I am using React Vite. Adding declare module "*.png"; for my .png imports to my vite-env.d.ts inside ./src resolved my issue.

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

79179522

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

I don't see a key of payee(name) in your data. Just payee_id.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-2):
Posted by: Randal Schwartz

79179518

Date: 2024-11-12 01:04:10
Score: 1
Natty:
Report link

I had the same issue. This fixed it for me - export VAGRANT_DISABLE_STRICT_DEPENDENCY_ENFORCEMENT=1 There is going to be a new version with the logger dependency issue fixed but this gets around it in the meantime.

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Bill Brown

79179510

Date: 2024-11-12 00:55:07
Score: 1
Natty:
Report link

you can try to create a column

Column =
MAXX (
    FILTER (
        'Table 2',
        'Table 1'[priority] >= 'Table 2'[fr_priority]
            && 'Table 1'[priority] <= 'Table 2'[to_priority]
    ),
    'Table 2'[descr]
)

enter image description here

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

79179491

Date: 2024-11-12 00:36:03
Score: 4.5
Natty:
Report link

How safe are extensions in Visual Studio Code?

It's hard to quantify precisely. Anecdotally, the trend over the last 3 to 5 years is moving towards "less safe". (see https://www.bleepingcomputer.com/news/microsoft/vscode-marketplace-can-be-abused-to-host-malicious-extensions/)


Can extensions introduce malware?

Absolutely. It's code someone else wrote, executing on your computer.


Is it safe to install any extension?

No.

Nein. Non. Neel. Nei. Nie. Nej. (Darn. Can't think of any more ways to say no.)


Typical ways extensions are a security threat:

The real question is, how do you avoid problems with extensions?

Personally, my approach to this is generally to be skeptical by default. If I didn't write the code in question, I want to know where it came from. If where it came from looks odd to me, then I try to find an alternative backed by a trustworthy community or I decide to go without that extension.

If I need a way to do some research on an extension I am interested in, I recently found this: https://www.extensiontotal.com/. Not every extension has coverage, but it does get me into the headspace of "find out if this is trustworthy".

I also try to remember to use "Lateral Reading" techniques (https://www.openmindsfoundation.org/blog/the-power-of-lateral-reading/).

For me, this type of thinking applies to code just as much as it applies to other forms of content found online.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (1): how do you
  • Blacklisted phrase (1): I want to know
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): How
  • Low reputation (0.5):
Posted by: Sam Heuck

79179489

Date: 2024-11-12 00:34:02
Score: 3.5
Natty:
Report link

This is corrected with the latest SQL CU.

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

79179488

Date: 2024-11-12 00:33:02
Score: 2
Natty:
Report link

on WebApiConfig > Register Method

public static void Register(HttpConfiguration config) . . . config.Formatters.JsonFormatter.SerializerSettings = new JsonSerializerSettings { DateFormatString = "dd/MM/yyyy", Culture = new CultureInfo("pt-BR") };

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

79179484

Date: 2024-11-12 00:33:02
Score: 3.5
Natty:
Report link

I know this was an old question, But for anyone come here because they are having the same issue, I am adding my solution here.

It doesn't even have to be at the bottom, but I had some pages with an Entry field and a couple of buttons which had the same issue (Button clicks won't respond on iOS devices and sometimes even you can't type anything on Entry fields)). Tried lot of things but nothing worked (VS for Mac). The only solution worked for me is to replace the VerticalStackLayout with a GridView.

May not be a solution for everyone, but if it fits you, works perfectly.

Reasons:
  • Blacklisted phrase (1): but nothing work
  • Whitelisted phrase (-1): worked for me
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): having the same issue
  • Low reputation (1):
Posted by: Jay

79179470

Date: 2024-11-12 00:20:00
Score: 3.5
Natty:
Report link

you can change the number of y as shown in your picture and that will fix it

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

79179469

Date: 2024-11-12 00:18:59
Score: 3.5
Natty:
Report link

If you want to programtically draw shapes, check out react native skia https://shopify.github.io/react-native-skia/docs/getting-started/installation/

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

79179464

Date: 2024-11-12 00:16:59
Score: 1
Natty:
Report link

For Liquid syntax error, you may try to add {% raw %}...{% endraw %} Like below, this is to skip Liquid parsing:

[Go to Page One]({{ site.baseurl }}{% raw %}/Page One{% endraw %})
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ved Prakash

79179460

Date: 2024-11-12 00:15:59
Score: 0.5
Natty:
Report link

Snapshot command still creates another table, thus another model that cannot be named the same. Your snapshot should be named differently as in the example from dbt - https://docs.getdbt.com/docs/build/snapshots#add-a-snapshot-to-your-project. Hope this helps

Note: despite what dbt is saying, snapshots will not work for a lot of scd2 cases, they quite literally just capture the snapshot, not the full history.

Reasons:
  • Whitelisted phrase (-1): Hope this helps
  • No code block (0.5):
  • Low reputation (1):
Posted by: gurman99

79179453

Date: 2024-11-12 00:11:58
Score: 2.5
Natty:
Report link

Thanks. Yes it needs another mechanism. I found out that sleep() refreshes the page so the image disappears after the sleep delay. My not-so-elegant solution is to have an iframe that calls another script with just the unlink in it. It works.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): solution is
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Denis Hamelin

79179432

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

I got this error because of this line: <button type="button" id="button" onclick="Continue(); document.body.style.cursor = "wait"; this.disabled = true;"> Continue </button>

Note the double-quotes around wait. Changing the double-quotes around wait to single-quotes fixed it.

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

79179422

Date: 2024-11-11 23:51:55
Score: 1.5
Natty:
Report link

I was able to fix it by specifying the PKG_CONFIG_PATH

So adding this line ended up resolving it

ENV PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig

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

79179421

Date: 2024-11-11 23:51:55
Score: 3.5
Natty:
Report link

Vercel has documentation last updated on May 1, 2024 that says IT IS HIPPA complaint.

https://vercel.com/guides/is-vercel-hipaa-compliant

Their security page also gives an overview

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

79179394

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

I think your on the right track, you could read through https://tkdodo.eu/blog/using-web-sockets-with-react-query and see if you could improve it. Probably I would just set up the central useEffect subscription to invalidate the queries we need instead of faffing about with the functions in appState.

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

79179384

Date: 2024-11-11 23:20:47
Score: 9 🚩
Natty: 5.5
Report link

How to get player id. Could someone help?

Reasons:
  • RegEx Blacklisted phrase (3): Could someone help
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): How to
  • Low reputation (1):
Posted by: Nagesh B

79179381

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

I was migrating to Spring 6 and Java 17, compiling under Java 17. My solution was to create a special CharacterEscapeHandler class and pass it via properties to the marshaller & unmarshaller. The default MinimumEscapeHandler wasn't handling '\t' character translation only '\r\n' was working correctly. It took me a while to track down this handler. My needs were special because my attribute value contained '\t'. This may not be needed if you don't anticipate to handle this character.

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

79179374

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

I understood how to implement bold or italic fonts but I do not understand how to implement a condensed one for example

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

79179373

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

Ended up having invisible elements in the vertical scroll container with scroll-snaps.

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

79179366

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

I was able to get this to work thanks to the help above. First, I bind all lists into one long dataframe (they have the same columns). Then,I grouped by the group (CNN) and did the stats.

library(dplyr)
library(tidyverse)
 
BindSUB <- bind_rows(mylist)

BindSUB %>%
  group_by(CNNgroup) %>%
   summarise(value_mean = mean(CS, na.rm = TRUE), 
           lower_bound = quantile(CS, c(.025), na.rm = TRUE),
           upper_bound = quantile(CS, .975),na.rm = TRUE)
Reasons:
  • Blacklisted phrase (0.5): thanks
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: KNN

79179364

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

You've probably figured something out by now, but in case you haven't you might want to change "Selection behavior" on you "SomeTaskThatNestedStatesRequire" state to "Try Enter". That way execution won't automatically jump into its child states. And then you'll need to make a transition pointing to that nested "Wait" state when "SomeTaskThatNestedStatesRequire" does succeed.

Btw, in case you decide to go a global task route, you don't need to execute that logic every tick. One way to approach it is to use a combination of "Do Once" node followed by "Delay" node, which then resets the "Do Once" node

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

79179354

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

You need to set your log4j properties to send logs to STDOUT

Something along the lines as below:

log4j.rootLogger=ERROR, stdout

log4j.appender.STDOUT=org.apache.log4j.ConsoleAppender
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jason Smith

79179352

Date: 2024-11-11 23:02:41
Score: 12 🚩
Natty: 4.5
Report link

did u fix this problem? same issue

Reasons:
  • RegEx Blacklisted phrase (3): did u fix this problem
  • RegEx Blacklisted phrase (1.5): fix this problem?
  • RegEx Blacklisted phrase (1): same issue
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): did
  • Low reputation (1):
Posted by: Беник Галстян

79179349

Date: 2024-11-11 22:59:40
Score: 2
Natty:
Report link

I got this failure if I have Firebase-iOS-sdk or GoogleSignIn package already added.

If you have those package added, remove them first, FirebaseUI-iOS have them included.

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

79179344

Date: 2024-11-11 22:55:39
Score: 4.5
Natty:
Report link

Both change it into int and adding bound check doesn't work for me.
But this work for me:
index &= 134217727u;
One limitation is 134217727u has to be power of 2 minus 1.

Reasons:
  • RegEx Blacklisted phrase (2): doesn't work for me
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: diwulechao

79179333

Date: 2024-11-11 22:43:36
Score: 3.5
Natty:
Report link

Using qt and gnuplot 6.0 making lw a very small value, say .1, results in no line being drawn. This does not work with x11.

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

79179318

Date: 2024-11-11 22:34:35
Score: 0.5
Natty:
Report link

You are setting the player camera to enabled every frame. You should only change it when you start or end hiding. Your locker and your table are running every frame, and it seems that you locker is running afterwards, so it's overriding any changes that the table made.

Also, is there any reason why you aren't just using a single script for both?

This seems much simpler anyways:

public class HidingPlace : MonoBehaviour
{
    [SerializeField] private Camera hidingCamera;
    [SerializeField] private GameObject player;
    [SerializeField] private string playerTag = "Player";
    
    private Camera playerCamera; // Could also expose this with [SerializeField]
    private bool canHide;
    private bool isHiding;

    private void Awake()
    {
        // We are assuming the camera is a child of the player object
        playerCamera = player.GetComponentInChildren<Camera>();
        hidingCamera.enabled = false;
    }
    
    private void OnTriggerEnter(Collider collider)
    {
        // Only change canHide when we are walking around, not when already hiding
        if (isHiding) return;
        
        if (collider.CompareTag(playerTag))
        {
            canHide = true;
        }
    }
    
    private void OnTriggerExit(Collider collider)
    {
        // Only change canHide when we are walking around, not when already hiding
        if (isHiding) return;
        
        if (collider.CompareTag(playerTag))
        {
            canHide = false;
        }
    }
    
    private void Update()
    {
        if (Input.GetKeyDown(KeyCode.E) && canHide)
        {
            hiding = !hiding;
            if (hiding)
            {
                player.SetActive(false);
                hidingCamera.enabled = true;
            }
            else
            {
                player.SetActive(true);
                hidingCamera.enabled = false;
            }
        }
    }
}
Reasons:
  • Blacklisted phrase (1): is there any
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Alex Davies

79179317

Date: 2024-11-11 22:34:33
Score: 7 🚩
Natty: 4
Report link

Could not resolve com.google.jimfs:jimfs:1.1

ALGUEM ENCONTROU SOLUÇÃO PARA ESSE PROBLEMA?

ANDROID STUDIO MERDA

Reasons:
  • RegEx Blacklisted phrase (2): ENCONTROU
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: SILVIO

79179314

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

Until fixed, try to use pandas or SQLAlchemy equivalent functionality.

For my use case, pd.read_sql() did the trick.

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

79179311

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

I would strongly suggest you contact Capitalware Support.

It appears you have configured & are using the client-side security exit for MQ Authenticate User Security Exit (MQAUSX) and I presume that the z/OS MQAUSX server-side security exit is fully configured.

Application in production located on the same host as MQ and uses binding mode (no password, only user ID which is MVS user ID)

That comment does not make any sense. So, you are running the Java application on z/OS in the same LPAR as the z/OS queue manager? Also, in Bindings mode, the MQ client library does not use a channel, hence, a channel security exit would not be invoked.

If I intentionally use the wrong user ID or password I get a different error: Caused by: com.ibm.mq.jmqi.JmqiException: CC=2;RC=2009;AMQ9204

The reason code of 2009 means that the MQAUSX server-side security exit shutdown the channel. i.e. Failed authenication.

You said that you switched from using MQ v8.0 to the latest MQ CSD 9.4.1.0 but IBM has made changes to the underlining handling of UserId sent between the client-side to the server-side queue manager. I'm willing to bet you are getting burnt by this.

Caused by: com.ibm.mq.MQException: JMSCMQ0001: IBM MQ call failed with compcode '2' ('MQCC_FAILED') reason '2035' ('MQRC_NOT_AUTHORIZED').

It appears that your application's UserId & Password were successfully authenticated by the MQAUSX server-side security exit but failed on RACF/ACF2 authorization for "connecting to the queue manager" or "opening a queue" because the UserId being used for authorization is mismatched.

Ask your z/OS MQAdmin to check the MQAUSX log file to see what MQAUSX outputted It will have a detailed output for the authenticated UserId and the UserId used for accessing the z/OS queue manager. Also, ask the z/OS MQAdmin if the queue manager's log file recorded the RC of 2035 & what was in the error message.

Finally, did you switch channel names to connect to the z/OS queue manager? If so, what value is in the MCAUSER field of the old channel and new channel?

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: Roger

79179308

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

To match what you see on screen with the plot panel or zoom, set the dpi to the ppi of your monitor, and adjust the size accordingly.

I want an image that is 107x50mm at 300 dpi, which is

> c(107,50)/25.5*300
[1] 1258.8235  588.2353

in pixels

to get that to match what I see in my plot zoom (with window scaled to desired size), I need to use

ggsave(file="myPath/plotName.jpg", plot=tmpPlotsGrouped, scale=1,
       units="px", width=1259, height=588, dpi=105)
Reasons:
  • Blacklisted phrase (0.5): I need
  • RegEx Blacklisted phrase (1): I want
  • Has code block (-0.5):
Posted by: Michiel Duvekot

79179303

Date: 2024-11-11 22:23:30
Score: 1
Natty:
Report link

Thanks everyone for their assistance. I changed the WHERE query to project id and all is good now.

if (isset($_GET['project_id'])) {
$id= intval($_GET['project_id']); // Sanitize input

// Query to get the projects info

$projects = $wpdb->get_results($wpdb->prepare("SELECT * FROM 'table WHERE project_ind  = %d", $id));
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Ian Young

79179301

Date: 2024-11-11 22:21:30
Score: 4
Natty:
Report link

So as @Quikler pointed out on the comment, I needed to use System.Data.SQLite.Core, in my case, more directly [Stub.System.Data.SQLite.Core.NetFramework][1]

Just wanted to point it out that is counter intuitive, since a lot of project use the "Core" keyword to .NetCore Libraries.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @Quikler
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Matheus Vieira

79179297

Date: 2024-11-11 22:19:29
Score: 4
Natty: 4
Report link

markercluster.js code

https://cdn.jsdelivr.net/gh/googlemaps/js-marker-clusterer@gh-pages/src/markerclusterer.js

Images m1 to m5:

https://github.com/googlearchive/js-marker-clusterer/tree/gh-pages/images

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

79179284

Date: 2024-11-11 22:16:28
Score: 2.5
Natty:
Report link

If I understood you correctly, you basically want your text to behave as a normal object to make it part of the sprite and not be a Ui object? I have a solution for you.

It's will looks like that when the circle order in layer is higert then the capsule and the text is child of the capsule.

enter image description here

I would appreciate it if you marked the answer if it solved your problem or let me know if this was not your intention.

Reasons:
  • Blacklisted phrase (1.5): would appreciate
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Noam Riahi

79179283

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

I was losing my mind over this for days! It looks like there is a bug where if the osm.pbf is too big (too many nodes) to successfully build a network, it doesn't give an error message -- it just returns "the network.dat file has been successfully created" anyway.

When I ran the same code with an osm.pbf with few enough nodes (in my case I clipped my state OSM to a bounding box around one city), the network.dat file showed up in my working directory.

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

79179280

Date: 2024-11-11 22:14:28
Score: 0.5
Natty:
Report link

Years late, I know, but running sudo su - to log into the root environment (and then running your commands), rather than just running sudo <command> (which runs the command as root, but in your environment), fixed this for me.

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

79179279

Date: 2024-11-11 22:14:28
Score: 0.5
Natty:
Report link

Thanks Marco. In my version of Tensorflow (2.16.2), the metrics param needs to be a list:

model.compile(
    loss = tf.keras.losses.BinaryCrossentropy(),
    optimizer = tf.keras.optimizers.Adam(learning_rate=0.01),
    metrics=['accuracy'])
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (0.5):
  • Has code block (-0.5):
Posted by: Patrice Gagnon

79179278

Date: 2024-11-11 22:14:28
Score: 2.5
Natty:
Report link

After some more searching, I found that I have to create an environment variable PYTHONPATH to point to the folder that has the module. Unfortunately, I cannot just point to the root module, but must each time, edit the variable and append a new folder for each module, to the path.

screenshot

folders

Reasons:
  • Blacklisted phrase (0.5): I cannot
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: likejudo

79179276

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

Two things to note, although I have not validated whether they will fix your problem:

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

79179273

Date: 2024-11-11 22:13:27
Score: 2.5
Natty:
Report link

I am unsure if it is possible in the inspector itself but I was able to work around the issue by right clicking on the HTML element in the inspector and choose Edit as HTML. Then I copied all of the HTML and pasted it into my preferred IDE where a am able to search for the exact expression I was looking for, including the double quotes.

Reasons:
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user28247983

79179259

Date: 2024-11-11 22:04:26
Score: 2
Natty:
Report link

DELETE THE CACHE FOLDER AND RESTART YOUR TERMINAL/POWERSHELL

C:\Users.gradle\caches

If you got a Linux: /home/ your username /.gradle/caches

If you've got a Mac: /Users/ your username /.gradle/caches

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

79179254

Date: 2024-11-11 22:03:26
Score: 2
Natty:
Report link

Answering my own question: this is called Attestation.

On iOS, in Swift and Objective C it's called DCAppAttestService:

https://developer.apple.com/documentation/devicecheck/establishing-your-app-s-integrity

Google has SafetyNet attestation API, but they're deprecating it:

https://developer.android.com/privacy-and-security/safetynet/deprecation-timeline

On the Web, you also have webauth attestation sometimes available, but they are for authenticators, which may or may not be the phone itself. Regardless, it does sort of guarantee scarcity:

https://developer.mozilla.org/en-US/docs/Web/API/Web_Authentication_API/Attestation_and_Assertion

Reasons:
  • Probably link only (1):
  • No code block (0.5):
  • Self-answer (0.5):
Posted by: Gregory Magarshak

79179238

Date: 2024-11-11 21:57:24
Score: 0.5
Natty:
Report link

Register WMI DLL files: Run the commands in cmd.

regsvr32 %windir%\system32\wbem\wmidcprv.dll
regsvr32 %windir%\system32\wbem\wbemprox.dll

Register MOF (Management Object Format) files:

Run the following commands to ensure that MOF files are correctly registered:

mofcomp %windir%\system32\wbem\wmiprvsd.mof
mofcomp %windir%\system32\wbem\cimwin32.mof

In my case, one of the files was missing and I followed the next step:

Restore Corrupted System Files with DISM and SFC Since the MOF file is missing, it could indicate that other important files are also missing or corrupted. Let's try to use SFC and DISM tools to fix the system:

Run SFC (System File Checker):

In Command Prompt as Administrator, run the following command:

sfc /scannow

After finishing, just restart the computer, but first run:

netsh advfirewall firewall add rule name="Allow WMI" protocol=TCP dir=in localport=135,49152-65535 action=allow

To open WMI ports.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Leonel Sebastião

79179228

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

I have used the above code, and I am able to export the file as a pipe delimited file. However, I have spaces between the pipe if there is no value. How to I remove the spaces??? With the TSQL export, I see - Sql

With a MS Access - I see MS_Access

Reasons:
  • Blacklisted phrase (1): ???
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Audi

79179218

Date: 2024-11-11 21:47:22
Score: 1.5
Natty:
Report link

Mostly in a Macbook m series chip you are going to face this problems if you encounter this error that mean you need to increase your stack size

for that type 'ulimit -n' on you bash or zsh terminal

and then type 'ulimit -n 4096' for temporary increase the limit.

or To make it permanent, you can add the following line to your ~/.bash_profile or ~/.zshrc.

Make sure to restart your system

If still the problem if there delete node module and reinstall it.

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

79179216

Date: 2024-11-11 21:46:21
Score: 2.5
Natty:
Report link

Setting "Include Package JSON Auto Imports" to "On" instead of "auto" worked for me.

Not exactly sure why it improves performance, so if anyone knows, I would love an explanation.

Source: https://github.com/microsoft/TypeScript/issues/58709#issuecomment-2153332198

config

Reasons:
  • Blacklisted phrase (1): anyone knows
  • Whitelisted phrase (-1): worked for me
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: BryceLarkin

79179207

Date: 2024-11-11 21:43:20
Score: 0.5
Natty:
Report link

Maybe something like this: vuetify-play

  <template>
  <v-app>
    <v-container>
      <v-date-picker></v-date-picker>
    </v-container>
  </v-app>
</template>

<style>
  .v-date-picker-years .v-btn__content::after {
    content: ' Test';
  }
</style>

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

79179198

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

After @hardillb answer, I realized that, indeed, the client was not authorized to subscribe to that topic, but another connection issue was happening. After a couple of attempts to make the code work, finally I came up with a solution that was capable of connecting to the IoT Core MQTT broker instance, publishing and subscribing to that topic, and receiving the message. This is the working code.

import (
    "bufio"
    "crypto/ecdsa"
    "crypto/rsa"
    "crypto/tls"
    "crypto/x509"
    "encoding/pem"
    "fmt"
    "log"
    "net"
    "net/http"
    "net/url"
    "time"

    "golang.org/x/net/proxy"

    "os"
    "os/signal"
    "syscall"

    MQTT "github.com/eclipse/paho.mqtt.golang"
)

type TlsCerts struct {
    IotPrivateKey     string
    IotCertificatePem string
    CaCertificatePem  string
    AlnpProtocols     []string
}

type Config struct {
    ClientId  string
    BrokerUrl string
    TlsCerts  TlsCerts
}

type httpProxy struct {
    host     string
    haveAuth bool
    username string
    password string
    forward  proxy.Dialer
}

func parseTlsConfig(tlsCerts TlsCerts) *tls.Config {
    if tlsCerts.IotPrivateKey == "" || tlsCerts.IotCertificatePem == "" {
        return nil
    }

    cert := parseTlsCertificates(tlsCerts)

    caCertPool := x509.NewCertPool()
    caCertPool.AppendCertsFromPEM([]byte(AmazonRootCA1Cert))

    return &tls.Config{
        RootCAs:            caCertPool,
        Certificates:       []tls.Certificate{cert},
        InsecureSkipVerify: false,
        NextProtos:         tlsCerts.AlnpProtocols,
        ServerName:         "iot.customdomain.io",
    }
}

func parseTlsCertificates(
    tlsCerts TlsCerts,
) tls.Certificate {
    block, _ := pem.Decode([]byte(tlsCerts.IotPrivateKey))
    if block == nil {

        log.Panic("Failed to parse private key")

    }

    var key interface{}
    var err error

    key, err = x509.ParsePKCS1PrivateKey(block.Bytes)
    if err != nil {
        key, err = x509.ParsePKCS8PrivateKey(block.Bytes)
        if err != nil {
            log.Panicf("Failed to parse private key: %v", err)
        }

        switch k := key.(type) {
        case *rsa.PrivateKey:
            key = k
        case *ecdsa.PrivateKey:
            key = k
        default:
            log.Panicf("Unsupported private key type: %T", key)
        }
    }

    block, _ = pem.Decode([]byte(tlsCerts.IotCertificatePem))
    if block == nil {
        log.Panic("Failed to parse certificate")
    }
    cert, err := x509.ParseCertificate(block.Bytes)
    if err != nil {
        log.Panicf("Failed to parse certificate: %v", err)
    }

    return tls.Certificate{
        PrivateKey:  key,
        Certificate: [][]byte{cert.Raw},
    }
}

func (s httpProxy) String() string {
    return fmt.Sprintf("HTTP proxy dialer for %s", s.host)
}

func newHTTPProxy(uri *url.URL, forward proxy.Dialer) (proxy.Dialer, error) {
    s := new(httpProxy)
    s.host = uri.Host
    s.forward = forward
    if uri.User != nil {
        s.haveAuth = true
        s.username = uri.User.Username()
        s.password, _ = uri.User.Password()
    }

    return s, nil
}

func (s *httpProxy) Dial(_, addr string) (net.Conn, error) {
    reqURL := url.URL{
        Scheme: "https",
        Host:   addr,
    }

    req, err := http.NewRequest("CONNECT", reqURL.String(), nil)
    if err != nil {
        return nil, err
    }
    req.Close = false
    if s.haveAuth {
        req.SetBasicAuth(s.username, s.password)
    }
    req.Header.Set("User-Agent", "paho.mqtt")

    // Dial and create the client connection.
    c, err := s.forward.Dial("tcp", s.host)
    if err != nil {
        return nil, err
    }

    err = req.Write(c)
    if err != nil {
        _ = c.Close()
        return nil, err
    }

    resp, err := http.ReadResponse(bufio.NewReader(c), req)
    if err != nil {
        _ = c.Close()
        return nil, err
    }
    _ = resp.Body.Close()
    if resp.StatusCode != http.StatusOK {
        _ = c.Close()
        return nil, fmt.Errorf("proxied connection returned an error: %v", resp.Status)
    }
    TlsCerts := TlsCerts{
        IotPrivateKey:     IotPrivateKey,
        IotCertificatePem: IotCertificatePem,
        AlnpProtocols:     []string{"mqtt", "x-amzn-mqtt-ca"},
    }
    tlsConfig := parseTlsConfig(TlsCerts)

    tlsConn := tls.Client(c, tlsConfig)

    return tlsConn, nil
}

func init() {
    // Pre-register custom HTTP proxy dialers for use with proxy.FromEnvironment
    proxy.RegisterDialerType("http", newHTTPProxy)
    proxy.RegisterDialerType("https", newHTTPProxy)
}

func onMessageReceived(client MQTT.Client, message MQTT.Message) {
    fmt.Printf("Received message on topic: %s\n", message.Topic())
    fmt.Printf("Message: %s\n", message.Payload())
}

var messagePubHandler MQTT.MessageHandler = func(client MQTT.Client, msg MQTT.Message) {
    fmt.Println("Received message on topic: " + msg.Topic())
    ProcessMessage(msg.Payload())
}

func ProcessMessage(payload []byte) {
    fmt.Println(string(payload))
}

func MainFunc() {
    MQTT.DEBUG = log.New(os.Stdout, "", 0)
    MQTT.ERROR = log.New(os.Stderr, "", 0)

    c := make(chan os.Signal, 1)
    signal.Notify(c, os.Interrupt, syscall.SIGTERM)

    server := "https://iot.customdomain.io:443"
    topic := "right/topic/now"
    qos := 0
    clientid := "my-client-id"

    os.Setenv("ALL_PROXY", fmt.Sprintf("http://localhost:%s", "3128"))
    defer os.Unsetenv("ALL_PROXY")

    connOpts := MQTT.NewClientOptions().AddBroker(server).
        SetClientID(clientid).
        SetCleanSession(true).
        SetProtocolVersion(4)

    connOpts.OnConnect = func(c MQTT.Client) {
        if token := c.Subscribe(topic, byte(qos), onMessageReceived); token.Wait() && token.Error() != nil {
            fmt.Println(token.Error())
        }

        text := `{"message": "Hello MQTT"}`
        token := c.Publish(topic, byte(qos), false, text)
        token.Wait()
    }

    dialer := proxy.FromEnvironment()
    connOpts.SetCustomOpenConnectionFn(func(uri *url.URL, options MQTT.ClientOptions) (net.Conn, error) {
        fmt.Printf("Custom dialer invoked for %s\n", uri.Host) // Debug log for verification
        address := uri.Host
        return dialer.Dial(uri.Scheme, address)
    })

    client := MQTT.NewClient(connOpts)
    if token := client.Connect(); token.Wait() && token.Error() != nil {
        panic(token.Error())
    }
    fmt.Printf("Connected to %s\n", server)

    time.Sleep(1 * time.Second)

    fmt.Println("Disconnecting")
    client.Disconnect(250)
    fmt.Println("Exiting")
}

A lot of stuff changed like the removal of the SetUsername and the SetPassword calls since I am already authenticating via certificates and private key.

This was removed as well:

connOpts.OnConnectAttempt = func(broker *url.URL, tlsCfg *tls.Config) *tls.Config {
        cfg := tlsCfg.Clone()
        cfg.ServerName = broker.Hostname()
        return cfg
    }

Apparently, the previous code was a complete mess, so there were a lot of issues, not only one issue, but one of those issues was exactly the problem if the lack of authorization for that specific topic. But the code above is capable of connecting to IoT Core through a Tinyproxy instance running on the localhost.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @hardillb
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: tgdva

79179197

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

Session tickets are used for TLS session resumption. Usage of multiple tickets is best described in https://www.rfc-editor.org/rfc/rfc9149.html: "For example, clients can open parallel TLS connections to the same server for HTTP, or they can race TLS connections across different network interfaces. The latter is especially useful in transport systems that implement Happy Eyeballs."

In case of web browsers client may connect to the server, download the main page, then get two tickets and open two more connections to fetch resources, immediately using both tickets.

Regarding session resumption, I have only ever seen clients use the second ticket that was issued, never the first.

All the clients I have seen use session tickets in LIFO order. If they receive two tickets, they first use the second ticket, but then the first if they need to establish another connection.

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

79179191

Date: 2024-11-11 21:34:19
Score: 1
Natty:
Report link

SO today i was writing a query that "merged two querys with identical structure, 2 int cols and a varchar column - total width 40 bytes..

4,403,063 rows to another of 8,743,056 rows The resulting distinct result set was 8,141,350 rows.

Using a UNION to join both queries between 30 and 40 seconds Using a UNION ALL into a temp table then a SELECT DISTINCT on the temp table 10 seconds.

Dont assume you will see the same result with millions of rows that you see with hundreds or thousands or rows

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

79179189

Date: 2024-11-11 21:34:19
Score: 1
Natty:
Report link

This issue started happening to us yesterday with no changes in code; probably some dependent library issue.

The problem happens when you run amplify codegen

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

79179183

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

I managed to fixed it. In all tutorials they say only to modify the minimum API Level to Android 8 (currently). And they leave the target api level to highest. In my case when I specified Android 12, it installed some additional libraries and start working. Thanks for all comments.

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

79179182

Date: 2024-11-11 21:31:15
Score: 6 🚩
Natty: 5
Report link

In this example, IND_WA is static. Is it possible to dynamically create the IND_WA structure and assign values for update?

Reasons:
  • Blacklisted phrase (1): Is it possible to
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: simpleabap

79179168

Date: 2024-11-11 21:25:14
Score: 8.5
Natty: 8.5
Report link

@anandhu Have you found a solution? I am running into the same problem rn. Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (2.5): Have you found a solution
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @anandhu
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: vanyans

79179166

Date: 2024-11-11 21:25:13
Score: 1
Natty:
Report link

Kind of late to the party here but I needed to do this today:

ADO pipeline makes it almost too easy. Treat this just like a powershell or AZcli script. Create a pipeline var & call it with $(var)

IF EXISTS (SELECT * FROM sys.database_principals WHERE name = '$(client)_user')
    BEGIN
    Print '$(client)_user already exists.  Dropping to reinitialize'
    DROP USER [$(client)_user]
    END

Reasons:
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Dan

79179165

Date: 2024-11-11 21:25:13
Score: 2.5
Natty:
Report link

Please check the official logback's guide on Logging separation and apply suggestions described there.

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

79179152

Date: 2024-11-11 21:21:13
Score: 1.5
Natty:
Report link

The gridExtra package has concise syntax for this

library(gridExtra)

plot1 <- plot(eff, grid=FALSE)
plot2 <- plot(eff2, grid=FALSE)

grid.arrange(plot1, plot2, ncol=2)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Giancarlo

79179148

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

In Chrome 130 it's now Timestamps. Under Settings > Preferences > Console

Settings > Preferences > Console

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • High reputation (-2):
Posted by: Mark Swardstrom

79179138

Date: 2024-11-11 21:14:11
Score: 2.5
Natty:
Report link

This turned out to be default caching in the (IBM Sterling COTS) map component. Under Fuse, the cache wasn't working for some reason (unintentional), when we migrated to Spring Boot, the cache started working, breaking some of our test cases. We just configured the IBM cache to expire in a very short interval and that satisfies our test cases.

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

79179131

Date: 2024-11-11 21:11:10
Score: 1.5
Natty:
Report link

Apparently, dbstop if warning and dbstop if error are independent, and should be called separately. Calling dbstatus shows their status, and they can be toggled independently.

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

79179123

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

Searched the answers for this but either I'm blind or nobody has mentioned this one yet. No idea where I learned it but if you don't have any special variables from the inventory to worry about just provide an adhoc CSV to the inventory flag like so.

ansible-playbook playbooks/example.yml -i ', imac-1.local'
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: RiverHeart

79179093

Date: 2024-11-11 20:56:06
Score: 2.5
Natty:
Report link

Alternatively, you can do

- name: Activate virtual environment
  run: echo PATH=${GITHUB_WORKSPACE}/.venv/bin:$PATH >> $GITHUB_ENV

GITHUB_WORKSPACE is the default working directory on the runner for steps

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

79179069

Date: 2024-11-11 20:44:04
Score: 2.5
Natty:
Report link

It is possible that you are hitting rate limits or other errors at the the API that your copilot is calling. This may result in error response. You can enable Debug mode and check why it is failing.

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

79179050

Date: 2024-11-11 20:36:02
Score: 0.5
Natty:
Report link

Turns out I was being slightly dumb. I was adding adding the components directly to the game rather than to the world which the camera is viewing. So just have to do world.add instead. Thank you Spydon for helping me out with this one :) Below full code that works:

import 'package:flame/game.dart';
import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(GameWidget(game: SimpleGame()));
}

class SimpleGame extends Forge2DGame {
  SimpleGame()
      : super(
          gravity: Vector2(0, 10),
          zoom: 2,
        );

  @override
  Future<void> onLoad() async {
    super.onLoad();

    // Add the component to the world for camera settings to apply
    world.add(JarComponent(position: Vector2(1, 2), size: Vector2(20, 40)));
  }
}

class JarComponent extends BodyComponent {
  final Vector2 position;
  final Vector2 size;

  JarComponent({required this.position, required this.size});

  @override
  Body createBody() {
    final shape = PolygonShape()
      ..setAsBox(size.x, size.y, position, 0);

    final bodyDef = BodyDef()
      ..position = position
      ..type = BodyType.static;

    final body = world.createBody(bodyDef);
    body.createFixtureFromShape(shape);
    return body;
  }
}
Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Bob E

79179042

Date: 2024-11-11 20:34:02
Score: 0.5
Natty:
Report link

Please do not rely on git ignore to keep files out of your repo. It is just too easy to make a mistake and all of a sudden, your passwords are in plain text for all the world to see (if it is a public repo). Then, when you realize it, you will delete the file--but may not realize the history still holds it. You may also neglect to change the password so, if someone already got it before you deleted it, you are still vulnerable. At the very least, encrypt them. You still have the problem of where to store the decryption key, but at least there is one more level of protection (security by obscurity).

O.S. environment variables are better in some ways, but aren't very safe either. Sys admins can see them and anyone able to run commands can do "env" command to get them all. Running remote commands is always a high prize for a bad actor for this reason (and others).

If your organization has an enterprise password manager, that is the obvious answer. If not, perhaps create a free AWS account and use their "Secrets Manager" service (or Microsoft or Google--they all have this ability and are considered very secure).

Only a little off topic, don't put secrets on the command line. While the process is running, the "ps" command will show the secret. After the process stops, there is the "history" command.

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

79179022

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

In this version 10.2.1 setup is a little different, you first need to set default options, your serverURL is a URL (domain) and setRoom would be your full url. Something like that:

 val defaultOptions = JitsiMeetConferenceOptions.Builder()
    .setServerURL(URL(https://meet.jit.si/))
    .setFeatureFlag("pip.enabled", false)
    .setFeatureFlag("welcomepage.enabled", false)
    .setFeatureFlag("invite.enabled", false)
    .setFeatureFlag("call-integration.enabled", false)
    .setFeatureFlag("calendar.enabled", false)
    .setFeatureFlag("raise-hand.enabled", false)
    .build()
JitsiMeet.setDefaultConferenceOptions(defaultOptions)

val options = JitsiMeetConferenceOptions.Builder()
    .setRoom(https://meet.jit.si/AliveObsessionsCreditFreely)
    .build()
JitsiMeetActivity.launch(context, options)

So, setRoom is not about nameRoom only, but about domain plus idRoom. It needs to be unique. To change the room name, use #config.subject= at the end of the url.

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

79179010

Date: 2024-11-11 20:18:58
Score: 2
Natty:
Report link

After some testing I was able to successfully get this to work:

| parse regex "\"ConfirmationNumber\":\"(?<ConfirmationNumber>[0-9]*)\"" multi nodrop
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Paulonious1

79179005

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

i had the same problem, the error is that you mount the same volum for two brokers.

Reasons:
  • Whitelisted phrase (-1): i had the same
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Brahim Djarallah

79178990

Date: 2024-11-11 20:10:56
Score: 1
Natty:
Report link

What I ended up having to do was refactor my usage of the FusedLocationProviderClient to make use of the intervals, and stick everything in a foreground service (as opposed to a Worker). The service starts when the user logs in, and runs continuously, and stops when they log out.

This seems to work fine for the most part, but becomes unreliable when the user selects "Only this time" when requesting location data. I will ask this in a separate question, however.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Starts with a question (0.5): What I
  • Low reputation (0.5):
Posted by: Nelson

79178967

Date: 2024-11-11 20:04:55
Score: 1
Natty:
Report link

Figured out the below answer in the Firebase repo fixes the issue:

I've discovered if I move the db = firestore.client() into my cloud function, I'm able to deploy.

https://github.com/firebase/firebase-functions-python/issues/126#issuecomment-1682542027

It's really weird that Google does not update the docs or fixes the issue, but for now, this answer unblocks me, hope it helps others too.

Reasons:
  • Whitelisted phrase (-1): hope it helps
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: haven-way

79178965

Date: 2024-11-11 20:03:55
Score: 3.5
Natty:
Report link

flutter pub global run intl_utils:generate Its Work....

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

79178960

Date: 2024-11-11 20:02:54
Score: 2.5
Natty:
Report link

Note: This is supposed to be a comment. Unfortunately I don't have enough reputation.

As a complement to Zhong's answer, I want to point out that this might not be as much a problem.

We assume every edge has a latency of 1ms.

Now, a: 2ms, b: 2ms, c: 1ms. If c--d is broken, then:

a: 2, b: 2, c: 1
  (change c)
a: 2, b: 2, c: 3
  (change a, b)
a: 4, b: 4, c: 3
  (change c)
a: 4, b: 4, c: 7
  (change a, b; now the next hop of a, b is c, because of poison reverse)
a: 11, b: 11, c: 7
... ...

You can see how rapidly the latencies increase. In fact, the latencies grow exponentially with time. In less than 30 rounds, the latencies will become so big (see the calculation below), that in all practical means, A is considered unreachable.

>>> l
array([1, 2])
>>> m
array([[1, 3],
       [1, 5]])
>>> np.linalg.matrix_power(m, 1) @ l
array([ 7, 11])
>>> np.linalg.matrix_power(m, 1 + 30 // 4) @ l
array([1296400, 2007584])
Reasons:
  • RegEx Blacklisted phrase (1.5): I don't have enough reputation
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Max Dickens

79178959

Date: 2024-11-11 20:02:54
Score: 1
Natty:
Report link
  1. Every time the user opens your app, generate a unique ID and add it as a query param in the URL.
  2. Any time a request is made from the app, fetch the unique ID from the query param.
  3. Reference the ID and match it against the query param to confirm which tab made the request.

You can't use cookies or local storage, because those are shared across tabs. Each browser tab can have a unique URL however, so this is the perfect opportunity to persist a unique ID.

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

79178958

Date: 2024-11-11 20:02:54
Score: 4.5
Natty: 7
Report link

nm. I got it covered. sorry about it

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Mat

79178955

Date: 2024-11-11 20:01:53
Score: 1
Natty:
Report link

Try upgrading Node on your system and installing the latest version of firebase-tools.

Use NVM to Update Your Node Version

Then for firebase-tools:

npm update -g firebase-tools

or

npm install -g [email protected]
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: markbosire

79178949

Date: 2024-11-11 20:00:53
Score: 2
Natty:
Report link

It is not mandatory to have at least 150 packages per week. You can have less but the number of collections from the address will decrease. For example, I have around 89-100 packages per week but the collection is done 3 days a week (Monday, Wednesday, and Friday) instead of 5 days as someone with over 150 packages has.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Iulius Mihai Boiangiu

79178943

Date: 2024-11-11 19:57:53
Score: 3
Natty:
Report link

I use SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -lstdc++") and target_link_libraries(stdc++) with cmake.

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

79178938

Date: 2024-11-11 19:53:52
Score: 1
Natty:
Report link

Answering my own question: flattening the df like this gives the desired outcome:

object_1df = pd.DataFrame([['a', 1], ['b', 2]],
                   columns=['letter', 'number'])
object_2df = pd.DataFrame([['b', 3, 'cat'], ['c', 4, 'dog']],
                   columns=['letter', 'number', 'animal'])
objects = [object_1df, object_2df]

catalog = pd.DataFrame()
for df in objects: 
    df.set_index('letter', inplace=True)
    flattened_data = {f'{index}_{col}': df.loc[index, col] for index in df.index for col in df.columns}
    flattened_df = pd.DataFrame([flattened_data])
    display(flattened_df)
    catalog = pd.concat([catalog, flattened_df], ignore_index=True)
display(catalog)

yields desired result

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Nikko Cleri

79178930

Date: 2024-11-11 19:50:51
Score: 2.5
Natty:
Report link

Did you tried running flutter doctor --android-licenses and accept all of them? that sometimes could cause issues if you didn't done that, also I found some other solutions to a similiar issue here: flutter error Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'

Also I'm not sure if you're on windows using WSL but looks like its one of the situations that could also cause your issue https://youtrack.jetbrains.com/issue/IDEA-291122/Cannot-query-the-value-of-this-provider-because-it-has-no-value-available-when-importing-the-Android-project

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Gapps

79178917

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

one simple question, i gonna use webdriver where is running in backend .go can i make this on goolang? like if u can explain better how i turn one webserver into one with run in appengine

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

79178912

Date: 2024-11-11 19:40:48
Score: 1.5
Natty:
Report link

I would create a new index with name as hashkey and use .getBatch function. It takes an array of ids (I believe 50 ids is the size limit).

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

79178911

Date: 2024-11-11 19:39:48
Score: 1.5
Natty:
Report link

go to the profile and then makesure that the TypeScript and JavaScript Language Features extention is turned on (enabled).

Name: TypeScript and JavaScript Language Features Id: vscode.typescript-language-features Description: Provides rich language support for JavaScript and TypeScript. Version: 1.0.0 Publisher: vscode

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mr.CraazY

79178910

Date: 2024-11-11 19:39:48
Score: 2
Natty:
Report link

You can include an observer changes on newWindow.window. After close the value becomes null.

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

79178903

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

I am using Open Sans with a ttf that is including 8 font families : Open Sans, Open Sans Condensed, Open Sans Condensed ExtraBold, Open Sans Condensed Light, Open Sans Condensed SemiBold, Open Sans ExtraBold, Open Sans Light, Open Sans SemiBold

I do not see how to implement "Open Sans Condensed" as it doesn't make use of the flags bold or italic

I'm quite lost...

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

79178898

Date: 2024-11-11 19:34:47
Score: 2
Natty:
Report link

In the Row Groups and Column Groups panel, click on the arrow to expand menu. Then select "Add total" and choose before or after your data. This with add the total for column and row, respectively, with the current level of aggregation.

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