79190950

Date: 2024-11-15 02:29:14
Score: 0.5
Natty:
Report link

After my test, your problem lies in the treeView1_MouseSingleClick event handler. You used treeView1.SelectedNode.Text. In some cases, SelectedNode may lag behind in displaying the previous selected value. Therefore, when you click a new node, SelectedNode has not yet updated to the node you currently clicked.

You can try to change var menuItem = treeView1.SelectedNode.Text; to var menuItem = e.Node.Text;. e is an object of type TreeNodeMouseClickEventArgs, which directly points to the currently clicked node.

In this way, menuItem will directly obtain the text of the node you clicked, and will not be affected by the delay in updating SelectedNode.

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

79190932

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

As at 2024-11-15 the CSS Working Group (csswg) proposal for issue 2084

details[open]::details-content { display: contents; }

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

79190925

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

I already knew the points in this thread by heart, but it still took me a while to realize my mistake, so I thought it would be cool to do a step-by-step guide to identify the problem... if anyone identifies another item that could generate this problem, edit the message or reply to it to add it. So here is "Everything that could be happening to generate the error No metadata found" (trying to make the list from the simplest to the most complex error):

  1. Check Entity File Extension in Configuration
  1. Verify Entity Paths
  1. Include the entity in Module Imports

3.1) Declare entity at forFeature

  1. Call initialize() on DataSource
  1. Add @Entity() Decorator to Classes
  1. Set autoLoadEntities to True
  1. Check Database Connection Initialization
  1. Clear dist/ Folder and Rebuild
  1. Ensure Unique Entity Names
  1. Avoid Conflicting Configuration Files
  1. Verify database columns in entity class match table schema
  1. Use the correct DataSource (this was the case I was running into this time)
  1. Handle Migrations Properly in NestJS
  1. Update TypeORM Version

Hope to help someone (or myself in the next time). Cheers

Reasons:
  • Blacklisted phrase (1): Cheers
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Entity
  • Low reputation (0.5):
Posted by: RicardoPHP

79190915

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

i think there might be an issue with your regex? try this:

preg_match('/<EMailAddress>([^<]+)<\/EMailAddress>/', $raw, $matches)

Reasons:
  • Whitelisted phrase (-2): try this:
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: azaegor

79190899

Date: 2024-11-15 01:59:07
Score: 0.5
Natty:
Report link

I was able to solve the spacing issue by wrapping each of the Radio widgets in a SizedBox and gave them a height lower than the devTools was showing me is their size (which was 48). I gave them a height of 30 and it works.

Here's a pic:

enter image description here

And here's the code:

              Expanded(
                flex: 1,
                child: Column(
                  crossAxisAlignment: CrossAxisAlignment.start,
                  children: [
                    
                     Row(
                      children: [
                        SizedBox(
                          height: 30,
                          child: Radio<Era>(
                            value: Era.ad,
                            groupValue: _era,
                            onChanged: (Era? value) {
                              setState(() {
                                _era = value;
                              });
                            },
                            ),
                        ),
                          const Text(
                            'A.D.',
                            style: TextStyle(fontSize: 10.0),
                          ),
                      ],
                    ),
                                
                    Row(
                      children: [
                        SizedBox(
                          height: 30,
                          child: Radio<Era>(
                            value: Era.bc,
                            groupValue: _era,
                            onChanged: (Era? value) {
                              setState(() {
                                _era = value;
                              });
                            },
                            ),
                        ),
                          const Text(
                            'B.C.',
                            style: TextStyle(fontSize: 10.0),
                          ),
                      ],
                    ),
                  ]),
              )
            ]),
Reasons:
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: TM Lynch

79190891

Date: 2024-11-15 01:54:05
Score: 1.5
Natty:
Report link

I had similar issues and seems like it may be resolved with one of the following ways: (1) Have VBA switch to a different tab and then back to the tab you want right before ending the code such as using:
(1a) Sheets("sheet2").Select (1b) Sheets("sheet1").Select or
(2) Turn off Frozen Panes in Excel or
(3) Don't use Application.ScreenUpdating = False but the code runs slower so options 1 may be the best followed by option 2

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

79190889

Date: 2024-11-15 01:53:05
Score: 0.5
Natty:
Report link

Not sure it would cover all edge cases but using CSS.escape on an invalid selector returns an empty NodeList instead of throwing a syntax error.

document.querySelectorAll(CSS.escape('p > > > a')) => NodeList []
document.querySelectorAll(CSS.escape('a?+')) => NodeList []
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: user1032752

79190882

Date: 2024-11-15 01:49:04
Score: 3.5
Natty:
Report link

The person upstairs is right. only team owners can accept legal agreements.

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

79190871

Date: 2024-11-15 01:41:02
Score: 0.5
Natty:
Report link

I put a gist together where you can see an example that may work for you. The App starts with a ContentView, which launches the WelcomeView based on a button press. The gist is here.

The project is a newly-created SwiftUI project targeting only macOS, I only included the main Swift files. I experimented with getting the main ContentView created by the project to be constrained to a specific size, and found that this approach doesn't work in that case. If this solution doesn't help you, you may want to post a minimal (but complete) setup where the problem exists.

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

79190868

Date: 2024-11-15 01:39:02
Score: 1
Natty:
Report link

Unfortunatelely we were only able to solve the issue by providing the data the correct (english formatted, decimals with . not ,) way.

Neither Node JS nor MYSQL Terminals had any problems with the data type of the column being VARCHAR(45) hereafter.

All attempts of trying to replace , vs . within a MYSQL query, or changing the data type of the field failed for reasons beyond my noobish scope.

TYVM for everyone who helped! For time constraiting reasons I have to move on, but will review in some time. TY!

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

79190865

Date: 2024-11-15 01:37:01
Score: 0.5
Natty:
Report link

I finally used @rotabor's answer to build mine without having to copy the whole worksheet.

Code is as follows :

Microsoft.Office.Interop.Excel.Application app = new Microsoft.Office.Interop.Excel.Application();
                app.Visible = true;

                Workbook FichierCE = app.Workbooks.Open(currentFileTravail,UpdateLinks:true);
                Worksheet fichierTab = FichierCE.Worksheets[tabCEEntiteName];
                Workbook wBFichierTab = app.Workbooks.Add(XlWBATemplate.xlWBATWorksheet);
                
                Worksheet fichierTabTab = wBFichierTab.Worksheets[1];
                                    
                fichierTabTab.Name = tabCEEntiteName; 

                Range data = fichierTab.UsedRange;
                int rows = data.Rows.Count;
                //int cols = data.Columns.Count;

                for (int r = 4; r <= rows; r++)
                {
                    for (int c = 1; c <= 2; c++)
                    {
                        if (data.Cells[r, c].Value2 == null)
                        {
                            fichierTabTab.Cells[r - 3, c] = "";
                        }
                        else
                        {
                            fichierTabTab.Cells[r - 3, c] = data.Cells[r, c].Value2.ToString();
                        }
                    }
                }

I just needed the first 2 columns and only the rows starting from row 4

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @rotabor's
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: d_anass

79190858

Date: 2024-11-15 01:31:00
Score: 4.5
Natty:
Report link

When you're using the Include, Cloudformation tries to access the file. So it's mostly a permission with that role. Are you sure that the specified cloudformation role has access to that bucket? And there's no additional bucket ACL or policy issue?

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): When you
  • Low reputation (0.5):
Posted by: Fedi Bounouh

79190853

Date: 2024-11-15 01:27:59
Score: 2
Natty:
Report link

If you are using npm, you can

npm install @types/jquery --save-dev

and add

/// <reference types="jquery" />

to your js file.

Ref: https://www.typescriptlang.org/docs/handbook/triple-slash-directives.html#-reference-types-

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

79190845

Date: 2024-11-15 01:20:58
Score: 0.5
Natty:
Report link

I spent quite a lot of time solving the problem with %matplotlib widget on VSCode. When trying to go to interactive mode, the kernel was hanging and preventing further execution. The solution was very simple - always run VSCode as administrator. I hope this will help someone a lot.

Reasons:
  • Whitelisted phrase (-1): hope this will help
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Kuznets_media

79190844

Date: 2024-11-15 01:19:57
Score: 0.5
Natty:
Report link

FS p / FS q are obsoleted commands, so it is better not to use them.
Currently, the commands to handle NV images are sequences starting with GS ( L / GS 8 L.
Obsolete Commands

However, depending on the vendor and model of the printer you are using, it may not be possible to use it, so please contact your vendor or reseller for accurate information.

Alternatively, the situation where printing is not possible may be due to some of the conditions written in the [Notes] of this article.
FS p [obsolete command]

Reasons:
  • Blacklisted phrase (1): this article
  • No code block (0.5):
  • High reputation (-1):
Posted by: kunif

79190843

Date: 2024-11-15 01:19:57
Score: 0.5
Natty:
Report link

From the docs Pick multiple files:

The FullPath property doesn't always return the physical path to the file. To get the file, use the OpenReadAsync method.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Alexandar May - MSFT

79190842

Date: 2024-11-15 01:19:57
Score: 3
Natty:
Report link

simple, just running installer again then select "reconfigure"

my picture

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

79190836

Date: 2024-11-15 01:05:54
Score: 4
Natty: 5
Report link

Very thanks your comment solved my error

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: CARLOS ANDRES DIAZ MARTINEZ

79190835

Date: 2024-11-15 01:03:53
Score: 1.5
Natty:
Report link

@Irreducible is correct. You have created filter coefficients that expose a numerical stability issue in the case of a 4th order Butterworth filter. As suggested, express the filter as second order sections and your filter will be fine:

import numpy as np
import scipy as sp
import matplotlib.pyplot as plt
from scipy import signal
fs=20000
bt,at= signal.butter(4,[7.692307692307693,13],'bandpass',fs=fs)
b1,a1= signal.butter(1,[7.692307692307693,13],'bandpass',fs=fs)

t = np.linspace(0, 1, fs, endpoint=False)
freq = 10
sqr_wave = signal.square(2 * np.pi * 10 * t)
plt.plot(t, sqr_wave,label='orig')
sqr_wave_1st_order = signal.lfilter(b1, a1, sqr_wave)
plt.plot(t, sqr_wave_1st_order,label='1st order')
sqr_wave_4th_order = signal.lfilter(bt, at, sqr_wave)
plt.plot(t, sqr_wave_4th_order,label='4th order ba')
sos_4th_order = signal.butter(4,[7.692307692307693,13],'bandpass',fs=fs,output='sos')
sqr_wave_sos = signal.sosfilt(sos_4th_order, sqr_wave)
plt.plot(t, sqr_wave_sos,label='4th order sos')
plt.ylim(-2, 2)
plt.legend()
plt.show()

Output: enter image description here

Reasons:
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Irreducible
  • Looks like a comment (1):
Posted by: dmedine

79190832

Date: 2024-11-15 01:02:51
Score: 6.5 🚩
Natty:
Report link

I have been facing the same issue on Eclipse v 2023-12, and the resolution consisted of using the last version of Lombok at least on this link https://projectlombok.org/download I have taken the version Lombok v1.18.36enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Blacklisted phrase (1): this link
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): facing the same issue
  • Low reputation (1):
Posted by: Jack Mbuyi

79190830

Date: 2024-11-15 00:59:48
Score: 6 🚩
Natty: 6.5
Report link

This article may be helpful, Making Mocking Functions Strongly Typed in Python

Reasons:
  • Blacklisted phrase (1): This article
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Shiqi Cao

79190826

Date: 2024-11-15 00:56:46
Score: 2
Natty:
Report link

You can use neologger library, it gives you the customisation you need.

You can find the detailed examples here: NeoLogger: A Developer’s Solution to Effortless, Beautiful Logging for Python Apps

Also, the pip project's homepage: neologger

Hope it helps.

Reasons:
  • Whitelisted phrase (-1): Hope it helps
  • Whitelisted phrase (-1.5): You can use
  • Probably link only (1):
  • Contains signature (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: NeoLink

79190825

Date: 2024-11-15 00:56:46
Score: 2
Natty:
Report link

self.resource = resource_class.confirm_by_token(params[:confirmation_token]) if resource.errors.empty? set_flash_message(:notice, :confirmed) if is_flashing_format? sign_in(resource_name, resource) respond_with_navigational(resource){ redirect_to after_confirmation_path_for(resource_name, resource) } else redirect_to new_user_session_path #respond_with_navigational(resource.errors, :status => :unprocessable_entity){ render :new } end end

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

79190823

Date: 2024-11-15 00:55:46
Score: 1
Natty:
Report link

For those who are still looking for an answer to the above question - this seems to work:

df_patient["Date de naissance"] = pd.to_datetime(df_patient["Date de naissance"]).dt.strftime('%d-%m-%Y')

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

79190815

Date: 2024-11-15 00:49:44
Score: 3
Natty:
Report link

Try to use display() instead of print()

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

79190813

Date: 2024-11-15 00:48:44
Score: 1
Natty:
Report link

There are common issues happen when is not work:

  1. Patch cache in your production environment
  2. The differences name file because of hashing in production env
  3. HTTPS requirements in production
  4. Don't forget to clear caches when there is an updated with your code
  5. If you use docker images, you can analyze it in local docker images first before up to productions. Ensure that your chuncks js is had the same name wherever in the build env.
Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: sadewawicak

79190810

Date: 2024-11-15 00:45:43
Score: 3.5
Natty:
Report link

Sorry for the very late response on this guys lost access to my account and found the best solution for this issue I was having thanks for the comments.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: HeyImLosing

79190808

Date: 2024-11-15 00:43:43
Score: 2
Natty:
Report link

you can try to use hour function

Column = hour('Table'[Calls start time])

enter image description here

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

79190802

Date: 2024-11-15 00:36:41
Score: 1
Natty:
Report link

Thank you, Morinar, for your contribution; it helped me a lot. I'm sharing a small modification to Morinar's method that works.

private void setWindowsPlacesBackground(Container con) {
    Component[] components = con.getComponents();

    for (int i = 0; i < components.length; i++) {
        Component c = components[i];

        // If we find a WindowsPlacesBar, we nullify the "XPStyle.subAppName" property
        if (c instanceof sun.swing.WindowsPlacesBar) {
            System.out.println("Found WindowsPlacesBar, nullifying XPStyle.subAppName property...");
            ((sun.swing.WindowsPlacesBar) c).putClientProperty("XPStyle.subAppName", null);

            // Now you can apply the background color
            c.setBackground(new Color(101, 96, 118)); // Change the color here
            return; // Exit, as we have modified the first WindowsPlacesBar found
        }

        // If the component is a container, we continue searching recursively
        if (c instanceof Container) {
            setWindowsPlacesBackground((Container) c);
        }
    }
}
Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (1): helped me a lot
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Todo-System Todo-System

79190800

Date: 2024-11-15 00:36:41
Score: 2
Natty:
Report link

The fix:

CreatedAtAction(nameof(UsersController.GetUserById), "Users", new {userId = user.Id}, user);
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: ckarakoc

79190794

Date: 2024-11-15 00:32:41
Score: 2
Natty:
Report link

Commandline was opened with target as path hence it was not deleting in my case. Closed the terminal and done a maven clean and it worked like magic.

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Nancy

79190790

Date: 2024-11-15 00:30:40
Score: 0.5
Natty:
Report link

You can use a library like https://imagemagick.org/script/magick++.php to complete the task:

#include <Magick++.h>

Magick::Color color(red, green, blue);
Magick::Geometry size(width, height, /*xOff=*/0, /*yOff=*/0);
Magick::Image image(size, color);
image.write( "image.jpg" );

See https://www.imagemagick.org/Magick++/Image++.html for some more examples.

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

79190788

Date: 2024-11-15 00:28:40
Score: 4.5
Natty:
Report link

I currently have the same issue (and am also doing the MIT deeplearning course). The reason for the issue is (I think) because there's been a change to the Keras API. I am not sure what the alternative keyword arg would be, and I haven't found anything yet.

https://www.tensorflow.org/api_docs/python/tf/keras/layers/Embedding

The embedding layer doesn't have anything at all relating to batch_input_shape. Unfortunately, I have very little knowledge on the Keras API and deep learning in general. I will keep posted if I find a solution.

Reasons:
  • No code block (0.5):
  • Me too answer (2.5): have the same issue
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Horse

79190780

Date: 2024-11-15 00:21:38
Score: 1.5
Natty:
Report link

The Solution was just adding on the package.json file those lines at the stript commands:

start":  "webpack-dev-server --config webpack.config.js",
"build": "webpack --config webpack.config.js"

Specifying the config script file

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

79190779

Date: 2024-11-15 00:18:37
Score: 2
Natty:
Report link

For me it was the problem, that I tried to install the app in Release mode to my simulator. Changing the build configuration to debug solved the problem.

Xcode version 16.1 - Simulator iOS 18.1

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

79190777

Date: 2024-11-15 00:17:37
Score: 3
Natty:
Report link

I've solved this myself. Seems that it was just one record that was causing the error so I deleted the record and created a new duplicate. The code works as originally written. Thank all.

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

79190776

Date: 2024-11-15 00:16:36
Score: 3
Natty:
Report link

I just changed the the build action in the file properties to another and back to MauiIcon again. So the reference is set new and there is no longer an error.

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

79190770

Date: 2024-11-15 00:10:34
Score: 1.5
Natty:
Report link

try this

go env | grep GOMODCACHE
Reasons:
  • Whitelisted phrase (-1): try this
  • Low length (2):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: vosoughi

79190768

Date: 2024-11-15 00:09:34
Score: 1.5
Natty:
Report link

You should be able to override it directly in the flow ...

Approval

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

79190767

Date: 2024-11-15 00:09:34
Score: 3.5
Natty:
Report link

i was dereferencing a value that shouldn't have been dereferenced (std::cout << *upp.CommandLine.Buffer;)

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

79190761

Date: 2024-11-15 00:01:32
Score: 5.5
Natty:
Report link

from what ive read the context menu class in VScode is usually a child of .monaco-menu.

Also check this link: https://stackoverflow.com/a/57729835/27796957

I think it will answer your question

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Blacklisted phrase (1): this link
  • RegEx Blacklisted phrase (1): check this link
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mpoulin

79190758

Date: 2024-11-14 23:59:32
Score: 2
Natty:
Report link

close the wamp

Go to C:\wamp64\scripts

there is a file refresh.php

open it in code editor, then finde this:

$WampStartOnOri = $wampConf['wampStartDate'];

press ctrl + f to finde faster

paste this under that line you finde

$WampStartOnOri = str_replace(['۰','۱','۲','۳','۴','۵','۶','۷','۸','۹'], ['0','1','2','3','4','5','6','7','8','9'], $WampStartOnOri);

save it and run WAMP , Enjoy it,

send me love in [email protected] lool

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

79190755

Date: 2024-11-14 23:58:31
Score: 2
Natty:
Report link

I'm using Spring MVC with Thymeleaf also. Mine is a combo of a couple of answers that considers both cases. Changing return to void probably works; i was doing that in another method, but if you need to return a String because you need to return a name of a view/web page to go to next, it is now working for me if I return null; at the end of the method.

So staying with return of String:
I can do: return "redirect:/login"; if needed
before I write to outStream.
but if I do write to outStream, which works, I get an error,
I cannot return a string, even "" after that
but if I return null; after writing to outputStream that works.
spring boot 3.3

Reasons:
  • Blacklisted phrase (0.5): I cannot
  • RegEx Blacklisted phrase (1): I get an error
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Stan Towianski

79190751

Date: 2024-11-14 23:54:31
Score: 1.5
Natty:
Report link

Example:

public function setTitleAttribute($value)
{
    $this->attributes['title'] = $value;
    $this->attributes['slug'] = Str::slug($value);
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Константин Искаков

79190735

Date: 2024-11-14 23:46:28
Score: 1
Natty:
Report link

Another option nobody mentioned is to install from source! No need for pip or virtual environments. Simply download source and python setup.py install. I find this the best and less tedious way, especially that I use many modules that aren't provided by apt. Also, this approach works nicely with Dockerfile.

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

79190729

Date: 2024-11-14 23:42:27
Score: 1.5
Natty:
Report link

I'm no expert in VBA, but it seems like it's looping through correctly, but you're applying the cell.value multiplication to the entire column each iteration. What you want instead is to calculate the multiplication to each individual cell, and place that value to the right..

Instead of

Range("C3:C11").Value = Cell.Value * 1.5

You probably want something like

Cell.Offset(0, 1).Value = Cell.Value * 1.5

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

79190724

Date: 2024-11-14 23:38:26
Score: 2
Natty:
Report link

For future someone, As @kmdreko pointed out, I was using diesel_migration=="2.2.0" but was using an old syntax. My current syntax working fine as follows:

use diesel_migrations::{embed_migrations, EmbeddedMigrations, MigrationHarness};
pub const MIGRATIONS: EmbeddedMigrations = embed_migrations!("migrations");
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @kmdreko
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Nokib Sorkar

79190721

Date: 2024-11-14 23:36:26
Score: 0.5
Natty:
Report link

Simplest solution I could find:

  1. pip3 install myst-parser, then add extensions = ["myst_parser"] to your conf.py.

  2. In your .rst file,

    .. include:: ../README.md
       :parser: myst_parser.sphinx_
    

Done. No need for any intermediary files.

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

79190720

Date: 2024-11-14 23:36:25
Score: 4
Natty: 8
Report link

I’m very new to all of this but have a question I suspect has an obvious (to the more learned folks) answer. In some of the above responses the datasets begin at 0,0,0,0,0 and finish with 0,1,1,1,1 … OR begin with 0,0,0,0,1 and finish with 1,1,1,1,1. I guess you see my question is why are there not 32 combinations, which would include bot all 0s and all 1s ??? Thank you for any response/s. Steve

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (1): ???
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Steve Aitken

79190713

Date: 2024-11-14 23:32:24
Score: 1
Natty:
Report link

I understand about classes, objects, this keyword, constructors, and instantiation. That's the reason I'm asking the question.

Without an object, this expression:

ERROR = setParamForNamedCallableStatement(lstSqlParams, inputDataMap, daoInputMapDef, ncs){};
            

Should fail to compile, but it doesn't. It's not a static method. This is a Struts 2 project.

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

79190712

Date: 2024-11-14 23:32:24
Score: 4
Natty:
Report link

I'm trying to do the same thing, but the values ​​don't seem to match. I don't understand what the equivalent column is in the API.

Reasons:
  • Blacklisted phrase (1): trying to do the same
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Diego Vigo Briones

79190699

Date: 2024-11-14 23:25:22
Score: 3
Natty:
Report link

This is probably not the most logical fix, but I selected the numbers I would be trying to add/sum, hard-code those numbers (copy, paste as values), and then Ctrl+Z - the sum function would fix itself this way.

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

79190695

Date: 2024-11-14 23:23:21
Score: 2
Natty:
Report link

Or just:If Int(DoubleVar) = DoubleVar then MsgBox("DoubleVar is a whole number")

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

79190690

Date: 2024-11-14 23:20:21
Score: 0.5
Natty:
Report link

Using tw & inline styles

<Textarea
placeholder="Type something..."
className="resize-none border-none p-0"
style={{
    borderColor: "inherit",
    WebkitBoxShadow: "none",
    boxShadow: "none",
}}
rows={5}/>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Conor

79190672

Date: 2024-11-14 23:13:19
Score: 0.5
Natty:
Report link

@Roman's response helped to fix the issue if I wanted to build/push the docker image from my local machine; however, it didn't help when doing the same from inside github actions. I had to add the following steps to the github actions workflow file to fix the Docker authentication issue with GAR: more here

- name: 'Login to GAR'
  uses: 'docker/login-action@v3'
  with:
    registry: ${{ env.REGION }}-docker.pkg.dev
    username: _json_key
    password: ${{ secrets.GCP_SERVICE_ACCOUNT_KEY }}

Note: you need to replace the env/secret with your own of course.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Roman's
  • Low reputation (0.5):
Posted by: ezadeh

79190671

Date: 2024-11-14 23:13:19
Score: 2
Natty:
Report link

For future readers (as well as myself) These are not regular expressions! See the GitHub actions documentation for the syntax rules.

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

79190667

Date: 2024-11-14 23:10:18
Score: 5
Natty:
Report link

im also new here. I dont see your page load function, you dont need the saved theme to load anymore?

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

79190666

Date: 2024-11-14 23:10:18
Score: 2
Natty:
Report link

you need to execute jboss-cli.sh without -c or without --connect example:

[disconnected /] module add --name=com.oracle.jdbc --resources=/path/to/ojdbc6.jar --dependencies=javax.api,javax.transaction.api

then you jboss-cli.sh -c and execute host=master:reload

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

79190649

Date: 2024-11-14 22:58:15
Score: 1
Natty:
Report link

Many thanks to Topaco for pointing me in the right direction. Using their code, I was able to make some more progress. But, when I tried their solution, I still ran into this weird could not find file specified error. However, all I needed to do was adjust some IIS settings to resolve that issue. I set up a new app pool, enabled 32-bit applications, and set "Load user profile" to True.

Unfortunately, I still couldn't generate valid tokens. One issue was getting the right date format, so after some more Googling I modified some code I found to get dates generating in the correct format.

Later, after meeting with a developer from the payment processor, I realized I was trying to validate my tokens incorrectly. I didn't have the public key to go with my private key, so I was doomed to get "Invalid Token" on jwt.io. I then checked the tokens generated with Topaco's first solution using CngKey's, and my token was indeed valid. Once I knew there wasn't an issue with the tokens, I also fixed the API link I was using and voila, my requests were going through!

All in all, here's a simplified version of the code I have ended up with. All this requires is installing jose-jwt and RestSharp NuGet packages.

Imports Jose
Imports RestSharp
Imports System.Net
Imports System.Net.Http
Imports System.Security.Cryptography
Imports System.Web.Http

Module MyModule

    Public Const KEY_ID = "...."

    Public Const PRIVATE_KEY =
"-----BEGIN PRIVATE KEY-----
.....
-----END PRIVATE KEY-----"

    'Gets proper format for JWT time
    Public Function GetSecondsSinceEpoch(utcTime As DateTime) As Int64
        Return (utcTime - New DateTime(1970, 1, 1, 0, 0, 0)).TotalSeconds
    End Function

    'Removes the enclosure and any whitespace
    Public Shared Function ConvertPkcs8PemToDer(ByVal pkcs8Pem As String) As Byte()
        Dim body As String = pkcs8Pem.Replace("-----BEGIN PRIVATE KEY-----", "").Replace("-----END PRIVATE KEY-----", "").Replace(Environment.NewLine, "")
        Dim reg = New Regex("\s")
        body = reg.Replace(body, "")
        Return Convert.FromBase64String(body)
    End Function

    'Creates a UUID-formatted string.
    Public Shared Function CreateJti() As String
        Return Guid.NewGuid().ToString()
    End Function

    Public Function MakeMyRequest(uri As String, json_body As String) As String

        'Fixes a weird .NET bug
        ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 Or SecurityProtocolType.Tls12 Or SecurityProtocolType.Tls11 Or SecurityProtocolType.Tls
        
        'Create RestRequest things 
        Dim rest_uri As New Uri(uri) 'Uri of the API to call
        Dim rest_client As New RestClient With {.BaseUrl = rest_uri}
        Dim rest_request As New RestRequest With {.Method = Method.POST} 'Or whatever Method your API requires
        Dim rest_response As New RestResponse

        'Add JSON body and headers
        rest_request.AddJsonBody(json_body) 'Make sure this matches the API specifications
        rest_request.AddHeader("accept", "application/json")
        rest_request.AddHeader("Content-Type", "application/json")

        'Conver the PEM string to Pkcs8 format, acceptable to CngKey.Import()
        Dim privatePkcs8Der As Byte() = ConvertPkcs8PemToDer(PRIVATE_KEY)
        Dim privateEcKey As CngKey = CngKey.Import(privatePkcs8Der, CngKeyBlobFormat.Pkcs8PrivateBlob)

        'Claims and headers
        Dim iss = "MyIssuer"
        Dim aud = "MyAudience"
        Dim iat = GetSecondsSinceEpoch(Now().ToUniversalTime()) '.ToUniversalTime ensures your local UTC offset doesn't affect the timestamp
        Dim exp = GetSecondsSinceEpoch(Now().AddMinutes(5).ToUniversalTime())
        Dim kid = KEY_ID

        Dim headers = New Dictionary(Of String, Object)() From {
            {"alg", "ES512"},
            {"typ", "JWT"},
            {"kid", KEY_ID} 'Key ID may not be necessary for your scenario, but put whatever extra parameters are required here like username, password, etc
        }

        Dim payload = New Dictionary(Of String, Object)() From {
            {"iss", iss},
            {"aud", aud},
            {"iat", iat},
            {"exp", exp},
            {"jti", CreateJti()}
        }

        'Generate the token using the payload, CngKey, ES512 algorithm, and extra headers
        Dim token = Jose.JWT.Encode(payload, privateEcKey, JwsAlgorithm.ES512, headers)

        'Excecute the request
        rest_request.AddHeader("Authorization", "Bearer " & token)
        rest_response = rest_client.Execute(rest_request)

        'Check for your API's designated response code
        If rest_response.StatusCode <> 201 Then Throw New Exception("An error occurred processing the request.")
        Return rest_response.Content

    End Function

End Module
Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (0.5): I need
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: h31mdallr

79190646

Date: 2024-11-14 22:57:15
Score: 1
Natty:
Report link

There are probably several ways to land this, but below is what I do. While there could be some optimization to this, it works well so long as the error is within the django app and not with the webserver itself.

in urls.py: (don't see any difference here).

if not DEBUG:  # i don't want custom error handling in my dev environment because i want to see the dump to help with troubleshooting.
    handler500 = '<project>.views.custom_500'

in views.py: I see some differences here... don't know if they are necessarily material or not.

def custom_500(request, *args, **argv):
    context = {'<load up the data i need to send to the custom template>',}
    t = loader.get_template('error.html')
    response = HttpResponseServerError(t.render(context))
    response.status_code = 500   # need to set this to ensure flags the error and sends dump data to admins.
    return response
Reasons:
  • Blacklisted phrase (0.5): i need
  • RegEx Blacklisted phrase (1): i want
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Lord MooCow

79190645

Date: 2024-11-14 22:57:15
Score: 12
Natty: 7.5
Report link

@sina_Islam were you able to resolve this?

Reasons:
  • RegEx Blacklisted phrase (1.5): resolve this?
  • RegEx Blacklisted phrase (3): were you able
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • User mentioned (1): @sina_Islam
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: user2072757

79190632

Date: 2024-11-14 22:50:14
Score: 1
Natty:
Report link

I had this same problem but solved it another way. psql requires that less is available on the system, and my Docker container did not have it. I simply ran apt update && apt install less and then psql worked properly.

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

79190627

Date: 2024-11-14 22:45:12
Score: 1
Natty:
Report link

Force Re-render: Another way is to use the extraData prop, which forces FlatList to re-render when data changes.

<FlatList
    data={data}
    extraData={data} // Force FlatList to re-render on data change
    keyExtractor={(item) => item.id}
    renderItem={({ item }) => <Text>{item.name}</Text>}
/>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: KORAY ÖZDEMİR

79190624

Date: 2024-11-14 22:42:11
Score: 1
Natty:
Report link

Looks like the AssetManager is directly available simply by using assetManager! For example:

class MainActivity : FlutterActivity() {
    override fun configureFlutterEngine(flutterEngine: FlutterEngine) {
        super.configureFlutterEngine(flutterEngine)
        
        val assetManager: AssetManager = assets

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

79190615

Date: 2024-11-14 22:39:11
Score: 1
Natty:
Report link

You would have to either make it a global to alter contents in another function or use list that only holds that one variable. Lists are automatically passed by ref.

I hope this helps.

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

79190609

Date: 2024-11-14 22:36:10
Score: 3.5
Natty:
Report link

I saw the same issue. It had a pending password reset on the account. After resetting the password it works fine.

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

79190597

Date: 2024-11-14 22:29:09
Score: 1.5
Natty:
Report link

You need to install the Samsung Certificate Extension from the package manager and create a Samsung certification. Then rebuild tizenbrew with the new certificate.

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

79190581

Date: 2024-11-14 22:16:06
Score: 4
Natty:
Report link

If the user is having a browser with PDF reading capabilities (or a plugin) and the corresponding settings to open PDF files in-browser, the PDF will open like that.

See: How to force a Download File prompt instead of displaying it in-browser with HTML?

Are you specifically dealing with PDFs? Or does this happen for all files?

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

79190580

Date: 2024-11-14 22:15:06
Score: 2
Natty:
Report link

I have successfully installed Flutter and VS Code on a Raspberry Pi Model 4B with 8G of RAM and a touchscreen. I have a series of YouTube videos explaining installing and running embedded system programs on the Raspberry Pi. For development, you must use the model with 8G of RAM. For deployment, you can run on a model with 4G of RAM. I used the dart_periphery package to do various GPIO input and output, PWM, and I2C for temperature, humidity, and barometric pressure. Check out my channel for more information.

https://youtu.be/Q1-jsuiIYsY

Reasons:
  • Blacklisted phrase (1): youtu.be
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Bob Taylor

79190579

Date: 2024-11-14 22:15:06
Score: 2
Natty:
Report link

for osx i had to use history -d <line#> <line#> where <line#> is the specific line targeted for deletion - enter it twice to make it work

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

79190577

Date: 2024-11-14 22:14:06
Score: 3.5
Natty:
Report link

I just ran pyspark through Docker and Jupyter notebook through http://127.0.0.1:8888/lab?token=43c4d728856ca538f02dee742187a90536424d6218260675

This token was generated through my terminal and I utilized https://hub.docker.com/r/jupyter/all-spark-notebook to get the whole system up and running. Let me know if anyone has any questions regarding this

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

79190566

Date: 2024-11-14 22:10:05
Score: 2
Natty:
Report link

I had a code signing issue on my Mac which caused Apache to fail. The new Sequoia Update had installed a new LoadModule to Apache which was not "code signed". I found the problem .so module in the apache logs by running: sudo apachectl -k start -e debug

What you want to do to fix: Open your apache2.conf config file and locate the offending LoadModule Line of code. Then add your certificate name in quotes: eg. "Joe Smith"; after the line. Restart your apache: sudo apachectl restart.

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

79190558

Date: 2024-11-14 22:07:04
Score: 4
Natty:
Report link

This seems to have cleared up, so I believe Stoplight.io fixed an issue.

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

79190555

Date: 2024-11-14 22:07:04
Score: 1.5
Natty:
Report link

try updating your condition to compare with the integer 1 instead

df["season"] = np.where(df["Month"] == 1, df["Year"] - 1, df["Year"])
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Khalid BOUSSAROUAL

79190539

Date: 2024-11-14 22:00:02
Score: 1.5
Natty:
Report link

No. It is not possible unless the page is in the same domain as the retrieving page. Instead, you could use an iframe's srcdoc attribute + Javascript fetch() to get the HTML of another page.

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

79190533

Date: 2024-11-14 21:58:01
Score: 1.5
Natty:
Report link

I was finally able to resolve the same issue by a simple solution with credit to Du Nguyen here!

just from "C:/Documents" find this file named ".Renviron", which could be hidden, and delete it. Everything will work normal!

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

79190521

Date: 2024-11-14 21:53:00
Score: 3
Natty:
Report link

As @jqurious pointed out in the comments, this is easily solved with...

df_resampled.explode(pl.exclude("colA"))
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • User mentioned (1): @jqurious
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: nybhh

79190495

Date: 2024-11-14 21:42:57
Score: 0.5
Natty:
Report link

One big part of this is sns.ecdfplot. In particular see this SO answer:

Code to produce the cumulative distribution plots:

import seaborn as sns
import pandas as pd
sns.ecdfplot(pd.DataFrame({'x': x, 'z': z}))
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Physics Enthusiast

79190490

Date: 2024-11-14 21:40:56
Score: 1
Natty:
Report link

The only solution I found is to export Surv again

#' re-export Surv from survival
#'
#' @importFrom survival Surv
#' @name Surv
#' @noRd
#' @export
NULL

Be sure to have this code loading before any of your package functions

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

79190486

Date: 2024-11-14 21:39:56
Score: 3.5
Natty:
Report link

try to use this command "npx react-native run-android --terminal" for me its worked!!!.

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

79190477

Date: 2024-11-14 21:36:55
Score: 3.5
Natty:
Report link

If you use redis will work from console or job

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

79190476

Date: 2024-11-14 21:36:53
Score: 6 🚩
Natty:
Report link

Thanks @BigBen - solution was forgetting to include 'ignore_index=True'. Now to figure out why my other projects worked without it...

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @BigBen
  • Self-answer (0.5):
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: crime-brulee

79190471

Date: 2024-11-14 21:34:53
Score: 1
Natty:
Report link

Instead of using handle_path, I need to use header as defined in Caddy's documentation here https://caddyserver.com/docs/caddyfile/directives/header

Here's the corrected version of my Caddyfile

<my domain> {
        root * /home/<my username>/caddy

        header /Build/Build.data.gz {
            Content-Encoding gzip
            Content-Type application/gzip
        }
        header /Build/Build.framework.js.gz {
            Content-Encoding gzip
            Content-Type application/javascript
        }
        header /Build/Build.wasm.gz {
            Content-Encoding gzip
            Content-Type application/wasm
        }
        header /Build/Build.loader.js {
            Content-Type text/javascript
        }

        # Default handling for other files, e.g., frontend routes
        try_files {path} /index.html
        file_server
}
Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Jules

79190464

Date: 2024-11-14 21:31:52
Score: 2
Natty:
Report link

FYI the dumb mistake that may have led to many people reading this StackOverflow question is accidentally launching Visual Studio 2019 when you meant to launch Visual Studio 2020.

Reasons:
  • Blacklisted phrase (1): StackOverflow
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: jwezorek

79190461

Date: 2024-11-14 21:28:51
Score: 2.5
Natty:
Report link

You can list and automatically upgrade all go bin packages to the latest versions using

https://github.com/Gelio/go-global-update

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

79190443

Date: 2024-11-14 21:21:50
Score: 0.5
Natty:
Report link

I needed to specify a coreid when creating targets. I added this line to add it to each target.

$_TARGET_NAME configure -coreid $_CORE

One of the coreid descriptions in section 11.3 Target Configuration states:

This value coreid is currently also used in other contexts as a general CPU index, e.g. in SMP nodes or to select a specific CPU in a chip.

After I was able to view all the cores as threads, I had an issue where I couldn't step instructions in the secondary cores. I think this is related to the target state for each of the cores.

To fix this I'm running monitor targets <core number> to select a core. Then I run monitor step to put a core in the single-step state. Then I'm allowed to single step in GDB.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: CorkiMain

79190441

Date: 2024-11-14 21:21:50
Score: 0.5
Natty:
Report link

Not sure when it started, but in SQL Server 2019 you can use FOR JSON AUTO:

select LEFT(@@VERSION,38) as "SQL Server Version is" ,p.person_id ,p.person_name ,a.pet_id ,a.pet_name from @Persons p join @Pets a on p.person_id = a.pet_owner FOR JSON AUTO

Result: [ { "SQL Server Version is": "Microsoft SQL Server 2019 (RTM-CU28-GD", "person_id": 2, "person_name": "Jack", "a": [ { "pet_id": 4, "pet_name": "Bug" }, { "pet_id": 5, "pet_name": "Feature" } ] }, { "SQL Server Version is": "Microsoft SQL Server 2019 (RTM-CU28-GD", "person_id": 3, "person_name": "Jill", "a": [ { "pet_id": 6, "pet_name": "Fiend" } ] } ]

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @Persons
  • User mentioned (0): @Pets
  • Low reputation (1):
Posted by: LOCOCHON2020

79190424

Date: 2024-11-14 21:10:47
Score: 2.5
Natty:
Report link

How do I set scale_y_reverse and coord_cartesian()? I've tried the code below but it doesn't reverse y scale.

p + geom_line() +
coord_cartesian(ylim=c(0, 10))+
  scale_y_reverse() 
Reasons:
  • Blacklisted phrase (1): How do I
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): How do I
  • Low reputation (0.5):
Posted by: LZ24AP

79190420

Date: 2024-11-14 21:08:46
Score: 1.5
Natty:
Report link

` <# You can create the function, call the array results and then store them in the array again using a foreach-object loop. Such as: #>

<# not sure it is nessesary but is always a good practice to declare the array outside the function. #>

Function make-Array { param ( $something ) <# some code here, param is optional #>

$some_array = @(time1, item2, item3)

<# make sure to call the array here, this will print out all the contents of the array. #> $some_array

return #leave this blank }

<# This is where you can get the array stored. #>

Make-Array $data | Foreach-object {some_array += $_}

<# This will now take each deserialized output from the array in the function and then add them back again to the array, or anything else you'd like. Sicne the arrya is already global you do not need to pass it as an argument to the function nor do you need to declare it inside the funciton. #>`

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

79190416

Date: 2024-11-14 21:07:46
Score: 1.5
Natty:
Report link

TLDR: if you're creating the next app inside windows file system (eg: /mnt/c/...etc) then DON'T. Use a folder within WSL / Ubuntu file system instead (eg: /home/user/...).

I was looking everywhere online for a solution and all of them was directing me towards adding different options to package.json, but there was no post that talks about making sure that you're not creating the app within windows file system instead of the linux file system. This lead me to a back and forth among many attempts to reinstall everything and lead to no solutions. All I had to do was create the app within the Ubuntu file system instead ( since I am using Ubuntu as my WSL distro ). Hope this post will help someone out!

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

79190412

Date: 2024-11-14 21:07:46
Score: 2.5
Natty:
Report link

You could have the user host the image somewhere and paste the link, or you could have a image hosting service specifically for your website. (like SO)

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

79190409

Date: 2024-11-14 21:06:46
Score: 3.5
Natty:
Report link

You have to post full trace to help us understand your problem. Maybe Android Studio/File->Invalidate Cache could help? Libgdx Litoff generated sample project should run without any problem "from the box". Just checked it yesterday.

Reasons:
  • RegEx Blacklisted phrase (1): help us
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Olehandro

79190408

Date: 2024-11-14 21:06:46
Score: 1
Natty:
Report link

"https://gorest.co.in/public/v2/posts" This returns a list of posts. So it doesn't have id as a parameter.

Try using .body("find { it.id == 167039 }.id", equalTo(167039))

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

79190406

Date: 2024-11-14 21:04:45
Score: 2.5
Natty:
Report link

Sorry to bump this old thread, but I just upgraded my 2018 intel mbp to a m4 mac mini just to find out that i can't run java6 (yes, I use this for my work and I can't upgrade)

I'm trying to run it with rosetta, and doing a java -version shows version and everything, except I get a segmentation fault 11 (which I don't know what means)

Is there any possibility to run java6 on a silicon mac? I don't care if native or emulated just need it to work.

Also, would there be a way to run a virtual machine with my intel mac os installation over the m4 mac mini? That would work for me too...

Reasons:
  • Blacklisted phrase (1): Is there any
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Roberto Martin

79190398

Date: 2024-11-14 21:03:43
Score: 6.5 🚩
Natty: 6.5
Report link

Not so clear about how this works.

Q1: let's say I have an Excel file named MyFile in directly C:MyDir. How do I get the C++ code to find and access this file?

Q2: let's say I have two columns of data to read in the c++ code I am creating. First column cells A1 to A10 and corresponding cells B1 to B10. How do I read this data in my c++ code? I do want to create for example if conditions such as if (A1=5) then (B1=0).

Thanks in advance.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): How do I
  • RegEx Blacklisted phrase (3): Thanks in advance
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: user23475860

79190393

Date: 2024-11-14 21:01:42
Score: 1
Natty:
Report link

You need to use an input audio stream which has the AcousticEchoCanceler effect applied.

The SpeechRecognizer API doesn't have a way to simply turn that on. You need to capture input audio yourself, then pass that into the SpeechRecognizer through EXTRA_AUDIO_SOURCE.

The input audio stream needs to be configured in a way that supports the AcousticEchoCanceler effect. https://stackoverflow.com/a/38021196 has more details on that.

Since you asked about Google Assistant: apps like that probably don't use the SpeechRecognizer API since they're trying to detect a specific phrase (a more specialized model would be more effective).

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ahaan Ugale

79190380

Date: 2024-11-14 20:54:40
Score: 0.5
Natty:
Report link

Try using substring like this:

const str="12345678";
const sub = str.substring(2, str.length-1); // "34567"
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: mankowitz

79190379

Date: 2024-11-14 20:54:40
Score: 1.5
Natty:
Report link

Solution suggested in the comments:

// gl-matrix
type vec3 = [number, number, number] | Float32Array;
type ReadonlyVec3 = readonly [number, number, number] | Float32Array;
// three.js
type Vector3 = {x:number, y:number, z:number}

interface Thing{
    setPosition(p:ReadonlyVec3): void
    getPosition():ReadonlyVec3
}

class ThreeJsThing implements Thing{
    private position:Vector3 = {x:0, y:0, z:0}
    setPosition(p:ReadonlyVec3){
        // actually this.position.set(p[0], p[1], p[2])
        this.position.x = p[0]
        this.position.y = p[1]
        this.position.z = p[2]
    }
    getPosition(){
        // actually return vec3.fromValues(...) as const
        return [
            this.position.x,
            this.position.y,
            this.position.z
        ] as const
    }
}

let thing = new ThreeJsThing()
let position = [1, 2, 3] as vec3
thing.setPosition(position)
console.log(thing.getPosition())
console.log(thing.getPosition()[1])
// position = thing.getPosition() // Type 'readonly [...]' is not assignable to type 'vec3'.
// thing.getPosition()[1] = 5 // Cannot assign to '1' because it is a read-only property.

Here is another solution that was posted by KLASANGUI, got downvoted into oblivion and then deleted. Use with caution, it probably opens a whole nother can of worms and blows up at three more places but I consider it absolutely valid and a beautiful JavaScript flex. It completely solves every problem I stated without syntactic sugar compromises.

// gl-matrix
type vec3 = [number, number, number] | Float32Array;
type ReadonlyVec3 = readonly [number, number, number] | Float32Array;
// three.js
type Vector3 = { x: number, y: number, z: number }

interface Thing {
    position: vec3
}

class ThreeJsThing implements Thing {
    #position: Vector3 = { x: 0, y: 0, z: 0 }

    set position(p: vec3) {
        this.#position.x = p[0]
        this.#position.y = p[1]
        this.#position.z = p[2]
    }

    get position() {
        let p = this.#position
        const accessor = {
            length: 3,
            set 0(x:number) { p.x = x },
            get 0() { return p.x },
            set 1(y:number) { p.y = y },
            get 1() { return p.y },
            set 2(z:number) { p.z = z },
            get 2() { return p.z }
        };
        Object.setPrototypeOf(accessor, Array.prototype);
        return accessor as vec3
    }
}

let thing = new ThreeJsThing()
let position = [1, 2, 3] as vec3
thing.position = position
thing.position[1] = 5
position = thing.position
console.log(position)
Reasons:
  • RegEx Blacklisted phrase (2): downvote
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Mircode

79190361

Date: 2024-11-14 20:45:36
Score: 6.5 🚩
Natty: 5
Report link

Did you find the root cause of this issue ? It seems to be present since version 15 of Keycloak.

We got the same error, but nothing about the issue in forums or from Keycloak.

Thanks!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (3): Did you find the
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did you find the
  • Low reputation (1):
Posted by: Quentin RODIC

79190349

Date: 2024-11-14 20:41:35
Score: 2
Natty:
Report link

function handleEvent() {

// write the code for injecting

}

window.addEventListener('click', handleEvent);

window.addEventListener('scroll', handleEvent);

window.addEventListener('mouseover', handleEvent);

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