79157780

Date: 2024-11-05 05:47:47
Score: 3
Natty:
Report link

You compile your python cli into an exectuable. Look into pyinstaller https://pyinstaller.org/en/stable/.

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

79157777

Date: 2024-11-05 05:45:46
Score: 2.5
Natty:
Report link

This issue was fixed at the end of October. If you are using AzureIR, please retry. If you are using SHIR, please upgrade to version 5.46.90 and above

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

79157774

Date: 2024-11-05 05:44:46
Score: 3
Natty:
Report link

I have determined the source of the irregularities in the treadmill data as well as some of the irregularities in the bikes and elliptical.

So apparently way back in 2017 (please remember I am very new to all this still ) Bluetooth SIG put out XML files describing the standard and they have what might be called errors in the description of the standard. I found these XML files via a conversation following a Blog post by James Taylor (https://jjmtaylor.com/post/fitness-machine-service-ftms/).

In case you've never seen these XML files here is a link: https://github.com/oesmith/gatt-xml

So the treadmills in question are following the standard in those XML files, specifically the Treadmills are using one uint8 octet for Instantaneous Pace and one unit8 octet for Average Pace. The standard (as published today) is to use a uint16 (in two octets) for each of those. I programmed my app to follow today's published standard so I got less data than I expected. Though the treadmills do report Pace measurements on their screens this data is not actually transmitted in the TreadmillData Characteristic, the Pace octets are always 0. That's not a big deal for my application but it might be for someone else's.

Now Here are some other things I've learned in this process:

I also learned that in the 2017 xml documents, Resistance is said to be sint16 delivered in 2 octets with a precision of 0.1 but in the published standard of today it is a unitless uint8 delivered in 1 octet. The elliptical and bikes at my Gym both follow the 2017 xml document.

There is an egregious error in the 2017 xml document for IndoorBikeData. I have heard about this bug a few times as I've scoured the internet but now I've seen it. The document simultaneously says the "Flag Bit 1 means Inst. Cadence Present and Flag Bit 2 means Avg. Speed Present" in the "Flag" section and "Inst. Cadence requires Bit 2 while Avg. Speed required Bit 1" in the remaining field sections. I'm pretty sure that's a Grand Father Paradox.

Testing the bikes at my Gym with both the FlutterBluePlus Sample App and nRF Connect (thanks again ukBaz). I received IndoorBikeData in two packets. The first packet had a 1 in Flag Bit 1 and 0 in Flag Bit 2. The second packet had a 0 in Flag Bit 1 and a 1 in Flag Bit 2. By the published standard of today, that means Average Cadence should have been in the first packet and Inst. Cadence should have been in the second packet. But what I actually got from both tests was that Inst. Cadence followed by Average Cadence were both in that first packet and the second packet contained no Cadence information. This means the first packet is longer than what is expected and the 2nd packet is shorter than what is expected. I'm not sure why the makers of the Bikes originally did this.

nRF Connect did not have any trouble with the Treadmills that I could tell, so I believe it has accounted for the discrepancy with the Pace values.

On the elliptical nRF was reporting Resistance values that were scaled up by 10 compared to what the machine's screen said. I also noticed this in the Raw data from the FlutterBluePlus sample app. This makes sense, as in the 2017 xml docs it says that is value is given in 0.1 precision so a resistance of 2 on the machine would be 20 in the Bluetooth data. So nRF is not away of this discrepancy in the precision, though it must be aware of the size discrepancy as the remaining entries were all correct.

On the bikes nRF reported "invalid data characteristic" on packets with with FlagBit 2 set to 1 and it had messed up data for packets with FlagBit 1 set 1, specifically the total distance were huge values as a results of being calculated from the wrong octets. So it confirmed that the Bluetooth data coming out these Bikes is just not right and it appears to be unaware of what this kind of of data is supposed to look like. I also notice that inst. and average speed in the Bluetooth data appears to be non-sensical and does not match what the bike's screen reported.

So I'm happy that I know why most of the data is weird now but I don't really yet know where to go from here. Its unsettling to know that there are probably a lot of machines that don't follow the standard and are also not going to get updated or repaired to match that standard. So if want my app to be useable to anyone then I have to find a way to accommodate the incorrectly formatted data.

If anyone would like to see data from my tests I have multiple spread sheets, screen shots, and video recordings. Feel free to ask.

I hope my experience helps someone in the future.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • RegEx Blacklisted phrase (1.5): I am very new
  • Long answer (-1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Matt Mahoney

79157771

Date: 2024-11-05 05:41:43
Score: 12 🚩
Natty: 4.5
Report link

did you find a solution to this issue? i am facing the same issue. please share your progress.

Reasons:
  • RegEx Blacklisted phrase (2.5): please share your
  • RegEx Blacklisted phrase (3): did you find a solution to this
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): i am facing the same issue
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): did you find a solution to this is
  • Low reputation (1):
Posted by: Rohit Singh

79157760

Date: 2024-11-05 05:38:42
Score: 2
Natty:
Report link
  1. Use low_memory=False while reading the file to skip dtype detection.

    df = pd.read_csv('somefile.csv', low_memory=False)

  2. Define dtypes while reading the file to force column to be read as an object.

    df = pandas.read_csv('somefile.csv', dtype={'phone': object})

Official Pandas Docs

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

79157758

Date: 2024-11-05 05:36:42
Score: 4.5
Natty: 4
Report link

Add DEFINES -= UNICODE in your pro

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

79157756

Date: 2024-11-05 05:34:41
Score: 1.5
Natty:
Report link

The OP refers to the statement made in CLRS with respect to the predecessor subgraph created by the BFS and DFS traversal.

The fact that BFS traversal always gives a BFS tree and not a forest (like in case of DFS) is due to the definition of the predecessor subgraph in case of BFS. It is defined for only one source vertex unlike DFS which is defined for all vertices.

Ref - enter image description here

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

79157749

Date: 2024-11-05 05:30:40
Score: 1
Natty:
Report link

Query:

"query": {
    "bool": {
        "must": {
            "script": {
                "script": {
                    "lang": "expression",
                    "source": "doc['user_scores'].min() >= 90"
                }
            }
        }
    }
}

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

79157737

Date: 2024-11-05 05:22:39
Score: 0.5
Natty:
Report link
echo -n '22$*2Y;K\z6832l&0}0ya' | base64

will return the right password.

22$*2Y;K\z6832l&0}0ya

I was using " " instead of ' ' .

When ' ' is used around anything, there is no "transformation or translation" done. It is printed as it is.

With " ", whatever it surrounds, is "translated or transformed" into its value.

For more details, here is an extensive explanation.

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

79157730

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

You need to escape your special characters in the message that you are sending via your payload.

Here is the style guide for MarkdownV2: https://core.telegram.org/bots/api#markdownv2-style

Namely, you need to escape the slash in your newline character.

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

79157723

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

Website development involves creating and building websites for the internet. It includes designing layouts, writing code, and adding features like images, text, and links to make the site functional and user-friendly. Our team offers customized solutions to meet your needs, building websites that are easy to use, visually appealing, and optimized to enhance your online success.

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

79157722

Date: 2024-11-05 05:11:37
Score: 2.5
Natty:
Report link

Using z-index for the fixed element is useless because it belongs to the stacking context created by the sticky element

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

79157718

Date: 2024-11-05 05:09:34
Score: 8.5 🚩
Natty: 6
Report link

this is not an replie i need help making a button that i can click to make my snake game use only two buttons and then i can click again to make it four buttons again. please help!!

Reasons:
  • Blacklisted phrase (0.5): i need
  • Blacklisted phrase (2.5): i need help
  • RegEx Blacklisted phrase (3): please help
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Jason Bourn

79157715

Date: 2024-11-05 05:06:33
Score: 0.5
Natty:
Report link

so far, i tried:

cmd = ['bash','-c', 'source /ros/setup.bash && env']
env = subprocess.check_output(cmd, stderr=subprocess.STDOUT, text=True)


for e in env.split("\n"):
    if e:
        name = e.split("=", 1)[0]
        value = e.split("=", 1)[1]
        os.environ[name] = value
        


import rclpy
# my code

but still got the error ModuleNotFoundError: No module named 'rclpy'

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

79157714

Date: 2024-11-05 05:06:33
Score: 1
Natty:
Report link

Thank those who answer the question, very helpful. Like what Peter said, the strcat() requires both arguments to be char array (aka string). my code finally works with strncat() as below.

#include <iostream>
#include <cstring>
using namespace std;

int main() {
  char myStr[20] = "";
  char a = '\T';
  char b = '\H';
  strncat(myStr, &a, 1);
  strncat(myStr, &b, 1);
  cout << myStr;
return 0;
}

For those who recommend std::string, that was my first thought, however, I am working in Arduino environment where usually comes with a concern of heap fragmentation. That is why I choose char array to handle string.

Thank you all.

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

79157713

Date: 2024-11-05 05:04:33
Score: 1
Natty:
Report link

The mongoDB deprecating COUNT() because of several reason and they recommeded to use countDocument() and estimatedDocumentCount(), few reason which i found is :

  1. Inconsistent Results
  2. Performance Overhead
  3. Concurrency and Locking Issues
Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: MUHAMMED ARSHAL PK

79157701

Date: 2024-11-05 04:52:31
Score: 1
Natty:
Report link

It was a really bad wording on the MongoDB side. This statement should be:

Please note that this version of mongocxx requires the MongoDB C driver with version >= 1.10.1.

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

79157692

Date: 2024-11-05 04:46:29
Score: 4
Natty:
Report link

gold bro gold that stuff is insane and its good bro i think you are a master coder

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

79157682

Date: 2024-11-05 04:38:27
Score: 3.5
Natty:
Report link

I would like to ask about the availability of the function in using neos solver. Is it possible to use the function when using Neos solver in GAMS or is it just for GAMS offline or original solver

Reasons:
  • Blacklisted phrase (1): Is it possible to
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Muhammad Kurniawan

79157678

Date: 2024-11-05 04:32:26
Score: 1
Natty:
Report link

Thank you, Peter Cordes, for your invaluable feedback!

Your observation regarding the correct register usage for the WriteChar procedure was exactly what I needed to resolve the issues I was facing with my Pascal's Triangle program.

Issue Recap:

Initially, my program correctly displayed Pascal's Triangle up to Row 5. However, starting from Row 6 onwards, the output became garbled with concatenated numbers and random symbols. This was primarily due to incorrect handling of the space character between binomial coefficients.

Root Cause:

As you pointed out, the WriteChar procedure from the Irvine32 library expects the character to be in the AL register, not DL. In my original code, I was moving the space character into DL, which led to incorrect character printing.

Solution Implemented:

  1. Corrected Register for WriteChar:

    • Original Code:

      ; Print Space
      MOV DL, 32                  ; ASCII space character (decimal 32)
      CALL WriteChar               ; Print space
      
    • Updated Code:

      ; Print Space
      MOV AL, 32                  ; ASCII space character (decimal 32)
      CALL WriteChar               ; Print space
      
    • Explanation:
      By moving the space character (32) into the AL register instead of DL, the WriteChar procedure correctly prints the space, ensuring proper separation between binomial coefficients.

  2. Verified Register Preservation:

    • Ensured that all necessary registers (EAX, EDX, ESI, EDI) are properly preserved at the beginning of procedures and restored before exiting. This prevents unintended side effects from procedure calls like WriteDec and WriteChar.

Updated Output:

After implementing the changes, the program now correctly displays Pascal's Triangle with proper spacing between numbers. Here's an example of the output when entering 13 rows:

Pascal's Triangulator - Programmed by Cameron Brooks!
This program will print up to 13 rows of Pascal's Triangle, per your specification!

Enter total number of rows to print [1...13]: 13
Row 0: 1 
Row 1: 1 1 
Row 2: 1 2 1 
Row 3: 1 3 3 1 
Row 4: 1 4 6 4 1 
Row 5: 1 5 10 10 5 1 
Row 6: 1 6 15 20 15 6 1 
Row 7: 1 7 21 35 35 21 7 1 
Row 8: 1 8 28 56 70 56 28 8 1 
Row 9: 1 9 36 84 126 126 84 36 9 1 
Row 10: 1 10 45 120 210 252 210 120 45 10 1 
Row 11: 1 11 55 165 330 462 462 330 165 55 11 1 
Row 12: 1 12 66 220 495 792 924 792 495 220 66 12 1 
Thank you for using Pascal's Triangulator. Goodbye!

Key Takeaways:

Final Notes:

Thanks to Peter's guidance, the program now functions as intended, accurately displaying Pascal's Triangle with proper spacing between numbers. If anyone has further suggestions or improvements, I'd be happy to hear them!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • 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 (0.5):
Posted by: rezivor

79157674

Date: 2024-11-05 04:27:21
Score: 6.5 🚩
Natty: 5.5
Report link

I am running into same problem. Any Idea how to achieve it in python?

Reasons:
  • Blacklisted phrase (1): how to achieve
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Rajesh Gautam

79157673

Date: 2024-11-05 04:27:21
Score: 0.5
Natty:
Report link

It sounds like you're dealing with a Vite caching issue, which can sometimes happen when dependencies aren't properly resolved or cached files become inconsistent. Here are some steps that may help resolve the problem:

Clear Vite Cache and Temporary Files: Vite stores temporary files in node_modules/.vite, which can sometimes cause conflicts. Try removing this folder:

rm -rf node_modules/.vite

Delete node_modules and Lock Files: Sometimes simply reinstalling modules doesn’t fully reset the environment. Make sure to delete node_modules and any lock files (package-lock.json or yarn.lock), then reinstall everything fresh:

rm -rf node_modules package-lock.json npm install

Restart with a Fresh Build: Run the following commands to clear any stale builds and start fresh:

npm run build npm run dev

Check vite.config.js for Conflicting Plugins: If you’re using custom plugins or configurations in vite.config.js, try temporarily disabling them to see if they might be the source of the issue.

Update or Downgrade Vite: Certain Vite versions can have unique handling of dependencies. Try updating Vite or rolling back to a previous stable version:

npm install vite@latest

Check for Symlink Issues (on Windows): If you’re on Windows, symlinks in node_modules can sometimes cause issues, especially in virtualized environments like WSL. Running the project from the main filesystem may help if this is the case.

Hopefully, these steps help get your server running smoothly again. Let me know if you encounter any more issues!

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

79157671

Date: 2024-11-05 04:25:20
Score: 1.5
Natty:
Report link

Theres a few things I would try.

Make sure that you dont have too many files are running in preview, too many files with preview enabled can slow down the loading process.

You can also use .constant() to supply static data so your program doesnt have to fetch or process real data.

Xcode can accumulate a lot of derived data over time, which can sometimes slow down builds. Go to Xcode > Preferences > Locations, and click the arrow to open the Derived Data folder and delete it manually.

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

79157670

Date: 2024-11-05 04:25:20
Score: 0.5
Natty:
Report link

Airflow uses standard the Python logging framework to write logs, and for the duration of a task, the root logger is configured to write to the task’s log. So to track the Dataflow pipeline's progress in Airflow, the logging level in your Dataflow pipeline needs to be set to INFO, I had set to ERROR originally. Once I updated the logging level, the operator was able to submit the job and obtain the dataflow_job_id in XCOM, marking itself as success shortly after, and the sensor followed up and tracked the job status to completion.

logging.getLogger().setLevel(logging.INFO)

Read more here: Writing to Airflow task logs from your code

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

79157663

Date: 2024-11-05 04:18:19
Score: 2
Natty:
Report link

I use openFrameworks with the addon ofxMidi to use physical midi controllers for my software.
If I was going to write from scratch I would use today Libremidi for c++, this is a great one https://github.com/jcelerier/libremidi

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

79157662

Date: 2024-11-05 04:18:17
Score: 6 🚩
Natty: 6
Report link

hi im encountering similar issue right now. May I know if you solved it in the end?

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

79157657

Date: 2024-11-05 04:14:16
Score: 1
Natty:
Report link

you can also do like this

translator = str.maketrans('', '', string.punctuation)
result = input_str.translate(translator)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: het saraiya

79157650

Date: 2024-11-05 04:10:15
Score: 2
Natty:
Report link

You might want to check out AgentQL! It can simplify the process of scraping data from sites like Google Maps, especially if you're dealing with varying XPath selectors for different business links. It’s designed to adapt to changes in the website structure, which might help you get the reviews and reviewer data you need more efficiently.

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

79157644

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

I had a similar issue, but enabling Use Msal setting solves mine.

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Yoo Matsuo

79157638

Date: 2024-11-05 03:56:11
Score: 3.5
Natty:
Report link

Try downgrading pandas to version 1.5.2.

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

79157627

Date: 2024-11-05 03:49:10
Score: 2
Natty:
Report link

In my case, the solution was install the Google Repository and Google Play Services.

In android studio go to: Tools > SDK Manager > SDK Tools

Select the Google Repository and Google Play Services. click aplly, wait to install and click ok

Example

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Thiago Araujo Cardoso

79157625

Date: 2024-11-05 03:47:10
Score: 0.5
Natty:
Report link

Here is example of code that works. Found the solution at 1

import requests
import gradio as gr
import json

def chat_response(message, history, response_limit):
    return f"You wrote: {message} and asked {response_limit}"

css = """
#chatbot {
    flex-grow: 1 !important;
    overflow: auto !important;
}
"""

with gr.Blocks(css=css) as demo:
    gr.Markdown("# Data Query!")
    with gr.Row():
        with gr.Column(scale=3):
            response_limit = gr.Number(label="Response Limit", value=10, interactive=True)
        with gr.Column(scale=7):
            chat = gr.ChatInterface(
                fn=chat_response,
                chatbot=gr.Chatbot(elem_id="chatbot",
                                    render=False),
                additional_inputs=[response_limit]
            )
demo.launch()
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Andrew Anokhin

79157622

Date: 2024-11-05 03:44:09
Score: 1.5
Natty:
Report link

Use conditional formatting to color-code the drop-down list:

Select the cells with the drop-down list

Click Home > Conditional Formatting > New Rule

Select Format only cells that contain

Choose the condition for color

Select the color formatting

Click Format

Activate the Fill tab

Select the highlight color

Click OK, then click OK again

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

79157616

Date: 2024-11-05 03:38:05
Score: 10 🚩
Natty: 6.5
Report link

Did you solve this problem? I got the same problem too.

Reasons:
  • Blacklisted phrase (1): I got the same problem
  • RegEx Blacklisted phrase (3): Did you solve this problem
  • RegEx Blacklisted phrase (1.5): solve this problem?
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you solve this
  • Low reputation (1):
Posted by: Shawn Park

79157603

Date: 2024-11-05 03:31:03
Score: 2.5
Natty:
Report link

The answer is a bit rudimentary but here goes

When the output is generated, store it to a variable which will be in the form of a python dictionary of input and output. Extract the output, which will be in a string, and use the json.loads function to transform it in a json format.

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

79157593

Date: 2024-11-05 03:25:02
Score: 3.5
Natty:
Report link

The best TRNGs (true random number generators) are based on physical phenomena such as lava lamps, but maybe it just uses a good seed.

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

79157585

Date: 2024-11-05 03:23:01
Score: 1.5
Natty:
Report link

The easiest way to do this is to store each component of the name in a separate field (last name, first name, middle initial) in MySQL and avoid concatenating in database queries.

This way you don't have to think about names with multiple words, especially if there are patterns (like two-word surnames)

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

79157582

Date: 2024-11-05 03:20:58
Score: 9.5 🚩
Natty: 5.5
Report link

I also get the same issue. How can you solve it?

Reasons:
  • RegEx Blacklisted phrase (1.5): solve it?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I also get the same issue
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ye Linn Oo

79157581

Date: 2024-11-05 03:20:58
Score: 4
Natty:
Report link

no one knows or cares ;ppp

haha

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

79157574

Date: 2024-11-05 03:15:56
Score: 2
Natty:
Report link

You Only need to update your Retrofit version to 2.11.0. I had similar issue on release builds after this update everything is working great.

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

79157569

Date: 2024-11-05 03:13:56
Score: 1.5
Natty:
Report link

The first thing we should do is to open the browser console to see if there is any error when you initialise the stripe.js

Next, ensure is that @Model.StripeAccountID is resolving to an account ID. You can print some logs to confirm this. I'm not familiar with .net but I found another page that shows how pass a variable from .net to javascript.

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

79157563

Date: 2024-11-05 03:10:55
Score: 2.5
Natty:
Report link

take a look on this docs express-js-static

since we use express.static we dont need to type /public

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Carvel Saputra

79157560

Date: 2024-11-05 03:09:55
Score: 1
Natty:
Report link

my way

bleManager.onWriteValueStatus = onWriteValueStatus@{ bleWriteInfo ->
    if (bleWriteInfo.characteristic != CharacteristicUUID.RPC.value) { 
        return@onWriteValueStatus 
    }
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: dtrognn

79157556

Date: 2024-11-05 03:05:54
Score: 2
Natty:
Report link

Finally, I updated my android/gradle.properties file with this line :

org.gradle.java.home=/opt/homebrew/opt/openjdk@17

This worked.

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

79157546

Date: 2024-11-05 03:00:53
Score: 0.5
Natty:
Report link

You can create roles, give each role its own connection limit, and then assign the users appropriately.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-2):
Posted by: O. Jones

79157536

Date: 2024-11-05 02:56:52
Score: 0.5
Natty:
Report link

For anyone who's looking for a "Path" way to walk:

from pathlib import Path
p=Path("some_path_you_want_to_walk")
for dirName, subdirList, fileList in p.walk():
    print(dirName, subdirList, fileList)

First introduced in Python 3.12

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

79157515

Date: 2024-11-05 02:39:48
Score: 2
Natty:
Report link

In what way does ReorderableList not do what you want?

Reasons:
  • Low length (2):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • High reputation (-2):
Posted by: Randal Schwartz

79157514

Date: 2024-11-05 02:37:47
Score: 1
Natty:
Report link

It sounds like you're encountering a few issues related to the Python environment and Azure Function deployment. Let's break down the problem and address each part step-by-step.

1. Python Version Mismatch

Azure Functions may not always respect the exact version specified in your virtual environment. Azure Functions typically uses the version it has available, which in your case is 3.10.4. To ensure consistency, you should align your local and Azure environments as closely as possible.

2. Virtual Environment Configuration

The pyenv.cfg file should correctly point to your virtual environment. The home path should be /home/gv/venv/bin if that's where your virtual environment is located.

3. Deployment Configuration

Ensure that your deployment process is correctly configured to use the virtual environment and the correct Python version.

Steps to Resolve

1. Verify Virtual Environment

Make sure your virtual environment is correctly set up and the Python version is as expected.

# Activate the virtual environment
source /home/gv/venv/bin/activate

# Verify the Python version
python --version

2. Update pyenv.cfg

Ensure the pyenv.cfg file points to the correct virtual environment path.

home = /home/gv/venv/bin
include-system-site-packages = false
version = 3.10.15

3. Check Azure Function App Settings

In the Azure portal, go to your Function App settings and verify the Python version. It should be set to 3.10.

4. Update requirements.txt

Ensure your requirements.txt is up-to-date and includes all necessary dependencies.

pip freeze > requirements.txt

5. Deploy Using Azure CLI

Use the Azure CLI to deploy your function app. This ensures that the deployment process is consistent and respects your virtual environment.

# Login to Azure
az login

# Deploy the function app
func azure functionapp publish <FunctionAppName> --build-native-deps

6. Check Deployment Logs

After deployment, check the logs to ensure there are no errors related to the Python version or dependencies.

# View deployment logs
az webapp log tail --name <FunctionAppName> --resource-group <ResourceGroupName>

7. Verify Function Triggers

Ensure that your function triggers are correctly defined in your function.json files.

{
  "bindings": [
    {
      "type": "httpTrigger",
      "direction": "in",
      "authLevel": "anonymous",
      "name": "req"
    },
    {
      "type": "http",
      "direction": "out",
      "name": "$return"
    }
  ]
}

Additional Tips

Example requirements.txt

azure-functions
azure-storage-blob
azure-identity

Example local.settings.json

{
  "IsEncrypted": false,
  "Values": {
    "AzureWebJobsStorage": "<YourStorageConnectionString>",
    "FUNCTIONS_WORKER_RUNTIME": "python"
  }
}

By following these steps, you should be able to resolve the issues and successfully deploy your Azure Function. If you continue to encounter problems, please provide additional details about the specific errors or logs you see during deployment.

Reasons:
  • Whitelisted phrase (-1): in your case
  • RegEx Blacklisted phrase (2.5): please provide
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Richard Zhang Love You

79157508

Date: 2024-11-05 02:35:47
Score: 2
Natty:
Report link

An another way to solve this problem: Add export PYTHONWARNINGS=ignore to your .zshrc

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

79157502

Date: 2024-11-05 02:32:46
Score: 1
Natty:
Report link

c17_updated_proposed_fdis.pdf § 6.7.9 point 19:

... all subobjects that are not initialized explicitly shall be initialized implicitly the same as objects that have static storage duration.

and point 10:

If an object that has static or thread storage duration is not initialized explicitly, then: [...] — if it has arithmetic type, it is initialized to (positive or unsigned) zero

Or latest draft § 6.7.10 points 20 and 11

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

79157497

Date: 2024-11-05 02:24:44
Score: 1
Natty:
Report link

Give Cypress the executable permission

chmod +x /Users/myName/Library/Caches/Cypress

You may have to then npx cypress install if it says it isn't installed.

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

79157492

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

Are you perhaps looking for SPI?

You could consider defining a factory interface in the API module, then implement this factory interface in the impl module and add the corresponding configuration file for SPI.

// api
public interface Builder {
   static Builder create(version) {
      ServiceLoader<BuilderFactory> bfs = ServiceLoader.load(BuilderFactory.class);
      Iterator<BuilderFactory> itr = bfs.iterator();
      if (itr.hasNext()) {
         BuilderFactory bf = itr.next();
         return bf.create(version);
      }
      throw new IllegalStateException();
   }
}

public interface BuilderFactory {
   Builder create(version);
}


// impl

// create [META-INF/services/BuilderFactory's Full classname] in impl module and
// write "DefaultBuilderFactory's full classname"
public class DefaultBuilderFactory implements BuilderFactory {
   Builder create(version) {
      if (xx) {
         return new Builder1;
      }
      return new Builder2;
   }
}

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

79157478

Date: 2024-11-05 02:06:41
Score: 1
Natty:
Report link

If this is your entering in hardfault, I think the PSP may not what is active in your code(instead the msp is), since the PC and some important message must be saved in stack before hardfault. First you can check the some special register:

To help detect what type of error was encountered in the fault handler, the Cortex®-M3 and Cortex®-M4 processors also have a number Fault Status Registers (FSRs) and Fault Address Registers (FARs) that are used for fault analysis.​ (from stm32 blog)

And from your infos I guess that It may be because of some instructions that are not supported on cortexM4 as the memory consumption there seems not so expensive.(so you can go on check the special register above and improve you description)

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

79157456

Date: 2024-11-05 01:46:37
Score: 1
Natty:
Report link

Yes, just the build tag go build -tags gocql_debug

You can also customize its behavior by setting cluster.Logger

cluster := gocql.NewCluster("127.0.0.1:9043", "127.0.0.1:9044", "127.0.0.1:9045")
cluster.Logger = log.New(os.Stdout, "gocql: ", log.LstdFlags)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jane He

79157452

Date: 2024-11-05 01:43:36
Score: 0.5
Natty:
Report link

This blog post allowed me to figure out the answer, so credit mostly goes there and I would recommended you read it in full.

The key point is that you need to include the shape argument in your definition of y_obs:

y_obs = pm.Normal("y_obs", mu=mu, sigma=sigma, shape=x_shared.shape, observed=y_train)

Note the shape=x_shared.shape !

I also saw in multiple examples (the blog and the pymc docs) that you should do

post_pred_test = pm.sample_posterior_predictive(trace, predictions=True)

i.e. set predictions=True - not sure if this makes a big difference but it seems like the right thing to do...

Your code has some other issues, at least with my version of pymc:

You cannot do post_pred_train["y_obs"].mean(axis=0), but I got it working with

plt.plot(
    x_train,
    post_pred_train.posterior_predictive["y_obs"].mean(("chain", "draw")),
    label="Posterior predictive (train)",
    color="red",
)

and similarly (but confusingly slightly different), for the test data:

plt.plot(
    x_test,
    post_pred_test.predictions["y_obs"].mean(("chain", "draw")),
    label="Posterior predictive (test)",
    color="orange",
)

Note: .predictions here instead of .posterior_predictive

And in both cases, I needed to take the mean across chain and draw

Reasons:
  • Blacklisted phrase (1): This blog
  • Blacklisted phrase (0.5): I need
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: mbrig

79157446

Date: 2024-11-05 01:40:36
Score: 3
Natty:
Report link

I provide compliance solutions and channels for corporate cross-border finance between West, HK and the Mainland. Call/wechat: +8613520320431(Boss.Qian). and I pay high premium/ cost for transfer RMB out of China.

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

79157435

Date: 2024-11-05 01:34:34
Score: 1
Natty:
Report link

I solve the problem by modify the test snippet like this:

test('It should have status=1 if the process is being executed', async () => {
const array = [[1, 2, 3], [4, 5, 6], [7, 8, 9], null]
const producer = createProducer(array)
const fn = backgroundProcess(producer, defaultConsumer())
fn() //I executed the fn() before the await

await sleep(MAX_MS)
const result = fn()
expect(result.status).toBe(STATUSES.Running) //The problem is the STATUSES is still 0 and must be 1

})

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Manuel Esteban Morales Zuarez

79157430

Date: 2024-11-05 01:31:34
Score: 3
Natty:
Report link

The JPEG compression ratio comes from quantization as well as run-length Huffman encoding. You cannot separate them by talking about the compression ratio of just one of them.

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

79157418

Date: 2024-11-05 01:17:31
Score: 2.5
Natty:
Report link

As the link provided by user17732522:

https://developercommunity.visualstudio.com/t/Information-message-VCR003-given-for-ext/10729403

A fix for this issue has been internally implemented and is being prepared for release.

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): user17732522
  • High reputation (-1):
Posted by: Minxin Yu - MSFT

79157417

Date: 2024-11-05 01:16:30
Score: 1.5
Natty:
Report link
--This will work (already tested):
zipMaybe :: [a] -> [b] -> [(Maybe a, Maybe b)]
zipMaybe [] [] = []
zipMaybe (x:xs) [] = [(Just x, Nothing)] ++ zipMaybe xs []
zipMaybe [] (y:ys) = [(Nothing, Just y)] ++ zipMaybe [] ys
zipMaybe (x:xs) (y:ys) = [(Just x, Just y)] ++ zipMaybe xs ys
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Ali

79157400

Date: 2024-11-05 01:02:28
Score: 2.5
Natty:
Report link
using (var reader = new StreamReader("your file path"))
{
    while (reader.Peek() != -1)
    {
        Console.WriteLine(reader.ReadLine());
    }
}

See: https://learn.microsoft.com/en-us/dotnet/api/system.io.streamreader.peek?view=net-8.0#definition

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

79157399

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

cookie|WARNING:-DO-NOT-SHARE-THIS.--Sharing-this-will-allow-someone-to-log-in-as-you-and-to-steal-your-ROBUX-and-items.|_4E424075999C4DBEC4EAD6AF7FB08E27847934F586A15DD6A793417A532E964901359675B26D5B62A4D8686EF78FA8165ADE0B872611B582BCF0E7D4D18862415CDB504DFDFFF7A94E670BBBC2286F517E032D02C7814F713B1BAB757431FFF94F26A1100401CE0EDC25883097923329C8738BFFD424B68B6E4D1B77B1E67C6FF3D1270B72B091EDACDCE85702D9BA91B6404DBFEF30662B643774625889193E894F5636E8B067166429BA878B62D48113A6948E027146E9F10FA7CD0BB77A3A63773C846BE02150E0AE73B8AB193039B3D2A2502845811EFCEF2BB1F28F92A67609E11F1953DE87085FACA074B3E22FC0745CE91FCA84AE29789F1F2D3074E15ED045FACF527B3F8CEB6DFEFF3B5B758195FD75C85C78393CA04E4894D927229041E6FB0D92EFF28BCCA301906EBF07E0C6B27BCCFDDE6A934757D3A570955AAD81DBF46E82F5CD02661CEF003654EC74610F7FF8D21EE52820CE045895410E8908E68900E00B39ADD5C74F3C2B915683FE238C2B145C5CBFEEC10771EB541FD9F459F4130300CF9F3F1AD2E1C7D14EB512A298FBC86737C5326A4DAB5E2B4279462D80390968979874374F8B319EFBEDB9B2CAE4EF1465EDABE57DF062DEFE10144B46F117CFF67762AC48293C9EFBEFAD9AD66CF0D397A78554D4BA04DB082F4E2C87E4E4D2B5A5807F967B7A3E3C17A5832F0430C1284AA1C46A1D1AA3E20E342D1F30398ABBE84D6F9A750D6DA01BC68C6BE159917C07679F930E341084D52803D50481408D86AFA5D2E2A74F02426AFF24597A0B0D3991094F0DDE218D332C00DEC78EFB1B6F17278242F1DF77B14439913AD0CEC8B2E9C2609AA192C268887D0000885BBB249AE73363E50D55F061DFD08B6A7CFB284210EC49784B5A2EE5DE9E59B9624F0FE6A0548BF39A548C7EDF562E4CAA2C15828FF23065121C66E68CCB9DEDAE104EA5622F71A8539AD74AA4D8F2D05B61D4F58348DF5428A2DD040A58C418A08E61D79002B10FE02D8CE84679F0E4CD95755CBF26320477441B070DA9252557CA6F76E93FB391C0DDD3A6DF8D2C1C7DEF60FA94475AE077F06168460E7AD4417F9BC9BDB09B01C42A823C520C63CD7126BD3DF344771C86C7C4D1E4C0D9D5BE688160FE8EB64E356CEE4188B7

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Itachi uchiha

79157393

Date: 2024-11-05 00:57:27
Score: 1.5
Natty:
Report link

Looks like I added spring-boot-maven-plugin under:

<pluginManagement>
   <plugins> 

     spring-boot-maven-plugin

   <plugins>
</pluginManagement>

when it's suppose to be under plugins. Now my jar is generating correctly just not sure why MANIFEST.MF still has "Created-By: Maven JAR Plugin 3.4.2".

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

79157379

Date: 2024-11-05 00:50:25
Score: 3.5
Natty:
Report link

Your code is perfectly fine and it works in Chrome too.

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

79157366

Date: 2024-11-05 00:41:24
Score: 3
Natty:
Report link

This is a bug that has been around forever. I have filed many bug reports on this and so have several others. They refuse to do anything.

https://developercommunity.visualstudio.com/t/Visual-Studio-randomly-modifiesreverts-/10782463

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

79157365

Date: 2024-11-05 00:41:24
Score: 3
Natty:
Report link

This is a bug that has been around forever. I have filed many bug reports on this and so have several others. They refuse to do anything.

https://developercommunity.visualstudio.com/t/Visual-Studio-randomly-modifiesreverts-/10782463

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

79157364

Date: 2024-11-05 00:41:24
Score: 3
Natty:
Report link

This is a bug that has been around forever. I have filed many bug reports on this and so have several others. They refuse to do anything.

https://developercommunity.visualstudio.com/t/Visual-Studio-randomly-modifiesreverts-/10782463

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

79157352

Date: 2024-11-05 00:34:22
Score: 1.5
Natty:
Report link

Update (October 2024)

A fix has landed in Chromium that addresses this issue.

Chromium-based browsers will now automatically ignore HSTS pins for the localhost domain.

The changes are now live in Chrome Canary.

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

79157350

Date: 2024-11-05 00:32:22
Score: 3
Natty:
Report link

I found an old config in my package json which was excluding filesystem from expo since I wasn't using expo except for 2 packages. removing it resolved this issue.

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

79157349

Date: 2024-11-05 00:29:21
Score: 1
Natty:
Report link

you can create a dim table

Table = DISTINCT(Table1[Commodity])

create relationships among 4 tables. enter image description here

then use the commodity column in the new dim table as a filter and create two measures

table1 sum = sum(Table1[MTMValue])+0
table2 sum = sum(Table2[MTMValue])+0

enter image description here

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

79157337

Date: 2024-11-05 00:13:18
Score: 2
Natty:
Report link

This is the sample data that I used

KT session
Completed
Completed
Delayed
In Progress
In Progress
In Progress
Yet to start
Yet to start
Yet to start
Yet to start

you can drag the column twice into different fields.

enter image description here

enter image description here

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

79157335

Date: 2024-11-05 00:12:17
Score: 2
Natty:
Report link

I also encountered this problem in a similar case.

I saw a reference to a thread on IssueTracker about this problem, it seems to be something that has been flagged for handling by Google, you might want to follow updates there.

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

79157326

Date: 2024-11-05 00:05:16
Score: 2
Natty:
Report link

You can also check the web app Album Animator that helps you convert your music album or playlist to video automatically. You can just upload all your tracks and a cover art, and the app batch renders all the songs one by one into a video of your album! It's free for it's basic version. The link: https://www.albumanimator.io/

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

79157317

Date: 2024-11-04 23:57:14
Score: 1.5
Natty:
Report link

/// /// Alternates the colors of the lines in a RichTextBox. Currently the colors are white and light pink. /// /// Text Box to be colored private void colorTextBox(RichTextBox box) { int startIndex = 0; // Index to the first character of the next line for (int lineNumber = 0; lineNumber < box.Lines.Count(); lineNumber++) { int curLineLength = box.Lines[lineNumber].Length; Color backgroundColor = lineNumber % 2 == 0 ? Color.White : Color.LightPink; box.Select(startIndex, curLineLength); box.SelectionBackColor = backgroundColor; box.DeselectAll(); box.Select(box.SelectionLength, 0); startIndex += curLineLength; // Skip to next line } }

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

79157316

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

Try with ip address instead of localhost, I have some problems with localhost certificate:

https://127.0.0.1:9443/ibmmq/console

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Tavo Sánchez

79157307

Date: 2024-11-04 23:51:13
Score: 1.5
Natty:
Report link

No need for pro. You can install these. I have installed PIL, OpenCV and Matplotlib on PyCharm Community Edition. Also, I have seen in the site-packages a lot more packages. Here are some simple blogs on installing these libraries. I have not tried Pandas. Installing OpenCV, Installing Matplotlib, Installing PIL

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

79157303

Date: 2024-11-04 23:48:12
Score: 2.5
Natty:
Report link

Came here from:

--host helped to get it working inside the Dev Container:

  "scripts": {
...
    "dev": "refine dev --host",
...
  },
Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Aleksandr Ilin

79157300

Date: 2024-11-04 23:45:11
Score: 0.5
Natty:
Report link

ListColumns(strDate).Index is the column position within the list

See: https://learn.microsoft.com/en-us/office/vba/api/excel.listcolumn.index

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): is the
  • High reputation (-2):
Posted by: Tim Williams

79157296

Date: 2024-11-04 23:44:11
Score: 2.5
Natty:
Report link

I found my error i had to remove:

"FollowSource": 1,
and
"StorageClass": "STANDARD"
from my dict because it was wrong syntax I guess

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

79157293

Date: 2024-11-04 23:41:10
Score: 2.5
Natty:
Report link

function requestStats(url) { var options = { method: 'GET', url: url, json: true, headers: { 'Connection': 'keep-alive', 'Accept-Encoding': '', 'Accept-Language': 'en-US,en;q=0.8' } }; return request(options); }

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

79157291

Date: 2024-11-04 23:41:10
Score: 0.5
Natty:
Report link

The developers have replied that the serial pin will be in an undefined state before it is initialized. So I have put a work around in software: I just ignore all characters before a known marker is received. This works well for me, for now. But this is only sweeping the problem under the carpet.

Probability theory says that if sufficient number of monkeys type randomly for sufficient number of years, then you can expect to see a quote from Shakespeare in their output!

If an uninitialized output pin is going to be in an undefined state, by design, it is a ticking time bomb. Such engineering practices have resulted in exploding space shuttles and melting nuclear reactors!

A better design would be to start the pins in INPUT mode by default. Software can take several milliseconds to complete its boot up routines, read configuration settings etc., before initializing the serial port. Till then the port can at least be silent.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
Posted by: Raja

79157289

Date: 2024-11-04 23:40:10
Score: 1.5
Natty:
Report link

As an update, I got the following response when asked on the GCC website:

"It's not part of the ABI, but there can be performance benefits from aligning arrays, for example when code is vectorized. It's not possible to easily tell exactly how large the array will be in practice, so even very small ones get aligned.

There's no point in doing this for scalar objects as the next location cannot ever contain a related object."

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Oren Zvi

79157279

Date: 2024-11-04 23:32:09
Score: 2.5
Natty:
Report link

My error was due to the fact that I added the scrollPane inside an AnchorPane. I removed the parent anchorPane so that the ScrollPane become the parent container and everything work just fine after that.

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

79157277

Date: 2024-11-04 23:31:09
Score: 2
Natty:
Report link

i faced the same issue for a complete day, in my project i calles the path : /api/test and every time i tried to fire up the cron function i faced a 404.

when i changes the directory to /cron/test/route.js its finally worked!

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: דניאל קורקבדוס

79157272

Date: 2024-11-04 23:28:08
Score: 2
Natty:
Report link

Credit given to user @paleonix

line A_s[threadIdx.y * tile_size + threadIdx.x] = a_d[row*n + tile*tile_size + threadIdx.x];

should be changed to

A_s[threadIdx.y * tile_size + threadIdx.x] = a_d[row*k + tile*tile_size + threadIdx.x];

this is due to incorrect indexing of global memory Matrix A into the shared memory matrix A_s, resulting is an incorrect partial sum.

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @paleonix
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Maayan Israel

79157271

Date: 2024-11-04 23:27:08
Score: 3
Natty:
Report link

copy the command fnm env --use-on-cd | Out-String | Invoke-Expression into $profile to save the settings

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

79157268

Date: 2024-11-04 23:27:08
Score: 2.5
Natty:
Report link

It should be noted that you have to: navigate to the downloaded container in Finder. Then right click and Show Package Contents -> AppData/Documents

Thanks yoAlex5 for that one!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Chris Walken

79157262

Date: 2024-11-04 23:21:06
Score: 2.5
Natty:
Report link

In Semantic Kernel you need to define the OpenAI settings before you use it. Please see the full example here Microsoft learn

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

79157248

Date: 2024-11-04 23:17:05
Score: 1.5
Natty:
Report link

On macOS Sonoma System Settings, → type "Keyboard layouts". Click on the found entry. In the panel in the middle, you see. Text Input. Click on the Input Sources Button Edit.. There you see the fifth entry, "Add period with double space". Deactivate it and you are done.

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

79157247

Date: 2024-11-04 23:16:05
Score: 3
Natty:
Report link

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

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

Example:

Install this library.

pip install PoorMansHeadless

# ----scrip code---------
from math import prod
from time import sleep

import undetected_chromedriver as uc
from PoorMansHeadless import FakeHeadless
from a_cv_imwrite_imread_plus import open_image_in_cv
from cv2imshow.cv2imshow import cv2_imshow_single
# pip install PoorMansHeadless a-cv-imwrite-imread-plus cv2imshow
def get_hwnd(driver):
    while True:
        try:
            allhwnds=[x for x in FakeHeadless.get_all_windows_with_handle() if x.pid == driver.browser_pid]
            return sorted(allhwnds, key=lambda x: prod(x.dim_win), reverse=True)[0].hwnd
        except Exception:
            continue
if __name__ == "__main__":
    driver = uc.Chrome()
    driver.get('http://www.google.com')
    driver.get_screenshot_as_png()
    sleep(2)
    hwnd=get_hwnd(driver)
    driverheadless=FakeHeadless(hwnd)
    driverheadless.start_headless_mode(width=None, height=None, distance_from_taskbar=1)
    screenshot1=lambda: cv2_imshow_single(open_image_in_cv(driver.get_screenshot_as_png()),title='sele1',killkeys="ctrl+alt+q")

Library

https://github.com/hansalemaos/PoorMansHeadless

Reasons:
  • Blacklisted phrase (1): youtu.be
  • Blacklisted phrase (1): this video
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: PJMecNet

79157243

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

I don't know enough math to fully understand your question but theses lines seems suspicious:

    x = np.linspace(0, 10, 100)

    [...]

    x_train, x_test = x[:80], x[80:]
    y_train, y_test = y[:80], y[80:]

This is the only place where you can get an error that gives a dimension of 20.

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

79157231

Date: 2024-11-04 23:07:02
Score: 1.5
Natty:
Report link

You can also use IFERROR function. This function let's you return a desired value with the formula results in an #N/A error.

In your example try: =IFERROR(A1*B1,B1)

So if A1 is a value then it will calculate "A1*B1". If A1 is #N/A this calculation will error trying to multiply, so the formula will just result in "B1".

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

79157207

Date: 2024-11-04 22:54:59
Score: 2
Natty:
Report link

At one time the default was 10 seconds. There is no longer a delay before the session starts. The session starts as soon as the app displays an Activity.

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

79157196

Date: 2024-11-04 22:47:57
Score: 2.5
Natty:
Report link
<Menu closeOnClick>
...
</Menu>
Reasons:
  • Low length (2):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • Low reputation (0.5):
Posted by: Mohamed EL YONOUSI

79157194

Date: 2024-11-04 22:44:56
Score: 5.5
Natty:
Report link

Is the .NET version in your Azure environment also .NET 6?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Is the
  • Low reputation (0.5):
Posted by: Shanmugam Sudalaimuthu

79157192

Date: 2024-11-04 22:43:55
Score: 1
Natty:
Report link

As said by @jonrsharpe

import type ... is used when you only need the type, not the value, of the import.

import: Importing Both Types and Values

The import statement is used to import both types and values (functions, classes, variables, objects, etc.) from a module. When you use a regular import, TypeScript will import the type information along with the actual runtime values.

import type: Importing Only Types

The import type statement, introduced in TypeScript, is used to import only the type information from a module. It indicates that you are interested in using the types of exported values but not the actual runtime values.

Additionally, we use import type to use the type for type-checking purposes without including the actual runtime values of the module in the emitted JavaScript code.

Reference: https://medium.com/@quizzesforyou/import-vs-import-type-in-typescript-8e5177b62bea

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @jonrsharpe
  • Self-answer (0.5):
Posted by: Aron

79157190

Date: 2024-11-04 22:41:55
Score: 2.5
Natty:
Report link

I am an absolute beginner but... l see that after the for loop, (i) is the same as (n), you can delete it.

also, l think you forgot to delete the (dates) array.

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

79157165

Date: 2024-11-04 22:25:52
Score: 3.5
Natty:
Report link

just came across this. it seems to keep the min height if it is added after something is put there but not otherwise

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

79157158

Date: 2024-11-04 22:18:51
Score: 0.5
Natty:
Report link

https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity#additional_notes

A few things to remember about specificity:

Specificity only applies when the same element is targeted by multiple declarations in the same cascade layer or origin. Specificity

only matters for declarations of the same importance and same origin and cascade layer. If matching selectors are in different origins, the cascade determines which declaration takes precedence.

When two selectors in the same cascade layer and origin have the same specificity, scoping proximity is then calculated; the ruleset

with the lowest scoping proximity wins. See How @scope conflicts are resolved for more details and an example.

If scope proximity is also the same for both selectors, source order then comes into play. When all else is equal, the last selector

wins.

As per CSS rules, directly targeted elements will always take precedence over rules which an element inherits from its ancestor.

Proximity of elements in the document tree has no effect on the 
specificity.

I that the CSS probably worked or came close but got nullified by one of these rules.

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

79157153

Date: 2024-11-04 22:16:50
Score: 3.5
Natty:
Report link

I found my answer here: https://github.com/nodejs/node-addon-api/issues/222 (which I found through the post Google found me here: https://github.com/nodejs/node-addon-api/issues/416)

Basically, just rm -rf'ed CommandLineTools and reinstalled from scratch. (Sometimes --force-install is just not good enough.)

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