79146486

Date: 2024-10-31 22:23:16
Score: 0.5
Natty:
Report link

I think you need to create unbound action using codeunit to create a custom here is an example from Microsoft documentation https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-creating-and-interacting-with-odatav4-unbound-action

    codeunit 50100 "MiscOperations"
    {
    procedure Ping(input: Integer): Integer
    begin
        exit(-input);
    end;
 
    procedure Delay(delayMilliseconds: Integer)
    begin
        Sleep(delayMilliseconds);
    end;
 
    procedure GetLengthOfStringWithConfirmation(inputJson: Text): Integer
    var
        c: JsonToken;
        input: JsonObject;
    begin
        input.ReadFrom(inputJson);
        if input.Get('confirm', c) and c.AsValue().AsBoolean() = true and input.Get('str', c) then
            exit(StrLen(c.AsValue().AsText()))
        else
            exit(-1);
    end;
}
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: MAPMD

79146480

Date: 2024-10-31 22:20:15
Score: 2
Natty:
Report link

For anyone who runs into this issue, modify the sidebar.tsx file: -Replace the inset class with top-16 (adjust accordingly) -Removed the h-svh class

This is the end result:

className={cn( "duration-200 fixed bottom-0 top-16 z-10 hidden w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex", side === "left"

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

79146479

Date: 2024-10-31 22:19:15
Score: 2.5
Natty:
Report link

I've come across your question because I tried to google your exact problem, which is also my problem at the moment. I'm gonna try https://github.com/akosela/msys2-xp and see if it works.

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

79146472

Date: 2024-10-31 22:16:14
Score: 1.5
Natty:
Report link

I was able to get this going, thanks for looking into it: Snippets of additions here:

DECLARE
users_exists integer;
exec_str varchar2(100);

...

exec_str := 'alter user '|| username.column_value || ' identified by welcome321';
EXECUTE IMMEDIATE exec_str;
Reasons:
  • Blacklisted phrase (0.5): thanks
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: calsaint

79146451

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

OpenSSL includes algorithm identifiers and encapsulating information by default, and the .NET ExportRSAPublicKey method excludes them. If you use rsa.ExportSubjectPublicKeyInfo() they will be more similar in size.

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

79146447

Date: 2024-10-31 22:02:11
Score: 4
Natty:
Report link

I had a similar problem and ended up solving it client-side using JavaScript: https://uublog.de/simple-pagination-in-wtforms/

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

79146444

Date: 2024-10-31 22:00:10
Score: 4
Natty:
Report link

I had a similar problem and ended up solving it client-side using JavaScript: https://uublog.de/simple-pagination-in-wtforms/

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

79146432

Date: 2024-10-31 21:53:05
Score: 8.5 🚩
Natty: 5.5
Report link

No answers yet... did you ever figure it out?

Reasons:
  • RegEx Blacklisted phrase (3): did you ever figure it out
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: DeWayne Pratt

79146430

Date: 2024-10-31 21:52:05
Score: 1
Natty:
Report link

When you add geom_text, it inherits all of the aesthetics you specified inside ggplot - but because you are using different data for geom_text, it can't find .estimate. You can just move aes(fill = .estimate) from inside ggplot to inside geom_sf.

drought_sf %>%
  left_join(drought_rmse, by = 'GEOID') %>%
  ggplot() +
  geom_sf(color = NA, alpha = 0.8, aes(fill = .estimate)) +
  labs(fill = "RMSE") +
  scale_fill_viridis_c(labels = scales::dollar_format()) +
  geom_text(
    data = cities_data, 
    aes(x = long, y = lat, label = fixed_name), 
    color = 'black', 
    check_overlap = TRUE
  )

enter image description here

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): When you add
  • Low reputation (0.5):
Posted by: Eonema

79146422

Date: 2024-10-31 21:49:02
Score: 10 🚩
Natty: 4
Report link

Even I am looking for such solution, let me know if you were able to figure this out. thanks in advance.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (2): I am looking for
  • RegEx Blacklisted phrase (3): thanks in advance
  • RegEx Blacklisted phrase (2): Even I am
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Hari Krishna D

79146421

Date: 2024-10-31 21:49:02
Score: 1
Natty:
Report link

Whilst not ideal, another Alternative might be to utilize the custom authentication feature available with identity platform https://cloud.google.com/identity-platform/docs/web/custom”,

For this you would need to implement your own OAuth2/OIDC flow to this non-standard provider outside of firebase/identity platform, there are many frameworks to facilitate this, and then once successfully authenticated, create a JWT (as instructed in the link) and sign in to firebase/identity platform.

Presuming you require it, this method would allow you to continue to use the services/ alternative providers offered by firebase auth and centrally manage your users.

Note, careful consideration should be made regarding token refresh and revocation of users authenticated in this way.

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

79146415

Date: 2024-10-31 21:45:01
Score: 0.5
Natty:
Report link

Would it work to explicitly call the data in the geom_sf()? Since you are explicitly calling in geom_text(), you also need to call it in geom_sf()

drought_sf %>%
  left_join(drought_rmse, by = 'GEOID') 

  ggplot() +
  geom_sf(data = drought_sf, 
          mapping = aes(fill = estimate), 
          color = NA, alpha = 0.8) +
  labs(fill = "RMSE") +
  scale_fill_viridis_c(labels = scales::dollar_format()) +
  geom_text(color = 'black', data = cities_data, check_overlap = TRUE, aes(x = long, y = lat, label = fixed_name))

sample

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
Posted by: Susan Switzer

79146400

Date: 2024-10-31 21:31:58
Score: 0.5
Natty:
Report link

I ran into this error because I was using an outdated version of NextJS:

NextJS fetch error

I upgraded to v 14.2.6 and the error went away.

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • High reputation (-2):
Posted by: Code on the Rocks

79146398

Date: 2024-10-31 21:31:58
Score: 1.5
Natty:
Report link

They are basically the same setChecked is calling check internally

async setChecked(checked: boolean, options?: channels.ElementHandleCheckOptions) {
    if (checked)
      await this.check(options);
    else
      await this.uncheck(options);
  }

https://github.com/microsoft/playwright/blob/69404561f9d09e045fd72f879cd96dabee016176/packages/playwright-core/src/client/locator.ts#L308-L313

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

79146396

Date: 2024-10-31 21:31:58
Score: 2.5
Natty:
Report link

Android sdkmanager not found. Update to the latest Android SDK and ensure that the cmdline-tools are installed to resolve this.

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

79146395

Date: 2024-10-31 21:30:57
Score: 4
Natty:
Report link

This bug will be fixed in 17.13 preview 1 of VS.

https://github.com/dotnet/winforms/issues/12360

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: André Giacomini

79146385

Date: 2024-10-31 21:27:56
Score: 0.5
Natty:
Report link

After digging into the problem i tried to see the root cause to see what factor affect this problem

i found it relate to the add_conditional_format() method and rules were being sorted into row/column order instead of insertion order only with nested ranges

I raised a GitHub issue that was fixed in version "0.79.1" The issue was present in version "0.79.0"

and here is the change log :

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

79146368

Date: 2024-10-31 21:20:54
Score: 0.5
Natty:
Report link

For some reason, the compiler is unable to ascertain that TModel implements IModel, even though it inherits from a class that implements IModel. The solution, fortunately, is simple. Instead of this:

  public Repository<TModel, TKey> where TModel : Model<TKey>

do this:

  public Repository<TModel, TKey> where TModel : Model<TKey>, IModel
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Phoeniceus Agelaius

79146361

Date: 2024-10-31 21:17:54
Score: 1.5
Natty:
Report link

The fix was to compile worker.ts to a .cjs file, because the worker was importing code from other typescript files.

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

79146345

Date: 2024-10-31 21:12:52
Score: 2
Natty:
Report link

You are unable to overwrite offsets/sequence numbers manually while your service is live and concurrently updating offsets/sequence numbers.

The reason I was able to update these in the Azure Blobs earlier was because my service was not live yet and so I was not data-racing production checkpointing.

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

79146343

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

I was able to get it working for the first part - it now accepts pandas series for all required arguments. Still trying to figure out if it can be done with an added dimension, so instead of slice montecarlo[j], use say the maximum of slice i:j.

Working code:

def montecarlo_payouts(montecarlo, j, opt, k, kotype = None, b = 0, i=1):
    #adjust daycount for index starting at 0
    i = i - 1
    j = j - 1
    #deal wih argument types
    j = j.to_numpy() if isinstance(j, pd.Series) else j
    opt = opt.str.lower().to_numpy() if isinstance(opt, pd.Series) else opt.lower()
    k = k.to_numpy() if isinstance(k, pd.Series) else k
    k = k[:,None] if isinstance(k, (pd.Series, np.ndarray)) else k

    #vanilla option payoffs for call and put
    itm = montecarlo[j] - k
    conditions = [np.logical_or(opt == 'c',opt == 'call')]
    callorput = np.where(conditions, 1, -1)
    payoff = np.maximum(itm * callorput.transpose(), 0)
    return payoff.mean(axis=1)
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: rdsencap

79146337

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

Ultimately my issue was caused by incompatible Java and Gradle versions.

See Compatibility Matrix. I had installed jdk 23, which was incompatible with gradle 7.6.

In Android Studio: File > Project Structure > Add New SDK > Download JDK...

Select the compatible version for you, in my case 19.

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

79146326

Date: 2024-10-31 21:06:51
Score: 1
Natty:
Report link

I think i found a reasonable solution. Instead of using the task "Azure web app" to deploy, i am now using the task "FTP Upload" to upload directly to the path site/wwwroot/wwwroot.

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

79146323

Date: 2024-10-31 21:06:51
Score: 1.5
Natty:
Report link

I have a problem with the same error. After renaming a file in VSCode and updating the imports, the error shows up for every page load of a certain route ('/'):

SvelteKitError: Not found: /src/lib/utils/bytesToHex.ts at resolve (PROJECT_FOLDER\node_modules@sveltejs\kit\src\runtime\server\respond.js:530:13) ...

The new filename is "uuid.ts".

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

79146310

Date: 2024-10-31 21:00:50
Score: 2.5
Natty:
Report link

This is causing error in the following:

If word.Text = word.Next.Words(1).Text Then

Run-time error 91:

Object variable or With block variable not set

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

79146309

Date: 2024-10-31 21:00:50
Score: 1.5
Natty:
Report link

As of now, Route 53 have only a public API and VPC endpoint is not supported. You will need to add a NAT Gateway that you can restrict to access only to the route 53 API. References:

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

79146306

Date: 2024-10-31 20:59:49
Score: 2.5
Natty:
Report link

The above answers work when I am installing the Bootstrapper. However, whenever I try to uninstall, the UI is in English. What could I be doing wrong? All the strings defined by RtfTheme.wxl in the source code are defined in my localization files with their translations. In fact if I try to run the bootstrapper from the .exe the strings are correctly translated.

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: bsbllshrtstp

79146294

Date: 2024-10-31 20:55:48
Score: 1
Natty:
Report link

You can place a button like <button onclick="window.history.back(); return false;">Go back</button> inside the 404 page you intend to display whenever such an error occurs while you are logged in and that will take you back to the previous correct page before the 404 error occurred and all the variables will still be present.

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

79146267

Date: 2024-10-31 20:45:46
Score: 1.5
Natty:
Report link

Or:

Make/O wave0 = {1, 3, 8, 9, 12, 18}
Differentiate/METH=1/EP=1 wave0/D=wave1
print wave1
  wave1[0]= {2,5,1,3,6}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jim P.

79146251

Date: 2024-10-31 20:38:45
Score: 0.5
Natty:
Report link

taller's answer was effective in solving my problem but I needed to make a few minor adjustments. Here is the final working version of the code for anyone interested.

function main(workbook: ExcelScript.Workbook) {
let tbPO = workbook.getTable("Portland");
let sheet = workbook.getWorksheet("Portland Customers");
let sheet2 = workbook.getWorksheet("Portland Archive");
if (tbPO) {
const tabFilter = tbPO.getAutoFilter();
tabFilter.clearCriteria();
const dataRange = tbPO.getRangeBetweenHeaderAndTotal()
tabFilter.apply(dataRange,
    0, {
    filterOn: ExcelScript.FilterOn.values,
        values: ["Cancelled", "Order Bombed/Job Jacket Sent", "Voided"]
}); const visRng = dataRange.getSpecialCells(ExcelScript.SpecialCellType.visible);
if (visRng) {
    const desDataRange: ExcelScript.Range = sheet2.getUsedRange(true);
    const destCell: ExcelScript.Range = sheet2.getCell(desDataRange.getRowCount()+1, 0);
    destCell.copyFrom(visRng);
    // remove filtered rows from PO
    const visAreas = visRng.getAreas().reverse();
    let visRngRefs: string[] = visAreas.map(x => x.getAddress());
    // remove rows
    visRngRefs.forEach(x => {
        sheet.getRange(x).getEntireRow().delete(ExcelScript.DeleteShiftDirection.up);
    })
}
tbPO.getAutoFilter().clearCriteria(); }}
Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Kat Brown

79146247

Date: 2024-10-31 20:35:44
Score: 2.5
Natty:
Report link

You can follow this blog. It integrates JWT for token generation and works as a stateless authentication system. Hope this helps you. Good Luck!

Reasons:
  • Blacklisted phrase (1): this blog
  • Whitelisted phrase (-1): Hope this helps
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: fahim irfan

79146241

Date: 2024-10-31 20:30:43
Score: 8
Natty: 7
Report link

I finally found a solution, really grateful, but because my WordPress is in two languages, the other language shows the same thing. Is there a solution for this?

Reasons:
  • Blacklisted phrase (3): Is there a solution
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Candy Liu

79146237

Date: 2024-10-31 20:26:42
Score: 1.5
Natty:
Report link

Fabric doesn't export fabric directly.

Try importing Canvas.

import { Canvas } from "fabric"

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

79146234

Date: 2024-10-31 20:25:42
Score: 3
Natty:
Report link

Finally I get working using markLine, that was the purpose, here the label of markLine get clipped fine when Zoomed in.

here the code: Echart player code exemple here

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

79146227

Date: 2024-10-31 20:21:41
Score: 2
Natty:
Report link

My lazy fix is to just create a new column, making sure the first cell has no text in it to prevent all cells being cloned to this type. They should all be General rows. Copy the formula from the first cell and adjust any relative cell references to the new column; or just right click Paste Special Value -->Values Only. Copy the changed formula down and the SUM function should then miraculously spring to life

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

79146221

Date: 2024-10-31 20:17:40
Score: 5.5
Natty: 4.5
Report link

@aled - I enabled XA in the database connector configs, but getting the same results

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • User mentioned (1): @aled
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: ddog0823

79146220

Date: 2024-10-31 20:17:40
Score: 0.5
Natty:
Report link

Per the documentation, aws configure get "only looks at values in the AWS configuration file". The actual scope appears to be anything stored in the ~/.aws folder. E.g., with the SSO I use, the expiration is stored inside ~/.aws/credentials file as aws_expiration, per profile. So I can either parse the file or use aws configure get aws_expiration to retrieve the value

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

79146219

Date: 2024-10-31 20:17:40
Score: 1
Natty:
Report link

If you are using Next.js 14 and under you will get:

"WEBPACK_IMPORTED_MODULE_3_.functionName) is not a function".

On Next.js 15, it says

"[ Server ] Error: Attempted to call functionName() from the server but functionName is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component."

In conclusion, you need to create a client component and call the function there, then return the client component.

Sorry if this seems out of place or poorly worded. I am very frustrated it took this long for me to fix and needed to get this out.

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

79146217

Date: 2024-10-31 20:14:39
Score: 2.5
Natty:
Report link

You could import and use the dark mode on the 'home page' and then render it and change the route in base to the page opened (so you don't have to apply the dark mode to every page and may have some bugs or more lines to check)

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

79146199

Date: 2024-10-31 20:08:37
Score: 2.5
Natty:
Report link

I've been having the same problem using the Python API, and I suspect it doesn't expose this functionality. So here's my plan for testing this via curl or similar:

The GitLab API Docs page on Emoji Reactions has a section §Add reactions to comments that discusses emoji reactions to comments (aka notes). Below is a summary of that §.

It says that the form is supposed to be:

GET /projects/:id/issues/:issue_iid/notes/:note_id/award_emoji
                  ^^^^^^^^^^^^^^^^^

Substitute merge_requests/merge_request_iid or snippets/:snippet_id as appropriate.

So,

curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/1/issues/80/notes/1/award_emoji"

will return a json list of the emoji, and appending /:award_id would retrieve a single one. For example:

curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/1/issues/80/notes/1/award_emoji/2"

would return

{
  "id": 2,
  "name": "mood_bubble_lightning",
  "user": {
    "name": "User 4",
    "username": "user4",
    "id": 26,
    "state": "active",
    "avatar_url": "http://www.gravatar.com/avatar/7e65550957227bd38fe2d7fbc6fd2f7b?s=80&d=identicon",
    "web_url": "http://gitlab.example.com/user4"
  },
  "created_at": "2016-06-15T10:09:34.197Z",
  "updated_at": "2016-06-15T10:09:34.197Z",
  "awardable_id": 1,
  "awardable_type": "Note"
}
Reasons:
  • Blacklisted phrase (1): to comment
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): having the same problem
  • Low reputation (0.5):
Posted by: ctwardy

79146195

Date: 2024-10-31 20:07:37
Score: 3
Natty:
Report link

Este error ocurre porque PyAudio no tiene actualmente una wheel precompilada para Python 3.13, ya que es una versión muy reciente y PyAudio no se ha actualizado para soportarla.

Intenta instalar el paquete wheel primero: pip install wheel

Reasons:
  • Blacklisted phrase (1): porque
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Christian Peña Granillo

79146176

Date: 2024-10-31 20:02:36
Score: 1
Natty:
Report link

Remove the below line from your code. It is creating one extra blank Figure.

plt.figure(figsize=(10, 6))
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: fahim irfan

79146173

Date: 2024-10-31 20:01:35
Score: 3
Natty:
Report link

As Selvin has pointed out, I was starting a new thread for MessageLoop. Calling MessageLoop in ExecuteAsync solved the problem. Thank you Selvin.

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

79146169

Date: 2024-10-31 20:00:35
Score: 3.5
Natty:
Report link

mine is due to database tool plugin is overriding it. disable it solved the problem

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

79146165

Date: 2024-10-31 19:59:35
Score: 2.5
Natty:
Report link

With @Cisco's comment I started to dig more into the lifecycle of Gradle. After digging in a bit, I found afterEvaluate - Adds a closure to call immediately after this project is evaluated. This is too late in the lifecycle to modify the executing tasks.

What I wanted to do was conditionally execute a tasks provided by a plugin after the 'build' task had completed. In case anyone else is interested, here is the process.

Step 1: Update the task I want to conditionally run to be conditional.

tasks.getByName("artifactoryPublish").onlyIf {
    properties["isPublishingEnabled"].toString().toBooleanStrict()
}

This will check the isPublishingEnabled property, and run the artifactoryPublish task only if the property is true.

Step 2: Attach it to the build.

tasks.getByName("build").finalizedBy("artifactoryPublish")

This directs tells gradle to run artifactoryPublish once build completes.

I had inherited the afterEvaluate block, and I have no idea why it was included. So, if anyone can explain how it could assist in this scenario, I would appreciate it.

Reasons:
  • Blacklisted phrase (1.5): would appreciate
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Cisco's
  • Self-answer (0.5):
Posted by: eimmer

79146164

Date: 2024-10-31 19:59:35
Score: 2
Natty:
Report link

Well, this was silly. I didn't realize it at first, but there was actually a header property in the posted object which it wanted defined and accepts a localizedString. Seems to be similar to the title so I just set it to what the title has for now and it works.

Now I have another issue! With an active pass returned and its id, I can generate a wallet pass url to add to wallet: https://pay.google.com/gp/v/save/{pass.Id}

However, this page only says "Something went wrong. Please try again."

Closest thing I could find is that my email account doing the testing in demo mode needs to be either added as an admin user to the pay & wallet account and/or a test user under the wallet api. I have added it to both with no luck.

Reasons:
  • Blacklisted phrase (1): no luck
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Matthew

79146159

Date: 2024-10-31 19:55:34
Score: 1
Natty:
Report link

Seems the information you provided files are being copied to PUBLISH_DIRECTORY which is pointing to "d:\a\1\a but you need to make sure that files are properly zipped and deployed to "~\wwwroot" directory

  • Script: | cd $(PUBLISH_DIRECTORY) zip -r ../publish.zip DisplayName: "Zip create from published Directory"

Update the deployment task

'$(Build.ArtifactStagingDirectory)/publish.zip'

Ensuring your build outputs are zipped and copied correctly will hopefully solve your 404 issues. If Still exists then please check the logs again. Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: ISK

79146148

Date: 2024-10-31 19:50:30
Score: 12 🚩
Natty: 6
Report link

did you resolve the problem? I have the same problema. In the example added by Sayali, he only check with a file from personal drive but not with a sharepoint drive.

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • RegEx Blacklisted phrase (3): did you resolve the problem
  • RegEx Blacklisted phrase (1.5): resolve the problem?
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): did you
  • Low reputation (1):
Posted by: Hozcar Andrés López Ramírez

79146144

Date: 2024-10-31 19:47:28
Score: 2
Natty:
Report link

In SSMS, the diagramming tool does not allow more than 2 bends directly in relationship lines.

If you want, you can try other tools, such as MySQL Workbench, dbdiagram.io, DBeaver, etc., for advanced diagram customization.

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

79146142

Date: 2024-10-31 19:45:28
Score: 2
Natty:
Report link

Turns out VisualStudio was bugging out and didn't show me the Install System.Drawing.Common until restart :(

Was able to solve this with:

Bitmap bitmap = new Bitmap(front);
bitmap.MakeTransparent(Color.Black);
bitmap.Save(front);
BitmapImage bi = new BitmapImage();
bi.CreateOptions = BitmapCreateOptions.IgnoreImageCache;
bi.UriSource = new Uri(front);
this.Front.Source = bi;
Reasons:
  • Blacklisted phrase (1): :(
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Queen Mochi

79146141

Date: 2024-10-31 19:45:28
Score: 0.5
Natty:
Report link

If you want to keep the line:

id = models.BigAutoField(primary_key=True)

You should had auto_created = True :

id = models.BigAutoField(primary_key=True, auto_created = True)

Else it is null as you get in your error message.

But you needn't really this line. Django do it by itself.

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

79146136

Date: 2024-10-31 19:42:27
Score: 1
Natty:
Report link

DualShock 4 uses different report formats over USB and Bluetooth. USB output report 0x05 is the closest match to Bluetooth output report 0x11 but there are a few differences. Check out dualshock4_output_report_usb and dualshock4_output_report_bt in hid-playstation.c to see how the reports differ.

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

79146125

Date: 2024-10-31 19:37:26
Score: 0.5
Natty:
Report link

It's because you're no longer using const constructors. Flutter has an optimization where it will short-circuit rebuilding subtrees if a widget is identical (not equal) between rebuilds. You can see the same thing happens if you just remove const without adding keys: the new Widget instances are not identical, so Flutter uses the keys to link the existing State instances with the new Widget instances, calls didUpdateWidget on each State, then rebuilds the tree.

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

79146111

Date: 2024-10-31 19:29:24
Score: 2
Natty:
Report link

Try to create virtual environment with venv in python. And then upgrade/downgrade dependencies. Make sure to use venv, it can be automated with pyCHarm

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

79146106

Date: 2024-10-31 19:27:24
Score: 1
Natty:
Report link

No, Excel formulas can't make text bold or change the format of text. Formulas only handle the content, not how it looks.

However, here are some ways to work around this:

Manual Formatting: After you've entered your text, you can select the cell and use Excel’s formatting tools to make it bold. This won't work for parts of a formula, though.

Conditional Formatting: If you want to highlight text based on conditions, use Conditional Formatting to make cells look bold when certain rules are met.

Using Online Tools: If you want bold text for pasting elsewhere, check out this Bold Text Generator to create styled text you can copy and use in documents or websites.

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

79146103

Date: 2024-10-31 19:27:24
Score: 1.5
Natty:
Report link

Broad Filtering: Improper timestamp filtering does not restrict the search to the partitions.

Plan of Execution: A poorly structured query is probably the reason for the redundant partition scans.

Indexing Problems: If you don't index the timestamp in the right manner, you can slow down the process of data retrieval and can become a bottleneck.

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

79146098

Date: 2024-10-31 19:25:23
Score: 4.5
Natty: 5
Report link

This is simple there is no need to use JS or libraries just refer this post: https://www.developerthink.com/blogs/how-to-create-a-colorized-spotlight-effect-on-image

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Dev Yadav

79146094

Date: 2024-10-31 19:23:23
Score: 0.5
Natty:
Report link

2024:

if you're updating from version 5 to 6 then you should change the middleware namespace according to the docs

from : \Spatie\Permission\Middlewares\ to \Spatie\Permission\Middleware\

the difference is the plural s being removed from Middlewares

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

79146091

Date: 2024-10-31 19:23:23
Score: 0.5
Natty:
Report link

The right way to generate rows with redshift is to use WITH RECURSIVE CTEs, like that:

with recursive t(n) as (
  select 0::integer
  union all
  select n+1 from t where n <= 100
)
select n*2 as two_times_n from t;

You can join t with whatever real table you want.

See https://docs.aws.amazon.com/redshift/latest/dg/r_WITH_clause.html

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

79146080

Date: 2024-10-31 19:20:22
Score: 1
Natty:
Report link

just paste this line in the web.config inside the <system.serviceModel> tag

<serviceHostingEnvironment aspNetCompatibilityEnabled="true" />

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

79146077

Date: 2024-10-31 19:19:21
Score: 1
Natty:
Report link

Try importing tkinter like this:

import tkinter as tk

In Python 3.x, the tkinter module's name starts with a lowercase letter, unlike in Python 2.x.

Also, avoid using wildcard imports, as they can make code less readable and prone to conflicts. Instead, just import tkinter as tk and use the tk prefix.

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

79146070

Date: 2024-10-31 19:16:21
Score: 1
Natty:
Report link

I did 0.0.0 when I first started developing, then at the Main Release Im doing 1.0.0 the last Zero is for Bug Fixes, Mini Updates, and Quality of Life Fixes The Middle is for Big Updates, Cross Overs The First is for just the Game's like Main Release Version and Increases after the 99th Middle Number while the Middle Zero increases after the 10th Last Number or With Every New Update The 10th Last Number increases with Every Bug Fix and Mini Update So basically Im using a System that supports itself and each Number while the Middle & Last are entirely Dependent on themselves and The First is dependant on the Middle

The Last Number basically builds off of the Middle Number with Bug Fixes and Stuff

After the Middle Number increases the Last Number turns 0 and the only times the last is allowed to go after 10 is if the Middle Number is not going to increases or in this Case the Update is not ready for Launch

The First Number doesn't signify much but only the Fact that the Game is officially Released while the Middle and Last Signify Bug Fixes and Updates

But that's just the System I use

Use whatever ya Like

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

79146066

Date: 2024-10-31 19:15:20
Score: 11.5
Natty: 8
Report link

same issue, did you fixed it??

Reasons:
  • RegEx Blacklisted phrase (3): did you fixed it
  • RegEx Blacklisted phrase (1.5): fixed it??
  • RegEx Blacklisted phrase (1): same issue
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sebastian

79146057

Date: 2024-10-31 19:14:19
Score: 4.5
Natty:
Report link

Read about big - omega notation. https://www.geeksforgeeks.org/analysis-of-algorithms-big-omega-notation/

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

79146050

Date: 2024-10-31 19:12:18
Score: 0.5
Natty:
Report link

@lizuki Here are some basic screen commands from the tldr help page:

  - Show open screen sessions:
    screen -ls

  - Start a new named screen session:
    screen -S session_name

  - Reattach to an open screen:
    screen -r session_name

  - Detach from inside a screen:
    <Ctrl> + A, D

  - Kill the current screen session:
    <Ctrl> + A, K

Useful: Send text to a screen even if detached (except in version 5.0.0, it returns a buffer overflow instead):

screen -S <session_name> -X stuff <text>

For example, send "ls -l" to screen s1:

screen -S s1 -X stuff "ls -l\n"

Here \n adds a newline at the end, effectively pressing enter after a command.

While we're here, I might as well do the same for tmux. Again, some basic tmux commands from its tldr page:

  - Start a new session:
    tmux

  - Start a new named session:
    tmux new -s name

  - List existing sessions:
    tmux ls

  - Attach to the most recently used session:
    tmux attach

  - Detach from the current session (inside a tmux session):
    <Ctrl>-B d

  - Create a new window (inside a tmux session):
    <Ctrl>-B c

  - Switch between sessions and windows (inside a tmux session):
    <Ctrl>-B w

Some more cool commands:

  - Attach a specific session:
    tmux attach -t <session_name>

  - Split the session vertically:
    <Ctrl>-B %

  - Split the session horizontally:
    <Ctrl>-B "

  - Send text to a session, even if detached:
    tmux send -t <session_name> <text>

  - Send command to a session, even if detached:
    tmux send -t <session_name> <command> ENTER
    tmux send -t s1 "ls -l" ENTER

Finally, tmux will automatically complete partial commands. For example, instead of using

tmux attach-session -t <session_name>

You can shorten it like so:

tmux attach -t <session_name>

tmux a -t <session_name>

Of course, there is a lot more information on both of their manpages.

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

79146047

Date: 2024-10-31 19:11:18
Score: 3
Natty:
Report link

Was an IO mismatch. Gpio 6 caused it to reboot. Just realized it when I woke up this morning

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

79146041

Date: 2024-10-31 19:09:17
Score: 4
Natty:
Report link

I'm open to every solution as long as I can do this even if I change the library.

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

79146016

Date: 2024-10-31 19:00:15
Score: 2
Natty:
Report link

IS NULL on an individual field is working for me, however, when I try to exclude rows with a value in both field A and field B, it is not working.

I've tried: (A IS NULL or B IS NULL)

and: NOT (A IS NOT NULL and B IS NOT NULL)

I am still getting records with a value in both.

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

79146015

Date: 2024-10-31 19:00:15
Score: 2.5
Natty:
Report link

It is possible. Use the procedure as a view from the database timeAtt.fdb

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: ZPKSoft Paweł Krzyżanowski

79146013

Date: 2024-10-31 18:59:15
Score: 1
Natty:
Report link

Posting this solution as it may be helpful for those who have upgraded to .NET 8.

I added "FUNCTIONS_INPROC_NET8_ENABLED": 1 in my local settings to avoid the error.

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

79146012

Date: 2024-10-31 18:59:15
Score: 1
Natty:
Report link

Posting this solution as it may be helpful for those who have upgraded to .NET 8.

I added "FUNCTIONS_INPROC_NET8_ENABLED": 1 in my local settings to avoid the error.

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

79146006

Date: 2024-10-31 18:57:14
Score: 1
Natty:
Report link

Posting this solution as it may be helpful for those who have upgraded to .NET 8.

I added "FUNCTIONS_INPROC_NET8_ENABLED": 1 in my local settings to avoid the error.

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

79145988

Date: 2024-10-31 18:53:13
Score: 0.5
Natty:
Report link

It seems that I need to write property.two=$myResolver{property.one}tree to resolve the nested property.

The prefix is important.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: Harold L. Brown

79145984

Date: 2024-10-31 18:51:12
Score: 2
Natty:
Report link

Try clonedObject.setCoords() after copying

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • Single line (0.5):
Posted by: Vadim

79145983

Date: 2024-10-31 18:51:12
Score: 0.5
Natty:
Report link

HTMLElement is the type of the dom element. You are using that type for a parameter of a callback for an event coming from the dom element. Those aren't the same thing.

Try:

const handleOnClick = useCallback((ev: React.MouseEvent<HTMLElement>) => {
  console.log(ev.currentTarget);
}, []);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): is the
Posted by: Abraham Labkovsky

79145973

Date: 2024-10-31 18:50:11
Score: 3
Natty:
Report link

In my case I reopen the firewall rule for MyAsus and everything works fine again. Hope anyone facing this issue double check this.

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

79145963

Date: 2024-10-31 18:46:10
Score: 0.5
Natty:
Report link

Understanding Vercel's Limitations for Hosting Vue and Express Applications

If you're trying to deploy both a Vue.js frontend and an Express backend on Vercel and encountering a 404 error, it's important to know that Vercel is primarily designed for static sites and serverless functions. Here are some key points to consider:

No Server-Side Rendering (SSR): Vercel is not optimized for traditional server-side rendering. While it supports serverless functions, it doesn't provide a persistent Node.js instance required for running a full Express application.

Hosting Limitations: If your Express app relies on server-side rendering or requires a long-lived Node.js server, Vercel may not be the right choice. Instead, consider platforms that are specifically designed for hosting full Node.js applications, such as Heroku, DigitalOcean, or AWS.

Recommended Solutions: If you need to deploy both a Vue.js frontend and an Express backend together, look into using services like Heroku, which can host your entire Node.js server and handle the routing effectively. This approach allows for a more seamless integration between your frontend and backend, enabling features like API calls and dynamic content generation.

In summary, while Vercel excels at deploying static sites and serverless functions, if you need a full Express application, you might want to explore alternatives that provide a dedicated Node.js environment.

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

79145956

Date: 2024-10-31 18:43:09
Score: 3
Natty:
Report link

The problem for me was in the version used to compile the proto files. I changed fixed the grpcio-tools==1.64.1 and recompiled the proto files.

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

79145955

Date: 2024-10-31 18:43:09
Score: 1
Natty:
Report link

Add manual watcher in project package.json

"scripts": { "watch": "nodemon app.js" // Replace app.js with your main file }

Then run

npm run watch

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

79145945

Date: 2024-10-31 18:39:07
Score: 0.5
Natty:
Report link

I had else instead of fi at the end of if statement.

if [ -z $SOMEVAR ]; then
    echo "hello, some var is set"
else  # <--- here I should have had `fi`


# if ... do some other stuff
# other stuff
# exit
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Kacper

79145936

Date: 2024-10-31 18:37:07
Score: 3
Natty:
Report link

Are you able to declare the transloco configuration object as a constant rather than declaring in-line when TranslocoTestingModule.forRoot() is invoked and await the promises before the tests are executed?

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

79145934

Date: 2024-10-31 18:37:07
Score: 1.5
Natty:
Report link

Just go inside your iOS folder and write this command

pod install
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: iamJohnvesly

79145926

Date: 2024-10-31 18:34:06
Score: 1.5
Natty:
Report link

Here a few tips that can help you to fix your problem:

  1. You need to make sure that the OS is compatible with the Python version. For example, if you're using Windows 7, then Python 3.12 is not compatible with the OS version.
  2. Second, check for errors that VSCode is giving you.
  3. Make sure you installed the Python Extension, as told in the Quick Start Guide for Python in VS Code.
  4. Make sure you inserted a Python Interpeter in the IDE.
Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Sithila Somaratne

79145924

Date: 2024-10-31 18:34:06
Score: 2.5
Natty:
Report link

Is it safe and defined behaviour to cast a pointer to another level of indirection?

No

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Is it
  • High reputation (-2):
Posted by: 4386427

79145922

Date: 2024-10-31 18:32:05
Score: 1
Natty:
Report link

This work for me :

class ParametersGeneral:
    def __init__(self, section_name, enable_adjacent_channel=False, enable_cochannel=False, num_snapshots=10000, imt_link='DOWNLINK', system='RAS', seed=101, overwrite_output=True, is_space_to_earth=False, output_dir='output', output_dir_prefix='output'):
        self.section_name = section_name
        self.enable_adjacent_channel = enable_adjacent_channel
        self.enable_cochannel = enable_cochannel
        self.num_snapshots = num_snapshots
        self.imt_link = imt_link
        self.system = system
        self.seed = seed
        self.overwrite_output = overwrite_output
        self.output_dir = 'output'
        self.output_dir_prefix = 'output' 
        self.is_space_to_earth = is_space_to_earth
        self.output_dir = output_dir
        self.output_dir_prefix=output_dir_prefix

for attr in attr_list:
    try:
        attr_val = getattr(self, attr)
        config_value = config[self.section_name][attr]
        
        print(f"Setting attribute '{attr}' with value from config: {config_value} (type: {type(config_value)})")

        if isinstance(attr_val, str):
            setattr(self, attr, config_value)
        elif isinstance(attr_val, bool):
            setattr(self, attr, bool(config_value))
        elif isinstance(attr_val, float):
            setattr(self, attr, float(config_value))
        elif isinstance(attr_val, int):
            setattr(self, attr, int(config_value))
        elif isinstance(attr_val, tuple):
            try:
                param_val = config_value
                tmp_val = list(map(float, param_val.split(","))) 
                setattr(self, attr, tuple(tmp_val))
            except ValueError:
                print(f"ParametersBase: could not convert string to tuple \"{self.section_name}.{attr}\"")
                exit()

    except KeyError:
        print(f"ParametersBase: NOTICE! Configuration parameter \"{self.section_name}.{attr}\" is not set in configuration file. Using default value {attr_val}")
    except Exception as e:
        print(f"Um erro desconhecido foi encontrado: {e}")
Reasons:
  • RegEx Blacklisted phrase (2): encontrado
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ahmed

79145915

Date: 2024-10-31 18:29:04
Score: 3
Natty:
Report link

Two ways:

  1. There are community-created themes available, such as SwaggerDark by Amoenus
  2. Directly, follow the tutorial of this site
Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Yes

79145901

Date: 2024-10-31 18:24:03
Score: 2.5
Natty:
Report link

you have to enable the nd_pdo_mysql instead of pdo_mysql (in Cpanel Select PHP version)

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

79145895

Date: 2024-10-31 18:24:03
Score: 2.5
Natty:
Report link

It seems like I was missed creating the custom DB on endpoint-2 and then running CREATE SERVER, CREATE USER MAPPING etc. I was running these commands on the postgres DB and thus the failure.

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

79145892

Date: 2024-10-31 18:23:03
Score: 3
Natty:
Report link

If you want something lighter and more customizable, material_charts could be a good fit as well. It’s user-friendly and provides a lot of flexibility for handling large datasets.

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

79145880

Date: 2024-10-31 18:18:01
Score: 2
Natty:
Report link

Your Static IP (.111) is within "DHCP Range" (.100-.200), so I assume you might have an IP conflict there.

Try to use the .93 IP as Static and ensure there's no other static entry with .93

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

79145878

Date: 2024-10-31 18:17:01
Score: 1.5
Natty:
Report link

This is how I would test it. Scroll to the end of the page. Check if the scroll height matches the scroll position combined with the viewport height. If they match it's the end of the page. If it does not match it could be some CSS issues like overflowing content. Here is my code please let me know if it helps you:

const { test, expect } = require('@playwright/test');

test('Check if the page can scroll to the end', async ({ page }) => {
    await page.goto('https://yourwebsite.com'); // Visit your website
    await page.evaluate(() => window.scrollTo(0, document.body.scrollHeight)); // scroll to bottom
    await page.waitForTimeout(500);   // Wait for any lazy-loaded content to load 
    // if not lazy loaded content you can remove above line

    // Calculate if user scrolled to end of page
    const isAtEndOfPage = await page.evaluate(() => {
        const scrollableHeight = document.documentElement.scrollHeight;
        const currentScrollPosition = window.innerHeight + window.scrollY;
        return currentScrollPosition >= scrollableHeight;
    });

    // Check if the page scrolls to the end
    expect(isAtEndOfPage).toBe(true);
});
Reasons:
  • RegEx Blacklisted phrase (2.5): please let me know
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: dram95

79145873

Date: 2024-10-31 18:13:00
Score: 3
Natty:
Report link

After reading the prompt care fully I just open the: Flutter > Release.xconfig After

enter image description here

Before , add another include that they mention in prompt

enter image description here

, Close the Xcode, Run pod deintegrate and pod install , the error gone

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: muhammad tayyab

79145857

Date: 2024-10-31 18:04:56
Score: 8.5 🚩
Natty: 5.5
Report link

I've had the same problem. Have you been able to solve it?

Reasons:
  • Blacklisted phrase (1.5): Have you been able to
  • RegEx Blacklisted phrase (1.5): solve it?
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: mehmet kar

79145855

Date: 2024-10-31 18:03:56
Score: 3.5
Natty:
Report link

I believe the issue occurs because exdate needs to be an array of date strings without the additional quotes you put around them. Var e has double quotes around the variable and single quotes around each date. Is it possible for you to create variable like this: var e = ['2024-11-05T13:30:00', '2024-11-07T13:30:00']; ?

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

79145852

Date: 2024-10-31 18:03:56
Score: 1.5
Natty:
Report link

You can use this extension:https://marketplace.visualstudio.com/items?itemName=PabloLeon.PostgreSqlGrammar&ssr=false#overview

With .psql extension it highlights everything ok. No syntax checks though

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

79145851

Date: 2024-10-31 18:03:56
Score: 1.5
Natty:
Report link

javascript:(function () { var script = document.createElement('script'); script.src="//cdn.jsdelivr.net/npm/eruda"; document.body.appendChild(script); script.onload = function () { eruda.init() } })();

maybe this'll work for you. it shows the inspect source value if you don't have it enabled either by any administration by anyone or if your device just doesn't have any inspect source button.... nevermind. it seems that you went mexis classroom as well for the coding...

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

79145836

Date: 2024-10-31 17:59:55
Score: 1
Natty:
Report link

The problem was in the max_age query parameter of the authorization URL provided by our client (the one that a client redirects a user to in order to get an authorization code). The max_age had a value of 0 (e.g. max_age=0) which for some reason caused Entra to issue an authorization code that would provide a token that was seemingly issued 5 minutes in the past and immediately expired in the present. We fixed it by removing the query parameter altogether. This resulted into getting a token with the default 60-90 minutes lifetime. More about the query parameter can be read in the OIDC specification.

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

79145827

Date: 2024-10-31 17:56:54
Score: 3.5
Natty:
Report link

Could you help me in improving performance? It is in C#.

Without code? No. Show some code, and we might stand a chance.

However, XmlSerializer is going to be much better at this than you. Serialization looks simple from the outside, but there are lots of edge cases and pitfalls, and avoiding those while maintaining performance is hard.

But: a model of 200/300 elements should be basically instant; if it is taking 46 seconds, either there is something horribly wrong in your code that I can't speculate about (please show code if you want input here!), or: you're processing a few GiB of data.

Here's a runnable example that caters to your basic model while also supporting the unknown attributes/elements alluded to in the comments:

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Xml;
using System.Xml.Serialization;

var xml = """
    <root>
      <test>
        <testchild>
        </testchild>
        <testchild>
        </testchild>
      </test>
      <test>
        <testchild id="42" name="fred">
        </testchild>
        <testchild>
        </testchild>
      </test>
    </root>
    """;

var serializer = new XmlSerializer(typeof(MyRoot));
var obj = (MyRoot)serializer.Deserialize(XmlReader.Create(new StringReader(xml)))!;
Console.WriteLine(obj.Tests.Sum(x => x.Children.Count));
Console.WriteLine(obj.Tests[1].Children[0].GetAttribute("id"));

[XmlRoot("root")]
public class MyRoot
{
    [XmlElement("test")]
    public List<MyTest> Tests { get; } = new();
}
public class MyTest
{
    [XmlElement("testchild")]
    public List<MyChild> Children { get; } = new();
}

public class MyChild {
    public string? GetAttribute(string name)
        => attributes?.SingleOrDefault(x => x.Name == name)?.Value;
    public string? GetElement(string name)
        => elements?.SingleOrDefault(x => x.Name == name)?.Value;

    private List<XmlElement>? elements;
    private List<XmlAttribute>? attributes;

    [XmlAnyAttribute]
    public List<XmlAttribute> Attributes => attributes ??= new();
    [XmlAnyElement]
    public List<XmlElement> Elements => elements ??= new();
}
Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (2.5): please show code
  • RegEx Blacklisted phrase (3): Could you help me
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • High reputation (-2):
Posted by: Marc Gravell

79145817

Date: 2024-10-31 17:52:54
Score: 1.5
Natty:
Report link

The following paragraph also says (contradictory I think):

will be loaded, as its inherent width (480w) is closest to the slot size

That is in the Learn section, in the Docs section it says:

The user agent selects any of the available sources at its discretion.

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#srcset

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

79145816

Date: 2024-10-31 17:51:53
Score: 3.5
Natty:
Report link

Xudong Peng is right. It was permissions blocking.

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