79401738

Date: 2025-01-31 04:07:08
Score: 1
Natty:
Report link

Slight change on iOS 18. Follow the steps above from @Mickey16, then modify the requestedScopes (add or remove one), then re-run.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • User mentioned (1): @Mickey16
  • Single line (0.5):
  • High reputation (-1):
Posted by: bdev

79401737

Date: 2025-01-31 04:06:08
Score: 0.5
Natty:
Report link

To solve it,

1- I used reflection to reach private members of class, and escalate the implementation of function getType2CharString that lives inside CFFType1Font and CFFCIDFont, as below to a new class named CffFontPatchUtils. There new getType2CharString is returning "Type2CharString charStr" and "List type2Sequence" at the same time.
WARNING: It is my first time using reflections. I do not understand why there was no compilation error, in the first run.

package org.mabb.fontverter.cff;

import com.tugalsan.api.unsafe.client.TGS_UnSafe;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import org.apache.fontbox.cff.CFFCIDFont;
import org.apache.fontbox.cff.CFFFont;
import org.apache.fontbox.cff.CFFType1Font;
import org.apache.fontbox.cff.CIDKeyedType2CharString;
import org.apache.fontbox.cff.Type2CharString;
import org.apache.fontbox.cff.Type2CharStringParser;
import org.apache.fontbox.type1.Type1CharStringReader;

public class CffFontPatchUtils {

    public static record Result(Type2CharString charStr, List<Object> type2Sequence) {

        public static Result of(Type2CharString charStr, List<Object> type2Sequence) {
            return new Result(charStr, type2Sequence);
        }
    }

    public static Result getType2CharString(CFFFont font, int cidOrGid) {
        if (font instanceof CFFType1Font _font) {
            return CFFType1Font_getType2CharString(_font, cidOrGid);
        }
        if (font instanceof CFFCIDFont _font) {
            return CFFCIDFont_getType2CharString(_font, cidOrGid);
        }
        return null;
    }

    private static Result CFFType1Font_getType2CharString(CFFType1Font font, int gid) {
        String name = "GID+" + gid; // for debugging only
        return CFFType1Font_getType2CharString(font, gid, name);
    }

    // Returns the Type 2 charstring for the given GID, with name for debugging
    private static Result CFFType1Font_getType2CharString(CFFType1Font font, int gid, String name) {
        return TGS_UnSafe.call(() -> {
            var field_charStringCache = font.getClass().getDeclaredField("charStringCache");
            field_charStringCache.setAccessible(true);
            var charStringCache = (Map<Integer, Type2CharString>) field_charStringCache.get("charStringCache");

            var type2 = charStringCache.get(gid);
            List<Object> type2seq = null;
            if (type2 == null) {

                var field_charStrings = font.getClass().getDeclaredField("charStrings");
                field_charStrings.setAccessible(true);
                var charStrings = (byte[][]) field_charStrings.get("charStrings");

                byte[] bytes = null;
                if (gid < charStrings.length) {
                    bytes = charStrings[gid];
                }
                if (bytes == null) {
                    bytes = charStrings[0]; // .notdef
                }

                var method_getParser = font.getClass().getDeclaredMethod("getParser");
                method_getParser.setAccessible(true);
                var parser = (Type2CharStringParser) method_getParser.invoke(font);

                var field_globalSubrIndex = font.getClass().getDeclaredField("globalSubrIndex");
                field_globalSubrIndex.setAccessible(true);
                var globalSubrIndex = (byte[][]) field_globalSubrIndex.get("globalSubrIndex");

                var method_getLocalSubrIndex = font.getClass().getDeclaredMethod("getLocalSubrIndex");
                method_getLocalSubrIndex.setAccessible(true);
                var getLocalSubrIndex = (byte[][]) method_getLocalSubrIndex.invoke(font, gid);

                type2seq = parser.parse(bytes, globalSubrIndex, getLocalSubrIndex, name);

                var field_reader = font.getClass().getDeclaredField("reader");
                field_reader.setAccessible(true);
                var reader = (Type1CharStringReader) field_reader.get("reader");

                var method_getDefaultWidthX = font.getClass().getDeclaredMethod("getDefaultWidthX");
                method_getDefaultWidthX.setAccessible(true);
                var getDefaultWidthX = (Integer) method_getDefaultWidthX.invoke(font, gid);

                var method_getNominalWidthX = font.getClass().getDeclaredMethod("getNominalWidthX");
                method_getNominalWidthX.setAccessible(true);
                var getNominalWidthX = (Integer) method_getNominalWidthX.invoke(font, gid);

                type2 = new Type2CharString(reader, font.getName(), name, gid, type2seq, getDefaultWidthX, getNominalWidthX);
                charStringCache.put(gid, type2);
            }
            return Result.of(type2, type2seq);
        });
    }

    private static Result CFFCIDFont_getType2CharString(CFFCIDFont font, int cid) {
        return TGS_UnSafe.call(() -> {
            var field_charStringCache = font.getClass().getDeclaredField("charStringCache");
            field_charStringCache.setAccessible(true);
            var charStringCache = (Map<Integer, CIDKeyedType2CharString>) field_charStringCache.get("charStringCache");

            var type2 = charStringCache.get(cid);
            List<Object> type2seq = null;
            if (type2 == null) {
                var gid = font.getCharset().getGIDForCID(cid);

                var field_charStrings = font.getClass().getDeclaredField("charStrings");
                field_charStrings.setAccessible(true);
                var charStrings = (byte[][]) field_charStrings.get("charStrings");

                byte[] bytes = null;
                if (gid < charStrings.length) {
                    bytes = charStrings[gid];
                }
                if (bytes == null) {
                    bytes = charStrings[0]; // .notdef
                }

                var method_getParser = font.getClass().getDeclaredMethod("getParser");
                method_getParser.setAccessible(true);
                var parser = (Type2CharStringParser) method_getParser.invoke(font);

                var field_globalSubrIndex = font.getClass().getDeclaredField("globalSubrIndex");
                field_globalSubrIndex.setAccessible(true);
                var globalSubrIndex = (byte[][]) field_globalSubrIndex.get("globalSubrIndex");

                var method_getLocalSubrIndex = font.getClass().getDeclaredMethod("getLocalSubrIndex");
                method_getLocalSubrIndex.setAccessible(true);
                var getLocalSubrIndex = (byte[][]) method_getLocalSubrIndex.invoke(font, gid);

                type2seq = parser.parse(bytes, globalSubrIndex, getLocalSubrIndex, String.format(Locale.US, "%04x", cid));

                var field_reader = font.getClass().getDeclaredField("reader");
                field_reader.setAccessible(true);
                var reader = (Type1CharStringReader) field_reader.get("reader");

                var method_getDefaultWidthX = font.getClass().getDeclaredMethod("getDefaultWidthX");
                method_getDefaultWidthX.setAccessible(true);
                var getDefaultWidthX = (Integer) method_getDefaultWidthX.invoke(font, gid);

                var method_getNominalWidthX = font.getClass().getDeclaredMethod("getNominalWidthX");
                method_getNominalWidthX.setAccessible(true);
                var getNominalWidthX = (Integer) method_getNominalWidthX.invoke(font, gid);

                type2 = new CIDKeyedType2CharString(reader, font.getName(), cid, gid, type2seq, getDefaultWidthX, getNominalWidthX);
                charStringCache.put(cid, type2);
            }
            return Result.of(type2, type2seq);
        });
    }
}
  1. Then, I updated the in the function CffFontAdapter.getGlyphs(), dependency at package org.mabb.fontverter.cff, in fontverter, as below.
    public List<CffGlyph> getGlyphs() throws IOException {
        List<CffGlyph> glyphs = new ArrayList<CffGlyph>();
        for (GlyphMapReader.GlyphMapping mapOn : getGlyphMaps()) {
            CffGlyph glyph = createGlyph();
//            Type2CharString charStr = font.getType2CharString(mapOn.glyphId);
            var result = CffFontPatchUtils.getType2CharString(font, mapOn.glyphId);
//            glyph.readType2Sequence(charStr.getType2Sequence());
            glyph.readType2Sequence(result.type2Sequence());
            glyph.map = mapOn;
//            glyph.charStr = charStr;
            glyph.charStr = result.charStr();
            glyphs.add(glyph);
        }
        return glyphs;
    }
  1. I tested the pdf to html conversion with pdf files @ https://github.com/py-pdf/sample-files, most of them worked. Some failed ones are like 007-imagemagick-images, 008-reportlab-inline-image...
Reasons:
  • Blacklisted phrase (1): thX
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Tugalsan Karabacak

79401736

Date: 2025-01-31 04:05:06
Score: 7 🚩
Natty: 4.5
Report link

Have you figured out? I am having the exactly issue.

Reasons:
  • RegEx Blacklisted phrase (3): Have you figured out
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: hu wang

79401730

Date: 2025-01-31 03:57:05
Score: 3.5
Natty:
Report link

I need to change the PHP version of my website to 7.1, I am using Ubuntu 22 on cPanel

Kindly provide me the proper guidance on how to perform this.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Masakage Yamagata

79401727

Date: 2025-01-31 03:56:05
Score: 1
Natty:
Report link

An example of a proof with a function.

Definition contrapositive :
  forall P : Prop,
  forall Q : Prop,
  (~Q -> ~P) -> P -> Q 
:= 
fun 
  (P : Prop) 
  (Q : Prop) 
  (H : ~Q -> ~P) 
  (p : P) => 
  let nnq : ~ ~ Q := (fun (e : ~Q) => H e p) in 
  let H' :  ~ ~ Q -> Q := NNPP Q in 
  (H' nnq) 
.
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: illusory0x0

79401726

Date: 2025-01-31 03:55:04
Score: 2.5
Natty:
Report link

result = np.zeros((2, 3*3)) result[:,::4]=data[:,:] result.shape=(2,3,3)

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Алексей Козин

79401709

Date: 2025-01-31 03:32:00
Score: 4.5
Natty:
Report link

Partition functionality does not exist.

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

79401707

Date: 2025-01-31 03:29:59
Score: 2
Natty:
Report link

An alternative is to run

poetry run jupyter lab

And use existing jupyter server option in vscode.

Select existing jupyter environment in options for kernel selection

Enter the copied url along with the token

Create an alias

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

79401706

Date: 2025-01-31 03:29:59
Score: 2.5
Natty:
Report link

It's like losing a piece of your online existence when your account is disabled. All of your saved memories, social connections, and amusing cat videos vanished in an instant. But don't freak out! Here's a simple method to restore your account's functionality. Marie, a tech specialist and member of the Meta staff, can help. You can reach her at [email protected].

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

79401697

Date: 2025-01-31 03:20:55
Score: 6.5 🚩
Natty:
Report link

Did you get the above resolved , i am also trying to use the same scenario managed apache flink to documentdb

Reasons:
  • RegEx Blacklisted phrase (3): Did you get the
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: vijayalakshmi chanumolu

79401696

Date: 2025-01-31 03:20:55
Score: 1
Natty:
Report link
  1. Preventing Repeated Includes (Header Guards) When a header file is included multiple times, it can cause redefinition errors. To prevent this, header guards are used:

#ifndef MY_HEADER_H // Check if MY_HEADER_H is not defined #define MY_HEADER_H // Define MY_HEADER_H 2. Preventing Code Duplication in the Preprocessed Output When you copy or include a file multiple times in a program, the preprocessor simply expands the file contents. To avoid multiple definitions:

Use header guards or #pragma once in headers. Declare functions in headers (.h) and define them in source files (.c). Use extern for global variables to avoid duplication. #ifndef MYHEADER_H #define MYHEADER_H

The function is declared in the header but defined only once in , preventing multiple definitions.

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

79401687

Date: 2025-01-31 03:13:53
Score: 3.5
Natty:
Report link

Since you mentioned copying values. It is an option available in debug mode.

Is this what you have seen in the past?

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: Minxin Yu - MSFT

79401686

Date: 2025-01-31 03:12:52
Score: 4
Natty:
Report link

i cant understand your answer correctly could you please simplify

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

79401683

Date: 2025-01-31 03:11:51
Score: 7 🚩
Natty: 4
Report link

Did you ever figure this out? I'd like to get info from a live broadcast using this but I have not been able to get it to work.

Reasons:
  • RegEx Blacklisted phrase (3): Did you ever figure this out
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Chris_NSB

79401682

Date: 2025-01-31 03:10:51
Score: 2
Natty:
Report link

I update to flutter version 3.27.3 and got same above error,

Resolve by update new_version_plus to new version 0.1.0

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

79401676

Date: 2025-01-31 03:06:50
Score: 1.5
Natty:
Report link

The challenge of using artificial intelligence in Python for market analysis and forecasting lies in balancing model complexity and data quality, as even with extensive tuning, randomness often persists in predictions. To refine your approach, consider leveraging advanced A.I. tools and platforms that simplify experimentation and optimization. For instance, Twix.Chat offers a free A.I. chat platform (4o) that can assist in brainstorming solutions, troubleshooting models, and exploring new strategies for improving market forecasts. Explore its capabilities at (https://twix.chat).

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Straight-Dog-8569

79401673

Date: 2025-01-31 03:05:49
Score: 0.5
Natty:
Report link

If the forms share state between them (strongly coupled), that could lead to code maintenance, readability and performance problems on larger projects, as well as a way for the end-user to inadvertently change the state of form A while editing form B (usually an undesired behavior in my experience). Though sometimes that might be the desired outcome such as in more complex forms. Here's a case for multiple forms which you may find useful: How should I structure my multiple forms (paginated) to be able to submit both at the same time.

If the forms merely exist side by side but have independent state variables, then you could keep them on the same component. Suppose you have a component UserProfilePage.jsx which renders the user's profile as distinct sections which you chose to implement their editing workflow with a <form> HTML tag for each section. This way you can keep each section editing as separate state variables, like when a user edits different sections of his profile page but opts to save only one of the sections (i.e. form submit).

Although I tend to lean towards the one form = one component solution, either approach may be fine depending on what you want to implement. But without more details about your project it's difficult to give a conclusive answer as to whether it'd be best to have the two forms on a single component or on separate components.

Reasons:
  • Blacklisted phrase (1): How should I
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Matheus Lemos

79401671

Date: 2025-01-31 03:03:49
Score: 3
Natty:
Report link

Where is the VS Code runner looking? It would be helpful to know how you're calling it in CLI as well.

It kind of sounds to me like VS Code is considering workspace/ to be the root of the project, so the pom.xml only works correctly when it's effectively serving as the POM for workspace/.

Somehow, the IDE doesn't consider Repo 1/ as its own maven project. When you test in CLI, which directory are you calling mvn test? Are you calling it from Repo 1/?

Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Where is the
  • Low reputation (1):
Posted by: njsoly

79401662

Date: 2025-01-31 02:54:47
Score: 0.5
Natty:
Report link

You can configure IntelliSense to show or hide items from unimported namespaces.

Go to Tools > Options > Text Editor > C# > IntelliSense and look for the option Show items from unimported namespaces. Disabling this might help reduce the unwanted suggestions.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jiachen Li-MSFT

79401659

Date: 2025-01-31 02:51:46
Score: 1
Natty:
Report link

In C++26 you can just put the structured binding declaration as the condition. The test is on the whole object, precisely because of this sort of use case.

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

79401651

Date: 2025-01-31 02:37:44
Score: 1
Natty:
Report link

You can try wrapping the function, put all of the filters / actions there For example

function my_init() 
{
    add_filter("asdasd", static function() {
        echo 'asdf';
    });
}
my_init();

Then on phpunit you can declare to collect coverage from my_init

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

79401634

Date: 2025-01-31 02:12:40
Score: 1
Natty:
Report link

Assuming Java 15 or later

public static enum SortDirection { ASC, DESC };

public static Comparator<Student> nameCompare(SortDirection sortDirection)
{
    return switch (sortDirection) {
        case ASC -> Comparator.comparing(Student::getName);
        case DESC -> Comparator.comparing(Student::getName).reversed();
        case null -> throw new AssertionError(sortDirection);
    };
}
Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Ane De Jong

79401629

Date: 2025-01-31 02:02:39
Score: 1
Natty:
Report link

I suggest enhancing Kierra's answer by adding "FormTheme" to maintain A2lix tabs editing.

//...
    ->setFormType(TranslationsType::class)
    ->addFormTheme('@A2lixTranslationForm/bootstrap_5_layout.html.twig')
//...
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: jrk

79401627

Date: 2025-01-31 02:00:38
Score: 0.5
Natty:
Report link

I had the same problem. You probably answered no when you were promted

Would you like to install database support (installs laminas-db)? y/N

You might need to follow the installation and start again. https://docs.laminas.dev/tutorials/getting-started/skeleton-application/

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Alex Chen

79401625

Date: 2025-01-31 01:57:38
Score: 1
Natty:
Report link

One- and two-pass assemblers may look the same at the level you describe, but the details are not the same. The symbol table in a two-pass assembler is just a list of names and values. Pass 2 does reparse but it also handles all references the same way. Runtime memory usage depends on the number of symbols in your program.

The symbol table in a one-pass assembler has to store forward references, and you have to write the algorithm to resolve them when the symbols are defined. Is that worth the benefit of only parsing the source once? Different real-world assemblers answer that differently. Also runtime memory usage depends on the number of symbols and the number of forward references in your program.

You can improve one-pass assemblers with some tricks. On many mainframes and some minicomputers, all instructions are the same size. If all instructions can hold an address and the memory can hold the entire program being assembled, a one-pass assembler can store the forward references in linked lists inside the program itself. Or the assembler can write out the binary without fixing the forward references and let the loader fix them.

One major reason for one-pass assemblers is slow I/O devices. If they're magnetic tape drives the computer has to rewind the tape between passes. If they're punched paper tape readers or punch card readers a human has to rewind the tape or reload the cards. Elliminating a pass saved significant time.

One major reason for two-pass assemblers is a sophisticated input language, especially with macros. IBM mainframes heavily used macros. They could take arguments, and could expand to specialized instruction sequences depending on the arguments. So you had to expand all the macros and assemble all the code to find the size of the output, so it was easiest to use two passes.

Some example assemblers:

(1957) SOAP II for the IBM 650 automatically changed the memory layout of the output program to speed up execution. That was possible because of the 650's instruction format, and important because of the 650's magnetic drum memory which had variable access times.

(1960) LGPSAP for the General Precision LGP-30 was a straightforward two-pass assembler, assembling directly into memory but also typing a listing. I'm not sure if you could punch a binary paper tape. Someone created a faster and more powerful one-pass assembler called SCOOP. SCOOP also assembled directly into memory and reused the LGPSAP symbol-table format. In fact the SCOOP code seems to be a patch to LGPSAP! The LGP-30 (from 1956) was not a powerful computer, but you could sit at it, type commands, and get an immediate response -- rare in the 1950s and 1960s.

(1961) SCAT for the IBM 709 had macros and used a compressed format to store assembled programs. You could update an already-assembled program with new assembly-language cards.

(1962) FAP for the IBM 709 and 7090 also had macros, unrelated to SCAT.

(1962) MACRO for the DEC PDP-1 put all the opcodes in the symbol table, so the "instruction" input really just added symbol values, or you could use other arithmetic operations. It used short symbol names and a compressed format for macro definitions, so that it could assemble itself on a computer with 4096 18-bit words of memory.

(1974) FAIL for the DEC PDP-10 had macros and many other fancy features, yet used one pass for speed. Arguments in favor of one pass (on page 12) look quite similar to yours. FAIL left all the forward references, including complicated arithmetic expressions, to the loader.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: D. Peschel

79401623

Date: 2025-01-31 01:56:37
Score: 1
Natty:
Report link

I figured it out: it was coming from paper format(A4) in Reporting. Adjust the Header spacing to configured the space you needed.

Reasons:
  • Whitelisted phrase (-2): I figured it out
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: SantoshKumar

79401622

Date: 2025-01-31 01:56:37
Score: 1
Natty:
Report link

Perhaps you should try to add the width and height.
For example:

.bg-image{width:100%;height:100%;}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: John Shang

79401616

Date: 2025-01-31 01:47:35
Score: 1.5
Natty:
Report link

Currently, Visual Studio 2022 does not provide a built-in way to set this option as the default for all future constructor generations.

I recommend that you could give feedback in Visual Studio Developer Community.

If you post feedback, you can provide a link to it here to see the progress of the issue.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Jiachen Li-MSFT

79401611

Date: 2025-01-31 01:38:33
Score: 1
Natty:
Report link

The solution to this was to update Gradle to the latest version. I had thought that it was updated, but apparently I was wrong. If anyone else is having this same issue, make sure both Gradle and the Gradle wrapper are up to date by running the following command twice: ./gradlew wrapper --gradle-version latest

Find more information here: https://docs.gradle.org/current/userguide/gradle_wrapper.html#sec:upgrading_wrapper

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

79401610

Date: 2025-01-31 01:37:33
Score: 1
Natty:
Report link

I had the same. I have changed my amplifyconfiguration.json file to amplify_outputs.json and it worked.

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

79401607

Date: 2025-01-31 01:33:32
Score: 2
Natty:
Report link

If you want to use environmental variables in you bash (or python) script makes sure

enable_environment_macros=1

in etc/nagios/cfg

Otherwise you can pass it as an argument on the command line.

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

79401588

Date: 2025-01-31 01:17:29
Score: 0.5
Natty:
Report link

import SwiftData

@Model class UserSession { var uid: String var lastLogin: Date

init(uid: String) {
    self.uid = uid
    self.lastLogin = Date()
}

}

mport SwiftUI import SwiftData

struct ContentView: View { @Query(sort: \UserSession.lastLogin, order: .reverse) private var sessions: [UserSession]

var body: some View {
    if let lastSession = sessions.first {
        HomeView(session: lastSession)  // Auto-login if session exists
    } else {
        LoginView()  // Show login if no session found
    }
}

}

import SwiftUI import SwiftData

struct LoginView: View { @Environment(.modelContext) private var modelContext

var body: some View {
    Button("Login") {
        let uid = "123456"  // Replace with actual user ID
        let session = UserSession(uid: uid)
        modelContext.insert(session)  // Save session to SwiftData
    }
}

}

import SwiftUI import SwiftData

struct HomeView: View { let session: UserSession

var body: some View {
    VStack {
        Text("Welcome back, \(session.uid)!")
        Text("Last login: \(session.lastLogin.formatted(date: .abbreviated, time: .shortened))")
        Button("Logout") {
            // Handle logout by deleting the session
            if let modelContext = Environment(\.modelContext).wrappedValue {
                modelContext.delete(session)
            }
        }
    }
}

}

var sharedModelContainer: ModelContainer = {
    let schema = Schema([UserSession.self])
    let container = try! ModelContainer(for: schema)
    return container

}

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

79401561

Date: 2025-01-31 00:54:24
Score: 3.5
Natty:
Report link

Well, you seem to have left something out. Waaaaaaay up at the top you introduced SomethingHappened += with a curious "myObj.SomethingHappened". What is myObj? Where did myObj come from? "this." doesn't work. How typically microsoft, you almost explain it, buuuuut not quite.

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

79401555

Date: 2025-01-31 00:48:23
Score: 1
Natty:
Report link

You can't revive a banned bot or skip the restriction if BotFather has flagged your bot as malicious. Telegram enforces these bans automatically, and you'll need to wait for the one-month block to expire. Once it's over, you're free to create or restore bots again. your only option is to contact Telegram support, but they rarely reverse these decisions. During your ban, you can still work on your bot's code offline or in a test environment, but you won't be able to register or manage it through BotFather until the restriction is lifted.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Kamyar Safari

79401550

Date: 2025-01-31 00:44:22
Score: 1.5
Natty:
Report link

Short answer: Update your android studio.

Slightly less short answer :

https://developer.android.com/studio/releases

      Android Studio version          Required AGP version
  Ladybug Feature Drop | 2024.2.2           3.2-8.8
  Ladybug | 2024.2.1                        3.2-8.7  // notice how this version
                                                     // does not support 8.8
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Yuval Roth

79401545

Date: 2025-01-31 00:38:21
Score: 1
Natty:
Report link

@BenzyNeez gave such an elegant answer, I thought I'd share a reusable view, based on Benzy's genius.

import SwiftUI

struct FancyNavTitleScrollView<TitleView: View, NavBarView: View, Content: View>: View {
    @State private var showingScrolledTitle = false
    
    let navigationTitle: String
    let titleView: () -> TitleView
    let navBarView: () -> NavBarView
    var transitionOffest: CGFloat = 30
    let content: () -> Content
    
    var body: some View {
        GeometryReader { outer in
            ScrollView {
                VStack {
                    titleView()
                        .opacity(showingScrolledTitle ? 0 : 1)
                    content()
                }
                .background {
                    scrollDetector(topInsets: outer.safeAreaInsets.top)
                }
            }
        }
        .toolbar {
            ToolbarItem(placement: .principal) {
                navBarView()
                    .opacity(showingScrolledTitle ? 1 : 0)
                    .animation(.easeInOut, value: showingScrolledTitle)
            }
        }
        .navigationTitle(navigationTitle)
        .navigationBarTitleDisplayMode(.inline)
    }
    
    private func scrollDetector(topInsets: CGFloat) -> some View {
        GeometryReader { proxy in
            let minY = proxy.frame(in: .global).minY
            let isUnderToolbar = minY - topInsets < -transitionOffest
            Color.clear
                .onChange(of: isUnderToolbar) { _, newVal in
                    showingScrolledTitle = newVal
                }
        }
    }
}


#Preview {
    NavigationStack {
        FancyNavTitleScrollView(
            navigationTitle: "Yesterday",
            titleView: {
                Text("Today")
                    .font(.custom("Chalkboard SE", size: 36))
                    .textCase(nil)
                    .bold()
            },
            navBarView: {
                Text("Today")
                    .font(.custom("Chalkboard SE", size: 16))
                    .foregroundStyle(Color.red)
            },
            content: {
                VStack {
                    ForEach(1...5, id: \.self) { val in
                        NavigationLink("List item \(val)") {
                            Text("List item \(val)")
                        }
                    }
                }
                .foregroundStyle(.indigo)
                .background(.indigo.opacity(0.1))
                .scrollContentBackground(.hidden)
                .toolbarBackground(.indigo.opacity(0.1))
                .toolbar {
                    ToolbarItem(placement: .topBarLeading) {
                        Image(systemName: "gearshape.fill")
                    }
                    ToolbarItem(placement: .topBarTrailing) {
                        Image(systemName: "calendar")
                            .padding(.trailing, 20)
                    }
                    ToolbarItem(placement: .topBarTrailing) {
                        Image(systemName: "plus.circle.fill")
                    }
                }
            }
        )
    }
}
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @BenzyNeez
  • Looks like a comment (1):
  • Low reputation (0.5):
Posted by: levous

79401543

Date: 2025-01-31 00:34:20
Score: 1
Natty:
Report link

it sounds like you're facing an issue where the RecyclerView works on Android 11 but not on Android 13. Here are a few things to check:

Permissions: Make sure your app has the necessary permissions for Android 13. For example, permissions for accessing storage or other resources may have changed.

API Changes: There might be changes in the Android 13 API that affect how RecyclerView behaves. Check if any deprecated methods or new requirements need to be handled differently for Android 13.

Target SDK: Verify that your targetSdkVersion in build.gradle is set properly and you're using the appropriate libraries for Android 13.

Logging: Try adding log statements to see if the RecyclerView is being populated correctly or if it's failing silently on Android 13.

Compatibility: Test the RecyclerView with a simple implementation to ensure there's no compatibility issue with newer Android versions.

Let me know if this helps!

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

79401539

Date: 2025-01-31 00:29:20
Score: 1.5
Natty:
Report link

As Ben Bolker's comment points out, this is now sometimes possible using a ZWJ sequence 🏃‍➡️ as described in https://unicode.org/reports/tr51/#Direction

(on my system, that displays as a guy running with a little right-arrow box next to him — and that's likely how it displays on your system, too! but in some systems it would display as a man running rightwards)

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

79401532

Date: 2025-01-31 00:20:18
Score: 0.5
Natty:
Report link

All credit goes to Estus on this. Here's the working Vite config for those who may encounter the same problem. When trying to load an externally built Vue component at runtime dynamically, it needs to be in ESM format:

import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';

export default defineConfig({
  plugins: [vue()],
  define: {
    'process.env': {}
  },
  publicDir: false,
  build: {
    outDir: 'dist',
    lib: {
      entry: './src/AsyncComponentName.vue',
      name: 'AsyncComponentName',
      fileName: (format) => `async-component-file.${format}.js`,
      formats: ['es'],
    },
    rollupOptions: {
      output: {
        globals: {
          vue: 'Vue',
        },
        exports: 'default',
        name: 'AsyncComponentName'
      },
    },
  },
});
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Wilson Revehl

79401527

Date: 2025-01-31 00:17:17
Score: 0.5
Natty:
Report link

For anyone still looking for this in Visual Studio Community 2022, it's now a 'General' setting named 'Automatic Brace Completion'. There does not seem to be any per-language setting for this feature, as I would have expected.

General Options: Automatic Brace Completion

(As Gautam Jain already wrote, but it wasn't clear to me that that answer was for VS2022 and it lacked a screenshot.)

Personally I find the feature a frustrating one, as the supplied automatic brace does not follow the formatting rules set in the C# Code Style / Formatting options (i.e. in my project, opening and closing braces each on their own line)

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

79401526

Date: 2025-01-31 00:16:17
Score: 1.5
Natty:
Report link

For me Solution was in responding to the initial message that i sent through 'Send Template' ...i think that way it somehow comfortable with sending the direct message the next time i tried...

Even if this one doesnt work , try uplaoding with a document, if you just save your text through 'convert into binary' node and load the variable into your whatsapp node , its gonna workout. hope it helps someone

Reasons:
  • Blacklisted phrase (1): doesnt work
  • Whitelisted phrase (-1): hope it helps
  • No code block (0.5):
  • Low reputation (1):
Posted by: Dawood

79401512

Date: 2025-01-31 00:04:15
Score: 3
Natty:
Report link

I'm interested on how did you convert Yamaha mixing fader value > Midi value? I will try to do a module on max for it, but i'm not a midi expert so if you have help for me it would be great.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: aligato

79401511

Date: 2025-01-31 00:02:14
Score: 0.5
Natty:
Report link

Used the following to correct the 1st Issue:

RULE catch.DVSRoundRobinScheduling.updateServerConnectionPool
CLASS com.nokia.tpapps.cenotificationservice.nsAlgortihm.scheduling.DVSRoundRobinScheduling
METHOD updateServerConnectionPool
BIND
  TPA_LOGGER:Logger = com.alcatel.tpapps.common.common.TPAResources.getLogger();
COMPILE
AT ENTRY
IF ($aInServerList == null || $aInServerList.size() == 0)
DO 
    $aInServerList = java.util.Arrays.asList(new Object[] {"abc", "xyz", "123"});
    TPA_LOGGER.info("[BMAN] DVSRoundRobinScheduling: updateServerConnectionPool aInServerList [" + $aInServerList + "]");
ENDRULE

and it is working.

Need answer to 2nd issue.

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

79401507

Date: 2025-01-31 00:00:13
Score: 3
Natty:
Report link

The short answer is:

rum[order(rum$I1, rum$I2, decreasing=c(TRUE,FALSE),method="radix"),]

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

79401504

Date: 2025-01-30 23:58:13
Score: 3
Natty:
Report link

Use the 409 code, that is used for conflict exceptions, so, it would give a clear idea for the API users.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Néstor Recinos

79401502

Date: 2025-01-30 23:56:12
Score: 4
Natty:
Report link

The icon is now updatded. It tooks more than 10 days. 2 days ago I updated the sitemap to change the homepage update rate from daily to weekly, I am not sure if it helped (maybe allowing more CPU time for other tasks, such as updating the icons).

Anyway that's it, if you have the same issue you can try to update the sitemap to allow more CPU time for updates, or just wait enough time.

Reasons:
  • No code block (0.5):
  • Me too answer (2.5): have the same issue
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Jean-Loup

79401494

Date: 2025-01-30 23:51:11
Score: 0.5
Natty:
Report link

Try to use this command:

docker images --format '{{.Repository}}:{{.Tag}}' --filter "dangling=false" | xargs -rI {} docker pull {}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: zo0M

79401490

Date: 2025-01-30 23:49:09
Score: 4
Natty: 4.5
Report link

That was the best answer. I had been installing and uninstalling all day trying to get the path right. The pkgs folder. That's the ticket.

Question: Where do I run the pips? Same directory?

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

79401489

Date: 2025-01-30 23:48:09
Score: 0.5
Natty:
Report link

Another dataframe might facilitate subsequent operations more easily.

df_new = df_stack_exchange.dtypes.to_frame('Type').reset_index()
df_new.rename(columns={'index':'Name'}, inplace=True)
df_new

    Name    Type
0   store   object
1   worker  int64
2   boxes   int64
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: ThxAlot

79401484

Date: 2025-01-30 23:44:08
Score: 0.5
Natty:
Report link

I had Rails.application.load_tasks at the top of my file, and didn't realize that it was also in spec/support/tasks.rb

Not sure why loading tasks again would cause my task to be called for each load within a spec, but removing the extra load fixed the issue for me.

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

79401483

Date: 2025-01-30 23:44:08
Score: 1
Natty:
Report link

For my application, it was simplest for me to simply apply the "?" nullable-value-type modifier to the properties of the class being used in my Data Grid, and this resolved the issue. This way, the user could enter an "empty" value for an integer - without the grid griping about it. (I have my own custom fluent validation for all of my classes).

public class Machine
{
    public string? Name { get; set; }
    public string? IPAddress { get; set; }
    public int? Port { get; set; }
}
Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: TRexF14

79401468

Date: 2025-01-30 23:35:06
Score: 2
Natty:
Report link

You marked initTts as async and didn't wait for it to resolve before calling a flutterTts method in the next line. You should make the function synchronous, or simply initiate the variable as final, cause asynchrony is not allowed in initState().

Also, some error messages would help identify your error.

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

79401465

Date: 2025-01-30 23:34:06
Score: 2
Natty:
Report link

I made this script that you can use to be able to fast create/open tmux sessions

more about it here

https://github.com/soycarlo99/tmux-sessionizer

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Contains signature (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Carlo

79401464

Date: 2025-01-30 23:33:05
Score: 2
Natty:
Report link

What about this: https://github.com/symfony/polyfill

or simply:

if (!function_exists("mb_trim"))
    {
        function mb_trim($str)
            {
                return preg_replace("/^\s+|\s+$/u", '', $str); 
            };
    };

Vote up if you agree.🤓

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): What
  • Low reputation (0.5):
Posted by: James Anderson Jr.

79401461

Date: 2025-01-30 23:28:04
Score: 4
Natty:
Report link

This issue is fixed now in 4.0.24. issues.redhat.com/browse/BYTEMAN-443

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

79401460

Date: 2025-01-30 23:28:04
Score: 1.5
Natty:
Report link

import sql from "npm:mssql";

(async () => { try { await sql.connect('Server=xxx.xxx.xxx.xxx,1433;Database=yyyyyyyyy;User Id=zz;Password=aaaaa;Encrypt=true'); const result = await sql.queryselect * from Accounts; console.log(result.recordsets); } catch (err) { console.log(Error: ${err}) } })();

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Filler text (0.5): yyyyyyyyy
  • Low reputation (1):
Posted by: kdicus

79401454

Date: 2025-01-30 23:24:02
Score: 7 🚩
Natty: 6.5
Report link

I am running into similar issues with playing videos on Jenkins running on a server. Have you resolved this issue ??

Reasons:
  • RegEx Blacklisted phrase (1.5): resolved this issue ??
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user29439457

79401450

Date: 2025-01-30 23:22:01
Score: 2
Natty:
Report link

using canlaunchurl was the cuplrit . i removed it and used launchUrl(Uri.parse(url)).onError() and it was fixed for me

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

79401441

Date: 2025-01-30 23:13:58
Score: 5
Natty:
Report link

We are getting the same error - I think it is something to do with a modernization of the sharing feature. If we switch the UI to the 'Classic Sharing' things work again. We are a GCC tenant, so not sure if that has something to do with it.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): getting the same error
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Rattle

79401434

Date: 2025-01-30 23:06:57
Score: 3
Natty:
Report link

My issue was that I had mydomain.io included as a redirect uri, but not mydomain.io/. So yeah.

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

79401429

Date: 2025-01-30 23:02:56
Score: 0.5
Natty:
Report link

Maybe it is something with how you set up a test client. From the first glance it looks okay. I did something similar but used a postgres database for testing.

# a single method to create app for both testing and running
def create_app():
   app = Flask(
        __name__,
   )
   app.config.from_object(config_class)
   db.init_app(app) # <- this db is the same which you are using in the main app
   Migrate(app, db)

   # register endpoints
   # app.register_blueprint(some_blp)

   return app


@pytest.fixture(scope="session")
def app():
    test_app = construct_app(app)

    with test_app.test_client() as cl:
        with test_app.app_context():
            db.create_all()
        yield cl
        with test_app.app_context():
            db.session.commit()
            db.drop_all()

This setup should work.

You can check my pet project (repo) which I did in the past where I also wrote tests. It was one of the first projects I had written on flask so there things I would do differently.

Reasons:
  • Contains signature (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: ViAchKoN

79401426

Date: 2025-01-30 23:01:56
Score: 2
Natty:
Report link

As mentioned in the comments, it's hard to know for sure what's happening based on the partial script. However, I can explain why a console.log statement might change the script behavior.

Behind the scenes, Office Scripts is trying to batch read/write operations. This reduces the number of calls to the workbook (particularly important when using Excel on the web). However, if your script needs the data being read, the batch runs with whatever it has at that point - synchronizing the local client and the workbook. console.log statements always force a sync.

The exact batching mechanics are intentionally obfuscated, but the article Improve the performance of your Office Scripts talks about this behavior from a performance perspective. Might provide some insight.

It's possible you've uncovered a bug in Office Scripts. Iterating over a filtered map might not be syncing the data correctly (and the log statement is forcing the sync at a different time). If that's the case, please send feedback through the in-client help.

Reasons:
  • RegEx Blacklisted phrase (2.5): please send
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Alexander Jerabek

79401416

Date: 2025-01-30 22:55:54
Score: 1
Natty:
Report link

In my experience, setting the value can be tricky, as it is a variant. For example, when KeyValue has been set to a string value then you want set it to a numeric value, you first have to call the Clear() method to clear the variant type, then set it to new value (can be string or numeric). The same is true if it was set to a numeric value and you want to set it to a string. If KeyValue has been cleared without having been set to a valid value, the control may throw an exception when you attempt to manipulate the combobox value (via mouse or keyboard).

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

79401412

Date: 2025-01-30 22:54:54
Score: 0.5
Natty:
Report link

@zeiteisen code is still working on iOS18, but crashes on NSString(utf8String: response) when response is nil, for examples in Shortcuts scripts. Update:

extension UIInputViewController {
    func getHostBundleId() -> String? {
        if let id = hostBundleIdValueBefore16 { id } else { hostBundleIdValueFor16 }
    }
    
    private var hostBundleIdValueBefore16: String? {
        let value = parent?.value(forKey: "_hostBundleID") as? String
        return value != "<null>" ? value : nil
    }
    
    private var hostBundleIdValueFor16: String? {
        guard let pid = parent?.value(forKey: "_hostPID") else { return nil }
        let selector = NSSelectorFromString("defaultService")
        guard let anyClass: AnyObject = NSClassFromString("PKService"),
              let pkService = anyClass as? NSObjectProtocol,
              pkService.responds(to: selector),
              let serverInis = pkService.perform(selector).takeUnretainedValue() as? NSObjectProtocol
        else {
            return nil
        }
        let lities = serverInis.perform(NSSelectorFromString("personalities")).takeUnretainedValue()
        let bundleId = Bundle.main.bundleIdentifier ?? ""
        guard let infos = lities.object(forKey: bundleId) as? AnyObject,
              let info = infos.object(forKey: pid) as? AnyObject,
              let con = info.perform(NSSelectorFromString("connection")).takeUnretainedValue() as? NSObjectProtocol
        else {
            return nil
        }
        let xpcCon = con.perform(NSSelectorFromString("_xpcConnection")).takeUnretainedValue()
        let handle = dlopen("/usr/lib/libc.dylib", RTLD_NOW)
        let sym = dlsym(handle, "xpc_connection_copy_bundle_id")
        typealias XpcFunc = @convention(c) (AnyObject) -> UnsafePointer<CChar>?
        let cFunc = unsafeBitCast(sym, to: XpcFunc.self)
        if let response = cFunc(xpcCon) {
            let hostBundleId = NSString(utf8String: response)
            return hostBundleId as String?
        }
        return nil
    }
}
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @zeiteisen
  • Low reputation (1):
Posted by: Sim

79401410

Date: 2025-01-30 22:53:54
Score: 3
Natty:
Report link

A lot of school laptops (if that's what your using) have a javascript blocker on it that I have not found a way around yet but I will keep you posted on it. [email protected]

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

79401409

Date: 2025-01-30 22:51:53
Score: 3.5
Natty:
Report link

I added the column NEWID() as ID to the view. Then in Visual Studio, in the model, I right-clicked to make ID the Entity Key.

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

79401404

Date: 2025-01-30 22:47:52
Score: 1.5
Natty:
Report link

Go to the commit (not the issue) and add a comment referencing the issue by number (#xxx), and the issue will now show the usual link to the commit.

In the commit comment:

enter image description here

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

79401403

Date: 2025-01-30 22:47:52
Score: 1.5
Natty:
Report link

I have done something similar, You can use get the access token from Okta and user the Salesforce token exchange handler oauth2 flow to exchange the okta token with Salesforce token and then access the resources. refer to my video below https://youtu.be/1nbIScI2E74

Reasons:
  • Blacklisted phrase (1): youtu.be
  • Whitelisted phrase (-1.5): You can use
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Anand Narang

79401397

Date: 2025-01-30 22:43:51
Score: 4.5
Natty: 5
Report link

a mi m sirvió, pero usando la función de store:

mail.store(correo_id, '+X-GM-LABELS', '\Trash')

Saludos

Reasons:
  • Blacklisted phrase (1.5): Saludos
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Karla

79401390

Date: 2025-01-30 22:40:50
Score: 0.5
Natty:
Report link

You might want to use the [xml] type.

# Cast the xml string into [xml] type
[xml]$xml = @"
<?xml version="1.0" encoding="utf-8"?>
<Book>
  <projects>
    <project name="Book1" date="2009-01-20">
      <editions>
        <edition language="English">En.Book1.com</edition>
        <edition language="German">Ge.Book1.Com</edition>
        <edition language="French">Fr.Book1.com</edition>
        <edition language="Polish">Pl.Book1.com</edition>
      </editions>
   </project>
  </projects>
</Book>
"@

$xml.SelectNodes("//edition")

Outputs

language #text
-------- -----
English  En.Book1.com
German   Ge.Book1.Com
French   Fr.Book1.com
Polish   Pl.Book1.com

And for your case specifically,

$Xml.SelectNodes("//edition")."#text"

Returns

En.Book1.com
Ge.Book1.Com
Fr.Book1.com
Pl.Book1.com
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Helper

79401389

Date: 2025-01-30 22:39:50
Score: 3
Natty:
Report link

I am sorry to disturb this already answer, but has anybody found a better way to do this? there probably is some better way to do this, if the user class field exists at all, but I can't find a better answer for now either. thanks to the super smart person, who knows and will help : )

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

79401386

Date: 2025-01-30 22:39:50
Score: 1
Natty:
Report link

Oh well, this works:

for key, value in response.results.items():
    print(f"Key: {key}")
    print(f"Total Billed Duration: {value.metadata.total_billed_duration.seconds} seconds")
    print(f"SRT Format URI: {value.cloud_storage_result.srt_format_uri}")
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Kris

79401381

Date: 2025-01-30 22:35:49
Score: 1.5
Natty:
Report link

I have solved the problem by simply exporting the PDF again and embedding the fonts via this option in Word: https://docs.prospect365.com/en/articles/5642928-embedding-fonts-in-word-documents-for-pdfs

Reasons:
  • Whitelisted phrase (-2): I have solved
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Jonas

79401373

Date: 2025-01-30 22:30:48
Score: 1
Natty:
Report link

You can set the message type to "system":

message = {
    "text": f"Today's reading: {passage_reference}",
    "isGroupPlanPassage": True,
    "passageReference": passage_reference,
    "passageData": {
        "planId": plan_data.get("groupPlanID"),
        "passageNumber": current_passage_number
    },
    "user": {
        "id": system_user_id,
        "name": app_name,
        "image": image_url},
    "type": "system"
}

You should be able to make it look different based on this and all the user info you pass through should be attached to the message.

https://getstream.io/chat/docs/python/silent_messages/

If you're using the react sdk on the front-end you should read this to customize it: https://getstream.io/chat/docs/sdk/react/guides/customization/system_message/

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

79401368

Date: 2025-01-30 22:25:47
Score: 0.5
Natty:
Report link

Inspired by this post, the following code in the profile of PowerShell v7.5.0 worked like a charm:

    # A workaround for the issue  https://github.com/PowerShell/PowerShell/issues/24869
    function Invoke-CleanConda {
        $Env:_CE_M = $Env:_CE_CONDA = $null # need to be cleared each time before calling conda command
        Invoke-Conda @args # pass all the arguments to the conda command
    }
    Write-Output "`n"
    Write-Output "**********************************************************************"
    Write-Output "* HACK: Remove the default conda alias                               *"
    Write-Output "* and define a new command Invoke-CleanConda() as workaround.        *"
    Write-Output "**********************************************************************"
    Write-Output "`n"
    Remove-Alias conda # remove the default conda alias
    Invoke-CleanConda env list

Instead of calling conda [options], just call alll conda command with Invoke-CleanConda [options] such as

    Invoke-CleanConda activate base
    Invoke-CleanConda env list

Of course, it would be better to fix the PS init issue on the Conda side. Also added here https://github.com/PowerShell/PowerShell/issues/24869#issuecomment-2625708821

Reasons:
  • Blacklisted phrase (1): worked like a charm
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ting Li

79401363

Date: 2025-01-30 22:24:47
Score: 1
Natty:
Report link

The original cause was ConfigurationBuilder reloadOnChange functionality. The last boolean on this method indicates that reloadOnChange is active.

var baseBuilder = new ConfigurationBuilder().AddJsonFile(path, false, true).Build();

Even though the configuration builder gets cleaned up by garbage collection, the reloadOnChange had created a file handle that never got removed by garbage colleciton.

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

79401358

Date: 2025-01-30 22:22:47
Score: 1.5
Natty:
Report link

Because when creating Kubernetes' new cluster, it has initial namespaces that help different projects, teams, or customers to share its Kubernetes cluster. The namespace for objects created by the Kubernetes system is called ‘kube-system’ which part of this core component is ‘kube-apiserver’ that exposes the Kubernetes HTTP API. Also, subdividing cluster namespaces, by default it will instantiate a ‘default’ namespace when provisioning the cluster to hold the default set of Pods, Services, and Deployments used by the cluster.

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

79401354

Date: 2025-01-30 22:18:46
Score: 0.5
Natty:
Report link
<label for="someinput" class="has-[+input:autofill]:text-red-800">
  Label name
</label>
<input type="text" name="someinput" id="someinput" />

This shoud work

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

79401353

Date: 2025-01-30 22:17:46
Score: 2
Natty:
Report link

Take a look at hyx. It's a minimalistic, vim-inspired hex-editor. I just tried it and it was possible to insert/modify/delete without restrictions.

https://yx7.cc/code/

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

79401350

Date: 2025-01-30 22:16:45
Score: 0.5
Natty:
Report link

In 2025:

i created a codesandbox with stenciljs to emulate the autofill with all the solutions from here https://codesandbox.io/p/devbox/stencil-component-custom-autofill-detection-k4474k

I used empty css animations:

@keyframes onAutoFillStart {
    from {/**/}
    to {/**/}
}

@keyframes onAutoFillCancel {
    from {/**/}
    to {/**/}
}

To handle the animation:

input:-webkit-autofill {
  animation: onAutoFillStart 1s;
  /* remove blue chrome background */
  -webkit-background-clip: text;
}

input:not(:-webkit-autofill) {
    animation: onAutoFillCancel 1s;
}

And detect the css animation in js:

handleAutofill = (event) => {
    if (event.animationName === 'onAutoFillStart') {
      this.isAutofilled = true;
    } else {
      this.isAutofilled = false;
    }
};

<input 
    type="search" 
    name={this.name} 
    value={this.value} 
    onAnimationStart={this.handleAutofill}
    />

Thanks for the attention

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

79401349

Date: 2025-01-30 22:15:45
Score: 2
Natty:
Report link

VSCode C# Omnisharp - I have no idea how, but THIS FIX WORKED FOR ME

Reasons:
  • Whitelisted phrase (-1): WORKED FOR ME
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Pedro Contipelli

79401346

Date: 2025-01-30 22:14:44
Score: 2
Natty:
Report link

I have no idea how it works, but THIS FIX WORKED FOR ME

Reasons:
  • Whitelisted phrase (-1): WORKED FOR ME
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Pedro Contipelli

79401343

Date: 2025-01-30 22:13:44
Score: 2
Natty:
Report link

I have no idea how it works, but THIS FIX WORKED FOR ME

Reasons:
  • Whitelisted phrase (-1): WORKED FOR ME
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Pedro Contipelli

79401337

Date: 2025-01-30 22:08:43
Score: 2.5
Natty:
Report link

Glue recently released glue v5.0, and the SaaS connectors are not yet supported in this version. Please switch to Glue 4 and you will be fine.

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

79401335

Date: 2025-01-30 22:08:43
Score: 3
Natty:
Report link

You can do this with HTTP Response Headers, if your server side sets that header 'Content-Disposition': f'attachment; filename="{file_name}"' (this is in Python)

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

79401334

Date: 2025-01-30 22:08:43
Score: 3.5
Natty:
Report link

Janzi is correct, I just ran into this problem in some very old code.

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

79401332

Date: 2025-01-30 22:07:43
Score: 3
Natty:
Report link

Resolved. Create your own prefix selector. Sometimes if you keep it as "google" the system won't create a key.

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

79401328

Date: 2025-01-30 22:05:42
Score: 0.5
Natty:
Report link

The accepted answer does not work in some cases when the warnings are produced in child processes. In such cases, you can set the PYTHONWARNINGS environment variable to filter warnings from child processes.

os.environ["PYTHONWARNINGS"] = "ignore"
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Joswin K J

79401327

Date: 2025-01-30 22:05:42
Score: 1
Natty:
Report link

I get a solution with this

// Replace with your own project number from console.developers.google.com.

// See "Project number" under "IAM & Admin" > "Settings" var appId = "1234567890";

var picker = new google.picker.PickerBuilder() ... .setAppId(appId) ... .build();

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

79401326

Date: 2025-01-30 22:04:41
Score: 4.5
Natty: 5.5
Report link

Is there a way to exclude the main page markdown to shown in the drop down in docusaurus?

For example: I have: myDir/index.md myDir/first.md myDir/second.md

if all the md file are generated and I can't manually list them in the sidebar, only can use autogenerated.

So how can I avoid the index.md content only shown in the myDir main page, not the myDir drop down?

Reasons:
  • Blacklisted phrase (0.5): how can I
  • Blacklisted phrase (1): Is there a way
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Is there a
  • Low reputation (1):
Posted by: Chelsea Liu

79401299

Date: 2025-01-30 21:44:38
Score: 2
Natty:
Report link
quarkus.datasource.devservices.reuse

Use this property in application.properties

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

79401295

Date: 2025-01-30 21:43:37
Score: 2.5
Natty:
Report link

To solve this problem I've manually downloaded the previous version (1.8-0) of the package from the CRAN archives. The problem with the new version must have been caused by some uncompatibility between the synthpop and mipfp package, because synthpop implements that package for the syn.ipf() function.

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

79401294

Date: 2025-01-30 21:43:37
Score: 1.5
Natty:
Report link

Thanks to https://stackoverflow.com/a/79090687/22588434 for pointing out using Graphics.Blit - it is much more efficient in the GPU.

I needed the following (for Unity 6 at least) to correctly vertically flip a RenderTexture (note both Vector2 parameters):

Graphics.Blit(srcTexture, destRenderTexture, new Vector2(1, -1), new Vector2(0, 1));

srcTexture is a Texture (RenderTexture, Texture2D, etc). destRenderTexture must be a RenderTexture, GraphicsTexture, or Material according to the latest docs.

If you need to get back a Texture2D, you can still use Graphics.Blit to do the flipping in the GPU to a RenderTexture, and then request an async gpu readback into a Texture2D. Such as:

AsyncGPUReadback.Request(destRenderTexture, 0, TextureFormat.RGBA32, request =>
    {
        // width/height must match destRenderTexture
        var texture2D = new Texture2D(width, height, TextureFormat.RGBA32, false);

        texture2D.LoadRawTextureData(request.GetData<float>());
        texture2D.Apply();
        
        // ... use texture2D
    });

Otherwise, if you just need a method to flip a given RenderTexture, I found this function on a github gist while researching the correct scale/offset parameters above: https://gist.github.com/mminer/816ff2b8a9599a9dd342e553d189e03f

/// <summary>
/// Vertically flips a render texture in-place.
/// </summary>
/// <param name="target">Render texture to flip.</param>
public static void VerticallyFlipRenderTexture(RenderTexture target)
{
    var temp = RenderTexture.GetTemporary(target.descriptor);
    Graphics.Blit(target, temp, new Vector2(1, -1), new Vector2(0, 1));
    Graphics.Blit(temp, target);
    RenderTexture.ReleaseTemporary(temp);
}
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Evan Ruiz

79401289

Date: 2025-01-30 21:42:37
Score: 3.5
Natty:
Report link

Your math is incorrect, you want setStopLoss(entryPrice * .95) in order to set it 5% below the entryPrice.

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

79401284

Date: 2025-01-30 21:39:37
Score: 2
Natty:
Report link

I tried what the post indicated The other answer ..., but it didn't work, the error kept appearing.

So I found this article, where I used "Option 2: Use a Docker Volume Instead of a Bind Mount", PostgreSQL: How to resolve “Permission denied” when bringing up service in Docker container — ep2

services:
  db:
    image: postgres:latest
    container_name: postgres_db
    environment:
      POSTGRES_USER: myuser
      POSTGRES_PASSWORD: mypassword
      POSTGRES_DB: mydatabase
    volumes:
      - pgdata:/var/lib/postgresql/data

volumes:
  pgdata:
    driver: local
Reasons:
  • Blacklisted phrase (1): this article
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: dixoen

79401280

Date: 2025-01-30 21:38:36
Score: 1.5
Natty:
Report link

It seems you are facing the same issue as https://github.com/Microsoft/vscode-remote-release/issues/7704. The command (via Command Palette) does work, but not the shortcut.

Based on one of the comments provided, Without WSL, the focus needs to be in the explorer, but with WSL the focus needs to be in the editor. This is a bit confusing.

The issue is still open in VS Code, so the error still occurs. In the meantime, you may upvote the issue, to improve the visibility to the team, and choose a different shortcut.

Reasons:
  • Blacklisted phrase (0.5): upvote
  • Has code block (-0.5):
  • Me too answer (2.5): facing the same issue
  • High reputation (-1):
Posted by: alefragnani

79401279

Date: 2025-01-30 21:37:36
Score: 2
Natty:
Report link

SELECT concat(Name,'(', Substr(Occupation,1,1),')' ) from OCCUPATIONS ORDER BY Name ASC; SELECT CONCAT ('There are a total of',' ',COUNT(Occupation),' ', lOWER(Occupation),'s.') FROM OCCUPATIONS GROUP BY Occupation ORDER BY COUNT(Occupation);

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

79401270

Date: 2025-01-30 21:32:35
Score: 3.5
Natty:
Report link

I had a similar issue. I ran the app with "flutter run" and got detailed error.

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

79401260

Date: 2025-01-30 21:24:33
Score: 0.5
Natty:
Report link

Unless someone has a better answer. I will just add the following to my scripts that need automatic names. Its a bummer that I can't get it to work as an imported function.

$filename = $home + [IO.Path]::DirectorySeparatorChar + (Get-Date).ToString("yyyy-MM-dd_") + [System.IO.Path]::GetFileName($MyInvocation.MyCommand.Path) -replace '\.[^.]+$','.csv'

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

79401256

Date: 2025-01-30 21:21:32
Score: 4.5
Natty:
Report link

Ask here: https://community.fabric.microsoft.com/t5/Power-BI-forums/ct-p/powerbi

I normally get fast answers.

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