79352958

Date: 2025-01-13 17:11:37
Score: 2
Natty:
Report link

Currently testing a pit filling solution using focal(). It works on the mock example but it is not consistent when used on a real world DEM;

WIP workflow: Check if cell is on raster edge, if not, it cannot have a lower elevation than its neighbors (pit), elevate it to the minimum of its 8 neighbors + 1 meter.

Question: Can I limit focal to just cells found with pitfinder?

fill_pit <- function(x) {
  pit_x <- as.vector(x)
  pit_center <- pit_x[5]
  
  if(is.na(pit_center)){ # for use with pitfinder
    pit_center <- min(pit_x[-5], na.rm = TRUE) + 1
  }
  
  # edge nodes will have atleast 3 NA neighbors
  if(length(which(is.na(pit_x[-5]))) < 3){
    
    if (pit_center <= min(pit_x[-5], na.rm = TRUE)) {
      pit_center <- min(pit_x[-5], na.rm = TRUE) + 1
    }
  }
  
return(pit_center)
}

set.seed(1)
r <- focal(x = extend(elev_B, y = 1), na.policy = "all", fillvalue = NA,
           w = 3, fun = function(i) fill_pit(x = i)) %>% crop(ext(elev_B))

# Compute flow direction and accumulation
flowdir <- terrain(elev_B, "flowdir")
flowacc_wBug <- flowAccumulation(flowdir)

# Compute flow direction and accumulation
flowdir <- terrain(r, "flowdir")
flowacc_xBug <- flowAccumulation(flowdir)

Pit filler for the 16 at row 5, column 3

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Ivor Mardešić

79352952

Date: 2025-01-13 17:09:36
Score: 3
Natty:
Report link

I wound up decided to use debootstrap and schroot to setup the chroot environment. It did alot of power lifting for me.

followed this tutorial https://wiki.ubuntu.com/DebootstrapChroot

however since this is for ubuntu, i had to make small changes to support debian and arm for it being on a raspberry pi.

Here is the command i used

debootstrap --variant=minbase --arch=arm64 --include="git" bookworm /home/git/ http://deb.debian.org/debian

Reasons:
  • Blacklisted phrase (1): this tutorial
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: FragileQuail

79352946

Date: 2025-01-13 17:07:36
Score: 0.5
Natty:
Report link

Full code

 'Dim bm As Bitmap
    Dim x As Long, y As Long
    Dim kolor As Color
    x = 0
    y = 0

    Dim whitePix As Boolean
         
    
    whitePix= False


    'For x = 0 To sh.Bitmap.Image.Height - 1
     Do While x < sh.Bitmap.Image.Height - 1

        'For y = 0 To sh.Bitmap.Image.Width - 1
        Do While y < sh.Bitmap.Image.Width - 1

            
            Set kolor = sh.Bitmap.Image.Pixel(x, y)
            'kolor = kolor.ConvertToCMYK

            With kolor
                If .Type = cdrColorCMYK Then
                    If kolor.CMYKBlack = 0 And .CMYKCyan = 0 And .CMYKMagenta = 0 And .CMYKYellow = 0 Then
                        whitePix = True
                    End If
                ElseIf .Type = cdrColorRGB Then
                    If .RGBRed > 253 And .RGBGreen > 253 And .RGBBlue > 253 Then
                        whitePix = True
                    End If
                End If

            End With
               

        'Next y
        y = y + 1
        Loop
    'Next x
     x = x + 1
    Loop

sh = shape

SHAPE

Which line throws that error? I

The problem is caused by the line that declares the loop limit. Of course, it depends on the size of the image (larger than 300 x 300 pixels).

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

79352941

Date: 2025-01-13 17:05:35
Score: 2.5
Natty:
Report link

This is my model specially combine CRF and BERT for NER. I think you can modify the definition of named entities and train it for your medical entities.

https://github.com/Louis-udm/NER-BERT-CRF

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

79352940

Date: 2025-01-13 17:05:35
Score: 4
Natty: 4.5
Report link

Here is the running one which run any tampermonkey like extension

https://greasyfork.org/en/scripts/519578-youtube-auto-commenter

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

79352928

Date: 2025-01-13 17:01:33
Score: 0.5
Natty:
Report link

A colleague from work answered the question for me. The answer is clearly PEBKAC... I deleted a module/script which is still being called from the unittests. The module merger.py was deleted.

It was my own PTSD from the last incident that I have to deal with this all over again which prevented me from taking it step-by-step. He showed me how to follow the white rabbit by checking which commit had the first failed unittests. then checked the diffs in the commit where I then screamed "AHHH, I deleted the module which is trying to be imported from"

In hindsight: stress and anxienty are a hinderance when analyzing ones own issues. Little experience and carelessly deleting stuff on the repo without using tools that warn about imports from files you are deleting, are also a bad idea.

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

79352922

Date: 2025-01-13 16:58:32
Score: 0.5
Natty:
Report link

The manual is wrong/misleading. I e-mailed the maintainer and they - correctly - notified me that the class sits right inside the gettext repository, at gettext-runtime/intl-csharp/intl.cs.

Currently it does not seem to be part of any pre-compiled library, but it is small and it works as described, so one may just include it directly and build it as part of the consuming project, similar to e.g. the SQLite Amalgamation or the Boost Header-Only Libraries.

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

79352910

Date: 2025-01-13 16:53:32
Score: 1.5
Natty:
Report link
  1. JPA ( Java Persistence API )
Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @Entity
  • User mentioned (0): @Table
  • Low reputation (0.5):
Posted by: maddy

79352908

Date: 2025-01-13 16:52:30
Score: 8.5 🚩
Natty: 6.5
Report link

Did you solve that issue? If yes, please, let me know your solutions. I got the same error.

Reasons:
  • RegEx Blacklisted phrase (3): Did you solve that
  • RegEx Blacklisted phrase (1.5): solve that issue?
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you solve that is
  • Low reputation (1):
Posted by: Thaw Zin Myo

79352907

Date: 2025-01-13 16:52:30
Score: 1.5
Natty:
Report link

You need to manually add the GoogleService-Info.plist file to the Runner folder in Xcode.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Ayoub Boumzebra

79352877

Date: 2025-01-13 16:44:27
Score: 4
Natty:
Report link

You need to apply this to all controls

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

79352853

Date: 2025-01-13 16:35:24
Score: 5
Natty: 5.5
Report link

How can we actually run your script, i am not a programmer but need to extract columns from multiple ssis packages

Reasons:
  • Blacklisted phrase (1): How can we
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): How can we
  • Low reputation (1):
Posted by: user29180960

79352849

Date: 2025-01-13 16:33:24
Score: 1.5
Natty:
Report link

There is a LOGOUT_URL configuration in superset. You need can add it in your superset_config.py file

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Reda Arté Kejji

79352826

Date: 2025-01-13 16:25:21
Score: 1
Natty:
Report link

You may follow this guide to make the password be remembered for more or less time via the macOS keychain UI. As mentioned in the doc:

GPG Suite preferences pane (old name: GPGPreferences) password section also has the option to set a certain time your password can be cached. Enter any amount of seconds for which you want your password to be remembered. Password queries after that time period will again show pinentry asking for your password.

However, keep in mind that it seems you can't make your GPG password be remembered for a longer period of time than 99999 seconds. If you'd like the password to be requested after an even longer time you may consider removing completely the password if that suits your needs better.

Reasons:
  • Blacklisted phrase (1): this guide
  • Long answer (-0.5):
  • No code block (0.5):
Posted by: Thanasis M

79352820

Date: 2025-01-13 16:24:21
Score: 1.5
Natty:
Report link

We had this problem too in one of our targets in the same project where other targets were building fine. We finally fixed it by adding:

#import <WebKit/WebKit.h>

To our per-compiled header file - ProjectName.pch

( thanks to https://github.com/cedarbdd/cedar/issues/397 for the clue)

It's a mystery why this solved it. We assume it was something to do with the order in which headers were being included for some mysterious reason best beknown to the Swift & Objective C compiler gurus at Apple. Would be good if Apple fixed it....

Reasons:
  • Blacklisted phrase (0.5): thanks
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: goelectric

79352810

Date: 2025-01-13 16:20:20
Score: 0.5
Natty:
Report link

If you don't want to set this manually then write a script to get the maximum value in the column, once you've migrated the data, and update the table definition to set the column to AUTOINCREMENT with the appropriate start value

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

79352804

Date: 2025-01-13 16:17:20
Score: 2.5
Natty:
Report link

Use the stepIconMargin parameter on the Stepper and use EdgeInsets.zero as shown below.

stepIconMargin: EdgeInsets.zero,

Using this will join each connector to the stepper icons

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

79352801

Date: 2025-01-13 16:16:20
Score: 3
Natty:
Report link

For .net 9, fixed above by adding to program.cs builder.Services.AddAutoMapper(typeof(Program)); // Register AutoMapper

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

79352791

Date: 2025-01-13 16:14:19
Score: 0.5
Natty:
Report link

Sadly, you won't be able to do so, as your website will surely not be part of the Allowed origin from the google map website

So it will simply not load.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Raphaël Balet

79352783

Date: 2025-01-13 16:10:18
Score: 1.5
Natty:
Report link

Credit goes to kmuehlbauer https://github.com/pydata/xarray/issues/9946#issuecomment-2587287969 The data in the file is compressed:

This is an excerpt of the h5dump -Hp 2021-04.nc:

DATASET "t2m" {
      DATATYPE  H5T_IEEE_F32LE
      DATASPACE  SIMPLE { ( 30, 411, 791 ) / ( 30, 411, 791 ) }
      STORAGE_LAYOUT {
         CHUNKED ( 15, 206, 396 )
         SIZE 12481395 (3.126:1 COMPRESSION)
      }
      FILTERS {
         PREPROCESSING SHUFFLE
         COMPRESSION DEFLATE { LEVEL 1 }
      }
      ...
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Kernel

79352780

Date: 2025-01-13 16:09:18
Score: 2.5
Natty:
Report link

I was getting the same error, but was not automating things like you. I only tried to register 3 models by the old method. It was my models instances which didn't have models.Model inheritance. I'm going to try you automation anyway

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

79352770

Date: 2025-01-13 16:05:17
Score: 1
Natty:
Report link

WRITE_EXTERNAL_STORAGE is deprecated for Android 11+ (API 30+). If you want to access the storage then use scoped storage, for sepcific use cases you can follow: • For app-specific files: context.getExternalFilesDir(). • For shared media: Use MediaStore. • For file picking: Use Storage Access Framework (SAF) with Intent.ACTION_OPEN_DOCUMENT.

Add runtime permissions for READ_MEDIA_IMAGES, READ_MEDIA_VIDEO, or READ_MEDIA_AUDIO for API 33+.

Avoid android:requestLegacyExternalStorage unless targeting API < 30.

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

79352764

Date: 2025-01-13 16:04:17
Score: 1.5
Natty:
Report link

These two terms are usually used interchangeably. So I would answer it depends on the context you're talking about.

If you think about it, a process is just a program that got loaded into memory and is waiting to be executed.

So I would suggest talking about the other party in your project to get the same ideal.

(This might not involve, but I feel odd that someone used the Oxford dictionary as a reference for a technical term.)

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

79352762

Date: 2025-01-13 16:03:16
Score: 2.5
Natty:
Report link

if someone api not working from above!

i use personally this suggestion api but i use cors before it, so then it working otherwise it will decline the api call!

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

79352750

Date: 2025-01-13 15:57:15
Score: 3
Natty:
Report link

If Sheets("mysheet123").AutoFilterMode Then Sheets("mysheet123").AutoFilterMode = False End If

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

79352749

Date: 2025-01-13 15:57:15
Score: 2.5
Natty:
Report link

Found the error. i was running the app on my web device (beacuse am a web developer and found it more convinent to test there). and for web and mobile both we have the use different lib @teovilla/react-native-web-maps the detailed problem and its answer is here

Map for React Native Web With Expo and Metro

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

79352731

Date: 2025-01-13 15:52:13
Score: 1.5
Natty:
Report link

probably worker with DedicatedWorkerGlobalScope can help

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

79352730

Date: 2025-01-13 15:52:13
Score: 0.5
Natty:
Report link

The proper fix is available start from v5.5.0.

Properties:

xAxis.axisLabel.alignMinLabel
xAxis.axisLabel.alignMaxLabel

Doc:

https://echarts.apache.org/en/option.html#xAxis.axisLabel.alignMinLabel https://echarts.apache.org/en/option.html#xAxis.axisLabel.alignMaxLabel

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

79352713

Date: 2025-01-13 15:44:12
Score: 1.5
Natty:
Report link

Based on the solutions provided by @noamgot and @jpaugh, in PyCharm 2024.2.5, I resolved the issue by unchecking the 'Show plots in tool window' option and adding matplotlib.use('TkAgg') at the beginning of my script, before importing pyplot.

Reasons:
  • Whitelisted phrase (-2): I resolved
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @noamgot
  • User mentioned (0): @jpaugh
  • Single line (0.5):
  • Low reputation (1):
Posted by: Jonah

79352709

Date: 2025-01-13 15:43:11
Score: 2
Natty:
Report link

At the moment Valkey does not support data tiering. There is an open issue in Valkey which suggest to support such functionality but it is not prioritiesed ATM. you can +1 in the issue. I encourage you to look at managed solutions, like AWS Elasticache For Valkey which does support Data Tiering functionality.

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

79352697

Date: 2025-01-13 15:37:10
Score: 1.5
Natty:
Report link

Are you running VMs in VirtualBox or VMWARE workstation on laptop?

First you need to test if both VMs are reachable to each other with Ping command instead of just trying with code. To check destination port is open or not, you can test with old Telnet command like

telnet <destination_ip>

Also, make sure you are putting both VMs in same subnet if running on laptop.O

Basic rule of networking is that, either hosts need to be in same subnet or they can communicate via Layer 3 device.

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: anuj tyagi

79352692

Date: 2025-01-13 15:35:10
Score: 0.5
Natty:
Report link

If the purpose of Rebuilding index is performance then you can first try in these following order on table:

  1. Updating Statistics - Resource cost of updating statistics is minor compared to index reorganize /rebuild, and the operation often completes in minutes. Index rebuilds can take hours.

    UPDATE STATISTICS mySchema.myTable;

  2. Reorganize Indexes - Reorganizing an index is less resource intensive than rebuilding an index. For that reason it should be your preferred index maintenance method, unless there is a specific reason to use index rebuild.

    ALTER INDEX ALL ON mySchema.myTable REORGANIZE;

  3. Rebuild Indexes (offline) - An offline index rebuild usually takes less time than an online rebuild, but it holds object-level locks for the duration of the rebuild operation, blocking queries from accessing the table or view.

    ALTER INDEX ALL ON mySchema.myTable REBUILD;

  4. Rebuild Indexes (online) - An online index rebuild does not require object-level locks until the end of the operation, when a lock must be held for a short duration to complete the rebuild.

    ALTER INDEX ALL ON mySchema.myTable REBUILD WITH (ONLINE = ON, RESUMABLE = ON, MAX_DURATION = 10);

Notes:

Ref:

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

79352691

Date: 2025-01-13 15:35:10
Score: 1
Natty:
Report link
// An example
Employee employee = new Employee { Id = 1, Name = "Jack" };
if ( employee.Id == 1 && employee.Name == "Jack" ) {
    return true;
}

// We can do
if ( employee is {Id: 1 , Name: "Jack" ) {
    return true;
}

// This is available just in version 8,0
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Youness zagouri

79352687

Date: 2025-01-13 15:34:09
Score: 1
Natty:
Report link

Use host as host.docker.internal as prometheus-exporter running as container and in order for it to access something which is running on same machine but not in same container(containerized application).

How host.docker.internal Works Purpose: It resolves to the host machine's IP address, allowing containers to communicate with services running on the host. Availability:

  1. Supported in Docker Desktop for Windows and macOS. In Linux, it may not be available by default, but similar functionality can be achieved by configuring the Docker network or using host networking (--network="host").
Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Himanshu Joshi

79352677

Date: 2025-01-13 15:32:09
Score: 1
Natty:
Report link

Turned out RedirectResponse didn't contain the cookies header, because we set them in response. This is the correct version of the code:

@router.post("/login")
async def login(response: RedirectResponse, credentials: UserLoginSchema = Form()):
    if credentials.email == ADMIN_EMAIL and credentials.password == "123":
        token = auth.create_access_token(uid=credentials.email)
        redirect_response = RedirectResponse(url="/", status_code=status.HTTP_302_FOUND)
        redirect_response.set_cookie(
            key=config.JWT_ACCESS_COOKIE_NAME,
            value=token,
        )
        return redirect_response
    
    raise HTTPException(401, detail={"message": "Invalid credentials"})

Thanks to C3roe's comment for a lead.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Владимир Архипов

79352671

Date: 2025-01-13 15:31:08
Score: 2
Natty:
Report link

For anyone needing a simple evaluation engine, rulepilot is ideal.

regent is another nice project, esp. if you want a straightforward interface for building your rulesets.

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

79352670

Date: 2025-01-13 15:30:08
Score: 0.5
Natty:
Report link

I will suggest you to test such code first on Linux. MacOS might be blocking such requests. I saw similar issue in past. GoPacket will send the SYN, but the OS won't know about it and won't update the TCP state tables accordingly, so according to the OS it's just getting a SYN/ACK from the remote IP without any TCP connection in place, and it'll ignore it.

If you do want to do actual TCP handshakes with GoPacket, you'll need to do them in such a way that the kernel doesn't think it should be handling them at all. One alternative is to use an IP that's not directly associated with your interface, but that routes to it (for example, pick an unused static IP within your layer2 domain).

I found similar discussion here https://github.com/google/gopacket/issues/391

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

79352668

Date: 2025-01-13 15:29:08
Score: 2.5
Natty:
Report link

chart_title() does not exist. Use chart.title

Reference: https://openpyxl.readthedocs.io/en/stable/api/openpyxl.chart.title.html

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

79352664

Date: 2025-01-13 15:28:07
Score: 2.5
Natty:
Report link

Currently Google Docs API does not support retrieving or annotating specific user input or annotations in the document. But you can do this using Google Drive Activity API or Google Drive Revisions API to analyze version history.

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

79352644

Date: 2025-01-13 15:22:05
Score: 1
Natty:
Report link

When updating Node.js to a new version, you might encounter issues with npm or the installed packages. Here are some steps to resolve the problem:

  1. Update npm:

After updating Node.js, you might need to update npm to ensure compatibility with the new version.

Use the following command to update npm:

npm install -g npm

  1. Remove temporary folders:

Sometimes, the issue arises due to temporary files or old conflicts. You can delete the node_modules folder and the package-lock.json file, then reinstall the packages.

rm -rf node_modules package-lock.json npm install

  1. Use nvm (Node Version Manager):

If you use nvm to manage Node.js versions, there might be a conflict between the installed versions. Try switching to the previous Node.js version and see if the issue persists:

nvm use

  1. Check for compatible packages:

Some packages might not be compatible with the new version of Node.js. Try checking the package documentation or look for updates.

  1. Reinstall global packages:

Sometimes, you might need to reinstall globally installed packages:

npm rebuild

  1. Update outdated packages:

Ensure all the packages in your project are up-to-date and compatible with the new Node.js version:

npm outdated npm update

If the problem persists, you can share the error message you're encountering for a deeper analysis.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Starts with a question (0.5): When
  • Low reputation (1):
Posted by: Nino Nassar

79352632

Date: 2025-01-13 15:18:04
Score: 2
Natty:
Report link

It seems like you're asking how to share a question with others for an answer. You can share the link to this conversation or question through email, Twitter, or Facebook by copying the URL from your browser's address bar and pasting it into a message or post. If you're using a platform with built-in share features, simply look for the "Share" button and choose the method you prefer! Let me know if you need further help.

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

79352630

Date: 2025-01-13 15:17:04
Score: 2
Natty:
Report link

Yes correct use -g to install globally to get it work
npm install -g [email protected]

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

79352613

Date: 2025-01-13 15:12:02
Score: 2
Natty:
Report link

Absolutely correct

A Few Additional Tips:

  1. Test in Development First
  2. Instead of storing the password directly in application.yml, you might be using environment variables (like in config/secrets.yml).
  3. Check Gmail SMTP Settings
Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: grootmax

79352612

Date: 2025-01-13 15:11:02
Score: 3.5
Natty:
Report link

Nowadays, cron jobs are not working at the set interval. I tried both node-cron and agenda, but neither is working.

Anyone help me

Reasons:
  • Blacklisted phrase (1): help me
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: John6602

79352610

Date: 2025-01-13 15:11:02
Score: 1.5
Natty:
Report link

I think using fixed-size windows with unbounded sources isn't ideal for this scenario, as you've discovered. The problem is that your secondary source's infrequent updates are lost when they don't fall within a window containing events from the main source. Simple upsampling of the secondary source won't solve this fundamentally, it will just create many redundant copies of the same BigQuery data, increasing processing load without improving accuracy.

You can try using keyed windows based on a common key between your main and secondary sources. This key should be the key identifier relevant to join. Both your Pub/Sub messages from the main and secondary sources need to include this key. If the BigQuery table update affects multiple records, the secondary source message should include all relevant keys. Then

use a global window for the secondary source. This means the secondary source's data will persist until explicitly cleared.

Also, I figured this article might be helpful to you.

Reasons:
  • Blacklisted phrase (1): this article
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: jggp1094

79352608

Date: 2025-01-13 15:10:02
Score: 2.5
Natty:
Report link

I was able to resolve the CREATE CONNECTION with the Microsoft documentation.

https://learn.microsoft.com/en-us/azure/databricks/query-federation/sql-server

The user account you use to test the connection must have read/write permissions in the database. Also add your Databricks instance with read/write permissions.

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

79352603

Date: 2025-01-13 15:08:01
Score: 2
Natty:
Report link

I have recently encouter this error multiple time using Python 3.12 and the answer is in the documentation :

For version of Python 3.12 and later you need to use python -m manage runserver --nothreading Concurrent requests don’t work with the profiling panel.

Source

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

79352601

Date: 2025-01-13 15:08:01
Score: 3
Natty:
Report link

I have now figured out the problem. If you wish to generate PDF's with Latin-2 characters, download a font (.ttf or any other file format supported by ReportLab) which includes Latin-2 characters, as ReportLab doesn't offer any by default.

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

79352590

Date: 2025-01-13 15:06:01
Score: 1
Natty:
Report link

Since, Thanksgiving is always a Thursday AND Black Friday is always a day later, you can identify Thankgiving Day directly (via holidays package) and then just add a day:

from datetime import datetime, timedelta
import holidays

us_holidays = holidays.UnitedStates(years=2020)
black_friday = us_holidays.get_named('Thanksgiving')[0] + timedelta(days=1)

print(black_friday)
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jan von der Marwitz

79352585

Date: 2025-01-13 15:04:00
Score: 0.5
Natty:
Report link
  1. You don't need to set the MemoryStream position to get the byte array. That line can be removed.

  2. Don't use memoryStream.Position = 0. The correct way is:

// set Position at the beginning of the stream
memoryStream.Seek(0, SeekOrigin.Begin);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Alexandre

79352580

Date: 2025-01-13 15:02:00
Score: 3
Natty:
Report link

Hello Umesh kaise ho tum. Randi bawah or chhinar bhi ho tumhare number PE ak OTP gya hoga batao madarchodo.

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

79352576

Date: 2025-01-13 15:01:00
Score: 0.5
Natty:
Report link

The main consequence of setting the purge interval to a high value is that the repartition topics will continue to grow in size, but since you've set the retention.ms config to a lower value than the default (I'm assuming so here) you should be fine.

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

79352575

Date: 2025-01-13 15:01:00
Score: 2.5
Natty:
Report link

This issue can be resolved by specifying multi_level_index = False in the arguments of yfinance.download().

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

79352569

Date: 2025-01-13 14:56:59
Score: 0.5
Natty:
Report link

There is another solution posted in the Github discussion that doesn't require rewriting the loginUser

(Taken from https://github.com/symfony/symfony/discussions/46961#discussioncomment-4573371 )

<?php

namespace App\Tests;

use Symfony\Bundle\FrameworkBundle\KernelBrowser;
use Symfony\Component\BrowserKit\Cookie;
use Symfony\Component\HttpFoundation\Session\Session;
use Symfony\Component\HttpFoundation\Session\Storage\MockFileSessionStorage;
use Symfony\Component\Security\Csrf\TokenGenerator\TokenGeneratorInterface;
use Symfony\Component\Security\Csrf\TokenStorage\SessionTokenStorage;

trait SessionHelper
{
    public function getSession(KernelBrowser $client): Session
    {
        $cookie = $client->getCookieJar()->get('MOCKSESSID');

        // create a new session object
        $container = static::getContainer();
        $session = $container->get('session.factory')->createSession();

        if ($cookie) {
            // get the session id from the session cookie if it exists
            $session->setId($cookie->getValue());
            $session->start();
        } else {
            // or create a new session id and a session cookie
            $session->start();
            $session->save();

            $sessionCookie = new Cookie(
                $session->getName(),
                $session->getId(),
                null,
                null,
                'localhost',
            );
            $client->getCookieJar()->set($sessionCookie);
        }

        return $session;
    }

    public function generateCsrfToken(KernelBrowser $client, string $tokenId): string
    {
        $session = $this->getSession($client);
        $container = static::getContainer();
        $tokenGenerator = $container->get('security.csrf.token_generator');
        $csrfToken = $tokenGenerator->generateToken();
        $session->set(SessionTokenStorage::SESSION_NAMESPACE . "/{$tokenId}", $csrfToken);
        $session->save();
        return $csrfToken;
    }
}

Used like this:

<?php

namespace App\Tests\Controller;

use App\Tests\SessionHelper;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;

class SessionControllerTest extends WebTestCase
{
    use SessionHelper;

    public function testSomething(): void
    {
        $client = static::createClient();

        $client->request('POST', '/something', [
            '_csrf_token' => $this->generateCsrfToken($client, 'expected token id'),
        ]);

        // assert something
    }
}
Reasons:
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: DanB

79352546

Date: 2025-01-13 14:49:57
Score: 2
Natty:
Report link

This is Quickest way to get SHA-1 in Android studio - Follow steps below:

  1. Open Terminal in Android Studio
  2. Run the following command:

./gradlew signingReport

  1. Check the terminal output.

The SHA-1 for both debug and release build types will be displayed, along with other details like SHA-256 and MD5.

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

79352545

Date: 2025-01-13 14:49:57
Score: 2.5
Natty:
Report link

I am running into the same issue, IAM policies that contain ${transfer:UserName} break but if i replace it with the actual username it works. This points to something going wrong with interpolating the ${transfer:UserName} at policy execution time.

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

79352541

Date: 2025-01-13 14:47:57
Score: 2.5
Natty:
Report link

Unfortunately it has been confirmed to not be supported by an AWS support engineer here: https://repost.aws/questions/QUgXvyCDowSvey_vDeuxAsXw/cognito-customize-federated-authentication-request#ANnanO3BZkTKKAMtKFtf53SA

But also says:

Having noted the above, I can confirm that an existing feature request is in place with the Cognito Team, to add support for this feature

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

79352527

Date: 2025-01-13 14:40:55
Score: 0.5
Natty:
Report link

It turned out to be a double-encoding issue, it is \\n in the JSON, but the function I was using turned that into \\\\n :facepalm

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

79352517

Date: 2025-01-13 14:37:53
Score: 4
Natty:
Report link

I got the same issue (on Windows 10)

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

79352513

Date: 2025-01-13 14:35:52
Score: 2
Natty:
Report link

Short answer: Instance Method

Instance methods are ideal if you need to maintain some state, with instance methods, each request has its own instance of the class, avoiding conflicts.

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

79352510

Date: 2025-01-13 14:34:52
Score: 2
Natty:
Report link

The error 1102 is typical for geoblocking. The resource provider has limited the access to that resource.

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

79352507

Date: 2025-01-13 14:33:52
Score: 0.5
Natty:
Report link

I find that if you don't know how to do something using CasC, then the easiest thing to do is usually:

Hope this helps.

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

79352503

Date: 2025-01-13 14:29:51
Score: 0.5
Natty:
Report link

I loaded this into a table.

cksum death.html 
6146110 2556 death.html

mysql>select length(html_content), length(regexp_replace(html_content, '<div> <li style=.*<a href=.*', '' )) as test from html_data where id = 6;
+----------------------+------+
| length(html_content) | test |
+----------------------+------+
|                 2556 | 1876 |
+----------------------+------+
1 row in set (0.00 sec)

#
sed 's/<div> <li style=.*<a href=.*//g' death.html | wc -c
1876
sed 's/<div> <li style=.*<a href=.*//g' death.html > trimmed.html

here's what I got before/after

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

79352491

Date: 2025-01-13 14:26:49
Score: 5.5
Natty: 4.5
Report link

Can anyone found the solution for above problem to receive an info for reschedule and cancelled events through Calendly popup.

Reasons:
  • Blacklisted phrase (2): anyone found
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Can anyone
  • Low reputation (1):
Posted by: Ramandeep Kamboj

79352486

Date: 2025-01-13 14:24:49
Score: 2.5
Natty:
Report link

Try to don't rewrite default config of glsl. Just use in plugin glsl(),.

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

79352482

Date: 2025-01-13 14:23:49
Score: 1
Natty:
Report link

this is the solition I came with:

import { Component, Inject } from '@angular/core';
import { PLATFORM_ID } from '@angular/core'; 
import { isPlatformBrowser } from '@angular/common'; 

@Component({
  selector: 'app-data-binding',
  imports: [],
  templateUrl: './data-binding.component.html',
  styleUrl: './data-binding.component.css'
})
export class DataBindingComponent {

  firstName: string = "Lulu";
  rollNo: number = 121;
  isActive: boolean = true;
  currentDate: Date = new Date();
  myPlaceholder: string = "Enter your name"
  divColor: string = "bg-primary";
  isBrowser: boolean;

  constructor(@Inject(PLATFORM_ID) platformId: Object) { 
    if(this.isBrowser = isPlatformBrowser(platformId)) {
      this.showWelcomeMessage()
    } 
  } 

  showWelcomeMessage() {
      alert('Welcome');
    }
    
}

I can also use the method elsewhere, like in a button <button class="btn btn-success" (click)="showWelcomeMessage()">Show Welcome Text</button>

Thanks for helping me.

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

79352476

Date: 2025-01-13 14:20:48
Score: 2
Natty:
Report link

The final solution has been to declare an environment variable for python path within the Dockerfile:

e.g.: ENV PYTHONPATH "${PYTHONPATH}:/opt/venv/lib/python3.11/site-packages"

After this change, vscode is able to resolve all my project requirements inside the development container.

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

79352472

Date: 2025-01-13 14:19:47
Score: 1.5
Natty:
Report link

I had to remove the finalizer from the ingress - then it was deleted

kubectl patch ingress my-ingress -n my-namespace -p '{"metadata": 
{"finalizers":[]}}' --type=merge
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Rick Phillips

79352429

Date: 2025-01-13 14:06:44
Score: 0.5
Natty:
Report link

You should be able to try/catch the pipeline.

use Illuminate\Support\Facades\Pipeline;

try{

    $data = Pipeline::send($whatever)
        ->through([
            TaskOne::class,
            TaskTwo::class
        ])
        ->thenReturn();

}catch(MyException $e){
    
    // Handle however you want
}

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

79352428

Date: 2025-01-13 14:05:44
Score: 2
Natty:
Report link

Your memory is overloaded. You allocate a large size memory to heap. Try next type for this case:

That readonly ref struct type provide safe memory usage and it allocated in stack. The alternative of that it's Memory. It's readonly struct

In your code i have seen a mistake. Fix it if you copied exact code. The type initialized in using construction would be disposed after it

using MemoryStream memoryStream = new MemoryStream();
{
    currentDocument.Save(memoryStream);
    currentDocument.Close(true);
    
    memoryStream.Position = 0;
    logger.LogDebug("Position {Position} and Length {Length} CanRead {CanRead}",
    memoryStream.Position, memoryStream.Length, memoryStream.CanRead);
    
    byte[] fileData = memoryStream.ToArray();
}

I hope that will help you. Can you give more information and code about it? Remind me if i say wrong

Reasons:
  • Whitelisted phrase (-1): hope that will help
  • RegEx Blacklisted phrase (2.5): Can you give
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: KonTuk

79352423

Date: 2025-01-13 14:04:42
Score: 9 🚩
Natty:
Report link

@liel7200

Can you answer few questions so that I can trace your issue:

1- Are you using Docker? If yes, then share your Dockerfile & docker-compose.yml.

2- Are you using nodemon? If yes, Kindly share your package.json [scripts].

3- What is your machine resource configuration?

Thanks.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): What is your
  • RegEx Blacklisted phrase (2.5): Can you answer
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: shantanu.singh

79352415

Date: 2025-01-13 14:01:42
Score: 0.5
Natty:
Report link

Simply create a JSON file at public/api/notification/message with the following content:

{"notifications":[]}

Apache will serve this file due to the rewrite rule in public/.htaccess

...
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^ - [L]
...
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: kaluzki

79352412

Date: 2025-01-13 14:00:41
Score: 2.5
Natty:
Report link

This error indicates that JAVA is not installed in the machine. I believe pyflink is trying to find the JDK and coudn't find it. Make sure you install the JDK and ensure to set the environment variable. I faced the same issue and I was able to resolve it.

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

79352400

Date: 2025-01-13 13:57:41
Score: 0.5
Natty:
Report link

Another possible option avoids LINQ:

string[] parts = Array.ConvertAll(line.Split(';'), p => p.Trim());
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Dmitry Shashurov

79352377

Date: 2025-01-13 13:48:39
Score: 0.5
Natty:
Report link

A Swift 6 implementation can be found here:

for familyName in UIFont.familyNames {
    print(familyName)
    for fontName in UIFont.fontNames(forFamilyName: familyName) {
        print(fontName)
    }
}

Just add this to a init of any class i.e AppDelegate to print out all of the available fonts.

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

79352373

Date: 2025-01-13 13:47:39
Score: 1
Natty:
Report link

Uninstall @types/tedious as tedious has build in TypeScript types support.

It looks like ColumnValue no longer exists.

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

79352351

Date: 2025-01-13 13:40:36
Score: 5
Natty: 4.5
Report link

in here if you want to change the form just edit the program.cs file and based on the name of that form change the Application.Run(new "your form"());

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

79352345

Date: 2025-01-13 13:39:36
Score: 2.5
Natty:
Report link

Since the model is actually changing between the odd epochs I it is more likely to be a hyperparameter issue than an architecture issue. I would try adjusting the learning rate and batch size and see if that that helps.

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

79352335

Date: 2025-01-13 13:36:35
Score: 2.5
Natty:
Report link

In your pipeline go to EDIT, Edit Stage, Edit Action. In the environment variables you can add your variable configuration.

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

79352334

Date: 2025-01-13 13:35:35
Score: 2.5
Natty:
Report link

I've found the answer in case anyone stumbles across this post and has the same difficulty. You need to put two set contact attributes and run with a User Defined, as shown in the following screenshots.

AWS Connect diagram, Set Contact Attributes Settings, Get Customer Input Settings

Don't hesitate if you have any questions, Elise

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

79352324

Date: 2025-01-13 13:31:33
Score: 5
Natty:
Report link

I have the same issue. All my 98 run configurations ARE saved in .run The run configurationitself is saved in .idea/workspace.xml inside:

From time to time, this list LOOSES its order, and becomes shuffled, I do not see any logic in the reason when this happens, nor in the new order of the components.

Then I looses 10 mns to reorder the list.

I have tried to restore that part of workspace.xml, this mysteriously fails.

NB: all my tests have a well defined name in the xml file: Python.00, Python.01 etc.

Reasons:
  • Blacklisted phrase (1): I have the same issue
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same issue
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Fabien35235

79352322

Date: 2025-01-13 13:31:33
Score: 1
Natty:
Report link

Did you set the attribute Session State > Data Type to "CLOB" ?

enter image description here

I created a form and report on a table with a column of clob datatype and the form works just fine with this setting.

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did you
  • High reputation (-2):
Posted by: Koen Lostrie

79352320

Date: 2025-01-13 13:29:32
Score: 1
Natty:
Report link

select firstname, surname, ((sum(bks.slots)+10)/20)*10 as hours, rank() over (order by ((sum(bks.slots)+10)/20)*10 desc) as rank

from cd.bookings bks
inner join cd.members mems
    on bks.memid = mems.memid
group by mems.memid

order by rank, surname, firstname

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

79352317

Date: 2025-01-13 13:28:32
Score: 0.5
Natty:
Report link

What do we know about the types of Z.add, Z.equal, Z.one, Z.minus_one and Z.of_int?

You need that information if you want to conclude that n, n_1, n_2 and acc all have type Z.t. Presumably, the software which gives you the type hint 'a -> 'b -> 'b -> 'c -> 'c does not have access to that information.

Without knowing the types of functions Z.add and Z.equal, we can conclude that acc and the return value have the same type, because of the then acc branch, and we can conclude that n_1 and n_2 have the same type, because n_2 in place of n_1 in the recursive call. This explains the type 'a -> 'b -> 'b -> 'c -> 'c.

Reasons:
  • RegEx Blacklisted phrase (2.5): do we know a
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): What do we
  • High reputation (-2):
Posted by: Stef

79352308

Date: 2025-01-13 13:24:31
Score: 1
Natty:
Report link

After reading the comments, I have successfully solved the problem. Now, I will organize the solution to this issue in the hope that it can help others.

The reason is the setBorderCollapse function. By setting its parameter to false, the table borders will be displayed.

According to the official documentation, this function is used to set the border collapse mode of the table. It determines how the table borders and cell borders are rendered and affects the display of the table. It is worth noting that this function prioritizes the cell border style (set using QTextTableCellFormat). Therefore, if the cells have individual border style settings, the cell borders will override the table borders. So, if we set it to true, we need to set the cell border style. The following code provides an example:

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    // get the cursor position
    QTextCursor cursor = ui->textEdit->textCursor();
    QTextTableFormat tableFormat;
    tableFormat.setBorderCollapse(true);
    //insert the table
    QTextTable *table = cursor.insertTable(3, 3, tableFormat);
    //set the border style of a cell
    for (int row = 0; row < 3; ++row) {
        for (int col = 0; col < 3; ++col) {
            QTextTableCell cell = table->cellAt(row, col);
            QTextTableCellFormat cellFormat;
            cellFormat.setBorder(1);                     // Cell border width
            cellFormat.setBorderBrush(Qt::blue);         // Cell border widthcolor
            cellFormat.setBorderStyle(QTextFrameFormat::BorderStyle_Solid); // Cell border style
            cell.setFormat(cellFormat);
        }
    }
}

Once again, I would like to express my gratitude to everyone, especially to @musicamante.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @musicamante
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: 吃花椒的喵酱

79352303

Date: 2025-01-13 13:22:30
Score: 4
Natty: 5
Report link

I wanted the same thing using Prettier, in the end I've solved it using ESLint stylistic package: https://eslint.style/rules/js/padding-line-between-statements#examples

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

79352297

Date: 2025-01-13 13:20:29
Score: 1.5
Natty:
Report link

Please check the name of the file you executed. Is it a firecrawl.py? so change it for the other one ;)

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: justi

79352295

Date: 2025-01-13 13:20:28
Score: 4.5
Natty:
Report link

Seems an issue with hot reload, Did you tried CHOKIDAR_USEPOLLING=true npm start ?

https://github.com/facebook/create-react-app/issues/10253#issuecomment-747970009

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Antonin Riche

79352288

Date: 2025-01-13 13:17:27
Score: 2
Natty:
Report link

This should be possible with the 'Cosmos DB Account Reader Role' and 'DocumentDB Account Contributor' roles.

From docs, regarding the contributor role :

Can manage Azure Cosmos DB accounts. Azure Cosmos DB is formerly known as DocumentDB.

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

79352281

Date: 2025-01-13 13:13:26
Score: 3.5
Natty:
Report link

Where and how did you hosted it so that is worked fine, because even if i hosted my bot is still shutting when stayed idle for a while

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Where
  • Low reputation (1):
Posted by: Akmal

79352261

Date: 2025-01-13 13:05:24
Score: 3
Natty:
Report link

Hi there to answer your question, thats because the roster will keep changing by the hour or minute depending on the instructions. If they say person A supposed to be at counter 1 from 1000-1200. But last minute have to go somewhere at 1100. Then will have to edit the roster to either no one or someone else who will take over.

Reasons:
  • Blacklisted phrase (0.5): Hi there
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: ruixin lee

79352260

Date: 2025-01-13 13:04:24
Score: 2.5
Natty:
Report link

It can happen that the code you are not awaiting never gets executed, I experienced that myself, you would need to do some kind of queue/background process structure to achieve what you want

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

79352248

Date: 2025-01-13 12:59:22
Score: 1
Natty:
Report link

Interesting, I see you have set default parameter for most important parameter But it doesn't looks like you have set the following, that could be useful for you to better understand what is going on:

LogLevel=5 in /Library/simba/googlebigqueryodbc/lib/simba.googlebigqueryodbc.ini LogPath=XXXXX/logs/ in /Library/simba/googlebigqueryodbc/lib/simba.googlebigqueryodbc.ini

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

79352247

Date: 2025-01-13 12:59:22
Score: 1.5
Natty:
Report link

Answer

The issue was related to Cloudflare caching, not the Flutter service worker itself. Here's what was happening and how to fix it:

Root Cause

Even though the service worker version was updating correctly in the flutter_bootstrap_js, Cloudflare was serving cached versions of the assets, preventing the new version from being loaded immediately.

Solution

To resolve this issue, you need to:

  1. Clear Cloudflare's cache:

    • Go to Cloudflare dashboard
    • Select your domain
    • Navigate to "Caching" > "Configuration"
    • Click "Purge Cache" > "Purge Everything"
  2. (Optional) During development, you can:

    • Enable Development Mode in Cloudflare temporarily
    • Or create a Page Rule to bypass cache for specific URLs

Additional Notes

Hope this helps others who might face similar issues with Flutter web deployments behind Cloudflare!

Tags: cloudflare, flutter-web, caching, cdn

Reasons:
  • Whitelisted phrase (-1): Hope this helps
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): face similar issue
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Jaesang Song

79352246

Date: 2025-01-13 12:59:22
Score: 2
Natty:
Report link

Thanks, works. But maybe one have to exchange the comma by a semicolon between function parameters. I. e.

...ROW(B2:B4); COLUMN(B2:B4)...
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: René Teinze

79352245

Date: 2025-01-13 12:59:22
Score: 1
Natty:
Report link

What about CountBlank() worksheet function? As you can see here, it counts three merged cells as 3:

Screenshot

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): What
  • High reputation (-2):
Posted by: Dominique

79352238

Date: 2025-01-13 12:57:22
Score: 1
Natty:
Report link

QR codes used for contact sharing often follow the vCard :

example of vCard :

BEGIN:VCARD
VERSION:3.0
FN:John Doe
TEL:+1234567890
EMAIL:[email protected]
END:VCARD

You just need to implement this code for QR scanning, and it will automatically display the option to add the contact.

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

79352235

Date: 2025-01-13 12:56:21
Score: 0.5
Natty:
Report link

The Xiaomi Mi Band does not use the standardised protocols/services defined by the Bluetooth SIG. Instead, it uses a proprietary interface.

This question is asked here from time to time, so you should use the search function before you ask a question. Join the tour and learn the best way to use Stack Overflow.

Examples:

Connecting to Mi Smart Band through Mi Fit application

Access MI Band through Bluetooth

Can not find the Mi band Xiaomi blurtooth protocol

Reasons:
  • No code block (0.5):
Posted by: Risto

79352234

Date: 2025-01-13 12:55:21
Score: 1.5
Natty:
Report link

If you have the 'Git Graph' extension loaded in VSCode, click on Git Graph (on the bottom bar of the VSCode window) to open the list of commits. Image showing Git Graph is located at the bottom of the VSCode window

The graph displays a list of all commits for the project.

Right-click the commit you want to tag, select "Add tag" from the popup menu, then enter the tag details as required. You also have the option to push the tag: Image showing the tag details input options

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

79352232

Date: 2025-01-13 12:54:21
Score: 2
Natty:
Report link

You might want to consider using a virtualization library to efficiently display PDFs with a large number of pages. A library like react-virtualized, for example, can help manage rendering only the visible pages at a time, significantly improving performance.

https://github.com/bvaughn/react-virtualized

https://github.com/michaeldzjap/react-pdf-sample

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