79289235

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

The best approach is to use API Gateway, and sit the lambdas behind specific routes (I’m guessing you’re using the direct lambda invoke urls at the moment?). Allow the lambda to be invoked by the API Gateway (not the caller) IAM credentials.

Then you can neatly put an access policy in front of the various routes. So prod routes all have allow all, and dev routes you can allow by IP, header value, etc. As the block happens in front of APIG you won’t get charged https://stackoverflow.com/a/74674307/5746996

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • No code block (0.5):
  • Contains question mark (0.5):
Posted by: Tobin

79289219

Date: 2024-12-17 20:00:23
Score: 5
Natty: 5.5
Report link

Use this repository and check: https://github.com/theshadow76/PocketOptionAPI/

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

79289216

Date: 2024-12-17 19:59:23
Score: 2.5
Natty:
Report link

I had a similar problem with Visual Studio 2022 , I tried all the abobe solutions like downloading MSTest Package but nothing worked! , So turns out if you are using two different Testing frameworks NUnit and Microsoft.VisualStudio.Test , they both have different way of initialising Test host and the one you define in your global Usings.cs instruct visual studio which one to use , so if you use one and all the test are configured to use the other adapters code , it wil lnever work . just fix the usings.cs and update the using in individual test file.

global using NUnit.Framework;

Reasons:
  • Blacklisted phrase (1): but nothing work
  • Long answer (-0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Roshan

79289200

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

I was having the same issue, but did not have the region in the URL. I notice your URL has the same issue.

Make sure you have the region in your s3 location like this:

CREATE EXTERNAL DATA SOURCE s3_ds
WITH
(    LOCATION = 's3://some-bucket.s3.us-west-2.amazonaws.com/prefix',
,    CREDENTIAL = s3_dc
)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: mattddowney

79289198

Date: 2024-12-17 19:51:21
Score: 2
Natty:
Report link

If you can´t acess your app in Play Store from your link, try to:

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

79289197

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

You should be able to just change the "name" in your toc.yml file. for example

- name: Section 1
  items:
  - name: Section 1.1
    href: etc.

should be easily changed by just changing content

- name: Section 1
  items:
  - name: First section
    href: etc.

  - name: 
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Laura Gorski

79289193

Date: 2024-12-17 19:48:20
Score: 1
Natty:
Report link
table {  
    display: inline-table; 
    width: 99.5%; 
    table-layout: auto; 
    position: absolute; 
    top: 0; 
    left: 40 !important; 
}

.small { 
    background: green; 
    width: 104px;
    text-align: center; 
}

.extend { 
    background: red; 
    text-align: center; 
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: S0ulX

79289191

Date: 2024-12-17 19:47:20
Score: 2
Natty:
Report link

I think it's because React has just updated to v19 last week and testing-library/react hasn't updated their dependency requirements yet.

In 2024, I would suggest creating a new React App using Vite. Try running this

npm create vite@latest

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

79289178

Date: 2024-12-17 19:43:18
Score: 3
Natty:
Report link

Fixed the issued by removing the "invalid" field from all the models, not just from the core model. Also, the error "invalid field" was due to dbt trying to parse the field, which was a json blob, while I needed it as string. Casting the field as varchar made everything work.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Egodym

79289177

Date: 2024-12-17 19:42:18
Score: 2
Natty:
Report link

If you're looking for a lightweight and intuitive way to consume REST APIs in C#, take a look at OpenRestClient!

What is OpenRestClient? OpenRestClient is a library designed to simplify HTTP request handling through clean, annotation-based attributes. It helps you write less boilerplate and focus more on your application's logic.

Key Features Annotation-Based Requests: Use attributes like [GetMapping], [PostMapping], etc., to map methods to API endpoints. Authentication Support: Built-in JWT Bearer token handling with [RestAuthentication]. Environment Configuration: Easily configure API hosts and debugging via environment variables. Minimal Boilerplate: Clean and maintainable REST client code. Get Started GitHub: https://github.com/Clihsman/OpenRestClient NuGet Package: Install with: bash Copiar código dotnet add package OpenRestClient Simplify your REST API consumption in C# today! 🚀

using OpenRestClient;

[RestController("users")]
public class UserService : RestApp(typeof(UserService))
{
    // GET /users
    [GetMapping]
    public Task<List<User>?> GetUsers()
         => Call<List<User>>(nameof(GetUsers));

    // GET /users?name={name}
    [GetMapping]
    public Task<List<User>?> GetUsers([InQuery] string name)
        => Call<List<User>>(nameof(GetUsers), name);

    // GET /users/{id} (Current User as ID = 0)
    [GetMapping]
    public Task<User?> GetCurrentUser()
        => GetUserById(0);

    // GET /users/{id}
    [GetMapping]
    public Task<User?> GetUserById([InField] int id) 
        => Call<User>(nameof(GetUserById), id);

    // POST /users
    [PostMapping]
    public Task<User?> CreateUser([InBody] UserRequest userRequest) 
        => Call<User>(nameof(CreateUser), userRequest);
}

[RestController("auth")]
public class LoginService : RestApp
{
    public LoginService() : base(typeof(LoginService)) { }

    // POST /auth/signin with JWT Authentication
    [PostMapping("signin")]
    [RestAuthentication(AuthenticationType.JWT, AuthenticationMode.BEARER, "token")]
    public Task Signin([InBody] User user)
        => Call(nameof(Signin), user);
}

class MainClass {
    static async Task Main(string[] args) {
       // Configuration
       Environment.SetEnvironmentVariable("opendev.openrestclient.host", 
         "http://example:3000/api");

       Environment.SetEnvironmentVariable("opendev.openrestclient.debug", 
         "true");

       // Authenticate User
       LoginService loginService = new LoginService();
       await loginService.Signin(new User("email@example", "pass"));

       // Fetch Users
       UserService service = new UserService();
       List<User> users = await service.GetUsers();            // No filter
       List<User> usersByName = await service.GetUsers("John"); // Filter by name
    }
}
Reasons:
  • Blacklisted phrase (2): código
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: IsaacDev

79289171

Date: 2024-12-17 19:41:18
Score: 2.5
Natty:
Report link

I migrated from .NET Framework 4.8 Entity Framework 6 to .NET 9 Entity Framework Core 9 and had this problem.

The nullable problem pointed out above is correct. Specifically, reference type like string in .NET Framework needs to be change to string?

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Tri

79289160

Date: 2024-12-17 19:38:17
Score: 2
Natty:
Report link

So the official answer is: VCL Style has fixed structure and you can't add new objects as in FMX Style. You can create new VCL Style and use per-control styling (TControl.StyleName property).

If you want to use your style for group box then change "GroupBox" object in MyStyle.vsf ("MyStyle" style name, for example). Add your style to the project and set TGroupBox.StyleName = 'MyStyle'.

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

79289154

Date: 2024-12-17 19:35:16
Score: 1
Natty:
Report link

The error can be resolved by adding the following line:

deltalake::aws::register_handlers(None);
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jonas Frei

79289134

Date: 2024-12-17 19:27:14
Score: 3
Natty:
Report link

Duplicate question was answered in: async await return Task

This is a property of tasks.

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

79289129

Date: 2024-12-17 19:25:13
Score: 1.5
Natty:
Report link

You use a service like twilio or similar that alows you to receive SMS messages via an API.

OR

Set up something that can read the SMS directly from your phone and send it to your bot. If you’re using an Android phone, you can create a app that listens for incoming messages and sends the verification code to your script using something like a local API

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

79289108

Date: 2024-12-17 19:18:11
Score: 3.5
Natty:
Report link

I made added new file named: local.settings.json, and added in these configurations (see image). Adding these configurations in appsettings.Development.json did not work.

enter image description here

Reasons:
  • Blacklisted phrase (1): did not work
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
Posted by: Thuy

79289106

Date: 2024-12-17 19:18:11
Score: 2
Natty:
Report link

it is a simple common error sometimes... When we import into the plain Vanilla JS module a ./file instead of a ./file.js (especially when the import is generated by IntelliJ). It has happened to me several times, please consider this, too!

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

79289102

Date: 2024-12-17 19:16:11
Score: 2
Natty:
Report link

I moved to Bootstrap Carousel. I spent two days trying to apply something different with MudCarousel but it seems that the way it has been built staking the Carousel items and playing with them using position: absolute and clip-path is not easy adjust to make the Section and Containers to adjust height automatically.

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

79289101

Date: 2024-12-17 19:16:11
Score: 1.5
Natty:
Report link

I tried to replicate the same configuration as yours and got the same error using minikube when the ~/.kube/config directory is missing. After ensuring that the kubeconfig file is valid and properly configured, installing istioctl worked on my end. Validate and reset the kubeconfig if it is present on your Mac as it is required by kubectl to connect to a Kubernetes cluster.

imageimage

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

79289096

Date: 2024-12-17 19:14:10
Score: 2.5
Natty:
Report link

That endpoint seems to be returning values starting with 'K' and not 'S'.

I was able to run your code (using React instead of Jquery), and the websocket piece works fine.

if (data.startsWith('K,')) {
  console.log('true', { data })
  // display to page (using Jquery instead of this line if you prefer)
  document.getElementsByTagName('header')[0].innerHTML += data
}

Are you able to see a debugging statement inside your data.startsWith('S,') condition?

Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: wellwell

79289077

Date: 2024-12-17 19:05:07
Score: 2
Natty:
Report link

Just add <br> in the place where you want your text to break. E.g. hello <br> everyone

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

79289073

Date: 2024-12-17 19:01:06
Score: 2
Natty:
Report link

It seems that the issue is related to Node.js v23, which is causing incompatibilities with Prisma. While searching for a solution to this error, I came across this discussion: https://github.com/prisma/prisma/issues/25463

Downgrading to a supported Node.js version (such as v20, v18, or v16) should resolve the issue.

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

79289072

Date: 2024-12-17 19:01:06
Score: 2.5
Natty:
Report link

Meu Código

String getFirstNome() {
String lastName = "";
String firstName = "";
if (nome!.split("\\w+").length >= 1) {
  firstName = nome!.substring(0, nome!.indexOf(" "));
  lastName = nome!.substring(nome!.lastIndexOf(" ") + 1);
  return firstName + lastName;
} else {
  firstName = nome.toString();
}
return firstName;

}

Reasons:
  • Blacklisted phrase (2): Código
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: George Freire

79289063

Date: 2024-12-17 18:59:04
Score: 8 🚩
Natty:
Report link

O código que você forneceu está correto para usar botões de opção (radio buttons) em um formulário, mas se está permitindo várias seleções, provavelmente há um problema relacionado a como o formulário está sendo manipulado no seu código ou na interação com ele.

Aqui estão alguns pontos que você pode verificar para corrigir o problema:

1- Garantir que os botões de opção tenham o mesmo "name": Eles têm o mesmo "name" ("choice"), o que deve permitir que apenas uma seleção seja feita. Isso já está correto no seu código.

2-Verificar se o formulário não está sendo manipulado via JavaScript ou outro código que altere o comportamento dos botões de opção.

3-Verificar se o HTML está corretamente renderizado no navegador. Em alguns casos, problemas de cache ou de renderização podem causar comportamentos inesperados.

Reasons:
  • Blacklisted phrase (3): você
  • Blacklisted phrase (1): está
  • Blacklisted phrase (1): não
  • Blacklisted phrase (2): código
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: duda D

79289062

Date: 2024-12-17 18:59:04
Score: 1
Natty:
Report link

Is it any table which you can't interact with or just that particular one?

If it's a large table and you left the update running for a long time and then killed your session, there may be a delay before the Oracle smon process kicks in and gets the changes rolled back. In the meantime there may be losts of locked rows. Any attempted updates to such rows, will appear to hang (they are just queuing, waiting for locks to be released).

Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Is it any
  • Low reputation (0.5):
Posted by: avalon20

79289050

Date: 2024-12-17 18:55:02
Score: 0.5
Natty:
Report link

I use csvquote.

#with your data in fun.dat
csvquote fun.dat | cut -d "," -f2,3 | csvquote -u

csvquote is intended to make regular unix utilities work with complex csv files. csvquote prepares the csv file, csvquote -u returns to original format.

https://github.com/dbro/csvquote

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

79289048

Date: 2024-12-17 18:54:02
Score: 3.5
Natty:
Report link

With all the punny names, I fell a bit neglected that we don't also have a SharpTurn for the .Net community.

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

79289034

Date: 2024-12-17 18:51:01
Score: 0.5
Natty:
Report link

Short answer is it's not supported currently.

Longer answer is I have a PR set up specifically for this, but there are still issues that I haven't had time to address.

PR: https://github.com/json-everything/json-everything/pull/817

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

79289031

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

As of December 2024 - CPanel and email servers like GMAIL have some updated requirements. I tried dozens of configurations and this is a full working sample and PHP snippet. I left the commented lines in there to show you some extra settings that I tried. You don't need the commented lines. This example assumes you have the PHPMailer library as a folder/directory on your server. You can also use composer. I was able to send emails out with nothing but $mail->Host = 'localhost'; to send directly from CPanel, but those emails only made it through to less secure email services, such as AOL. To send to GMAIL, you need to enable SSL and SMTPAuth, or else GMAIL will block the email entirely and the email won't even make it to the spam folder.

  1. You don't need to change settings on the CPanel - the auto setting in CPanel email works out of the box.

  2. You can set your from and reply-to as a gmail or other email if you prefer.

  3. You don't have to add DKIM or MX records, although it will help with your email score.

    SMTPDebug = SMTP::DEBUG_SERVER; $mail->SMTPDebug = 2; // Enables detailed debugging output // Server settings // $mail->Host = 'smtp.gmail.com'; // Gmail SMTP server // $mail->isSMTP(); // Set mailer to use SMTP $mail->Host = 'localhost'; $mail->Port = 465; $mail->SMTPAuth = true; // Enable SMTP authentication $mail->SMTPSecure = 'ssl'; $mail->setFrom('any email - preferable a domain email', 'Domain Name'); $mail->addReplyTo('any email - preferable a domain email', 'Domain Name'); // $mail->isSMTP(); // $mail->Username = 'your_email'; // CPanel email address // $mail->Password = "your_pass"; // $mail->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS; // Use SMTPS (SSL encryption) // $mail->Port = 25; // SMTP port for SSL // Content $mail->isHTML(true); // Set email format to HTML $mail->Subject = "Your Subject"; $mail->Body = "Thank you message or whatever you want.

    Some info

    Maybe a welcome message.

    Extra paragraph if needed.

    "; $mail->AltBody = "Thank you message Info without html tags Maybe a welcome message Extra paragraph if needed."; $mail->addAddress("the email you want to send to"); // Add a recipient $mail->addAddress("add a second recipient email if you want"); // Add a recipient $mail->addBcc("bcc an email if you want"); // Add a recipient $mail->Send(); } catch (Exception $e) { echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}"; }

When testing with just the host set to localhost, I would not receive an error from the GoDaddy CPanel server, but GMAIL servers blocked it because of the lack of SSL. The code samples previously answered did not work or help troubleshoot. This sample will work right away, assuming you have PHPMailer installed in the public_html folder.

Here is the sample without the commented lines to show how simple the code is:

<?php
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\SMTP;
use PHPMailer\PHPMailer\Exception;


require_once($_SERVER['DOCUMENT_ROOT'].'/PHPMailer/src/Exception.php');
require_once($_SERVER['DOCUMENT_ROOT'].'/PHPMailer/src/PHPMailer.php');
require_once($_SERVER['DOCUMENT_ROOT'].'/PHPMailer/src/SMTP.php');



$mail = new PHPMailer(true);
    
try {
  

  $mail->Host = 'localhost';
  $mail->Port = 465;
  $mail->SMTPAuth = true;  // Enable SMTP authentication
  $mail->SMTPSecure = 'ssl';
  $mail->setFrom('any email - preferable a domain email', 'Domain Name');
  $mail->addReplyTo('any email - preferable a domain email', 'Domain Name');
  
  
  // Content
  $mail->isHTML(true);                                  // Set email format to HTML
  $mail->Subject = "Your Subject";
  $mail->Body    = "<h1>Thank you message or whatever you want.</p>
            <p>Some info</p>
            <p>Maybe a welcome message.</p>
            <p>Extra paragraph if needed.</p>";

  $mail->AltBody = "Thank you message
            Info without html tags
            Maybe a welcome message
            Extra paragraph if needed.";

  $mail->addAddress("the email you want to send to");     // Add a recipient
  $mail->addAddress("add a second recipient email if you want");     // Add a recipient
  $mail->addBcc("bcc an email if you want");     // Add a recipient
  
  
  $mail->Send();


} catch (Exception $e) {
  echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}";
}
?>
Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (1): did not work
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Man of Progress

79289028

Date: 2024-12-17 18:49:00
Score: 5
Natty: 6.5
Report link

Write log to linux stdout. Refer to this article https://laravel-news.com/split-log-levels-between-stdout-and-stderr-with-laravel

Reasons:
  • Blacklisted phrase (1): this article
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: 叶yeah

79289022

Date: 2024-12-17 18:45:59
Score: 2
Natty:
Report link

Way too complicated. I wonder if this works on the dead keys (`~^'"). This is the easy way:

var charCode = event.key.charCodeAt(0); var character = String.fromCharCode(charCode);

You also have to realise that String.fromCharCode(event.keyCode) is very wrong. A charCode is not the same as a keyCode.

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

79289018

Date: 2024-12-17 18:43:58
Score: 1
Natty:
Report link

What shell are you using? Have you got a set -u somewhere in play? Try this:

if [ "${1:-}" = "" ]; then
    log "Usage: $0 program [args]"
    exit 1
fi

OR:

if [ $# -eq 0 ]; then
    log "Usage: $0 program [args]"
    exit 1
fi
Reasons:
  • Whitelisted phrase (-2): Try this:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): What
  • Low reputation (0.5):
Posted by: avalon20

79289015

Date: 2024-12-17 18:42:58
Score: 1
Natty:
Report link

I have also had an issue like this. I have coded for window size but the gmail app on ios doesn't respect the media queries, you have to use inline values, ie. width="" padding="" and the gmail app itself has a smaller window on some iphones compared to other ESP apps on the same phone, so it squishes emails slightly. VERY frustrating. What worked for me, specifically I was having issues with div widths, was using percentage values for the width and having them only equal 99% instead of 100%. That extra 1% throws everything off. :( Hope this is helpful!

Reasons:
  • Blacklisted phrase (1): :(
  • Whitelisted phrase (-1): worked for me
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: SerenaD

79289005

Date: 2024-12-17 18:36:56
Score: 3.5
Natty:
Report link

Thank you everyone for the comments. I did create an issue on GitHub. They stated that the issue is that the documentation has a typo in it, where the 0.001 should be 1.001 instead.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Andrew Kelley

79289002

Date: 2024-12-17 18:36:56
Score: 1
Natty:
Report link

If you already have a script that does program B and have a way to execute it during program A you should be wrap sbatch around it and periodically submit the job from A instead of running it directly. You may want to check for similar jobs with squeue before each sbatch to make sure they are not piling up.

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

79288989

Date: 2024-12-17 18:33:56
Score: 2
Natty:
Report link

In Debian I ran sudo apt install libyaml-dev and it Successfully installed psych-5.2.1

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

79288988

Date: 2024-12-17 18:32:54
Score: 12.5 🚩
Natty: 6.5
Report link

Did you find any solution for this issue? ASAP

Reasons:
  • Blacklisted phrase (1.5): any solution
  • RegEx Blacklisted phrase (3): Did you find any solution
  • RegEx Blacklisted phrase (2): any solution for this issue?
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Did you find any solution for this is
  • Low reputation (1):
Posted by: José Julai Ritsure

79288970

Date: 2024-12-17 18:20:51
Score: 3
Natty:
Report link

You don't appear to show how the table name is being substituted in? You set q, but there is no reference to the table.

Also has the table been created as an FTS table?

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: avalon20

79288962

Date: 2024-12-17 18:15:50
Score: 3
Natty:
Report link

i'm facing same issue what you need to do is go to php ini and remove colon on extension=openssl if its ;extension=openssl then check your php version and your xammpp version open cmd and check php -v if its not same go to windows enviroment varibales and set path of xampp php like this F:\xamp8.2\php in enviroment variables and restart your computer.

Reasons:
  • Has code block (-0.5):
  • Me too answer (2.5): i'm facing same issue
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Muzammil Hasnain

79288959

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

Back in the olden days you would register individual users' devices (UDID) with your profile and then build an .ipa with manifest and upload these to some private website. All they have to do is surf to that website with their mobile device and install the app. The downside is that you have to prepare a web site that is secret to those users. You can also use Apple Configurator 2 but it requires users to use a Mac to run it.

TestFlight is very easy to handle. Upload a build and start a beta test. Add only those individual users who should have the app. Downside is that the beta test expires in 90 days so you need to upload a new build every 90 days.

Overall I think the AdHoc solution (see above building the .ipa) is best but you have to update the build each time you add a new device.

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

79288957

Date: 2024-12-17 18:13:50
Score: 1
Natty:
Report link

Have you tried using an ExecutorService as described in Awaitlity documentation?

https://github.com/awaitility/awaitility/wiki/Usage#thread-handling

As for reactive and higher memory footprint my guess is that it might run faster and thus allocate objects faster, but that's just a brain fart.

Reasons:
  • Whitelisted phrase (-1): Have you tried
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: stmi

79288948

Date: 2024-12-17 18:08:49
Score: 2
Natty:
Report link
if (performance.getEntriesByType('navigation')[0].type === 'back_forward') {

}
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Misael Gomez

79288932

Date: 2024-12-17 18:04:47
Score: 1.5
Natty:
Report link

Got it figured out.

App.razor added following line:

<Routes @rendermode="InteractiveServer" />

Program.cs added the following 2 lines:

builder.Services.AddRazorComponents()
    .AddInteractiveServerComponents();
app.MapRazorComponents<App>()
    .AddInteractiveServerRenderMode();
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: bkkirk

79288925

Date: 2024-12-17 18:01:46
Score: 3.5
Natty:
Report link

descobre minha senha do family link e uma passoword

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

79288920

Date: 2024-12-17 18:00:46
Score: 1.5
Natty:
Report link

tried your solution but it doesn't work.

The output from auto-py-to-exe

Running auto-py-to-exe v2.45.0 Building directory: C:\Users\user\AppData\Local\Temp\tmp4sbz2x1l Provided command: pyinstaller --noconfirm --onedir --windowed --name "xxx" --hidden-import "os" --hidden-import "sys" --hidden-import "cli" --hidden-import "streamlit" --hidden-import "pandas" --hidden-import "numpy" --collect-all "os" --collect-all "sys" --collect-all "cli" --collect-all "streamlit" --collect-all "pandas" --collect-all "numpy" --copy-metadata "os" --copy-metadata "sys" --copy-metadata "cli" --copy-metadata "streamlit" --copy-metadata "pandas" --copy-metadata "numpy" "C:\Users\user\PycharmProjects\PythonProject\runapp.py" Recursion Limit is set to 5000 Executing: pyinstaller --noconfirm --onedir --windowed --name xxx --hidden-import os --hidden-import sys --hidden-import cli --hidden-import streamlit --hidden-import pandas --hidden-import numpy --collect-all os --collect-all sys --collect-all cli --collect-all streamlit --collect-all pandas --collect-all numpy --copy-metadata os --copy-metadata sys --copy-metadata cli --copy-metadata streamlit --copy-metadata pandas --copy-metadata numpy C:\Users\user\PycharmProjects\PythonProject\runapp.py --distpath C:\Users\user\AppData\Local\Temp\tmp4sbz2x1l\application --workpath C:\Users\user\AppData\Local\Temp\tmp4sbz2x1l\build --specpath C:\Users\user\AppData\Local\Temp\tmp4sbz2x1l

476159 INFO: PyInstaller: 6.11.1, contrib hooks: 2024.10 476165 INFO: Python: 3.11.9 476203 INFO: Platform: Windows-10-10.0.19045-SP0 476212 INFO: Python environment: C:\Users\user\PycharmProjects\PythonProject.venv 476228 INFO: wrote C:\Users\user\AppData\Local\Temp\tmp4sbz2x1l\xxx.spec An error occurred while packaging Traceback (most recent call last): File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\importlib\metadata_init_.py", line 563, in from_name return next(cls.discover(name=name)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\user\PycharmProjects\PythonProject.venv\Lib\site-packages\auto_py_to_exe\packaging.py", line 132, in package run_pyinstaller(pyinstaller_args[1:]) File "C:\Users\user\PycharmProjects\PythonProject.venv\Lib\site-packages\PyInstaller_main_.py", line 215, in run run_build(pyi_config, spec_file, **vars(args)) File "C:\Users\user\PycharmProjects\PythonProject.venv\Lib\site-packages\PyInstaller_main_.py", line 70, in run_build PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs) File "C:\Users\user\PycharmProjects\PythonProject.venv\Lib\site-packages\PyInstaller\building\build_main.py", line 1252, in main build(specfile, distpath, workpath, clean_build) File "C:\Users\user\PycharmProjects\PythonProject.venv\Lib\site-packages\PyInstaller\building\build_main.py", line 1192, in build exec(code, spec_namespace) File "C:\Users\user\AppData\Local\Temp\tmp4sbz2x1l\xxx.spec", line 8, in datas += copy_metadata('os') ^^^^^^^^^^^^^^^^^^^ File "C:\Users\user\PycharmProjects\PythonProject.venv\Lib\site-packages\PyInstaller\utils\hooks_init_.py", line 970, in copy_metadata dist = importlib_metadata.distribution(package_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\importlib\metadata_init_.py", line 982, in distribution return Distribution.from_name(distribution_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\importlib\metadata_init_.py", line 565, in from_name raise PackageNotFoundError(name) importlib.metadata.PackageNotFoundError: No package metadata was found for os

Project output will not be moved to output folder Complete.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Filler text (0.5): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  • Filler text (0): ^^^^^^^^^^^^^^^^^^^
  • Filler text (0): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  • Filler text (0): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  • Low reputation (1):
Posted by: Eric Lam

79288915

Date: 2024-12-17 17:57:44
Score: 4
Natty:
Report link

In my situation, the issue was related to the version I was trying to install.

ngx-markdown version 19.0.0 requires Angular 19, whereas my project was using Angular 18.2.13. Therefore, the correct version of ngx-markdown for my project was 18.1.0.

For those facing a similar issue, you can check the compatible versions of ngx-markdown based on your Angular version at the following link.

NGX-MARKDOWN-VERSIONS

Reasons:
  • No code block (0.5):
  • Me too answer (2.5): facing a similar issue
  • Low reputation (1):
Posted by: Alejandro Cabarcas Perdomo

79288912

Date: 2024-12-17 17:55:43
Score: 11.5 🚩
Natty:
Report link

I have a problem there too. but in my case, when I want to render an image for the splash screen, what appears on the splash screen is an image for the icon. does anyone have the same problem? Heres my app.json

 {
  "expo": {
    "name": "KawanTaaruf",
    "slug": "KawanTaaruf",
    "version": "1.0.0",
    "orientation": "portrait",
    "userInterfaceStyle": "light",
    "newArchEnabled": true,
    "icon": "./assets/icon.png",
    "splash": {
      "image": "./assets/splash-icon.png",
      "resizeMode": "contain",
      "backgroundColor": "red"
    },
    "ios": {
      "supportsTablet": true
    },
    "android": {
      "adaptiveIcon": {
        "foregroundImage": "./assets/adaptive-icon.png",
        "backgroundColor": "#ffffff"
      },
      "package": "com.awriyou.KawanTaaruf"
    },
    "web": {
      "favicon": "./assets/favicon.png"
    }
  }
}

Anyone can help meeeeee please, im so stuck, I just learned to make react native applications from expo

Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): Anyone can help me
  • RegEx Blacklisted phrase (3): does anyone have
  • RegEx Blacklisted phrase (1): I want
  • RegEx Blacklisted phrase (0.5): Anyone can help
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): have the same problem
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Ario Febri

79288905

Date: 2024-12-17 17:53:42
Score: 2.5
Natty:
Report link

Exemplo Corrigido: Aqui está o JSON modificado com o caractere de controle RTL:

{
"chat_id": "XXXXXXXXX",
"photo": "XXXXXXXXX",
"caption": "\u200Fבדיקה",
"parse_mode": "HTML"
}

What we did:

We added \u200F at the beginning of the text "בדיקה". This tells the Telegram renderer that the text should be aligned as RTL.

Explanation:

U+200F is the "Right-to-Left Mark" (RLM), a Unicode character that forces text to be interpreted from right to left.

It doesn't appear visually in the text, but it adjusts the alignment for RTL.

Testing and expected result:

By submitting this request, the caption "בדיקה" should be correctly aligned from right to left in Telegram.

If you encounter any other issues or unexpected behavior, please let us know so we can fix it!

Reasons:
  • Blacklisted phrase (1): está
  • RegEx Blacklisted phrase (2.5): please let us know
  • Long answer (-0.5):
  • Has code block (-0.5):
Posted by: Boaventura

79288901

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

open settings , go to apps section , then installed apps and then uninstall the java SE development kit for java-8

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

79288888

Date: 2024-12-17 17:45:40
Score: 3
Natty:
Report link

https://codegolf.stackexchange.com/

This one isn't really money based though but it's what you are describing without the money.

Your question itself is more of a meta question though not really a stackoverflow question.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: qater

79288883

Date: 2024-12-17 17:42:40
Score: 1
Natty:
Report link

Just use matplotlib text function with the "data coordinates" for x and y:

mytext = 'Total: XX \n Mean: YY \n Min Value: AA \n Max Value: BB'
ax.text(x=15000, y='Radial Velocity', 
        s=mytext, style='italic', 
        color='white', bbox = {'facecolor': 'black'}, 
        fontsize=8, verticalalignment='center')
plt.show()

enter image description here

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

79288881

Date: 2024-12-17 17:41:39
Score: 3.5
Natty:
Report link

I just wanted to add to user27723208's answer (don't have enough rep to just comment) that on my S20, I had to go to Settings > Location > Location Services > Timeline and then had the export (and other options)

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): user27723208
  • Single line (0.5):
  • Low reputation (1):
Posted by: Kevin H

79288877

Date: 2024-12-17 17:41:39
Score: 2.5
Natty:
Report link

ext.kotlin_version = '1.3.72' works for me

Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Nikesh kumar yadav

79288859

Date: 2024-12-17 17:32:37
Score: 3
Natty:
Report link

Issue resolved now Seems to be a recent issue seen around India (Mumbai) region

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

79288851

Date: 2024-12-17 17:29:36
Score: 2
Natty:
Report link

Same issue as in: Excessive Logging After Flutter SDK Update: exportSyncFdForQSRILocked and sendCancelIfRunning Messages

There is ticket for this here: https://github.com/flutter/flutter/issues/160442

But in the meanwhile a temporary solution would be to add --no-enable-impeller to your run command.

Ex: flutter run --no-enable-impeller

Hope that helps.

Reasons:
  • Whitelisted phrase (-1): Hope that helps
  • RegEx Blacklisted phrase (1): Same issue
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: nono.31

79288843

Date: 2024-12-17 17:28:35
Score: 6.5 🚩
Natty:
Report link

I am also getting an error using the API today. It seems slower than usual, maybe its down?

Reasons:
  • RegEx Blacklisted phrase (1): I am also getting an error
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: luke

79288833

Date: 2024-12-17 17:25:34
Score: 0.5
Natty:
Report link

You have identified the filename, but not the content type. You need both:

form.append("image", buffer, { filename: "london.jpg", contentType: "image/jpg" });

See my answer here for further detail.

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

79288832

Date: 2024-12-17 17:25:34
Score: 3
Natty:
Report link

Sar meri Instagram ID suspend kr hai Instagram helpline aapke link Di Hai mujhe to mujhe meri ID recover kar dijiye please bahut problem mein hun request aapse

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

79288825

Date: 2024-12-17 17:23:33
Score: 2
Natty:
Report link

[(ngModel)] or formControlName binds the value of the radio button as a string ("true" or "false"), not as a boolean (true or false). you need to the variable to string : fullypaidvalue: string='true'; Also change the condition of d-none class to : [class.d-none]="fullypaidvalue == 'true'"

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ameer hamza bhatti

79288819

Date: 2024-12-17 17:23:33
Score: 0.5
Natty:
Report link

Although the HTTP request has content-type: multipart/form-data, the actual form data also needs to have its content-type identified, as well as filename in some cases:

POST /my/server/path HTTP/1.1
....
content-type: multipart/form-data; boundary=--------------------------794262681322510475281872
...
Transfer-Encoding: chunked

2fe5b
----------------------------794262681322510475281872
Content-Disposition: form-data; name="image"; filename="my-image.jpg"
Content-Type: image/jpeg

...a bunch of binary data...

The form-data package infers filename and content-type from fs.ReadStream because that information is available in the file that you've read to a stream. With a raw Buffer or Blob it's just the raw data and form-data cannot infer content type, so you need to set it explicitly:

formData.append('image', buffer, {filename: 'image.jpg', contentType: 'image/jpg'});

You need to adapt that to your server's API spec, but that's the general idea. See here for further detail.

Reasons:
  • Contains signature (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: afarah

79288809

Date: 2024-12-17 17:19:32
Score: 0.5
Natty:
Report link

You have to add Serialized name to your models so that it works when generating the apk or bundle.

public class ErrorResponse {
  @SerializedName("Error")
  private String Error;

  public String getError() {
    return Error;
  }

  public void setError(String error) {
    Error = error;
  }
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Leo

79288805

Date: 2024-12-17 17:17:32
Score: 0.5
Natty:
Report link

printf requires int value not pointer: printf("You have entered: %i!", num1);

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

79288803

Date: 2024-12-17 17:17:30
Score: 10 🚩
Natty:
Report link

I have similar issue where I am trying to open controlDesk 7.0 and facing the below error Traceback (most recent call last): IDispatch = pythoncom.connect(IDispatch) pywintypes.com_error: (-2147221021, 'Operation unavailable', None, None)

I have given permission in DCOM Config but still facing the issue. Can somebody guide me what else setting I need to make in Jenkins (remember to add your Jenkins user name and set full permission.)

Reasons:
  • Blacklisted phrase (1): guide me
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (1): I am trying to
  • Blacklisted phrase (1): I have similar
  • RegEx Blacklisted phrase (2.5): Can somebody guide me what
  • No code block (0.5):
  • Me too answer (2.5): I have similar issue
  • Low reputation (1):
Posted by: NIKHIL

79288799

Date: 2024-12-17 17:15:28
Score: 10 🚩
Natty: 5.5
Report link

i am facing the same issue right now , have you found a solution yet ? please share it if you have .

i have activated annotaion processing , verified that lombok exists in external libraries

Reasons:
  • RegEx Blacklisted phrase (2.5): please share
  • RegEx Blacklisted phrase (2.5): have you found a solution yet
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): i am facing the same issue
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Mohamed khlifi

79288797

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

I want to be sure that when showComponentProp is updated, that the first useEffect updates the state before the second useEffect is run.

The first useEffect hook's callback will certainly enqueue the isVisible state update before the second useEffect hook is called.

I understand that useEffect hooks are run in the order they appear in the component body, however, as these contain setState functions, I'm not 100% sure of the behaviour. I don't want there to be a race condition between the two setState functions in the useEffect hooks.

All React hooks are called each render cycle, in the order they are defined. If showComponentProp changes, then because it is included in the dependency array of both useEffect hooks it will trigger the both useEffect hooks' callbacks, in the order they are defined.

Could someone please clarify the exact order of the useEffects being called and when the component is rerendered in this case. For instance, is the first effect called, and when the isVisible state is updated, does the component rerender before the second effect is called? In that case will both effects be run again after the rerender, or just the second effect as the first effect was called previously.

  1. The component will render and call all React hooks, in order.
  2. At the end of the render cycle the enqueued useEffect hook callbacks will be called, in order.
    1. Effect #1 callback will enqueue an isVisible state update to update to the current showComponentProp value.
    2. Effect #2 callback will check the current showComponentProp and timerProp values, and if both are truthy enter the if-block and instantiate the timeout to enqueue another isVisible state update to false, and return a useEffect hook cleanup function.
  3. The enqueued state updates will be processed and trigger a component rerender:
    1. Back to step 1 above to repeat the process
    2. The running timeout then either:
      • expires after timerProp ms and calls the callback to enqueue another isVisible state update to false, and trigger another component rerender, e.g. back to step 1 above.
      • cancelled by the cleanup function before expiration

In any case, both useEffect hooks will be called each and every render cycle, and the callbacks called only when the dependencies change.

However, I suspect you could accomplish this all in a single useEffect hook, which may make understanding the logic and flow a bit easier.

const [isVisible, setIsVisible] = useState(showComponentProp);

// Run effect when either showComponentProp or timerProp update
useEffect(() => {
  // Only instantiate timeout when we've both truthy
  // showComponentProp and timerProp values
  if (showComponentProp && timerProp) {
    // Enqueue isVisible state update "now"
    setIsVisible(true);

    // Enqueue timeout to enqueue isVisible state update "later"
    const timeout = setTimeout(() => setIsVisible(false), timerProp);

    return () => clearTimeout(timeout);
  }
}, [showComponentProp, timerProp]);
Reasons:
  • RegEx Blacklisted phrase (2.5): Could someone please clarify
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • High reputation (-2):
Posted by: Drew Reese

79288794

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

You should not do this. Escape is the standard key for closing popups, and you will likely create a keyboard trap for anyone who depends on the keyboard interface.

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

79288785

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

This was actually really simple. I was using python 3.13 previously. I downgraded to 3.12, created a new virtualenv, and the migrations ran smoothly.

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

79288778

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

just save the files and try to compile and execute again it will work. compile command : javac filename.java execute command : java filename.java (goes to the JVM)

Hope this helps

Reasons:
  • Whitelisted phrase (-1): Hope this helps
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Shriya Sai. Konakalla

79288772

Date: 2024-12-17 17:06:26
Score: 1.5
Natty:
Report link

Had to add a form and now it works.

<MudForm Model="@testClass"></MudForm>
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: Robert Benedetto

79288767

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

I solved it by changing the Java version from 8 to 22

Reasons:
  • Whitelisted phrase (-2): I solved
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Eliuber

79288764

Date: 2024-12-17 17:04:25
Score: 2
Natty:
Report link

I switched to version PyAutoGUI==0.9.0, and it worked (python 3.11, Ubuntu 24.04.1 LTS)

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

79288749

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

Reconstructing a deleted encrypted home directory after mistakenly removing .ecryptfs and .Private directories is a challenging process. The successful recovery depends heavily on the availability of critical metadata files like the wrapped-passphrase and Private.sig.

I’ll break this down step by step to address your questions.


1. Understanding the Ecryptfs Directory Structure

The essential directory structure for an encrypted home directory looks like this:

/home/.ecryptfs/username/
├── .ecryptfs
│   ├── Private.mnt    # Mount point metadata
│   ├── Private.sig    # Signature of the wrapped passphrase
│   ├── wrapped-passphrase  # Encrypted version of your mount passphrase
│   └── ... other metadata files
└── .Private
    ├── (Encrypted files with random names)
    └── ... other files

What files go where?

If you recovered files with .ecryptfs extensions and random filenames, they likely belong to both .ecryptfs and .Private. We need to separate these files correctly.


2. Identifying and Reconstructing Critical Files

Here are the critical files and how to identify/reconstruct them:

  1. wrapped-passphrase:

    • This file contains your mount passphrase (encrypted using your login password).
    • If you do not have a backup of this file, recovery becomes very difficult. It is essential for decryption.

    What to do:

    • Search through the recovered files for the filename wrapped-passphrase. It is typically found in the /home/.ecryptfs/username/.ecryptfs/ directory.
    • If you cannot find it, you cannot use your login password to recover the mount passphrase.
  2. Private.sig:

    • This file contains a hash signature of the passphrase used to unlock the encrypted directory.

    What to do:

    • Search for files with the name Private.sig. If found, place it in /home/.ecryptfs/username/.ecryptfs/.
  3. Private.mnt:

    • This defines the mount point for the encrypted directory.

    What to do:

    • Search for a file named Private.mnt. If found, place it in /home/.ecryptfs/username/.ecryptfs/.

3. Sorting Recovered Files

Since you recovered a mix of files, including ones with random names, you need to manually sort and identify the critical metadata files.

Steps to Locate Files:


4. Restoring the Directory Structure

If you’ve found the critical files:

  1. Place the files in the correct directories:

    /home/.ecryptfs/username/.ecryptfs/wrapped-passphrase
    /home/.ecryptfs/username/.ecryptfs/Private.sig
    /home/.ecryptfs/username/.ecryptfs/Private.mnt
    
  2. Place the encrypted files (random names) in:

    /home/.ecryptfs/username/.Private/
    

5. Mounting the Encrypted Directory

Once the directory structure is restored, try the following steps to mount the directory:

Step 1: Unwrap the Passphrase

If you have the wrapped-passphrase file, you can unwrap it using your login password:

ecryptfs-unwrap-passphrase /home/.ecryptfs/username/.ecryptfs/wrapped-passphrase

You’ll need to provide your login password. The output will be your mount passphrase (a 32-character hexadecimal string).


Step 2: Manually Mount the Encrypted Directory

Once you have the mount passphrase:

sudo mount -t ecryptfs /home/.ecryptfs/username/.Private /home/username \
-o ecryptfs_sig=<signature>,ecryptfs_fnek_sig=<signature>,ecryptfs_key_bytes=16,ecryptfs_cipher=aes,ecryptfs_passthrough=no,ecryptfs_enable_filename_crypto=yes

If Wrapped-Passphrase Is Missing

If you do not have the wrapped-passphrase file, recovery becomes very difficult because the encrypted files cannot be decrypted without the mount passphrase.

The options are:

  1. Try to locate the wrapped-passphrase using file recovery tools like PhotoRec or testdisk.
  2. If you have an older backup of your encrypted home directory or passphrase, restore from that.

6. Exiting the Process Gracefully

If you need to stop and retry, always ensure the following directories have the correct permissions:

sudo chown -R username:username /home/.ecryptfs/username

Summary

  1. Locate critical metadata files: wrapped-passphrase, Private.sig, and Private.mnt.
  2. Restore the directory structure:
    • Metadata files to /home/.ecryptfs/username/.ecryptfs/
    • Encrypted files to /home/.ecryptfs/username/.Private/
  3. Unwrap the passphrase (if wrapped-passphrase is available) and mount the directory manually.
  4. If the wrapped-passphrase is missing, recovery is unlikely without an external backup.

If you face issues at any step, please share the output of the relevant commands, and I’ll assist further.

Reasons:
  • Whitelisted phrase (-1): try the following
  • RegEx Blacklisted phrase (2.5): please share
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
Posted by: Boaventura

79288743

Date: 2024-12-17 16:59:23
Score: 1
Natty:
Report link

What you provided is not a menu layout, but a navigation graph. These are not related things. You need to ceate a my_menu_name.xml file with <menu> and <item> elements. Then, inside Fragment class, you have to implement a MenuProvider like explained here: https://stackoverflow.com/a/71965674/1860868

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Starts with a question (0.5): What you
  • High reputation (-1):
Posted by: Derek K

79288736

Date: 2024-12-17 16:56:23
Score: 1
Natty:
Report link

Similar to @Spectral's answer:

=FILTER(Table1[[Employee Name]:[Employee ID]]; INDEX(Table1; 0; MATCH(A1; Table1[#Headers]; 0)) = "Y")
  1. MATCH(A1, Table1[#Headers], 0):
  1. INDEX(Table1, 0, MATCH(...)):
  1. FILTER(..., INDEX(...) = "Y"):
  1. Dynamic Input in A1:
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Spectral's
  • Low reputation (1):
Posted by: Vlado Bošnjaković

79288709

Date: 2024-12-17 16:49:21
Score: 0.5
Natty:
Report link

Try to close the project and the IDE, remove all .iml files and the .idea directory via the OS task manager from your project and re-import from scratch https://www.jetbrains.com/help/idea/import-project-or-module-wizard.html#open-project

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

79288697

Date: 2024-12-17 16:43:19
Score: 1
Natty:
Report link

you can use in index.css using @apply , like this:

@layer base{  

    span{
        @apply absolute w-[25%] h-[100%] bg-slate-600 -z-[1] left-0 top-0;
    }
Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Low length (1):
  • Has code block (-0.5):
  • User mentioned (1): @apply
  • Low reputation (1):
Posted by: Mostafa Hosseini

79288693

Date: 2024-12-17 16:43:19
Score: 2
Natty:
Report link

I did two methods: Method 1: invert binary image, start from left and go to right to find border and draw vertical line, from left edge move towards the right to find white/black border and draw other vertical line. Measure width between two vertical lines Method 2: invert binary image, crop image to middle to focus on band, start at top row and find black/white pixel border, then go across row to find right edge of border and measure width storing all values. Track each row and values, then display horizontal line on shortest width.

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

79288682

Date: 2024-12-17 16:39:18
Score: 1.5
Natty:
Report link

I had the same problem while running Ubuntu/WSL in the Hyper terminal when trying to run existing Next JS projects or create new ones. I saw the answer above about it working in PowerShell so I ran Hyper as administrator and the problem went away.

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Cameron Bwalya Chishimba

79288672

Date: 2024-12-17 16:36:18
Score: 1
Natty:
Report link

What worked for me was

pip uninstall tensorflow

Then I installed it using this

Check your gpu setup and install accordingly. Should work fine.

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • Has code block (-0.5):
  • Starts with a question (0.5): What
  • Low reputation (1):
Posted by: System Designer

79288667

Date: 2024-12-17 16:36:18
Score: 1
Natty:
Report link

You're returning a single char. Also, what happens if thine input c-string is longer than 20 chars? Either first scan for the length and then malloc, or malloc fixed lenght, set to zero (depending on OS) and break the loop before reaching that lenght.

char * copyStr(const char * str) { int max_length = 20; char * newStr = new char(max_length); for (p=0; *str != '\0' && p < max_length; ++p) { *newStr = *str[p]; }

return newStr; }

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
Posted by: rhavin

79288665

Date: 2024-12-17 16:35:17
Score: 1
Natty:
Report link

With the announcement of JSONata and Variables support in Step Functions, this just got a whole lot easier.

Here is my short blog on looping paginated results with Step Functions:

You can do things like loop through a set of paginated results, appending the results to an existing array.

"Assign": {
  "results": "{% $append($results, $states.result.Items) %}"
}

You can also keep track of an index as a Step Function variable now and increment it with JSONata rather than States.MathAdd

Step Function Iterator

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

79288664

Date: 2024-12-17 16:35:17
Score: 0.5
Natty:
Report link

The problem in your code is that your code returns a character, instead of the pointer to it. The return type of the function suggests that the function returns a character. Hence, you need to revise its signature into char *copyStr(const char *str).

Another problem is that the return value dereferences the pointer newStr, making it return the value pointed by newStr at the very end of the execution of the function. You need to return newStr instead of *newStr.

Also, this might not affect the result of the function, but the one point I want to point out is that the delete statement after the return statement has no effect. Moreover, since according to the description about the function, the caller will use the C-string returned by the function. Deleting it would make it impossible.

In conclusion, the revised version of the code will be like...

char* copyStr(const char* str)
{
  char* newStr =  new char(20);
  for (; *str != '\0'; ++str)
  {
    *newStr = *str;
  }

  return newStr;
}

I also want to suggest to make the function take the length of the str as additional input, and dynamically allocate a memory space according to the length - which can be ignored if you assume that the input string will be less than 20 bytes in its size.

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Doyoung Kim

79288662

Date: 2024-12-17 16:35:16
Score: 9 🚩
Natty: 5.5
Report link

Hey did you get a library for this?

Reasons:
  • RegEx Blacklisted phrase (3): did you get a
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: lovestaco

79288649

Date: 2024-12-17 16:31:15
Score: 1
Natty:
Report link

In my case Math.ceil was the solution. With Math.round or Math.floor I always had one value too low.

Math.ceil(scrollTop) >= scrollHeight - clientHeight
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Torben

79288648

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

For me, I was trying to load a PDF via the data parameter but feeding in base64 directly. As you docs say, you need to convert to binary before loading. Historically this is done with atob() however it is better now to get the binary representation directly from whatever is supplying it

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

79288641

Date: 2024-12-17 16:28:14
Score: 3.5
Natty:
Report link

proxy_http_version 1.1 add this config

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Zheng Jindou

79288631

Date: 2024-12-17 16:24:13
Score: 1
Natty:
Report link

It's hard to tell what's going on. You're activating the right script and the Java VM, but the classpath doesn't seem to be working.

One thing to point out, the 2.0.8 release is very old. The most recent version is at https://github.com/mimno/Mallet/releases/tag/v202108

Reasons:
  • Low length (0.5):
  • No code block (0.5):
Posted by: David Mimno

79288615

Date: 2024-12-17 16:20:12
Score: 3.5
Natty:
Report link

What you're looking for is to disable "local auth" to the AOAI instance. Docs can be found here: https://learn.microsoft.com/en-us/azure/ai-services/disable-local-auth#how-to-disable-local-authentication

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): What you
Posted by: bc3tech

79288611

Date: 2024-12-17 16:18:11
Score: 1.5
Natty:
Report link

The institution can add a plugin card to the default dashboard for users. For users that have not customized their own dashboard, the plugin will show up by default. For users that have customized their own dashboard, the user will need to add the card to their dashboard using the "Organize dashboard" feature.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Jaime Lopez Jr.

79288603

Date: 2024-12-17 16:15:10
Score: 2.5
Natty:
Report link

Update your Azure Functions toolsets and templates by going through menu to Tools>Options>Projects and Solutions>Azure Functions and then click Check for Updates button and update.

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

79288596

Date: 2024-12-17 16:13:10
Score: 2
Natty:
Report link

The issue with "304 Not Modified" responses during package installation has been identified as a problem specific to the Mumbai, India region. It was caused by issues with the npm registry servers.

For further updates, check the official npm incident status page.

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

79288594

Date: 2024-12-17 16:13:10
Score: 3
Natty:
Report link

i get the same problem. Install by this way resolve the problem:

RUN curl -LkSso /usr/bin/mhsendmail 'https://github.com/mailhog/mhsendmail/releases/download/v0.2.0/mhsendmail_linux_amd64'&&
chmod 0755 /usr/bin/mhsendmail &&
echo 'sendmail_path = "/usr/bin/mhsendmail --smtp-addr=mailhog:1025"' > /usr/local/etc/php/php.ini;
Reasons:
  • Has code block (-0.5):
  • Me too answer (2.5): i get the same problem
  • Low reputation (1):
Posted by: ParMesSoins

79288593

Date: 2024-12-17 16:13:10
Score: 2.5
Natty:
Report link

From react-hook-form watch docs

When defaultValue is not defined, the first render of watch will return undefined because it is called before register. It's recommended to provide defaultValues at useForm to avoid this behaviour, but you can set the inline defaultValue as the second argument.

Are you providing a defaultValues object to your useForm declaration?

const {watch} = useForm({defaultValues})
Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Derek

79288579

Date: 2024-12-17 16:11:09
Score: 0.5
Natty:
Report link

The issue with accessing the hidden column in your TableLayout is because setting the android:visibility attribute of the TextView to invisible doesn't remove it from the layout hierarchy While the view becomes invisible, it still occupies its position in the TableRow.

Here's why you can't access the hidden column using getChildAt(0):

Index Order: getChildAt(0) retrieves the first visible child of the TableRow. Since the first TextView is invisible, the second TextView (with the name) becomes the first visible child with an index of 0.

u can

  1. Maintain Child Order, that is instead of relying on the index, iterate through all children of the TableRow:

    val tableRow = stableLayout.getChildAt(0) as TableRow for (i in 0 until tableRow.childCount) { val child = tableRow.getChildAt(i) if (child.id == R.id.idautoint) { val hiddenValue = (child as TextView).text.toString() break } }

  2. Use a Custom Layout:

Create a custom layout (e.g., a LinearLayout) that holds the three TextViews, with the hidden one positioned first. Add this custom layout to the TableRow instead of individual TextViews. This way, the hidden TextView remains at index 0 within its parent custom layout, and you can access it using getChildAt(0) on the custom layout.

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

79288576

Date: 2024-12-17 16:10:09
Score: 1.5
Natty:
Report link

You must modify the hashValues method call as it has been replaced by Object.hash:

int get hashCode => Object.hash(bundle, name);
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Adrián Primo

79288574

Date: 2024-12-17 16:10:08
Score: 10 🚩
Natty: 5.5
Report link

Trying to connect my lightsail with terminal is not showing me terminal I don't know if anyone can help me out where I can find the terminal in AWs lightsail environment

Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): anyone can help me
  • RegEx Blacklisted phrase (2): help me out
  • RegEx Blacklisted phrase (0.5): anyone can help
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Florida

79288566

Date: 2024-12-17 16:06:07
Score: 0.5
Natty:
Report link

You can override the clone method without implementing Cloneable. Just call some copy constructor :

public class Foo {
    private final int a;

    private Foo(int a) {
        this.a = a;
    }

    @Override
    public Foo clone() {
        return new Foo(this.a);
    }
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: grigouille

79288549

Date: 2024-12-17 16:02:05
Score: 3
Natty:
Report link

Universal Packages are only available for Azure Services and not for Azure Server versions.

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

79288528

Date: 2024-12-17 15:57:04
Score: 1
Natty:
Report link

@Charlieface has fully answered the question with their comment.

The indicated datatype is a user-defined table type that appears to consist of a single column of type INT

A common utilization pattern for this sort of object is to pass multiple integers at a time as a parameter to some other code object

In practice, an object of this type is handled similarly to a table variable

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Charlieface
  • Low reputation (0.5):
Posted by: paneerakbari

79288527

Date: 2024-12-17 15:57:04
Score: 0.5
Natty:
Report link

Given that

the bot has access to the chat

the only way is guessing.

That is, try get_message(chat_id, message_id=1000), if it exists, then try message_id=10000; otherwise, try message_id=100. Repeat this procedure until you find it.

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