79151963

Date: 2024-11-03 02:50:14
Score: 3.5
Natty:
Report link

I am trying to find the same but it appears that it isn't possible. Nest doesn't officially offer a public API for their Nest Aware platform, which includes security camera footage and activity data, due to privacy and security concerns. Since Google acquired Nest and integrated it into Google’s ecosystem, they’ve significantly limited third-party access, moving most device management to the Google Home API.

But if you found a solution!

Reasons:
  • Blacklisted phrase (1): I am trying to
  • Blacklisted phrase (1): if you found a solution
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ryan Maguire

79151960

Date: 2024-11-03 02:47:14
Score: 4
Natty: 4
Report link

Pessentrau - any updates on this? I am interested in adding a BLE python client to RPi too.

Reasons:
  • Blacklisted phrase (1): any updates on
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: garyn

79151957

Date: 2024-11-03 02:46:13
Score: 0.5
Natty:
Report link

I can think of two methods that maybe used to meet your requirement.

  1. Develop a scheduler plugin for this kind of job, and inject the node affinity based on the index of pod and node, to match with each other, for example, exec-job-0 will have int(0/4), so it'll be placed to exec-node-<0%4>, so it'll exec-node-0, exec-job-5 will have int(5/4), and it'll be placed to exec-node-1. If the node name is not predictable, maybe you should implement the mapping in the scheduler.

  2. Use podAffinity and podAntiAffinity, for exec-job-0/4/8, let's call it lead pod on each node, inject a special label to these pods and let them schedule to different nodes using podAntiAffinity. The for the follwing pod, use podAffinity to schedule to the same node as its lead pod. For example, lead pod exec-job-0 on node-0 have label: job-head-pod(for podAntiAffinity) and job-group-0(for podAffinity), then for all head pod will be scheduled to different node due to job-head-pod label, and exec-job-1 will use podAffinity job-group-0 and scheduled to node-0.

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

79151939

Date: 2024-11-03 02:25:10
Score: 2
Natty:
Report link

The answer is that I needed to renew my GitHub token with usethis::create_github_token() then gitcreds::gitcreds_set(). I find this really surprising, as I wasn't interfacing with GH at all. Having done this, I could build and install without issue.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Eden

79151934

Date: 2024-11-03 02:21:09
Score: 1
Natty:
Report link

Insignia doesn't exist in WiX v5. If you're still using it, you're probably corrupting your bundle. Read the documentation on how to sign bundles correctly..

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

79151923

Date: 2024-11-03 02:12:07
Score: 0.5
Natty:
Report link

Thanks to @Tsyvarev's comments I found the problem and got the solution I share here in case someone finds a similar error:

Problems:

  1. Foo_LIBRARY var was empty so the target library was not created correctly
  2. The imported target was not GLOBAL so the scope of the target library was only the current file
  3. It was linking to Foo (and not the other dependencies) just by chance because libFoo.so exists in the system, this is why I thought it was ignoring the properties but what was happening is that the whole target was not existant, treating Foo like a plain library and not a target.

Finally the solution that works to import a library and set its dependencies is:

FindFoo.cmake

# Look for the necessary header
find_path(Foo_INCLUDE_DIR NAMES foo.h)
mark_as_advanced(Foo_INCLUDE_DIR)

# Look for the necessary library
find_library(Foo_LIBRARY NAMES foo)
mark_as_advanced(Foo_LIBRARY)

# Extract version information from the header file
if(Foo_INCLUDE_DIR AND Foo_LIBRARY)
    set(Foo_FOUND TRUE)
    set(Foo_LIBRARIES bar baz)
endif()

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Foo
    REQUIRED_VARS Foo_INCLUDE_DIR Foo_LIBRARY Foo_LIBRARIES
)

# Create the imported target
if(Foo_FOUND)
    set(Foo_INCLUDE_DIRS ${StormByte_INCLUDE_DIR})
    if(NOT TARGET Foo)
        add_library(Foo UNKNOWN IMPORTED GLOBAL)
        set_target_properties(Foo PROPERTIES
            IMPORTED_LOCATION                   "${Foo_LIBRARY}"
            INTERFACE_INCLUDE_DIRECTORIES       "${Foo_INCLUDE_DIRS}"
            INTERFACE_LINK_LIBRARIES            "${Foo_LIBRARIES}"
        )
    endif()
endif()

So with this configuration since now the target is GLOBAL every other CMakeFiles.txt can target Foo library with its dependencies with just: target_link_libraries(TARGET Foo) if find_package(Foo) has been executed somewhere.

Note: There is no need to execute find_package(Foo) before or after final target, it will work anyway.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Tsyvarev's
  • Self-answer (0.5):
Posted by: StormByte

79151917

Date: 2024-11-03 02:07:07
Score: 0.5
Natty:
Report link

For the other folks that might be using dictionaries in jinja2 templates :

per an ai generator:

{% set users = [
    {
        'username': 'user1',
        'password': 'password1',
        'group': 'admin',
        'ssh_key': 'ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEArX...'
    },
    {
        'username': 'user2',
        'password': 'password2',
        'group': 'developer',
        'ssh_key': 'ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEArY...'
    },
    {
        'username': 'user3',
        'password': 'password3',
        'group': 'user',
        'ssh_key': 'ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEArZ...'
    }
] %}
{% for user in users %}
User: {{ user.username }}
Password: {{ user.password }}
Group: {{ user.group }}
SSH Key: {{ user.ssh_key }}
---
{% endfor %}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: dj423

79151914

Date: 2024-11-03 02:02:05
Score: 2.5
Natty:
Report link
  1. In your python code in the connection string use utf8mb4 when loading data from your database for example suppose you are loading data from mysql : connection_string = f"mysql+pyodbc://@{dsn}?charset=utf8mb4"

  2. when writing to oracle from python , please set the data type of objectname to nvarchar.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Gul Saeed Khattak

79151907

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

You can separate your StickyHeader and LazyRow into two distinct parts within a Column:

Column(modifier = modifier) {
    StickyHeader()
    LazyRow() {
        // yourItems()
    }
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Nguyen Tien Dung

79151896

Date: 2024-11-03 01:37:00
Score: 2.5
Natty:
Report link

You can not remove event listeners whose callback is an arrow function. You would need to change the callback to a function that is not an arrow function.

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

79151892

Date: 2024-11-03 01:34:00
Score: 0.5
Natty:
Report link

This error usually happens if you're not in the same directory as the file. Here are solutions for different scenarios:

Terminal: Navigate to the directory where filename.java is located before running: cd /path/to/your/file javac filename.java IDE (e.g., VS Code): Clear the cache and reload the IDE. This should recognize the file even if the terminal isn’t in the exact directory.

Hope this helps! 😊

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

79151891

Date: 2024-11-03 01:30:59
Score: 0.5
Natty:
Report link

I can't comment on the above-accepted answer; hence, I am providing another answer.

Please note a few changes for the sample code to work in 2024.

  1. connection string:
    • remove https:// as it is appended by the library.
    • remove the leading / at the end of the communication-server. It leads to the wrong auth header and results in 401.

example:

  1. The Azure rest API requires attachments to be passed in even though you have no attachments. here is the updated payload that works.
payload: = emails.Payload {
  Headers: emails.Headers {
    ClientCorrelationID: "some-correlation-id",
    ClientCustomHeaderName: "some-custom-header",
  },
  SenderAddress: "<[email protected]>",
  Content: emails.Content {
    Subject: "Fabric tenant abcde wants to upgrade to paid offer",
    PlainText: "This is being generated from dev-server.",
    HTML: "<p>This is a <strong>test</strong> email.</p>",
  },
  Recipients: emails.Recipients {
    To: [] emails.ReplyTo {
      {
        Address: "[email protected]",
        DisplayName: "Garima Bathla",
      },
    },
  },
  Attachments: [] emails.Attachment {},
  UserEngagementTrackingDisabled: false,
}
  1. The sender's email address needs to be in this format:
SenderAddress: "<[email protected]>",
Reasons:
  • RegEx Blacklisted phrase (1): can't comment
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Garima Bathla

79151869

Date: 2024-11-03 01:09:55
Score: 2.5
Natty:
Report link

I'm afraid you can't. See this answer on tauri's discussion forum - apparently webviews don't route API calls from web workers to the tauri core. Perhaps someday though.

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

79151866

Date: 2024-11-03 01:06:55
Score: 2
Natty:
Report link

Similar error for my application as well. Turns out to be URL rewrite rule at the machine level in IIS.

Not at site level which we could have noticed but someone mistakenly set-up incorrect rule at machine level.

Reasons:
  • RegEx Blacklisted phrase (1): Similar error
  • Low length (0.5):
  • No code block (0.5):
Posted by: Ashraff Ali Wahab

79151854

Date: 2024-11-03 00:55:52
Score: 1
Natty:
Report link

You may be able to use:

rmdir "\\?\C:\inetpub\wwwroot\cd.."

As found in this Microsoft fileio page:

the "\\?\" prefix also allows the use of ".." and "." in the path names, which can be useful if you are attempting to perform operations on a file with these otherwise reserved relative path specifiers as part of the fully qualified path.

Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Paul Andrews

79151851

Date: 2024-11-03 00:52:51
Score: 2.5
Natty:
Report link

What I did was click on the Review Issue, and then there was a box to start using Insight on flows (I don't remember the exact phrase, but it was about Flow Insight) and I confirmed it. That was it.

I didn't take a screenshot because I wasn't expecting it to be the issue, but that worked.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Starts with a question (0.5): What I
  • Low reputation (1):
Posted by: Specialman

79151849

Date: 2024-11-03 00:49:50
Score: 2
Natty:
Report link

Have you tried converting the dates to UTC before comparing? At least this would remove the timezone problem

Reasons:
  • Whitelisted phrase (-1): Have you tried
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: unhackit

79151848

Date: 2024-11-03 00:49:49
Score: 1
Natty:
Report link

It looks like adding the following to your Cloudflare page build configuration found in
Settings>Build>Build Configuration
fixes the deployment issue and any subsequent 404 error you may get once the page deploys.

Build command:
npx ng build --verbose --output-path dist/cloudflare
Build output:
dist/cloudflare/browser

Optionally you can change your package.json build command to be:
npx ng build --verbose --output-path dist/cloudflare
d and leave the cloudflare build command to the deafult of ng build.

If you are building successfully but getting a 404 change the build output to dist/cloudflare/browser

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

79151843

Date: 2024-11-03 00:45:48
Score: 1
Natty:
Report link

procedure MoveBack(Owner, Dest : TControl; zOrder : integer);

var

a : integer;

begin

a := Owner.Controls.IndexOf(TControl(Dest));

if a <> -1 then

begin

    Owner.Controls.Delete(a);

    Owner.Controls.Insert(zOrder, TControl(Dest));

end;

end;

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

79151842

Date: 2024-11-03 00:45:48
Score: 3
Natty:
Report link

Not absolut sure, but maybe you can configure it in the Customize Layout Settings.

Customize Layout

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

79151821

Date: 2024-11-03 00:25:44
Score: 3
Natty:
Report link

How can there be no possible moves? With 3 colors and 4 non-empty stacks, there are always 2 stacks with the same color on top, so we can move all nuts of this color from the top of one stack to another. This either decreases the number of pairs of adjacent nuts with different colors, or adds an empty stack which we can use to do the same thing.

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): How can the
  • Low reputation (1):
Posted by: Xellos

79151820

Date: 2024-11-03 00:24:44
Score: 1
Natty:
Report link

I use: file_exists(html_entity_decode(utf8_decode($filename)))

This works for me.

Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user2180104

79151817

Date: 2024-11-03 00:21:44
Score: 1
Natty:
Report link

I've got mine working . . . Go to the line indicated in the log and find the function that has a parameter inside curly braces. Change them to square braces. That worked for me. I had to do this a few times, blank screens keep coming as I do more, but that seems to be the only problem.

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

79151809

Date: 2024-11-03 00:14:42
Score: 2.5
Natty:
Report link

Draga gospodo, ja sam glavom i bradom čovjek koji je pokraden ,više puta kodovima Gmail trenutno sam sada [email protected] pitajte Google, Microsoft, davno instaliran i onemogućen ne znam zašto i zbog čega tako na dosta situacija.

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

79151808

Date: 2024-11-03 00:14:42
Score: 1.5
Natty:
Report link

It was solved by just changing All to Any! Thank you for the help!

var genreBooks = allBooks.Where(x => x.Genres.All(y => y == "Horror")).ToList();

Became

var genreBooks = allBooks.Where(x => x.Genres.Any(y => y == "Horror")).ToList();
Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Christofer Carlsson

79151804

Date: 2024-11-03 00:11:41
Score: 2.5
Natty:
Report link

const mysql = require('mysql');

const db = mysql.createConnection({ host: 'localhost', user: 'root', password: '', database: 'my_database' });

module.exports = db;

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

79151797

Date: 2024-11-03 00:01:39
Score: 5
Natty:
Report link

I believe I identified the problem. The application I'm developing uses a clean architecture with DDD to enrich the models. For the User entity, which contains several properties, I defined all of them as ObjectValues. For example, for the Id, I created a class called UserId; for the name property, I created a class called UserName, and so on. I applied the same approach to the Role entity, creating a RoleId class for the Id and UserRole for the role name.

// Object Values / User

public class UserId
{
    public Guid Value { get; }

    private UserId(Guid value) => Value = value;

    public static UserId Of(Guid value)
    {
        ArgumentNullException.ThrowIfNull(value);
        if (value == Guid.Empty)
        {
            throw new Exception("UserId cannot be empty");
        }
        return new UserId(value);
    }
}

public class UserName
{
    public string Value { get; }

    private UserName(string value) => Value = value;

    public static UserName Of(string value)
    {
        ArgumentNullException.ThrowIfNull(value);
        if (string.IsNullOrWhiteSpace(value))
        {
            throw new Exception("UserName cannot be empty");
        }
        return new UserName(value);
    }
}

// Object Values / Role
public class RoleId
{
    public Guid Value { get; }

    private RoleId(Guid value) => Value = value;

    public static RoleId Of(Guid value)
    {
        ArgumentNullException.ThrowIfNull(value);
        return new RoleId(value);
    }
}

public class RoleName
{
    public string Value { get; }

    private RoleName(string value) => Value = value;

    public static RoleName Of(string value)
    {
        ArgumentNullException.ThrowIfNull(value);
        if (string.IsNullOrWhiteSpace(value))
        {
            throw new Exception("RoleName cannot be empty");
        }
        return new RoleName(value);
    }
}

Next, within each User and Role model, I created the respective navigation properties. In the User entity, I created the Roles property like this:

public List<Role> {get;set;}.

And in the Role entity, I created the Users navigation property:

public List<User> Users {get;set;}.

public class User : Entity<UserId>
{
    public UserName? UserName { get; set; }
    public List<Role> Roles { get; set; } = [];

    public User() { }

    public User(Guid id, string userName, string userEmail)
    {
        Id = UserId.Of(id);
        UserName = UserName.Of(userName);
    }

    public static User Create(Guid id, string userName)
    {
        return new User(id, userName);
    }
}

public class Role : Entity<RoleId>
{
    public RoleName RoleName { get; set; } = default!;
    public List<User> Users { get; } = [];
    public Role() { }

    public Role(Guid id, string roleName)
    {
        Id = RoleId.Of(id);
        RoleName = RoleName.Of(roleName);
    }

    public static Role Create(Guid id, string roleName)
    {
        return new Role(id, roleName);
    }
}

In the database context (SQL Server), within the OnModelCreate method, I defined table names, primary keys, and converted the ObjectValue properties to primitive values as follows: For example, for the User entity Id, I did this: builder.Property(u => u.Id).HasConversion(id => id.Value, value => new UserId(value));. I applied the same logic to the rest of the User properties as well as for the Role entity. Finally, I defined the relationship between User and Role as many-to-many, as shown below:

// Users

builder.ToTable("Users");
builder.HasKey(u => u.Id);
builder.Property(u => u.Id).HasConversion(id => id.Value, value => UserId.Of(value));
builder.Property(u => u.UserName).HasConversion(prop => prop!.Value, value => UserName.Of(value));

// Roles
builder.ToTable("Roles");
builder.HasKey(r => r.Id);
builder.Property(r => r.Id).HasConversion(id => id.Value, value => RoleId.Of(value));
builder.Property(r => r.RoleName).HasConversion(prop => prop!.Value, value => RoleName.Of(value));

// Many-to-Many Relationship
modelBuilder.Entity<User>()
    .HasMany(u => u.Roles)
    .WithMany(ur => ur.Users);

Then, through the context injected in a controller method, I attempted to perform a simple query to retrieve the user identified by Id = "58c49479-ec65-4de2-86e7-033c546291aa" along with their assigned roles as follows:

var user = await _context.Users
    .Include(user => user.Roles)
    .Where(user => user.Id == UserId.Of("58c49479-ec65-4de2-86e7-033c546291aa"))
    .SingleOrDefaultAsync();

When executing this query, it didn’t return the user's associated roles (which do exist), and it generated an exception indicating that the query returned more than one record that matches the filter, which isn't true since there's only one user with a single role in the database. After much trial and error, I decided to replace the ObjectValues used as identifiers for the User and Role entities with primitive values, in this case Guid. I removed the ObjectValue-to-Primitive transformation line in OnModelCreate for both user and role, resulting in the following setup:

// Users

builder.ToTable("Users");
builder.HasKey(u => u.Id);
builder.Property(u => u.UserName).HasConversion(prop => prop!.Value, value => new UserName(value));

// Roles
builder.ToTable("Roles");
builder.HasKey(r => r.Id);
builder.Property(r => r.RoleName).HasConversion(prop => prop!.Value, value => new RoleName(value));

// Many-to-Many Relationship
modelBuilder.Entity<User>()
    .HasMany(u => u.Roles)
    .WithMany(ur => ur.Users);

I also modified the User and Role entities:

public class User : Entity<Guid>
{
    public UserName? UserName { get; set; }
    public List<Role> Roles { get; set; } = [];

    public User() { }

    public User(Guid id, string userName)
    {
        Id = id;
        UserName = UserName.Of(userName);
    }

    public static User Create(Guid id, string userName)
    {
        return new User(id, userName);
    }
}

public class Role : Entity<Guid>
{
    public RoleName RoleName { get; set; } = default!;
    public List<User> Users { get; } = [];
    public Role() { }

    public Role(Guid id, string roleName)
    {
        Id = id;
        RoleName = RoleName.Of(roleName);
    }

    public static Role Create(Guid id, string roleName)
    {
        return new Role(id, roleName);
    }
}

After re-configuring the entities, I ran the query again, and voila! The user now returns the associated roles as expected. I'm not sure what happens with EFC 8 regarding entity identifiers of type ObjectValue, but it doesn't seem to handle them well. For now, I prefer to work with primitive data types for identifiers to avoid these issues. If this can help someone, great. Or, if anyone knows how to solve or address this, I'd love to hear about it. Cheers!

Reasons:
  • Blacklisted phrase (1): Cheers
  • Blacklisted phrase (1): anyone knows
  • Blacklisted phrase (1): how to solve
  • RegEx Blacklisted phrase (2): knows how to solve
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Walter Molano

79151785

Date: 2024-11-02 23:47:37
Score: 0.5
Natty:
Report link

I have a similar filter that appears to work -- there's a pretty frustrating hiccup, though, as I'll try to explain below.

My method was to supply names of the classes that I want to keep, as a comma separated list, in a metadata argument to the pandoc cli. Inside the filter I parsed that list into a table using LPeg; I then applied a filter each to Blocks and Inlines elements, using that table to test inclusion.

Given this filter (classfilter.lua on the LUA_PATH):

-- split arglist by lpeg, function as it appears on lpeg documentation:
-- https://www.inf.puc-rio.br/~roberto/lpeg/
local function split(s, sep)
    sep = lpeg.P(sep)
    local elem = lpeg.C((1 - sep) ^ 0)
    local p = lpeg.Ct(elem * (sep * elem) ^ 0) -- make a table capture
    return lpeg.match(p, s)
end

local keeplist = {}
-- This function will go inside the Meta filter
-- the keeplist table will be available to the rest
-- of the filters to consult
local function collect_vars(m)
    for _, classname in pairs(split(m.keeplist, ",")) do
        keeplist[classname] = true
    end
end

local function keep_elem(_elem)
    -- keep if no class designation
    if not _elem.classes or #_elem.classes == 0 then
        return true
    end
    -- keep if class name in keeplist
    for _, classname in ipairs(_elem.classes) do
        if keeplist[classname] ~= nil then
            return true
        end
    end
    -- don't keep otherwise

    return false
end

local function filter_list_by_classname(_elems)
    for _elemidx, _elem in ipairs(_elems) do
        if not keep_elem(_elem) then
            _elems:remove(_elemidx)
        end
    end
    return _elems
end

-- forcing the meta filter to run first
return { { Meta = collect_vars }, { Inlines = filter_list_by_classname, Blocks = filter_list_by_classname } }

-- and this pandoc cli command: pandoc -f markdown -t markdown --lua-filter=classfilter.lua <YOUR EXAMPLE INPUT> -M 'keeplist=other,bw-only'

-- I get the following output:

## Images

![Generic image](generic_image.png)

![Generic image](generic_image.png){width="30px"}

<figure>

<figcaption>Color only image</figcaption>
</figure>

<figure>

<figcaption>Color only image</figcaption>
</figure>

<figure>

<figcaption>Color only image</figcaption>
</figure>

![BW only image](bw_image.png){.bw-only}

![BW only image](bw_image.png){.bw-only width="30px"}

![BW only image](bw_image.png){.bw-only width="30px"}

## Blocks

::: other
Block that shouldn't be filtered.
:::

::: Block that shouldn't be filtered. :::

::: bw-only
BW only block.
:::

## Spans

[Span that shouldn't be filtered]{.other}

[BW only span]{.bw-only}

## Links

[Link that shouldn't be filtered](link.html)

[Link that shouldn't be filtered](link.html){.other}

[BW only link](link.html){.bw-only}

... which appears to be the desired output, except the <figure> tags, which I haven't been able to remove. Assuming that my Inline filter removes only the src element from a Figure, and keeps the caption intact, I tried iterating over Figure and Image elements in a separate filter, to locate Figure blocks with empty contents fields, to replace them with an empty table -- but that didn't alter the result at all. I mean, adding the following to the filter_list_by_classname function before the ipairs loop:

_elems:walk({
    Figure = function(a_figure)
        if not a_figure.content[1].content[1] then
            return {}
        else
            return a_figure
        end
    end
})

did nothing.

So maybe this could be the start of a solution.

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Walther Stolzing

79151782

Date: 2024-11-02 23:46:37
Score: 4.5
Natty:
Report link

Made a small project, i will probably change it up a little bit but at its core it has JS syntax highlighting inside CDATA: https://github.com/Hrachkata/RCM-highlighter enter image description here

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

79151778

Date: 2024-11-02 23:41:35
Score: 3
Natty:
Report link

Not sure if you are still looking for an answer, the correct way to use this is {{#is_match}}. {{^is_match}} is a negative case.

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

79151777

Date: 2024-11-02 23:41:35
Score: 1.5
Natty:
Report link

Please note that you can run only one VACUUM command on a cluster at any given time. If you attempt to run multiple vacuum operations concurrently, Amazon Redshift returns an error.

Usage notes.

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

79151775

Date: 2024-11-02 23:39:35
Score: 2.5
Natty:
Report link

This is just an additional option for people in the future who run into the same problem as me. If you are new and too lazy to write boring commands or lines of code, you can check out the steps below 🤓

  1. Search for an environment variable in windows search with keywords like in the picture then click it
  2. Click on the button I marked with an arrow
  3. Click the new button
  4. List item
  5. Write down the variable name with : POWERSHELL_UPDATECHECK and the value is : false

Just search for an environment variable in windows search with keywords like in the picture then click it

click on the button I marked with an arrow

Click the new button

Write down the variable name with : POWERSHELL_UPDATECHECK and the value is : false

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

79151771

Date: 2024-11-02 23:37:35
Score: 1
Natty:
Report link

I found an answer that is embedded below (I hope). It is not the most pleasing solution but it works. Working directly with screen coordinates, event.x; NOT event.xdata; the magic for mpl_connect with twinx is inv = ax1.transData.inverted() x, y = inv.transform([(event.x, event.y)]).ravel()

import matplotlib.pyplot as plt
from matplotlib.widgets import Cursor
import numpy as np
import sys
coord=[]
fig, ax1 = plt.subplots()
ax2 = ax1.twinx()
ax1.plot([0, 1, 2, 3], [1, 2, 3, 4], 'b-')
ax2.plot([0, 1, 2, 3], [40, 30, 20, 10], 'r-')
def ontwinxclick(event):
    global ix
    ix = event.xdata
    global coord
    annot = ax1.annotate("", xy=(0,0), xytext=(-40,-40),textcoords="offset points",
        bbox=dict(boxstyle='round4', fc='linen',ec='k',lw=1,alpha=.936,zorder=np.inf),
        arrowprops=dict(arrowstyle='-|>',zorder=np.inf),zorder=np.inf,
        size=12, color='orangered',style='italic',weight='bold')
    annot2 = ax2.annotate("", xy=(0,0), xytext=(-40,-40),textcoords="offset points",
        bbox=dict(boxstyle='round4', fc='linen',ec='k',lw=1,alpha=.936,zorder=np.inf),
        arrowprops=dict(arrowstyle='-|>',zorder=np.inf),zorder=np.inf,
        size=12, color='navy',style='italic',weight='bold')
    annot.set_visible(False)
    annot2.set_visible(False)
    import math
    for i, ax in enumerate([ax1, ax2]):
        if ax == event.inaxes:
            print ("Click is in axes: ax{}".format(i+1))
    if event.button == 3:
        if ax2 == event.inaxes:
            print(f'Button: {event.button}, xdata: {event.xdata}, ydata: {event.ydata}')
            x=event.xdata;y=event.ydata
            annot2.xy = (x,y)
            text="x2={:,.2f}".format(x)
            text=text+"\ny2={:,.2f}".format(y)
            annot2.set_text(text)
            annot2.set_visible(True)
            fig.canvas.draw()
    else:
        print(f'Button: {event.button}, xdata: {event.xdata}, ydata: {event.ydata}')
        inv = ax1.transData.inverted()
        x, y = inv.transform([(event.x, event.y)]).ravel()
        print(f'Screen: {event.button}, x: {event.x}, y: {event.y}')
        print(f'Data: {event.button}, x: {x}, y: {y}')
        annot.xy = (x,y)
        text="x={:,.2f}".format(x)
        text=text+"\ny={:,.2f}".format(y)
        annot.set_text(text)
        annot.set_visible(True)
        fig.canvas.draw()
    coord.append((x,y))
    #pdir(event.inaxes)
#ax1.set_zorder(0.1)
cursor = Cursor(ax1, color='darkviolet', linewidth=1.2,horizOn=True, \
                vertOn=True, useblit=True)
fig.canvas.mpl_connect('button_press_event', ontwinxclick)
plt.show()

The result is enter image description hereenter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: elaz

79151766

Date: 2024-11-02 23:36:34
Score: 1
Natty:
Report link

Ok, I don't know whether this is the smoothest solution, but at least I am now able to execute a headless Azure Pipeline Deployment to my target server.

Before I call the docker compose command, I execute this:

gpg --pinentry-mode loopback --passphrase "$(GPG_KEY_PASSPHRASE)" --decrypt $(GPG_PASSWORD_STORE_PATH)

where $(GPG_PASSWORD_STORE_PATH) represents the path to the .gpg file. Then my docker compose command works.

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

79151710

Date: 2024-11-02 22:51:25
Score: 4.5
Natty:
Report link

Please find the link to the video for two sum: https://youtu.be/6PcYE1TQ54E

Reasons:
  • Blacklisted phrase (1): youtu.be
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Anushil Kumar

79151702

Date: 2024-11-02 22:41:22
Score: 4
Natty:
Report link

Thank you very much ptc-epassaro. As you mentioned Vuforia is not working in Holographic Remoting deployment. I deployed the app on the HoloLens and it is working now.

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

79151697

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

This is basically a dupe of asp.net core web API file upload and "form-data" multiple parameter passing to method .

You can not use multiple form parameters in the controller action (for e.g. form and body params). You need to encapsulate your parameters into one param object, as described in the linked post.

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

79151692

Date: 2024-11-02 22:32:20
Score: 3.5
Natty:
Report link

I have an older Intel chip and after downloading the new Sequoia update to the MacOS, my PgAdmin stopped working and just throws this error:

_LSOpenURLsWithCompletionHandler() failed with error -54.

Tried the above code from the command line: brew install --cask pgadmin4 --verbose

Still get the error. My MacBook does not need Rosetta since it's the older one. Anyone have any idea how to get the application working again?

Reasons:
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: dude_shut_up1

79151691

Date: 2024-11-02 22:32:18
Score: 6 🚩
Natty:
Report link

I'am struggling with this errror too, I'm encountering the exact same "Validate signature error" when attempting to broadcast TRON transactions in my TypeScript application. I've ensured that my owner address matches the private key and have carefully set all necessary transaction parameters. Have you found a solution to this permission-related signature issue? Any guidance or insights would be greatly appreciated!

Reasons:
  • Blacklisted phrase (1): appreciated
  • RegEx Blacklisted phrase (2.5): Have you found a solution to this permission
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Théo Quemar

79151689

Date: 2024-11-02 22:31:18
Score: 1.5
Natty:
Report link
br  {
    display: block;
    content: "";
    margin-top: 20px;
    margin-bottom: 20px;
    }
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mohamad Anton Athoillah

79151686

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

Well, you could look at it this way. Using fragments when using fragments and multiple activities was a real pain. Think Fragment transactions - much pain. Therefore, the NavigationComponent was developed - no more pain. I hate even thinking back to those days. One other thing you've probably never used is a ConstraintLayout. It replaces the need for complex LinearLayouts. The Xamarin.Android Designer has not been updated in the last 4 or 5 years and will soon be removed from VS 2022. Therefore, it is probably time for you to install Android Studio because AS makes it very easy to set up a complex layout using a ConstraintLayout. Once done, you can copy/paste your new layout into a new empty Xamarin.Android XML file and build it. There are more sophisticated/efficient ways of getting it into VS, which I can expand on.

It might be an idea to take this stuff to email because I doubt that SO appreciates these types of answers.

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

79151676

Date: 2024-11-02 22:20:15
Score: 1
Natty:
Report link

I massively improved the code of @Arch . It uses chrome debugger and requires an extension.

class HiddenClass {
  hiddenProperty;

  constructor(value) {
    this.hiddenProperty = value;
  }
}


var Secret = (() => {
  let _secret;
  return function Secret(secret) {
    _secret = secret;
  }
})();
let obj = new Secret(new HiddenClass(1337));
console.log(await scopeInspect(obj, ["hiddenProperty"]));
// HiddenClass {hiddenProperty: 1337}


https://github.com/eyalk11/scopeinspect-js

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Arch
  • Low reputation (0.5):
Posted by: user2679290

79151672

Date: 2024-11-02 22:17:14
Score: 4
Natty:
Report link

In JavaScript, a simple for loop (like the one in your function) is synchronous. This means each iteration of the loop runs to completion before moving on to the next one, and the function doesn't reach the return statement until the loop has finished all its iterations. Why do you think it is returning before ending the for loop?

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

79151667

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

If true randomness isn't necessary: Use first_value() for simplicity which can retrieve the first value in each group:

SELECT a, first_value(b) OVER (PARTITION BY a ORDER BY b) AS arbitrary_b
FROM foo
GROUP BY a;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Busra Ecem Sakar

79151657

Date: 2024-11-02 22:08:13
Score: 1.5
Natty:
Report link

If maintainability and clarity are priorities, Option 2 (two .py files with a shared module) is generally the best practice, as it keeps each DAG isolated while avoiding code duplication. This method also allows you to schedule backfilling and ongoing runs independently and view them clearly in the Airflow UI.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Busra Ecem Sakar

79151649

Date: 2024-11-02 22:02:11
Score: 0.5
Natty:
Report link

Just call exitApp() inside a screen before return or

run from onPress={()=>exitApp()}

import { BackHandler } from "react-native";
const exitApp = () => {
    BackHandler.exitApp();
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Hakan

79151645

Date: 2024-11-02 21:57:11
Score: 2.5
Natty:
Report link

Thank you for sharing the Trunk.toml example. I have tried it and the build process was going in infinite loop. By a slight change, I made it rebuild only once, after detecting a change in any file located on ./src folder.

[watch]
watch = ["./src"]

Regards,

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (1): Regards
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: myones

79151640

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

Ok, I see SB-Prolog had unnumbervars/3:

https://www3.cs.stonybrook.edu/~sbprolog/manual2/node6.html

Only it has a different signature. But it is a start!

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Rúben Dias

79151633

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

Discord has not yet implemented any Markdown formatting about tables, and there is no current way to print a table on Discord without client modifications, or sending an image file. It has been long demanded though.

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

79151629

Date: 2024-11-02 21:46:08
Score: 4.5
Natty:
Report link

Read about binary files on the Wikipedia page: https://en.wikipedia.org/wiki/Binary_file

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

79151623

Date: 2024-11-02 21:41:06
Score: 0.5
Natty:
Report link

when the subquery is no longer self contained , you need to have a connection between inner query and outer query that is why we use correlated queries which means It calculates for each line based on the data it receives from the outer query. for example use pubs data set and try this :

select title , [type] , price ,

(select avg(price) from dbo.titles as InnerQuery where InnerQuery.[type] = OuterQuery.[type]) as AVGPrice

from dbo.titles as OuterQuery

as a result you will have the average price of each book type

Reasons:
  • Whitelisted phrase (-1): try this
  • Long answer (-0.5):
  • No code block (0.5):
  • Starts with a question (0.5): when the
  • Low reputation (1):
Posted by: Schima

79151620

Date: 2024-11-02 21:40:06
Score: 4
Natty: 4
Report link

Much easier: Just type in HTML , that's all...

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

79151617

Date: 2024-11-02 21:38:05
Score: 1.5
Natty:
Report link

The file is moved to the path specified in the second parameter. However, if the drive (e.g., C:/) is not explicitly declared, the path is treated as relative. So, the file is moved to a location relative to where the executable is running, typically within the directory of the .sln file at /bin/Debug/net8.0/.

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

79151608

Date: 2024-11-02 21:31:04
Score: 3.5
Natty:
Report link

Already an old thread but I have a little problem. Somehow I have created a folder named: cd.. But I can't find any solution to delete this folder. It's on a Windows server 2016 machine. Normal deleting gives an error that the it's no longer located. Also tried with (admin rights) cmd and rmdir cd.. or rmdir "cd.." but also no luck.

Reasons:
  • Blacklisted phrase (1.5): any solution
  • Blacklisted phrase (1): no luck
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Paul Albers

79151602

Date: 2024-11-02 21:30:04
Score: 0.5
Natty:
Report link

Thanks everyone for the help. I used the feedback to now use a substitution in the string variable that may contain one or more IP addresses:

my $Event_text="This is a test string with a possible IP address: 10.10.10.100 but there is also 20.20.20.256";

my $New_text = $Event_text;

if ( $New_text =~ /\b$RE{net}{IPv4}\b/ )
{
        print "IP FOUND\n";
        $New_text =~ s/$RE{net}{IPv4}/ "X.X.X.X" /eg;
        $Event_text = $New_text;
}
else
{
        print "No IP\n";
}

print "Event_text: $Event_text\n";

This mostly works. But with this code, when one of the IPs in the string is invalid, it returns this output:

Event_text: This is a test string with a possible IP address: X.X.X.X but there is also X.X.X.X6

So you can see that it's trying to substitute the invalid octet "256" but it does so by leaving the last digit (6) for some reason.

I think the substitution requires a tweak around the $RE{net}{ipv4}. The description of the Regexp::Common does say "To prevent the unwanted matching, one needs to anchor the regexp: /^$RE{net}{IPv4}$/". But it's not clear how to implement that.

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

79151601

Date: 2024-11-02 21:28:03
Score: 4
Natty: 4.5
Report link

There are sample resolves published in the doc: https://docs.pdfsharp.net/PDFsharp/Topics/Fonts/Sample-Font-Resolvers.html

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

79151590

Date: 2024-11-02 21:17:01
Score: 1.5
Natty:
Report link

There is no answer for this question by using Jackson, so in the end in order to keep 3 &lt; 7 as it is, I needed to modify client to post XML wrapped in <!CDATA[[3 &lt; 7]]>, then Jackson will not convert that to 3 < 7 (which is not the wanted behavior).

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
Posted by: Bằng Rikimaru

79151585

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

As of 2023, keras 3.0.0 supports other types of backends, specifically torch and jax. It most likely would be a good idea to write tensorflow "agnostic" keras code in the future, since in a real world scenario there is some boilerplate data handling usually mixed with model creation and decoupling from tf might be useful.

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

79151581

Date: 2024-11-02 21:07:59
Score: 1
Natty:
Report link

If is an expo app, use the code below first in stall the dependences and import it,

expo install expo-updates

import * as Update from expo-updates;
const onpress =async()=>{
await Update.reloadAsync();
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Chika Nwazuo Evuka

79151575

Date: 2024-11-02 21:03:58
Score: 0.5
Natty:
Report link

To fix this we had to call this method when starting up the app in OnStart() in App.Xaml.cs and also call this if the user manually changes the theme in the in-app settings

public static void SetActivityColor()
{
#if ANDROID
    var activity = Platform.CurrentActivity;
    activity?.Window?.DecorView?.SetBackgroundColor(
        App.CurrentTheme == AppTheme.Dark ?
        Android.Graphics.Color.Black :
        Android.Graphics.Color.White);
#endif
}

Unsure if this will be needed for IOS

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

79151569

Date: 2024-11-02 20:57:54
Score: 8 🚩
Natty:
Report link

Is anyone familiar with a solution similar to the one demonstrated in this video?

https://youtu.be/slmy3bygaSk?si=A57kUKHVjOtlnhay

Reasons:
  • Blacklisted phrase (1): youtu.be
  • Blacklisted phrase (1): this video
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: PJMecNet

79151568

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

The post by @Thracian made me investigate their code, and then combined it with the code for CutCornerShape and RoundedCornerShape.

Here's the SemiRoundCutCornerShape

fun SemiRoundCutCornerShape(size: Dp, roundedLeft: Boolean = true) = SemiRoundCutCornerShape(size, size, roundedLeft)

fun SemiRoundCutCornerShape(cutSize: Dp, roundSize: Dp, roundedLeft: Boolean = true) = SemiRoundCutCornerShape(
    topStart = CornerSize(roundSize),
    topEnd = CornerSize(cutSize),
    bottomEnd = CornerSize(roundSize),
    bottomStart = CornerSize(cutSize),
    roundedLeft = roundedLeft
)

class SemiRoundCutCornerShape(
    topStart: CornerSize,
    topEnd: CornerSize,
    bottomEnd: CornerSize,
    bottomStart: CornerSize,
    private val roundedLeft: Boolean = true
) : CornerBasedShape(
    topStart = topStart,
    topEnd = topEnd,
    bottomEnd = bottomEnd,
    bottomStart = bottomStart,
) {

    override fun createOutline(
        size: Size,
        topStart: Float,
        topEnd: Float,
        bottomEnd: Float,
        bottomStart: Float,
        layoutDirection: LayoutDirection
    ): Outline {
        val roundOutline: Outline = Outline.Rounded(
            when (layoutDirection == LayoutDirection.Ltr && roundedLeft) {
                true -> RoundRect(
                    rect = size.toRect(),
                    topLeft = CornerRadius(if (layoutDirection == LayoutDirection.Ltr) topStart else topEnd),
                    bottomRight = CornerRadius(if (layoutDirection == LayoutDirection.Ltr) bottomEnd else bottomStart),
                )
                false -> RoundRect(
                    rect = size.toRect(),
                    topRight = CornerRadius(if (layoutDirection == LayoutDirection.Ltr) topEnd else topStart),
                    bottomLeft = CornerRadius(if (layoutDirection == LayoutDirection.Ltr) bottomStart else bottomEnd)
                )
            }
        )
        val cutOutline: Outline = Outline.Generic(
            when (layoutDirection == LayoutDirection.Ltr && roundedLeft) {
                true -> Path().apply {
                    var cornerSize = 0F
                    moveTo(0f, cornerSize)
                    lineTo(cornerSize, 0f)
                    cornerSize = topEnd
                    lineTo(size.width - cornerSize, 0f)
                    lineTo(size.width, cornerSize)
                    cornerSize = 0F
                    lineTo(size.width, size.height - cornerSize)
                    lineTo(size.width - cornerSize, size.height)
                    cornerSize = bottomStart
                    lineTo(cornerSize, size.height)
                    lineTo(0f, size.height - cornerSize)
                    close()
                }
                false -> Path().apply {
                    var cornerSize = topEnd
                    moveTo(0f, cornerSize)
                    lineTo(cornerSize, 0f)
                    cornerSize = 0F
                    lineTo(size.width - cornerSize, 0f)
                    lineTo(size.width, cornerSize)
                    cornerSize = bottomStart
                    lineTo(size.width, size.height - cornerSize)
                    lineTo(size.width - cornerSize, size.height)
                    cornerSize = 0F
                    lineTo(cornerSize, size.height)
                    lineTo(0f, size.height - cornerSize)
                    close()
                }
            }

        )

        return Outline.Generic(Path.combine(
            operation = PathOperation.Intersect,
            path1 = Path().apply { addOutline(cutOutline) },
            path2 = Path().apply { addOutline(roundOutline) }
        ))
    }

    override fun copy(
        topStart: CornerSize,
        topEnd: CornerSize,
        bottomEnd: CornerSize,
        bottomStart: CornerSize
    ): CornerBasedShape = SemiRoundCutCornerShape(
        topStart = topStart,
        topEnd = topEnd,
        bottomEnd = bottomEnd,
        bottomStart = bottomStart
    )

    override fun toString(): String {
        return "SemiRoundCutShape(topStart = $topStart, topEnd = $topEnd, bottomEnd = " +
                "$bottomEnd, bottomStart = $bottomStart)"
    }
}

Here used to create

SemiRoundCutCornerShape(8.dp)
SemiRoundCutCornerShape(24.dp, roundedLeft = false)
SemiRoundCutCornerShape(16.dp)
SemiRoundCutCornerShape(
  topStart = CornerSize(60.dp),
  topEnd = CornerSize(8.dp),
  bottomEnd = CornerSize(16.dp),
  bottomStart = CornerSize(20.dp)
)

Shapes illustrating code example

Reasons:
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Thracian
  • Self-answer (0.5):
Posted by: Yokich

79151552

Date: 2024-11-02 20:43:51
Score: 5.5
Natty:
Report link

I get the same error when trying to drag and drop a file into visual studio. (this behaviour started when i upgraded to Version 17.11.3).

Whats weird, should i open the target folder using 'windows explorer' and directly drag n drop, thats works. Once i have done that, i thereafter successfully drag and drop files directly into visual studio 🤷‍♀️

Reasons:
  • RegEx Blacklisted phrase (1): I get the same error
  • No code block (0.5):
  • Me too answer (2.5): I get the same error
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: jason

79151518

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

Just for completeness, very simple with WinGet on windows:

winget search julia

or just

winget install Julialang.Julia

then anytime

winget upgrade

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

79151516

Date: 2024-11-02 20:22:45
Score: 1
Natty:
Report link

Well I use Ubuntu 24.10 and I use this important program called Gnome-Tweaks and in there you can set the capslock key -> control key. EMACS alone you can't do this. I hope this helps others, later.

Reasons:
  • Whitelisted phrase (-1): hope this helps
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Alexander Topic

79151514

Date: 2024-11-02 20:21:45
Score: 3
Natty:
Report link

I was looking through the pi pico W diagram again and realized that that pins 23 24 25 are not actual pins. Maybe that is way the code did not work. Not sure but I will stick with this explanation for my self.

You can see the functions of the three pins in the table below the diagram:

Pi Pico W pinout diagram

Reasons:
  • Blacklisted phrase (1): did not work
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Unix

79151508

Date: 2024-11-02 20:15:44
Score: 3.5
Natty:
Report link

I am interested how this answer has worked out over time since google follows robots.txt options loosely. It seems like this continues to be an issue for RTD users. Any updates? From a cursory google of pyngrok, it seems like it works well.

Reasons:
  • RegEx Blacklisted phrase (0.5): Any updates
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Rowlando13

79151505

Date: 2024-11-02 20:13:43
Score: 3.5
Natty:
Report link

thanks! it worked with admin/pass.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Whitelisted phrase (-1): it worked
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: KAIF KHAN

79151489

Date: 2024-11-02 20:04:41
Score: 3
Natty:
Report link

its fixed to me:

cy.get('#search-element').clear().type('value', {delay: 100})

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

79151484

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

This has been answered multiple times but never afais gives the response starting by pressing a Button to get to the next View. Adding this approach just in case someone ends up (just like me) on a Google search that has this answer as one the top links.

This approach is a combination of @State variable on the Initial View and the same variable as @Binding in the Ending View. You can always add a "Back" button on the ending View to return to the original.

struct InitialView: View {   
    @State private var isEndingViewActive = false   
    HStack {
            var body: some View {
                if isEndingViewActive {
                    EndingView(isEndingViewActive: $isEndingViewActive)
                } else {
                Button(“Going to End View”) {
                   isEndingViewActive = true
                }
            }
        }
    }
}

struct EndingView: View {    
    @Binding private var isEndingViewActive: Bool
    HStack {   
            var body: some View {
                Button(“Going Back to Initial View”) {
                isEndingViewActive = false
                }
        }
    }
}
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @State
  • User mentioned (0): @Binding
  • Low reputation (1):
Posted by: Norberto Carbonell

79151475

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

1 - Follow this documentation -> https://tailwindcss.com/docs/guides/create-react-app

2 - add this -> npm i postcss 3 - add this -> npm i autoprefixer 4 - create manually this file in your project -> postcss.config.js 5 - add below code inside of postcss.config.js

export default {
    plugins: {
      tailwindcss: {},
      autoprefixer: {},
    },
  }

Reasons:
  • Blacklisted phrase (1): this document
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Cavidan Bagiri

79151463

Date: 2024-11-02 19:46:36
Score: 4
Natty: 5
Report link

Worked perfectly fine for me, thank you.

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: simbayi kativu

79151433

Date: 2024-11-02 19:18:30
Score: 1
Natty:
Report link

in flutter , copy app/build.gradle

compileOptions {
    sourceCompatibility = JavaVersion.VERSION_1_8
    targetCompatibility = JavaVersion.VERSION_1_8
}

kotlinOptions {
    jvmTarget = JavaVersion.VERSION_1_8
}

past to the Flutter Plugins/[packageName]/android/app/build.gradle

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

79151428

Date: 2024-11-02 19:16:29
Score: 1.5
Natty:
Report link

Clean, simple and code readable

Swap the bullet (-) mark and that's all

description 1

description 2

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

79151418

Date: 2024-11-02 19:09:28
Score: 3
Natty:
Report link

This issue happened with me but when I check the df -h it was 100% after delete some of file it's working normally .

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

79151400

Date: 2024-11-02 18:58:25
Score: 2.5
Natty:
Report link

I have found a solution to the problem:

Although the Android manifest file was configured correctly, the “supported urls” setting on my test device was not set correctly.

The setting can be found under

Apps > YourApp > default settings > supported web addresses

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

79151397

Date: 2024-11-02 18:57:25
Score: 2.5
Natty:
Report link
Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Klaudiusz Prusaczyk

79151394

Date: 2024-11-02 18:54:24
Score: 6
Natty: 7
Report link

can you stop the command after a certain amount of seconds?

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): can you
  • Low reputation (1):
Posted by: Jason Harmon

79151392

Date: 2024-11-02 18:53:24
Score: 4.5
Natty: 5
Report link

thx @t.m.adam, i managed to hack minecraft license verification with this

Reasons:
  • Blacklisted phrase (1): thx
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Cucuzacu Zacu

79151386

Date: 2024-11-02 18:50:22
Score: 2
Natty:
Report link

Check this video https://www.youtube.com/watch?v=xw5SJZnTWp4&t=224s

i noticed while trying this code which can help make a function to support currying, notice line 6 where return have (), without parentheses this code does not have capability to return a executable curried function

const addUncurried = (a, b) => a + b;
const curry = 
    (targetFunction, collectedArguments = []) => {
          return (...currentArguments) => {
              return (allArguments => {
                return (
                    allArguments.length >= targetFunction.length 
                    ? targetFunction(...allArguments) 
                    : curry(targetFunction, allArguments)
                )
              })([
                ...collectedArguments,
                ...currentArguments,
            ])
          }
    }
        
   
const addCurried = curry(addUncurried);
const increment = addCurried(2); // 6
console.log('increment',increment(4));
console.log('addCurried',addCurried(1,4)); // 5 
console.log('addCurried',addCurried(1)(3)); // 4

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Blacklisted phrase (1): Check this video
  • Blacklisted phrase (1): this video
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Vinay Rajput

79151384

Date: 2024-11-02 18:49:22
Score: 1
Natty:
Report link

You may use os.path.split(os.path.split("C:\Users\Name\New\Data\Folder1\Folder1-1")[0])[1] construction: it will produce "Folder1" Sure, if I understood right what your issue is.

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

79151370

Date: 2024-11-02 18:41:20
Score: 3
Natty:
Report link

@richard-barraclough

Please check the following starter projects:



Screenshot

image

Let us know if you need any help.

Reasons:
  • Blacklisted phrase (1): any help
  • No code block (0.5):
  • User mentioned (1): @richard-barraclough
  • Low reputation (0.5):
Posted by: Vikram Reddy

79151363

Date: 2024-11-02 18:38:19
Score: 3.5
Natty:
Report link

Not sure if you're still looking for the solution, but you can do this:

https://forum.edgeimpulse.com/t/error-compiling-arduino-library-for-xiao-esp32s3-sense/8901

The bad thing is you're disabling esp NN when using this, so your program won't be nearly as fast

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

79151335

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

I found that this is the endpoint i was looking for: https://api.slack.com/methods/functions.completeSuccess

now the workflow step ends in success mode.

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Markus Berg

79151331

Date: 2024-11-02 18:21:16
Score: 2.5
Natty:
Report link

Make you sure you are using 64 bit compiler. I managed to recreate the problem but it seems like it doesn't work on 32bit also use directly bcdedit without any full path. It's like a drivers. x86 driver doesn't work on x64 etc. Also if you are using 32 bit then use 32 bit compiler.

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

79151325

Date: 2024-11-02 18:15:15
Score: 1.5
Natty:
Report link

To capture stderr, use capture2() which returns STDOUT and STDERR.

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

79151317

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

Thanks @margusl,

using your code I was able to create the following for loop for those that are curious.

 #create empty list
store_info_0 <- list()

#loop over all_store_urls
for (i in 1:length(all_store_urls)) {
  # set row specific url
  html <- read_html(all_store_urls[i])
  
  # Extract information
  store_info_0[[i]] <- list(
    Name = html %>% html_element(".store-details h1") %>% html_text(trim = TRUE),
    Address = html %>% html_element(".store-details .store-address") %>% html_text(trim = TRUE),
    Phone   = html %>% html_element(".store-details .store-phone") %>% html_text(trim = TRUE),
    Missing = html %>% html_element(".store-details .not-present") %>% html_text(trim = TRUE)
  ) %>% 
  tibble::as_tibble(name = "web")
}



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

79151314

Date: 2024-11-02 18:08:14
Score: 2.5
Natty:
Report link

If you're initializing something (i.e. the amount of data are small), you could prep the schema in a script by connecting to a ":memory:" database and resolve all of the column challenges, then write the fully polished file out to disk.

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

79151313

Date: 2024-11-02 18:08:14
Score: 1
Natty:
Report link

In makeStyles you should define

  card: {
    width: '360px',
    maxWidth: '100%',
    height: 'fit-content',
    '& .buttonContainer': {
      visibility: 'hidden',
    },
    ':hover': {
      '& .buttonContainer': {
        visibility: 'visible',
      },
    },
  },

and the button container should have the class buttonContainer

Working code: https://stackblitz.com/edit/ff53e2-zpmwug?file=src%2Fexample.tsx

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

79151301

Date: 2024-11-02 18:04:13
Score: 1.5
Natty:
Report link

change

from pydantic import BaseModel

to

from pydantic_settings import BaseModel

and install pydantic_settings like so:

pip install pydantic_settings
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jarvis101

79151291

Date: 2024-11-02 18:01:12
Score: 1
Natty:
Report link

I think I've solved my question if someone also has such a problem, then here's what I did first, I thought that if I didn't run the .cpp file itself, but run the compiled one.exe so the whole Russian language in this case begins to be written in utf-8 encoding and is correctly entered into the database. also, for correct output to the console, I added the following code to the main function

    setlocale(LC_ALL, "ru");
    SetConsoleCP(65001); 
    SetConsoleOutputCP(65001);

if you follow my method, everything will work, although I understand that most likely there are ways for the IDE to work correctly if there are other solutions, I will be happy to listen to them and thank you to everyone who tried to help

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Григорий Жидков

79151284

Date: 2024-11-02 17:58:11
Score: 1.5
Natty:
Report link
def calc_pi():

num = 3
ans = 0
sign = '+'
for i in range(1,1000000):
    if sign == '+':
        ans += (1/num)
        sign = '-'
        
    else:
        ans -= (1/num)
        sign = '+'

    num += 2

print(4 * (1-ans))
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: marz

79151278

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

I'll comment what was the issue FOR ME, just in case someone needs it: mavenLocal().

Yes, really. Even though the correct online repo is set, gradle chose to ignore it, and continues to do so when I re-add it. Luckily, I don't require it.

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

79151274

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

ran into the issue trying to locate UserRefID and found a solution. Apparently, when you follow their "OAuth2/Authorization Guide", you can get the needed data if you run a GET call:

curl --location --request GET 'https://api.honeywell.com/v2/locations?apikey=CONSUMERKEY' --header 'Authorization: Bearer YOURTOKEN'

The JSON that comes out has the UserID. So, it is indeed the UserRefID (2352951) :

"users": [ { "userID": 2352951, "username": "[email protected]", "firstname": "G", "lastname": "D", "created": 16335504, "deleted": -6213596800, "activated": true, "connectedHomeAccountExists": true, "locationRoleMapping": [ { "locationID": 37316221, "role": "Adult", "locationName": "Home", "status": 1 } ], "isOptOut": "False", "isCurrentUser": true }, {

I hope someone finds this useful.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user28098734

79151243

Date: 2024-11-02 17:44:08
Score: 3
Natty:
Report link

...and what about the more useful script(s) allowing html interface to existing data table(s) spreadsheet db and edit the same? IE mySQL or other db. html GUIs are easy enough but the data accessibility just isn't a part of html - unfortunately it never was a part of the intended specs - however, in today's world it (html) NEEDS to be revised to do so! The 80's are over! No one wants just visibility only, but real time editing also.

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: cliff

79151242

Date: 2024-11-02 17:44:08
Score: 1
Natty:
Report link

I was also facing the same issue. In my case the problem was after making code changes in I saved them, But didn't re-run the npm run start command. After I did stop the existing npm and ran the above command, it started to work.

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

79151231

Date: 2024-11-02 17:41:08
Score: 2
Natty:
Report link

You could use the method place in order to adjust the label correspoding to the element 1.

The code:

    # Crear frame and pack it
    self.test = tk.Frame(self, width=60, height=40, bg=COLOUR) 
    self.test.pack_propagate(False)
    self.test.pack(pady=20, padx=20)

    # Crear label for "A"
    self.testletter = tk.Label(self.test, bg=COLOUR, text="A", font=("Helvetica", 16, "bold"))
    self.testletter.place(x=5, y=5)

    # Crear a label for "1"
    self.testsubscript = tk.Label(self.test, bg=COLOUR, text="1", font=("Helvetica", 8, "bold"))
    
    # Ajust "1" below "A"
    self.testsubscript.place(x=23, y=20)`
Reasons:
  • Blacklisted phrase (2): Crear
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: raul sanchez

79151230

Date: 2024-11-02 17:41:08
Score: 3
Natty:
Report link

I found that the path name has to be fully qualified and that the partial path in the base uploader file will not work (at least on this implimentation on Rails PlayGround).

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

79151221

Date: 2024-11-02 17:38:07
Score: 0.5
Natty:
Report link

Based on @Michael Kay's comment, switching the XSLT processor from Xalan to Saxon solves this problem. You have to add saxon-he-12.5.jar and xmlresolver-5.2.2.jar from Saxon-HE 12.5 to the classpath, and set the system property with -Djavax.xml.transform.TransformerFactory=net.sf.saxon.TransformerFactoryImpl. This solution has the advantage of requiring no changes to the source code.

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Michael
  • Self-answer (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: SATO Yusuke

79151213

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

This might help https://github.com/JairajJangle/react-native-visibility-sensor, a modern and flexible module that detects whether a component is in the viewport or not in React Native. This module is made keeping the functionality offered by react-visibility-sensor in mind.

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