79241932

Date: 2024-12-01 15:48:39
Score: 10.5 đŸš©
Natty: 6
Report link

I am also facing the same issue. did you found solution of this Please

Reasons:
  • Blacklisted phrase (1): I am also facing the same issue
  • RegEx Blacklisted phrase (3): did you found solution
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I am also facing the same issue
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: vicky

79241923

Date: 2024-12-01 15:43:37
Score: 3
Natty:
Report link

Thank you for your detailed answer. I appreciate the suggestion of introducing a second adapter/service that extracts the data from the file and transforms it into an appropriate format. That approach makes sense and clarifies part of the structure.

However, I still have a question regarding your proposed structure. In Clean Architecture, adapters typically reside in the third layer, not in the outermost layer. The API service, which makes the API request, belongs to the outermost layer—the Infrastructure layer.

What I don’t quite understand is how the adapter would know how to process or transform the data without knowing the structure of the returned JSON object. It’s not just about knowing the data format (e.g., JSON), but about understanding how the JSON object is structured—its keys, nested objects, and overall schema. The adapter would need this knowledge in order to map or iterate over the data correctly.

This creates a potential conflict: either the API layer must perform some kind of preprocessing or transformation so that the adapter can work with a standardized format, or the adapter must have specific knowledge of the API’s response structure, which would tightly couple it to the outermost layer.

How do you envision this being handled in Clean Architecture? How can the separation of layers be maintained effectively in this scenario, while ensuring the adapter has the necessary information to process the data correctly? I’d appreciate any insights or recommendations on this.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (1): How do you
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Spiritual Mya

79241922

Date: 2024-12-01 15:41:37
Score: 1
Natty:
Report link

strlen() does not return number of characters, but number of bytes (char) of the string. No ascii characters such that "Ă€Ă¶ĂŒ" are 2 bytes long. It exists wchar_t type (C++) for unicode strings.

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

79241915

Date: 2024-12-01 15:39:36
Score: 1
Natty:
Report link

I was getting the somewhat same error because my Django version was 5.1 and MariaDb 10.4 (older than required).

raise NotSupportedError( django.db.utils.NotSupportedError: MariaDB 10.5 or later is required (found 10.4.32).

To connect Django to MySql database using xampp server, there should be compatibility between the version of Django and MariaDB.

Django version 4.2 and higher supports for MariaDB 10.4 and above.

Django version 5.1 and higher support for MariaDB 10.5 and above.

To fix this without changing MariaDB version follow the steps:

1.Check Django version
python -m django --version

2.Change the version according to version of MariaDB

pip uninstall django

pip install Django version==4.2 (in my case version would be 4.2)

This should solve the issue, without changing the xampp version.

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

79241906

Date: 2024-12-01 15:37:36
Score: 2
Natty:
Report link

import socket from IPy import IP

def scan(target): converted_ip = check_ip(target) print(f'\n[+] Scanning Target: {target}') for port in range(1, 100): scan_port(converted_ip, port)

def check_ip(ip): try: IP(ip) return ip except ValueError: return socket.gethostbyname(ip)

def scan_port(ip, port): try: sock = socket.socket() sock.settimeout(0.5) sock.connect((ip, port)) print(f"[+] Port {port} is Open") except: pass

targets = input("[*] Enter Target To Scan (IP/Hostname): ") scan(targets)

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

79241889

Date: 2024-12-01 15:32:34
Score: 2
Natty:
Report link

If you have n intermediate table without any other additional fields, go with composite key.

If the 'intermediate' table has additional fields, is not a trivial intermediate table. Then, having a surrogate key is better since indexing and quering for additional fields is more efficient.

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

79241888

Date: 2024-12-01 15:31:34
Score: 0.5
Natty:
Report link

You can use Sonda. It provides more features than other proposed solutions and generates more accurate reports.

Tree map chart for a folder containing multiple folders and files from the Sonda project itself

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Filip Sobol

79241874

Date: 2024-12-01 15:24:32
Score: 1
Natty:
Report link

You are getting 404 NOT FOUND because you don't have, in your Flask code, /login route.

Your path /api/influencer/profile exists and is perfectly fine, but when you get to it, decorator @auth_required('token') checks if the query is properly authorised. For some reason it fails authorisation. Then, accordingly to flask-secure documentation, auth_required calls unauthn_handler, which "will return a 401 response if the request was JSON, otherwise will redirect to the login view." It tries to redirect the user to login view, fail to find login view (because you haven't implemented it in Flask) and this failure throws 404 Not Found error.

This is my understanding of your problem, please note that I've got it through brief reading of flask-secure documentation - I don't have personal experience with this module.

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

79241870

Date: 2024-12-01 15:22:32
Score: 1
Natty:
Report link

import requests

Prompt user to input their IP address

user_ip = input('Enter your IP: ')

Construct the URL using the user-provided IP address

url = f"https://ipinfo.io/widget/demo/{user_ip}"

headers = { "Host": "ipinfo.io", "sec-ch-ua-platform": "Android", "User-Agent": "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36", "sec-ch-ua": '"Chromium";v="130", "Google Chrome";v="130", "Not?A_Brand";v="99"', "Content-Type": "application/json", "sec-ch-ua-mobile": "?1", "Accept": "/", "sec-fetch-site": "same-origin", "sec-fetch-mode": "cors", "sec-fetch-dest": "empty", "Referer": "https://ipinfo.io/", "Accept-Encoding": "gzip, deflate, br, zstd", "Accept-Language": "en-US,en;q=0.9,ta;q=0.8,id;q=0.7", "Cookie": "_gcl_au=1.1.1727933713.1732433238; _ga_3MZZVKJJB0=GS1.1.1732433238.1.0.1732433238.60.0.1253076071; _ga=GA1.1.2083657317.1732433239; _ga_RWP85XL4SC=GS1.1.1732433238.1.0.1732433238.60.0.492221781; csrf_token=e2787659-0c52-4b35-89d2-b5f3e8e21bcf; _clck=1hqnbfu%7C2%7Cfr5%7C0%7C1789; __hstc=97467072.b675e1673dfc0e6cc2deeb6efd91655d.1732433239703.1732433239703.1732433239703.1; hubspotutk=b675e1673dfc0e6cc2deeb6efd91655d; __hssrc=1; __hssc=97467072.1.1732433239703; _clsk=1qf084q%7C1732433240222%7C1%7C1%7Ci.clarity.ms%2Fcollect", "Priority": "u=1, i" }

response = requests.get(url, headers=headers)

print(response.text)

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

79241868

Date: 2024-12-01 15:21:31
Score: 2
Natty:
Report link

The name of a game in Play Store changes over time. Play Store sometimes gives a different name from the name you get when it is downloaded so that it receives you that the name is that when it is not. You can report that the name is wrong to the name on Play Store if the app name is different from the name on Play Store. You can also send messages to the owner of the game to change. Tru to change it if you can. The game name you get when downloaded is close or exact but with some difference

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

79241867

Date: 2024-12-01 15:21:31
Score: 1
Natty:
Report link

The answer from @Isaac Souza it's correct but i want to add some details, my problem was in fact that in my server the project was in var/www/html/project/project-back/ but inside the container the project was in var/www/html and this caused the 404 file not found.

To fix it i had to change the apache config for the subdomain and add this :

    # Remove the proxy, you need to use SetHandler "proxy:fcgi://127.0.0.1:9000"
    # ProxyPreserveHost On
    # ProxyPass / fcgi://localhost:9000/
    # ProxyPassReverse / fcgi://localhost:9000/

    # This need to be the symfony public path inside the container
    Define container_root "/var/www/html/public"
    <FilesMatch \.php$>
        Require all granted
        SetHandler "proxy:fcgi://127.0.0.1:9000"
        ProxyFCGISetEnvIf "true" DOCUMENT_ROOT   "${container_root}"
        ProxyFCGISetEnvIf "true" SCRIPT_FILENAME "%{HANDLER}${container_root}%{reqenv:SCRIPT_NAME}"
    </FilesMatch>
    UnDefine container_root

You can't use the ProxyPass in this case you need to use SetHandler "proxy:fcgi://127.0.0.1:9000" and define the DOCUMENT_ROOT with the path inside the container to the symfony public folder.

I've found the solution here : https://serverfault.com/questions/1047449/apache-php-fpm-setup-results-in-file-not-found

Sorry i didn't saw it before, so i guess the question can be marked as duplicate.

Reasons:
  • RegEx Blacklisted phrase (1): i want
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Anis B.

79241857

Date: 2024-12-01 15:17:30
Score: 2
Natty:
Report link

The problem is this DiaryCard widget uses CachedNetworkImage. And in case of errorWidget, it flickers when user scrolls down and 4 more items are added with setState. It is due to re-rendering issue by setState.

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

79241851

Date: 2024-12-01 15:16:30
Score: 1
Natty:
Report link

As suggested in comments by @GerrySchmitz I have used a combination of UniformGrid and ItemsControl. Then Bind the multidimensional list using a simple FlattenListConverter. As the name suggests the converter will flatten the multidimensional list into list of items, this will be fed by ItemsControl to the UniformGrid and will be evenly distributed using the uniformity provided by UniformGrid, as previewed bellow.

View.xaml

<UserControl x:Class="Views.BoardView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:local="clr-namespace:Views"
             xmlns:viewmodels="clr-namespace:ViewModels"
             xmlns:converters="clr-namespace:Converters"
             xmlns:core="clr-namespace:System;assembly=mscorlib"
             mc:Ignorable="d"
             Loaded="UserControl_Loaded"
             d:DesignHeight="400"
             d:DesignWidth="400"
             d:Background="{StaticResource BoardBackground}"
             d:DataContext="{d:DesignInstance Type=viewmodels:BoardViewModel}">
    <UserControl.Resources>
        <converters:FlattenListConverter x:Key="FlattenListConverter" />
    </UserControl.Resources>
    <Border Grid.Column="1"
            Background="{Binding Background, RelativeSource={RelativeSource Self}}"
            VerticalAlignment="Stretch"
            HorizontalAlignment="Stretch">
        <ItemsControl ItemsSource="{Binding Board, Converter={StaticResource FlattenListConverter}}">
            <ItemsControl.ItemsPanel>
                <ItemsPanelTemplate>
                    <UniformGrid x:Name="uniGridBoard"
                                 Background="Transparent">
                    </UniformGrid>
                </ItemsPanelTemplate>
            </ItemsControl.ItemsPanel>
        </ItemsControl>
    </Border>
</UserControl>

FlattenListConverter.cs

using BoardLogic;
using System;
using System.Collections.ObjectModel;
using System.Globalization;
using System.Windows.Data;
using System.Linq;

namespace Converters;

public class FlattenListConverter : IValueConverter
{
    public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
    {
        if (value is not ObservableCollection<ObservableCollection<Cell>> items)
            return null!;
        return items.SelectMany(items => items);
    }

    public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
    {
        throw new NotImplementedException();
    }
}
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @GerrySchmitz
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: ycsvenom

79241848

Date: 2024-12-01 15:12:29
Score: 1
Natty:
Report link

I've just solved this for myself by completing next steps:

  1. Click on "File" in Android Studio
  2. Choose "Settings..."
  3. Open the "Tools" branch
  4. Choose "Terminal" in the dropped down list
  5. Change powershell.exe to cmd.exe in "Shell Path"
  6. Click on "Apply"

In case you still have problems, make sure that "Include system environment variables" is enabled in the right most part of the "Environment variables" bar.

If nothing helped above, then you must make sure that you have "Path" environment variable for Flutter SDK (it has to end with .../flutter/bin).

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

79241846

Date: 2024-12-01 15:10:29
Score: 1
Natty:
Report link

Question: by reference or by value?
Answer: different needs, different chooses.

Microsoft explains it very clearly in this smart pointer article:

  • Pass the shared_ptr by value. This invokes the copy constructor, increments the reference count, and makes the callee an owner. There's a small amount of overhead in this operation, which may be significant depending on how many shared_ptr objects you're passing. Use this option when the implied or explicit code contract between the caller and callee requires that the callee be an owner.

  • Pass the shared_ptr by reference or const reference. In this case, the reference count isn't incremented, and the callee can access the pointer as long as the caller doesn't go out of scope. Or, the callee can decide to create a shared_ptr based on the reference, and become a shared owner. Use this option when the caller has no knowledge of the callee, or when you must pass a shared_ptr and want to avoid the copy operation for performance reasons.

  • Pass the underlying pointer or a reference to the underlying object. This enables the callee to use the object, but doesn't enable it to share ownership or extend the lifetime. If the callee creates a shared_ptr from the raw pointer, the new shared_ptr is independent from the original, and doesn't control the underlying resource. Use this option when the contract between the caller and callee clearly specifies that the caller retains ownership of the shared_ptr lifetime.

  • When you're deciding how to pass a shared_ptr, determine whether the callee has to share ownership of the underlying resource. An "owner" is an object or function that can keep the underlying resource alive for as long as it needs it. If the caller has to guarantee that the callee can extend the life of the pointer beyond its (the function's) lifetime, use the first option. If you don't care whether the callee extends the lifetime, then pass by reference and let the callee copy it or not.

  • If you have to give a helper function access to the underlying pointer, and you know that the helper function uses the pointer and return before the calling function returns, then that function doesn't have to share ownership of the underlying pointer. It just has to access the pointer within the lifetime of the caller's shared_ptr. In this case, it's safe to pass the shared_ptr by reference, or pass the raw pointer or a reference to the underlying object. Passing this way provides a small performance benefit, and may also help you express your programming intent.

  • Sometimes, for example in a std::vector<shared_ptr>, you may have to pass each shared_ptr to a lambda expression body or named function object. If the lambda or function doesn't store the pointer, then pass the shared_ptr by reference to avoid invoking the copy constructor for each element.

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

79241842

Date: 2024-12-01 15:08:28
Score: 0.5
Natty:
Report link

When working with TYPO3 and inline fields in the TCA configuration, TYPO3 already handles the duplication of related child records when you copy a parent record, as long as the configuration is properly set up.

This behavior is managed in the DataHandler class, specifically in the copyRecord() method, which ensures that referenced child records are duplicated. You can refer to the source code for more details : https://github.com/TYPO3/typo3/blob/12.4/typo3/sysext/core/Classes/DataHandling/DataHandler.php#L4117

In your case, you should verify that the 'tx_headline' field is correctly storing the UID of the parent record in the database.

Reasons:
  • Whitelisted phrase (-1): In your case
  • Long answer (-0.5):
  • No code block (0.5):
  • Starts with a question (0.5): When
  • Low reputation (1):
Posted by: Haythem Daoud

79241834

Date: 2024-12-01 15:05:27
Score: 2
Natty:
Report link

You can try to recreate the template folder. And also it will be good just to try to set a simple Flask app like 'Hello world!'.This simple setup should help you verify that your Flask environment is correctly configured and that templates are being loaded properly. And something which I always do (but I am with PyCharm) to mark the directory as Template directory - I don't know if there is connection with the problem.

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

79241832

Date: 2024-12-01 15:04:27
Score: 2.5
Natty:
Report link

One thing you can try is use flutter_fgbg: ^0.6.0 package to listen app state and update your state according to it

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

79241831

Date: 2024-12-01 15:04:27
Score: 2
Natty:
Report link

I'm not sure if this will be helpful, but in my case, since it was a TypeScript project, deleting all .js extension files from the dashboard and shared-theme folders made it work. However, the compile errors still remain.

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

79241825

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

You can export inserts from the Model by going to the File > Export > Forward Engineer SQL CREATE Script. Check Generate Insert Statements for Tables. Save the SQL file and then run the Script

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

79241821

Date: 2024-12-01 14:57:25
Score: 0.5
Natty:
Report link

which terraform and aws providers version are you using?

I used terraform v1.5.6 and aws_provider version = ">= 4.67.0" and i applied the same configuration without the ttl, then i added the ttl object, and the plan detected it without any issue: enter image description here

try to check the configuration within the state file to see wether the ttl is configured there or no using:

terraform state show aws_dynamodb_table.vehicle_id_table

and ensure that the Terraform state reflects the TTL settings.

Also maybe the TTL is already added manually, that's why the plan is not detecting anything. But, terraform detects it without any issue.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): which
  • Low reputation (0.5):
Posted by: Fedi Bounouh

79241820

Date: 2024-12-01 14:56:25
Score: 0.5
Natty:
Report link

In my situation, the total number of backend servers does not change when getting search results.

That makes the grid load waiting for more rows to load. while in the case of search, the total should decrease

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

79241813

Date: 2024-12-01 14:52:24
Score: 1.5
Natty:
Report link

It seems that RTC battery is empty. Need to replace it. I assumed that initialization of RTC would throw an error in this case. But apparently, RTC init can be succesful while RTC battery is empty. String for LogFileDirtherefore is not generated properly causing the error

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

79241807

Date: 2024-12-01 14:48:23
Score: 1.5
Natty:
Report link

I upgrade a Web App from .NET 6 to .NET 8 and ran into the same issue - precisely the same error message.

I updated Nuget packages related to Microsoft.AspNetCore (components, razor runtime, etc.) to the latest version 8 (8.0.11 at this time), and as suggest by @Darkseal I also added the System.Security.Cryptography.Pkcs version 8.0.1.

This resolved the issue.

Nuget Package Manager Screenshot

Reasons:
  • No code block (0.5):
  • User mentioned (1): @Darkseal
Posted by: Jim Speaker

79241806

Date: 2024-12-01 14:47:23
Score: 1
Natty:
Report link

Problem The state update (setState) affects the parent widget (_ImpostazioniLaunchComponentCopyState), but since CommandsPage and its children are recreated every time, the state change doesn't persist across navigation.

Solution To preserve the state across navigation, you can:

Pass the updated state (test) explicitly to the CommandsPage. Use a state management solution like Provider, GetX, or InheritedWidget. Refactor your CommandsPage to maintain its own state or receive the initial value from the parent widget.

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

79241800

Date: 2024-12-01 14:44:22
Score: 1.5
Natty:
Report link

I think the "random-effects" setting is a special case of the "random-design" setting. For instance suppose the Z matrix coincides with the X matrix in the "random-effects" setting and assume it is the normal mixed linear model. In that case a typical component in the "random-effects" setting looks like

x(fixed-parameter + N(0,var)) = N(x*fixed-parameter, x * var * x^t).

On the other hand in the normal "random-design" setting, a typical component looks like

fixed-parameter(x + N(0, var)) = N(x*fixed-parameter, fixed-parameter * var * fixed-parameter^t).

In both settings, we want to estimate "fixed-parameter" and the covariance matrix "var". With a change of variables for the covariance matrix, we can jump between the two settings.

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

79241795

Date: 2024-12-01 14:42:21
Score: 1.5
Natty:
Report link

Just in case anyone is still looking for an early version where append mode is available, Pydoop started to support it since release 0.7.0-rc2.

New in 0.7.0-rc2

  • Support for HDFS append open mode

    • fails if your Hadoop version and/or configuration does not support HDFS append
Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: PkDrew

79241794

Date: 2024-12-01 14:41:21
Score: 3
Natty:
Report link

Same issue to me. I just uninstalled and re-installed the Jupyter extension, and then all was OK.

Reasons:
  • RegEx Blacklisted phrase (1): Same issue
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
Posted by: taichi_tiger

79241787

Date: 2024-12-01 14:39:21
Score: 3
Natty:
Report link

After pip install cython==0.29.37 problem solved.

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

79241778

Date: 2024-12-01 14:34:20
Score: 2
Natty:
Report link

I want just to ask if you try with other codec like 'XVID', other thing - did you check if every img is read by your code. Ensure that self.length is defined and represents the duration of the video in seconds. If self.length is zero or not set, total_frames will be zero, and frames_per_image will be incorrectly calculated.

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Plamen Nikolov

79241772

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

This could be due to many reasons. First thing you can try is upadating url_launcher if it’s not the latest versin.

If updating url_launcher doesn’t solve your issue, then you can try updating Flutter and Xcode to the latest version.

After upgrading flutter version, run command flutter pub upgrade

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

79241771

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

I was facing the same issue, updated the plugin version to 2.2.0, and the error changed.

Now I get this error:

Execution failed for task ':update'.

Process 'command '/home/xxxxxxxxxx/.sdkman/candidates/java/17.0.10-librca/bin/java'' finished with non-zero exit value 1

Reasons:
  • RegEx Blacklisted phrase (1): I get this error
  • Low length (0.5):
  • Has code block (-0.5):
  • Filler text (0.5): xxxxxxxxxx
  • Low reputation (1):
Posted by: Marcus Rodrigues

79241765

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

Me pasa igual y temgo instalada la biblioteca pip install python-binance, hace un tiempo me pasĂł y me funciĂłnĂł con pip install --upgrade python-binance, ya no me funciona, tengo el entorno funcionando perfectamente

Reasons:
  • Blacklisted phrase (2): tengo
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: HARD KIND PARRA

79241760

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

The difference in behavior is due to the context and the exact types involved. In the match expression, d is a &&str, which requires explicit dereferencing to compare with a &str. but the url.scheme() comparison has two &str types (with different lifetimes), which Rust can compare directly. match expressions are also more strict about types and don't perform automatic dereferencing, unlike some other contexts in Rust.

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

79241758

Date: 2024-12-01 14:25:16
Score: 1.5
Natty:
Report link

You have to use message here because you need the value after submitting:

superForm(data.form.data, {
  ...
  onUpdated: ({ message }) => {
    ...
  }
});
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ala GARBAA

79241734

Date: 2024-12-01 14:11:11
Score: 5
Natty:
Report link

Try upgrading Swashbuckle.AspNetCore to 7.1.0

enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: user28573259

79241712

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

Ensure that the package.json is correctly configured with OnionShare and also the environment variables are proper. For Spring Boot ensure that the build version is proper.

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

79241709

Date: 2024-12-01 14:01:08
Score: 2
Natty:
Report link

open terminal and type this command to show list of available emulator

flutter emulators

This command shows the list of emulators with id and name then type this command to start the emulator

flutter emulators --launch emulator id

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

79241700

Date: 2024-12-01 13:55:07
Score: 2.5
Natty:
Report link

It turns out, the package does not work for web.

The words "web" and "Chrome" do not appear in the docs and in the pub.dev's readme, although the docs say "This plugin uses the free Geocoding services provided by the iOS and Android platforms. This means that there are restrictions to their use.", which means that "The current geocoding plugin is only for iOS and Android available.", as can be read in this proposal.

Reasons:
  • Blacklisted phrase (1): This plugin
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Filippo

79241684

Date: 2024-12-01 13:46:04
Score: 0.5
Natty:
Report link

Given that one wants to use the Spark configuration to do this check - and use secrets kept there one can use the following code :

val fs = FileSystem.get(new URI(<url to blob storage>), spark.sparkContext.hadoopConfiguration)
val path = new Path(url + s"/$directory")
fs.exists(path)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ohad Bitton

79241682

Date: 2024-12-01 13:45:02
Score: 10 đŸš©
Natty: 6.5
Report link

Have you found a solution? I have the same issue.

Reasons:
  • Blacklisted phrase (1): I have the same issue
  • RegEx Blacklisted phrase (2.5): Have you found a solution
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same issue
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Maksym Miroshnyk

79241669

Date: 2024-12-01 13:36:59
Score: 2.5
Natty:
Report link

Your images appear pixelated because your Game Window scale is set to 2.4x:

Game Window scale

To fix this, simply set it to 1x.

And if you want your images to be larger, make them larger by adjusting the Rect Transform instead.

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

79241665

Date: 2024-12-01 13:34:58
Score: 4
Natty:
Report link

To avoid this error without turning off SSR, I use a code like this,

ngOnInit(): void {
if (typeof window !== 'undefined' && localStorage) {
  this.adminId = localStorage.getItem('admin_id') || '';
  this.loadAdminDetails(this.adminId);
}}

And I would also like to know whether this method has any issue. Thanks in advance.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (3): Thanks in advance
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Buddhi Gayan

79241655

Date: 2024-12-01 13:28:56
Score: 2
Natty:
Report link

It does run well on my Mac using the jupyter notebook command rather the 2 methods I was trying (iruby command and VSCode extension).

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

79241651

Date: 2024-12-01 13:26:56
Score: 0.5
Natty:
Report link

Try npm i expo-dynamic-fonts. You can add custom fonts at runtime and you just pass in a font prop to the text component

https://www.npmjs.com/package/expo-dynamic-fonts

import React from 'react';
import { View } from 'react-native';
import { Text } from 'expo-dynamic-fonts';

const App = () => {
  return (
    <View className="flex-1 justify-center items-center">
      <Text font="Open Sans" className="text-lg">
        Hello, Open Sans!
      </Text>
      <Text font="Roboto" className="text-xl mt-4">
        Hello, Roboto!
      </Text>
    </View>
  );
};

export default App;
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: QueryKiller

79241643

Date: 2024-12-01 13:22:55
Score: 5
Natty:
Report link

Check this article out!😉
@ConditionalOnBean mainly for auto-configuration classes.

Reasons:
  • Blacklisted phrase (1): this article
  • Low length (1.5):
  • No code block (0.5):
  • User mentioned (1): @ConditionalOnBean
  • Low reputation (1):
Posted by: Rostik

79241632

Date: 2024-12-01 13:18:54
Score: 2.5
Natty:
Report link

The solution I was looking for is to use api platform state provider instead of a controller.

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

79241616

Date: 2024-12-01 13:12:52
Score: 2.5
Natty:
Report link

500 mg / 500 mcg per 500 mL ANTI-SUBCONIOUS) Oral Powder Supensions Whrilpool - edited remeared

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

79241601

Date: 2024-12-01 13:04:50
Score: 1
Natty:
Report link

ORG 20008 / Program starts at memory address 20008 INPUT / Input a number from the user STORE X / Store the input value in memory location X LOAD ONE / Initialize counter to 1 STORE Counter / Store counter in memory

Loop, LOAD X / Load the value of X SKIPCOND 000 / Check if X < 10 (SKIPCOND 000 skips when AC is zero) JUMP EndLoop / Exit loop if X >= 10 OUTPUT / Display the value of X ADD ONE / Increment X by 1 STORE X / Store the incremented value back in X LOAD Counter / Load the counter ADD ONE / Increment the counter by 1 STORE Counter / Store the incremented counter JUMP Loop / Repeat the loop

EndLoop, LOAD Counter / Load the final counter value OUTPUT / Display the counter HALT / Terminate the program

X, DEC 9 / Initial value of X (replace with the last digit of your ID if different) ONE, DEC 1 / Constant value 1 Counter, DEC 0 / Initial counter value

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

79241592

Date: 2024-12-01 13:01:50
Score: 0.5
Natty:
Report link

Fixed...

HAL_StatusTypeDef SwapBank(void)
{
    FLASH_OBProgramInitTypeDef OB;
    HAL_FLASHEx_OBGetConfig(&OB);

if (OB.USERConfig & OB_DUALBANK_DUAL)
{
    HAL_FLASH_Unlock();
    HAL_FLASH_OB_Unlock();
    if (OB.USERConfig & OB_BFB2_ENABLE)
    {
        OB.OptionType = OPTIONBYTE_USER;
        OB.USERType = OB_USER_BFB2;
        OB.USERConfig = OB_BFB2_DISABLE;
    }
    else
    {
        OB.OptionType = OPTIONBYTE_USER;
        OB.USERType = OB_USER_BFB2;
        OB.USERConfig = OB_BFB2_ENABLE;
    }
    if (HAL_FLASHEx_OBProgram(&OB) != HAL_OK)
    {
        HAL_FLASH_OB_Lock();
        HAL_FLASH_Lock();
        return HAL_ERROR;
    }
    
    HAL_FLASH_OB_Launch();
    HAL_FLASH_OB_Lock();
    HAL_FLASH_Lock();   
    NVIC_SystemReset();
    return HAL_OK;
    }
    return HAL_ERROR;
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Mehdi Sadeghi

79241585

Date: 2024-12-01 12:57:48
Score: 3
Natty:
Report link

use command + arrowdown

I have this issue solved in scaling android emulator in mac

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

79241583

Date: 2024-12-01 12:55:48
Score: 1
Natty:
Report link

This is the modern approach:

  1. Generate dynamic anchor

    function createAnchor(url) { const anchor = document.createElement('a'); anchor.href = url; return anchor; }

  2. Simulate click function

    function simulateClick(element) { const event = new Event('click'); element.dispatchEvent(event); }

  3. Implementation

    const myAnchor = createAnchor('https://www.example.com'); simulateClick(myAnchor);

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

79241578

Date: 2024-12-01 12:54:48
Score: 3.5
Natty:
Report link

Would be AMAZING to get SVG to work with PDFmake !!

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

79241577

Date: 2024-12-01 12:54:48
Score: 2
Natty:
Report link

I've managed to solve it by creating a zip archive with a JAR file and the .platform/nginx/conf.d/proxy.conf file with the client_max_body_size 50M; content. So the zip file has the following structure:

-- app.jar -- .platform/nginx/conf.d/proxy.conf

After that, I deployed it with the eb deploy -v. The .elasticbeanstalk/config.yml file in the source directory contains the following lines:

deploy: artifact: archive.zip

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

79241569

Date: 2024-12-01 12:49:46
Score: 1
Natty:
Report link

If you come across this error when calling the python method, use:

a = np.ascontiguousarray(a, dtype=np.float32)

Explanation:

Most issues I have come across when using OpenCV with Python, were to do with either using a wrong data type, or the python arrays were no contiguous. The above seems to solve both.

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

79241564

Date: 2024-12-01 12:47:46
Score: 1.5
Natty:
Report link

Dumping goroutine stack traces in Go can be useful for debugging purposes, especially when you need to understand the state of your application at a specific point in time. Here are some common methods to dump goroutine stack traces:

Using runtime/pprof The runtime/pprof package provides functions to write the current state of the program, including all goroutine stack traces, to an io.Writer.

Here's an example:

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

79241563

Date: 2024-12-01 12:47:46
Score: 0.5
Natty:
Report link

On MacOS, I have found that it is possible to switch between Github accounts by managing the content of the directory ~/Library/Application Support/Github Desktop. I am using a few shell scripts & function that automatically detect, switch & restart Github Desktop depending on the repository I'm working with.

I'm using symbolic links to switch between different configuration, here is a very short simplification of it:

# To create _new_ configurations (just start Github Desktop to get a new/empty one afterwards)
mv "$HOME/Application Support/Github Desktop" "$HOME/Application Support/Github Desktop.config1"

# Then, to switch between different configurations
ln -nfs "$HOME/Application Support/Github Desktop.config1" "$HOME/Application Support/Github Desktop"
ln -nfs "$HOME/Application Support/Github Desktop.config2" "$HOME/Application Support/Github Desktop"

To be clear, I don't like having to do that myself and it is totally dependant on my ways of working with Github but I wanted to share that information as it seems to work fairly well and will help me survive until this feature is implemented natively within GitHub Desktop.

Reasons:
  • Blacklisted phrase (1): help me
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Grégory Becker

79241556

Date: 2024-12-01 12:41:44
Score: 9 đŸš©
Natty:
Report link

Here I am with some further details. First of all I recovered about 99% of the disk content, and that's so good. I spent a few hours to re-create the original folder strcture, since most of the files were in different folders (but thx god keeping the original filenames).

I share here some screenshots from DMDE, hopefully someone could help me to understand the best way to move on, if it happened again (I don't hope so!...)

Thx

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

Reasons:
  • Blacklisted phrase (1): thx
  • Blacklisted phrase (1): Thx
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): someone could help me
  • Probably link only (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: miki24p

79241549

Date: 2024-12-01 12:37:43
Score: 0.5
Natty:
Report link

Here I calculate velocity and angular velocity from scratch and get behavior of object that I want. But this method double calculations for collision.

from typing import Optional
import arcade
from pyglet.math import Vec2
import numpy as np

# Set how many rows and columns we will have
ROW_COUNT = 10
COLUMN_COUNT = 10

# This sets the WIDTH and HEIGHT of each grid location
WIDTH = 32
HEIGHT = 32

# This sets the margin between each cell
# and on the edges of the screen.
MARGIN = 1

# Do the math to figure out our screen dimensions
SCREEN_WIDTH = ((WIDTH + MARGIN) * COLUMN_COUNT + MARGIN)*2
SCREEN_HEIGHT = ((HEIGHT + MARGIN) * ROW_COUNT + MARGIN)*2
SCREEN_TITLE = "Game example"

DYNAMIC_TYPE = "item"
STATIC_TYPE = "wall"


def cpv(x,y):
    return (x,y)
def cpvrotate(t1,t2):
    x = t1[0]*t2[0] - t1[1]*t2[1]
    y = t1[0]*t2[1] + t1[1]*t2[0]
    return cpv(x,y)

def cpvadd(t1,t2):
    x = t1[0]+t2[0]
    y = t1[1]+t2[1]
    return cpv(x,y)

def cpvsub(t1,t2):
    x = t1[0]-t2[0]
    y = t1[1]-t2[1]
    return cpv(x,y)

def cpvdot(t1,t2):
    x = t1[0]*t2[0]
    y = t1[1]*t2[1]
    return x+y

def cpvcross(t1,t2):
    x = t1[0]*t2[1]
    y = t1[1]*t2[0]
    return x-y

def cpvmult(t1,number):
    return cpv(t1[0]*number,t1[1]*number)

def cpvperp(t1):
    return cpv(-t1[1],t1[0])

def cpvneg(t1):
    return cpv(-t1[0],-t1[1])


def relative_velocity(a, b, r1, r2):
    v1_sum = cpvadd(a.velocity, cpvmult(cpvperp(r1), a.angular_velocity))
    v2_sum = cpvadd(b.velocity, cpvmult(cpvperp(r2), b.angular_velocity))
    return cpvsub(v2_sum, v1_sum)

def normal_relative_velocity(a, b, r1, r2, n):
    return cpvdot(relative_velocity(a, b, r1, r2), n)

def get_con_bounce(a, b, r1, r2, n, arb):
    return normal_relative_velocity(a, b, r1, r2, n)*arb.restitution

def get_vr(a, b, r1, r2, n, surface_vr):
    vr = cpvadd(relative_velocity(a, b, r1, r2), surface_vr)
    return vr

def apply_impulse(body, j, r):
    i_inv = 1.0/body.moment
    m_inv = 1.0/body.mass
    velocity =  cpvmult(j, m_inv)
    angular_velocity = i_inv*cpvcross(r, j)
    return velocity, angular_velocity
    
def k_scalar_body(body, r, n):
    rcn = cpvcross(r, n)
    i_inv = 1.0/body.moment
    m_inv = 1.0/body.mass
    return m_inv + i_inv*rcn*rcn

def k_scalar(a, b, r1, r2, n):
    return k_scalar_body(a, r1, n) + k_scalar_body(b, r2, n)
    
def cpfclamp(f,min_,max_):
    return min(max(f, min_), max_)

def arbApplyImpulse(r1, r2, n, arb, _space, _data, jnAcc=0.0, jtAcc=0.0):
    a = arb.shapes[0].body
    b = arb.shapes[1].body
    nMass = 1.0/k_scalar(a, b, r1, r2, n)
    tMass = 1.0/k_scalar(a, b, r1, r2, cpvperp(n))
    
    surface_vr = arb.surface_velocity
    bounce = get_con_bounce(a, b, r1, r2, n, arb)

    vr = get_vr(a, b, r1, r2, n, surface_vr)
    
    vrn = cpvdot(vr, n)
    vrt = cpvdot(vr, cpvperp(n))
    
    jn = -(bounce + vrn)*nMass
    jnOld = jnAcc
    jnAcc = max(jnOld+jn, 0)
    
    jtMax = arb.friction*jnAcc
    jt = -vrt*tMass
    jtOld = jtAcc
    jtAcc = cpfclamp(jtOld + jt, -jtMax, jtMax)
    
    
    _j = cpvrotate(n, cpv(jnAcc - jnOld, jtAcc - jtOld))
 
    v,w = apply_impulse(a, cpvneg(_j), r1)
    
    
    
    return v, w, bounce

def ArbSetContactPointSet(arb, set_, number, swapped):
    p1 = set_[number].point_a
    p2 = set_[number].point_b
    if swapped:
        r1 = cpvsub(p2, arb.shapes[0].body.position)
        r2 = cpvsub(p1, arb.shapes[1].body.position)
    else:
        r1 = cpvsub(p1, arb.shapes[0].body.position)
        r2 = cpvsub(p2, arb.shapes[1].body.position)
    return r1,r2

def arbApllyImpulses(_arbiter, _space, _data):
    swapped = False
    v_total = (0,0)
    w_total = 0
    bounce_total = []
    for i in range(len(_arbiter.contact_point_set.points)):
        r1,r2 = ArbSetContactPointSet(_arbiter, _arbiter.contact_point_set.points, 
                                      i, swapped)
        #print("r1   r2  ", r1,r2)
        v, w, bounce = arbApplyImpulse(r1, r2, _arbiter.normal, _arbiter,_space, _data)
        bounce_total.append(bounce)
        v_total = cpvadd(v_total,v)
        w_total+=w
    _data["a_w"] += w_total
    
    #CUSTOM VELOCITY
    _data["a_v"] = list(abs(np.average(bounce_total))*(v_total / np.linalg.norm(v_total)))

class MyGame(arcade.Window):
    def __init__(self, width, height, title):
        super().__init__(width, height, title)

        # Set the background color of the window
        self.background_color = arcade.color.BLACK
        
        self.wall_list = arcade.SpriteList()
        self.item_list = arcade.SpriteList()
        
        self.create_map()
        
        self.item_1 = self.create_item(9,1)
        self.item_list.append(self.item_1)
        
        self.physics_engine = Optional[arcade.PymunkPhysicsEngine]
        damping = 0.9
        gravity = (0,-20)
        self.physics_engine = arcade.PymunkPhysicsEngine(damping=damping,
                                                         gravity=gravity)
        self.physics_engine.space.collision_slop = 2
        
        self.physics_engine.add_sprite_list(self.wall_list,
                                    friction=0.2,
                                    collision_type="wall",
                                    elasticity = 1,
                                    body_type=arcade.PymunkPhysicsEngine.STATIC)
        
        self.physics_engine.add_sprite(self.item_1, friction=0.2,collision_type="item", elasticity = 1)
        
        def hit_handler_pre(dynamic_sprite, static_sprite, _arbiter, _space, _data):
            if _arbiter.is_first_contact:
                _data["a_v"] = _arbiter.shapes[0].body.velocity
                _data["a_w"] = _arbiter.shapes[0].body.angular_velocity
                arbApllyImpulses(_arbiter, _space, _data)
            return True
                
        def hit_handler_post(dynamic_sprite, static_sprite, _arbiter, _space, _data):
            if _arbiter.is_first_contact:
                _arbiter.shapes[0].body.velocity = _data["a_v"]
                _arbiter.shapes[0].body.angular_velocity = _data["a_w"]
            
        self.physics_engine.add_collision_handler(DYNAMIC_TYPE, STATIC_TYPE, pre_handler = hit_handler_pre)
        self.physics_engine.add_collision_handler(DYNAMIC_TYPE, STATIC_TYPE, post_handler = hit_handler_post)
        
        # Create the cameras. One for the GUI, one for the sprites.

        # We scroll the 'sprite world' but not the GUI.

        self.camera_sprites = arcade.Camera(SCREEN_WIDTH, SCREEN_HEIGHT)

        self.camera_gui = arcade.Camera(SCREEN_WIDTH, SCREEN_HEIGHT)
        
    
    def scroll_to_item(self, x, y):

        position = Vec2(x - self.width / 2, y - self.height / 2)

        self.camera_sprites.move_to(position, 0.5)
    
    def create_wall_item(self, row, column, width, height):
        x = column * (WIDTH + MARGIN) + (WIDTH / 2 + MARGIN)
        y = row * (HEIGHT + MARGIN) + (HEIGHT / 2 + MARGIN)
        sprite = arcade.SpriteSolidColor(width, height, arcade.color.GRAY)
        sprite.center_x = x
        sprite.center_y = y
        self.wall_list.append(sprite)
    
    def create_map(self):
        # Create a list of solid-color sprites to represent each grid location
        for row in range(-1,ROW_COUNT+1):
            for column in range(-1,COLUMN_COUNT+1):
                if row==-1 or column==-1 or row==ROW_COUNT or column==COLUMN_COUNT:
                    self.create_wall_item(row,column, WIDTH, HEIGHT)
            

    
    def get_sprite_coords_by_cell(self, row, column):
        x = column * (WIDTH + MARGIN) + (WIDTH / 2 + MARGIN)
        y = row * (HEIGHT + MARGIN) + (HEIGHT / 2 + MARGIN)
        return x, y
        
    def create_item(self, row = 1, column = 1):
        x, y = self.get_sprite_coords_by_cell(row, column)
        item_ = arcade.SpriteSolidColor(WIDTH//4, HEIGHT, arcade.color.BLUE)
        item_.center_x = x
        item_.center_y = y
        item_.angle = 0
        return item_

    
        
   

    def on_draw(self):
        """
        Render the screen.
        """
        # We should always start by clearing the window pixels
        self.clear()

        # Select the camera we'll use to draw all our sprites

        self.camera_sprites.use()
    
        self.item_list.draw()
        self.item_1.draw_hit_box(color = arcade.color.GREEN)
        self.wall_list.draw()
        
        
        # Select the (unscrolled) camera for our GUI

        self.camera_gui.use()
    
    def apply_force(self, physics_engine, sprite, force):
        """ Apply force to a Sprite. """
        physics_object = physics_engine.sprites[sprite]
        physics_object.body.apply_force_at_local_point(force, (0, 0))
        
    def apply_force_world_point(self, physics_engine, sprite, force):
        """ Apply force to a Sprite. """
        physics_object = physics_engine.sprites[sprite]
        physics_object.body.apply_force_at_world_point(force, (sprite.center_x, sprite.center_y))
        
        
            
    def on_update(self, delta_time):
        """ Movement and game logic """
        
        self.physics_engine.step()
        x = self.item_1.center_x
        y = self.item_1.center_y
        self.scroll_to_item(x,y)
        



def main():
    MyGame(SCREEN_WIDTH, SCREEN_HEIGHT, SCREEN_TITLE)
    arcade.run()


if __name__ == "__main__":
    main()
Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: dragondip

79241548

Date: 2024-12-01 12:37:43
Score: 1
Natty:
Report link

I has this problem in conda env, I ended up copy libstdc++.so.6 from my ubuntu24.04 to conda env.

cp /usr/lib/x86_64-linux-gnu/libstdc++.so.6 ~/anaconda3/envs/pytorch3d/lib/

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

79241547

Date: 2024-12-01 12:37:43
Score: 3
Natty:
Report link

I used my windows 7 disk to reinstall windows, from there I could go ahead and update to a newer version but I like windows 7 better than those newer versions (I would consider windows 10 to run newer games / apps). Too bad about my files and apps but the most important ones I had backed up.

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

79241542

Date: 2024-12-01 12:33:42
Score: 3
Natty:
Report link

I faced same today and solved it by installing "vue-official" extension from visual studio code extensions menu.

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

79241535

Date: 2024-12-01 12:30:41
Score: 1.5
Natty:
Report link

With this regular expression I was able to match most difficult cases:

(?:[ \t]*Rem\s+|')(?![^"]*"(?:[^"]*"[^"]*")*[^"]*(?=[\r\n]+))[^\r\n]*

It only misses the lines of multiline comments after the first line (last two lines of my test code), but I think that we could get there too with some more work...

enter image description here

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

79241527

Date: 2024-12-01 12:26:40
Score: 4
Natty:
Report link

The enrichers using HttpContext will not work when using dotnet-isolated mode.

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

79241512

Date: 2024-12-01 12:12:37
Score: 1
Natty:
Report link

What many have not thought of is that the uploads.ini requires the correct authorization.

Especially with dockremap user e.G.

chown -R 100000:100000 uploads.ini

Otherwise, this is exactly what happens in the container:

root@c5cf31571ea5:/var/www/html# cat /usr/local/etc/php/conf.d/uploads.ini
cat: /usr/local/etc/php/conf.d/uploads.ini: **Permission denied**
Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): What
  • Low reputation (1):
Posted by: TheLegendOfZelda keiner

79241510

Date: 2024-12-01 12:10:36
Score: 1
Natty:
Report link

Thanks to Yaroslavm's suggestion on the stackoverflow dated Apr. 7, 2024(Click on element in shadow-root Selenium Python), this solution has been accomplished. The point is to wait enough before clicking the button inside shadow DOM. In this case, I found that we have to use time.sleep instead of Webdriverwait.

By the way, use of lxml.html may contribute to faster collecting of the attributes of listings.

import lxml.html
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.keys import Keys
from time import sleep

driver = webdriver.Chrome()
driver.implicitly_wait(5)
actions = ActionChains(driver)
url='https://es.wallapop.com/app/search?engine=gasoline&min_horse_power=1&max_horse_power=1000&min_year=2006&max_year=2024&min_km=40000&max_km=200000&min_sale_price=1000&max_sale_price=90000&gearbox=automatic,manual&brand=Honda&model=Civic&filters_source=default_filters&keywords=&category_ids=100&longitude=-3.69196&latitude=40.41956&order_by=price_high_to_low'

driver.get(url)
sleep(8)
WebDriverWait(driver, 10).until(EC.presence_of_all_elements_located((By.XPATH, "//body")))

#cookie accept
driver.find_element(By.XPATH,"//button[@id='onetrust-accept-btn-handler']").click()
sleep(20)

#click load more button
for i in range(2):
    try:
        button =WebDriverWait(driver, 20).until(EC.presence_of_element_located((By.XPATH,"//walla-button[@id='btn-load-more']")))
        
    except:
        break
    else:
        driver.execute_script('arguments[0].scrollIntoView({behavior: "auto", block: "center"});', button)
        shadow = button.shadow_root#only currently works in Chromium based browsers
        
        button2 =WebDriverWait(shadow, 20).until(EC.presence_of_element_located((By.CSS_SELECTOR,  "button.walla-button__button--medium")))
        
        sleep(10)#fail without this
        #WebDriverWait(driver, 50).until(EC.element_to_be_clickable(button2))#This is not effective
        button2.click()
        print('\nload more button clicked-- {}'.format(i+1))


#load more by scrolling down
pre_count = 0
same_count_times = 0
for i in range(40):
    sleep(2)
    for pd in range(20):
        actions.send_keys(Keys.PAGE_DOWN).perform()
    
    WebDriverWait(driver, 20).until(EC.presence_of_all_elements_located((By.XPATH, "//body")))
    #get whole html (by Selenium) 
    page = driver.page_source # type : text 
    #transfer to lxml
    p_root = lxml.html.fromstring(page)
    
    list_elements = p_root.xpath("//a[@class='ItemCardList__item']") 
    new_count = len(list_elements)
    print('len(list_elements): ',new_count)
    if new_count == pre_count:
        same_count_times += 1
    else:
        same_count_times = 0
    pre_count = new_count
    if same_count_times > 2:
        break

while True:
    a= input('Do you close this session?')
    if a == 'y':
        break
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: yamskii-k

79241500

Date: 2024-12-01 12:04:35
Score: 3.5
Natty:
Report link

Thanks to RuthC for providing the answer in a comment, the following seems to solve my problem:

fig.savefig('test.pdf', format='pdf',bbox_inches='tight', pad_inches='layout')

https://matplotlib.org/stable/users/prev_whats_new/whats_new_3.8.0.html#pad-inches-layout-for-savefig

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Simon Schey

79241491

Date: 2024-12-01 11:58:33
Score: 2.5
Natty:
Report link

Why it might seem stupid to some to ask such a question it is 100% sensible to ask. There are a couple of events that may want to make you use such a method: hiding the url. Look at your mobile apps, do they show the urls? NO.

It looks elegant and customised to hide your url tab in some cases. For instance you have a web app for quiz and want them not to know what url they are hitting. Just enter your registration number or exam number and start the exam. This may make some sort of sense.

However, the way it is is that it's quite not easy to achieve that out rightly but there is always a way out of everything. What are programmers for? I have seen a couple of exams taken using customised browsers that do not reveal the search bar/url bar, just the content. It is also a method I am currently researching; that is even why I am able to see this. Any simple useful tip will serve.

Thanks.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Why it
  • Low reputation (1):
Posted by: Emmanuel Whesu

79241480

Date: 2024-12-01 11:53:31
Score: 2.5
Natty:
Report link

Make sure the your testing browser is not effecting the playback or the controls of the video, I recommend using Edge for testing, you can avoid all of this hassle and use Express.static to handle everything.

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

79241471

Date: 2024-12-01 11:50:31
Score: 4.5
Natty:
Report link

https://medium.com/p/865d084be817 You can write a custom view by extending the BottomNavagationView.

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

79241469

Date: 2024-12-01 11:49:30
Score: 0.5
Natty:
Report link

The function create_all is a SQLAlchemy function, so you need to feed tables in SQLAlchemy table type:

SQLModel.metadata.create_all(engine, tables=[Table1.__table__, Table2.__table__])
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: serialx

79241468

Date: 2024-12-01 11:48:30
Score: 2.5
Natty:
Report link

I got this issue from copy/pasting code from a previous project and forgot to change this line to match the current project name (xxx) package com.example.xxx

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Eemeli HĂ€yrynen

79241463

Date: 2024-12-01 11:41:27
Score: 0.5
Natty:
Report link

Fiddle

WITH first_reversal AS (
    SELECT 
        Payment_Ref,
        Payment_Log,
        Log_Date,
        activity_type,
        Source,
        [User], -- 'User' is a reserved word, so we use square brackets
        amount,
        credit_or_debit,
        Comment,
        ROW_NUMBER() OVER (PARTITION BY Payment_Ref ORDER BY Log_Date) AS rev_rank
    FROM test
    WHERE activity_type = 'Payment_Rev' AND Payment_Log LIKE '%-Reverse'
)
-- Select the first reversal and its corresponding 'Pay' log
SELECT 
    pr.Payment_Ref,
    REPLACE(pr.Payment_Log, '-Reverse', '-Pay') AS Payment_Log,
    t.Log_Date,
    t.activity_type,
    t.Source,
    t.[User],
    t.amount,
    t.credit_or_debit,
    t.Comment
FROM first_reversal pr
JOIN test t ON pr.Payment_Ref = t.Payment_Ref
           AND REPLACE(pr.Payment_Log, '-Reverse', '-Pay') = t.Payment_Log
WHERE pr.rev_rank = 1;

Output

enter image description here

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

79241451

Date: 2024-12-01 11:33:26
Score: 3.5
Natty:
Report link

Thanks for getting back to me. Looks like you are right Dmitry. The problem is not specific to 2007. I get the same message in 2010. Getting a license for Redemption (looks like a great tool btw.) seems a bit of overkill to get to the one value.

I have been reading the article “read and parse a recurrence pattern” using the C++ Mapi route. Even if I could figure out how to properly do that. I would not know how to integrate that in my C# project.

I was kind of hoping that something like this would work:

var test = appointment.GetType().InvokeMember("dispidApptRecur", BindingFlags.GetProperty, null, appointment, null);

This works fine with the public properties of the appointment like Subject, but not with the property I am after. Name Unknown.

Any other ideas?

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: RudiBoy

79241446

Date: 2024-12-01 11:25:24
Score: 1
Natty:
Report link

Unfortunately this is not generally possible. You can get some intuition for why that's the case by considering, as an example, a two-dimensional decision space. The constraint you're asking for would look like "either I'm on the x-axis, or on the y-axis", which is not convex.

A formal proof would probably be something like: For a linear problem, the feasible region is convex, so if (x, 0) and (0, y) are feasible so too must (x/2, y/2) be.

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

79241428

Date: 2024-12-01 11:14:21
Score: 5
Natty:
Report link

Just follow the solution provided by Next https://nextjs.org/docs/messages/sync-dynamic-apis

I have installed the npx package and no more problems.

I had posted this solution a while ago but it was delete by a moderator, not sure why?

Reasons:
  • Blacklisted phrase (0.5): why?
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: stefdec

79241427

Date: 2024-12-01 11:14:20
Score: 0.5
Natty:
Report link

You can try this one to calcualte time in 2 database columns like that.

select END_TIME, START_TIME,to_char(END_TIME,'HH24') end_time, to_char(START_TIME,'HH24') start_time, case when (to_number(to_char(START_TIME,'HH24')) > 12) then extract( HOUR from ( cast(END_TIME+ INTERVAL '1' DAY AS TIMESTAMP) - cast( START_TIME AS TIMESTAMP) ) ) else extract( HOUR from ( cast(END_TIME AS TIMESTAMP) - cast(START_TIME AS TIMESTAMP) ) ) end working_hours from DB_TABLE

Reasons:
  • Whitelisted phrase (-1): try this
  • No code block (0.5):
  • Low reputation (1):
Posted by: Md. Forhad

79241422

Date: 2024-12-01 11:12:20
Score: 2.5
Natty:
Report link

Generally a negative R-sq value means that the model predictions are worse than simply using the mean but I suspect that there is an issue in the code itself. If you could provide a code showing how you calculated it I can help more perhaps.

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

79241421

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

You are trying to build Kirstone release, but the post you mentioned is bit outdated and based on older BB language.

Try to do

IMAGE_INSTALL:append = " apache2"

instead of:

IMAGE_INSTALL_append = " apache2"
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: wiesniak

79241416

Date: 2024-12-01 11:08:18
Score: 3
Natty:
Report link

As I said in the comments, I found out, in new versions, Bubblewrap doesn't automatically generate the assetlinks.json file during the build step, even though the documentation suggests it might.

Thus, I need to manually create the file using your app's signing information (SHA256) provided by Google Play (App signing page) or using keytool command on my own local keystore – Deleter

Reasons:
  • Blacklisted phrase (0.5): I need
  • Contains signature (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Deleter

79241401

Date: 2024-12-01 11:00:17
Score: 3.5
Natty:
Report link

Tried it does not work at all, gives error messages like socket not plugged etc

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

79241395

Date: 2024-12-01 10:56:15
Score: 2.5
Natty:
Report link

In Django >5.0 you can use GeneratedField.

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
Posted by: simplylizz

79241394

Date: 2024-12-01 10:55:15
Score: 2
Natty:
Report link

Read more about the solution here: https://impetusorgansseparation.com/avnneqwn?key=670ae0c3b093d8e8ac42c57aa7da8c14

Improving Precision for Ray-Ellipsoid Intersection You are currently working with an Atmospheric scattering GLSL fragment shader, and you're attempting to improve the precision of ray-ellipsoid intersection calculations, particularly for large distances (e.g., 100 AU). Since the issue arises primarily due to precision loss when working with floating point values in GLSL, you're using double precision (fp64) for the core calculations.

From your explanation and shader code, it seems like you've already done a lot of the right things, but you are still facing some issues with artifacts and the precision is not good enough at higher zoom levels or for large distances.

Here are some potential strategies to further improve the precision:

  1. Address Numerical Stability with Alternative Forms In ray-ellipsoid intersection problems, numerical stability is often a problem due to the sensitivity of the quadratic equation when the ray and ellipsoid are nearly parallel. Here are a couple of techniques you could apply to improve the robustness of your computations:

a. Alternative Roots of the Quadratic Equation You have already mentioned an alternative solution using q = -0.5 * (b + sign(b) * d) for computing l0 and l1. This form, while computationally more expensive, is known to reduce rounding errors and is more numerically stable for certain conditions. It could help improve precision for cases where the ray and ellipsoid are nearly tangent.

// Alternative more stable approach for l0 and l1
if (b < 0.0) {
    d = -d;
}
d = -0.5 * (b + sign(b) * d);
l0 = d / a;
l1 = c / d;

This approach is designed to be more stable when the discriminant is close to zero and can help in cases of nearly tangential intersections.

b. Using a Higher-Precision Method (Newton-Raphson) If the intersection points are very close to each other, you can also consider using an iterative refinement technique like Newton-Raphson to solve for l0 and l1 more accurately after an initial guess. This can improve the precision by performing iterative corrections.

  1. Using Range Shifting (which you already attempted) You're already shifting the result to preserve accuracy by subtracting a large number (view_depth_max). This is effective at reducing precision loss, but you may be seeing diminishing returns beyond a certain threshold. However, for large distances, this technique is often essential to maintain precision.

Another thing to check is if you can make the range shift more adaptive, i.e., only apply it when the values exceed a certain threshold rather than a fixed value (view_depth_max).

  1. Optimizing the Quadratic Equation The standard quadratic formula for intersections:

enter image description here

is prone to numerical instability when the discriminant 𝑏2−4ac is small or when the values of b and a are very similar. One way to improve the precision is to use the exact quadratic formula when dealing with small discriminants:

d = sqrt(abs(b*b - 4.0*a*c)); // ensure that d doesn't become NaN due to small differences
  1. Shifting the View Position (p0) You mentioned shifting the view position (p0) closer to the center, which can help improve precision for small distances. However, this requires carefully ensuring that the ray's direction (dp) and position (p0) are adjusted correctly to prevent artifacts. Be aware that this method may not be applicable in all cases since it can introduce additional errors when you are dealing with large distances or high zoom levels.

  2. Increase the Precision of Your Inputs You mentioned that double precision inputs are being converted to float by GLSL. This could be a major source of the artifacts, especially when the ray intersects at extremely large or small distances. Unfortunately, you cannot directly pass double-precision values through the pipeline because GLSL has limitations regarding double-precision support for interpolators and attributes.

However, you can upcast the ray parameters in the vertex shader before passing them to the fragment shader, but this requires support for fp64 in your hardware and shader profile:

  1. Using fp64 Interpolators in GLSL To answer your second question directly:

Q2: Is there a way to pass double interpolators from vertex to fragment shader?

In GLSL, you cannot directly pass dvec4 values (double precision) from the vertex shader to the fragment shader because GLSL does not support fp64 interpolators on all hardware. However, there are a few techniques you can consider:

a. Manually Pass Doubles as Separate Float Components You can manually pass the dvec4 values as separate vec4 or vec2 components in the vertex shader and reconstruct them in the fragment shader. This avoids relying on fp64 interpolation but requires more shader complexity.

// Vertex Shader
out vec4 vertexPosition;
out vec4 vertexDirection;
out vec4 vertexEllipsoid;

void main() {
    // Convert the dvec4 to vec4 for passing as attributes
    vertexPosition = vec4(p0.x, p0.y, p0.z, 1.0);
    vertexDirection = vec4(dp.x, dp.y, dp.z, 1.0);
    vertexEllipsoid = vec4(r.x, r.y, r.z, 1.0);
}

Then in the fragment shader, you can reconstruct these components back into dvec3 values. Although this avoids the need for fp64 interpolators, it does introduce some complexity.

b. Use Multiple Render Passes with fp64 in a Fragment Shader Another method is to separate the computations into multiple passes. In the first pass, compute the dvec3 values in a fragment shader using fp64, then store these values in a texture. In the second pass, retrieve the values from the texture and perform further calculations.

Read more about the solution here: https://impetusorgansseparation.com/avnneqwn?key=670ae0c3b093d8e8ac42c57aa7da8c14

Reasons:
  • Blacklisted phrase (1): Is there a way
  • Blacklisted phrase (1): enter image description here
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: John_doe

79241362

Date: 2024-12-01 10:31:08
Score: 8.5
Natty: 7
Report link

I know it's been a while, but does anybody know where I can find the labels for the dataset?

Reasons:
  • Blacklisted phrase (1): anybody know
  • Blacklisted phrase (1): I know it's been
  • RegEx Blacklisted phrase (2): does anybody know
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: paul7aa

79241360

Date: 2024-12-01 10:30:08
Score: 1.5
Natty:
Report link

This worked for me. Thanks !

sudo service rabbitmq-server start

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): This worked for me
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: hermann priso

79241356

Date: 2024-12-01 10:29:07
Score: 1.5
Natty:
Report link

It looks like GlassFish doesn't have permissions to create the file \domains\domain1\logs\server.log.lck. Did you run GlassFish with the same user which owns the GlassFish installation? Can you check if you can create a file in \domains\domain1\logs\ manually?

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Ondro MihĂĄlyi

79241349

Date: 2024-12-01 10:23:06
Score: 1
Natty:
Report link
Solution 1: Use Multiple Targets
1. Create a new target for each file with a main() function:
   Go to the File menu, select New, then Target.
   Choose a C executable template.
   Name the target (e.g., Program1, Program2).

2. Add the desired file to the new target:
   In the file inspector on the right, ensure the correct target is checked 
   for each file.
3. Build and run the target you want:
   Select the desired target from the dropdown menu in the toolbar.
   Press Run.

This keeps each main() function in its own target, avoiding conflicts.

Read more about the solution here: https://impetusorgansseparation.com/avnneqwn?key=670ae0c3b093d8e8ac42c57aa7da8c14

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

79241347

Date: 2024-12-01 10:22:05
Score: 3
Natty:
Report link

Use

console.warn() & console.error() instead.

console.log() is removed.

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

79241339

Date: 2024-12-01 10:16:04
Score: 0.5
Natty:
Report link

The previous two answers dont appear to be completely correct. He noted that

I want to print the first occurrence of it before the string "data reached"

The accepted answer will print every occurrence, and does not check for data reached at all. Leaving a slightly incorrect solution.

This solution will look for the ETN: name/name line, then it will look for the matching name/name line. It will stop at data reached and start looking for ETN: name/name lines again. Here is the code

#!/usr/bin/perl -w

my $etnFound = 0;
my $etnName = "";

while(<>){
  if(!$etnFound){
    #search for ETN: name1/name2 line
    if(/^ETN: (name\d+\/name\d+) *$/){
      $etnName = $1;
      $etnFound = 1;
    }
  }elsif($etnFound){
    #search for corrosponding name1/name2 line until data reached
    if(/data reached/){
      $etnFound = 0;
      $etnName = "";
    }elsif(/$etnName/){
      #instructions were only print *first occurence* of $etnName
      #then resume searching for ETN: name1/name2 lines
      print;
      $etnFound = 0;
      $etnName = "";
    }
  }
}

Output looks like this

$ perl print.matched.string.pl print.matched.string.txt 
   name1/name2/ZN                 (abcLVT)    
   name3/name4/ZN                 (fhLVT)    
Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user3408541

79241330

Date: 2024-12-01 10:14:03
Score: 5
Natty: 4
Report link

In this link you have all the detailed explanation including pictures about run vsCode as an admin

https://medium.com/@bonguides25/how-to-always-run-vs-code-as-an-administrator-3d9367006d09

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

79241321

Date: 2024-12-01 10:07:01
Score: 4
Natty:
Report link

There are three things. Here are the details:

  1. The table, if defined as Live.table_name, the DLT assumes that the DLT pipeline manages this table.
  2. If defined as catalog_name.schema_name.table_name. The DLT interprets as a reference to the external table.
  3. Finally, when you have the same table name in both scenarios and if you miss LIVE. prefix in your code, which causes ambiguity and gives warnings.

Please let me know if you need any more information.

Reasons:
  • RegEx Blacklisted phrase (2.5): Please let me know
  • No code block (0.5):
  • Low reputation (1):
Posted by: Srinimf

79241318

Date: 2024-12-01 10:06:00
Score: 1.5
Natty:
Report link

This method works for me. return $scheme://$server_name/your_reqeust_uri_name.html;

Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Mark Alvin

79241316

Date: 2024-12-01 10:03:00
Score: 1.5
Natty:
Report link

I had the same issue but I needed to use @prisma/client/edge. The solution for me was that I forgot to set my server action to run on the server using use server.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Whitelisted phrase (-1): I had the same
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Johan stling Sober Joe

79241310

Date: 2024-12-01 10:00:59
Score: 1.5
Natty:
Report link

You'll need a macro to do this, but basically you split each word into letters, sort the letters into alphabetical order, and then check if the results match. I have C code to do this which you can find here, but translating it into a LibreOffice Basic macro would require work. I think LibreOffice now supports Python macros, and it might be easier to translate C into Python.

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

79241307

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

non riesco a modificare la password. Mi esce questo messaggio "Forbidden You don't have permission to access this resource. Apache Server at areaclientitin.alice.it Port 443"

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

79241290

Date: 2024-12-01 09:50:57
Score: 1
Natty:
Report link

The first line declares a Galois field. The second line declares a field member.

k.<a> = GF(2^8, modulus=x^8+x^4+x^3+x+1)
k.from_integer(0b1010101)

It outputs:

a^6 + a^4 + a^2 + 1
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Robert

79241283

Date: 2024-12-01 09:46:56
Score: 0.5
Natty:
Report link

Apply something similar like this:

activesheet.chartobjects(1).chart.chartgroups(1).doughnutholesize=75

The result

enter image description here

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

79241281

Date: 2024-12-01 09:45:56
Score: 2.5
Natty:
Report link

What has happening for me was my deeplink was redirecting to another firebase url and I had to add that to the deeplink whitelist using regex.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): What has
Posted by: Horatio

79241279

Date: 2024-12-01 09:45:56
Score: 1
Natty:
Report link

at the beginning of your MainActivity.java:

remove

package com.your.app;

as this will cause

import com.your.app.R to be greyed out.

and then add it to ensure that R is correctly imported in MainActivity.java

import com.your.app.R;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Eldo Martadjaya

79241277

Date: 2024-12-01 09:44:56
Score: 2.5
Natty:
Report link

Use the line-height property from the CSS. you can set it by px, em, %, whatever suits your project. Or if they are different tags, just use padding-top.

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