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

79280760

Date: 2024-12-14 14:09:26
Score: 3.5
Natty:
Report link

As other mentioned, --log-cli-level=DEBUG works, I just add it to the command line parameters in PyCharm:

Pycahrm configuration

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

79280756

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

check this post Configuring a C++ OpenCV project with CMake. It will automatically configure the project using CMake. It's not tested on macOS or with the Clang compiler, but it should work as well.

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

79280738

Date: 2024-12-14 13:57:24
Score: 2
Natty:
Report link

You gave to datepicker the fomat: "mm/dd/yyyy". If you want (Day - Month #, year), just change it following the documentation.
https://bootstrap-datepicker.readthedocs.io/en/latest/options.html#format.

fomat: "DD - MM d, yyyy"

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

79280732

Date: 2024-12-14 13:54:23
Score: 1
Natty:
Report link

We need to make shure that the value isn't a number

let validValue  = parseInt(value).toString();
await Preferences.set({
    key: 'key',
    value: validValue,
});
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Vítor Campos

79280723

Date: 2024-12-14 13:49:22
Score: 2
Natty:
Report link

How does Android check whether an app store is a known or unknown source?

Starting with Android 8.0 (Oreo), the process for installing apps from unknown sources changed. Instead of enabling installation from unknown sources system-wide, users must grant permission on a per-app basis. This is how Android determines if a source is trusted:

Trusted Source: Apps distributed via the Google Play Store or pre-installed system apps (e.g., Samsung Galaxy Store) are automatically trusted and do not require additional permissions for installing APKs.

Unknown Source: Any other app attempting to install APKs is treated as an unknown source unless the user explicitly permits it.

When your app store attempts to install an APK, Android checks if the "Install Unknown Apps" permission (REQUEST_INSTALL_PACKAGES) has been granted to your app. If it hasn’t, the system prompts the user with a dialog to enable this permission.

Detailed answer..

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): How do
  • Low reputation (1):
Posted by: Tarik Anjum

79280716

Date: 2024-12-14 13:47:21
Score: 3.5
Natty:
Report link

As many in the comments stated, i need to use JavaScript and run my code client side to avoid rebuilding my website after every button click. Thanks for the comments. (I know this was a stupid rookie question, but its my first time building a website)

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

79280709

Date: 2024-12-14 13:42:20
Score: 0.5
Natty:
Report link

After some research I found out that, the QueryTrackingBehavior of Entity Framework was QueryTrackingBehavior.NoTracking which caused problems. After turning the tracking behavior into QueryTrackingBehavior.TrackAll, all problems gone.

services.AddDbContext<AppDbContext>((sp, opt) =>
{
    opt.UseQueryTrackingBehavior(QueryTrackingBehavior.TrackAll);
//...
});
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: user19291301

79280703

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

I'm not certain, but you could try mapping "PK" to an expression attribute name, and then referencing the string "PK" using that?

So, change the top bit to:

deleteInput := &dynamodb.DeleteItemInput{
    TableName: aws.String("YourTableName"),
    Key: map[string]*dynamodb.AttributeValue{
        "PK": {S: aws.String("PrimaryKeyValue")},
    },
    ConditionExpression: aws.String("attribute_not_exists(#part_key) OR #status = :statusValue"),
    ExpressionAttributeNames: map[string]*string{
        "#status": aws.String("Status"),
        "#part_key": aws.String("PK"),
    },
    ExpressionAttributeValues: map[string]*dynamodb.AttributeValue{
        ":statusValue": {S: aws.String("Completed")},
    },
}

Might work.

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

79280699

Date: 2024-12-14 13:34:19
Score: 2.5
Natty:
Report link

Install-Module -Scope AllUsers PowerShellGet -Force -AllowClobber

Worked for me! Thx to mklement0

Reasons:
  • Blacklisted phrase (1): Thx
  • Whitelisted phrase (-1): Worked for me
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Gero Gaedeke

79280687

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

You can use similar-js npm package to compare two objects which has arrays as well.

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Maheshwaran G

79280686

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

The HTTP HEAD method is the same as HTTP GET, but only transfers the status line and the HTTP response Headers. No message body is included. This means, it is the low-cost (traffic and time) way to check if a file or directory is there

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

79280684

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

For anyone facing the same issue from Firebase 13.29.1 and after, you now have to use the following command:

firebase apps:list  
Reasons:
  • Whitelisted phrase (-2): For anyone facing
  • Low length (1):
  • Has code block (-0.5):
  • Me too answer (2.5): facing the same issue
  • Low reputation (1):
Posted by: YumiBakura

79280682

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

To control the dual X-axis using both the X and E0 pins on the RAMPS 1.4, you can follow a similar procedure as you did for the dual Y-axis, but with a few important adjustments. I'll guide you through the necessary changes in Marlin firmware.

  1. Wiring:

Make sure that both stepper motors for the dual X-axis are connected to the X and E0 pins (as you've already done).

Ensure both motors are wired correctly to the stepper drivers on your RAMPS 1.4.

  1. Configuration.h Adjustments:

In your configuration.h file, you need to enable dual X-axis functionality. Find and uncomment the following line:

#define X_DUAL_STEPPER_DRIVERS

This will tell Marlin that you have two stepper drivers controlling the X-axis.

  1. Pin Configuration:

In pins_RAMPS.h, you need to define the correct pin mapping for the second X motor, which is connected to the E0 pin. Make sure that the following line is set up:

#define X2_ENABLE_PIN 64 // This is assuming you're using the E0 pin for the second X axis. #define X2_STEP_PIN 60 // The E0 step pin (usually pin 60 for RAMPS 1.4) #define X2_DIR_PIN 62 // The E0 direction pin (usually pin 62 for RAMPS 1.4)

This will ensure that Marlin can control the second motor via the E0 pin.

  1. Configuration_adv.h Adjustments:

In configuration_adv.h, look for the section for dual stepper motors and make sure that the settings are enabled for both X-axis motors. You should have:

#define DUAL_X_DRIVER_EXTRUDER_OFFSET_X 40 // Offset between the two X motors, adjust this value as needed.

This setting allows Marlin to account for the physical distance between the two X motors (if necessary).

  1. Compiling the Firmware:

After making the changes in configuration.h, configuration_adv.h, and pins_RAMPS.h, save your files and recompile the firmware.

Ensure that you have the correct board selected in the Arduino IDE (RAMPS 1.4 with an appropriate stepper driver configuration).

  1. Testing:

Once the firmware is uploaded, you can test the dual X-motors functionality by moving the X-axis using the control panel or G-code commands. Both motors should move in sync.

Potential Troubleshooting Tips:

If you’re still encountering compilation errors, double-check your pin assignments in pins_RAMPS.h to ensure they’re correct.

Also, verify that the configuration.h changes are properly saved and that the dual X-axis code is enabled in configuration_adv.h.

By following these steps, you should be able to control both X motors via the X and E0 slots on your RAMPS 1.4 board. Let me know if you need more assistance!

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: NR Mantha

79280678

Date: 2024-12-14 13:11:13
Score: 4
Natty: 4.5
Report link

This error is showing with xcode 16.2 and rider 2024. The solution for me was to update Rider to 2024.3 as discussed here https://rider-support.jetbrains.com/hc/en-us/community/posts/22789137492882-error-HE0004-Could-not-load-the-framework-IDEDistribution

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

79280674

Date: 2024-12-14 13:10:12
Score: 3.5
Natty:
Report link

Understood! If you're looking for help with programming questions or need guidance, I can assist you here without directly generating content for platforms like Stack Overflow. Let me know how I can help!

Reasons:
  • Blacklisted phrase (1): looking for help
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Azhar Kadri

79280673

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

Click the ellipsis icon on (on the right side) ... the language you want to remove.

screenshot of the keyboard settings on windows

Then click the remove option. I hope this will solve your problem.

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

79280671

Date: 2024-12-14 13:08:12
Score: 2.5
Natty:
Report link

You can turn off Sky Reflection in your HDRP settings. You can find the settings in your project settings (or in scene volumes if added)

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

79280669

Date: 2024-12-14 13:08:12
Score: 3
Natty:
Report link

I completly agree on what you wrote me. However, the sorting method is still not working and the display still seems flipped...

Here is the result:

Screen capture of the result

If you need any details on the coordinates or the base, feel free to ask!


You said that the calculus has to correspond to my transformation. I don't know how to check that, here is the base:

this.gameBase = new Base2D(
    new Vector2D(1.0 * 64 / 2, 0.5 * 64 / 2),
    new Vector2D(-1.0 * 64 / 2, 0.5 * 64 / 2)
);
Reasons:
  • Blacklisted phrase (2): still not working
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Pax

79280662

Date: 2024-12-14 13:02:10
Score: 1
Natty:
Report link
let arr = ["academy"];
let theResult = {};
for (let i = 0; i < arr.length; i++) {
  let word = arr[i];
  for (let char of word) {
    if (char !== " ") {
      theResult[char] = word.split("").filter((x) => x == char).length;
    }
  }
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: abdullah khan

79280661

Date: 2024-12-14 13:02:10
Score: 1
Natty:
Report link

So, not totally sure but it is Visual Studio, so who knows. I rebooted a few times, cleaned out the bin and obj for both the main MAUI app and the Class Library it references. Rebooted again. Then after bringing VS up, I tried to just run debug in Windows, but failed stating that my Class Library couldn't deploy do DEV. Of course not, its a Class Library.

To fix that I had to change the default app identifier from com.companyname.appXXXXXX to something else.

Finally got it all working again.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Matt S.

79280656

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

Thanks to @GuyIncognito's comment, here's my (minimal) solution.

( function () {
  'use strict';

  function onChange() {
    // just a status update, nothing real
    alert( 'contents overwritten' );
  }

  function onClickDialog( e ) {
    if ( e.target.id === 'OK' ) {
      // pass the click along
      document.getElementById( 'input' ).click();
    }
    // re-hide the dialog
    document.getElementById( 'modal' ).classList = 'hidden';
  }

  function onClickFile() {
    // unhide the dialog
    document.getElementById( 'modal' ).classList = '';
  }

  function onContentLoaded() {
    document.getElementById( 'button' ).addEventListener( 'click', onClickFile );
    document.getElementById( 'OK' ).addEventListener( 'click', onClickDialog );
    document.getElementById( 'Cancel' ).addEventListener( 'click', onClickDialog );
    document.getElementById( 'input' ).addEventListener( 'change', onChange )
  }
  document.addEventListener( 'DOMContentLoaded', onContentLoaded, { once: true } );
} () );
button {
  font-size: inherit;
}
input,
.hidden {
  display: none;
}
#modal {
  background-color: #0001;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}
#dialog {
  background-color: #fff;
  display: inline-block;
  left: 50%;
  padding: 1em;
  position: relative;
  top:50%;
  transform: translate( -50%, -50% );
}
<!DOCTYPE html><html lang="en"><head>
  <title>Stack Overflow QA</title>
  <link rel="stylesheet" href="page.css">
  <script src="page.js"></script>
</head><body>
  <div id="modal" class="hidden"><div id="dialog">
    <p>There are unsaved changes.</p>
    <p>Is it OK to discard the changes?</p>
    <button id="OK">OK</button> <button id="Cancel">Cancel</button>
  </div></div>
  <button id="button">Open File ...</button>
  <input id="input" type="file">
</body></html>

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