79281382

Date: 2024-12-14 20:43:03
Score: 1.5
Natty:
Report link

For anyone who might have the same issue, here is how I solved it:
#1) Augment the outerplanar graph to a biconnected outerplanar graph:

def make_biconnected(graph):
    # Find cut vertices
    cut_vertices = list(nx.articulation_points(graph))

    for v in cut_vertices:
        neighbors = list(graph.neighbors(v))

        # Partition neighbors into blocks based on biconnected components
        subgraph = nx.Graph(graph)
        subgraph.remove_node(v)
        blocks = []
        for component in nx.connected_components(subgraph):
            block_neighbors = [n for n in neighbors if n in component]
            if block_neighbors:
                blocks.append(block_neighbors)

        # Add edges between blocks to make the graph biconnected
        for j in range(len(blocks) - 1):
            u = blocks[j][-1]
            w = blocks[j + 1][0]
            if not graph.has_edge(u, w):
                graph.add_edge(u, w)

                # If the edge breaks outerplanarity, revert and try other combinations
                if not is_outerplanar(graph):
                    graph.remove_edge(u, w)
                    for u_alt in blocks[j]:
                        for w_alt in blocks[j + 1]:
                            if not graph.has_edge(u_alt, w_alt):
                                graph.add_edge(u_alt, w_alt)
                                if is_outerplanar(graph):
                                    break
                                graph.remove_edge(u_alt, w_alt)

    return graph

#2) Find the largest simple cycle (this should be the Hamiltonian cycle or the outer face) and use the node ordering to create a circular layout

def generate_pos(graph):
    cycles = list(nx.simple_cycles(graph))
    maxLength = max( len(l) for l in cycles )
    path = list(l for l in cycles if len(l) == maxLength)
    pos = nx.circular_layout(path[0])
    return pos

#3) With the positions in #2 and the edges from the original outerplanar graph, use some math to sort the neighbor list of each node in ccw order and add the edges into an embedding.

def convert_to_outerplanar_embedding(graph, pos):
    # Step 1: Create a PlanarEmbedding object
    planar_embedding = nx.PlanarEmbedding()

    # Step 2: Assign the cyclic order of edges around each node based on positions
    for node in graph.nodes:
        neighbors = list(graph.neighbors(node))
        
        # Sort neighbors counterclockwise based on angle relative to the node's position
        neighbors.sort(key=lambda n: math.atan2(pos[n][1] - pos[node][1], pos[n][0] - pos[node][0]))

        # Step 3. Add edges in sorted order to the embedding
        planar_embedding.add_half_edge(node, neighbors[0])
        for i in range(1, len(neighbors)):
            u = neighbors[i-1]
            v = neighbors[i] 
            planar_embedding.add_half_edge(node, v, ccw = u)
    return planar_embedding

The result can be plotted using nx.draw_planar and should look like an outerplanar graph. I haven't tested it extensively, but it works so far for my use case.

Reasons:
  • Whitelisted phrase (-2): I solved
  • Contains signature (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): have the same issue
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: N C

79281375

Date: 2024-12-14 20:40:03
Score: 2
Natty:
Report link

I believe you need to dive into flex css, this is go-to approach to align children objects in parent object

CSS Flexbox

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

79281359

Date: 2024-12-14 20:32:01
Score: 1
Natty:
Report link

The Python version which shows when running python -v is the one that's in the PATH first. If you are trying to ensure that it's installed, simply navigate to your PATH directory and look for it, most likely [email protected] or similar. If you are trying to switch your default interpreter, see this post.

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

79281354

Date: 2024-12-14 20:30:00
Score: 3
Natty:
Report link

Update npm to the latest version using the below command.

npm update -g

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

79281343

Date: 2024-12-14 20:25:59
Score: 3
Natty:
Report link

Here is a guide on how to do this using Google Cloud Run: Link

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

79281339

Date: 2024-12-14 20:22:58
Score: 1
Natty:
Report link

@Master_T , You can also go one step further and iterate through all data roles using an extension of your code.

          dataView.metadata.columns.forEach(col => {
        let rolesIndex = col['rolesIndex'];
        console.log("rolesIndex:",  rolesIndex )

        if (rolesIndex) {
            // Iterate through the roles
            Object.keys(rolesIndex).forEach(roleName => {
                console.log(`Role Name: ${roleName}`);
    
                // Iterate through the indices for this role
                rolesIndex[roleName].forEach(index => {
                    console.log(`Role Index for ${roleName}: ${index}`);
                });
            });
        } else {
            console.log("rolesIndex is undefined for this column.");
        }
      });

Note that we need to be cautious using this approach since it is not using the published api and it is possible it could change in future, but my understanding is that this is the only way it is currently possible to determine the order of the columns, so I will be using it until it either breaks or is replaced by an "approved" method.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Master_T
  • Looks like a comment (1):
  • Low reputation (0.5):
Posted by: gwruck

79281332

Date: 2024-12-14 20:17:57
Score: 2.5
Natty:
Report link

I imagine Swing uses the system encoding. What does Charset.defaultCharset() print out for you? Telling us the command line arguments you used and the relevant bits of the system environment would be useful.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Juan C Nuno

79281330

Date: 2024-12-14 20:15:57
Score: 1.5
Natty:
Report link

You can delete or rename the locale folder from

C:\Program Files (x86)\Midnight Commander

Without the language files the program will fall back to the default English.

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

79281325

Date: 2024-12-14 20:12:56
Score: 1
Natty:
Report link

@startuml start ' Start of the program :Import necessary libraries; ' Import OpenCV and HandDetector

partition "Initialization" { :Initialize camera (cv2.VideoCapture); ' Open the default camera :Set camera resolution; ' Set the width and height of the video frame :Initialize hand detector; ' Initialize the hand tracking module; :Define keys for the virtual keyboard; ' Specify the keys for the keyboard layout :Define key dimensions, appearance, and other parameters; ' Set properties like color, size, and transparency }

partition "Helper Functions" { :Define draw_keys(img, key_list, hovered_key); ' Function to draw the virtual keyboard :Define get_hovered_key(lmList); ' Function to determine which key is being hovered :Define debounce(key); ' Function to prevent repeated detections of the same key :Define handle_backspace(); ' Function to handle backspace functionality }

partition "Main Loop" { while (True) { :Capture a frame from the camera; ' Read a frame from the video feed if (Frame capture unsuccessful?) then (Yes) stop; ' Exit the loop if the frame cannot be captured endif

    :Detect hands using HandDetector; ' Detect hands and landmarks in the frame
    if (Hands detected?) then (Yes)
        :Get hand landmarks; ' Extract hand landmarks from detection
        :Determine hovered key; ' Find out which key is being hovered by the fingertip
        if (Hovered key detected and debounce successful?) then (Yes)
            if (Hovered key == "Back") then (Yes)
                :Call handle_backspace(); ' Remove the last character from the input
            else (No)
                :Append hovered key to pressed_keys; ' Add the detected key to the list of pressed keys
            endif
            :Print pressed key; ' Output the key that was pressed
        endif
    endif

    :Draw keyboard with transparency; ' Overlay the keyboard on the video feed
    :Display pressed keys on screen; ' Show recently pressed keys on the frame
    :Show the image using cv2.imshow; ' Display the frame with the virtual keyboard

    if (Key 'q' pressed?) then (Yes)
        stop; ' Exit the loop if the 'q' key is pressed
    endif
}

}

:Release camera and destroy all windows; ' Clean up resources and close windows end @enduml

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @startuml
  • User mentioned (0): @enduml
  • Low reputation (1):
Posted by: SAYAN MONDAL

79281318

Date: 2024-12-14 20:10:55
Score: 2.5
Natty:
Report link

Not sure if you've found a way to do what you wanted, but if you had to run OCR on the saved PDF to make it searchable, and you were looking for an open source alternative to Adobe PDF, you could try PdfOCRer available in GitHub.

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

79281293

Date: 2024-12-14 20:01:53
Score: 3
Natty:
Report link

I cannot add a comment to the accepted answer due to lack of reputation, but the solution given by shawndreck also works for Eclipse version 2024-12 (4.34.0) with libwebkit2gtk-4_1-0.

Reasons:
  • Blacklisted phrase (0.5): I cannot
  • RegEx Blacklisted phrase (1.5): reputation
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: felix

79281287

Date: 2024-12-14 19:54:52
Score: 1
Natty:
Report link

I have been running through this issue in my wordpress-next.js project. What I have done, I have deleted the.next and node_modules folders then installed my project's dependencies again

yarn

BOOM! and it resolved!

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

79281282

Date: 2024-12-14 19:51:51
Score: 0.5
Natty:
Report link

Your insertleft and insertright functions take self, which tranfers ownership of the BinaryTree to those functions. They then return it, which you currently discard.

If you want to construct the tree step by step, you can store those return values in new variables to be re-used:

let tree = BinaryTree::new(1);
let tree = tree.insertleft(BinaryTree::new(2));
let tree = tree.insertright(BinaryTree::new(3));

Alternatively, if you don't need to chain construction and insertions, you can take &mut reference to self:

impl<T: std::clone::Clone> BinaryTree<T> {
    pub fn insertleft(&mut self, node: BinaryTree<T>) {
        let left_option = Some(Box::new(node));
        self.left = left_option;
    }

    pub fn insertright(&mut self, node: BinaryTree<T>) {
        let right_option = Some(Box::new(node));
        self.right = right_option;
    }
}

fn main() {
    let mut tree = BinaryTree::new(1);
    tree.insertleft(BinaryTree::new(2));
    tree.insertright(BinaryTree::new(3));
}

This reference allows insertleft and insertright to modify tree in place, keeping ownership of the BinaryTree in main. However, you can no longer chain construction and insertion because BinaryTree::new(1).insertleft(BinaryTree::new(2)).insertright(BinaryTree::new(3)) would yield a reference to a temporary value.

For more information, see https://doc.rust-lang.org/book/ch04-02-references-and-borrowing.html and Is there a difference between using a reference, and using an owned value in Rust?

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
Posted by: Finn Bear

79281279

Date: 2024-12-14 19:49:51
Score: 1
Natty:
Report link

The best resource is here: https://live.rbg.tum.de/course/2019/W/semantik

This is a video lecture series by the author of Isabelle. He assumes some familiarity with functional programming like Haskel.

Also, if you get stuck somewhere, you should simply paste your question in this Zulip chat: https://isabelle.zulipchat.com/ . They respond quick (almost real time) so that you carry-on your proofs happily

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

79281276

Date: 2024-12-14 19:49:51
Score: 2.5
Natty:
Report link

Go to index.js file and delete these 2:-

Save it and re run the app. It will work.

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

79281270

Date: 2024-12-14 19:45:49
Score: 1
Natty:
Report link

I am currently researching this issue myself, and here are some of my results.

type ResultField<Index extends number, Result extends number[] = []> = Result['length'] extends Index ? Result[number] : ResultField<Index, [...Result, Result['length']]>;
type Range<Min extends number, Max extends number> =  Exclude<ResultField<Max>, ResultField<Min>> | Max;

interface Input {
    zeroTo5: ResultField<6>
    threeTo5: Range<3, 5> 
}

const in:Input  = {
    zeroTo5: 0 | 1 | 2 | 3 | 4 | 5,
    threeTo5: 3 | 4 | 5
}

enter image description here enter image description here

As you can see, the code hints for Range<3, 5> in webStorm are not as comprehensive as those for ResultField<6>, but I still think these are the answers you need.

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

79281254

Date: 2024-12-14 19:39:48
Score: 2.5
Natty:
Report link

The latest version of the GIS plugin now has an API to generate static maps.

https://contrib.spip.net/GIS-4#API-de-cartes-statiques

You should use it, as it will store the images locally, in SPIP's cache.

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

79281244

Date: 2024-12-14 19:35:47
Score: 1
Natty:
Report link

I am not sure what your mainline code is supposed to be, but what you posted does not even look like it would compile. I think you might want:

    Do
       CheckService()
    Loop While True
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: BandannaMan

79281232

Date: 2024-12-14 19:25:45
Score: 0.5
Natty:
Report link

You could try reading the User Manual, which tells you what the HSE crystal is. From section 7.7:

HSE: high quality 32 MHz external oscillator with trimming, needed by the RF subsystem

You could also select the Nucleo-WB55 as your target board when creating your project. This will pre-populate the HSE frequency with the correct value:

enter image description here

And to select this as your system clock source, just select it in the System Clock Mux:

enter image description here

This is the default if you created a project specifically for the Nucleo board.

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

79281229

Date: 2024-12-14 19:24:45
Score: 3
Natty:
Report link

To run OCR on an unsearchable PDF to make it searchable, you can try PdfOCRer, a python program in GitHub.

It uses Ghoshscript to convert pdf page to image and PaddleOCR as the OCR engine. PaddleOCR seems to have comparable performance as Tesseract according to discussion in this Stackoverflow thread.

Reasons:
  • Blacklisted phrase (1): Stackoverflow
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mark Front

79281222

Date: 2024-12-14 19:19:44
Score: 2
Natty:
Report link

I installed a backup program recommended by PcWorld on my new laptop because Acronis is no longer included on a WD backup drive - "Perfect Backup," and it wrote a very deep recursion of the same several folders until my brand new 1TB drive was full. There were 3 folders each 3000 folders deep. I know how deep it was because after about a half an hour of trying to delete them, I found this page, and the robocopy solution saved me from xkcd-ing my laptop off my desk.

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

79281218

Date: 2024-12-14 19:18:44
Score: 0.5
Natty:
Report link

You need to use Customer DAC in your action, as it is the main DAC in the CustomerMaint graph:

public PXAction<Customer> HelloWorld;

You don't need to modify the ASPX page at all, the framework will display the button using the code from your graph extension.

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

79281211

Date: 2024-12-14 19:12:42
Score: 1
Natty:
Report link

Well through trial and error, and mostly just re-reading material, I finally realized my issue was with the return function.

    def __str__(self):

            return '[Company {}]'.format(self.company)

was changed to:

    def __repr__(self):
           return '{}'.format(self.company)

I can finally get a good night's sleep.

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

79281208

Date: 2024-12-14 19:05:41
Score: 2
Natty:
Report link

This : "private/get-account-summary" works for me and gives me the balance of each coin in my wallet

Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: cristiano messi

79281207

Date: 2024-12-14 19:05:41
Score: 2
Natty:
Report link

First of all a thank you to @Slaw. Indeed consuming the output logs fixed the error. You may Note I switched to using a ProcessBuilder. I tried that before but without consuming the output that didn't work. The new Kotlin code is the following:

class ScriptExecutor {

companion object{

    @JvmStatic
    fun execute(s: String){

        val process = ProcessBuilder("/bin/sh", s).start()

        // Stream output and error logs
        val output = BufferedReader(InputStreamReader(process.inputStream))
        val error = BufferedReader(InputStreamReader(process.errorStream))

        // Print output in the background (optional)
        Thread {
            output.lines().forEach { println(it) }
        }.start()

        Thread {
            error.lines().forEach { println(it) }
        }.start()


    }

}}

The outputs get printed to the console and the consuming is outsourced to another thread.

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Slaw
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Chicovara

79281198

Date: 2024-12-14 18:59:40
Score: 2
Natty:
Report link

As @Chandu said, when you run flask run it uses the global python path. Instead activate local environment and run it like this:

python3 -m flask run

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • User mentioned (1): @Chandu
  • Low reputation (0.5):
Posted by: codecracker

79281191

Date: 2024-12-14 18:53:38
Score: 1
Natty:
Report link

I had this same error after updating a project to .net8 to .net9 that had docker support. I had forgotten to update my Dockerfile to point to the newer images, after fixing (regenerating) the docker files the error message went away for me.

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

79281190

Date: 2024-12-14 18:53:37
Score: 4.5
Natty:
Report link

It seems i have misunderstood the purpose of the Drawer.Screen items, while they provide a quick way to add items to the menu, what I need can only be achievable through the use of Custom Drawer Items.

Thanks @satya164 for the answer.

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

79281181

Date: 2024-12-14 18:45:36
Score: 2
Natty:
Report link

import React from 'react' import GooglePlacesAutocomplete from 'react-google-places-autocomplete' import { useState } from 'react';

function CreateTrip() { const [place,setPlace]=useState(); return ( Tell Us Your Travel Preferences Just provide some basic information, and our trip planner will generate a Customised itinerary based on your preferences.

What is your Choice of Destination? <GooglePlacesAutocomplete apiKey={import.meta.env.VITE_GOOGLE_PLACE_API_KEY} selectProps={{ place, onChange:(v)=>{setPlace(v);console.log(v)} }}/>

</div>

) }

export default CreateTrip

my map api is not showing suggestion in my website

Reasons:
  • Blacklisted phrase (1): What is your
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Namrata Roy

79281180

Date: 2024-12-14 18:44:35
Score: 1
Natty:
Report link

The problem was not in the security configuration. The problem was that, by having all the classes separated into packages, in the App class that launches the application, you must indicate all the packages in which Spring has to look for Beans. That is, you must add the annotations @ComponentScan, @EntityScan and @EnableJpaRepositories

@ComponentScan(basePackages = {"com.pgsanchez.ww2dates.controller", 
        "com.pgsanchez.ww2dates.dao", 
        "com.pgsanchez.ww2dates.securingweb",
        "com.pgsanchez.ww2dates.service",
        "com.pgsanchez.ww2dates"})
@EntityScan(basePackages= {"com.pgsanchez.ww2dates.model"}) //Packages donde tiene que buscar clases del modelo
@EnableJpaRepositories(basePackages= {"com.pgsanchez.ww2dates.dao"})
@SpringBootApplication
public class Ww2datesJpaApplication {

    public static void main(String[] args) {
        SpringApplication.run(Ww2datesJpaApplication.class, args);
    }

}

An important thing is that, when the configuration is not correct, or when something is missing, as in this case, Spring activates security by default, which blocks all pages and tells you, in the console, the password with which you must access . That's why that message always appeared.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @ComponentScan
  • User mentioned (0): @EntityScan
  • User mentioned (0): @EnableJpaRepositoriesAn
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: pgsanchez

79281179

Date: 2024-12-14 18:44:35
Score: 1.5
Natty:
Report link

Your code looks sound, and is compiling, linking and working properly with g++ 14.2 on a 64-bit Debian.

It is very likely that your issue is specific to MinGW/MSYS, you should report them a bug.

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

79281173

Date: 2024-12-14 18:39:34
Score: 5.5
Natty:
Report link

What version of python are you using? Code seems to run without issue in Python3.8 in this online Python IDE https://www.online-python.com/?

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): What
  • Low reputation (1):
Posted by: SharpSignals

79281171

Date: 2024-12-14 18:34:33
Score: 3
Natty:
Report link

Finally I didn't user mariadb function, but I created a single jar file with a main function that called the textEncryptor.encrypt() method on the input string passed to main.

So, when calling "java -jar myFile.jar myKey mySalt myInputString" I'm sure that the result string is exactly encrypted as I want to.

Ciao everybody !

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Gigi

79281163

Date: 2024-12-14 18:29:32
Score: 2
Natty:
Report link

FYI: There is a very useful Roundcube plugin called custom_from that lets you use parameters of your default identity combined with answering from email aliases in your main mailbox. That way you don't have to mess with managing identities/aliases. You can even choose a completely virtual input (when your webhosting company allows you to).

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

79281158

Date: 2024-12-14 18:24:31
Score: 2
Natty:
Report link

If you are really doing low-level X11, you should use XListInputDevices.

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

79281154

Date: 2024-12-14 18:21:30
Score: 2
Natty:
Report link

So i had a similar issue but with an object and the solution was to write it like this:

this.class.update(x => { let r = ({...x, selfCheckIn:!x!.selfCheckIn}) as ClassDTO return (val)?r:x }) Some More details here Github Response Source

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Jaime Reynoso

79281152

Date: 2024-12-14 18:20:29
Score: 4
Natty:
Report link

This github repository helped me understand. I was lacking dependency injection, a concept I put off learning.

https://github.com/MateuszPeczek/UnitTest/blob/master/TestProject/UnitTests/TestClassForCRUDController.cs

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

79281142

Date: 2024-12-14 18:12:28
Score: 1
Natty:
Report link

the reverse function needs named urls.

Add name="snippet-list" to your snippets/ url, and name="user-list" to your users/ url and it will work.

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

79281138

Date: 2024-12-14 18:09:27
Score: 1.5
Natty:
Report link

Single-GPU Setup: If you’re not using multiple GPUs for distributed training, remove the distributed setup code (dist.init_process_group) to avoid unnecessary complexity.

GPU Conflicts: Ensure that GPU 0 is not being used by any other processes. You can set CUDA_VISIBLE_DEVICES='1' to explicitly restrict the use of GPU 1.

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

79281132

Date: 2024-12-14 18:06:26
Score: 1
Natty:
Report link

Set inputPadding equal to stroke width

textGenerationFilter.setValue(strokeWidth, forKey: "inputPadding")

It will fix your answer.

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

79281116

Date: 2024-12-14 17:56:24
Score: 3.5
Natty:
Report link

it is possible to construct any arc of a conic using rational quadratic Bézier curve with mass points:

https://ctan.math.utah.edu/ctan/tex-archive/graphics/pstricks/contrib/pst-bezier/doc/pst-bezier-doc.pdf

Lionel

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

79281115

Date: 2024-12-14 17:56:24
Score: 3
Natty:
Report link

Use can try execute stream command by using linux cmd tr in the command path and use command arguments as [a-zA-Z];"" and argument delemiter as ;

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

79281103

Date: 2024-12-14 17:47:22
Score: 3.5
Natty:
Report link

nie moge wejść do żadnego swojego stworzonego świata

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

79281094

Date: 2024-12-14 17:36:19
Score: 1.5
Natty:
Report link

Perhaps all they want is to open and control your app using their interface instead of yours. Which would make sense if they have their own menus and skin. So your app just needs to be a daemon waiting for requests.

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

79281080

Date: 2024-12-14 17:26:17
Score: 2
Natty:
Report link

print(20);;print(300)

Python gives Invalid Syntax for this code.

Double semicolon is an error here because in Python, there should be one semicolon instead of two when you are writing two lines in one line. Thus, it has error.

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

79281077

Date: 2024-12-14 17:24:17
Score: 0.5
Natty:
Report link

There is a difference between task definition and container. Your screenshot is showing the Task Definition. Inspect the Task Definition, on the first tab there will be Containers section that will give you the Container name and its image. To double check, validate the JSON tab, look for something like

{
    "taskDefinitionArn": "arn:aws:ecs:eu-west-2:1234567890123:task-definition/todo-ecr-container:1",
    "containerDefinitions": [
        {
            "name": "todo-ecr-container",
            "image": "1234567890123.dkr.ecr.eu-west-2.amazonaws.com/todo-ecr-container:latest",
            "cpu": 128,
            "memory": 160,
...
Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Vasko

79281075

Date: 2024-12-14 17:23:14
Score: 6.5 🚩
Natty:
Report link

I do have a similar question. How to fetch the other nodes inside child node. I am new to xslt, but as far I know xslt reads only in forward direction.

Reasons:
  • RegEx Blacklisted phrase (1.5): I am new
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): have a similar question
  • Low reputation (1):
Posted by: Spark

79281073

Date: 2024-12-14 17:21:14
Score: 1
Natty:
Report link

Open qgis application and go to layer tab >>add arcgis rest server layer>> new > in the connection details give any name for name filed in your case 'shooting v2' in the url give the below one enter link description here

In the shootingV2 drop down you will get shooting layer select and add.

After that right click on the layer and Select filter and enter "RptYear" = 2024 And click on ok

Reasons:
  • Blacklisted phrase (0.5): enter link description here
  • Whitelisted phrase (-1): in your case
  • No code block (0.5):
  • Low reputation (1):
Posted by: Dilip chityala

79281058

Date: 2024-12-14 17:13:11
Score: 9 🚩
Natty: 4.5
Report link

Any luck with this? I have the same issue...

Reasons:
  • Blacklisted phrase (1.5): Any luck
  • Blacklisted phrase (1): I have the same issue
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same issue
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Guillermo

79281050

Date: 2024-12-14 17:07:10
Score: 2
Natty:
Report link

Thanks for your answers; in the end it works with:

string fontPath = System.IO.Path.Combine(cale, "segoeui.ttf");
BaseFont unicodeFont = BaseFont.CreateFont(fontPath, BaseFont.IDENTITY_H, BaseFont.EMBEDDED); .... pdfStamper.AcroFields.SetFieldProperty(camp, "textfont", unicodeFont, null);

In PDF, the font was already Segoe UI. And for previous results, I was using Adobe Reader, Foxit Pdf Reader and Firefox browser.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • No code block (0.5):
  • Low reputation (1):
Posted by: Adrian Zagar

79281049

Date: 2024-12-14 17:07:10
Score: 0.5
Natty:
Report link

With the Amazon Selling Partner API (SP-API), a single set of credentials (Client ID, Client Secret, Refresh Token, etc.) is associated with a seller account, not individual developers. The primary user of the seller account creates a Developer Profile and generates these credentials. Multiple developers can use the same set of SP-API credentials to build and test applications. The primary user securely shares the credentials with the development team, and each developer can use them to authenticate and make API requests on behalf of the seller account.

It's important to note that the SP-API credentials are tied to the seller account, and the primary user is responsible for managing and securing them. The development team should follow best practices to ensure the credentials are stored securely and only accessed by authorized developers.

In summary, even though only the primary user can create and manage SP-API credentials, multiple developers can work with the same set of credentials to develop applications for the seller account.

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

79281039

Date: 2024-12-14 17:01:09
Score: 3
Natty:
Report link

win11

docker rm $(docker ps -aq)

mac

docker ps -aq | xargs docker rm

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

79281036

Date: 2024-12-14 16:58:08
Score: 1.5
Natty:
Report link

First create empty gameobject in hierarchy then click on gameobject (it was created empty) then drag and drop script into gameobject. Then click on like buttons, slider,...etc . Then scroll down on inspector window then click on + icon drag and drop gameobject then click on function arrow like ^ but down then click on script name display and then click function name which will play when click on button. Note(my English language is not proper so you understand).

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

79281017

Date: 2024-12-14 16:42:05
Score: 0.5
Natty:
Report link

Print string terminated by zero (0x00) using int 0x10 bios TTY:

// print string terminated by zero
    lea dx,welcome //<-pointer to string
loop:
    mov bx,dx
    mov al,byte ptr[bx]
    cmp al,0
    jz exit_loop
    inc dx
    mov ah,0x0e
    mov bx,0x04
    int 0x10
    jmp loop
exit_loop:
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Kauno Medis

79281007

Date: 2024-12-14 16:36:04
Score: 4
Natty:
Report link

Above steps are valid

Please find the steps to enable monitoring in Prometheus, the catch is you need to provide a correct permission to the monitoring user

here is the link to the documentation: https://docs.openshift.com/container-platform/4.13/observability/monitoring/enabling-monitoring-for-user-defined-projects.html

Reasons:
  • Blacklisted phrase (1): here is the link
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Hari Prassad Kannan

79281005

Date: 2024-12-14 16:35:03
Score: 2
Natty:
Report link

a=int(input()) for b in range(10): print(str(a)+"x"+str(b)+"="+str(a*b)) This is the Python code to print 10 times table for a number that a person types. It is giving error because the code has no comma.

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

79281003

Date: 2024-12-14 16:35:03
Score: 2
Natty:
Report link

i found the cause of the error which was that the ScriptChoice class implemented an interface with default interface method isOtherwise() returning Boolean. hence the 'extracting' method used this interface method instead of accessing the field directly. by using the method, it returned boolean false instead of the expected null

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

79281000

Date: 2024-12-14 16:32:03
Score: 2.5
Natty:
Report link

This is happening to me too. I cleared the catch and it reverted to an older version of the site. I don't get it. I'm on blue host, using the moderna template with chrome and Firefox.

I tried all the ways of clearing the catch listed here and everywhere else on the web.

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

79280996

Date: 2024-12-14 16:30:02
Score: 3
Natty:
Report link

There is a new url for Nuxt 3 Sitemap, https://nuxtseo.com/learn/controlling-crawlers/sitemaps.

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

79280995

Date: 2024-12-14 16:29:02
Score: 2.5
Natty:
Report link

app.get("/basicAuth", async(req,res) =>{

try{

const jsObj = await axios.get("API_URL", {

auth: {

username: "username"

passowrd: "password"

},

});

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

79280994

Date: 2024-12-14 16:29:02
Score: 3.5
Natty:
Report link

El problema es que si inicias sesión una vez ya las demás veces no puedes traer esa data, esto esta en la documentado de Apple, se soluciona en un dispositivo como Iphone entrando a las configuraciones de tu cuenta icloud y en la sección de "iniciar sesión con apple" debe salirte la lista de lugares donde estas logueado de esto solo quita la de la web donde estas probando y ya podrás intentar de nuevo.

Nota: Esto debes hacerlo cada vez que te quieras loguear de nuevo, lo importante es la primera vez dado que esta información deberías guardarla en la base de datos.

Reasons:
  • Blacklisted phrase (2.5): solucion
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: freiman uribe

79280990

Date: 2024-12-14 16:28:01
Score: 4.5
Natty:
Report link

@DonMag The main issue I’m facing is that when returning to the root controller, the UI still shows all the views that were previously presented. If I navigate to the corresponding tab, it doesn’t display the correct view for that tab. Instead, the navigation stack from the previous tab remains stuck, causing the expected view to not load properly.

Reasons:
  • No code block (0.5):
  • User mentioned (1): @DonMag
  • Self-answer (0.5):
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Jael Ruvalcaba

79280989

Date: 2024-12-14 16:28:01
Score: 1
Natty:
Report link

in taskContanier you may use useGetTasksQuery with selectFromResult argument instead of using selectTaskById i.e. the useSelector

const {task}=useGetTasksQuery('',{
        selectFromResult:({data})=>({
            task:data?.entities[id]
        })
    })

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

79280969

Date: 2024-12-14 16:16:59
Score: 2
Natty:
Report link

Try with TLS Requests:

pip install wrapper-tls-requests

Unlocking Cloudflare Bot Fight Mode

import tls_requests
r = tls_requests.get('https://www.coingecko.com/')
print(r)
<Response [200]>

Github repo: https://github.com/thewebscraping/tls-requests

Read the documentation: thewebscraping.github.io/tls-requests/

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

79280961

Date: 2024-12-14 16:11:57
Score: 6.5 🚩
Natty: 4.5
Report link

I am getting below error while connecting the device.

java.lang.UnsatisfiedLinkError: no otmcjni in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at com.digitalpersona.onetouch.jni.MatchingLibrary.<clinit>(MatchingLibrary.java:16)
at com.digitalpersona.onetouch.jni.Matcher.<clinit>(Matcher.java:8)
at com.digitalpersona.onetouch.processing._impl.DPFPEnrollmentFactoryImpl$EnrollmentImpl.<init>(DPFPEnrollmentFactoryImpl.java:40)
at com.digitalpersona.onetouch.processing._impl.DPFPEnrollmentFactoryImpl.createEnrollment(DPFPEnrollmentFactoryImpl.java:20)
at com.digitalpersona.onetouch.ui.swing.CapturePanel.<init>(CapturePanel.java:42)
at com.digitalpersona.onetouch.ui.swing.DPFPEnrollmentControl.<init>(DPFPEnrollmentControl.java:32)

where can I download otmcjni ? Please suggests?

Reasons:
  • Blacklisted phrase (1): can I do
  • RegEx Blacklisted phrase (2.5): Please suggest
  • RegEx Blacklisted phrase (1): I am getting below error
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Anandh

79280959

Date: 2024-12-14 16:09:56
Score: 2.5
Natty:
Report link

Turns out the culprit was the Brave browser. Reinstalling VS set Chrome as default browser, and it started working again. When I chose Brave (my actual default browser) for debugging, the same problem came back.

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

79280958

Date: 2024-12-14 16:08:55
Score: 4.5
Natty:
Report link

You can follow these blog to set up basic microfrontend applications

https://medium.com/nerd-for-tech/micro-front-ends-hands-on-project-63bd3327e162

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: SatishWork

79280955

Date: 2024-12-14 16:07:55
Score: 3
Natty:
Report link

from pprint import pprint

pprint(var) The pprint is a module that returns the out value

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

79280951

Date: 2024-12-14 16:06:54
Score: 0.5
Natty:
Report link

I was experiencing issues similar to yours while running a Python program on my MacBook. Additionally, due to these errors, I could not view the buttons I created for my Tkinter GUI once I completed the following.

Error:

2024-12-14 10:16:16.092 Python[89542:11677896] +[IMKClient subclass]: chose IMKClient_Modern
2024-12-14 10:16:16.092 Python[89542:11677896] +[IMKInputSession subclass]: chose IMKInputSession_Modern

Actions performed:

brew uninstall python

Reinstalled Python through the Python website

https://www.python.org/downloads/

After running through the installation prompt, I could view the buttons for my calculator project successfully. Let me know if this helps; thanks!

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

79280934

Date: 2024-12-14 15:55:52
Score: 1
Natty:
Report link

I cannot really understand your data model. Why do you have the item to sell "$2 sundae sale" in the same table as the modifiers?

As Jonas Metzler states in his comment, the issue may not only be with your query but also with your data. If I understand correctly your model correctly: There are items for sale (the $2 sundae) which the customer can modify. There are modifiers which are grouped into modifier groups. Finally based on the choice of modifier there may be an upcharge for the sale item.

If this is correct the following data model makes more sense and would simplify your queries (I use * to denote the PK).

The table with the items for sale ($2 sunday)

SALE_ITEMS
----------
* RECORD_KEY
NAME

The table with all the modifiers (COOKIE DOUGH IC, BLACK RASP IC, etc.)

MODIFIERS
---------
* RECORD_KEY
NAME

The table with the group of modifiers (Ice cream flavour)

MODIFIER_GROUPS 
---------------
* RECORD_KEY
NAME

The table that groups modifiers into groups (both columns form the primary key for the table).

MODIFIER_GROUPING
-----------------
* MODIFIER_GROUP_RECORD_KEY
* MODIFIER_RECORD_KEY

The table that lists which modifier groups can be applied to each sale item. The CHOOSE_LATER column is a boolean (0,1) to define whether the user can choose the modifier later (whatever later means). This is instead of a separate entry in the table with the upcharges.

ITEM_MODIFIERS
--------------
* SALE_ITEM_RECORD_KEY
* MODIFIER_GROUP_RECORD_KEY
CHOOSE_LATER

Table with the upcharge for sale item based on the modifier. Note that upcharge $0 can be the default, so this table only needs to have entries for modifiers that actually increase the price of the item.

UPCHARGES
---------
* SALE_ITEM_RECORD_KEY
* MODIFIER_GROUP_RECORD_KEY
* MODIFIER_RECORD_KEY
Reasons:
  • Blacklisted phrase (0.5): I cannot
  • RegEx Blacklisted phrase (2.5): do you have the
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • High reputation (-1):
Posted by: Eli Algranti

79280915

Date: 2024-12-14 15:41:49
Score: 3
Natty:
Report link

Normally it would mean the binary is compressed. Otherwise Ghidra won't do such bad a job and IDA will. What does the memory locations in IDA tell you to look? Jump at those locations in Ghidra, disassemble and see what you get.

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

79280909

Date: 2024-12-14 15:37:48
Score: 1
Natty:
Report link

Note that since Bootstrap 5 the correct attribute is

data-bs-toggle

and no longer data-toggle. This goes for all data- attributes.

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

79280906

Date: 2024-12-14 15:36:48
Score: 1
Natty:
Report link

For Future Stackoverflow reader- The way I solved my issue that I mention to Azeem in comment section was by updating Workflow permissions under Settings >> Actions >> General >> Workflow permissions from Read repository contents and packages permissions to Read and write permissions enter image description here

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

79280903

Date: 2024-12-14 15:35:48
Score: 1
Natty:
Report link

Okay so I gave up on trying to dynamically use

as Object {class: objectProperties.ObjectName}

inside of the DataWeave script

Instead I decided that since we can serialize and deserialize SObjects I would have the Apex code handle the object aspect.

First I tried simply

List<SObject> objectList = (List<SObject>)JSON.deserialize(jsonText,List<SObject>.class);

But the issue with this is I got an error about polymorphic objects. This is because the output from the DataWeave looked like:

[
  {        
    "FirstName": "Jane",
    "LastName": " Austin",
    "Title": " CEO",
    "Height__c": "7",
    "Priority__c": null,
    "Hobbies__c": null
  },
  {        
    "FirstName": "Bob",
    "LastName": " Smith",
    "Title": " COO",
    "Height__c": " 6",
    "Priority__c": null,
    "Hobbies__c": null
  }
]

Salesforce needs an additional attributes within the JSON to determine which type of SObject. Salesforce wants the JSON to look like:

[
  {
    "attributes": {
      "type": "Contact"
    },
    "FirstName": "Jane",
    "LastName": " Austin",
    "Title": " CEO",
    "Height__c": "7",
    "Priority__c": null,
    "Hobbies__c": null
  },
  {
    "attributes": {
      "type": "Contact"
    },
    "FirstName": "Bob",
    "LastName": " Smith",
    "Title": " COO",
    "Height__c": " 6",
    "Priority__c": null,
    "Hobbies__c": null
  }
]

Notice the object name comes after the "type"

So here is what I did. I modified my DataWeave Script to simply output JSON (forget the output application/apex)

%dw 2.0

input csvData application/csv
input fieldMappings application/json
input objectProperties application/json

var applyMapping = (in, mappings) -> (
   mappings map (fieldMapping) -> {
    (fieldMapping.target) : if(in[fieldMapping.source] != "") in[fieldMapping.source] else fieldMapping."defaultValue"
  }
)

var reduceThis = (in) -> (
    in
    reduce ($$ ++ $) 
)

var attributeThis = (in) -> (
    {
        attributes: {
            "type" : objectProperties.ObjectName
        }
    } ++ in
)

output application/json
---

csvData map ((row) -> 
    (        
        attributeThis(reduceThis(applyMapping(row,fieldMappings)))     
    )
)

This will read each row of the CSV. It will dynamically reach from fieldMappings to figure out how to map the CSV columns into JSON attributes of my choosing (i.e. Height__c) For some reason without the reduce() it was causing each column to be it's own JSON object, but reduce gave me a single object per row of the CSV And then using the 'attributeThis' function I was able to concatenate onto each object the "attribute" along with its "type" and the type is pulling from the objectProperties input.

This allows for a 100% generic DataWeave script that can take ANY CSV file and convert it into ANY Salesforce Object based on 3 input files: CSV file Field Mapping file (json formatted) Object Properties file (json formatted)

I didn't know how to feed DataWeave a single string thus the overly complex Object Properties file

But remember this doesn't give you a list of SObjects directly, inside of your Apex Code you have to deserialize the output from DataWeave.

Below is the Apex code I have that is invokable in Flow.

This allows me in Flow to prompt for a CSV file and then insert or upsert the data into Salesforce

Here is my Apex code (Please note: this is a PROOF OF CONCEPT, the code is rough, uncommented, and has a ways to go before it's ready for prime time)

/**
 * Created by Caleb Sidel on 12/12/24.
 */

public class CSVData
{
    public class FlowInput
    {
        @InvocableVariable(Label='Content Document Ids' required=true)
        public List<String> contentDocumentIds;

        @InvocableVariable(Label='Field Mappings' required=true)
        public String jsonFieldMappings;

        @InvocableVariable(Label='Object Name' required=true)
        public String objectName;
    }

    @InvocableMethod(label='Read Requirements CSV File')
    public static List<List<SObject>> readRequirementsCSVFile(List<FlowInput> inputs)
    {
        List<List<SObject>> resultList = new List<List<SObject>>();

        ContentVersion doc = [SELECT Id, VersionData FROM ContentVersion WHERE ContentDocumentId = :inputs[0].contentDocumentIds[0] AND IsLatest = TRUE];

        System.debug('inputs[0].objectName = ' + inputs[0].objectName);

        Map<String, String> objectPropertiesMap = new Map<String, String>();
        objectPropertiesMap.put('ObjectName',inputs[0].objectName);
        String jsonObjectProperties = JSON.serialize(objectPropertiesMap);
        System.debug('jsonObjectProperties = ' + jsonObjectProperties);

        Blob csvFileBody = doc.VersionData;
        String csvAsString = csvFileBody.toString();
        DataWeave.Script dwscript = new DataWeaveScriptResource.RequirementsFromCSV();
        DataWeave.Result dwresult = dwscript.execute(new Map<String, Object>{
               'csvData' => csvAsString,
               'fieldMappings' => inputs[0].jsonFieldMappings,
               'objectProperties' => jsonObjectProperties
        });

        System.debug('dwresult = ' + dwresult);
        System.debug('dwresult.getValue() = ' + dwresult.getValue());
        System.debug('dwresult.getValueAsString() = ' + dwresult.getValueAsString());

        //So our DataWeave results in a JSON string that represents a list of SObjects
        String jsonText = dwresult.getValueAsString();
        System.debug(jsonText);
        
        List<SObject> sObjectList = (List<SObject>)JSON.deserialize(jsonText,List<Sobject>.class);
        resultList.add(sObjectList);
        return resultList;
    }
}

In summary - there may be a more elegant DataWeave script, and there may be a way to dynamically use

as Object

directly, but for the time being I'm pretty satisfied that I got something (anything) to work.

If you are a DataWeave guru and you have any ideas for the dynamic as Object, that would be awesome though! Thank you and have a great day!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (1): any ideas
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: caleb

79280900

Date: 2024-12-14 15:32:47
Score: 2.5
Natty:
Report link

You should add SVG files by the "Vector Asset" menu item as shown here by Right click on your module's layout directory.

Vector Asset menu item in Android Studio

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

79280895

Date: 2024-12-14 15:30:46
Score: 1.5
Natty:
Report link
  1. Instakk "Tailwind CSS IntelliSense"

  2. Congfig "css" file's Language Mode.
    select any one "css"/"scss" file. then enter image description here enter image description here

  1. then will find that error/warning will gone.
Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: tanpengsccd

79280894

Date: 2024-12-14 15:30:46
Score: 2
Natty:
Report link

I got same exception in 2024. I have named everything properly, but still had this error. The problem was that new version of android build system shrinks unused resources.

As per flutter_local_notifications, Android Setup -> Release build configuration to fix this you should do following:

  1. Add keep.xml to android/app/src/main/res/raw. And list there resources you want to keep (e.g. some icon)
  2. Also setup proguard-rules.pro to prevent "Missing type" errors.

NOTE: this guideline might be outdated by the time you're reading this. Prefer to official flutter_local_notifications guidelines instead.

Reasons:
  • Blacklisted phrase (1): this guide
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Stepan Dyatkovskiy

79280888

Date: 2024-12-14 15:28:45
Score: 3
Natty:
Report link

If you have INTEGER PRIMARY KEY and not DELETE operations what about MAX?

SELECT MAX(Id) AS total FROM Users
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Fabio Ambrozio

79280874

Date: 2024-12-14 15:18:43
Score: 2.5
Natty:
Report link

Change to pymatgen.analysis.interfaces (interfaces vs interface)

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

79280871

Date: 2024-12-14 15:15:43
Score: 2
Natty:
Report link

Try using a Virtual environment, then in this virtual environment install all what you need to run your program if this didn't work try a higher version of python in a virtual environment too, you can install multiple versions of python on your machine and use whichever one you like for your project.

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

79280870

Date: 2024-12-14 15:15:43
Score: 1.5
Natty:
Report link

With the blinking cursor positioned on the line where your "extends Something" is located, just press "ctrl + ." on your keyboard.

This will either automatically import the class you want to extend or open a list where the first option will be the class you need to import. Then, just press Enter to confirm.

So, "ctrl + ." or "ctrl + ." and than "Enter".

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

79280868

Date: 2024-12-14 15:14:42
Score: 3.5
Natty:
Report link

Your loss is very high, You'd better freeze the top layer before train your model.

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

79280863

Date: 2024-12-14 15:13:42
Score: 1
Natty:
Report link

We need to use lambda-datadog Terraform module wraps the aws_lambda_function resource and automatically configures your Lambda function for Datadog Serverless Monitoring by:

For details, please refer to: https://docs.datadoghq.com/serverless/aws_lambda/installation/python/?tab=terraform

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: shifu.zheng

79280858

Date: 2024-12-14 15:10:41
Score: 1
Natty:
Report link

Have you already tried the classics like THREE.js, j5.js, also ZDOG - a little newer one, is a good choice for some projects. It's quiet useful for learning and great for e.g. simplier but good working game animations, but also cool and easy to use with HTML5-implementation.

There are also Anime.js, Green Socket, Motion One and a lot more - it depends what exactly you want to animate and in which kind of environment in detail, but for mobile I'd suggest mostly THREE.js to work with at first, because it's relativly fast to learn, you have a good control over your actions and it's pretty versatile.

Have fun trying some out and chose what works best for you!

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

79280851

Date: 2024-12-14 15:06:40
Score: 2.5
Natty:
Report link

How to Connect to localhost with SSH(PuTTy)

A PuTTY Security Alert opens up to confirm the ssh-server-key-fingerprint, Click on Accept / Connect Once

Now, Enter your system-user-name [>whoami in MS Windows Command Prompt]

Enter the password that you use as your system-user-password.

SSH connection to MS Windows Command Prompt using PuTTY for system-user@localhost / [email protected] is successful.

Reasons:
  • No code block (0.5):
  • Unregistered user (0.5):
  • Starts with a question (0.5): How to
  • Low reputation (1):
Posted by: Nand Kishor Vyas

79280846

Date: 2024-12-14 15:00:39
Score: 1.5
Natty:
Report link

To develop a real-time chat app with live streaming, you'll need these tools:

  1. React Native: For building cross-platform mobile apps (iOS/Android).
  2. Node.js: For backend development and server-side logic.
  3. Socket.IO: For real-time communication and chat functionality.
  4. Agora SDK: For live video and audio streaming.
  5. Firebase/Auth0: For user authentication and management.
  6. Redis: For scaling chat functionality across multiple users.
Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Aman Chauhan

79280843

Date: 2024-12-14 14:59:39
Score: 1.5
Natty:
Report link

ls -al ~/.ssh

ssh-keygen -t rsa -b 4096 -C "[email protected]"

eval "$(ssh-agent -s)" ssh-add ~/.ssh/id_rsa

cat ~/.ssh/id_rsa.pub

Go to your GitHub profile → Settings → SSH and GPG Keys → New SSH Key. Paste your public key and save it.

ssh -T [email protected]

it will show Hi ! You've successfully authenticated, but GitHub does not provide shell access.

git remote -v

git remote set-url origin [email protected]:/.git

git push origin

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

79280842

Date: 2024-12-14 14:59:39
Score: 1
Natty:
Report link

It is technically possible to route TCP traffic destined for other IP addresses back to the PC for interception. However, this cannot be achieved using the Windows route command alone, as it only modifies the system's routing table to determine the next-hop behavior for IP traffic, without influencing how the traffic is processed once it reaches the system.

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

79280829

Date: 2024-12-14 14:54:37
Score: 3.5
Natty:
Report link

https://ssd.jpl.nasa.gov/horizons is a fine source for solar system body location (ephemerides). It has the planets, their moons, a number of larger asteroids, and maybe the ISS. It is possible to query it programmatically and retrieve results.

See this for an example of using Horizons: https://github.com/WoodManEXP/OrbitalSimOpenGL

Reasons:
  • Contains signature (1):
  • Low length (0.5):
  • No code block (0.5):
  • Starts with a question (0.5): is a
  • Low reputation (1):
Posted by: WoodManEXP

79280824

Date: 2024-12-14 14:51:36
Score: 2
Natty:
Report link
<input type="number" pattern="\d*" />

<!—-93079 64525—>

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

79280820

Date: 2024-12-14 14:46:35
Score: 3
Natty:
Report link

As a text-based AI model, I don't have the ability to send clickable links. Instead, you can copy and paste the link I provided earlier into your web browser to access the Meta website.

Here is the link again: https://www.meta.com/

Just copy and paste it into your browser, and you'll be able to create a new Meta account!

Reasons:
  • Blacklisted phrase (1): Here is the link
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: HR Bharti

79280811

Date: 2024-12-14 14:42:34
Score: 1
Natty:
Report link

One solution with pd.read_csv:

csv_content = """\
# title: Sample CSV
# description: This dataset
id,name,favourite_hashtag
1,John,#python
# another comment in the middle
2,Jane,#rstats
"""

data = pd.read_csv(io.StringIO(csv_content), header=2, on_bad_lines="skip")

And if you have comments in the middle of the file:

data = data[data.iloc[:, 0].str[0] != "#"]

res

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

79280804

Date: 2024-12-14 14:37:33
Score: 1
Natty:
Report link

The Syntax is changed in "react-router-dom"

"@types/react-router-dom": "^5.3.2", =====> import {BrowserRouter as Router, Route} from "react-router-dom"

"react-router-dom": "^6.0.1",============> import { BrowserRouter, Routes, Route } from "react-router-dom";

Please Updated the syntax

<BrowserRouter>
  <Header/>

  <Routes>
    <Route path="/" Component={Home} />
    <Route path="/about" Component={About} />
  </Routes>
</BrowserRouter>

===============================================================

OR Use the "element" in "Route"

<BrowserRouter>
  <Header/>

  <Routes>
    <Route path="/" element={<Home/>} />
    <Route path="/about" element={<About />} />
  </Routes>
</BrowserRouter>
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • No latin characters (0.5):
  • Filler text (0.5): ============
  • Filler text (0): ===============================================================
  • Low reputation (1):
Posted by: Aju Thomas Kalloor

79280796

Date: 2024-12-14 14:32:32
Score: 1.5
Natty:
Report link

Guys i figured out that i had to set the controller on [Authorize] and that's it, solved the problem. I know... i just forgot to do it before

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

79280792

Date: 2024-12-14 14:30:31
Score: 2.5
Natty:
Report link

For nextjs-15 add "use client". Hope it will solve the problem!

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
Posted by: Shakil- The Coding monster

79280788

Date: 2024-12-14 14:24:30
Score: 1
Natty:
Report link

Using the new useWindowDimensions hook:

import { useWindowDimensions } from 'react-native';

const {height, width} = useWindowDimensions();
const isLandscape = width > height;
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jakob Schödl

79280775

Date: 2024-12-14 14:18:28
Score: 2
Natty:
Report link

It may simply depend on your run command. Did you use "py" or "python"? The .venv\Scripts directory contains python.exe but not py.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
Posted by: Jool

79280774

Date: 2024-12-14 14:18:28
Score: 2
Natty:
Report link

If you need help to download all your extensions for manual install in cursor:

Powershell:

code --list-extensions | % { Start-Process "https://marketplace.visualstudio.com/items?itemName=$_" }

Maybe this can help a bit, it opens all the Marketplace websites of the listed addons where you just have to click "Download Extension".

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Tobi

79280772

Date: 2024-12-14 14:15:27
Score: 0.5
Natty:
Report link

In your changeDate function you need to add the formatted date in the input the update function doesn't set the input value

// Set the formatted date to the input field
    $("#date-input").val(formattedDate);

This will solve your issue

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

79280762

Date: 2024-12-14 14:10:26
Score: 2
Natty:
Report link

This may be due to insufficient permanent generation or metaspace of memory. You can solve this problem by adding "-XX:MaxPermSize" (-XX:MaxPermSize=) and "-XX:MetaspaceSize" (-XX:MetaspaceSize=) , or you can allocate a little more memory. In addition, if your computer memory is too small, please increase the computer memory or use Eclipse instead.

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