79300355

Date: 2024-12-22 01:52:28
Score: 0.5
Natty:
Report link

I find a solution after trying, first you need to get a shp file for ocean mask(the coastline file can't do):

import geopandas as gpd
sh1=gpd.read_file(r"F:\MASK\ne_10m_ocean\ne_10m_ocean.shp")
sh1_proj=sh1.to_crs(ccrs.NorthPolarStereo())
sh1_proj.plot(ax=ax, color='w',)

make this layer between your data and the gridline, that will make a satisfying mask. Maybe you don't want to set the zorder, because that may cause error on the display of gridline latitude label. the coastline is smooth

This solution doesn't fix the problem of cartopy, so it is still worth discussing.

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

79300342

Date: 2024-12-22 01:25:23
Score: 2.5
Natty:
Report link

RandomizedSearchCV uses Cross-validation to find the best hyperparameters. Cross-validation splits your training set into smaller training and validation sets in order to train the model and evaluate it on unseen data.

When refit=True, the best performing model will be trained on the full training data so that it is ready for use on actual unseen data.

Sources: https://scikit-learn.org/stable/modules/generated/sklearn.model_selection.RandomizedSearchCV.html https://scikit-learn.org/1.5/modules/generated/sklearn.model_selection.cross_validate.html

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

79300341

Date: 2024-12-22 01:22:22
Score: 1.5
Natty:
Report link
import pandas as pd
sample_df = pd.DataFrame({'menu_item': ['fresh fish', 'lasagna', 'spaghetti o\'s', 'fresher fish', 'something edible']})

filter_list = ['fresh, 'spaghetti']

filter_df = sample_df[sample_df['menu_item'].str.contains('|'.join(filter_list), na=False, case=False)]

Example Input:

          menu_item
0        fresh fish
1      fresher fish
2           lasagna
3     spaghetti o's
4  something edible

Output:

       menu_item
0     fresh fish
1   fresher fish
3  spaghetti o's

sample code screenshot from notebook

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

79300339

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

Indeed, as Tim Roberts pointed out in comments, the problem was that av_frame_clone does not allocate new memory. Instead, I create a completely new frame or call av_frame_unref on the old frames. This solved my problem.

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

79300330

Date: 2024-12-22 01:09:21
Score: 1.5
Natty:
Report link

You can fix that by using DocBlock with @var to define varialbe type then use that varialbe as User model instance

/**
* @var \App\Models\User $user;
*/
$user = auth()->user();

dd($user->id);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @var
  • Low reputation (0.5):
Posted by: Mohammad Al-Ani

79300322

Date: 2024-12-22 00:47:17
Score: 5
Natty:
Report link
Set qdLabelDetail = currentDb.QueryDefs("pqyLabelDetail")
qdLabelDetail!LUJobNum = gsJobNum
Me.RecordSource = qdLabelDetail.SQL

' Runs without errors but prompts me for LUJobNum after the RecordSource SQL gets updated. Ver annoying. Help ver much appreciated.

Reasons:
  • Blacklisted phrase (1): appreciated
  • RegEx Blacklisted phrase (3): Help ver much appreciated
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Dale Owens

79300314

Date: 2024-12-22 00:36:14
Score: 2.5
Natty:
Report link

It was once possible to link to the contact / members collection and if references where made before it still works but any new fields are no longer allowed to reference the members/contacts collection. you might be able to do it via code but the field wont be dynamic.

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

79300307

Date: 2024-12-22 00:23:12
Score: 2.5
Natty:
Report link

You shouldn't need to fit a gaussian, instead compute the center of mass in a suitable area around and including the brightest pixel. I did just that for multi-star tracking, and it runs two of my automated observatories very well.

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

79300302

Date: 2024-12-22 00:17:11
Score: 1
Natty:
Report link

For @talonmies answer above, on newer GPUs(compute capability 7.x or higher), you may have to use the following.

#define FULL_MASK 0xffffffff
__inline__ __device__ void warpReduceMin(int& val, int& idx)
{
    for (int offset = warpSize / 2; offset > 0; offset /= 2) {
        int tmpVal = __shfl_down_sync(FULL_MASK, val, offset);
        int tmpIdx = __shfl_down_sync(FULL_MASK, idx, offset);
        if (tmpVal < val) {
            val = tmpVal;
            idx = tmpIdx;
        }
    }
}
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @talonmies
  • Low reputation (0.5):
Posted by: PhilKo

79300281

Date: 2024-12-21 23:50:06
Score: 8
Natty: 7
Report link

I have the same problem, the computer freezes when i run flutter run and shuts down. I think there is a problem with the build files that I could not solve for two weeks. So have you deleted flutter and android studio, what have you deleted?

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Korhan_34

79300280

Date: 2024-12-21 23:48:05
Score: 4
Natty:
Report link

Use public_path() instead of asset().

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

79300270

Date: 2024-12-21 23:43:03
Score: 2
Natty:
Report link

I have run into a similar issue. This is due to os compatibility issues. I am using a Mac. This has solved for me: pip install regex --platform=manylinux2014_x86_64 --only-binary=:all: --target ./create_layer/lib/python3.11/site-packages( The location of where you want to download the package)

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: venkat dhanush kikkisetti

79300262

Date: 2024-12-21 23:37:02
Score: 0.5
Natty:
Report link

It also could be specified through xml:

<TextView
    android:layout_height="wrap_content"
    android:layout_width="wrap_content"
    android:requiresFadingEdge="vertical"
    android:fadingEdgeLength="24dp" />

By the way, fading edge could be used for ScrollView and other scrollable views as well.

Here is example: https://stackoverflow.com/a/16726054/7699617

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Has code block (-0.5):
Posted by: SerjantArbuz

79300253

Date: 2024-12-21 23:28:00
Score: 1.5
Natty:
Report link

I have a fork of the sandersn downlevel library that picks up where they left off.

https://github.com/nbilyk/downlevel-dts

I can't promise I'll have any more time than they do for ongoing maintenance but it's a much needed project and I'd like to see it keep going.

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

79300224

Date: 2024-12-21 22:52:50
Score: 10.5 🚩
Natty:
Report link

Spanish/English Español/Inglés

¡Hola a todos!

Buscando ayuda en Internet encontré la solución que me funcionó para resolver el error: "Plugin [id: 'org.jetbrains.kotlin.plugin.compose', version: '1.9.0', apply: false] was not found in any of the following sources:" y la quiero compartir con ustedes.

Es muy fácil, aunque en un principio dolió la cabeza, pero se trata simplemente de eliminar esas líneas en esos 2 archivos.

Los archivos son:

  1. libs.versions.toml: eliminar la línea "kotlin-compose = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }"

  2. build.gradle.kts (Proyect): eliminar la línea "alias(libs.plugins.kotlin.compose)"

Espero que sea la solución para muchos otros. Saludos.

-----------------

English:

Hello everyone!

Searching for help on the Internet I found the solution that worked for me to solve the error: "Plugin [id: 'org.jetbrains.kotlin.plugin.compose', version: '1.9.0', apply: false] was not found in any of the following sources:" and I want to share it with you.

It's very easy, although at first it hurt my head, but it's simply a matter of deleting those lines in those 2 files.

The files are:

  1. libs.versions.toml: delete the line "kotlin-compose = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }"

  2. build.gradle.kts (Project): delete the line "alias(libs.plugins.kotlin.compose)"

I hope it's the solution for many others. Greetings.

enter image description here enter image description here

Reasons:
  • Blacklisted phrase (2): ayuda
  • Blacklisted phrase (2): Espero
  • Blacklisted phrase (1): enter image description here
  • Blacklisted phrase (3): solución
  • Blacklisted phrase (1.5): Saludos
  • Whitelisted phrase (-2): I found the solution
  • Whitelisted phrase (-1): worked for me
  • RegEx Blacklisted phrase (1): I want
  • RegEx Blacklisted phrase (2): encontr
  • Long answer (-1):
  • No code block (0.5):
  • Filler text (0.5): -----------------
  • Low reputation (1):
Posted by: Ramón Telleria

79300213

Date: 2024-12-21 22:44:48
Score: 0.5
Natty:
Report link

Well, I think you can improve a bit if you are using Records. You can try to use Record and do some operator overloads. And you can do some "mapping" containing several operations with each type that exists in Delphi and custom types. I'm already doing something with this idea. Excerpt and link below.

https://github.com/lotexiu/HelperLibrary

[AutoDestroy.pas]
...
  RAD<T> = record
  private
    FValue: TAutoDestroy<T>;
    FRtti: TRttiType;
    FContext: IAD<TRttiContext>;
    function getRtti: TRttiType;
  public
  ...
  {Operations}
  class operator Add(a: RAD<T>; b: RAD<T>): Double;
  class operator Subtract(a: RAD<T>; b: RAD<T>) : Double;
  class operator Multiply(a: RAD<T>; b: RAD<T>) : Double;
  class operator Divide(a: RAD<T>; b: RAD<T>) : Double;
  
  class operator Negative(a: RAD<T>): RAD<T>;
  class operator Positive(a: RAD<T>): RAD<T>;
  class operator Inc(a: RAD<T>): RAD<T>;
  class operator Dec(a: RAD<T>): RAD<T>;
  class operator LogicalNot(a: RAD<T>): Boolean;
  class operator Modulus(a, b: RAD<T>): RAD<T>;
  ...

[UTOperation.pas]
...
TTOperation<T> = class(TInterfacedObject,
  IAdd<T>,        ISubtract<T>,
  IMultiply<T>,   IDivide<T>,
  INegative<T>,   IPositive<T>,
  IInc<T>,        IDec<T>,
  ILogicalNot<T>, IModulus<T>
)
private
  FFAdd:        TFunc2P<T,Double>;
  FFSubtract:   TFunc2P<T,Double>;
  FFMultiply:   TFunc2P<T,Double>;
  FFDivide:     TFunc2P<T,Double>;
  FFIntDivide:  TFunc2P<T,Integer>;
  FFNegative:   TFunc1P<T,T>;
  FFPositive:   TFunc1P<T,T>;
  FFInc:        TFunc1P<T,T>;
  FFDec:        TFunc1P<T,T>;
  FFLogicalNot: TFunc1P<T,Boolean>;
  FFModulus:    TFunc2P<T,T>;
public
  constructor Create;
  property FuncAdd:        TFunc2P<T,Double > read FFAdd        write FFAdd;
  property FuncSubtract:   TFunc2P<T,Double > read FFSubtract   write FFSubtract;
  property FuncMultiply:   TFunc2P<T,Double > read FFMultiply   write FFMultiply;
  property FuncDivide:     TFunc2P<T,Double > read FFDivide     write FFDivide;
  property FuncIntDivide:  TFunc2P<T,Integer> read FFIntDivide  write FFIntDivide;
  property FuncNegative:   TFunc1P<T,T>       read FFNegative   write FFNegative;
  property FuncPositive:   TFunc1P<T,T>       read FFPositive   write FFPositive;
  property FuncInc:        TFunc1P<T,T>       read FFInc        write FFInc;
  property FuncDec:        TFunc1P<T,T>       read FFDec        write FFDec;
  property FuncLogicalNot: TFunc1P<T,Boolean> read FFLogicalNot write FFLogicalNot;
  property FuncModulus:    TFunc2P<T,T>       read FFModulus    write FFModulus;

  function Add       (const A, B: T): Double ;
  function Subtract  (const A, B: T): Double ;
  function Multiply  (const A, B: T): Double ;
  function Divide    (const A, B: T): Double ;
  function IntDivide (const A, B: T): Integer;
  function Negative  (const A: T):    T      ;
  function Positive  (const A: T):    T      ;
  function Inc       (const A: T):    T      ;
  function Dec       (const A: T):    T      ;
  function LogicalNot(const A: T):    Boolean;
  function Modulus   (const A, B: T): T      ;
end;
...

procedure DefaultOperations;
var
  LObjOp: TTOperation<TObject>;
  LIntOp: TTOperation<Integer>;
  LDblOp: TTOperation<Double>;
  LStrOp: TTOperation<String>;
begin
  LStrOp := TTOperation<String>.Create;
  with LStrOp do
  begin { TODO - Try to convert first to Number }
    FuncAdd      := function(A,B: String): Double begin Result := Length(A) + Length(B) end;
    FuncSubtract := function(A,B: String): Double begin Result := Length(A) - Length(B) end;
    FuncMultiply := function(A,B: String): Double begin Result := Length(A) * Length(B) end;
    FuncDivide   := function(A,B: String): Double begin Result := Length(A) / Length(B) end;
    FuncIntDivide:= function(A,B: String): Integer begin Result := Length(A) div Length(B) end;
  end;

  LObjOp := TTOperation<TObject>.Create;
  with LObjOp do
  begin
    FuncAdd      := function(A,B: TObject): Double begin Result := NativeInt(A) + NativeInt(B) end;
    FuncSubtract := function(A,B: TObject): Double begin Result := NativeInt(A) - NativeInt(B) end;
    FuncMultiply := function(A,B: TObject): Double begin Result := NativeInt(A) * NativeInt(B) end;
    FuncDivide   := function(A,B: TObject): Double begin Result := NativeInt(A) / NativeInt(B) end;
  end;

  LIntOp := TTOperation<Integer>.Create;
  with LIntOp do
  begin
    FuncAdd         := function(A,B: Integer):  Double begin Result := A + B      end;
    FuncSubtract    := function(A,B: Integer):  Double begin Result := A - B      end;
    FuncMultiply    := function(A,B: Integer):  Double begin Result := A * B      end;
    FuncDivide      := function(A,B: Integer):  Double begin Result := A / B      end;
    FuncIntDivide   := function(A,B: Integer): Integer begin Result := A div B    end;
    FuncNegative    := function(A: Integer):   Integer begin Result := -A;        end;
    FuncPositive    := function(A: Integer):   Integer begin Result := Abs(A);    end;
    FuncInc         := function(A: Integer):   Integer begin Result := A + 1;     end;
    FuncDec         := function(A: Integer):   Integer begin Result := A - 1;     end;
    FuncLogicalNot  := function(A: Integer):   Boolean begin Result := A = 0;     end;
    FuncModulus     := function(A, B: Integer): Integer begin Result := A mod B;  end;
  end;

  LDblOp := TTOperation<Double>.Create;
  with LDblOp do
  begin
    FuncAdd         := function(A,B: Double): Double begin Result := A + B        end;
    FuncSubtract    := function(A,B: Double): Double begin Result := A - B        end;
    FuncMultiply    := function(A,B: Double): Double begin Result := A * B        end;
    FuncDivide      := function(A,B: Double): Double begin Result := A / B        end;
    FuncNegative    := function(A: Double):   Double begin Result := -A;          end;
    FuncPositive    := function(A: Double):   Double begin Result := Abs(A);      end;
    FuncInc         := function(A: Double):   Double begin Result := A + 1;       end;
    FuncDec         := function(A: Double):   Double begin Result := A - 1;       end;
    FuncLogicalNot  := function(A: Double):   Boolean begin Result := A = 0;      end;
    FuncModulus     := function(A, B: Double): Double begin Result := A - (Int(A/B) * B); end;
  end;

  TOperations.new<TObject>('Default',LObjOp);
  TOperations.new<Integer>('Default',LIntOp);
  TOperations.new<Double> ('Default',LDblOp);
  TOperations.new<String> ('Default',LStrOp);
end;

initialization
  TOperations.Operations := TGenericDictionary.Create;
  DefaultOperations;

finalization
  TOperations.Operations.FreeValuesOnDestroy := True;
  TGenU.freeAndNil(TOperations.Operations);
Reasons:
  • Contains signature (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Lotexiu

79300202

Date: 2024-12-21 22:34:46
Score: 2.5
Natty:
Report link

You can't set-up cloudflare without a domain. With domains being extremely cheap these days, how about getting a domain just for your dynamic DNS needs?

Cloudflare does ondeed offer dynamic DNS updates (Dynamically update DNS records), either through the API or ddclient, but you will still have to bring your own domain.

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

79300196

Date: 2024-12-21 22:29:45
Score: 1
Natty:
Report link

Be make sure you import the Request, Response and NextFunction from express.

     import { NextFunction, Request, Response } from "express"; 
    
     export default (req: Request, res: Response, next: NextFunction) => {
       const token = req.headers.authorization;
     next(); 
};
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Rusaln Lutfullin

79300194

Date: 2024-12-21 22:28:45
Score: 3
Natty:
Report link

Remove bcrypt and install it again. It will solve the problem.

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

79300187

Date: 2024-12-21 22:23:44
Score: 0.5
Natty:
Report link

For me, it was a component path that was wrong. I created a component with lowercase... and I tried to import it inside another component.

But I realized it has the wrong name, so I changed the component name using the first letter as uppercase. And I forgot to update the path inside the other component. After that, if I changed something, Next was compiling and everything was ok. No errors. But my browser was not showing the changes. It was required to rerun the npm run dev command for each change.

I even restarted my PC but nothing. The browser was not showing the changes even if next was compilation was ok.

Until I realized that the problem was the wrong path to the renamed component. I changes my wrong path and then the browser was showing the changes again without restarting.

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

79300181

Date: 2024-12-21 22:17:42
Score: 2
Natty:
Report link

datr=NvtmZ3HGENEQ9SmHe9MGdulw; sb=NvtmZwcHdPt7iDTpb5Fgb8PT; m_pixel_ratio=2; ps_l=1; ps_n=1; c_user=61554490644982; fr=0W0YiyuV7wQ9LjgiL.AWWGpQHZqQpbXvqDUEo8HkSI5hM.BnZvs2..AAA.0.0.BnZv-Q.AWUIla2yzVI; xs=31%3A6rEANmja_z7KyQ%3A2%3A1734803346%3A-1%3A5949; locale=en_GB; vpd=v1%3B624x360x2; wd=360x624; fbl_st=101332818%3BT%3A28913650; wl_cbv=v2%3Bclient_version%3A2701%3Btimestamp%3A1734819048

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

79300180

Date: 2024-12-21 22:16:42
Score: 3.5
Natty:
Report link

Same issue, you can still use the main lib mapLibre to create a webview with the "use dom" directive. it the same process and after for production replace with the react-native-maplibre lib

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

79300145

Date: 2024-12-21 21:38:36
Score: 3
Natty:
Report link

Sorry for wasting your time the solution was simple I changed "IP = socket.gethostname()" to the actual IP address IP="192.166.192"

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

79300138

Date: 2024-12-21 21:30:34
Score: 3.5
Natty:
Report link

Figured out the solution. I was using spring-cloud-starter-gateway-mvc dependency instead of spring-cloud-starter-gateway.

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

79300123

Date: 2024-12-21 21:17:31
Score: 3
Natty:
Report link

DOES NOT add gmail. I've called Google Technical Support at (855) 720-6978. Google is "too busy" to help with new clients and tech support requires a pin, which you can not get to (even though I am paying for accounts). Largest company in the world and they can't answer the phone for a paying customer.

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

79300122

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

The event handler shouldn't be static.

public void Form1_ListenToChanges(MyUserControl sender)

And the event subscription should be effected in the Form1 class.

public Form1()
{
    // ...
    this.myUserControl.Value_Change += this.Form1_ListenToChanges;
}

(Form1 has a MyUserControl, right? The code snippet above assumes that it does and that it is this.myUserControl.)

(You can then make the event handler private.)

private void Form1_ListenToChanges(MyUserControl sender)
Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: jeremydalmer

79300111

Date: 2024-12-21 21:10:30
Score: 0.5
Natty:
Report link

It seems there is a new option to disable background updates that sneakily wants to install stuff.

In the file >> preferences >> settings, search for "update" and find the section under application.

I stopped getting these popup warnings by unchecking the Update: Enable Windows Background Updates option.

enter image description here

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

79300105

Date: 2024-12-21 21:06:27
Score: 6 🚩
Natty:
Report link

Did you have a OTel trace ID generator as default in all DAGs or workflows created ? How were you able to instrument that .

We had to do a custom trace ID generator console and pass that ID on to all steps within the DAG

Reasons:
  • RegEx Blacklisted phrase (3): were you able
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did you have a
  • Low reputation (1):
Posted by: Kaiomarz Engineer

79300101

Date: 2024-12-21 21:03:25
Score: 9 🚩
Natty:
Report link

how to set username and password ? did you figure it out ?

Reasons:
  • RegEx Blacklisted phrase (3): did you figure it out
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): how to
  • Low reputation (1):
Posted by: Alaa Al Barari

79300085

Date: 2024-12-21 20:52:22
Score: 1.5
Natty:
Report link

This question was originally (and reasonably) closed as a duplicate of the following questions:

However @mklement0 and others provide a lot of details in comments in this question which deserve to be captured in a more visible and collected answer, though they may be repeated somewhat in mklement0's answers to the other questions. As I (OP) am the learner in this situation, feel free to edit the answer/provide corrections.

The core of this question (and the linked duplicates) revolves around the technical differences between $null and "automation null" ([System.Management.Automation.Internal.AutomationNull]::Value), a.k.a. "the enumerable null".

To answer the direct questions in the OP:

Further context:

Reasons:
  • Blacklisted phrase (0.5): How can I
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @mklement0
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: mmseng

79300081

Date: 2024-12-21 20:47:21
Score: 1.5
Natty:
Report link

In spring jpa

  1. Create Role entity
  2. Create Permission entity
  3. Create one to many relation.
  4. Create repositoryRole and repositoryPermission.
  5. In reposityRole Create method with you query or List findByRoleNameIn(List roleNames)
  6. Call this method - var roles = role Repository.findByRoleNameIn(List.of("user_admin","db_admin"));
  7. And you can transformate List to map Map<String, Choice> result = roles.stream().collect(Collectors.toMap(Roles::getName,Roles::gerPermission )
Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Perevalov Stanislav

79300080

Date: 2024-12-21 20:47:21
Score: 1
Natty:
Report link

In my case the password in jde.ini somehow was wrong. No idea what caused this. Fortunately it is not a prod instance.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Daniel Williams

79300078

Date: 2024-12-21 20:47:21
Score: 0.5
Natty:
Report link

Ended up using res.sendFile() to serve the js file and module language to import it into my client-side script. Did not see this particular solution anywhere, but works like a charm. Note if you're coming at this from scratch, the other adjustment was to add "type": "module" to package.json to get ES6 modules working.

in app.js:

express.static(`./project/public`)(req, res, next);
app.use(`/project`, `./project/index.js`);    
app.get('/utilities.js', function(req, res) {
    res.sendFile(`${path.resolve('./','utilities')}/utilities.js`);
});

in html:

<script type="importmap">
    {
       "imports": {
       "u": "/clientutilities.js"
    }
}
</script>
<script type="module" src="script.js"></script>

in script.js:

import wow from 'u';
alert(wow.woo());

in utilities.js:

function woo() {
    return "woo";
}
export default { woo };

Loading the page alerts "woo". Looking forward to building a portable single server-side file of client-side js functions.

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

79300054

Date: 2024-12-21 20:30:17
Score: 4.5
Natty:
Report link

It seems that the problem is caused by pm2 not being able to run the new server.ts configuration of 'angular 19'. I hope there will be a solution in the next pm2 release.

https://github.com/Unitech/pm2/issues/5921

https://stackoverflow.com/a/79222463/9576431

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: ekonovich

79300049

Date: 2024-12-21 20:22:14
Score: 7 🚩
Natty:
Report link

Would you mind making an extension that would change color of caret based on the syntax of the text cursor is currently at?

Reasons:
  • Blacklisted phrase (2): Would you mind
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: gotta stay high all the time

79300023

Date: 2024-12-21 20:03:10
Score: 2.5
Natty:
Report link

I'm a bit late with my response, but it still may be helpful for people searching to solve a similar problem. This constant rebalancing will happen when two kafka connect clusters with the same group id are connecting with the same kafka cluster. As described above, the problem is solved by choosing a different group id. When this happens, there is probably a different connect cluster (even if it only has 1 replica) running with the same group id. Maybe a first try that you forgot to stop on your docker host?

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Kristiaan

79300018

Date: 2024-12-21 19:58:08
Score: 5.5
Natty:
Report link

I have the same issue with [String] and [Int]. However, I didn't make a new type for each property, but rather made both of them String (each value is separated with a comma) and now with the help of computed properties I can get the necessary value.

Reasons:
  • Blacklisted phrase (1): I have the same issue
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same issue
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Атанас Начков

79300015

Date: 2024-12-21 19:57:08
Score: 1.5
Natty:
Report link

'Authorization':'OAuth 350685531728|62f8ce9f74b12f84c123cc23437a4a32', 'X-FB-Friendly-Name': 'authenticate', 'X-FB-Connection-Bandwidth': str(random.randint(20000, 40000)), 'X-FB-Net-HNI': str(random.randint(20000, 40000)), 'X-FB-SIM-HNI': str(random.randint(20000, 40000)), 'X-FB-Connection-Type': 'unknown', 'User-Agent': useragent(), 'Accept-Encoding': 'gzip, deflate', 'Content-Type': 'application/x-www-form-urlencoded', 'X-FB-HTTP-Engine': 'Liger',}

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

79300014

Date: 2024-12-21 19:57:07
Score: 5
Natty: 4
Report link

also wrote simple short script for that

example: https://github.com/shemeshg/TestHppGenerator/blob/main/lib/MyLib.hpp

running by: https://github.com/shemeshg/TestHppGenerator/blob/main/lib/parseHpp.py

produces: https://github.com/shemeshg/TestHppGenerator/blob/main/lib/MyLib.h https://github.com/shemeshg/TestHppGenerator/blob/main/lib/MyLib.cpp

Reasons:
  • Probably link only (1):
  • Contains signature (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: shemeshg

79300008

Date: 2024-12-21 19:52:06
Score: 0.5
Natty:
Report link

Extracting some text from images is difficult. As @Wimpel already said, extracting solid data from images or the text in there is very difficult. in addition, how should the code know which kind of chart the figure represents? Sure, there are some digitalization tools for scatter or point based charts like digitize. But in general, it's better to mine the underlying data directly. Still, I built this code for your specific example.

library(tesseract)
library(rvest)
library(dplyr)
library(tidyr)
library(tidyverse)
library(magick)
library(data.table)
# Read the webpage
html_url <- read_html("https://www.statista.com/chart/25619/asylum-grants-in-the-us-by-nationality/")

image_url <- html_url %>% html_elements("img") %>% html_attr("src")

graphics <- image_url[grepl("Infographic", image_url)]
# Download the image
download.file("https://cdn.statcdn.com/Infographic/images/normal/25619.jpeg", destfile = "chart_image.png", mode = "wb")

# Load and preprocess image
img <- image_read("chart_image.png") %>%
  image_resize("800x800") %>%
  image_convert(colorspace = "gray")

# Save processed image and apply OCR
image_write(img, "processed_image.png")
text <- tesseract::ocr("processed_image.png")

text_to_asylum_df <- function(text) {
  # Split text into lines
  lines <- strsplit(text, "\n")[[1]]
  
  # Filter out empty lines and header/footer
  data_lines <- lines[grepl("[0-9]", lines)]
  
  # Extract country and number using regex
  asylum_data <- lapply(data_lines, function(line) {
    # Extract country (word characters at start of line)
    country <- gsub("^([A-Za-z ]+).*$", "\\1", line)
    country <- trimws(country)
    
    # Extract number (digits, possibly with comma or period)
    number <- gsub("[^0-9,.]", "", line)
    number <- gsub(",", "", number)
    number <- gsub("\\.", "", number)
    number <- as.numeric(number)
    
    return(c(country = country, granted = number))
  })
  
  # Convert to dataframe
  df <- as.data.frame(do.call(rbind, asylum_data))
  
  # Convert granted column to numeric
  df$granted <- as.numeric(as.character(df$granted))
  
  # Add year as attribute
  attr(df, "year") <- 2022
  
  return(df)
}

# Create the dataframe
asylum_df <- text_to_asylum_df(text)

# View the result
print(asylum_df)

As you can see, China and Venezuela are not even recognized by tesseract.

Output:

> print(asylum_df)
           country granted
1  asylum in the U    2022
2 El Salvador S TS    2639
3        Guatemala    2329
4            india   22203
5         Honduras    1829
6      Afghanistan    1493
7           turkey    1228
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @Wimpel
  • Low reputation (0.5):
Posted by: G-Man

79300007

Date: 2024-12-21 19:49:06
Score: 0.5
Natty:
Report link

It turns out that the documentation is not correct it is

bulk.update

NOT

bulk_update
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: Abdulaziz

79300004

Date: 2024-12-21 19:46:05
Score: 2
Natty:
Report link

Valid alternative with using no condition switch:

if condition {
    switch {
        case nestedCondition:
            // logic
        case otherNestedCondition:
            // logic
    }
}
if otherCondition {
    // logic
}
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Nikita Alkhovik

79299987

Date: 2024-12-21 19:35:03
Score: 3
Natty:
Report link

This strategy will enter and exit as stated, but only on every other bar, and it isn't really a solution for the question posed.

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

79299968

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

Starting with Qt 6.8.0, the WebEngine has been hidden under Extensions and is not part of Qt folder anymore. Whoever thought that this is a good idea. WebEngine folder in Maintenance Tool

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

79299958

Date: 2024-12-21 19:10:58
Score: 4
Natty:
Report link

hav to add this "- '${REVERB_SERVER_PORT:-8080}:8080'" to my ports: under laravel.test

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

79299957

Date: 2024-12-21 19:10:58
Score: 0.5
Natty:
Report link
def similarity_align(v_src, v_target, v_transform=None):
    """find a similarity transformation that best maps v_src to vs_target
    (points are in correspondence by index).

    Returns transformed v_transform if given, else transformed v_src
    """
    xform, scale = cv2.estimateAffine3D(v_src, v_target, force_rotation=True)
    src = v_src if v_transform is None else v_transform
    aligned = src.dot(xform[:, :3].T) * scale + xform[:, 3]
    return aligned
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: welch

79299954

Date: 2024-12-21 19:09:57
Score: 2.5
Natty:
Report link

We evaluated Orleans and turned out it's performance is excellent. The boilerplate is pretty straightforward and the development was able to just focus on the business logic . AKKA is jvm based and for .net I d recommend sticking with Orleans .

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

79299944

Date: 2024-12-21 19:02:56
Score: 3
Natty:
Report link

airflow has default
username: airflow
pw: airflow
you can try

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Thịnh Đỗ

79299942

Date: 2024-12-21 19:02:56
Score: 2
Natty:
Report link

Regarding @Leo Liu's answer, I have tried it via api version 7.1 and I can set fields: AutomatedTestName, AutomatedTestStorage, AutomatedTestType but I can't set AutomationStatus field to 'Automated' value, because there is not the value in the drop down list in ADO.

Response:

"errorMessage": "The field 'Automation status' contains the value 'Automated' that is not in the list of supported values"

It seems that the binding can only be done via VS - then AutomationStatus field is set automatically to 'Automated' value.

This is a very big disadvantage because if we have a lot of tests to associate, we have to do it manually.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @Leo
  • Low reputation (1):
Posted by: Lucas

79299939

Date: 2024-12-21 18:59:55
Score: 1.5
Natty:
Report link

I found the cause. My server is OpenLiteSpeed with CyberPanel. While the main web server logs in the access.log file are recorded in the format: %h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i, the logs for individual sites in the /home directory are written in the format: "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i" (with additional quotation marks at the beginning and end). I have no idea why this is the case – whether it's a feature of OpenLiteSpeed or CyberPanel. The problem is solved. Thanks!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Andrzej Majewski Phones Rescue

79299922

Date: 2024-12-21 18:48:53
Score: 3.5
Natty:
Report link

How to mix two rtmp streams in gstreamer?

Src: nginx-rtmp cams - h.264/speex Sink: nginx-rtmp

GStreamer 0.10 or 1.0

yalla shoot

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): How to
  • Low reputation (1):
Posted by: kooora live

79299913

Date: 2024-12-21 18:42:52
Score: 3
Natty:
Report link

I think the problem is due to inheriting both ERC721URIStorage and ERC721Enumerable.

You can look at here for how to put them together: https://forum.openzeppelin.com/t/how-do-inherit-from-erc721-erc721enumerable-and-erc721uristorage-in-v4-of-openzeppelin-contracts/6656

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

79299906

Date: 2024-12-21 18:37:50
Score: 5
Natty:
Report link

I think you need to trace what is happening with the index variable. Maybe treat is as a global and stop passing it around?

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

79299893

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

Adding the scrolling attribute as "no" hides the scrollbars. Default is auto.

<iframe scrolling="no">Loading…</iframe>
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: AppDev School

79299891

Date: 2024-12-21 18:20:46
Score: 1
Natty:
Report link
import { z } from "zod";

export const LoginRequest = z.object({
  email: z.string(),
  password: z.string(),
  remember: z.boolean(),
}).required({
  email: true,
  password: true,
});
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Bishwajit Adhikary

79299886

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

Found the error: user-read-private was missing as scope.

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

79299881

Date: 2024-12-21 18:15:42
Score: 6 🚩
Natty:
Report link

I have the exact same problem. I have tried many things, but I can't fix it.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the exact same problem
  • Single line (0.5):
  • Low reputation (1):
Posted by: Mikheil Berishvili

79299879

Date: 2024-12-21 18:14:42
Score: 1
Natty:
Report link

To get the headers in NextJs 15 you have to await headers:

import { headers } from 'next/headers'
 
export default async function Page() {
  const headersList = await headers()
  const userAgent = headersList.get('user-agent')
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Abdelrahman Nagy

79299876

Date: 2024-12-21 18:08:41
Score: 4.5
Natty: 4
Report link

If anyone wants to "roll their own IdP" I wrote up a series of posts on how to create the necessary keys & config to allow you to login with a federated credential: https://finarne.wordpress.com/2024/07/25/acquire-an-entra-id-token-using-federated-credentials-part-1-oidc-discovery-documents/

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

79299856

Date: 2024-12-21 17:57:38
Score: 1.5
Natty:
Report link

It might seem obvious, but if Shift + Tab does not work, it is likely because you need to first import the function you want to use and check its arguments.

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

79299851

Date: 2024-12-21 17:55:38
Score: 1.5
Natty:
Report link

It also happens for me. A quick fix that I found is to replace SingleChildScrollView with a ListView. Hope it helps!

Reasons:
  • Whitelisted phrase (-1): Hope it helps
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Mircea Dragota

79299843

Date: 2024-12-21 17:48:36
Score: 1.5
Natty:
Report link

I encountered the same issue, and after trying multiple solutions, this was the only one that worked for me.
Jinto Joseph's answer explains it clearly and fixes the problem perfectly.

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Siavash1991

79299841

Date: 2024-12-21 17:47:36
Score: 0.5
Natty:
Report link

I may assume the next:

     if 'access_token' in data:
        token = '{0} {1}'.format(data['token_type'], data['access_token'])
        update_session('Authorization', token)
        set_login_state(True)
        data['detail'] = "logged in with brand new authentication code."
        if store_session:
            with open(pickle_path, 'wb') as f:
                pickle.dump({'token_type': data['token_type'],
                             'access_token': data['access_token'],
                             'refresh_token': data['refresh_token'],
                             'device_token': payload['device_token']}, f) else:
        raise Exception(data['detail'])

so, I think access_token is not in data and part raise Exception(data['detail']) is invoked, but your data does not contain detail field and KeyError: 'detail' is raised.

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

79299836

Date: 2024-12-21 17:42:35
Score: 2
Natty:
Report link

I could get it compile with targetSdk = 32 but it has to 33 to get on google play

//noinspection ExpiredTargetSdkVersion targetSdk = 32

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Matthew V Carey

79299833

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

May be you can try ask permission

const downloadsUri = FileSystem.StorageAccessFramework.getUriForDirectoryInRoot('directory you need')

  const permissions =
    await FileSystem.StorageAccessFramework.requestDirectoryPermissionsAsync(
      downloadsUri
    )
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Oleg Kuzmin

79299832

Date: 2024-12-21 17:40:34
Score: 1.5
Natty:
Report link

to make this easier u can print (i**2)

#where it prints i^2

OR try printing (i * i) instead of (n*n)

hope this helps!

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

79299826

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

Can you perhaps share a screen of your Inspector for the object with this script and relevant RigidBody 2D and Collider 2D?

Just quick basic thoughts to think of in case you missed something:

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Can you
  • Low reputation (1):
Posted by: SSatan

79299824

Date: 2024-12-21 17:36:33
Score: 3
Natty:
Report link

If someone is facing the same problem, you will have to make sure that the React Native app is not running in background, and what you can do is just restart your desktop to get it working, if not even after closing the app on the local server.

To close the running service

ctrl + c

To reset the dir

npm run reset-project

And even if all of this does not work, just create a new React Native app!

Reasons:
  • Has code block (-0.5):
  • Me too answer (2.5): facing the same problem
  • Low reputation (1):
Posted by: Aniket Baghel

79299816

Date: 2024-12-21 17:31:32
Score: 2
Natty:
Report link

I was getting the same error and could not find a solution within the library. So, the solution that I went for was to manually take a complete screenshot of my monitor, then import the screenshot in MS Paint and note the (x, y) coordinates for specific positions in the picture in MS Paint

Example Image. The rectangle area shows the coordinatesaint.

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

79299815

Date: 2024-12-21 17:31:32
Score: 2
Natty:
Report link

To use batch geocoding you should use Mapbox Batch Geocoding, is simple and good performance

documentation: Batch geocoding

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

79299796

Date: 2024-12-21 17:18:28
Score: 2.5
Natty:
Report link

I face the same issue,

actualy in Next JS documentation, They metion to use scroll={true} in Link tag, By default it's true

import Link from "next/link";
......
<Link href="#your-scetion" scroll={true}>Go to Section 1</Link>

but to enable smooth scroll behaviour you also have to add one more thing in you html tag

if you use simple css then:

html {
    scroll-behavior: smooth;
}

and if you use tailwind css:

<html className="scroll-smooth">
    .......
</html>

this is how I resolve the issue.

Here is the Documentation Link Next Js Link Scroll

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I face the same issue
  • Low reputation (1):
Posted by: user28884901

79299795

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

This answer is the culmination of everything the fine folks in the comments have said. First of all the gdt should be made up of 64 bit entries, not 16 bit. Second of all the limit should be placed in the struct for the gdtr before the base. To make the code safer I switched the "r" with a "m" in the inline asm and passed a value into the gdtr. Thank you all again for the comments and support!

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

79299793

Date: 2024-12-21 17:17:28
Score: 2.5
Natty:
Report link

depend where you are but you can try paystack... now i'll assume that you found the solution

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

79299791

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

This is by design, since there is no way to know if a cropped shape is a closed circle or an open arc.

From the API documentation of binary_fill_holes

Notes

The algorithm used in this function consists in invading the complementary of the shapes in input from the outer boundary of the image, using binary dilations. Holes are not connected to the boundary and are therefore not invaded. The result is the complementary subset of the invaded region.

Here's two examples of what the rest of the shape could be

Two possible examples of what the rest of the shape could be

Reasons:
  • No code block (0.5):
Posted by: Refael Ackermann

79299790

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

I had an orange alert because I hadn't created a budget. I did that, tried accessing Diagflow again and it seems to be working okay. shrugs

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

79299787

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

From the context, I'm assuming you want to handle user validation and creation on your own backend and do not want default Firebase user creation functionality.

In this case, I think you might want the settings under Firebase Console..Authentication..Settings..User Actions

This page has check boxes for:

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

79299784

Date: 2024-12-21 17:08:26
Score: 1
Natty:
Report link

May be it is need to use development build to use this staff. Try to use npx expo prebuild to create native folders (ios and android). Next run npx expo run:android (or ios) to start. I hope it will help you.

Reasons:
  • Whitelisted phrase (-1): hope it will help
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Oleg Kuzmin

79299782

Date: 2024-12-21 17:08:26
Score: 1
Natty:
Report link

I used this to find out all the columns whose dtype == 'object'

    print([x for x in df.columns if df[x].dtypes == 'object'])
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ankit Shaw

79299779

Date: 2024-12-21 17:03:26
Score: 0.5
Natty:
Report link

If your only goal is to set the focus on page load you can also use autofocus

Note: it doesn't change the focus after the page loads. Here's the details

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

79299759

Date: 2024-12-21 16:52:23
Score: 3
Natty:
Report link

Without NVIDIA GPU which needs the requirements as mentioned in the website, I don't think that it will be downloaded from the terminal if you don't have an external GPU or so

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

79299752

Date: 2024-12-21 16:47:22
Score: 3.5
Natty:
Report link

我也遇到了这个问题,我下载的是debug版本,但仍然出现

[CMake] C:/Users/26621/Desktop/mysql-connector-c++-9.1.0-winx64/lib64. (missing: 1> [CMake] MYSQL_CONCPP_FOUND) (found version "9.1.0") 1> [CMake] Call Stack (most recent call first): 以上错误

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • No latin characters (2.5):
  • Low reputation (1):
Posted by: Gao Zihan

79299744

Date: 2024-12-21 16:43:21
Score: 3.5
Natty:
Report link

in order to run your mongo db server you simple open any terminal and run mongosh

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

79299735

Date: 2024-12-21 16:35:19
Score: 2
Natty:
Report link
'password.*' => 'your merged message here'
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Gev99

79299730

Date: 2024-12-21 16:29:18
Score: 1
Natty:
Report link

As a companion solution, there's also S3Empty https://pypi.org/project/s3empty/ which is a tiny CLI I wrote to handle more scenarios:

Hopefully that's handy for someone.

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

79299720

Date: 2024-12-21 16:20:15
Score: 2
Natty:
Report link

Why access is denied?

Because the I/O control code SMART_RCV_DRIVE_DATA is defined in the winioctl.h header file as

#define SMART_RCV_DRIVE_DATA            CTL_CODE(IOCTL_DISK_BASE, 0x0022, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS)

Note that RequiredAccess parameter in the CTL_CODE macro is FILE_READ_ACCESS | FILE_WRITE_ACCESS.

How to fix it?

In order to fix the problem, you should call CreateFile() function specifying dwDesiredAccess as FILE_READ_DATA | FILE_WRITE_DATA, not just GENERIC_READ. Like that:

HANDLE hDrive = CreateFile(drivePath.c_str(), FILE_READ_DATA | FILE_WRITE_DATA, FILE_SHARE_READ | FILE_SHARE_WRITE, nullptr, OPEN_EXISTING, 0, nullptr);

GENERIC_READ | GENERIC_WRITE also will work:

HANDLE hDrive = CreateFile(drivePath.c_str(), GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, nullptr, OPEN_EXISTING, 0, nullptr);

Running it as Administrator is unnecessary.

Reasons:
  • RegEx Blacklisted phrase (1.5): How to fix it?
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Why
  • Low reputation (0.5):
Posted by: ForumsReg

79299709

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

I'm in the same process. Have a look at this document, it's specific for OpenACS, but the problems should be the same everywhere.

There are several incompatibilities, so your application might fail on PG16. You need to fix these first. Later the actual upgrade should be just a pg_dump followed by a psql -f dump.sql.

Reasons:
  • Blacklisted phrase (1): this document
  • Low length (0.5):
  • No code block (0.5):
Posted by: fraber

79299707

Date: 2024-12-21 16:11:14
Score: 1.5
Natty:
Report link

I realized that even though I had the virtual environment activated, it was looking for packages in the global 3.11 environment. The solution was to run the project as follows:

python -m uvicorn main:ia --port 8000 --reload
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Deiver Garcia

79299687

Date: 2024-12-21 16:01:11
Score: 1
Natty:
Report link

import tkinter as tk

def add_task(): task = entry.get() if task: listbox.insert(tk.END, task) entry.delete(0, tk.END)

def delete_task(): try: selected_task_index = listbox.curselection()[0] listbox.delete(selected_task_index) except IndexError: pass

root = tk.Tk() root.title("تطبيق قائمة المهام")

entry = tk.Entry(root, width=50) entry.pack(pady=10)

add_button = tk.Button(root, text="إضافة مهمة", command=add_task) add_button.pack(pady=5)

delete_button = tk.Button(root, text="حذف مهمة", command=delete_task) delete_button.pack(pady=5)

listbox = tk.Listbox(root, width=50, height=10) listbox.pack(pady=10)

root.mainloop()

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

79299662

Date: 2024-12-21 15:43:06
Score: 3.5
Natty:
Report link

Thanks for the reply. It gave me the hints I needed to solve my problem. I could not change how the checksum works, I'm trying to modify an existing system. What I ended up noticing is that the word following the checksum is its complement. If I replace the checksum and its complement with any two words that sum to FFFF (IE. FFFF 0000, or 7F7F 8080) and then calculate the checksum, the resulting value and its complement wouldn't change the calculated checksum when substituted back in.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): I need
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Christopher Duckworth

79299657

Date: 2024-12-21 15:40:05
Score: 0.5
Natty:
Report link

Checkout react-query documentation - https://tanstack.com/query/latest/docs/framework/react/guides/suspense#suspense-on-the-server-with-streaming and https://tanstack.com/query/latest/docs/framework/react/reference/useSuspenseQuery

It seems what you have described is expected behaviour.

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • High reputation (-2):
Posted by: Mayank Kumar Chaudhari

79299655

Date: 2024-12-21 15:39:05
Score: 3
Natty:
Report link

For those of you who do not understand the above conversation, I suggest reading the resource linked above as sent by @user207421

Surely you already have relevant texts to study? If you don't, you should read RFC 793 or W.R. Stevens, TCP/IP Illustrated, volume I, relevant chapters. You have several major misunderstandings here.

RFC 793 Page 4 and Page 5 of the introduction seem to be enough for understanding the core discussion above!

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @user207421
  • Low reputation (1):
Posted by: Aayushman Kumar

79299653

Date: 2024-12-21 15:38:04
Score: 0.5
Natty:
Report link

As of December 2024, this is also possible through the Azure portal. Simply navigate to your container app and click on Stop on the top:

Screenshot

Enjoy!

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

79299636

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

Linux - Red Hat 9

I carefully followed the instructions on the PostgreSQL installation page. It said to enter this:

su - postgres

I got this:

su: Authentication failure

After scratching my head a few minutes and trying other suggestions that did not work, it occurred to me that when you su, you are simply changing your Linux user. It has nothing to do with signing into a database. So... I changed the postgres user password in Linux thus:

sudo passwd postgres
New password: <enter new password here>
Retype new password: <enter new password again>

Now this works:

su - postgres
<sign in with new password>
psql

Done!

Reasons:
  • Blacklisted phrase (1): did not work
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Sam S

79299632

Date: 2024-12-21 15:20:00
Score: 2.5
Natty:
Report link

I have been running Sqlite on Linux and Windows for about 5 years now and in the last two weeks or so I have reinstalled roughly 5-10 times because of this issue. Sqlite is turning out to be less reliable than other systems (they all have some issues) it is frustrating when you lose serious time involved in producing quality work. I think I may just concentrate on using MySQL for now or even the forbidden Sql Server might just do for now but SQLite has some frustrating issues such as this one.

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

79299631

Date: 2024-12-21 15:20:00
Score: 3
Natty:
Report link

if you want to create your decenterlized crypto wallet you can see the detail about here https://www.fiverr.com/s/DBgA177

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

79299627

Date: 2024-12-21 15:15:59
Score: 1.5
Natty:
Report link

From nodejs v22 now you can pass a WebSocketInit as the second parameter. Example:

var ws = new WebSocket(url, {
  protocols: ...
  headers: {
    'User-Agent': 'xxx',
    ...
  },
})

Though this is not been written in MDN Docs, but nodejs chose undici as WHATWG implementation, like fetch/WebSocket.

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

79299626

Date: 2024-12-21 15:15:59
Score: 3
Natty:
Report link

sudo apt autoremove -y ./Msty_amd64_amd64.deb

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

79299624

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

Thank you all. I managed to solve this problem. There have been a few changes to my code. Let me tell you the idea that I used to solve my problem: "The first two fish, male and female, appear. Fish can reproduce from the age of 4. When the male fish is 4 years old, I add it to the adultMaleFishList. When a female fish turns 4 years old, she starts looking for a mate randomly from the adultMaleFishList. After finding a mate, we delete the male fish from the adultMaleFishList. And these two fish will mate and give birth to a new babyFish and after that these fish will rest for 3 years. After 3 years, we will add the male fish to the adultMaleFishList. The female fish again starts looking for a mate in the adultMaleFishList, and so on. When the age of the fish is equal to the age of death, the fish dies and we delete it from the fishList. When the fishList runs out of fish, the program stops. This is how the pretend I used works".

An example of my program code:

Main class:

package lesson.uz;

public class Main {

    public static void main(String[] args) {

        Fish fish1 = new Fish(Gender.MALE);
        fish1.start();
        Aquarium.fishList.add(fish1);

        try {
            Thread.sleep(1_00);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }

        Fish fish2 = new Fish(Gender.FEMALE);
        fish2.start();
        Aquarium.fishList.add(fish2);

        Information.start();
    }

}

Fish class:

package lesson.uz;

import lombok.Getter;
import lombok.Setter;

import java.util.Random;

@Getter
@Setter
public class Fish extends Thread {

    private Gender gender;
    private Integer lifespan;
    private String fishName;
    private Integer age = 0;
    private boolean isAddedToList;
    private Integer spawnInterval;

    public Fish(Gender gender) {
        this.gender = gender;
        this.lifespan = new Random().nextInt(6) + 10;
        this.isAddedToList = false;
        this.spawnInterval = -1;
    }

    @Override
    public void run() {
        while (!Thread.currentThread().isInterrupted()) {
            try {
                Thread.sleep(1000);

                if(this.age >= this.lifespan){
                    if(this.gender == Gender.MALE){
                        Aquarium.adultMaleFishList.remove(this);
                        Aquarium.fishList.remove(this);
                        Information.maleFish.decrementAndGet();
                    }else{
                        Aquarium.fishList.remove(this);
                        Information.femaleFish.decrementAndGet();
                    }
                    Information.diedFish.incrementAndGet();
                    Thread.currentThread().interrupt();
                }

                if(spawnInterval == 0 || spawnInterval == 1 || spawnInterval == 2 || spawnInterval == 3) {
                    if(spawnInterval == 3){
                        if(gender == Gender.MALE){
                            Aquarium.adultMaleFishList.add(this);
                        }
                        spawnInterval = -1;
                    }else {
                        spawnInterval++;
                    }
                }

                if(gender == Gender.FEMALE && age>=4 && spawnInterval==-1){
                    reproduce();
                }

                if(!isAddedToList && gender == Gender.MALE && age>=4){
                    Aquarium.adultMaleFishList.add(this);
                    isAddedToList = true;
                }

                age++;
            } catch (InterruptedException e) {
            }
        }
    }

    public static Fish createFish() {
        Fish newFish = new Fish(Math.random() > 0.5 ? Gender.MALE : Gender.FEMALE);
        newFish.start();
        if (newFish.getGender() == Gender.MALE) {
            Information.maleFish.incrementAndGet();
        }else {
            Information.femaleFish.incrementAndGet();
        }
        return newFish;
    }

    public void reproduce() {
        Fish randomFish = Aquarium.getRandomMaleFish();

        if(randomFish == null){
            return;
        }

        this.spawnInterval = 0;
        Fish babyFish = createFish();
        Aquarium.fishList.add(babyFish);
    }
}

Aquarium class:

package lesson.uz;

import java.util.Random;
import java.util.concurrent.CopyOnWriteArrayList;

public class Aquarium {

    public static CopyOnWriteArrayList<Fish> fishList = new CopyOnWriteArrayList<>();
    public static CopyOnWriteArrayList<Fish> adultMaleFishList = new CopyOnWriteArrayList<>();

    public static synchronized Fish getRandomMaleFish() {
        if(adultMaleFishList.isEmpty()) {
            return null;
        }
        Fish selectedFish = adultMaleFishList.get(new Random().nextInt(adultMaleFishList.size()));

        selectedFish.setSpawnInterval(0);
        adultMaleFishList.remove(selectedFish);
        return selectedFish;
    }
}

Information class:

package lesson.uz;

import java.util.concurrent.atomic.AtomicInteger;

public class Information {

    public static AtomicInteger allFish = new AtomicInteger(0);
    public static AtomicInteger maleFish = new AtomicInteger(1);
    public static AtomicInteger femaleFish = new AtomicInteger(1);
    public static AtomicInteger diedFish = new AtomicInteger(0);

    public static void start() {
        System.out.println("\n=====================     Start     =====================\n");

        while (true) {

            allFish.set(Aquarium.fishList.size());

            System.out.println("All fish: " + allFish+
                    "\nMale fish: " + maleFish +
                    "\nFemale fish: " + femaleFish +
                    "\nDied fish: " + diedFish +"\n");

            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }

            if(allFish.get() == 0) {
                break;
            }
        }
        System.out.println("=====================     Finish     =====================");
    }
}

Gender enum:

package lesson.uz;

public enum Gender {
    MALE, FEMALE
}

It's true that my code is not pretty. My code may not be beautifully written based on SOLID, OOP principles. Because I am still new to programming. Thanks to everyone who helped me solve this problem.

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

79299601

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

Try to add PXRestrictor attribute to the field:

[PXRestrictor(typeof(Where<AMProdItemSplit.qtyRemaining, Greater<decimal0>>), 
    "Remaining Quantity is 0.")]  

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

79299593

Date: 2024-12-21 14:55:54
Score: 1
Natty:
Report link

I dont think there is way in the API to extract this. They allow you to control the way you sample using softmax temperatures but dont expose the probabilities directly. I resort to just empirical sampling, of course it is not efficient, but it works

def estimate_probabilities(prompt, n_samples=100):
    responses = []
    
    for _ in range(n_samples):
        response = anthropic. completions.create(
            model="<your model of choice here>",
            prompt=prompt,
            temperature=1.0,
            max_tokens_to_sample=1024
        )
        responses.append(response.content)
        time.sleep(0.1)
    
    unique_responses = set(responses)
    probabilities = {
        response: responses.count(response) / n_samples 
        for response in unique_responses
    }
    
    return dict(sorted(probabilities.items(), key=lambda x: x[1], reverse=True)

If you need cascading for many tokens in the completion like OpenAI does you will need to extend my code accordingly

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