79409393

Date: 2025-02-03 16:32:54
Score: 0.5
Natty:
Report link
func exists(_ filePath: String) async throws{
    let storage = Storage.storage()
    
    let storageRef = storage.reference(withPath: filePath)

    _ = try await storageRef.getMetadata()
}

If exists, do not throw.

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

79409386

Date: 2025-02-03 16:27:52
Score: 4
Natty:
Report link

I just fixed that by asking the IT a newer version of GCC

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

79409384

Date: 2025-02-03 16:26:52
Score: 0.5
Natty:
Report link

I am using SSM Parameter Store for config management. There, I have one GENERAL config that is used by all EC2 instances. Additionally, I have SPECIFIC config for EC2 instances that require more setting beyond the GENERAL config.

Here is how you could do it:

#fetch GENERAL config from the SSM parameter store:

sudo /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a fetch-config -s -m ec2 -c ssm:AmazonCloudWatch-GENERAL-cw-config

#fetch SPECIFIC config from the SSM parameter store:

sudo /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a append-config -m ec2 -s -c ssm:AmazonCloudWatch-SPECIFIC-cw-config

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

79409382

Date: 2025-02-03 16:26:52
Score: 0.5
Natty:
Report link

There is no need for loop, try this easy method, but there are others too:

name=input('Enter your name: ')
bid=input('Enter your bid: ')
dict1={}
dict1[name]=bid
print(dict1)
Reasons:
  • Whitelisted phrase (-1): try this
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Antonis Konstantinou

79409371

Date: 2025-02-03 16:21:50
Score: 0.5
Natty:
Report link

command: "nodemon --inspect=0.0.0.0:9229 -L --nolazy --signal SIGINT file_path_name"

This solution worked for me. You can check this post:here.

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Harmik Lathiya

79409367

Date: 2025-02-03 16:20:50
Score: 1.5
Natty:
Report link

Restoring a GitLab instance using Docker Swarm can sometimes result in the Git repositories not being restored properly, even if the database and other components are successfully restored.

It looks like the issue is that the Git repositories aren't being restored properly when you're using the GitLab backup/restore process. Here are some steps you can follow to troubleshoot and fix this:

1. Check the Backup File: Make sure the backup file (<backup-id>_gitlab_backup.tar) actually includes the repository data. You can extract or list the contents of the backup file to confirm.

2. Verify Docker Volumes: If you're using Docker, ensure the volume for repository data (usually /var/opt/gitlab) is mounted correctly. If the data wasn't backed up properly due to misconfigured volumes, it won't restore.

3. Use the Correct Restore Command: When restoring, you need to specify the backup ID correctly. For example:

docker exec -t <container_name> gitlab-backup restore BACKUP=<backup-id>

Replace <container_name> with your container's name and <backup-id> with the correct ID of your backup.

4. Match GitLab Versions: The version of GitLab you're restoring to must match the version from which the backup was created. Mismatched versions can lead to issues during the restore process.

5. Monitor for Errors: During the restore process, check the logs for any errors or warnings. These often point to what went wrong.

6. Review Configuration: Make sure your GitLab configuration (like repository paths in /etc/gitlab/gitlab.rb) is set up properly. Incorrect settings here could cause the restore process to skip the repositories.

7. Check Permissions: If the files are restored but GitLab can't access them, it might be a permissions issue. Ensure the correct ownership and permissions are applied to the restored data.

If you've gone through these steps and it still doesn't work, feel free to share more details. For example, any specific error messages or your setup (like Docker Swarm or standalone installation). It might help narrow down the issue!

Reasons:
  • RegEx Blacklisted phrase (2): it still doesn't work
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Aswana

79409365

Date: 2025-02-03 16:18:50
Score: 1
Natty:
Report link

add these lines inside app/build.gradle file

buildTypes {
  release {
    minifyEnabled true
    proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'

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

79409364

Date: 2025-02-03 16:18:50
Score: 0.5
Natty:
Report link

Since the developers changed the path again and the other answers don't work anymore:

if __name__ == "__main__":
    import subprocess
    from streamlit import runtime
    if runtime.exists():
        main()
    else:
        process = subprocess.Popen(["streamlit", "run", "src/main.py"])
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: sglbl

79409338

Date: 2025-02-03 16:11:47
Score: 1
Natty:
Report link

The issue turned out to be the file path. I made a post on Reddit about this issue and one user pointed out

<script>
  import '../scripts/menu.js';
</script>

Really should be

<script>
  import '../assets/scripts/menu.js';
</script> 

Once I made the change the page built as expected.

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

79409334

Date: 2025-02-03 16:09:46
Score: 6.5 🚩
Natty: 5
Report link

It didn't help. I've tried all of that including reinstalling pip manually twice, yet the problem persists. The only thing I'm anxious about is the Path variable. Mine is spelt "Path" instead of "PATH". I want to know whether this is the cause of the problem. When i try to change it without applying it, all the other paths in the "Path" variable disappears. Same happens when i try to create a new "PATH" variable. Is there anything else I can do?

Reasons:
  • Blacklisted phrase (1): I want to know
  • Blacklisted phrase (1): Is there any
  • RegEx Blacklisted phrase (1): I want
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Emmanuel Oduro

79409329

Date: 2025-02-03 16:06:45
Score: 2
Natty:
Report link

Unity uses a left-handed coordinate system. According to the official tutorials, you use your left hand to determine the direction of cross(a, b). However, if you calculate it directly using the formula, the result appears to be the same as what you get in a right-handed coordinate system. For example, (1,0,0) Ɨ (0,1,0) always equals (0,0,1), no matter which coordinate system you are in. The left hand rule applied to Cross(a, b).

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

79409321

Date: 2025-02-03 16:03:44
Score: 1
Natty:
Report link

Thanks to Tom, I now understand I should have specified the width of the first format when I nested it in the second format. In other words, I changed [longfmt.] to [longfmt52.]:

PROC FORMAT;
VALUE longfmt
    1 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
VALUE nestfmt
    1 = [longfmt52.];
QUIT;

PROC SQL;
CREATE TABLE tbl (col NUM);
INSERT INTO tbl VALUES (1);

SELECT col FORMAT=longfmt. FROM tbl;
SELECT col FORMAT=nestfmt. FROM tbl;
QUIT;
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Nik

79409319

Date: 2025-02-03 16:01:44
Score: 2.5
Natty:
Report link

SELECT Email, Function FROM database qualify row_number() over(partition by Email order by Function) ==1

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

79409316

Date: 2025-02-03 16:01:44
Score: 1
Natty:
Report link

The problem was the tool that Visual Studio was trying to use for authentication.

Go to Tools > Options > Environment > Accounts. Under Add and reauthenticate accounts using, open the drop-down and select something different. In my case, I changed it from System web browser to Embedded web browser and then VS displayed the sign-in dialog.

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

79409310

Date: 2025-02-03 16:00:43
Score: 2.5
Natty:
Report link

Found a policy that was changing the url of the requestor which caused the good_referrer to NOT match the request_referrer. It took a while to find it. We needed the WTF_CSRF_ENABLED set to true.

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

79409291

Date: 2025-02-03 15:52:41
Score: 1
Natty:
Report link

This can occur due to the antivirus HTTPs checking, like in Avast in my case. I solved exporting the Avast cerfificate to the cerificate bundle file used by the PHP

Reasons:
  • Whitelisted phrase (-2): I solved
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: AntƓnio Diego Silva

79409290

Date: 2025-02-03 15:52:41
Score: 0.5
Natty:
Report link

If you use gym, you can simply disable the xcpretty to show all the log:

xcodebuild_formatter: '',
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: JERC

79409283

Date: 2025-02-03 15:47:40
Score: 4
Natty:
Report link

I managed to find a very ugly workaround to deal with this.

It seems that the figure starts with 3 colorscales. And, as soon as I trigger any hover/highlight event, 2 more colorscales are created, for a total of 5.

The default (viridis) colorscale seems to be always the 3rd one. Thus, I added a little JS snippet that hides its layer on window load:

```{js}
function code_default() {
    document.getElementsByClassName('infolayer')[0].getElementsByClassName('colorbar')[2].style.display = 'none'
}
window.onload = code_default;
```

Does anyone know of a better way to deal with this?

Reasons:
  • RegEx Blacklisted phrase (2): Does anyone know
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: dkysh

79409274

Date: 2025-02-03 15:43:39
Score: 3
Natty:
Report link

I propose you Excalidraw and Draw.io integration.

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

79409272

Date: 2025-02-03 15:41:39
Score: 3
Natty:
Report link

You can achieve this by creating a separate binary framework for your assets. The Emerge tools team has a great article on how to do it.

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

79409263

Date: 2025-02-03 15:37:38
Score: 1.5
Natty:
Report link

With that syntax you're attempting to set an object to a number property.
To solve this use {'stat.dataCount': records.length} instead of
{'stat.dataCount': {$size: "$data"}}.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: hello-there-general-kenobi

79409256

Date: 2025-02-03 15:33:36
Score: 6
Natty: 7
Report link

why do we have to start the whatsapp client on multiple devices?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): why do we have to
  • Low reputation (1):
Posted by: Oriuwa Goodluck

79409251

Date: 2025-02-03 15:31:35
Score: 3
Natty:
Report link

Use this command for mac:

control ^ + -

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Syed Shayan Hasan

79409243

Date: 2025-02-03 15:27:34
Score: 0.5
Natty:
Report link

When Maxima fails to find a symbolic solution, you can always try to find a numeric solution instead:

(%i1) eq1:43=%pi/4*d*d*h$
(%i2) eq2:d1=d0-2*h$
(%i3) eq3:d0=9$
(%i4) eq4:d=(d0+d1)/2$
(%i5) solve(float([eq1,eq2,eq3,eq4]),[d,d1,h,d0]);
(%o5) [[d = 3.02775290957923, d1 = - 2.9444945848375452, 
h = 5.972247918593895, d0 = 9.0], [d = - 2.209973166368515, 
d1 = - 13.41994750656168, h = 11.20997375328084, d0 = 9.0], 
[d = 8.182220434432823, d1 = 7.364440868865648, h = 0.8177795655671762, 
d0 = 9.0]]
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): When
  • Low reputation (1):
Posted by: Jaime Villate

79409226

Date: 2025-02-03 15:22:32
Score: 3
Natty:
Report link

In case someone else stumbles upon this thread, this seems to be a good alternative: https://github.com/velopack/velopack

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

79409219

Date: 2025-02-03 15:18:31
Score: 0.5
Natty:
Report link

You could add a Message step of type "Webhook" to call Braze /users/track API to attribute a custom user attribute, and then use this attribute for the Decision split block.

In the Webhook you have access to canvas entry properties which you can access like this:

{
  "attributes": [
    {
      "external_id": "{{${user_id}}}",
      "custom_property": "{{canvas_entry_properties.${custom_value}}}"
    }
  ]
}

and when triggering the Canvas via API passing it to the canvas_entry_properties like this

{
    "canvas_id": "<canvas id>",
    "recipients": [
        {
            "external_user_id": "<user id>",
            "canvas_entry_properties": {
                "custom_value": "Value"
            }
        }
    ]
}

enter image description here

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

79409217

Date: 2025-02-03 15:17:31
Score: 0.5
Natty:
Report link

This is work (_stream and _listener are private fields, initialising into task):

    public void Stop()
    {
        if (_listenTask != null)
        {
            _source.Cancel();

            try
            {
                _stream?.Close();
            }
            catch (Exception)
            { }

            try
            {
                _listener?.Stop();
            }
            catch (Exception)
            { }

            while (!(_listenTask.IsCanceled || _listenTask.IsCompleted || _listenTask.IsFaulted))
            {
                Thread.Sleep(1);
            }

            _listenTask = null;
            _source = null;
        }
    }
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user29484439

79409216

Date: 2025-02-03 15:16:31
Score: 3.5
Natty:
Report link

Thanks at all for your contributions. For resolving it definitifly I used $table->timestamps(2) instead of $table->timestamps() in migration file It finually work successful

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

79409214

Date: 2025-02-03 15:16:31
Score: 2
Natty:
Report link

I had the same error message if the storage account was not in the same region as the recovery vault.

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

79409205

Date: 2025-02-03 15:12:30
Score: 2
Natty:
Report link

You could do this easily with send money endpoint. If you send funds to an email which isn't signed up, the email address will receive an email notifying to sign up to redeem funds. If the funds haven't been redeemed (i.e. user signed up) in 30 days, the funds will be returned to sender's Coinbase account. And fake funding to wallet also

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: User Always keep believing in

79409189

Date: 2025-02-03 15:06:28
Score: 2
Natty:
Report link

I have this issue on my side with the right path of the collection and with the right import, and just a yarn install fix it.

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

79409171

Date: 2025-02-03 14:55:26
Score: 2.5
Natty:
Report link

You can use the DinosOffices. is a lib LibreOffice for Delphi. https://github.com/Daniel09Fernandes/DinosOffice

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

79409164

Date: 2025-02-03 14:54:26
Score: 1
Natty:
Report link

Not a stricktly the answer for width, but for heights - With focus on the terminal, Ctrl + Cmd + up /down worked on macOS.

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

79409161

Date: 2025-02-03 14:53:26
Score: 0.5
Natty:
Report link

When talking about reflection, the 2 mistakes that are most common...

  1. They want a library or compiler feature that does it all for them. Not everything is a plugin.
  2. They want to write
for (const auto& mbr : my_struct)
{
   // but what is the type of mbr now, it changes for every member
   // you cannot "loop" over things of different types.
}

But... While most programmers find 'for loop's a comfortable and familiar way of writing code it is in-fact a bit of an anti-pattern in modern C++. You should prefer algorithms and "visitation". Once you learn to give up on iteration, and prefer visitation (passing functions to algorithms), you find that the pattern I describe below is quite usable.

So what is the easy way... Given just three techniques you can roll your own reflection system in C++17 onwards in a hundred lines of code or so.

  1. You can easily "visit" every member of a tuple in a few line in C++. From - https://en.cppreference.com/w/cpp/utility/apply
template<typename... Ts>
std::ostream& operator<<(std::ostream& os, std::tuple<Ts...> const& theTuple)
{
    std::apply
    (
        [&os](Ts const&... tupleArgs)
        {
            os << '[';
            std::size_t n{0};
            ((os << tupleArgs << (++n != sizeof...(Ts) ? ", " : "")), ...);
            os << ']';
        }, theTuple
    );
    return os;
}

Understand this code before reading on...

What you need a system that makes tuples from structures. Boost-PFR or Boost-Fusion are good at this, if you want a quick-start to experiment on.

  1. The best way to access a member of a structure is using a pointer-to-member. See "Pointers to data members" at https://en.cppreference.com/w/cpp/language/pointer. The syntax is obscure, but this is a pre-C++11 feature and is a stable feature of C++.

  2. You can make a static-member function that constructs a tuple-type for your structure. For example, the code below makes a tuple of member pointers for "Point", pointers to the "offset" of the members x & y. The member-pointers can be determined at compile-time, so this comes with a mostly zero-cost overhead. member-pointers also retain the type of the object they point to and are type-safe. (Every compiler I have used will not actually generate a tuple, just generate the code produced, making this a zero-overhead technique... I can't promise this but it normally is) Example struct...

struct Point
{
    int x{ 0 };
    int y{ 0 };

    static consteval auto get_members() {
        return std::make_tuple(
            &Point::x,
            &Point::y
        );
    }
};

You can now wrap all the nastiness up in simple wrapper functions. For example.

// usage visit(my_point, [](const auto& mbr) { std::cout << mbr; });
// my_point is an object of the type point which has a get_members function.
template <class RS, class Fn>
void visit(RS& obj, Fn&& fn)
{
    const auto mbrs = RS::get_members();

    const auto call_fn = [&](const auto&...mbr)
    {
        (fn(obj.*mbr.pointer), ...);
    };
    std::apply(call_fn, mbrs);
};

To use all you have to do is make a "get_members" function for every class/structure you wish to use reflection on.

I like to extend this pattern to add field names and to allow recursive visitation (when the visit function sees another structure that has a "get_members" function it visits each member of that too). C++20 also allows you to make a "concept" of visitable_object, which gives better errors, when you make a mistake. It is NOT much code and while it requires you to learn some obscure features of C++, it is in fact easier than adding meta-compilers for your code.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Starts with a question (0.5): When
  • Low reputation (1):
Posted by: Netty Unreal

79409142

Date: 2025-02-03 14:44:24
Score: 2
Natty:
Report link

Visual Studio 2022. Curiously this happens in an ATL with MFC project if the generated project_i.c is compiled prior to dllmain.cpp. The fix is to open the project file project.vcxProj in a text editor like Notepad++, find the ItemGroup containing the C/C++ files, and make sure dllmain.cpp is at the top.

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

79409138

Date: 2025-02-03 14:43:24
Score: 3
Natty:
Report link

What platform are you using? Technology has come a long way since you've asked that question. Variations you can create is pretty much unlimited with a platform like HyperVoice or 11labs. You can even clone your own voices with perfect resemblance.

Reasons:
  • Low length (0.5):
  • No 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: cem akbulut

79409136

Date: 2025-02-03 14:43:24
Score: 2.5
Natty:
Report link

For anyone still needing this — I had a similar issue and shared my solution in this GitHub discussion: https://github.com/vercel/next.js/discussions/59488

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Rafael GonƧalves

79409129

Date: 2025-02-03 14:39:23
Score: 3
Natty:
Report link

The answer is that there is only one class in this tree, so no class name is displayed.

You can verify this in the source code: https://github.com/scikit-learn/scikit-learn/blob/160fe6719a1f44608159b0999dea0e52a83e0963/sklearn/tree/_export.py#L377

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

79409125

Date: 2025-02-03 14:38:22
Score: 1
Natty:
Report link

There is currently a bug in the Cloud SDK where proxy tokens are improperly cached.

To fix this, we currently recommend disabling the cache. E.g. like this:

.execute({ destinationName: 'DESTINATION', jwt: 'JWT', useCache: false })
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: bananabrƤd

79409124

Date: 2025-02-03 14:37:22
Score: 1.5
Natty:
Report link

Every mongodb document must contain an identifier described as _id (the error does tell you that
An error occurred while serializing the Identifiers property of class Resource);
you can solve the problem by changing the property id to ObjectId _id or by adding [BsonNoId] before each class you are defining.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: hello-there-general-kenobi

79409118

Date: 2025-02-03 14:35:22
Score: 2.5
Natty:
Report link

For modern browsers, consider structuredClone:

https://developer.mozilla.org/en-US/docs/Web/API/Window/structuredClone

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

79409113

Date: 2025-02-03 14:32:21
Score: 1
Natty:
Report link

Here's the working example originally suggested by brian d foy:

    use Mojo::URL;
    use Data::Dumper;
    
    my $url = "https://example.com/entry/#/view/TCMaftR7cPYyC3q61TnI6_Mx8PwDTsnVyo9Z6nsXHDRzrN5ftuXxHN7NvIGK34-z/366792786/aHR0cHM6Ly9lcGwuaXJpY2EuZ292LmlyL0ltZWlBZnRlclJlZ2lzdGVyP2ltZWk9MzU5NzQ0MzkxMDc2Mjg4";
    
    my $fragment = Mojo::URL->new($url)->fragment;
    my @parts = $fragment =~ m{([^/]+)}g;
    
    print $parts[1];
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Dan

79409104

Date: 2025-02-03 14:29:20
Score: 1.5
Natty:
Report link

A quick fix for it is to hit Ctrl + Shift + F once and hit Ok once, then quickly hit Ctrl + Shift + F once again and hit the Stop Find button before the initial search is complete.

After this, try again to Search normally should prompt the correct output and display all occurrences in the Entire Solution.

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

79409101

Date: 2025-02-03 14:28:20
Score: 1
Natty:
Report link

So by looking a bit more patiently in the documentation, i noticed this section:

sqlalchemy_session_persistence
Control the action taken by sqlalchemy_session at the end of a create call.

Valid values are:

None: do nothing

'flush': perform a session flush()

'commit': perform a session commit()

The default value is None.

Why the hell the default option is 'None'? I don't know. But just by setting it manually to 'commit' the data started being saved on database.

Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: João Pedro Martins de Paula

79409098

Date: 2025-02-03 14:28:20
Score: 0.5
Natty:
Report link

As from Here:

A deadlock requires four conditions: mutual exclusion, hold and wait, no preemption, and circular wait.

It does not matter matter if you use a unique lock or normal lock, any waiting operation which fulfills the four conditions can cause a deadlock.

The current code does not fulfill the deadlock conditions
As @Mestkon has pointed out in the comments, in your code every thread currently uses only one mutex, thus it is impossible to fulfil the "hold and wait" condition. Thus no deadlock can happen.

Define a locking sequence
A usually simple practical approach is to define a locking sequence and use it everywhere.
For example if you ever need mutex1 and mutex2 at the same time, make sure to always lock mutex1 first, then mutex2 second (or always the other way around).
By that you can easily prevent the "circular wait" (mutex1 waiting for mutex2 and mutex2 waiting for mutex1) condition, thus no deadlock can happen.

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

79409094

Date: 2025-02-03 14:27:20
Score: 0.5
Natty:
Report link

Using getActiveRange() as Parameter

Agreeing @TheMaster you cannot directly assign a parameter into the menu item, Using the getActiveRange() and getValues() method as a workaround would help.

To use this workaround you just need to highlight the range of the value and it returns an array as the value of the parameter additionally using .toast() to check the return values of the highlighted cells.

function onOpen(e) {
  SpreadsheetApp.getUi()
    .createMenu('foo')
    .addItem('bar', 'foobar')
    .addToUi();
}

function foobar(bar = SpreadsheetApp.getActiveRange().getValues()) {
  return SpreadsheetApp.getActiveSpreadsheet().toast(bar);
}

Reference:

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @TheMaster
  • Low reputation (0.5):
Posted by: Lime Husky

79409092

Date: 2025-02-03 14:25:19
Score: 2
Natty:
Report link

As suggested by @Rafael Winterhalter, the issue was resolved after injecting the ApplicationTraceContext class.

ClassInjector.UsingUnsafe.ofBootLoader().inject(Collections.singletonMap(
    new TypeDescription.ForLoadedType(ApplicationTraceContext.class),
    ClassFileLocator.ForClassLoader.read(ApplicationTraceContext.class)
));
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Rafael
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Jay_ran

79409077

Date: 2025-02-03 14:17:18
Score: 3
Natty:
Report link

put

min-height: 100vh;

it will automatically adjust

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

79409063

Date: 2025-02-03 14:12:17
Score: 1.5
Natty:
Report link

Importing a component but not using it in the template does not have major impact runtime performance. However, it increases the bundle size slightly, as the component is included in the final JavaScript build.

If you are using lazy loading (async components or dynamic imports), then unused components will not be loaded until needed, reducing the initial load time.

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

79409059

Date: 2025-02-03 14:11:16
Score: 1
Natty:
Report link

If you use GCM message format as descrived here: https://firebase.google.com/docs/cloud-messaging/concept-options,

You should add the following to your message block:

"apns": [ "payload": [ "aps": ["sound":"default"] ] ]

Based on format described here: https://developer.apple.com/documentation/usernotifications/generating-a-remote-notification

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

79409058

Date: 2025-02-03 14:11:16
Score: 0.5
Natty:
Report link

Ok, so not knowing Python at all I wrote some pseudocode in the question, and @phd has helpfully pointed out in the comments that it is actually the fully working answer:

git filter-repo --commit-callback 'if commit.original_id == b"123abc...": commit.parents.append(b"789def...")'

And the docs are here.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @phd
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: Tom V

79409054

Date: 2025-02-03 14:08:16
Score: 2
Natty:
Report link

If you are willing to use other IDEs, JetBrains tools support direct integration with WSL.

I use IntelliJ, PyCharm, and CLion on Windows 11 daily, however, I run, debug, and compile code in WSL.

Setting up is extremely easy and the results are excellent. Just keep in mind that only WSL2 is supported.

https://www.jetbrains.com/help/idea/how-to-use-wsl-development-environment-in-product.html

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

79409050

Date: 2025-02-03 14:06:15
Score: 1
Natty:
Report link

You will require to add TestIntentShortcut.updateAppShortcutParameters() in either didFinishLaunchingWithOptions of AppDelegate or init method of App struct, whichever you are using.

Call to updateAppShortcutParameters method is important.

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

79409046

Date: 2025-02-03 14:04:14
Score: 9.5 🚩
Natty: 4.5
Report link

I facing the same problem ...Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@tailwindcss/vite' imported from /vercel/path0/node_modules/.vite-temp/vite.config.js.timestamp-1738589927080-ce4a4b3fc13ca.mjs

what should i do?

Reasons:
  • Blacklisted phrase (2): what should i do
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I facing the same problem
  • Ends in question mark (2):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Araf Ahmed

79409043

Date: 2025-02-03 14:03:13
Score: 2
Natty:
Report link

Your approach is generally sound, but the synchronous call to "adminClient.listTopics().names().get()" blocks the scheduler’s thread—due to Kafka’s retry and timeout mechanisms—when Kafka is down. This blocking prevents subsequent scheduled runs. To fix this, consider reducing Kafka timeouts, using asynchronous calls, or configuring your scheduler with a thread pool. For tests, you might also mock the AdminClient or adjust timeouts to avoid long blocking periods.

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

79409038

Date: 2025-02-03 14:01:13
Score: 2.5
Natty:
Report link
\[Name\](?<Name>[\s\S]*?)\[Age\](?<Age>[\s\S]*?)\[MobileNumber\](?<MN>[\s\S]*?)Billing address(?<BA>[\s\S]*?)Delivery address(?<DA>(?:\s*.*))
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Davoud

79409037

Date: 2025-02-03 14:01:13
Score: 0.5
Natty:
Report link

This way can be useful to set JVM:

File | Settings | Build, Execution, Deployment | Build Tools | Gradle

Gradle user home

C:/Users/.../.jdks/openjdk-22.0.2

and Gradle JDK jbr 17 Gradle -JVM

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

79409030

Date: 2025-02-03 13:59:12
Score: 2.5
Natty:
Report link

Quarkus doesn't replace the keys, only the values. My workaround was to use the resources plugin to replace the INIT_SQL_SCRIPTS_PATH placeholder with the proper path, depending on the environment.

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

79409028

Date: 2025-02-03 13:58:11
Score: 1.5
Natty:
Report link

You can wait creation of k8s secret with:

kubectl wait --for=create secret my-new-secret --timeout=30s
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: ubbuyan

79409025

Date: 2025-02-03 13:57:11
Score: 2.5
Natty:
Report link

coordinate = [] for x in range(10): for y in range(10): coordinate.append((x,y)) print(coordinate)

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Lan Anh Nguyen C nhn

79409019

Date: 2025-02-03 13:57:11
Score: 2.5
Natty:
Report link

Turns out the WithSecurityInfo() method does exist and it does seem to work the way I had written it. The problem with this example was that it was called in the wrong spot. Security info needs to be added to the cluster - not the consumer.

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

79409014

Date: 2025-02-03 13:53:10
Score: 0.5
Natty:
Report link

May be you are using PowerShell instead of command prompt. In PowerShell, we need to enclose the argument in double quotes.

java "-Djavax.net.ssl.keyStore=xyz.jks"
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Saikiran Gosikonda

79409009

Date: 2025-02-03 13:52:09
Score: 4
Natty: 5
Report link

Ctrl Q if you are using VS code to comment /uncomment Multiple lines of code

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

79409002

Date: 2025-02-03 13:49:08
Score: 2
Natty:
Report link

For tracking and segmentation, they are typically used together through the unified YOLO API. The tracking functionality is integrated into the main model interface rather than being offered as a separate API2. This allows for seamless integration of tracking with other features like instance segmentation.

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

79408996

Date: 2025-02-03 13:46:07
Score: 4.5
Natty:
Report link

Magic Export & Import plugin is free and fully compatible with Polylang.

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

79408992

Date: 2025-02-03 13:44:06
Score: 0.5
Natty:
Report link

The issue is that I am using macOS.

On macOS, which uses a case-sensitive file system, the import statement must exactly match the filename:

import App from './App.tsx';

in windows, we can:

import App from './App';

The solution is to explicitly include the file extension in the import statement on macOS.

Reasons:
  • Whitelisted phrase (-1): solution is
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: yang yang

79408988

Date: 2025-02-03 13:43:06
Score: 1
Natty:
Report link

When you play a downloaded HLS (HTTP Live Streaming) file, you might still see .ts (Transport Stream) and .aac (Advanced Audio Codec) requests to the server because of how HLS works. Here's why:

HLS Structure: HLS breaks media into small chunks, typically .ts files for video and .aac files for audio. Even if you've downloaded the HLS content, the player might still reference the original manifest file (.m3u8), which points to these segments.

Caching or Re-downloading: Some players might re-request segments to ensure they have the latest or most complete version of the content. This can happen even if the files are already downloaded locally.

DRM or Encryption: If the content is encrypted or protected by DRM (Digital Rights Management), the player might need to contact the server to fetch decryption keys or verify licenses, triggering additional requests.

Network Fallback: Some players are designed to check for updates or better-quality streams by default, even when playing downloaded content. This can result in .ts and .aac requests being sent to the server.

Player Behavior: Certain media players might not fully support offline playback of HLS content and may still attempt to stream segments from the original source.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Starts with a question (0.5): When you
  • Low reputation (1):
Posted by: Youcine Premium

79408981

Date: 2025-02-03 13:41:05
Score: 2
Natty:
Report link

In my case running the command on windows 11:

wsl --update

helped

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

79408950

Date: 2025-02-03 13:28:01
Score: 4
Natty:
Report link

Since i am not allowed to write a comment yet, i will use this answer. I just wanted to ask, if you could provide code for you solution since i am stuck in an similar situation with the grpc authentication. Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (1.5): i am stuck
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Michael

79408936

Date: 2025-02-03 13:20:59
Score: 2.5
Natty:
Report link

I think its about precision. 5.0 is a numeric value so it shows upto 15 digits.

Maybe try TO_CHAR() function.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: emminity kurtkƶy

79408928

Date: 2025-02-03 13:17:58
Score: 1
Natty:
Report link

After some testing of Saullo G. P. Castro's answer I've found

I described both in the GIST of LuizFelippe mentioned in the comments of Saullo G. P. Castro's answer. However, the GIST seems to be inactive, so I decided to post an answer here given that I also do not have enough reputation for a comment yet.

Inefficient computation of the determinant of the factor L

There is a tiny improvement possible, which I found out during debugging and from the SuperLU documentation which states that the matrix L is unit lower triangular, i.e., its main diagonal is a vector of ones: image

So in principle, it should be possible to drop all the terms involving L because the sign will always be +1.0 and the logarithm of the respective product will be 0.0.

Bug in sign computation

Since only the row permutations but not the column permutations were included in the proposed code, there was a 50% chance for a wrong sign in the determinant (since the permutation matrices have a determinant of either +1 or -1 which leaves a 50/50 chance for a product of two such matrices to be +1 and -1, respectively). Even though there are tests mentioned in the GIST, this failed for me the first time I ran the code.

The column permutations can be included in the exact same way as the row computations, so the fixed code is given by the following. When the line marked with <-- šŸ“£ is uncommented, this yields the original approach where the column permutations are not considered.

### Imports ###

import numpy as np
from scipy.sparse import linalg as spla

### Functions ###


def sparse_slogdet_from_superlu(splu: spla.SuperLU) -> tuple[float, float]:
    """
    Computes the sign and the logarithm of the determinant of a sparse matrix from its
    SuperLU decomposition.

    References
    ----------
    This function is based on the following GIST and its discussion:
    https://gist.github.com/luizfelippesr/5965a536d202b913beda9878a2f8ef3e

    """

    ### Auxiliary Function ###

    def minimumSwaps(arr: np.ndarray):
        """
        Minimum number of swaps needed to order a permutation array.

        """
        # from https://www.thepoorcoder.com/hackerrank-minimum-swaps-2-solution/
        a = dict(enumerate(arr))
        b = {v: k for k, v in a.items()}
        count = 0
        for i in a:
            x = a[i]
            if x != i:
                y = b[i]
                a[y] = x
                b[x] = y
                count += 1

        return count

    ### Main Part ###

    # the logarithm of the determinant is the sum of the logarithms of the diagonal
    # elements of the LU decomposition, but since L is unit lower triangular, only the
    # diagonal elements of U are considered
    diagU = splu.U.diagonal()
    logabsdet = np.log(np.abs(diagU)).sum()

    # then, the sign is determined from the diagonal elements of U as well as the row
    # and column permutations
    # NOTE: odd number of negative elements/swaps leads to a negative sign
    fact_sign = -1 if np.count_nonzero(diagU < 0.0) % 2 == 1 else 1
    row_sign = -1 if minimumSwaps(splu.perm_r) % 2 == 1 else 1
    col_sign = -1 if minimumSwaps(splu.perm_c) % 2 == 1 else 1
    # col_sign = 1 # <-- šŸ“£ If this is uncommented, this produces the `perm_r`-only code
    sign = -1.0 if fact_sign * row_sign * col_sign < 0 else 1.0

    return sign, logabsdet

I implemented a more extensive test against numpy.linalg.slogdet (takes 5 to 10 minutes on an M4 MacBook Pro). It tests at least 10 matrices for every given row/column count between 50 and 1000 to ensure consistency and not just lucky shots. Since we do not want to test SuperLU's ability to solve random sparse matrices which can be ill-conditioned, a matrix that cannot be solved will be regenerated in a random fashion.

While this test passes āœ… with the suggested fix (the line with <-- šŸ“£ is left commented), it fails āŒ on the first attempt when using the original code (the line with <-- šŸ“£ is active).

### Tests ###

if __name__ == "__main__": 

    # Imports
    import numpy as np
    import scipy.sparse as sprs
    from scipy.sparse.linalg import splu as splu_factorize
    from tqdm import tqdm

    # Setup of a test with random matrices
    np.random.seed(42)
    # n_rows = np.random.randint(low=10, high=1_001, size=20)
    density = 0.5  # chosen to have a high probability of a solvable system
    n_rows = np.arange(50, 1001, dtype=np.int64)

    # Running the tests in a loop
    for index in tqdm(range(0, n_rows.size)):
        m = n_rows[index]
        num_tests_passed = 0
        num_attempts = 0
        failed = False

        while num_tests_passed < 10:
            # a random matrix is generated and if the LU decomposition fails, the
            # test is repeated (this test is not there to test the LU decomposition)
            num_attempts += 1
            matrix = sprs.random(m=m, n=m, density=density, format="csc")
            try:
                splu = splu_factorize(matrix)
            except RuntimeError:
                tqdm.write(
                    f"Could not factorize matrix with shape {m}x{m} and density "
                    f"{density}"
                )

                if num_attempts >= 100:
                    tqdm.write(
                        f"Could not generate a solvable system for matrix with shape "
                        f"{m}x{m}"
                    )
                    failed = True
                    break

                continue

            # first, the utility function is used to compute the sign and the log
            # determinant of the matrix
            sign, logabsdet = sparse_slogdet_from_superlu(splu=splu)
            # then, the sign and the log determinant are computed by NumPy's dense
            # log determinant function for comparison
            sign_ref, logabsdet_ref = np.linalg.slogdet(matrix.toarray())

            # the results are compared and if they differ, the test is stopped
            # with a diagnostic message
            if not (
                np.isclose(sign, sign_ref) and np.isclose(logabsdet, logabsdet_ref)
            ):
                print(
                    f"Failed for matrix with shape {m}x{m}: "
                    f"sign: {sign} vs. {sign_ref} and "
                    f"logabsdet: {logabsdet} vs. {logabsdet_ref}"
                )
                failed = True
                break

            # if the test is successful, the loop is continued with the next iteration
            del splu
            num_tests_passed += 1

        if failed:
            break
Reasons:
  • RegEx Blacklisted phrase (1.5): do not have enough reputation
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: MothNik

79408922

Date: 2025-02-03 13:12:57
Score: 3
Natty:
Report link

. . Download "file manager +" (i'ts free in google play) move to your file, select your file, go to the 3dotts, 'open with' and choose yor browser.

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

79408921

Date: 2025-02-03 13:12:57
Score: 3.5
Natty:
Report link

Clearly the complex data sets don't match up with the 3d models proposed by this code, sorry. Any decently versed coder would obviously know about this.

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

79408913

Date: 2025-02-03 13:09:56
Score: 5.5
Natty:
Report link

I an using spring boot 3.2.10 and io.micrometer:micrometer-tracing-bridge-otel, @Scheduled is sill using same traceId all the time. Help please. @Jonatan Ivanov

Reasons:
  • RegEx Blacklisted phrase (1.5): Help please
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @Scheduled
  • User mentioned (0): @Jonatan
  • Single line (0.5):
  • Low reputation (1):
Posted by: bir

79408903

Date: 2025-02-03 13:06:55
Score: 1.5
Natty:
Report link

I found this answer:

\PhpOffice\PhpWord\Settings::setOutputEscapingEnabled(true);
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: Cymro

79408901

Date: 2025-02-03 13:06:54
Score: 4.5
Natty:
Report link

series-line. symbol = 'emptyCircle'

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: said al hendi

79408888

Date: 2025-02-03 13:02:53
Score: 3
Natty:
Report link

To download files directly on download folder without any permission you can go with Android Download manager

eia_flutter_download_manager

Thanks you!!!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Eia Tech

79408887

Date: 2025-02-03 13:02:53
Score: 2
Natty:
Report link

I believe this issue might be caused by a glitch in Xcode. There is no functional difference between a manually packed XCFramework and one generated by Xcode, yet some manually packed frameworks fail to work as expected.

I encountered the exact same problem while trying to package vendor-provided static libraries into XCFrameworks. Some libraries worked perfectly on the first attempt, while others consistently failed. After some experimentation, I discovered that copying the modulemap from a working XCFramework to the non-working ones resolved the issue. Suddenly, everything started working as intended.

For reference, I’ve shared my working setup for the WechatOpenSDK XCFramework here: WechatOpenSDK. Feel free to check it out if you’re facing similar issues.

Reasons:
  • Blacklisted phrase (0.5): check it out
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): facing similar issue
  • High reputation (-1):
Posted by: Ji Fang

79408875

Date: 2025-02-03 12:58:52
Score: 2
Natty:
Report link

You can check your quota utilization percentage on the Google Cloud Developer Console, after selecting your API from the dropdown list (pay attention to the difference between Places API and Places API New). In the utilization graph menu (the rightmost column in the table), you can even set up a custom date range (default is 1 day).

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

79408871

Date: 2025-02-03 12:57:51
Score: 3.5
Natty:
Report link

put the fetch in a useEffect and store it in a state

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

79408868

Date: 2025-02-03 12:56:51
Score: 2
Natty:
Report link

Use task {}

inside refreshable , as the refreshable task gets cancelled after refresh is completed

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

79408852

Date: 2025-02-03 12:49:50
Score: 3
Natty:
Report link

In short, add the image name to your manifest android:icon="@mipmap/appicon" part from AndroidManifest.xml Upload the appicon and replace it with the image name

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

79408839

Date: 2025-02-03 12:43:49
Score: 0.5
Natty:
Report link

Your design looks pretty good overall, but here are a couple of things to check:

  1. Person Table:

Using Person_ID as the primary key is spot on. The Company_ID as a foreign key makes sense too, since each person is linked to a company. Company Table:

  1. Company_ID is correctly set as the primary key. However, the Invoice_ID being in the Company table is a bit unusual unless each company only gets one invoice. If it’s a one-to-one relationship, that’s fine, but if companies can have multiple invoices, you might want to move the Invoice_ID to the Invoice table itself. Invoice Table:

  2. The Invoice_ID as the primary key is good, and the Summary_ID and Detailed_ID as foreign keys make sense. Just a thought, though: since the invoice is broken into sections, you might want to make sure these two foreign keys are indeed related directly to the invoice. If you’re thinking of splitting the sections out to their own tables, that could change the structure a little. Summary and Detailed Tables:

  3. Summary_ID and Detailed_ID are fine as primary keys. Linking Detailed_ID to Person_ID makes sense, since the detailed section includes individual person details.

Your foreign keys look solid. Just make sure that if each company has multiple invoices, you’ll need to adjust the design a bit to reflect that properly (maybe move the foreign key to the Invoice table). If it’s only one invoice per company, you’re good to go.

Also, consider adding cascading rules for deletes/updates to maintain data integrity in case a record is removed or changed.

Otherwise, everything looks pretty fine from my point of view.

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

79408830

Date: 2025-02-03 12:42:49
Score: 3.5
Natty:
Report link

For projects using the Cosmos Virtual File System (abbr. VFS) directly, we recommend you use System.IO methods where possible.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: ź¹€ė„ģ˜

79408824

Date: 2025-02-03 12:41:48
Score: 3.5
Natty:
Report link

Możesz wyjaśnić wszystkie punkty od początku, bo nie wiem co ci Ola wysłała.

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

79408822

Date: 2025-02-03 12:40:48
Score: 3.5
Natty:
Report link

Clearing my browser's cache fixed this for me.

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

79408818

Date: 2025-02-03 12:39:48
Score: 1
Natty:
Report link

As @sorin stated, it does not work for env variable at the same level, but it does work if you reuse a top level env variable in a lower level env variable definition:

env:
  SOME_GLOBAL_VAR: 1.0.0
jobs:
  build:
    name: My build
    env:
      SOME_BUILD_VAR: "${{ env.SOME_GLOBAL_VAR }}-build"
    steps:
      - name: My step
        env:
          SOME_STEP_VAR: "${{ env.SOME_GLOBAL_VAR }} ${{ env.SOME_BUILD_VAR}} step 1"
        run:
          ...
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @sorin
  • Low reputation (0.5):
Posted by: Flo

79408817

Date: 2025-02-03 12:38:48
Score: 1
Natty:
Report link

thanks to @C3row I got to the solution of this.

Qualtrics.SurveyEngine.addOnReady(function()
{
    /*Place your JavaScript here to run when the page is fully displayed*/

var base_element = document.querySelector(".QuestionOuter");
base_element.insertAdjacentHTML('afterbegin', '<div id="sticky_vid" style="position: sticky; top:0;" align="middle">');

var new_element = document.querySelector("#sticky_vid");

// Change the text below to add the element of your choice
new_element.innerHTML = `<div class="QuestionText BorderColor"><p align="left">
<br>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.<br>
&nbsp;
<table border="1" cellpadding="1" cellspacing="1" style="width:1000px;">
    <thead>
        <tr>
            <th scope="col" style="padding: 1px;">Some text</th>
            <th scope="col" style="padding: 1px;">&nbsp;Project A</th>
            <th scope="col" style="padding: 1px;">Project B (some more info)</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <th scope="row" style="padding: 1px;">More text</th>
            <td style="padding: 1px;">Lorem ipsum dolor sit amet, consectetur adipiscing elit</td>
            <td style="padding: 1px;">ELorem ipsum dolor sit amet, consectetur</td>
        </tr>
        <tr>
            <th scope="row" style="padding: 1px;">Lorep 1</th>
            <td style="padding: 1px;">Lorem ipsum dolor sit amet, consectetur</td>
            <td style="padding: 1px;">orem ipsum dolor sit amet, consectetur</td>
        </tr>
        <tr>
            <th scope="row" style="padding: 1px;">Even more text&nbsp;</th>
            <td style="padding: 1px;">Required behavioral<br>
            adoption</td>
            <td style="padding: 1px;">Encroaching on the land&nbsp;and rights of local communities, labour right violations</td>
        </tr>
        <tr>
            <th scope="row" style="padding: 1px;">Some numbers</th>
            <td style="padding: 1px;">32</td>
            <td style="padding: 1px;">32</td>
        </tr>
    </tbody>
</table>
<br>
We now ask you several questions on these proposed projects.<br> </p>
&nbsp;</div>`
;

// This is important, otherwise, the element you add will be at the back
base_element.style.zIndex = 1;
new_element.style.zIndex = 10;

});

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @C3row
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: canIchangethis

79408804

Date: 2025-02-03 12:30:46
Score: 1
Natty:
Report link

As @lyzlisa stated, it does not work for env variable at the same level, but it does work if you reuse a top level env variable in a lower level env variable definition:

env:
  SOME_GLOBAL_VAR: 1.0.0
jobs:
  build:
    name: My build
    env:
      SOME_BUILD_VAR: "${{ env.SOME_GLOBAL_VAR }}-build"
    steps:
      - name: My step
        env:
          SOME_STEP_VAR: "${{ env.SOME_GLOBAL_VAR }} ${{ env.SOME_BUILD_VAR}} step 1"
        run:
          ...
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @lyzlisa
  • Low reputation (0.5):
Posted by: Flo

79408801

Date: 2025-02-03 12:29:45
Score: 2
Natty:
Report link

dokładnie to co ola wysłała mi. brakuje pkt 8. utwórz nową funkcję ktora zwolni pamięć tablicy dynamiucznej zaalokowanej na 1 polu zmiennej strukturalnej struktury "wektor". samodzielnie ustal argumenty i typ funkcji 9. zapisz zmienną strukturalną z punktu 2 do jednego pliku np. "w1.csv" używając funkcji z punktu 6. 10. na końcu programu zwolnij pamięć z obu zmiennych strukturalnych z punktu 2, używając funkcji z punktu 7

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

79408800

Date: 2025-02-03 12:28:45
Score: 4.5
Natty:
Report link

What are you trying to achieve? If you want to get your user name you need to add --get there are some example here

How do I show my global Git configuration?

also check the docs here

https://git-scm.com/book/be/v2/Customizing-Git-Git-Configuration

The syntax without the comma is the correct one

Reasons:
  • Blacklisted phrase (1): How do I
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): What are you
  • Low reputation (0.5):
Posted by: Dinkelborg

79408796

Date: 2025-02-03 12:25:44
Score: 3.5
Natty:
Report link

Facing same issue

Could not resolve all files for configuration ':app:debugRuntimeClasspath'. Failed to transform error_prone_annotations-2.36.0.jar (com.google.errorprone:error_prone_annotations:2.36.0) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, dexing-enable-desugaring=true, dexing-enable-jacoco-instrumentation=false, dexing-is-debuggable=true, dexing-min-sdk=24, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): Facing same issue
  • Low reputation (1):
Posted by: Ch Altaf

79408795

Date: 2025-02-03 12:24:44
Score: 1.5
Natty:
Report link

Here if you booking.rate_per_hour is undefined or null or 0 it will not display "/hr" so firstly check if the booking.rate_per_hour get proper value or not

Additionally, see whether the component renders first and the booking receives the value; if so, it will take an undefined value, so you'll need to render that field again to get the proper output

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

79408776

Date: 2025-02-03 12:17:43
Score: 0.5
Natty:
Report link

big thanks to TomasVotruba found another solution by getting array with nodeFinder and then transformConcatToStringArray()

$array = $this->nodeFinder->findFirstInstanceOf($node, Array_::class);
$class_args = [];
$class_items = new Array_();
foreach ($array->items as $arrayItem) {
    $arr_key_name = $arrayItem->key->value;
    if($arrayItem->value instanceof Concat){
        $class_array = $this->NodeTransformer->transformConcatToStringArray($arrayItem->value);
        foreach ($class_array->items as $key_row => $row){
            if($row->value instanceof Variable)
                continue;
            if(count($class_array->items) > $key_row && $class_array->items[$key_row+1]->value instanceof Variable){
                $class_items->items[] = new ArrayItem(new Concat($row->value, $class_array->items[$key_row+1]->value));
                continue;
            }
            $class_items->items[] = new ArrayItem($row->value);
        }
        $class_args[] = new Arg($class_items);
        $new_function = new MethodCall($new_function, $arr_key_name, $class_args);
    }
}

<?php echo html()->button('<i class="fa ' . $actionBtnIcon . '" aria-hidden="true"></i> ' . $btnSubmitText)->type(['button'])->id(['confirm'])->class(['btn', 'btn-' . $modalClass, 'pull-right', 'btn-flat']) ?>

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

79408775

Date: 2025-02-03 12:16:42
Score: 2
Natty:
Report link

I prefer using helper methods and setting cookies for parents of nested objects. Current_user Current_company Current_invoice ect...

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

79408764

Date: 2025-02-03 12:11:41
Score: 2.5
Natty:
Report link

Yes, there is a significant difference between setting an element's innerHTML directly and using the dangerouslySetInnerHTML property in React. These differences are primarily related to security, React's rendering behavior, and how the DOM is updated.

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

79408758

Date: 2025-02-03 12:10:40
Score: 2.5
Natty:
Report link

The hostname should be different cause the localhost inside of a docker container is referring to the docker container itself, and if you want to make sure that your Eureka is visible by other containers(your microservices) you can set up a network and bind you Eureka server to 8761:8761

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

79408757

Date: 2025-02-03 12:10:40
Score: 1.5
Natty:
Report link

It seems that it's coming from hline() when passing -CMFLib.* price parameters (which accepts an input int/float). Perhaps, you can export negative float values.

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

79408744

Date: 2025-02-03 12:06:39
Score: 1
Natty:
Report link

In trying to narrow down the problem, I realized that there's probably a problem with Java and the (latest? version of) MacOS. Indeed, the following snippet seems to indicate that not all Locale's work. In this case, Locale.FRANCE doesn't work (the ā€œCancelā€, ā€œNoā€, ā€œYesā€ buttons remain in English), whereas Locale.GERMANY does. The initial problem I described may be related to this.

import java.util.Locale;
import javax.swing.JOptionPane;

public class Test {
    public static void main(String[] args) {
        
        //Locale.setDefault(Locale.FRANCE); // Doesn't work
        Locale.setDefault(Locale.GERMANY); // Works !
        
        JOptionPane.showConfirmDialog(null, "Message");
    }

}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Bart Jourquin

79408743

Date: 2025-02-03 12:05:38
Score: 11.5 🚩
Natty: 4.5
Report link

Has anyone found solution for this? i am facing same issue.

Reasons:
  • Blacklisted phrase (2): anyone found
  • RegEx Blacklisted phrase (3): Has anyone found
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): i am facing same issue
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Aswin Manoharan